Skip to content

Commit 797eacf

Browse files
gaoyp830Leiwang3SQL
authored andcommitted
Fixing S360 issues (Azure#17014)
* Fixing S360 issues * Fix style
1 parent f70a693 commit 797eacf

File tree

6 files changed

+143
-1
lines changed

6 files changed

+143
-1
lines changed

specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetCatalog.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
"P1Y",
1616
"P3Y"
1717
],
18+
"msrp": {
19+
"p1Y": {
20+
"currencyCode": "USD",
21+
"amount": 1907
22+
},
23+
"p3Y": {
24+
"currencyCode": "USD",
25+
"amount": 3960
26+
}
27+
},
1828
"billingPlans": {
1929
"P1Y": [
2030
"Upfront",

specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationDetails.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
"currencyCode": "USD",
7171
"amount": 466.0
7272
}
73+
},
74+
"swapProperties": {
75+
"swapSource": "/providers/microsoft.capacity/reservationOrders/63037ae3-385a-4716-ad77-02f42ce93c06/reservations/5c6383f5-3f2c-4159-ae74-j72i1c1a49bc"
7376
}
7477
}
7578
}

specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationRevisions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@
102102
"/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7",
103103
"/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de"
104104
]
105+
},
106+
"swapProperties": {
107+
"swapDestination": "/providers/microsoft.capacity/reservationOrders/afadf486-3432-4254-b297-4db8ef055f38/reservations/317efb41-b3ef-3706-8447-c2c045ab3ef5"
105108
}
106109
}
107110
},

specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservations.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,68 @@
154154
]
155155
}
156156
}
157+
},
158+
{
159+
"sku": {
160+
"name": "Standard_DS1_v2"
161+
},
162+
"id": "/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/4jf50113-3382-40da-ed79-787f823e34bc",
163+
"type": "Microsoft.Capacity/reservationOrders/reservations",
164+
"name": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da/4jf50113-3382-40da-ed79-787f823e34bc",
165+
"etag": 2,
166+
"location": "eastus",
167+
"properties": {
168+
"appliedScopes": [
169+
"/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"
170+
],
171+
"renew": false,
172+
"billingScopeId": "/subscriptions/19376483-64b8-49e4-a931-d5248828720a",
173+
"appliedScopeType": "Single",
174+
"quantity": 3,
175+
"provisioningState": "Succeeded",
176+
"expiryDate": "2018-09-22",
177+
"displayName": "cabri_test",
178+
"billingPlan": "Monthly",
179+
"effectiveDateTime": "2017-09-22T22:46:32.7632798Z",
180+
"lastUpdatedDateTime": "2017-09-22T22:46:32.7632798Z",
181+
"reservedResourceType": "VirtualMachines",
182+
"instanceFlexibility": "On",
183+
"skuDescription": "D1 v2",
184+
"swapProperties": {
185+
"swapSource": "/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/5se63214-3382-40da-ed79-787f823e34bc"
186+
}
187+
}
188+
},
189+
{
190+
"sku": {
191+
"name": "Standard_D1_v2"
192+
},
193+
"id": "/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/5se63214-3382-40da-ed79-787f823e34bc",
194+
"type": "Microsoft.Capacity/reservationOrders/reservations",
195+
"name": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da/5se63214-3382-40da-ed79-787f823e34bc",
196+
"etag": 2,
197+
"location": "eastus",
198+
"properties": {
199+
"appliedScopes": [
200+
"/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"
201+
],
202+
"renew": false,
203+
"billingScopeId": "/subscriptions/19376483-64b8-49e4-a931-d5248828720a",
204+
"appliedScopeType": "Single",
205+
"quantity": 3,
206+
"provisioningState": "Succeeded",
207+
"expiryDate": "2018-09-22",
208+
"displayName": "cabri_test",
209+
"billingPlan": "Monthly",
210+
"effectiveDateTime": "2017-09-22T22:46:32.7632798Z",
211+
"lastUpdatedDateTime": "2017-09-22T22:46:32.7632798Z",
212+
"reservedResourceType": "VirtualMachines",
213+
"instanceFlexibility": "On",
214+
"skuDescription": "D1 v2",
215+
"swapProperties": {
216+
"swapDestination": "/providers/microsoft.capacity/reservationOrders/63027ae3-389a-4716-ad77-04f42ce93c06/reservations/4jf50113-3382-40da-ed79-787f823e34bc"
217+
}
218+
}
157219
}
158220
]
159221
}

specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/UpdateReservation.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"etag": 4,
2323
"location": "eastus",
2424
"properties": {
25-
"appliedScopeType": "Shared",
25+
"appliedScopeType": "ManagementGroup",
2626
"renew": false,
2727
"billingScopeId": "/subscriptions/19376483-64b8-49e4-a931-d5248828720a",
2828
"quantity": 3,
@@ -40,6 +40,11 @@
4040
"/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7",
4141
"/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de"
4242
]
43+
},
44+
"appliedScopeProperties": {
45+
"tenantId": "d432d7b4-3bc4-4hef-97f1-a6e34f37c9d3",
46+
"managementGroupId": "/providers/Microsoft.Management/managementGroups/TestMG1",
47+
"displayName": "TestMG1"
4348
}
4449
}
4550
}

specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/reservations.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,16 @@
820820
}
821821
}
822822
},
823+
"msrp": {
824+
"type": "object",
825+
"description": "The sku's MSRP values for each term",
826+
"additionalProperties": {
827+
"type": "object",
828+
"items": {
829+
"$ref": "#/definitions/MsrpProperty"
830+
}
831+
}
832+
},
823833
"terms": {
824834
"type": "array",
825835
"readOnly": true,
@@ -852,6 +862,19 @@
852862
}
853863
}
854864
},
865+
"MsrpProperty": {
866+
"type": "object",
867+
"properties": {
868+
"currencyCode": {
869+
"type": "string",
870+
"description": "Represents the currency code - 3 character ISO."
871+
},
872+
"amount": {
873+
"type": "number",
874+
"description": "Represents the amount of money in the currency."
875+
}
876+
}
877+
},
855878
"SkuProperty": {
856879
"type": "object",
857880
"properties": {
@@ -1253,6 +1276,12 @@
12531276
"mergeProperties": {
12541277
"$ref": "#/definitions/ReservationMergeProperties"
12551278
},
1279+
"swapProperties": {
1280+
"$ref": "#/definitions/ReservationSwapProperties"
1281+
},
1282+
"appliedScopeProperties": {
1283+
"$ref": "#/definitions/AppliedScopeProperties"
1284+
},
12561285
"billingScopeId": {
12571286
"$ref": "#/definitions/BillingScopeId"
12581287
},
@@ -1283,6 +1312,23 @@
12831312
}
12841313
}
12851314
},
1315+
"AppliedScopeProperties": {
1316+
"type": "object",
1317+
"properties": {
1318+
"tenantId": {
1319+
"type": "string",
1320+
"description": "Tenant ID of the applied scope type"
1321+
},
1322+
"managementGroupId": {
1323+
"type": "string",
1324+
"description": "Management group ID of the format /providers/Microsoft.Management/managementGroups/{managementGroupId}"
1325+
},
1326+
"displayName": {
1327+
"type": "string",
1328+
"description": "Management group display name"
1329+
}
1330+
}
1331+
},
12861332
"ReservationSplitProperties": {
12871333
"type": "object",
12881334
"properties": {
@@ -1315,6 +1361,19 @@
13151361
}
13161362
}
13171363
},
1364+
"ReservationSwapProperties": {
1365+
"type": "object",
1366+
"properties": {
1367+
"swapSource": {
1368+
"type": "string",
1369+
"description": "Resource Id of the Source Reservation that gets swapped. Format of the resource Id is /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}"
1370+
},
1371+
"swapDestination": {
1372+
"type": "string",
1373+
"description": "Reservation Resource Id that the original resource gets swapped to. Format of the resource Id is /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}"
1374+
}
1375+
}
1376+
},
13181377
"PurchaseRequestProperties": {
13191378
"type": "object",
13201379
"properties": {

0 commit comments

Comments
 (0)