Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.AzureStack to add versio…
Browse files Browse the repository at this point in the history
…n preview/2020-06-01-preview (Azure#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
ionuttulai authored and mkarmark committed Jul 20, 2021
1 parent 6695106 commit 3bd0305
Show file tree
Hide file tree
Showing 32 changed files with 3,619 additions and 6 deletions.

Large diffs are not rendered by default.

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"
]
}
]
}
Loading

0 comments on commit 3bd0305

Please sign in to comment.