Skip to content

Commit

Permalink
[Azure Stack] Updates to User-Subscriptions Spec (#8914)
Browse files Browse the repository at this point in the history
* commit 4691c2a
Author: Rakesh Kumar <rakku@microsoft.com>
Date:   Wed Jan 29 17:46:01 2020 -0800

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

commit 9e551f0
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
  • Loading branch information
viananth authored Aug 13, 2020
1 parent b2a3016 commit 1b430eb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/NewSubscriptionParameter"
"$ref": "#/parameters/SubscriptionDefinitionParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,33 +82,13 @@ csharp:
clear-output-folder: true
```
## Python
These settings apply only when `--python` is specified on the command line.

``` yaml $(python)
python:
# override the default output folder
output-folder: $(output-folder)/python
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
```

### Tag: package-2015-11-01 and python

These settings apply only when `--tag=package-2015-11-01 --python` is specified on the command line.

``` yaml $(tag) == 'package-2015-11-01' && $(python)
namespace: azure.mgmt.subscriptions.v2015_06_01_preview
```

## Multi-API/Profile support for AutoRest v3 generators
## 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 */
``` yaml
# include the azure profile definitions from the standard location
require: $(this-folder)/../../../../profiles/readme.md
Expand All @@ -127,3 +107,22 @@ uncomment the `exclude-file` section below and add the file paths.
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```

## Python

These settings apply only when `--python` is specified on the command line.

``` yaml $(python)
python:
# override the default output folder
output-folder: $(output-folder)/python
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
```

### Tag: package-2015-11-01 and python

These settings apply only when `--tag=package-2015-11-01 --python` is specified on the command line.

``` yaml $(tag) == 'package-2015-11-01' && $(python)
namespace: azure.mgmt.subscriptions.v2015_06_01_preview
```

0 comments on commit 1b430eb

Please sign in to comment.