Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.Capacity to add version …
Browse files Browse the repository at this point in the history
…preview/2019-04-01 (#6995)

* update swagger

* update

* update

* update

* update

* update

* update

* update
  • Loading branch information
Only2125 authored and yaohaizh committed Aug 25, 2019
1 parent 8afd666 commit 00e2f7f
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2019-04-01",
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da",
"reservationId": "356e7ae4-84d0-4da6-ab4b-d6b94f3557da",
"body": {
"properties": {
"scopes": [
"/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9"
]
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"scopes": [
{
"scope": "/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9",
"valid": true
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,50 @@
}
},
"paths": {
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/availableScopes": {
"post": {
"summary": "Get Available Scopes for `Reservation`.",
"description": "Get Available Scopes for `Reservation`.\n",
"operationId": "Reservation_AvailableScopes",
"x-ms-examples": {
"AvailableScopes": {
"$ref": "./examples/GetAvailableScope.json"
}
},
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "#/parameters/ReservationOrderIdParameter"
},
{
"$ref": "#/parameters/ReservationIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ScopeParameter"
}
],
"tags": [
"Reservation, AvailableScopes"
],
"responses": {
"200": {
"description": "List of `Subscription`s created after the filter.",
"schema": {
"$ref": "#/definitions/Properties"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs": {
"get": {
"summary": "Get the regions and skus that are available for RI purchase for the specified Azure subscription.",
Expand Down Expand Up @@ -1393,6 +1437,36 @@
"format": "int32",
"description": "Quantity of the SKUs that are part of the Reservation. Must be greater than zero."
},
"Properties" : {
"type" : "object",
"properties": {
"properties" :{
"$ref": "#/definitions/SubscriptionScopeProperties"
}
}
},
"SubscriptionScopeProperties":{
"type": "object",
"properties": {
"scopes":{
"type": "array",
"items": {
"$ref": "#/definitions/ScopeProperties"
}
}
}
},
"ScopeProperties":{
"type": "object",
"properties": {
"scope": {
"type": "string"
},
"valid": {
"type": "boolean"
}
}
},
"ReservedResourceType": {
"type": "string",
"description": "The type of the resource that is being reserved.",
Expand All @@ -1413,6 +1487,18 @@
}
},
"parameters": {
"ScopeParameter": {
"name": "body",
"x-ms-parameter-location": "method",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
"PurchaseParameter": {
"name": "body",
"x-ms-parameter-location": "method",
Expand Down

0 comments on commit 00e2f7f

Please sign in to comment.