-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add cancel and rename subscription API #5209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jhendrixMSFT
merged 17 commits into
Azure:master
from
navysingla:nasingla/cancelRenameSpecs
May 2, 2019
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1b3bfe4
Create billing.json
navysingla e217366
Update billing.json
navysingla f29e13d
Feedback changes
navysingla 824a21b
Update subscriptions.json
navysingla 425c92a
Update subscriptions.json
navysingla 602709f
Update subscriptions.json
navysingla ae5cd6c
Version change
navysingla 1696728
Update subscriptions.json
navysingla 7331afa
Added examples
navysingla 5aa8181
Update subscriptions.json
navysingla b810d18
Update subscriptions.json
navysingla 3ea3462
Update readme.md
navysingla a801869
Update readme.md
navysingla 5a63202
Update subscriptions.json
navysingla 31610c1
Feedback change
navysingla d5f393c
Suppress
navysingla bfdb50d
Added operations swagger
navysingla File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
13 changes: 13 additions & 0 deletions
13
...anager/Microsoft.Subscription/preview/2019-03-01-preview/examples/cancelSubscription.json
This file contains hidden or 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,13 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad", | ||
| "api-version": "2019-03-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": "83aa47df-e3e9-49ff-877b-94304bf3d3ad" | ||
| } | ||
| } | ||
| } | ||
| } |
29 changes: 29 additions & 0 deletions
29
...rce-manager/Microsoft.Subscription/preview/2019-03-01-preview/examples/getOperations.json
This file contains hidden or 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,29 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-03-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "Microsoft.Subscription/cancel/action", | ||
| "display": { | ||
| "provider": "Microsoft Subscription", | ||
| "resource": "Resources", | ||
| "operation": "Cancels the subscription" | ||
| } | ||
| }, | ||
| { | ||
| "name": "Microsoft.Subscription/rename/action", | ||
| "display": { | ||
| "provider": "Microsoft Subscription", | ||
| "resource": "Resources", | ||
| "operation": "Renames the subscription" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
...anager/Microsoft.Subscription/preview/2019-03-01-preview/examples/renameSubscription.json
This file contains hidden or 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,16 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad", | ||
| "api-version": "2019-03-01-preview", | ||
| "body": { | ||
| "SubscriptionName": "Test Sub" | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": "83aa47df-e3e9-49ff-877b-94304bf3d3ad" | ||
| } | ||
| } | ||
| } | ||
| } |
252 changes: 252 additions & 0 deletions
252
...ion/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/subscriptions.json
This file contains hidden or 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,252 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2019-03-01-preview", | ||
| "title": "SubscriptionClient", | ||
| "description": "Subscription client provides an interface to create and manage Azure subscriptions programmatically." | ||
| }, | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "host": "management.azure.com", | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "paths": { | ||
| "/providers/Microsoft.Subscription/operations": { | ||
| "get": { | ||
| "description": "Lists all of the available Microsoft.Subscription API operations.", | ||
| "operationId": "Operations_List", | ||
| "x-ms-examples": { | ||
| "getOperations": { | ||
| "$ref": "./examples/getOperations.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/apiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/OperationListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel": { | ||
| "post": { | ||
| "operationId": "Subscriptions_Cancel", | ||
| "x-ms-examples": { | ||
| "cancelSubscription": { | ||
| "$ref": "./examples/cancelSubscription.json" | ||
| } | ||
| }, | ||
| "description": "Cancels the subscription", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/subscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/apiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CanceledSubscriptionId" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename": { | ||
| "post": { | ||
| "operationId": "Subscriptions_Rename", | ||
| "x-ms-examples": { | ||
| "renameSubscription": { | ||
| "$ref": "./examples/renameSubscription.json" | ||
| } | ||
| }, | ||
| "description": "Renames the subscription", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/subscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/subscriptionNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/apiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/RenamedSubscriptionId" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "ErrorResponse": { | ||
| "description": "Describes the format of Error response.", | ||
| "type": "object", | ||
| "properties": { | ||
| "code": { | ||
| "description": "Error code", | ||
| "type": "string" | ||
| }, | ||
| "message": { | ||
| "description": "Error message indicating why the operation failed.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "CanceledSubscriptionId": { | ||
| "description": "Canceled Subscription Id", | ||
| "properties": { | ||
| "value": { | ||
| "description": "Canceled Subscription Id", | ||
| "type": "string", | ||
| "readOnly": true | ||
| } | ||
| } | ||
| }, | ||
| "RenamedSubscriptionId": { | ||
| "description": "Renamed Subscription Id", | ||
| "properties": { | ||
| "value": { | ||
| "description": "Renamed Subscription Id", | ||
| "type": "string", | ||
| "readOnly": true | ||
| } | ||
| } | ||
| }, | ||
| "SubscriptionName": { | ||
| "type": "object", | ||
| "description": "New name of the subscription.", | ||
| "properties": { | ||
| "subscriptionName": { | ||
| "type": "string", | ||
| "description": "New subscription name" | ||
| } | ||
| } | ||
| }, | ||
| "OperationListResult": { | ||
| "description": "Result of the request to list operations. It contains a list of operations and a URL link to get the next set of results.", | ||
| "properties": { | ||
| "value": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/Operation" | ||
| }, | ||
| "description": "List of operations." | ||
| }, | ||
| "nextLink": { | ||
| "type": "string", | ||
| "description": "URL to get the next set of operation list results if there are any." | ||
| } | ||
| } | ||
| }, | ||
| "Operation": { | ||
| "description": "REST API operation", | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { | ||
| "description": "Operation name: {provider}/{resource}/{operation}", | ||
| "type": "string" | ||
| }, | ||
| "display": { | ||
| "description": "The object that represents the operation.", | ||
| "properties": { | ||
| "provider": { | ||
| "description": "Service provider: Microsoft.Subscription", | ||
| "type": "string" | ||
| }, | ||
| "resource": { | ||
| "description": "Resource on which the operation is performed: Profile, endpoint, etc.", | ||
| "type": "string" | ||
| }, | ||
| "operation": { | ||
| "description": "Operation type: Read, write, delete, etc.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "apiVersionParameter": { | ||
| "name": "api-version", | ||
| "in": "query", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "Version of the API to be used with the client request. Current version is 2019-03-01-preview" | ||
| }, | ||
| "subscriptionIdParameter": { | ||
| "name": "subscriptionId", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "Subscription Id." | ||
| }, | ||
| "subscriptionNameParameter": { | ||
| "name": "body", | ||
| "x-ms-parameter-location": "method", | ||
| "in": "body", | ||
| "required": true, | ||
| "description": "Subscription Name", | ||
| "schema": { | ||
| "$ref": "#/definitions/SubscriptionName" | ||
| } | ||
| } | ||
| }, | ||
| "security": [ | ||
| { | ||
| "azure_auth": [ | ||
| "user_impersonation" | ||
| ] | ||
| } | ||
| ], | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.