Skip to content

Commit

Permalink
[AzureStack] [Admin API] ACR Admin swagger spec changes (Azure#14290)
Browse files Browse the repository at this point in the history
* ACR Admin swagger spec changes

* Release/larisab (#1)

* Add swagger spec for acr setup.

* Add swagger spec for acr setup - fixed jsons.

* Add swagger spec for acr setup - address feedback to convert get status to post.

* Add swagger spec for acr setup - fixed typo.

* Add swagger spec for acr setup - added setup specs to readme.

* Add swagger spec for acr setup - fixed checkSetup definitions.

* Add swagger spec for acr setup - addressed comments.

* Add swagger spec for acr setup - addressed ARM feedback.

* Add swagger spec for acr setup - added proper input-files n readme.

* Add swagger spec for acr setup - fixed inavalid scheme.

* Add swagger spec for acr setup - fixed inavalid method Post instaed of Get.

Co-authored-by: Larysa Borodina <larisab@microsoft.com>

* Update API changes (Azure#2)

* Update API changes

* Add delete call implementation

* update examples

* Fix swagger validation errors. (Azure#3)

* Fix swagger validation errors - 2-nd. (Azure#4)

* Fix model validation fix

* Fix swagger validation errors - 3d. (Azure#5)

* Fix swagger validation errors - 4th. (Azure#6)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Release/acrchanges (Azure#8)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Release/acrchanges (Azure#9)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Release/larisab (Azure#11)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 12th.

* Release/acrchanges (Azure#12)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Release/acrchanges (Azure#13)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Release/acrchanges (Azure#14)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Release/acrchanges (Azure#15)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Release/acrchanges (Azure#16)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Release/acrchanges (Azure#17)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Release/acrchanges (Azure#18)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Fix swagger validation errors - 25th.

* Release/acrchanges (Azure#19)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Fix swagger validation errors - 25th.

* Fix swagger validation errors - 26th

* Release/acrchanges (Azure#20)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Fix swagger validation errors - 25th.

* Fix swagger validation errors - 26th

* Fix swagger validation errors - 27th

* Fix swagger validation errors - 28th

* Fix swagger validation errors - 29th

* Fix swagger validation errors - 30th

* Release/acrchanges (Azure#21)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Fix swagger validation errors - 25th.

* Fix swagger validation errors - 26th

* Fix swagger validation errors - 27th

* Fix swagger validation errors - 28th

* Fix swagger validation errors - 29th

* Fix swagger validation errors - 30th

* Fix swagger validation errors - 31th

* Release/acrchanges (Azure#22)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Fix swagger validation errors - 25th.

* Fix swagger validation errors - 26th

* Fix swagger validation errors - 27th

* Fix swagger validation errors - 28th

* Fix swagger validation errors - 29th

* Fix swagger validation errors - 30th

* Fix swagger validation errors - 31th

* Fix swagger specs, address comments and naming bug - 32th

* Fix swagger specs, address comments and naming bug - 33th

* Release/acrchanges (Azure#23)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Fix swagger validation errors - 25th.

* Fix swagger validation errors - 26th

* Fix swagger validation errors - 27th

* Fix swagger validation errors - 28th

* Fix swagger validation errors - 29th

* Fix swagger validation errors - 30th

* Fix swagger validation errors - 31th

* Fix swagger specs, address comments and naming bug - 32th

* Fix swagger specs, address comments and naming bug - 33th

* Fix swagger specs - 34th

* Release/acrchanges (Azure#24)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Fix swagger validation errors - 25th.

* Fix swagger validation errors - 26th

* Fix swagger validation errors - 27th

* Fix swagger validation errors - 28th

* Fix swagger validation errors - 29th

* Fix swagger validation errors - 30th

* Fix swagger validation errors - 31th

* Fix swagger specs, address comments and naming bug - 32th

* Fix swagger specs, address comments and naming bug - 33th

* Fix swagger specs - 34th

* Test cmdlet name creation with recommended operation id for quota

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Release/acrchanges (Azure#25)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Fix swagger validation errors - 25th.

* Fix swagger validation errors - 26th

* Fix swagger validation errors - 27th

* Fix swagger validation errors - 28th

* Fix swagger validation errors - 29th

* Fix swagger validation errors - 30th

* Fix swagger validation errors - 31th

* Fix swagger specs, address comments and naming bug - 32th

* Fix swagger specs, address comments and naming bug - 33th

* Fix swagger specs - 34th

* Test cmdlet name creation with recommended operation id for quota

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Use v2 common resource types.

* Release/acrchanges (Azure#26)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Fix swagger validation errors - 25th.

* Fix swagger validation errors - 26th

* Fix swagger validation errors - 27th

* Fix swagger validation errors - 28th

* Fix swagger validation errors - 29th

* Fix swagger validation errors - 30th

* Fix swagger validation errors - 31th

* Fix swagger specs, address comments and naming bug - 32th

* Fix swagger specs, address comments and naming bug - 33th

* Fix swagger specs - 34th

* Test cmdlet name creation with recommended operation id for quota

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Use v2 common resource types.

* Use v2 common resource types for parameters also.

* Release/acrchanges (Azure#27)

* Fix swagger validation errors - 4th.

* Fix swagger validation errors - 5th.

* Fix swagger validation errors - 6th.

* Fix swagger validation errors - 7th.

* Fix swagger validation errors - 13th.

* Fix swagger validation errors - 14th.

* Fix swagger validation errors - 15th.

* Fix swagger validation errors - 16th.

* Fix swagger validation errors - 17th.

* Fix swagger validation errors - 18th.

* Fix swagger validation errors - 19th.

* Fix swagger validation errors - 20th.

* Fix swagger validation errors - 21th.

* Fix swagger validation errors - 21st.

* Fix swagger validation errors - 22st.

* Fix swagger validation errors - 23st.

* Fix swagger validation errors - 24st.

* Fix swagger validation errors - 25th.

* Fix swagger validation errors - 26th

* Fix swagger validation errors - 27th

* Fix swagger validation errors - 28th

* Fix swagger validation errors - 29th

* Fix swagger validation errors - 30th

* Fix swagger validation errors - 31th

* Fix swagger specs, address comments and naming bug - 32th

* Fix swagger specs, address comments and naming bug - 33th

* Fix swagger specs - 34th

* Test cmdlet name creation with recommended operation id for quota

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Test cmdlet name creation with recommended operation id

* Use v2 common resource types.

* Use v2 common resource types for parameters also.

* Use v2 common resource types for parameters also. - fixed the readme to remove unneeded file

Co-authored-by: Rohit Jaini <rjaini@microsoft.com>
Co-authored-by: larysaborodina <larysaborodina@gmail.com>
  • Loading branch information
3 people authored Jun 29, 2021
1 parent 9cc5127 commit 76f34ff
Show file tree
Hide file tree
Showing 22 changed files with 1,749 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"swagger": "2.0",
"info": {
"version": "2019-11-01-preview",
"title": "ContainerRegistryManagementClient",
"description": "Admin Container Registry Management Client."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry.Admin/locations/{location}/capacities/{capacityName}": {
"get": {
"x-ms-examples": {
"Returns container registry capacity properties.": {
"$ref": "./examples/Configuration/GetCapacity.json"
}
},
"tags": [
"ContainerRegistryCapacity"
],
"description": "Returns container registry capacity property.",
"operationId": "ContainerRegistryCapacity_Get",
"parameters": [
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/LocationParameter"
},
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/CapacityNameParameter"
}
],
"responses": {
"200": {
"description": "OK -- Container registry capacity property is being returned.",
"schema": {
"$ref": "#/definitions/ContainerRegistryCapacity"
}
},
"default": {
"description": "Error Response.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry.Admin/locations/{location}/capacities": {
"get": {
"x-ms-examples": {
"Returns container registry capacity properties.": {
"$ref": "./examples/Configuration/ListCapacity.json"
}
},
"tags": [
"ContainerRegistryCapacities"
],
"description": "Returns a list of container registry capacity properties.",
"operationId": "ContainerRegistryCapacity_List",
"parameters": [
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/LocationParameter"
},
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK -- Container registry capacity properties are being returned.",
"schema": {
"$ref": "#/definitions/ContainerRegistryCapacityList"
}
},
"default": {
"description": "Error Response.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
"ContainerRegistryCapacity": {
"description": "Container registry capacity property.",
"type": "object",
"properties": {
"properties": {
"description": "Container registry capacity property.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/ContainerRegistryCapacityProperty"
}
},
"allOf": [
{
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/Resource"
}
]
},
"ContainerRegistryCapacityProperty": {
"description": "Container registry capacity property.",
"type": "object",
"properties": {
"maximumCapacityInGiB": {
"description": "Total storage capacity (GiB) which can used by the registry.",
"type": "integer",
"format": "int32"
},
"allowPush": {
"description": "Flag denotes if pushes are blocked for all registries.",
"type": "boolean"
},
"registriesConsumptionInGiB": {
"description": "Total storage capacity (GiB) consumed by the registry.",
"type": "number",
"format": "float"
}
}
},
"ContainerRegistryCapacityList": {
"description": "List of capacity property.",
"type": "object",
"properties": {
"value": {
"description": "List of capacity property.",
"type": "array",
"items": {
"$ref": "#/definitions/ContainerRegistryCapacity"
}
}
}
}
},
"parameters": {
"CapacityNameParameter": {
"description": "The name of the capacity parameter.",
"name": "capacityName",
"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"
]
}
]
}
Loading

0 comments on commit 76f34ff

Please sign in to comment.