[Azure Stack] Updates to User-Subscriptions Spec (#8914)

* commit 4691c2abaae8c32062d6a45d173075a35bee1ff7
Author: Rakesh Kumar <rakku@microsoft.com>
Date:   Wed Jan 29 17:46:01 2020 -0800

    [AzureStack] User Subscription: rename NewSubscription to SubscriptionDefinition (#8257)

commit 9e551f0eab4057d4c2f54c333c7aa2a1a564c125
Author: bganapa <bganapa@microsoft.com>
Date:   Tue Nov 12 11:44:22 2019 -0800

    Reset to Stackadmin2 (#7766)

* Fix sub def in example

* Address PR comments

* Fix model validation error

* Fix prettier issue
This commit is contained in:
Vishnu Priya Ananthu Sundaram 2020-08-12 22:17:25 -07:00 коммит произвёл GitHub
Родитель b2a301670e
Коммит 1b430eb30d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 35 добавлений и 38 удалений

Просмотреть файл

@ -91,7 +91,7 @@
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/NewSubscriptionParameter"
"$ref": "#/parameters/SubscriptionDefinitionParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
@ -263,9 +263,9 @@
"description": "Id of the subscription.",
"x-ms-parameter-location": "method"
},
"NewSubscriptionParameter": {
"SubscriptionDefinitionParameter": {
"description": "Subscription parameter.",
"name": "newSubscription",
"name": "subscriptionDefinition",
"in": "body",
"schema": {
"$ref": "#/definitions/Subscription"

Просмотреть файл

@ -3,15 +3,13 @@
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"location": "local",
"api-version": "2015-11-01",
"newSubscription": {
"properties": {
"displayName": "Test User-user1@contoso.com",
"id": "",
"offerId": "/delegatedProviders/default/offers/TestOffer-0892f99c-8d1c-48d1-a2b3-128a931afc09",
"state": "Enabled",
"subscriptionId": "a7aeb2dd-1b1d-458c-a3dc-09070c2ece5e",
"tenantId": ""
}
"subscriptionDefinition": {
"displayName": "Test User-user1@contoso.com",
"id": "",
"offerId": "/delegatedProviders/default/offers/TestOffer-0892f99c-8d1c-48d1-a2b3-128a931afc09",
"state": "Enabled",
"subscriptionId": "a7aeb2dd-1b1d-458c-a3dc-09070c2ece5e",
"tenantId": ""
}
},
"responses": {

Просмотреть файл

@ -82,6 +82,31 @@ csharp:
clear-output-folder: true
```
## Multi-API/Profile support for AutoRest v3 generators
AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
This block is updated by an automatic script. Edits may be lost!
``` yaml
# include the azure profile definitions from the standard location
require: $(this-folder)/../../../../profiles/readme.md
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Subscriptions.json
- $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Offer.json
```
If there are files that should not be in the `all-api-versions` set,
uncomment the `exclude-file` section below and add the file paths.
``` yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
## Python
These settings apply only when `--python` is specified on the command line.
@ -101,29 +126,3 @@ These settings apply only when `--tag=package-2015-11-01 --python` is specified
``` yaml $(tag) == 'package-2015-11-01' && $(python)
namespace: azure.mgmt.subscriptions.v2015_06_01_preview
```
## Multi-API/Profile support for AutoRest v3 generators
AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
This block is updated by an automatic script. Edits may be lost!
``` yaml $(tag) == 'all-api-versions' /* autogenerated */
# include the azure profile definitions from the standard location
require: $(this-folder)/../../../../profiles/readme.md
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Subscriptions.json
- $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Offer.json
```
If there are files that should not be in the `all-api-versions` set,
uncomment the `exclude-file` section below and add the file paths.
``` yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```