Skip to content

Commit

Permalink
Workloads SAPVirtualInstance New GA API 2024-09-01 (#30292)
Browse files Browse the repository at this point in the history
* 2024-09-01 API Changes

* Update detection model recommendation (#30272)

* Adding Stable version for Operations and Readme file changes

* add sdk-suppressions.yaml

* remove supression to check errors

* Revert "remove supression to check errors"

This reverts commit 1475d61.

---------

Co-authored-by: Jaskirat Singh <jasksingh@microsoft.com>
Co-authored-by: Han Chiang <han.chiang@microsoft.com>
Co-authored-by: Alancere <804873052@qq.com>
  • Loading branch information
4 people authored Aug 27, 2024
1 parent d856344 commit b7a81b9
Show file tree
Hide file tree
Showing 194 changed files with 39,136 additions and 7 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@ enum Versions {
@useDependency(Azure.Core.Versions.v1_0_Preview_1)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3)
v2023_10_01_preview: "2023-10-01-preview",

/**
* The 2024-09-01 API version.
*/
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
v2024_09_01: "2024-09-01",
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import "@typespec/openapi";
import "./models.tsp";
import "./SAPVirtualInstance.tsp";

using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace Microsoft.Workloads;
/**
* Define the SAP Application Server Instance resource.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
@parentResource(SAPVirtualInstance)
model SAPApplicationServerInstance
is TrackedResource<SAPApplicationServerProperties> {
...ResourceNameParameter<
Resource = SAPApplicationServerInstance,
KeyName = "applicationInstanceName",
SegmentName = "applicationInstances",
NamePattern = "^.*"
>;
}

#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
@armResourceOperations
interface SAPApplicationServerInstances {
/**
* Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource.
*/
get is ArmResourceRead<SAPApplicationServerInstance>;

/**
* Puts the SAP Application Server Instance resource. &lt;br&gt;&lt;br&gt;This will be used by service only. PUT by end user will return a Bad Request error.
*/
create is ArmResourceCreateOrReplaceAsync<SAPApplicationServerInstance>;

/**
* Puts the SAP Application Server Instance resource.
*/
@parameterVisibility
update is ArmCustomPatchSync<
SAPApplicationServerInstance,
UpdateSAPApplicationInstanceRequest
>;

/**
* Deletes the SAP Application Server Instance resource. &lt;br&gt;&lt;br&gt;This operation will be used by service only. Delete by end user will return a Bad Request error.
*/
delete is ArmResourceDeleteWithoutOkAsync<SAPApplicationServerInstance>;

/**
* Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource.
*/
list is ArmResourceListByParent<SAPApplicationServerInstance>;

/**
* Starts the SAP Application Server Instance.
*/
start is ArmResourceActionAsync<
SAPApplicationServerInstance,
StartRequest,
Foundations.OperationStatusResult
>;

/**
* Stops the SAP Application Server Instance.
*/
stop is ArmResourceActionAsync<
SAPApplicationServerInstance,
StopRequest,
Foundations.OperationStatusResult
>;
}

@@doc(SAPApplicationServerInstance.name,
"The name of SAP Application Server instance resource."
);
@@doc(SAPApplicationServerInstances.create::parameters.resource,
"The SAP Application Server Instance resource request body."
);
@@doc(SAPApplicationServerInstances.update::parameters.properties,
"The SAP Application Server Instance resource request body."
);
@@doc(SAPApplicationServerInstances.start::parameters.body,
"SAP Application server instance start request body."
);
@@doc(SAPApplicationServerInstances.stop::parameters.body,
"SAP Application server instance stop request body."
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
import "./SAPVirtualInstance.tsp";

using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace Microsoft.Workloads;
/**
* Define the SAP Central Services Instance resource.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
@parentResource(SAPVirtualInstance)
model SAPCentralServerInstance is TrackedResource<SAPCentralServerProperties> {
...ResourceNameParameter<
Resource = SAPCentralServerInstance,
KeyName = "centralInstanceName",
SegmentName = "centralInstances",
NamePattern = "^.*"
>;
}

#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
@armResourceOperations
interface SAPCentralServerInstances {
/**
* Gets the SAP Central Services Instance resource.
*/
get is ArmResourceRead<SAPCentralServerInstance>;

/**
* Creates the SAP Central Services Instance resource. &lt;br&gt;&lt;br&gt;This will be used by service only. PUT operation on this resource by end user will return a Bad Request error.
*/
create is ArmResourceCreateOrReplaceAsync<SAPCentralServerInstance>;

/**
* Updates the SAP Central Services Instance resource. &lt;br&gt;&lt;br&gt;This can be used to update tags on the resource.
*/
@parameterVisibility
update is ArmCustomPatchSync<
SAPCentralServerInstance,
UpdateSAPCentralInstanceRequest
>;

/**
* Deletes the SAP Central Services Instance resource. &lt;br&gt;&lt;br&gt;This will be used by service only. Delete operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which is the Virtual Instance for SAP solutions resource, using the delete operation on it.
*/
delete is ArmResourceDeleteWithoutOkAsync<SAPCentralServerInstance>;

/**
* Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource.
*/
list is ArmResourceListByParent<SAPCentralServerInstance>;

/**
* Starts the SAP Central Services Instance.
*/
start is ArmResourceActionAsync<
SAPCentralServerInstance,
StartRequest,
Foundations.OperationStatusResult
>;

/**
* Stops the SAP Central Services Instance.
*/
stop is ArmResourceActionAsync<
SAPCentralServerInstance,
StopRequest,
Foundations.OperationStatusResult
>;
}

@@doc(SAPCentralServerInstance.name,
"Central Services Instance resource name string modeled as parameter for auto generation to work correctly."
);
@@doc(SAPCentralServerInstances.create::parameters.resource,
"The SAP Central Services Instance request body."
);
@@doc(SAPCentralServerInstances.update::parameters.properties,
"The SAP Central Services Instance resource request body."
);
@@doc(SAPCentralServerInstances.start::parameters.body,
"SAP Central Services instance start request body."
);
@@doc(SAPCentralServerInstances.stop::parameters.body,
"SAP Central Services instance stop request body."
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import "@typespec/openapi";
import "./models.tsp";
import "./SAPVirtualInstance.tsp";

using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace Microsoft.Workloads;
/**
* Define the Database resource.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
@parentResource(SAPVirtualInstance)
model SAPDatabaseInstance is TrackedResource<SAPDatabaseProperties> {
...ResourceNameParameter<
Resource = SAPDatabaseInstance,
KeyName = "databaseInstanceName",
SegmentName = "databaseInstances",
NamePattern = "^.*"
>;
}

#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
@armResourceOperations
interface SAPDatabaseInstances {
/**
* Gets the SAP Database Instance resource.
*/
get is ArmResourceRead<SAPDatabaseInstance>;

/**
* Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. &lt;br&gt;&lt;br&gt;This will be used by service only. PUT by end user will return a Bad Request error.
*/
create is ArmResourceCreateOrReplaceAsync<SAPDatabaseInstance>;

/**
* Updates the Database resource.
*/
@parameterVisibility
update is ArmCustomPatchSync<
SAPDatabaseInstance,
UpdateSAPDatabaseInstanceRequest
>;

/**
* Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. &lt;br&gt;&lt;br&gt;This will be used by service only. Delete by end user will return a Bad Request error.
*/
delete is ArmResourceDeleteWithoutOkAsync<SAPDatabaseInstance>;

/**
* Lists the Database resources associated with a Virtual Instance for SAP solutions resource.
*/
list is ArmResourceListByParent<SAPDatabaseInstance>;

/**
* Starts the database instance of the SAP system.
*/
start is ArmResourceActionAsync<
SAPDatabaseInstance,
StartRequest,
Foundations.OperationStatusResult
>;

/**
* Stops the database instance of the SAP system.
*/
stop is ArmResourceActionAsync<
SAPDatabaseInstance,
StopRequest,
Foundations.OperationStatusResult
>;
}

@@doc(SAPDatabaseInstance.name,
"Database resource name string modeled as parameter for auto generation to work correctly."
);
@@doc(SAPDatabaseInstances.create::parameters.resource,
"Request body of Database resource of a SAP system."
);
@@doc(SAPDatabaseInstances.update::parameters.properties,
"Database resource update request body."
);
@@doc(SAPDatabaseInstances.start::parameters.body,
"SAP Database server instance start request body."
);
@@doc(SAPDatabaseInstances.stop::parameters.body,
"Stop request for the database instance of the SAP system."
);
Loading

0 comments on commit b7a81b9

Please sign in to comment.