-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.AzureStack to add versio…
…n preview/2020-06-01-preview (#12709) * Adds base for updating Microsoft.AzureStack from version stable/2017-06-01 to version 2020-06-01-preview * Updates readme * Updates API version in new specs and examples * initial commit for v 2020-06-01-preview * adding missing files
- Loading branch information
1 parent
d6e60da
commit 1170c11
Showing
32 changed files
with
3,619 additions
and
6 deletions.
There are no files selected for viewing
432 changes: 432 additions & 0 deletions
432
...urestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/AzureStack.json
Large diffs are not rendered by default.
Oops, something went wrong.
284 changes: 284 additions & 0 deletions
284
...esource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/CustomerSubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,284 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2020-06-01-preview", | ||
"title": "AzureStack Azure Bridge Client" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions": { | ||
"get": { | ||
"x-ms-examples": { | ||
"Returns a list of products.": { | ||
"$ref": "examples/CustomerSubscription/List.json" | ||
} | ||
}, | ||
"tags": [ | ||
"CustomerSubscription" | ||
], | ||
"description": "Returns a list of products.", | ||
"operationId": "CustomerSubscriptions_List", | ||
"parameters": [ | ||
{ | ||
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/RegistrationNameParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/CustomerSubscriptionList" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "AzureStack.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}": { | ||
"get": { | ||
"x-ms-examples": { | ||
"Returns the specified product.": { | ||
"$ref": "examples/CustomerSubscription/Get.json" | ||
} | ||
}, | ||
"tags": [ | ||
"CustomerSubscription" | ||
], | ||
"description": "Returns the specified product.", | ||
"operationId": "CustomerSubscriptions_Get", | ||
"parameters": [ | ||
{ | ||
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/RegistrationNameParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/CustomerSubscriptionNameParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/CustomerSubscription" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "AzureStack.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
}, | ||
"delete": { | ||
"x-ms-examples": { | ||
"Deletes a customer subscription under a registration.": { | ||
"$ref": "examples/CustomerSubscription/Delete.json" | ||
} | ||
}, | ||
"tags": [ | ||
"CustomerSubscription" | ||
], | ||
"description": "Deletes a customer subscription under a registration.", | ||
"operationId": "CustomerSubscriptions_Delete", | ||
"parameters": [ | ||
{ | ||
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/RegistrationNameParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/CustomerSubscriptionNameParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK" | ||
}, | ||
"204": { | ||
"description": "NO CONTENT" | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "AzureStack.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
}, | ||
"put": { | ||
"x-ms-examples": { | ||
"Creates a new customer subscription under a registration.": { | ||
"$ref": "examples/CustomerSubscription/Put.json" | ||
} | ||
}, | ||
"tags": [ | ||
"CustomerSubscription" | ||
], | ||
"description": "Creates a new customer subscription under a registration.", | ||
"operationId": "CustomerSubscriptions_Create", | ||
"parameters": [ | ||
{ | ||
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/RegistrationNameParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/CustomerSubscriptionNameParameter" | ||
}, | ||
{ | ||
"$ref": "AzureStack.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/CustomerSubscriptionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/CustomerSubscription" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "AzureStack.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"CustomerSubscription": { | ||
"description": "Customer subscription.", | ||
"type": "object", | ||
"properties": { | ||
"properties": { | ||
"description": "Customer subscription properties.", | ||
"x-ms-client-flatten": true, | ||
"$ref": "#/definitions/CustomerSubscriptionProperties" | ||
}, | ||
"systemData": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "AzureStack.json#/definitions/Resource" | ||
} | ||
] | ||
}, | ||
"CustomerSubscriptionProperties": { | ||
"description": "Customer subscription properties.", | ||
"type": "object", | ||
"properties": { | ||
"tenantId": { | ||
"description": "Tenant Id.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"CustomerSubscriptionList": { | ||
"description": "Pageable list of customer subscriptions.", | ||
"type": "object", | ||
"properties": { | ||
"nextLink": { | ||
"description": "URI to the next page.", | ||
"type": "string" | ||
}, | ||
"value": { | ||
"description": "List of customer subscriptions.", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/CustomerSubscription" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
"CustomerSubscriptionNameParameter": { | ||
"description": "Name of the product.", | ||
"name": "customerSubscriptionName", | ||
"type": "string", | ||
"in": "path", | ||
"required": true, | ||
"x-ms-parameter-location": "method" | ||
}, | ||
"CustomerSubscriptionParameter": { | ||
"description": "Parameters use to create a customer subscription.", | ||
"name": "customerCreationParameters", | ||
"schema": { | ||
"$ref": "#/definitions/CustomerSubscription" | ||
}, | ||
"in": "body", | ||
"required": true, | ||
"x-ms-parameter-location": "method" | ||
} | ||
}, | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Authorization uses an Azure Active Directory OAuth2 flow.", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.