-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[Hub Generated] Review request for Microsoft.AzureStack to add version stable/2016-01-01 #12876
Merged
allenjzhang
merged 10 commits into
Azure:master
from
ionuttulai:dev-azurestack-Microsoft.AzureStack-2016-01-01
Feb 17, 2021
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
97c2600
Adds base for updating Microsoft.AzureStack from version stable/2017-…
ionuttulai 242307d
Updates readme
ionuttulai 097fe1c
Updates API version in new specs and examples
ionuttulai 906de13
missing changes
ionuttulai e32eb33
readme changes
ionuttulai 17cf20c
added operations path
ionuttulai 5428a23
added missing examples
ionuttulai 74e777e
merged from upstream master
ionuttulai 2dfff6b
switched back to old default package version
ionuttulai ef8ee95
Removed local ref to generic types
ionuttulai 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
282 changes: 282 additions & 0 deletions
282
...cation/azurestack/resource-manager/Microsoft.AzureStack/stable/2016-01-01/AzureStack.json
This file contains 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,282 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2016-01-01", | ||
"title": "Azure Stack Azure Bridge Client" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"paths": { | ||
"/providers/Microsoft.AzureStack/operations": { | ||
"get": { | ||
"x-ms-examples": { | ||
"Returns the list of supported REST operations.": { | ||
"$ref": "./examples/Operation/List.json" | ||
} | ||
}, | ||
"description": "Returns the list of supported REST operations.", | ||
"tags": [ | ||
"AzureStack" | ||
], | ||
"operationId": "Operations_List", | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/OperationList" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"Resource": { | ||
"description": "Base resource object.", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"readOnly": true, | ||
"description": "ID of the resource.", | ||
"type": "string" | ||
}, | ||
"name": { | ||
"readOnly": true, | ||
"description": "Name of the resource.", | ||
"type": "string" | ||
}, | ||
"type": { | ||
"readOnly": true, | ||
"description": "Type of Resource.", | ||
"type": "string" | ||
}, | ||
"etag": { | ||
"description": "The entity tag used for optimistic concurrency when modifying the resource.", | ||
"type": "string" | ||
} | ||
}, | ||
"x-ms-azure-resource": true | ||
}, | ||
"TrackedResource": { | ||
"description": "Base resource object.", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"readOnly": true, | ||
"description": "ID of the resource.", | ||
"type": "string" | ||
}, | ||
"name": { | ||
"readOnly": true, | ||
"description": "Name of the resource.", | ||
"type": "string" | ||
}, | ||
"type": { | ||
"readOnly": true, | ||
"description": "Type of Resource.", | ||
"type": "string" | ||
}, | ||
"location": { | ||
"description": "Location of the resource.", | ||
"type": "string", | ||
"enum": [ | ||
"global" | ||
], | ||
"x-ms-enum": { | ||
"name": "Location", | ||
"modelAsString": true | ||
}, | ||
"x-ms-mutability": [ | ||
"create", | ||
"read" | ||
] | ||
}, | ||
"tags": { | ||
"description": "Custom tags for the resource.", | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
}, | ||
"etag": { | ||
"description": "The entity tag used for optimistic concurrency when modifying the resource.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"location" | ||
], | ||
"x-ms-azure-resource": true | ||
}, | ||
"ProvisioningState": { | ||
"description": "The provisioning state of the resource.", | ||
"enum": [ | ||
"Creating", | ||
"Failed", | ||
"Succeeded", | ||
"Canceled" | ||
], | ||
"type": "string", | ||
"x-ms-enum": { | ||
"name": "ProvisioningState" | ||
} | ||
}, | ||
"Operation": { | ||
"description": "Describes the supported REST operation.", | ||
"properties": { | ||
"name": { | ||
"description": "The name of the operation being performed on this particular object.", | ||
"type": "string" | ||
}, | ||
"display": { | ||
"description": "Contains the localized display information for this particular operation or action.", | ||
"$ref": "#/definitions/Display" | ||
}, | ||
"origin": { | ||
"description": "The intended executor of the operation.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"Display": { | ||
"description": "Contains the localized display information for this particular operation or action.", | ||
"properties": { | ||
"provider": { | ||
"description": "The localized, friendly version of the resource provider name.", | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"description": "The localized, friendly version of the resource type related to this action or operation; the resource type should match the public documentation for the resource provider.", | ||
"type": "string" | ||
}, | ||
"operation": { | ||
"description": "The localized, friendly name for the operation. Use the name as it will displayed to the user.", | ||
"type": "string" | ||
}, | ||
"description": { | ||
"description": "The localized, friendly description for the operation. The description will be displayed to the user. It should be thorough and concise for used in both tooltips and detailed views.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"OperationList": { | ||
"description": "List of Operations", | ||
"properties": { | ||
"value": { | ||
"description": "Array of operations", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Operation" | ||
} | ||
}, | ||
"nextLink": { | ||
"description": "URI to the next page of operations.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"ErrorDetails": { | ||
"description": "The details of the error.", | ||
"properties": { | ||
"code": { | ||
"description": "Error code.", | ||
"type": "string", | ||
"readOnly": true | ||
}, | ||
"message": { | ||
"description": "Error message indicating why the operation failed.", | ||
"type": "string", | ||
"readOnly": true | ||
}, | ||
"target": { | ||
"description": "The target of the particular error.", | ||
"type": "string", | ||
"readOnly": true | ||
} | ||
} | ||
}, | ||
"ErrorResponse": { | ||
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", | ||
"type": "object", | ||
"properties": { | ||
"error": { | ||
"description": "The details of the error.", | ||
"$ref": "#/definitions/ErrorDetails" | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
"SubscriptionIdParameter": { | ||
"name": "subscriptionId", | ||
"in": "path", | ||
"description": "Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
"ApiVersionParameter": { | ||
"name": "api-version", | ||
"in": "query", | ||
"description": "Client API Version.", | ||
"required": true, | ||
"type": "string", | ||
"default": "2016-01-01" | ||
}, | ||
"ResourceGroupNameParameter": { | ||
"description": "Name of the resource group.", | ||
"name": "resourceGroup", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"x-ms-parameter-location": "method" | ||
}, | ||
"RegistrationNameParameter": { | ||
"description": "Name of the Azure Stack registration.", | ||
"name": "registrationName", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"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" | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to define your own - you can reuse from common-types/resource-management/v2/types.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and pretty much everything else in this file
In reply to: 572604325 [](ancestors = 572604325)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the generic types and referenced the ones in common-types folder.