Skip to content

Commit

Permalink
Vipinhas/fix capacity4cluster (#15565)
Browse files Browse the repository at this point in the history
* removing read only property, no longer in use - NOT a breaking change

* fix cluster capacityResevation Sku

* fix examples

* add x-ms-enum property
  • Loading branch information
vipinhas authored Aug 10, 2021
1 parent b4f133f commit bb530ad
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,16 @@
"capacity": {
"description": "The capacity value",
"type": "integer",
"format": "int64"
"format": "int64",
"enum": [
500,
1000,
2000,
5000
],
"x-ms-enum": {
"name": "Capacity"
}
},
"name": {
"type": "string",
Expand Down Expand Up @@ -632,18 +641,6 @@
"description": "Minimum CapacityReservation value in GB.",
"type": "integer",
"format": "int64"
},
"capacityReservationLevel": {
"readOnly": true,
"description": "The capacity reservation level for this cluster in GB",
"type": "integer",
"format": "int32",
"enum": [
500,
1000,
2000,
5000
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,10 @@
1000,
2000,
5000
]
],
"x-ms-enum": {
"name": "CapacityReservationLevel"
}
},
"lastSkuUpdate": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"tag1": "val1"
}
},
"api-version": "2020-10-01",
"api-version": "2021-06-01",
"subscriptionId": "00000000-0000-0000-0000-00000000000"
},
"responses": {
Expand All @@ -33,7 +33,7 @@
"associatedWorkspaces": [],
"capacityReservationProperties": {
"lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT",
"minCapacity": 1000
"minCapacity": 500
}
},
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/clusters/oiautorest6685",
Expand Down Expand Up @@ -67,7 +67,7 @@
"associatedWorkspaces": [],
"capacityReservationProperties": {
"lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT",
"minCapacity": 1000
"minCapacity": 500
}
},
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/clusters/oiautorest6685",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"resourceGroupName": "oiautorest6685",
"clusterName": "oiautorest6685",
"api-version": "2020-10-01",
"api-version": "2021-06-01",
"subscriptionId": "00000000-0000-0000-0000-00000000000"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"resourceGroupName": "oiautorest6685",
"clusterName": "oiautorest6685",
"api-version": "2020-10-01",
"api-version": "2021-06-01",
"subscriptionId": "00000000-0000-0000-0000-00000000000"
},
"responses": {
Expand Down Expand Up @@ -38,7 +38,7 @@
],
"capacityReservationProperties": {
"lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT",
"minCapacity": 1000
"minCapacity": 500
}
},
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/clusters/testresourcelock",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"resourceGroupName": "oiautorest6685",
"api-version": "2020-10-01",
"api-version": "2021-06-01",
"subscriptionId": "00000000-0000-0000-0000-00000000000"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-10-01",
"api-version": "2021-06-01",
"subscriptionId": "00000000-0000-0000-0000-00000000000"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"tag1": "val1"
}
},
"api-version": "2020-10-01",
"api-version": "2021-06-01",
"subscriptionId": "00000000-0000-0000-0000-00000000000"
},
"responses": {
Expand Down Expand Up @@ -68,7 +68,7 @@
],
"capacityReservationProperties": {
"lastSkuUpdate": "Thu, 01 Jan 1970 00:00:00 GMT",
"minCapacity": 1000
"minCapacity": 500
}
},
"sku": {
Expand Down

0 comments on commit bb530ad

Please sign in to comment.