-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workloads SAPVirtualInstance New GA API 2024-09-01 (#30292)
* 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
1 parent
d856344
commit b7a81b9
Showing
194 changed files
with
39,136 additions
and
7 deletions.
There are no files selected for viewing
1,105 changes: 1,105 additions & 0 deletions
1,105
...cation/workloads/Workloads.Operations.Management/examples/2024-09-01/Operations_List.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
...cation/workloads/Workloads.SAPVirtualInstance.Management/SAPApplicationServerInstance.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. <br><br>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. <br><br>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." | ||
); |
91 changes: 91 additions & 0 deletions
91
specification/workloads/Workloads.SAPVirtualInstance.Management/SAPCentralServerInstance.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. <br><br>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. <br><br>This can be used to update tags on the resource. | ||
*/ | ||
@parameterVisibility | ||
update is ArmCustomPatchSync< | ||
SAPCentralServerInstance, | ||
UpdateSAPCentralInstanceRequest | ||
>; | ||
|
||
/** | ||
* Deletes the SAP Central Services Instance resource. <br><br>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." | ||
); |
90 changes: 90 additions & 0 deletions
90
specification/workloads/Workloads.SAPVirtualInstance.Management/SAPDatabaseInstance.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. <br><br>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. <br><br>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." | ||
); |
Oops, something went wrong.