Skip to content

Commit b7a81b9

Browse files
jaskisinJaskirat SinghHan-msftAlancere
authored
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 <[email protected]> Co-authored-by: Han Chiang <[email protected]> Co-authored-by: Alancere <[email protected]>
1 parent d856344 commit b7a81b9

File tree

194 files changed

+39136
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+39136
-7
lines changed

specification/workloads/Workloads.Operations.Management/examples/2024-09-01/Operations_List.json

Lines changed: 1105 additions & 0 deletions
Large diffs are not rendered by default.

specification/workloads/Workloads.Operations.Management/main.tsp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,12 @@ enum Versions {
3636
@useDependency(Azure.Core.Versions.v1_0_Preview_1)
3737
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3)
3838
v2023_10_01_preview: "2023-10-01-preview",
39+
40+
/**
41+
* The 2024-09-01 API version.
42+
*/
43+
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
44+
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
45+
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
46+
v2024_09_01: "2024-09-01",
3947
}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
import "@typespec/openapi";
2+
import "./models.tsp";
3+
import "./SAPVirtualInstance.tsp";
4+
5+
using TypeSpec.Rest;
6+
using Azure.ResourceManager;
7+
using TypeSpec.Http;
8+
using TypeSpec.OpenAPI;
9+
10+
namespace Microsoft.Workloads;
11+
/**
12+
* Define the SAP Application Server Instance resource.
13+
*/
14+
#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
15+
@parentResource(SAPVirtualInstance)
16+
model SAPApplicationServerInstance
17+
is TrackedResource<SAPApplicationServerProperties> {
18+
...ResourceNameParameter<
19+
Resource = SAPApplicationServerInstance,
20+
KeyName = "applicationInstanceName",
21+
SegmentName = "applicationInstances",
22+
NamePattern = "^.*"
23+
>;
24+
}
25+
26+
#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
27+
@armResourceOperations
28+
interface SAPApplicationServerInstances {
29+
/**
30+
* Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource.
31+
*/
32+
get is ArmResourceRead<SAPApplicationServerInstance>;
33+
34+
/**
35+
* 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.
36+
*/
37+
create is ArmResourceCreateOrReplaceAsync<SAPApplicationServerInstance>;
38+
39+
/**
40+
* Puts the SAP Application Server Instance resource.
41+
*/
42+
@parameterVisibility
43+
update is ArmCustomPatchSync<
44+
SAPApplicationServerInstance,
45+
UpdateSAPApplicationInstanceRequest
46+
>;
47+
48+
/**
49+
* 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.
50+
*/
51+
delete is ArmResourceDeleteWithoutOkAsync<SAPApplicationServerInstance>;
52+
53+
/**
54+
* Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource.
55+
*/
56+
list is ArmResourceListByParent<SAPApplicationServerInstance>;
57+
58+
/**
59+
* Starts the SAP Application Server Instance.
60+
*/
61+
start is ArmResourceActionAsync<
62+
SAPApplicationServerInstance,
63+
StartRequest,
64+
Foundations.OperationStatusResult
65+
>;
66+
67+
/**
68+
* Stops the SAP Application Server Instance.
69+
*/
70+
stop is ArmResourceActionAsync<
71+
SAPApplicationServerInstance,
72+
StopRequest,
73+
Foundations.OperationStatusResult
74+
>;
75+
}
76+
77+
@@doc(SAPApplicationServerInstance.name,
78+
"The name of SAP Application Server instance resource."
79+
);
80+
@@doc(SAPApplicationServerInstances.create::parameters.resource,
81+
"The SAP Application Server Instance resource request body."
82+
);
83+
@@doc(SAPApplicationServerInstances.update::parameters.properties,
84+
"The SAP Application Server Instance resource request body."
85+
);
86+
@@doc(SAPApplicationServerInstances.start::parameters.body,
87+
"SAP Application server instance start request body."
88+
);
89+
@@doc(SAPApplicationServerInstances.stop::parameters.body,
90+
"SAP Application server instance stop request body."
91+
);
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
import "@typespec/openapi";
2+
import "@typespec/rest";
3+
import "./models.tsp";
4+
import "./SAPVirtualInstance.tsp";
5+
6+
using TypeSpec.Rest;
7+
using Azure.ResourceManager;
8+
using TypeSpec.Http;
9+
using TypeSpec.OpenAPI;
10+
11+
namespace Microsoft.Workloads;
12+
/**
13+
* Define the SAP Central Services Instance resource.
14+
*/
15+
#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
16+
@parentResource(SAPVirtualInstance)
17+
model SAPCentralServerInstance is TrackedResource<SAPCentralServerProperties> {
18+
...ResourceNameParameter<
19+
Resource = SAPCentralServerInstance,
20+
KeyName = "centralInstanceName",
21+
SegmentName = "centralInstances",
22+
NamePattern = "^.*"
23+
>;
24+
}
25+
26+
#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
27+
@armResourceOperations
28+
interface SAPCentralServerInstances {
29+
/**
30+
* Gets the SAP Central Services Instance resource.
31+
*/
32+
get is ArmResourceRead<SAPCentralServerInstance>;
33+
34+
/**
35+
* 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.
36+
*/
37+
create is ArmResourceCreateOrReplaceAsync<SAPCentralServerInstance>;
38+
39+
/**
40+
* Updates the SAP Central Services Instance resource. &lt;br&gt;&lt;br&gt;This can be used to update tags on the resource.
41+
*/
42+
@parameterVisibility
43+
update is ArmCustomPatchSync<
44+
SAPCentralServerInstance,
45+
UpdateSAPCentralInstanceRequest
46+
>;
47+
48+
/**
49+
* 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.
50+
*/
51+
delete is ArmResourceDeleteWithoutOkAsync<SAPCentralServerInstance>;
52+
53+
/**
54+
* Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource.
55+
*/
56+
list is ArmResourceListByParent<SAPCentralServerInstance>;
57+
58+
/**
59+
* Starts the SAP Central Services Instance.
60+
*/
61+
start is ArmResourceActionAsync<
62+
SAPCentralServerInstance,
63+
StartRequest,
64+
Foundations.OperationStatusResult
65+
>;
66+
67+
/**
68+
* Stops the SAP Central Services Instance.
69+
*/
70+
stop is ArmResourceActionAsync<
71+
SAPCentralServerInstance,
72+
StopRequest,
73+
Foundations.OperationStatusResult
74+
>;
75+
}
76+
77+
@@doc(SAPCentralServerInstance.name,
78+
"Central Services Instance resource name string modeled as parameter for auto generation to work correctly."
79+
);
80+
@@doc(SAPCentralServerInstances.create::parameters.resource,
81+
"The SAP Central Services Instance request body."
82+
);
83+
@@doc(SAPCentralServerInstances.update::parameters.properties,
84+
"The SAP Central Services Instance resource request body."
85+
);
86+
@@doc(SAPCentralServerInstances.start::parameters.body,
87+
"SAP Central Services instance start request body."
88+
);
89+
@@doc(SAPCentralServerInstances.stop::parameters.body,
90+
"SAP Central Services instance stop request body."
91+
);
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
import "@typespec/openapi";
2+
import "./models.tsp";
3+
import "./SAPVirtualInstance.tsp";
4+
5+
using TypeSpec.Rest;
6+
using Azure.ResourceManager;
7+
using TypeSpec.Http;
8+
using TypeSpec.OpenAPI;
9+
10+
namespace Microsoft.Workloads;
11+
/**
12+
* Define the Database resource.
13+
*/
14+
#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
15+
@parentResource(SAPVirtualInstance)
16+
model SAPDatabaseInstance is TrackedResource<SAPDatabaseProperties> {
17+
...ResourceNameParameter<
18+
Resource = SAPDatabaseInstance,
19+
KeyName = "databaseInstanceName",
20+
SegmentName = "databaseInstances",
21+
NamePattern = "^.*"
22+
>;
23+
}
24+
25+
#suppress "@azure-tools/typespec-azure-core/casing-style" "SAP is used for representing the company product."
26+
@armResourceOperations
27+
interface SAPDatabaseInstances {
28+
/**
29+
* Gets the SAP Database Instance resource.
30+
*/
31+
get is ArmResourceRead<SAPDatabaseInstance>;
32+
33+
/**
34+
* 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.
35+
*/
36+
create is ArmResourceCreateOrReplaceAsync<SAPDatabaseInstance>;
37+
38+
/**
39+
* Updates the Database resource.
40+
*/
41+
@parameterVisibility
42+
update is ArmCustomPatchSync<
43+
SAPDatabaseInstance,
44+
UpdateSAPDatabaseInstanceRequest
45+
>;
46+
47+
/**
48+
* 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.
49+
*/
50+
delete is ArmResourceDeleteWithoutOkAsync<SAPDatabaseInstance>;
51+
52+
/**
53+
* Lists the Database resources associated with a Virtual Instance for SAP solutions resource.
54+
*/
55+
list is ArmResourceListByParent<SAPDatabaseInstance>;
56+
57+
/**
58+
* Starts the database instance of the SAP system.
59+
*/
60+
start is ArmResourceActionAsync<
61+
SAPDatabaseInstance,
62+
StartRequest,
63+
Foundations.OperationStatusResult
64+
>;
65+
66+
/**
67+
* Stops the database instance of the SAP system.
68+
*/
69+
stop is ArmResourceActionAsync<
70+
SAPDatabaseInstance,
71+
StopRequest,
72+
Foundations.OperationStatusResult
73+
>;
74+
}
75+
76+
@@doc(SAPDatabaseInstance.name,
77+
"Database resource name string modeled as parameter for auto generation to work correctly."
78+
);
79+
@@doc(SAPDatabaseInstances.create::parameters.resource,
80+
"Request body of Database resource of a SAP system."
81+
);
82+
@@doc(SAPDatabaseInstances.update::parameters.properties,
83+
"Database resource update request body."
84+
);
85+
@@doc(SAPDatabaseInstances.start::parameters.body,
86+
"SAP Database server instance start request body."
87+
);
88+
@@doc(SAPDatabaseInstances.stop::parameters.body,
89+
"Stop request for the database instance of the SAP system."
90+
);

0 commit comments

Comments
 (0)