Skip to content

Commit bd1b105

Browse files
Migrating ContainerStorage.Management to latest TypeSpec (#24397)
* Migrating Container.Management to latest TypeSpec * Update specification/containerstorage/ContainerStorage.Management/tspconfig.yaml * Alphabetize properties in tspconfig.yaml * Adding missing examples * Fixing valueof, object deprecation & example * WIP remove custom_operations * Update comments and examples * Remove incorrectly added operations * Clean up and removing custom reference * Fixing 3 linting warning * Update the swagger * Add specification/containerstorage to PR trigger --------- Co-authored-by: Mike Harder <[email protected]>
1 parent 753f386 commit bd1b105

File tree

74 files changed

+1889
-501
lines changed

Some content is hidden

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

74 files changed

+1889
-501
lines changed

eng/pipelines/typespec-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pr:
1818
- specification/cognitiveservices
1919
- specification/confidentialledger
2020
- specification/containerservice
21+
- specification/containerstorage
2122
- specification/servicenetworking
2223
- specification/sphere
2324
- specification/translation
@@ -81,6 +82,11 @@ jobs:
8182
Folder: specification/containerservice/Fleet.Management
8283
DisplayName: Fleet.Management
8384

85+
- template: templates/steps/typespec-ci.yml
86+
parameters:
87+
Folder: specification/containerstorage/ContainerStorage.Management
88+
DisplayName: ContainerStorage.Management
89+
8490
- template: templates/steps/typespec-ci.yml
8591
parameters:
8692
Folder: specification/servicenetworking/ServiceNetworking.Management
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"title": "Operations_List_MaximumSet_Gen",
3+
"operationId": "Operations_List",
4+
"parameters": {
5+
"api-version": "2023-03-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"name": "owtamtreuhzeozjyrtuzzzy",
13+
"isDataAction": true,
14+
"display": {
15+
"provider": "qbrtf",
16+
"resource": "lfvgfkoojojdmh",
17+
"operation": "hvhshxzzfqahja",
18+
"description": "ahsrxzaeoioiwywbzljjpyrrw"
19+
},
20+
"origin": "user",
21+
"actionType": "Internal"
22+
}
23+
],
24+
"nextLink": "tgimrrxavadttwluarmurs"
25+
}
26+
}
27+
}
28+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"title": "Operations_List_MinimumSet_Gen",
3+
"operationId": "Operations_List",
4+
"parameters": {
5+
"api-version": "2023-03-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {}
10+
}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
{
2+
"title": "Pools_CreateOrUpdate_MaximumSet_Gen",
3+
"operationId": "Pools_CreateOrUpdate",
4+
"parameters": {
5+
"api-version": "2023-03-01-preview",
6+
"subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED",
7+
"resourceGroupName": "rgcontainerstorage",
8+
"poolName": "-EXNI2WK48",
9+
"resource": {
10+
"properties": {
11+
"provisioningState": "Succeeded",
12+
"poolType": 26,
13+
"zones": [
14+
"mzjpggkkungkugtucivmxfjnxmzdj"
15+
],
16+
"poolCapacityGiB": 23,
17+
"assignments": [
18+
"qvheujgnqksryltqtkjty"
19+
],
20+
"ephemeralPoolProperties": {
21+
"diskSelector": [
22+
"nvpe"
23+
],
24+
"disks": [
25+
"zokpazvsbrjvkwhsss"
26+
],
27+
"diskFormat": true
28+
},
29+
"diskPoolProperties": {
30+
"csiParams": {
31+
"key3964": "og"
32+
},
33+
"maxVolumeCapacityGiB": 11,
34+
"disks": [
35+
"wtsj"
36+
]
37+
},
38+
"elasticSanPoolProperties": {
39+
"sanName": "gu",
40+
"resourceGroup": "bjdqfuspbvlgkhsyt",
41+
"volumeGroup": "csbzebtsmcnhxzqp"
42+
}
43+
},
44+
"tags": {
45+
"key5598": "fxughwwqpqkvojkkuur"
46+
},
47+
"location": "jdfanwoyiigytvanvct"
48+
}
49+
},
50+
"responses": {
51+
"200": {
52+
"body": {
53+
"properties": {
54+
"provisioningState": "Succeeded",
55+
"poolType": 26,
56+
"zones": [
57+
"mzjpggkkungkugtucivmxfjnxmzdj"
58+
],
59+
"poolCapacityGiB": 23,
60+
"assignments": [
61+
"qvheujgnqksryltqtkjty"
62+
],
63+
"ephemeralPoolProperties": {
64+
"diskSelector": [
65+
"nvpe"
66+
],
67+
"disks": [
68+
"zokpazvsbrjvkwhsss"
69+
],
70+
"diskFormat": true
71+
},
72+
"diskPoolProperties": {
73+
"csiParams": {
74+
"key3964": "og"
75+
},
76+
"maxVolumeCapacityGiB": 11,
77+
"disks": [
78+
"wtsj"
79+
]
80+
},
81+
"elasticSanPoolProperties": {
82+
"sanName": "gu",
83+
"resourceGroup": "bjdqfuspbvlgkhsyt",
84+
"volumeGroup": "csbzebtsmcnhxzqp"
85+
}
86+
},
87+
"tags": {
88+
"key5598": "fxughwwqpqkvojkkuur"
89+
},
90+
"location": "jdfanwoyiigytvanvct",
91+
"id": "hlogqumrvefltsn",
92+
"name": "rgzqqcqrypwtqhgnvcdilsbquamov",
93+
"type": "hmoqufjwfhcusabczwclqewun",
94+
"systemData": {
95+
"createdBy": "nvbhamonwl",
96+
"createdByType": "User",
97+
"createdAt": "2023-03-06T18:31:46.331Z",
98+
"lastModifiedBy": "phtpjykzjrkgahpazxqnrp",
99+
"lastModifiedByType": "User",
100+
"lastModifiedAt": "2023-03-06T18:31:46.331Z"
101+
}
102+
}
103+
},
104+
"201": {
105+
"headers": {
106+
"Azure-AsyncOperation": "https://contoso.com/operationstatus"
107+
},
108+
"body": {
109+
"properties": {
110+
"provisioningState": "Succeeded",
111+
"poolType": 26,
112+
"zones": [
113+
"mzjpggkkungkugtucivmxfjnxmzdj"
114+
],
115+
"poolCapacityGiB": 23,
116+
"assignments": [
117+
"qvheujgnqksryltqtkjty"
118+
],
119+
"ephemeralPoolProperties": {
120+
"diskSelector": [
121+
"nvpe"
122+
],
123+
"disks": [
124+
"zokpazvsbrjvkwhsss"
125+
],
126+
"diskFormat": true
127+
},
128+
"diskPoolProperties": {
129+
"csiParams": {
130+
"key3964": "og"
131+
},
132+
"maxVolumeCapacityGiB": 11,
133+
"disks": [
134+
"wtsj"
135+
]
136+
},
137+
"elasticSanPoolProperties": {
138+
"sanName": "gu",
139+
"resourceGroup": "bjdqfuspbvlgkhsyt",
140+
"volumeGroup": "csbzebtsmcnhxzqp"
141+
}
142+
},
143+
"tags": {
144+
"key5598": "fxughwwqpqkvojkkuur"
145+
},
146+
"location": "jdfanwoyiigytvanvct",
147+
"id": "hlogqumrvefltsn",
148+
"name": "rgzqqcqrypwtqhgnvcdilsbquamov",
149+
"type": "hmoqufjwfhcusabczwclqewun",
150+
"systemData": {
151+
"createdBy": "nvbhamonwl",
152+
"createdByType": "User",
153+
"createdAt": "2023-03-06T18:31:46.331Z",
154+
"lastModifiedBy": "phtpjykzjrkgahpazxqnrp",
155+
"lastModifiedByType": "User",
156+
"lastModifiedAt": "2023-03-06T18:31:46.331Z"
157+
}
158+
}
159+
}
160+
}
161+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"title": "Pools_CreateOrUpdate_MinimumSet_Gen",
3+
"operationId": "Pools_CreateOrUpdate",
4+
"parameters": {
5+
"api-version": "2023-03-01-preview",
6+
"subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED",
7+
"resourceGroupName": "rgcontainerstorage",
8+
"poolName": "J873cXX1w3sIX",
9+
"resource": {
10+
"location": "jdfanwoyiigytvanvct"
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"location": "jdfanwoyiigytvanvct",
17+
"id": "a"
18+
}
19+
},
20+
"201": {
21+
"headers": {
22+
"Azure-AsyncOperation": "https://contoso.com/operationstatus"
23+
},
24+
"body": {
25+
"location": "jdfanwoyiigytvanvct",
26+
"id": "a"
27+
}
28+
}
29+
}
30+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "Pools_Delete_MaximumSet_Gen",
3+
"operationId": "Pools_Delete",
4+
"parameters": {
5+
"api-version": "2023-03-01-preview",
6+
"subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED",
7+
"resourceGroupName": "rgcontainerstorage",
8+
"poolName": "u0E5"
9+
},
10+
"responses": {
11+
"200": {},
12+
"202": {
13+
"headers": {
14+
"location": "https://contoso.com/operationstatus"
15+
}
16+
},
17+
"204": {}
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "Pools_Delete_MinimumSet_Gen",
3+
"operationId": "Pools_Delete",
4+
"parameters": {
5+
"api-version": "2023-03-01-preview",
6+
"subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED",
7+
"resourceGroupName": "rgcontainerstorage",
8+
"poolName": "HOL3KPOM7242-P-I--KH9E43"
9+
},
10+
"responses": {
11+
"200": {},
12+
"202": {
13+
"headers": {
14+
"location": "https://contoso.com/operationstatus"
15+
}
16+
},
17+
"204": {}
18+
}
19+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"title": "Pools_Get_MaximumSet_Gen",
3+
"operationId": "Pools_Get",
4+
"parameters": {
5+
"api-version": "2023-03-01-preview",
6+
"subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED",
7+
"resourceGroupName": "rgcontainerstorage",
8+
"poolName": "ht5ZGIN6x25loiC"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"properties": {
14+
"provisioningState": "Succeeded",
15+
"poolType": 26,
16+
"zones": [
17+
"mzjpggkkungkugtucivmxfjnxmzdj"
18+
],
19+
"poolCapacityGiB": 23,
20+
"assignments": [
21+
"qvheujgnqksryltqtkjty"
22+
],
23+
"ephemeralPoolProperties": {
24+
"diskSelector": [
25+
"nvpe"
26+
],
27+
"disks": [
28+
"zokpazvsbrjvkwhsss"
29+
],
30+
"diskFormat": true
31+
},
32+
"diskPoolProperties": {
33+
"csiParams": {
34+
"key3964": "og"
35+
},
36+
"maxVolumeCapacityGiB": 11,
37+
"disks": [
38+
"wtsj"
39+
]
40+
},
41+
"elasticSanPoolProperties": {
42+
"sanName": "gu",
43+
"resourceGroup": "bjdqfuspbvlgkhsyt",
44+
"volumeGroup": "csbzebtsmcnhxzqp"
45+
}
46+
},
47+
"tags": {
48+
"key5598": "fxughwwqpqkvojkkuur"
49+
},
50+
"location": "jdfanwoyiigytvanvct",
51+
"id": "hlogqumrvefltsn",
52+
"name": "rgzqqcqrypwtqhgnvcdilsbquamov",
53+
"type": "hmoqufjwfhcusabczwclqewun",
54+
"systemData": {
55+
"createdBy": "nvbhamonwl",
56+
"createdByType": "User",
57+
"createdAt": "2023-03-06T18:31:46.331Z",
58+
"lastModifiedBy": "phtpjykzjrkgahpazxqnrp",
59+
"lastModifiedByType": "User",
60+
"lastModifiedAt": "2023-03-06T18:31:46.331Z"
61+
}
62+
}
63+
}
64+
}
65+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"title": "Pools_Get_MinimumSet_Gen",
3+
"operationId": "Pools_Get",
4+
"parameters": {
5+
"api-version": "2023-03-01-preview",
6+
"subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED",
7+
"resourceGroupName": "rgcontainerstorage",
8+
"poolName": "V9-7SH6R6I"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"location": "jdfanwoyiigytvanvct",
14+
"id": "a"
15+
}
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)