diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/capacity.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/capacity.json new file mode 100644 index 000000000000..febe3c2514e2 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/capacity.json @@ -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" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/configuration.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/configuration.json new file mode 100644 index 000000000000..e652eb31a23d --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/configuration.json @@ -0,0 +1,264 @@ +{ + "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}/configurations/{configurationName}": { + "put": { + "x-ms-examples": { + "Returns container registry overall configuration properties.": { + "$ref": "./examples/Configuration/PutConfiguration.json" + } + }, + "tags": [ + "ContainerRegistryConfiguration" + ], + "description": "Configure container registry overall configuration properties.", + "operationId": "ContainerRegistryConfiguration_Put", + "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/ConfigurationNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Container registry overall configuration properties is being returned.", + "schema": { + "$ref": "#/definitions/ContainerRegistryConfiguration" + } + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete an existing container registry quota.": { + "$ref": "./examples/Configuration/DeleteConfiguration.json" + } + }, + "tags": [ + "ContainerRegistryConfiguration" + ], + "description": "Delete an existing container registry configuration", + "operationId": "ContainerRegistryConfiguration_Delete", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK -- The container registry configuration has been deleted." + }, + "204": { + "description": "NotFound -- The container registry configuration not found." + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "x-ms-examples": { + "Returns the specified configuration.": { + "$ref": "./examples/Configuration/GetConfiguration.json" + } + }, + "tags": [ + "ContainerRegistryConfiguration" + ], + "description": "Returns the specified configuration details.", + "operationId": "ContainerRegistryConfiguration_Get", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK -- The configuration has been returned.", + "schema": { + "$ref": "#/definitions/ContainerRegistryConfiguration" + } + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry.Admin/locations/{location}/configurations": { + "get": { + "x-ms-examples": { + "Returns a list of configuration at the given location.": { + "$ref": "./examples/Configuration/ListConfiguration.json" + } + }, + "tags": [ + "ContainerRegistryConfiguration" + ], + "description": "Returns a list of configuration at the given location.", + "operationId": "ContainerRegistryConfiguration_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 -- The list of configuration has been returned.", + "schema": { + "$ref": "#/definitions/ContainerRegistryConfigurationList" + } + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "ContainerRegistryConfiguration": { + "description": "Container registry configuration property.", + "type": "object", + "properties": { + "properties": { + "description": "Container registry configuration property.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ContainerRegistryConfigurationProperty" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ] + }, + "ContainerRegistryConfigurationProperty": { + "description": "Container registry configuration property.", + "type": "object", + "properties": { + "maximumCapacityInGiB": { + "description": "Total storage capacity (GiB) which can used by the registry.", + "type": "integer", + "format": "int32" + } + } + }, + "ContainerRegistryConfigurationList": { + "description": "List of configuration.", + "type": "object", + "properties": { + "value": { + "description": "List of configuration.", + "type": "array", + "items": { + "$ref": "#/definitions/ContainerRegistryConfiguration" + } + } + } + } + }, + "parameters": { + "ConfigurationNameParameter": { + "description": "The name of the configuration.", + "name": "configurationName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ConfigurationParameter": { + "description": "The properties of configuration being created or updated.", + "name": "configurationObject", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ContainerRegistryConfiguration" + }, + "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" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/DeleteConfiguration.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/DeleteConfiguration.json new file mode 100644 index 000000000000..4546df16a13a --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/DeleteConfiguration.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "location": "local", + "configurationName": "Default", + "api-version": "2019-11-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/GetCapacity.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/GetCapacity.json new file mode 100644 index 000000000000..ab8e07e38fcb --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/GetCapacity.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-11-01-preview", + "location": "local", + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "capacityName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Admin/locations/local/capacities/Default", + "name": "local/Default", + "type": "Microsoft.ContainerRegistry.Admin/locations/capacities", + "properties": { + "maximumCapacityInGiB": 100, + "registriesConsumptionInGiB": 50.12, + "allowPush": true + } + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/GetConfiguration.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/GetConfiguration.json new file mode 100644 index 000000000000..4c4d4f60bc54 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/GetConfiguration.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-11-01-preview", + "location": "local", + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "configurationName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Admin/locations/local/configurations/Default", + "name": "local/Default", + "type": "Microsoft.ContainerRegistry.Admin/locations/configurations", + "properties": { + "maximumCapacityInGiB": 100 + } + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/ListCapacity.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/ListCapacity.json new file mode 100644 index 000000000000..a9002248457d --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/ListCapacity.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "location": "local", + "api-version": "2019-11-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Admin/locations/local/capacities/Default", + "name": "local/Default", + "type": "Microsoft.ContainerRegistry.Admin/locations/capacities", + "properties": { + "maximumCapacityInGiB": 100, + "registriesConsumptionInGiB": 50.12, + "allowPush": true + } + } + ] + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/ListConfiguration.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/ListConfiguration.json new file mode 100644 index 000000000000..b39b129eac7d --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/ListConfiguration.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "location": "local", + "api-version": "2019-11-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Admin/locations/local/configurations/Default", + "name": "local/Default", + "type": "Microsoft.ContainerRegistry.Admin/locations/configurations", + "properties": { + "maximumCapacityInGiB": 100 + } + } + ] + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/PutConfiguration.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/PutConfiguration.json new file mode 100644 index 000000000000..4edd55e0794b --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Configuration/PutConfiguration.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-11-01-preview", + "location": "local", + "configurationName": "Default", + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "configurationObject": { + "properties": { + "maximumCapacityInGiB": 10 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Admin/locations/local/configurations/Default", + "name": "local/Default", + "type": "Microsoft.ContainerRegistry.Admin/locations/configurations", + "properties": { + "maximumCapacityInGiB": 10 + } + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Operations/List.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Operations/List.json new file mode 100644 index 000000000000..aca2b8331077 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Operations/List.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "api-version": "2019-11-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerRegistry.Admin/locations/quotas/read", + "display": { + "provider": "Microsoft.ContainerRegistry.Admin", + "resource": "Quotas", + "operation": "List/Get Registry Quota(s)", + "description": "Gets a list of all Registry quota resources in the specified location." + } + }, + { + "name": "Microsoft.ContainerRegistry.Admin/locations/quotas/write", + "display": { + "provider": "Microsoft.ContainerRegistry.Admin", + "resource": "Quotas", + "operation": "Create/Update Registry Quota", + "description": "Creates a Registry quota resource or modifies the quota values in the specified location." + } + }, + { + "name": "Microsoft.ContainerRegistry.Admin/locations/quotas/delete", + "display": { + "provider": "Microsoft.ContainerRegistry.Admin", + "resource": "Quotas", + "operation": "Delete Registry Quota", + "description": "Deletes the given Registry quota resource from the specified location." + } + }, + { + "name": "Microsoft.ContainerRegistry.Admin/operations/read", + "display": { + "provider": "Microsoft.ContainerRegistry.Admin", + "resource": "Operations", + "operation": "List Available Operations", + "description": "Lists operations available on registry resource provider" + } + }, + { + "name": "Microsoft.ContainerRegistry.Admin/locations/capacity/read", + "display": { + "provider": "Microsoft.ContainerRegistry.Admin", + "resource": "Registry Capacity Action", + "operation": "Get Registry Capacity Setting", + "description": "Returns registry capacity property." + } + }, + { + "name": "Microsoft.ContainerRegistry.Admin/locations/configuration/read", + "display": { + "provider": "Microsoft.ContainerRegistry.Admin", + "resource": "Registry configuration", + "operation": "Get Registry stamp configuration action", + "description": "Returns properties for registry stamp configuration." + } + }, + { + "name": "Microsoft.ContainerRegistry.Admin/locations/configuration/write", + "display": { + "provider": "Microsoft.ContainerRegistry.Admin", + "resource": "Registry configuration", + "operation": "Update registry stamp configuration action", + "description": "Update registry stamp configuration." + } + }, + { + "name": "Microsoft.ContainerRegistry.Admin/locations/registries/read", + "display": { + "provider": "Microsoft.ContainerRegistry.Admin", + "resource": "Registries", + "operation": "List Registries", + "description": "Returns properties for the registries." + } + }, + { + "name": "Microsoft.ContainerRegistry.Admin/startSetup/action", + "display": { + "provider": "Microsoft.ContainerRegistry.Setup", + "resource": "Start setup", + "operation": "Start container registry certificate upload and service deployment", + "description": "Update registry stamp configuration." + } + }, + { + "name": "Microsoft.ContainerRegistry.Admin/setupStatus/read", + "display": { + "provider": "Microsoft.ContainerRegistry.Setup", + "resource": "Setup status", + "operation": "Get status of container registry certificate upload and service deployment", + "description": "Get status of container registry certificate upload and service deployment." + } + } + ] + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/CreateOrUpdate.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/CreateOrUpdate.json new file mode 100644 index 000000000000..2937812393aa --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/CreateOrUpdate.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "location": "local", + "quotaName": "TestCreateQuota", + "api-version": "2019-11-01-preview", + "quotaObject": { + "properties": { + "numberOfRegistries": 10, + "capacityPerRegistryInGiB": 50 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Admin/locations/local/quotas/TestCreateQuota", + "name": "local/TestCreateQuota", + "type": "Microsoft.ContainerRegistry.Admin/locations/quotas", + "properties": { + "numberOfRegistries": 10, + "capacityPerRegistryInGiB": 50 + } + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/Delete.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/Delete.json new file mode 100644 index 000000000000..ee8823b69a78 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "location": "local", + "quotaName": "TestCreateQuota", + "api-version": "2019-11-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/Get.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/Get.json new file mode 100644 index 000000000000..d0dd163b576a --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/Get.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "location": "local", + "quotaName": "TestCreateQuota", + "api-version": "2019-11-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Admin/locations/local/quotas/TestCreateQuota", + "name": "local/TestCreateQuota", + "type": "Microsoft.ContainerRegistry.Admin/locations/quotas", + "properties": { + "numberOfRegistries": 10, + "capacityPerRegistryInGiB": 50 + } + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/List.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/List.json new file mode 100644 index 000000000000..695010a07054 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Quotas/List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "location": "local", + "api-version": "2019-11-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Admin/locations/local/quotas/TestCreateQuota", + "name": "local/TestCreateQuota", + "type": "Microsoft.ContainerRegistry.Admin/locations/quotas", + "properties": { + "numberOfRegistries": 10, + "capacityPerRegistryInGiB": 50 + } + } + ] + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Setup/Get.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Setup/Get.json new file mode 100644 index 000000000000..2a02836a8746 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Setup/Get.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "api-version": "2019-11-01-preview", + "location": "local" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Setup/locations/local/setup", + "name": "value", + "type": "Microsoft.ContainerRegistry.Setup/locations/global/setup", + "properties": { + "status": "SetupCompleted" + } + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Setup/Start.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Setup/Start.json new file mode 100644 index 000000000000..b5cf9ed01d3a --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/Setup/Start.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-11-01-preview", + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "location": "local", + "configurationName": "Default", + "startSetupRequest": { + "password": "password", + "sslCertBase64": "sslCertBase64" + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Setup/locations/global/setup", + "name": "value", + "type": "Microsoft.ContainerRegistry.Setup/locations/global/setup", + "properties": { + "statusUri": "https://adminmanagement.redmond.ext-v.masd.stbtest.microsoft.com/subscriptions/731e84f5-d31e-4c6a-aa1d-546d6bfb2789/providers/Microsoft.ContainerRegistry.Setup/locations/local/setup?api-version=2019-11-01-preview" + } + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/registries/List.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/registries/List.json new file mode 100644 index 000000000000..8ec1fcb9c198 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/examples/registries/List.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "9ad61516-995c-4873-a21f-7e44904f0ed2", + "location": "local", + "api-version": "2019-11-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.ContainerRegistry.Admin/locations/local/registries/testregistry", + "name": "local/testregistry", + "type": "Microsoft.ContainerRegistry.Admin/locations/registries", + "properties": { + "registryId": "/subscriptions/9a20956c-05fe-4c72-aa29-b2a1e5b802a7/resourceGroups/localResource/providers/Microsoft.ContainerRegistry/registries/testregistry", + "name": "testregistry", + "location": "local", + "creationDate": "2021-04-09T17:02:09.9839001Z", + "subscriptionId": "9a20956c-05fe-4c72-aa29-b2a1e5b802a7", + "resourceGroup": "localResource", + "registrySizeInBytes": 0 + } + } + ] + } + } + } +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/operations.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/operations.json new file mode 100644 index 000000000000..ab1608cc86c7 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/operations.json @@ -0,0 +1,132 @@ +{ + "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": { + "/providers/Microsoft.ContainerRegistry.Admin/operations": { + "get": { + "x-ms-examples": { + "Get the list of support rest operations.": { + "$ref": "./examples/Operations/List.json" + } + }, + "description": "Get the list of supported admin container registry rest operations.", + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- The list of operations has been returned.", + "schema": { + "$ref": "#/definitions/OperationList" + } + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Operation": { + "description": "Describes the supported REST operation.", + "type": "object", + "properties": { + "name": { + "description": "The name of the operation being performed on this particular object. It should match the action name that appears in RBAC / the event service.", + "type": "string", + "readOnly": true + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "display": { + "description": "Contains the localized display information for this particular operation / action.", + "$ref": "#/definitions/Display", + "readOnly": true + } + } + }, + "Display": { + "description": "Contains the localized display information for this particular operation / action.", + "type": "object", + "properties": { + "provider": { + "description": "The localized friendly form of the resource provider name – it is expected to also include the publisher/company responsible. It should use Title Casing and begin with \"Microsoft\" for 1st party services. e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute.\"", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "The localized friendly form of the resource type related to this action/operation – it should match the public documentation for the resource provider.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "The localized friendly name for the operation, as it should be shown to the user.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "The localized friendly description for the operation, as it should be shown to the user. It should be thorough, yet concise – it will be used in tool tips and detailed views.", + "type": "string", + "readOnly": true + } + } + }, + "OperationList": { + "description": "Pageable list of supported operations.", + "type": "object", + "properties": { + "value": { + "description": "List of operations", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + } + } + } + } + }, + "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" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/quotas.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/quotas.json new file mode 100644 index 000000000000..e517e6930272 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/quotas.json @@ -0,0 +1,271 @@ +{ + "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}/quotas/{quotaName}": { + "put": { + "x-ms-examples": { + "Create or update an existing container registry quota.": { + "$ref": "./examples/Quotas/CreateOrUpdate.json" + } + }, + "tags": [ + "ContainerRegistryQuotas" + ], + "description": "Create or update an existing container registry quota.", + "operationId": "Quota_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/QuotaNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ContainerRegistryQuotaParameters" + } + ], + "responses": { + "200": { + "description": "OK -- The container registry quota has been created or updated.", + "schema": { + "$ref": "#/definitions/ContainerRegistryQuota" + } + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete an existing container registry quota.": { + "$ref": "./examples/Quotas/Delete.json" + } + }, + "tags": [ + "ContainerRegistryQuotas" + ], + "description": "Delete an existing container registry quota", + "operationId": "Quotas_Delete", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/QuotaNameParameter" + } + ], + "responses": { + "200": { + "description": "OK -- The container registry quota has been deleted." + }, + "204": { + "description": "NotFound -- The container registry quota not found." + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "x-ms-examples": { + "Returns the specified container registry quota.": { + "$ref": "./examples/Quotas/Get.json" + } + }, + "tags": [ + "ContainerRegistryQuotas" + ], + "description": "Returns the specified container registry quota.", + "operationId": "Quotas_Get", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/QuotaNameParameter" + } + ], + "responses": { + "200": { + "description": "OK -- The container registry quota has been returned.", + "schema": { + "$ref": "#/definitions/ContainerRegistryQuota" + } + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry.Admin/locations/{location}/quotas": { + "get": { + "x-ms-examples": { + "Returns a list of container registry quotas at the given location.": { + "$ref": "./examples/Quotas/List.json" + } + }, + "tags": [ + "ContainerRegistryQuotas" + ], + "description": "Returns a list of container registry quotas at the given location.", + "operationId": "Quotas_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 -- The list of container registry quotas has been returned.", + "schema": { + "$ref": "#/definitions/ContainerRegistryQuotaList" + } + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "ContainerRegistryQuota": { + "description": "Container registry quota.", + "type": "object", + "properties": { + "properties": { + "description": "Container registry quota properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ContainerRegistryQuotaProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ] + }, + "ContainerRegistryQuotaProperties": { + "description": "Container registry quota properties.", + "type": "object", + "properties": { + "numberOfRegistries": { + "description": "Total number of container registry accounts.", + "type": "integer", + "format": "int32", + "default": 20 + }, + "capacityPerRegistryInGiB": { + "description": "Storage capacity (GiB) of each registry.", + "type": "integer", + "format": "int32", + "default": 100 + } + } + }, + "ContainerRegistryQuotaList": { + "description": "List of container registry quotas.", + "type": "object", + "properties": { + "value": { + "description": "List of container registry quotas.", + "type": "array", + "items": { + "$ref": "#/definitions/ContainerRegistryQuota" + } + } + } + } + }, + "parameters": { + "QuotaNameParameter": { + "description": "The name of the container registry quota.", + "name": "quotaName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ContainerRegistryQuotaParameters": { + "description": "The properties of quota being created or updated.", + "name": "quotaObject", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ContainerRegistryQuota" + }, + "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" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/registries.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/registries.json new file mode 100644 index 000000000000..6699e2df73ef --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/registries.json @@ -0,0 +1,156 @@ +{ + "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}/registries": { + "get": { + "x-ms-examples": { + "Returns a list of container registries at the given location.": { + "$ref": "./examples/registries/List.json" + } + }, + "tags": [ + "ContainerRegistries" + ], + "description": "Returns a list of container registries present in all tenant location.", + "operationId": "ContainerRegistryRegistries_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 -- The list of container registries has been returned.", + "schema": { + "$ref": "#/definitions/ContainerRegistriesList" + } + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ContainerRegistry": { + "description": "Container registry properties.", + "type": "object", + "properties": { + "properties": { + "description": "Container registry properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ContainerRegistryProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ] + }, + "ContainerRegistryProperties": { + "description": "Container registry properties.", + "type": "object", + "properties": { + "registryId": { + "description": "Container registry id.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Container registry name.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Container registry location.", + "type": "string", + "readOnly": true + }, + "subscriptionId": { + "description": "SubscriptionId where container registry is present.", + "type": "string", + "readOnly": true + }, + "resourceGroup": { + "description": "ResourceGroup where container registry is present.", + "type": "string", + "readOnly": true + }, + "creationDate": { + "format": "date-time", + "description": "The time at which the registry created.", + "type": "string" + }, + "registrySizeInBytes": { + "description": "Total storage capacity (GiB) used by the registry.", + "type": "integer", + "format": "int64" + } + } + }, + "ContainerRegistriesList": { + "description": "List of container registries.", + "type": "object", + "properties": { + "nextLink": { + "description": "URI to the next page.", + "type": "string" + }, + "value": { + "description": "List of container registries.", + "type": "array", + "items": { + "$ref": "#/definitions/ContainerRegistry" + } + } + } + } + }, + "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" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/setup.json b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/setup.json new file mode 100644 index 000000000000..d93cafeb7155 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/setup.json @@ -0,0 +1,215 @@ +{ + "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.Setup/locations/{location}/setup": { + "post": { + "x-ms-examples": { + "Invokes container registry certificate uploading and ACR service deployment.": { + "$ref": "./examples/Setup/Start.json" + } + }, + "tags": [ + "ContainerRegistrySetupStart" + ], + "description": "Invokes container registry certificate uploading and service deployment.", + "operationId": "ContainerRegistry_StartSetup", + "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/StartSetupParameter" + } + ], + "responses": { + "201": { + "description": "Created -- Container registry certificate was uploaded successfully and deployment started.", + "schema": { + "$ref": "#/definitions/ContainerRegistrySetup" + } + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "x-ms-examples": { + "Returns the status of the container registry setup.": { + "$ref": "./examples/Setup/Get.json" + } + }, + "tags": [ + "ContainerRegistrySetupStatus" + ], + "description": "Returns the status of the container registry setup.", + "operationId": "ContainerRegistry_GetSetupStatus", + "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 -- The status of the container registry setup has been returned.", + "schema": { + "$ref": "#/definitions/SetupResult" + } + }, + "default": { + "description": "Error Response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "ContainerRegistrySetupProperty": { + "description": "Container registry setup properties.", + "type": "object", + "properties": { + "password": { + "description": "Ssl certificate password.", + "type": "string", + "format": "password" + }, + "sslCertBase64": { + "description": "Ssl certificate in base64 format.", + "type": "string", + "format": "byte" + } + } + }, + "ContainerRegistrySetup": { + "description": "Container registry start setup return.", + "type": "object", + "properties": { + "properties": { + "description": "Container registry start setup return properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/SetupProperty" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ] + }, + "SetupProperty": { + "description": "Container registry start setup return property.", + "type": "object", + "properties": { + "statusUri": { + "description": "The uri to poll status of the container registry setup.", + "type": "string" + } + } + }, + "SetupResult": { + "description": "Container registry setup result.", + "type": "object", + "properties": { + "properties": { + "description": "Container registry setup result properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/SetupResultProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ] + }, + "SetupResultProperties": { + "description": "Container registry setup result properties.", + "type": "object", + "properties": { + "status": { + "description": "The status of the container registry setup.", + "$ref": "#/definitions/SetupStatus", + "readOnly": true + } + } + }, + "SetupStatus": { + "description": "The status of the container registry setup.", + "type": "string", + "enum": [ + "ReadyToSetup", + "Running", + "Failed", + "Cancelled", + "Completed" + ], + "x-ms-enum": { + "name": "SetupStatus", + "modelAsString": true + } + } + }, + "parameters": { + "StartSetupParameter": { + "name": "startSetupRequest", + "in": "body", + "description": "The object containing information for the configuration request.", + "required": true, + "schema": { + "$ref": "#/definitions/ContainerRegistrySetupProperty" + }, + "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" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/containerregistry/readme.azsautogen.md b/specification/azsadmin/resource-manager/containerregistry/readme.azsautogen.md new file mode 100644 index 000000000000..a97a374fe88f --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/readme.azsautogen.md @@ -0,0 +1,56 @@ +# ContainerRegistry Admin + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for ContainerRegistry Admin. + +--- +## Getting Started +To build the SDK for ContainerRegistry Admin, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + +### Basic Information +These are the global settings for the ContainerRegistry API. + +``` yaml +title: ContainerRegistryAdminClient +description: ContainerRegistry Admin Client +openapi-type: arm +tag: package-2019-11-01 +``` + +``` yaml +input-file: + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/capacity.json + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/configuration.json + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/operations.json + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/quotas.json + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/registries.json + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/setup.json +``` + +--- +# Code Generation + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.AzureStack.Management.ContainerRegistry.Admin + payload-flattening-threshold: 1 + output-folder: $(csharp-sdks-folder)/Generated + clear-output-folder: true +``` diff --git a/specification/azsadmin/resource-manager/containerregistry/readme.md b/specification/azsadmin/resource-manager/containerregistry/readme.md new file mode 100644 index 000000000000..8b50a3246886 --- /dev/null +++ b/specification/azsadmin/resource-manager/containerregistry/readme.md @@ -0,0 +1,89 @@ +# ContainerRegistry Admin + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for ContainerRegistry Admin. + +--- +## Getting Started +To build the SDK for ContainerRegistry Admin, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + +### Basic Information +These are the global settings for the ContainerRegistry API. + +``` yaml +title: ContainerRegistryAdminClient +description: ContainerRegistry Admin Client +openapi-type: arm +tag: package-2019-11-01 +``` + +### Tag: package-2019-11-01 + +These settings apply only when `--tag=package-2019-11-01` is specified on the command line. + +``` yaml $(tag) == 'package-2019-11-01-preview' +input-file: + - "Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/capacity.json" + - "Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/configuration.json" + - "Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/operations.json" + - "Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/quotas.json" + - "Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/registries.json" + - "Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/setup.json" +``` + +--- +# Code Generation + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.AzureStack.Management.ContainerRegistry.Admin + payload-flattening-threshold: 1 + output-folder: $(csharp-sdks-folder)/Generated + clear-output-folder: true +``` + +## 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 */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../../profiles/readme.md + +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/capacity.json + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/configuration.json + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/operations.json + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/quotas.json + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/registries.json + - $(this-folder)/Microsoft.ContainerRegistry.Admin/preview/2019-11-01-preview/setup.json +``` + +If there are files that should not be in the `all-api-versions` set, +uncomment the `exclude-file` section below and add the file paths. + +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json +``` +