Skip to content

Commit 79da892

Browse files
committed
address legacy lint error and warnings
1 parent a1ee7dc commit 79da892

File tree

1 file changed

+45
-11
lines changed
  • specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01

1 file changed

+45
-11
lines changed

specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/reservations.json

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,7 @@
13051305
},
13061306
"CalculateRefundRequest": {
13071307
"type": "object",
1308+
"description": "Request containing information needed for calculating refund.",
13081309
"properties": {
13091310
"id": {
13101311
"type": "string",
@@ -1317,6 +1318,7 @@
13171318
},
13181319
"RefundRequest": {
13191320
"type": "object",
1321+
"description": "Request containing information needed for returning reservation.",
13201322
"properties": {
13211323
"properties": {
13221324
"$ref": "#/definitions/RefundRequestProperties"
@@ -1325,6 +1327,7 @@
13251327
},
13261328
"CalculateRefundRequestProperties": {
13271329
"type": "object",
1330+
"description": "Properties needed for calculate refund including the scope and the reservation to be returned.",
13281331
"properties": {
13291332
"scope": {
13301333
"type": "string",
@@ -1337,6 +1340,7 @@
13371340
},
13381341
"RefundRequestProperties": {
13391342
"type": "object",
1343+
"description": "Properties needed for refund request including the session id from calculte refund, the scope, the reservation to be returned and the return reason.",
13401344
"properties": {
13411345
"sessionId": {
13421346
"type": "string",
@@ -1524,6 +1528,7 @@
15241528
},
15251529
"Catalog": {
15261530
"type": "object",
1531+
"description": "Product details of a type of resource.",
15271532
"properties": {
15281533
"resourceType": {
15291534
"type": "string",
@@ -1566,7 +1571,10 @@
15661571
"readOnly": true,
15671572
"items": {
15681573
"$ref": "#/definitions/SkuProperty"
1569-
}
1574+
},
1575+
"x-ms-identifiers": [
1576+
"name"
1577+
]
15701578
},
15711579
"msrp": {
15721580
"type": "object",
@@ -1585,7 +1593,8 @@
15851593
"readOnly": true,
15861594
"items": {
15871595
"$ref": "#/definitions/SkuRestriction"
1588-
}
1596+
},
1597+
"x-ms-identifiers": []
15891598
},
15901599
"tier": {
15911600
"type": "string",
@@ -1602,12 +1611,16 @@
16021611
"readOnly": true,
16031612
"items": {
16041613
"$ref": "#/definitions/SkuCapability"
1605-
}
1614+
},
1615+
"x-ms-identifiers": [
1616+
"name"
1617+
]
16061618
}
16071619
}
16081620
},
16091621
"SkuCapability": {
16101622
"type": "object",
1623+
"description": "Capability of a sku.",
16111624
"properties": {
16121625
"name": {
16131626
"type": "string",
@@ -1621,6 +1634,7 @@
16211634
},
16221635
"SkuProperty": {
16231636
"type": "object",
1637+
"description": "Property of a sku.",
16241638
"properties": {
16251639
"name": {
16261640
"type": "string",
@@ -1634,6 +1648,7 @@
16341648
},
16351649
"SkuRestriction": {
16361650
"type": "object",
1651+
"description": "Restriction of a sku.",
16371652
"properties": {
16381653
"type": {
16391654
"type": "string",
@@ -1654,6 +1669,7 @@
16541669
},
16551670
"ReservationOrderResponse": {
16561671
"type": "object",
1672+
"description": "Details of a reservation order being returned.",
16571673
"x-ms-azure-resource": true,
16581674
"properties": {
16591675
"etag": {
@@ -1755,12 +1771,14 @@
17551771
"type": "array",
17561772
"items": {
17571773
"$ref": "#/definitions/PaymentDetail"
1758-
}
1774+
},
1775+
"x-ms-identifiers": []
17591776
}
17601777
}
17611778
},
17621779
"ReservationOrderProperties": {
17631780
"type": "object",
1781+
"description": "Properties of a reservation order.",
17641782
"properties": {
17651783
"displayName": {
17661784
"type": "string",
@@ -1920,7 +1938,11 @@
19201938
"properties": {
19211939
"location": {
19221940
"type": "string",
1923-
"description": "The Azure Region where the reserved resource lives."
1941+
"description": "The Azure Region where the reserved resource lives.",
1942+
"x-ms-mutability": [
1943+
"create",
1944+
"read"
1945+
]
19241946
},
19251947
"etag": {
19261948
"type": "integer",
@@ -1954,6 +1976,7 @@
19541976
},
19551977
"AvailableScopeProperties": {
19561978
"type": "object",
1979+
"description": "The response of available scope api containing scopes and their eligibilities.",
19571980
"properties": {
19581981
"properties": {
19591982
"$ref": "#/definitions/SubscriptionScopeProperties"
@@ -1962,17 +1985,20 @@
19621985
},
19631986
"SubscriptionScopeProperties": {
19641987
"type": "object",
1988+
"description": "The scopes checked by the available scope api.",
19651989
"properties": {
19661990
"scopes": {
19671991
"type": "array",
19681992
"items": {
19691993
"$ref": "#/definitions/ScopeProperties"
1970-
}
1994+
},
1995+
"x-ms-identifiers": []
19711996
}
19721997
}
19731998
},
19741999
"ScopeProperties": {
19752000
"type": "object",
2001+
"description": "The scope and whether it is valid.",
19762002
"properties": {
19772003
"scope": {
19782004
"type": "string"
@@ -2660,7 +2686,8 @@
26602686
"type": "array",
26612687
"items": {
26622688
"$ref": "#/definitions/ReservationUtilizationAggregates"
2663-
}
2689+
},
2690+
"x-ms-identifiers": []
26642691
}
26652692
}
26662693
}
@@ -2953,7 +2980,10 @@
29532980
"location": {
29542981
"type": "string",
29552982
"description": "The Azure Region where the reserved resource lives.",
2956-
"x-ms-mutability": [ "create", "read" ]
2983+
"x-ms-mutability": [
2984+
"create",
2985+
"read"
2986+
]
29572987
},
29582988
"properties": {
29592989
"x-ms-client-flatten": true,
@@ -3098,7 +3128,10 @@
30983128
"type": "array",
30993129
"items": {
31003130
"$ref": "#/definitions/OperationResponse"
3101-
}
3131+
},
3132+
"x-ms-identifiers": [
3133+
"name"
3134+
]
31023135
},
31033136
"nextLink": {
31043137
"type": "string",
@@ -3375,7 +3408,8 @@
33753408
"type": "array",
33763409
"items": {
33773410
"$ref": "#/definitions/PaymentDetail"
3378-
}
3411+
},
3412+
"x-ms-identifiers": []
33793413
}
33803414
}
33813415
},
@@ -3531,7 +3565,7 @@
35313565
"description": "Supported version.",
35323566
"required": true,
35333567
"type": "string",
3534-
"x-ms-parameter-location":"client"
3568+
"x-ms-parameter-location": "client"
35353569
},
35363570
"ExpandRenewPropertiesParameter": {
35373571
"name": "$expand",

0 commit comments

Comments
 (0)