Skip to content

Commit 0d04177

Browse files
authored
Fix s360 error in Reservation Recommendations (#16767)
* Fix s360 error * Fix errors * Fix errors
1 parent 67f2359 commit 0d04177

File tree

4 files changed

+47
-9
lines changed

4 files changed

+47
-9
lines changed

specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/consumption.json

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3391,6 +3391,8 @@
33913391
},
33923392
"LegacyReservationRecommendationProperties": {
33933393
"description": "The properties of the reservation recommendation.",
3394+
"type": "object",
3395+
"discriminator": "scope",
33943396
"properties": {
33953397
"lookBackPeriod": {
33963398
"description": "The number of days of usage to look back for recommendation.",
@@ -3465,8 +3467,7 @@
34653467
},
34663468
"scope": {
34673469
"description": "Shared or single recommendation.",
3468-
"type": "string",
3469-
"readOnly": true
3470+
"type": "string"
34703471
},
34713472
"skuProperties": {
34723473
"description": "List of sku properties",
@@ -3476,7 +3477,38 @@
34763477
},
34773478
"readOnly": true
34783479
}
3479-
}
3480+
},
3481+
"required": [
3482+
"scope"
3483+
]
3484+
},
3485+
"LegacySingleScopeReservationRecommendationProperties": {
3486+
"description": "The properties of the legacy reservation recommendation for single scope.",
3487+
"type": "object",
3488+
"x-ms-discriminator-value": "Single",
3489+
"properties": {
3490+
"subscriptionId": {
3491+
"description": "Subscription id associated with single scoped recommendation.",
3492+
"type": "string",
3493+
"format": "uuid",
3494+
"readOnly": true
3495+
}
3496+
},
3497+
"allOf": [
3498+
{
3499+
"$ref": "#/definitions/LegacyReservationRecommendationProperties"
3500+
}
3501+
]
3502+
},
3503+
"LegacySharedScopeReservationRecommendationProperties": {
3504+
"description": "The properties of the legacy reservation recommendation for shared scope.",
3505+
"type": "object",
3506+
"x-ms-discriminator-value": "Shared",
3507+
"allOf": [
3508+
{
3509+
"$ref": "#/definitions/LegacyReservationRecommendationProperties"
3510+
}
3511+
]
34803512
},
34813513
"SkuProperty": {
34823514
"description": "The Sku property",

specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsByResourceGroup.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"totalCostWithReservedInstances": 0.0,
2424
"netSavings": 4.634521202630137,
2525
"firstUsageDate": "2018-03-06T00:00:00Z",
26-
"scope": "Single"
26+
"scope": "Single",
27+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
2728
}
2829
},
2930
{
@@ -42,7 +43,8 @@
4243
"totalCostWithReservedInstances": 0.0,
4344
"netSavings": 7.2893157231780812,
4445
"firstUsageDate": "2018-03-06T00:00:00Z",
45-
"scope": "Single"
46+
"scope": "Single",
47+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
4648
}
4749
}
4850
],

specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsBySubscription.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"totalCostWithReservedInstances": 0.0,
2424
"netSavings": 4.634521202630137,
2525
"firstUsageDate": "2018-03-06T00:00:00Z",
26-
"scope": "Single"
26+
"scope": "Single",
27+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
2728
}
2829
},
2930
{
@@ -42,7 +43,8 @@
4243
"totalCostWithReservedInstances": 0.0,
4344
"netSavings": 7.2893157231780812,
4445
"firstUsageDate": "2018-03-06T00:00:00Z",
45-
"scope": "Single"
46+
"scope": "Single",
47+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
4648
}
4749
}
4850
],

specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsFilterBySubscriptionForScopeLookBackPeriod.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"name": "Ram",
3535
"value": "1"
3636
}
37-
]
37+
],
38+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
3839
}
3940
},
4041
{
@@ -63,7 +64,8 @@
6364
"name": "CPU",
6465
"value": "1"
6566
}
66-
]
67+
],
68+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
6769
}
6870
}
6971
],

0 commit comments

Comments
 (0)