Skip to content

Commit

Permalink
subscription quick fix (#10486)
Browse files Browse the repository at this point in the history
* subscription quick fix

* Update readme.go.md

add configuration for latest tag

* Update subscriptions.json

* quick fix

* Update specification/subscription/resource-manager/readme.go.md

Co-authored-by: Arcturus <[email protected]>

Co-authored-by: Arcturus <[email protected]>
  • Loading branch information
dw511214992 and ArcturusZhang authored Aug 21, 2020
1 parent e83adc1 commit 09a8448
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel": {
"post": {
"tags": [
"Subscription"
],
"operationId": "Subscription_Cancel",
"x-ms-examples": {
"cancelSubscription": {
Expand Down Expand Up @@ -51,6 +54,9 @@
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename": {
"post": {
"tags": [
"Subscription"
],
"operationId": "Subscription_Rename",
"x-ms-examples": {
"renameSubscription": {
Expand Down Expand Up @@ -87,6 +93,9 @@
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable": {
"post": {
"tags": [
"Subscription"
],
"operationId": "Subscription_Enable",
"x-ms-examples": {
"enableSubscription": {
Expand Down Expand Up @@ -120,6 +129,9 @@
},
"/providers/Microsoft.Subscription/operations": {
"get": {
"tags": [
"Operations"
],
"description": "Lists all of the available Microsoft.Subscription API operations.",
"operationId": "Operations_List",
"x-ms-examples": {
Expand Down Expand Up @@ -150,8 +162,11 @@
},
"/providers/Microsoft.Subscription/aliases/{aliasName}": {
"put": {
"tags": [
"Alias"
],
"description": "Create Alias Subscription.",
"operationId": "Subscription_CreateAlias",
"operationId": "Alias_Create",
"x-ms-examples": {
"CreateAlias": {
"$ref": "./examples/createAlias.json"
Expand Down Expand Up @@ -196,8 +211,11 @@
]
},
"get": {
"tags": [
"Alias"
],
"description": "Get Alias Subscription.",
"operationId": "Subscription_GetAlias",
"operationId": "Alias_Get",
"x-ms-examples": {
"GetAlias": {
"$ref": "./examples/getAlias.json"
Expand Down Expand Up @@ -227,8 +245,11 @@
]
},
"delete": {
"tags": [
"Alias"
],
"description": "Delete Alias.",
"operationId": "Subscription_DeleteAlias",
"operationId": "Alias_Delete",
"x-ms-examples": {
"DeleteAlias": {
"$ref": "./examples/deleteAlias.json"
Expand Down Expand Up @@ -260,8 +281,11 @@
},
"/providers/Microsoft.Subscription/aliases": {
"get": {
"tags": [
"Alias"
],
"description": "Get Alias Subscription.",
"operationId": "Subscription_ListAlias",
"operationId": "Alias_List",
"x-ms-examples": {
"GetAlias": {
"$ref": "./examples/listAlias.json"
Expand Down Expand Up @@ -399,6 +423,9 @@
},
"PutAliasRequest": {
"description": "The parameters required to create a new subscription.",
"required": [
"properties"
],
"type": "object",
"properties": {
"properties": {
Expand Down
12 changes: 11 additions & 1 deletion specification/subscription/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,21 @@ go:
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2020-09
- tag: package-2019-10-preview
- tag: package-2018-03-preview
- tag: package-2017-11-preview
```
### Tag: package-2020-09 and go
These settings apply only when `--tag=package-2020-09 --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag)=='package-2020-09' && $(go)
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-09-01/$(namespace)
```

### Tag: package-2019-10-preview and go

These settings apply only when `--tag=package-2019-10-preview --go` is specified on the command line.
Expand All @@ -43,4 +53,4 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s

``` yaml $(tag)=='package-2017-11-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2017-11-01-preview/$(namespace)
```
```

0 comments on commit 09a8448

Please sign in to comment.