From 4ed1dcdb328024c41e9576831904e93c26785389 Mon Sep 17 00:00:00 2001 From: mnltejaswini Date: Thu, 23 Aug 2018 16:42:51 -0700 Subject: [PATCH] Azure container registry build feature GA API specification and examples. (#3617) * Azure container registry build GA API specification and examples. * Fix the Model validation errors in example files. * Removed secrets from Task properties as this is not yet supported. * Removed Alias and secrets property from task. * Fixed the readme to the latest tag. * separate the PUT and PATCH request payload * Matching the resource schema with that in the Registry swagger * added more description to $filer, separated create and update parameters to avoid conflict between required nd patchable properties. * Replaced GitCOmmitTrigger to SourceTrigger * Added isArchiveEnabled as part of Schedule Run request, renamed the arguments property to values for Task type requests and steps * Removed the Required attribute for the source control auth properties to fix the model validation failures. * Update readme.md to include tags for all languages * Updated the operation ID as per the feedback --- .../2018-09-01/containerregistry_build.json | 2240 +++++++++++++++++ .../RegistriesGetBuildSourceUploadUrl.json | 16 + .../examples/RegistriesScheduleRun.json | 54 + .../RegistriesScheduleRun_BuildTask.json | 49 + .../RegistriesScheduleRun_QuickTaskRun.json | 48 + .../examples/RegistriesScheduleRun_Task.json | 40 + .../2018-09-01/examples/RunsCancel.json | 13 + .../stable/2018-09-01/examples/RunsGet.json | 57 + .../2018-09-01/examples/RunsGetLogSasUrl.json | 16 + .../stable/2018-09-01/examples/RunsList.json | 62 + .../2018-09-01/examples/RunsUpdate.json | 106 + .../2018-09-01/examples/TasksCreate.json | 190 ++ .../2018-09-01/examples/TasksDelete.json | 14 + .../stable/2018-09-01/examples/TasksGet.json | 70 + .../2018-09-01/examples/TasksGetDetails.json | 74 + .../stable/2018-09-01/examples/TasksList.json | 73 + .../2018-09-01/examples/TasksUpdate.json | 163 ++ .../resource-manager/readme.md | 48 +- .../resource-manager/readme.nodejs.md | 2 +- 19 files changed, 3333 insertions(+), 2 deletions(-) create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesGetBuildSourceUploadUrl.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_BuildTask.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_QuickTaskRun.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsCancel.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsGet.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsGetLogSasUrl.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsList.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsUpdate.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksCreate.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksDelete.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksGet.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksGetDetails.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksList.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksUpdate.json diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json new file mode 100644 index 000000000000..ed481485d6ad --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json @@ -0,0 +1,2240 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-09-01", + "title": "ContainerRegistryManagementClient" + }, + "host": "management.azure.com", + "basePath": "/", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun": { + "post": { + "tags": [ + "Registries" + ], + "description": "Schedules a new run based on the request parameters and add it to the run queue.", + "operationId": "Registries_ScheduleRun", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "runRequest", + "in": "body", + "description": "The parameters of a run that needs to scheduled.", + "required": true, + "schema": { + "$ref": "#/definitions/RunRequest" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "202": { + "description": "The request was successfully accepted; the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed. If the registry/run doesn't exist, 404 (Not found) is returned. If any of the input parameters is wrong, 400(Bad Request) is returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Registries_ScheduleRun": { + "$ref": "./examples/RegistriesScheduleRun.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl": { + "post": { + "tags": [ + "Registries" + ], + "description": "Get the upload location for the user to be able to upload the source.", + "operationId": "Registries_GetBuildSourceUploadUrl", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/SourceUploadDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-examples": { + "Registries_GetBuildSourceUploadUrl": { + "$ref": "./examples/RegistriesGetBuildSourceUploadUrl.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs": { + "get": { + "tags": [ + "Runs" + ], + "description": "Gets all the runs for a registry.", + "operationId": "Runs_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed.", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "$top is supported for get list of runs, which limits the maximum number of runs to return.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/RunListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-odata": "#/definitions/RunFilter", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Runs_List": { + "$ref": "./examples/RunsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}": { + "get": { + "tags": [ + "Runs" + ], + "description": "Gets the detailed information for a given run.", + "operationId": "Runs_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "runId", + "in": "path", + "description": "The run ID.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry/run doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-examples": { + "Runs_Get": { + "$ref": "./examples/RunsGet.json" + } + } + }, + "patch": { + "tags": [ + "Runs" + ], + "description": "Patch the run properties.", + "operationId": "Runs_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "runId", + "in": "path", + "description": "The run ID.", + "required": true, + "type": "string" + }, + { + "name": "runUpdateParameters", + "in": "body", + "description": "The run update properties.", + "required": true, + "schema": { + "$ref": "#/definitions/RunUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "201": { + "description": "The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry/build doesn't exist, 404 (Not found) is returned. If any of the input parameters is wrong, 400(Bad Request) is returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Runs_Update": { + "$ref": "./examples/RunsUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/listLogSasUrl": { + "post": { + "tags": [ + "Runs" + ], + "description": "Gets a link to download the run logs.", + "operationId": "Runs_GetLogSasUrl", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "runId", + "in": "path", + "description": "The run ID.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/RunGetLogResult" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry/run doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-examples": { + "Runs_GetLogSasUrl": { + "$ref": "./examples/RunsGetLogSasUrl.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel": { + "post": { + "tags": [ + "Runs" + ], + "description": "Cancel an existing run.", + "operationId": "Runs_Cancel", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "runId", + "in": "path", + "description": "The run ID.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly." + }, + "202": { + "description": "The request was successfully accepted; the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed. If the registry/run doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Runs_Cancel": { + "$ref": "./examples/RunsCancel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks": { + "get": { + "tags": [ + "Tasks" + ], + "description": "Lists all the tasks for a specified container registry.", + "operationId": "Tasks_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/TaskListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Tasks_List": { + "$ref": "./examples/TasksList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}": { + "get": { + "tags": [ + "Tasks" + ], + "description": "Get the properties of a specified task.", + "operationId": "Tasks_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TaskNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-examples": { + "Tasks_Get": { + "$ref": "./examples/TasksGet.json" + } + } + }, + "put": { + "tags": [ + "Tasks" + ], + "description": "Creates a task for a container registry with the specified parameters.", + "operationId": "Tasks_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TaskNameParameter" + }, + { + "name": "taskCreateParameters", + "in": "body", + "description": "The parameters for creating a task.", + "required": true, + "schema": { + "$ref": "#/definitions/Task" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "201": { + "description": "The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry doesn't exist, 404 (Not found) is returned. If any of the input parameters is wrong, 400(Bad Request) is returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Tasks_Create": { + "$ref": "./examples/TasksCreate.json" + } + } + }, + "delete": { + "tags": [ + "Tasks" + ], + "description": "Deletes a specified task.", + "operationId": "Tasks_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TaskNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly." + }, + "202": { + "description": "The request was successfully accepted; the operation will complete asynchronously." + }, + "204": { + "description": "No Content - the specified resource was not found." + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Tasks_Delete": { + "$ref": "./examples/TasksDelete.json" + } + } + }, + "patch": { + "tags": [ + "Tasks" + ], + "description": "Updates a task with the specified parameters.", + "operationId": "Tasks_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TaskNameParameter" + }, + { + "name": "taskUpdateParameters", + "in": "body", + "description": "The parameters for updating a task.", + "required": true, + "schema": { + "$ref": "#/definitions/TaskUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "201": { + "description": "The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry doesn't exist, 404 (Not found) is returned. If any of the input parameters is wrong, 400(Bad Request) is returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Tasks_Update": { + "$ref": "./examples/TasksUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}/listDetails": { + "post": { + "tags": [ + "Tasks" + ], + "description": "Returns a task with extended information that includes all secrets.", + "operationId": "Tasks_GetDetails", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TaskNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-examples": { + "Tasks_GetDetails": { + "$ref": "./examples/TasksGetDetails.json" + } + } + } + } + }, + "definitions": { + "RunRequest": { + "description": "The request parameters for scheduling a run.", + "type": "object", + "properties": { + "type": { + "description": "The type of the run request.", + "type": "string", + "readOnly": true + }, + "isArchiveEnabled": { + "description": "The value that indicates whether archiving is enabled for the run or not.", + "default": false, + "type": "boolean" + } + }, + "discriminator": "type" + }, + "Run": { + "description": "Run resource properties", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/RunProperties", + "description": "The properties of a run.", + "x-ms-client-flatten": true + } + } + }, + "RunProperties": { + "description": "The properties for a run.", + "type": "object", + "properties": { + "runId": { + "description": "The unique identifier for the run.", + "type": "string" + }, + "status": { + "description": "The current status of the run.", + "enum": [ + "Queued", + "Started", + "Running", + "Succeeded", + "Failed", + "Canceled", + "Error", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "RunStatus", + "modelAsString": true + } + }, + "lastUpdatedTime": { + "format": "date-time", + "description": "The last updated time for the run.", + "type": "string" + }, + "runType": { + "description": "The type of run.", + "enum": [ + "QuickBuild", + "AutoBuild" + ], + "type": "string", + "x-ms-enum": { + "name": "RunType", + "modelAsString": true + } + }, + "createTime": { + "format": "date-time", + "description": "The time the run was scheduled.", + "type": "string" + }, + "startTime": { + "format": "date-time", + "description": "The time the run started.", + "type": "string" + }, + "finishTime": { + "format": "date-time", + "description": "The time the run finished.", + "type": "string" + }, + "outputImages": { + "description": "The list of all images that were generated from the run. This is applicable if the run is of type Build.", + "type": "array", + "items": { + "$ref": "#/definitions/ImageDescriptor" + } + }, + "task": { + "description": "The task against which run was scheduled.", + "type": "string" + }, + "imageUpdateTrigger": { + "$ref": "#/definitions/ImageUpdateTrigger", + "description": "The image update trigger that caused the run. This is applicable if the task is of build type." + }, + "sourceTrigger": { + "$ref": "#/definitions/SourceTriggerDescriptor", + "description": "The source trigger that caused the run." + }, + "isArchiveEnabled": { + "description": "The value that indicates whether archiving is enabled or not.", + "default": false, + "type": "boolean" + }, + "platform": { + "$ref": "#/definitions/PlatformProperties", + "description": "The platform properties against which the run will happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the run agent." + }, + "provisioningState": { + "description": "The provisioning state of a run.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + } + } + }, + "ImageDescriptor": { + "description": "Properties for a registry image.", + "type": "object", + "properties": { + "registry": { + "description": "The registry login server.", + "type": "string" + }, + "repository": { + "description": "The repository name.", + "type": "string" + }, + "tag": { + "description": "The tag name.", + "type": "string" + }, + "digest": { + "description": "The sha256-based digest of the image manifest.", + "type": "string" + } + } + }, + "ImageUpdateTrigger": { + "description": "The image update trigger that caused a build.", + "type": "object", + "properties": { + "id": { + "description": "The unique ID of the trigger.", + "type": "string" + }, + "timestamp": { + "format": "date-time", + "description": "The timestamp when the image update happened.", + "type": "string" + }, + "images": { + "description": "The list of image updates that caused the build.", + "type": "array", + "items": { + "$ref": "#/definitions/ImageDescriptor" + } + } + } + }, + "SourceTriggerDescriptor": { + "description": "The source trigger that caused a run.", + "type": "object", + "properties": { + "id": { + "description": "The unique ID of the trigger.", + "type": "string" + }, + "eventType": { + "description": "The event type of the trigger.", + "type": "string" + }, + "commitId": { + "description": "The unique ID that identifies a commit.", + "type": "string" + }, + "pullRequestId": { + "description": "The unique ID that identifies pull request.", + "type": "string" + }, + "repositoryUrl": { + "description": "The repository URL.", + "type": "string" + }, + "branchName": { + "description": "The branch name in the repository.", + "type": "string" + }, + "providerType": { + "description": "The source control provider type.", + "type": "string" + } + } + }, + "PlatformProperties": { + "description": "The platform properties against which the run has to happen.", + "required": [ + "os", + "architecture" + ], + "type": "object", + "properties": { + "os": { + "description": "The operating system type required for the run.", + "enum": [ + "Windows", + "Linux" + ], + "type": "string", + "x-ms-enum": { + "name": "OS", + "modelAsString": true + } + }, + "architecture": { + "description": "The OS architecture.", + "enum": [ + "amd64", + "x86", + "arm" + ], + "type": "string", + "x-ms-enum": { + "name": "Architecture", + "modelAsString": true + } + }, + "variant": { + "description": "Variant of the CPU.", + "enum": [ + "v6", + "v7", + "v8" + ], + "type": "string", + "x-ms-enum": { + "name": "Variant", + "modelAsString": true + } + } + } + }, + "AgentProperties": { + "description": "The properties that determine the run agent configuration.", + "type": "object", + "properties": { + "cpu": { + "format": "int32", + "description": "The CPU configuration in terms of number of cores required for the run.", + "type": "integer" + } + } + }, + "SourceUploadDefinition": { + "description": "The properties of a response to source upload request.", + "type": "object", + "properties": { + "uploadUrl": { + "description": "The URL where the client can upload the source.", + "type": "string" + }, + "relativePath": { + "description": "The relative path to the source. This is used to submit the subsequent queue build request.", + "type": "string" + } + } + }, + "RunListResult": { + "description": "Collection of runs.", + "type": "object", + "properties": { + "value": { + "description": "The collection value.", + "type": "array", + "items": { + "$ref": "#/definitions/Run" + } + }, + "nextLink": { + "description": "The URI that can be used to request the next set of paged results.", + "type": "string" + } + } + }, + "RunFilter": { + "description": "Properties that are enabled for Odata querying on runs.", + "type": "object", + "properties": { + "runId": { + "description": "The unique identifier for the run.", + "type": "string" + }, + "runType": { + "description": "The type of run.", + "enum": [ + "QuickBuild", + "AutoBuild" + ], + "type": "string", + "x-ms-enum": { + "name": "RunType", + "modelAsString": true + } + }, + "status": { + "description": "The current status of the run.", + "enum": [ + "Queued", + "Started", + "Running", + "Succeeded", + "Failed", + "Canceled", + "Error", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "RunStatus", + "modelAsString": true + } + }, + "createTime": { + "format": "date-time", + "description": "The create time for a run.", + "type": "string" + }, + "finishTime": { + "format": "date-time", + "description": "The time the run finished.", + "type": "string" + }, + "outputImageManifests": { + "description": "The list of comma-separated image manifests that were generated from the run. This is applicable if the run is of\r\nbuild type.", + "type": "string" + }, + "isArchiveEnabled": { + "description": "The value that indicates whether archiving is enabled or not.", + "type": "boolean" + }, + "taskName": { + "description": "The name of the task that the run corresponds to.", + "type": "string" + } + } + }, + "RunUpdateParameters": { + "description": "The set of run properties that can be updated.", + "type": "object", + "properties": { + "isArchiveEnabled": { + "description": "The value that indicates whether archiving is enabled or not.", + "type": "boolean" + } + } + }, + "RunGetLogResult": { + "description": "The result of get log link operation.", + "type": "object", + "properties": { + "logLink": { + "description": "The link to logs for a run on a azure container registry.", + "type": "string" + } + } + }, + "TaskListResult": { + "description": "The collection of tasks.", + "type": "object", + "properties": { + "value": { + "description": "The collection value.", + "type": "array", + "items": { + "$ref": "#/definitions/Task" + } + }, + "nextLink": { + "description": "The URI that can be used to request the next set of paged results.", + "type": "string" + } + } + }, + "Task": { + "description": "The task that has the ARM resource and task properties. \r\nThe task will have all information to schedule a run against it.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TaskProperties", + "description": "The properties of a task.", + "x-ms-client-flatten": true + } + } + }, + "TaskProperties": { + "description": "The properties of a task.", + "required": [ + "platform", + "step" + ], + "type": "object", + "properties": { + "provisioningState": { + "description": "The provisioning state of the task.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "creationDate": { + "format": "date-time", + "description": "The creation date of task.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "The current status of task.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TaskStatus", + "modelAsString": true + } + }, + "platform": { + "$ref": "#/definitions/PlatformProperties", + "description": "The platform properties against which the run has to happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the run agent." + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "step": { + "$ref": "#/definitions/TaskStepProperties", + "description": "The properties of a task step." + }, + "trigger": { + "$ref": "#/definitions/TriggerProperties", + "description": "The properties that describe all triggers for the task." + } + } + }, + "TaskStepProperties": { + "description": "Base properties for any task step.", + "type": "object", + "properties": { + "type": { + "description": "The type of the step.", + "enum": [ + "Docker", + "BuildTask", + "RunTask" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "StepType", + "modelAsString": true + } + }, + "baseImageDependencies": { + "description": "List of base image dependencies for a step.", + "type": "array", + "items": { + "$ref": "#/definitions/BaseImageDependency" + }, + "readOnly": true + } + }, + "discriminator": "type" + }, + "TriggerProperties": { + "description": "The properties of a build trigger.", + "type": "object", + "properties": { + "sourceTriggers": { + "description": "The collection of triggers based on source code repository.", + "type": "array", + "items": { + "$ref": "#/definitions/SourceTrigger" + } + }, + "baseImageTrigger": { + "$ref": "#/definitions/BaseImageTrigger", + "description": "The trigger based on base image dependencies." + } + } + }, + "BaseImageDependency": { + "description": "Properties that describe a base image dependency.", + "type": "object", + "properties": { + "type": { + "description": "The type of the base image dependency.", + "enum": [ + "BuildTime", + "RunTime" + ], + "type": "string", + "x-ms-enum": { + "name": "BaseImageDependencyType", + "modelAsString": true + } + }, + "registry": { + "description": "The registry login server.", + "type": "string" + }, + "repository": { + "description": "The repository name.", + "type": "string" + }, + "tag": { + "description": "The tag name.", + "type": "string" + }, + "digest": { + "description": "The sha256-based digest of the image manifest.", + "type": "string" + } + } + }, + "SourceTrigger": { + "description": "The properties of a source based trigger.", + "required": [ + "sourceRepository", + "sourceTriggerEvents", + "name" + ], + "type": "object", + "properties": { + "sourceRepository": { + "$ref": "#/definitions/SourceProperties", + "description": "The properties that describes the source(code) for the task." + }, + "sourceTriggerEvents": { + "description": "The source event corresponding to the trigger.", + "type": "array", + "items": { + "enum": [ + "commit" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceTriggerEvent", + "modelAsString": true + } + } + }, + "status": { + "description": "The current status of build trigger.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "BaseImageTrigger": { + "description": "The trigger based on base image dependency.", + "required": [ + "baseImageTriggerType", + "name" + ], + "type": "object", + "properties": { + "baseImageTriggerType": { + "description": "The type of the auto trigger for base image dependency updates.", + "enum": [ + "All", + "Runtime" + ], + "type": "string", + "x-ms-enum": { + "name": "BaseImageTriggerType", + "modelAsString": true + } + }, + "status": { + "description": "The current status of build trigger.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "SourceProperties": { + "description": "The properties of the source code repository.", + "required": [ + "sourceControlType", + "repositoryUrl" + ], + "type": "object", + "properties": { + "sourceControlType": { + "description": "The type of source control service.", + "enum": [ + "Github", + "VisualStudioTeamService" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceControlType", + "modelAsString": true + } + }, + "repositoryUrl": { + "description": "The full URL to the source code respository", + "type": "string" + }, + "branch": { + "description": "The branch name of the source code.", + "type": "string" + }, + "sourceControlAuthProperties": { + "$ref": "#/definitions/AuthInfo", + "description": "The authorization properties for accessing the source code repository and to set up\r\nwebhooks for notifications." + } + } + }, + "AuthInfo": { + "description": "The authorization properties for accessing the source code repository.", + "required": [ + "tokenType", + "token" + ], + "type": "object", + "properties": { + "tokenType": { + "description": "The type of Auth token.", + "enum": [ + "PAT", + "OAuth" + ], + "type": "string", + "x-ms-enum": { + "name": "TokenType", + "modelAsString": true + } + }, + "token": { + "description": "The access token used to access the source control provider.", + "type": "string" + }, + "refreshToken": { + "description": "The refresh token used to refresh the access token.", + "type": "string" + }, + "scope": { + "description": "The scope of the access token.", + "type": "string" + }, + "expiresIn": { + "format": "int32", + "description": "Time in seconds that the token remains valid", + "type": "integer" + } + } + }, + "TaskUpdateParameters": { + "description": "The parameters for updating a task.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/TaskPropertiesUpdateParameters", + "description": "The properties for updating a task.", + "x-ms-client-flatten": true + }, + "tags": { + "description": "The ARM resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TaskPropertiesUpdateParameters": { + "description": "The properties for updating a task.", + "type": "object", + "properties": { + "status": { + "description": "The current status of task.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TaskStatus", + "modelAsString": true + } + }, + "platform": { + "$ref": "#/definitions/PlatformUpdateParameters", + "description": "The platform properties against which the run has to happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the run agent." + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "type": "integer" + }, + "step": { + "$ref": "#/definitions/TaskStepUpdateParameters", + "description": "The properties for updating a task step." + }, + "trigger": { + "$ref": "#/definitions/TriggerUpdateParameters", + "description": "The properties for updating trigger properties." + } + } + }, + "PlatformUpdateParameters": { + "description": "The properties for updating the platform configuration.", + "type": "object", + "properties": { + "os": { + "description": "The operating system type required for the run.", + "enum": [ + "Windows", + "Linux" + ], + "type": "string", + "x-ms-enum": { + "name": "OS", + "modelAsString": true + } + }, + "architecture": { + "description": "The OS architecture.", + "enum": [ + "amd64", + "x86", + "arm" + ], + "type": "string", + "x-ms-enum": { + "name": "Architecture", + "modelAsString": true + } + }, + "variant": { + "description": "Variant of the CPU.", + "enum": [ + "v6", + "v7", + "v8" + ], + "type": "string", + "x-ms-enum": { + "name": "Variant", + "modelAsString": true + } + } + } + }, + "TaskStepUpdateParameters": { + "description": "Base properties for updating any task step.", + "type": "object", + "properties": { + "type": { + "description": "The type of the step.", + "enum": [ + "Docker", + "BuildTask", + "RunTask" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "StepType", + "modelAsString": true + } + } + }, + "discriminator": "type" + }, + "TriggerUpdateParameters": { + "description": "The properties for updating build triggers.", + "type": "object", + "properties": { + "sourceTriggers": { + "description": "The collection of triggers based on source code repository.", + "type": "array", + "items": { + "$ref": "#/definitions/SourceTriggerUpdateParameters" + } + }, + "baseImageTrigger": { + "$ref": "#/definitions/BaseImageTriggerUpdateParameters", + "description": "The trigger based on base image dependencies." + } + } + }, + "SourceTriggerUpdateParameters": { + "description": "The properties for updating a source based trigger.", + "required": [ + "name" + ], + "type": "object", + "properties": { + "sourceRepository": { + "$ref": "#/definitions/SourceUpdateParameters", + "description": "The properties that describes the source(code) for the task." + }, + "sourceTriggerEvents": { + "description": "The source event corresponding to the trigger.", + "type": "array", + "items": { + "enum": [ + "commit" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceTriggerEvent", + "modelAsString": true + } + } + }, + "status": { + "description": "The current status of build trigger.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "BaseImageTriggerUpdateParameters": { + "description": "The properties for updating base image dependency trigger.", + "required": [ + "name" + ], + "type": "object", + "properties": { + "baseImageTriggerType": { + "description": "The type of the auto trigger for base image dependency updates.", + "enum": [ + "All", + "Runtime" + ], + "type": "string", + "x-ms-enum": { + "name": "BaseImageTriggerType", + "modelAsString": true + } + }, + "status": { + "description": "The current status of build trigger.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "SourceUpdateParameters": { + "description": "The properties for updating the source code repository.", + "type": "object", + "properties": { + "sourceControlType": { + "description": "The type of source control service.", + "enum": [ + "Github", + "VisualStudioTeamService" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceControlType", + "modelAsString": true + } + }, + "repositoryUrl": { + "description": "The full URL to the source code respository", + "type": "string" + }, + "branch": { + "description": "The branch name of the source code.", + "type": "string" + }, + "sourceControlAuthProperties": { + "$ref": "#/definitions/AuthInfoUpdateParameters", + "description": "The authorization properties for accessing the source code repository and to set up\r\nwebhooks for notifications." + } + } + }, + "AuthInfoUpdateParameters": { + "description": "The authorization properties for accessing the source code repository.", + "type": "object", + "properties": { + "tokenType": { + "description": "The type of Auth token.", + "enum": [ + "PAT", + "OAuth" + ], + "type": "string", + "x-ms-enum": { + "name": "TokenType", + "modelAsString": true + } + }, + "token": { + "description": "The access token used to access the source control provider.", + "type": "string" + }, + "refreshToken": { + "description": "The refresh token used to refresh the access token.", + "type": "string" + }, + "scope": { + "description": "The scope of the access token.", + "type": "string" + }, + "expiresIn": { + "format": "int32", + "description": "Time in seconds that the token remains valid", + "type": "integer" + } + } + }, + "Resource": { + "description": "An Azure resource.", + "required": [ + "location" + ], + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "The location of the resource. This cannot be changed after the resource is created.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "description": "The tags of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-ms-azure-resource": true + }, + "ProxyResource": { + "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.", + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true + } + }, + "x-ms-azure-resource": true + }, + "DockerBuildRequest": { + "description": "The parameters for a docker quick build.", + "required": [ + "type", + "dockerFilePath", + "sourceLocation", + "platform" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "imageNames": { + "description": "The fully qualified image names including the repository and tag.", + "type": "array", + "items": { + "type": "string" + } + }, + "isPushEnabled": { + "description": "The value of this property indicates whether the image built should be pushed to the registry or not.", + "default": true, + "type": "boolean" + }, + "noCache": { + "description": "The value of this property indicates whether the image cache is enabled or not.", + "default": false, + "type": "boolean" + }, + "dockerFilePath": { + "description": "The Docker file path relative to the source location.", + "type": "string" + }, + "arguments": { + "description": "The collection of override arguments to be used when executing the run.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker.\r\nIf it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API.", + "type": "string" + }, + "timeout": { + "format": "int32", + "description": "Build timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "platform": { + "$ref": "#/definitions/PlatformProperties", + "description": "The platform properties against which the build will happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the build agent." + } + }, + "x-ms-discriminator-value": "DockerBuildRequest" + }, + "Argument": { + "description": "The properties of a run argument.", + "required": [ + "name", + "value" + ], + "type": "object", + "properties": { + "name": { + "description": "The name of the argument.", + "type": "string" + }, + "value": { + "description": "The value of the argument.", + "type": "string" + }, + "isSecret": { + "description": "Flag to indicate whether the argument represents a secret and want to be removed from build logs.", + "default": false, + "type": "boolean" + } + } + }, + "BuildTaskRequest": { + "description": "The request parameters for a quick task build.", + "required": [ + "type", + "definitionFilePath", + "sourceLocation", + "platform" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "definitionFilePath": { + "description": "The template/definition file path relative to the source.", + "type": "string" + }, + "valuesFilePath": { + "description": "The values/parameters file path relative to the source.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker.\r\nIf it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API.", + "type": "string" + }, + "timeout": { + "format": "int32", + "description": "Build timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "platform": { + "$ref": "#/definitions/PlatformProperties", + "description": "The platform properties against which the build will happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the build agent." + } + }, + "x-ms-discriminator-value": "BuildTaskRequest" + }, + "SetValue": { + "description": "The properties of a overridable value that can be passed to a task template.", + "required": [ + "name", + "value" + ], + "type": "object", + "properties": { + "name": { + "description": "The name of the overridable value.", + "type": "string" + }, + "value": { + "description": "The overridable value.", + "type": "string" + }, + "isSecret": { + "description": "Flag to indicate whether the value represents a secret or not.", + "default": false, + "type": "boolean" + } + } + }, + "TaskRunRequest": { + "description": "The parameters for a task run request.", + "required": [ + "type", + "taskName" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "taskName": { + "description": "The name of task against which run has to be queued.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + } + }, + "x-ms-discriminator-value": "TaskRunRequest" + }, + "QuickTaskRunRequest": { + "description": "The parameters for a quick task run request.", + "required": [ + "type", + "taskDefinitionContent", + "platform" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "taskDefinitionContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "valuesContent": { + "description": "Base64 encoded value of the parameters/values file content.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + }, + "timeout": { + "format": "int32", + "description": "Build timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "platform": { + "$ref": "#/definitions/PlatformProperties", + "description": "The platform properties against which the build will happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the build agent." + } + }, + "x-ms-discriminator-value": "QuickTaskRunRequest" + }, + "DockerBuildStep": { + "description": "The Docker build step.", + "required": [ + "dockerFilePath" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepProperties" + } + ], + "properties": { + "imageNames": { + "description": "The fully qualified image names including the repository and tag.", + "type": "array", + "items": { + "type": "string" + } + }, + "isPushEnabled": { + "description": "The value of this property indicates whether the image built should be pushed to the registry or not.", + "default": true, + "type": "boolean" + }, + "noCache": { + "description": "The value of this property indicates whether the image cache is enabled or not.", + "default": false, + "type": "boolean" + }, + "dockerFilePath": { + "description": "The Docker file path relative to the source context.", + "type": "string" + }, + "arguments": { + "description": "The collection of override arguments to be used when executing this build step.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + }, + "contextPath": { + "description": "The URL(absolute or relative) of the source context for the build task.\r\nIf it is relative, the context will be relative to the source repository URL of the build task.", + "type": "string" + } + }, + "x-ms-discriminator-value": "Docker" + }, + "BuildTaskStep": { + "description": "The properties of a build task step.", + "required": [ + "definitionFilePath" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepProperties" + } + ], + "properties": { + "definitionFilePath": { + "description": "The build task template/definition file path relative to the source context.", + "type": "string" + }, + "valuesFilePath": { + "description": "The task values/parameters file path relative to the source context.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + }, + "contextPath": { + "description": "The URL(absolute or relative) of the source context for the build task.\r\nIf it is relative, the context will be relative to the source repository URL of the build task.", + "type": "string" + } + }, + "x-ms-discriminator-value": "BuildTask" + }, + "RunTaskStep": { + "description": "The properties of a generic task run step.", + "required": [ + "taskDefinitionContent" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepProperties" + } + ], + "properties": { + "taskDefinitionContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "valuesContent": { + "description": "Base64 encoded value of the parameters/values file content.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + } + }, + "x-ms-discriminator-value": "RunTask" + }, + "DockerBuildStepUpdateParameters": { + "description": "The properties for updating a docker build step.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepUpdateParameters" + } + ], + "properties": { + "imageNames": { + "description": "The fully qualified image names including the repository and tag.", + "type": "array", + "items": { + "type": "string" + } + }, + "isPushEnabled": { + "description": "The value of this property indicates whether the image built should be pushed to the registry or not.", + "type": "boolean" + }, + "noCache": { + "description": "The value of this property indicates whether the image cache is enabled or not.", + "type": "boolean" + }, + "dockerFilePath": { + "description": "The Docker file path relative to the source context.", + "type": "string" + }, + "arguments": { + "description": "The collection of override arguments to be used when executing this build step.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + }, + "contextPath": { + "description": "The URL(absolute or relative) of the source context for the build task.\r\nIf it is relative, the context will be relative to the source repository URL of the build task.", + "type": "string" + } + }, + "x-ms-discriminator-value": "Docker" + }, + "BuildTaskStepUpdateParameters": { + "description": "The properties of updating a build task step.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepUpdateParameters" + } + ], + "properties": { + "definitionFilePath": { + "description": "The build task template/definition file path relative to the source context.", + "type": "string" + }, + "valuesFilePath": { + "description": "The task values/parameters file path relative to the source context.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + }, + "contextPath": { + "description": "The URL(absolute or relative) of the source context for the build task.\r\nIf it is relative, the context will be relative to the source repository URL of the build task.", + "type": "string" + } + }, + "x-ms-discriminator-value": "BuildTask" + }, + "RunTaskStepUpdateParameters": { + "description": "The properties for updating generic task run step.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepUpdateParameters" + } + ], + "properties": { + "taskDefinitionContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "valuesContent": { + "description": "Base64 encoded value of the parameters/values file content.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + } + }, + "x-ms-discriminator-value": "RunTask" + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The Microsoft Azure subscription ID.", + "required": true, + "type": "string" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group to which the container registry belongs.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "RegistryNameParameter": { + "name": "registryName", + "in": "path", + "description": "The name of the container registry.", + "required": true, + "type": "string", + "maxLength": 50, + "minLength": 5, + "pattern": "^[a-zA-Z0-9]*$", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The client API version.", + "required": true, + "type": "string" + }, + "TaskNameParameter": { + "name": "taskName", + "in": "path", + "description": "The name of the container registry task.", + "required": true, + "type": "string", + "maxLength": 50, + "minLength": 5, + "pattern": "^[a-zA-Z0-9-_]*$", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesGetBuildSourceUploadUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesGetBuildSourceUploadUrl.json new file mode 100644 index 000000000000..275c0a191b5b --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesGetBuildSourceUploadUrl.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01" + }, + "responses": { + "200": { + "body": { + "relativePath": "source/201802130000/b52f12d8-c3d6-4d75-9107-220f0bfc681d.tar.gz", + "uploadUrl": "https://registrystorageaccount.blob.core.windows.net/registrycontainer/source/201802130000/b52f12d8-c3d6-4d75-9107-220f0bfc681d.tar.gz?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D" + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun.json new file mode 100644 index 000000000000..224d6286f162 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "runRequest": { + "type": "DockerBuildRequest", + "isArchiveEnabled": true, + "imageNames": [ + "azurerest:testtag" + ], + "noCache": true, + "sourceLocation": "https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D", + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "isPushEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "dockerFilePath": "DockerFile" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/run" + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_BuildTask.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_BuildTask.json new file mode 100644 index 000000000000..21ba6d402ad2 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_BuildTask.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "runRequest": { + "type": "BuildTaskRequest", + "sourceLocation": "https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D", + "values": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "templateFilePath": "acb.yaml", + "valuesFilePath":"prod-values.yaml" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/run" + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_QuickTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_QuickTaskRun.json new file mode 100644 index 000000000000..08185bfe2c9d --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_QuickTaskRun.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "runRequest": { + "type": "QuickTaskRunRequest", + "values": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "taskDefinitionContent": "c3RlcHM6Cnt7IGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAncHJvZCcgfX0KICAtIHJ1bjogcHJvZCBzZXR1cAp7eyBlbHNlIGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAnc3RhZ2luZycgfX0KICAtIHJ1bjogc3RhZ2luZyBzZXR1cAp7eyBlbHNlIH19CiAgLSBydW46IGRlZmF1bHQgc2V0dXAKe3sgZW5kIH19CgogIC0gcnVuOiBidWlsZCAtdCBGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0gLgoKcHVzaDogWydGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0nXQ==", + "valuesContent":"ZW52aXJvbm1lbnQ6IHByb2QKdmVyc2lvbjogMQ==" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/run" + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task.json new file mode 100644 index 000000000000..d0c880e528e1 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "runRequest": { + "type": "TaskRunRequest", + "values": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "taskName": "myTask" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/run" + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsCancel.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsCancel.json new file mode 100644 index 000000000000..add7efc92013 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsCancel.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab" + }, + "responses": { + "200": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsGet.json new file mode 100644 index 000000000000..0c5eb24f471b --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsGet.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z", + "runType": "AutoBuild", + "createTime": "2018-01-25T05:13:51.618Z", + "startTime": "2018-01-25T05:50:51.618Z", + "finishTime": "2018-01-25T06:13:51.618Z", + "outputImages": [ + { + "registry": "myregistry.azurecr.io", + "repository": "myimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ], + "task": "myTask", + "imageUpdateTrigger": { + "id": "c0c43143-da5d-41ef-b9e1-e7d749272e88", + "timestamp": "2018-01-25T05:13:51.618Z", + "images": [ + { + "registry": "registry.hub.docker.com", + "repository": "mybaseimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ] + }, + "isArchiveEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/runs" + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsGetLogSasUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsGetLogSasUrl.json new file mode 100644 index 000000000000..6a387bcd5d7f --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsGetLogSasUrl.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab" + }, + "responses": { + "200": { + "body": { + "logLink": "https://registrystorageaccount.blob.core.windows.net/sascontainer/logs/0accec26-d6de-4757-8e74-d080f38eaaab/rawtext.log?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D" + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsList.json new file mode 100644 index 000000000000..1309e2d5648d --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsList.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "$filter": "", + "$top": 10 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z", + "runType": "AutoBuild", + "createTime": "2018-01-25T05:13:51.618Z", + "startTime": "2018-01-25T05:50:51.618Z", + "finishTime": "2018-01-25T06:13:51.618Z", + "outputImages": [ + { + "registry": "myregistry.azurecr.io", + "repository": "myimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ], + "task": "myTask", + "imageUpdateTrigger": { + "id": "c0c43143-da5d-41ef-b9e1-e7d749272e88", + "timestamp": "2018-01-25T05:13:51.618Z", + "images": [ + { + "registry": "registry.hub.docker.com", + "repository": "mybaseimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ] + }, + "isArchiveEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/runs" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsUpdate.json new file mode 100644 index 000000000000..2843c4cf7215 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsUpdate.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "runUpdateParameters": { + "isArchiveEnabled": true + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z", + "runType": "AutoBuild", + "createTime": "2018-01-25T05:13:51.618Z", + "startTime": "2018-01-25T05:50:51.618Z", + "finishTime": "2018-01-25T06:13:51.618Z", + "outputImages": [ + { + "registry": "myregistry.azurecr.io", + "repository": "myimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ], + "task": "myTask", + "imageUpdateTrigger": { + "id": "c0c43143-da5d-41ef-b9e1-e7d749272e88", + "timestamp": "2018-01-25T05:13:51.618Z", + "images": [ + { + "registry": "registry.hub.docker.com", + "repository": "mybaseimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ] + }, + "isArchiveEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/runs" + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Updating", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z", + "runType": "AutoBuild", + "createTime": "2018-01-25T05:13:51.618Z", + "startTime": "2018-01-25T05:50:51.618Z", + "finishTime": "2018-01-25T06:13:51.618Z", + "outputImages": [ + { + "registry": "myregistry.azurecr.io", + "repository": "myimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ], + "task": "myTask", + "imageUpdateTrigger": { + "id": "c0c43143-da5d-41ef-b9e1-e7d749272e88", + "timestamp": "2018-01-25T05:13:51.618Z", + "images": [ + { + "registry": "registry.hub.docker.com", + "repository": "mybaseimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ] + }, + "isArchiveEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/runs" + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksCreate.json new file mode 100644 index 000000000000..d910b6b12608 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksCreate.json @@ -0,0 +1,190 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "taskName": "mytTask", + "taskCreateParameters": { + "properties": { + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ] + }, + "trigger":{ + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master", + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents":[ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime" + } + } + }, + "location": "eastus", + "tags": { + "testkey": "value" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger":{ + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents":[ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "tags": { + "testkey": "value" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Creating", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger":{ + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents":[ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksDelete.json new file mode 100644 index 000000000000..f5bb93118be1 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "taskName": "myTask" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksGet.json new file mode 100644 index 000000000000..b3a57c896a14 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksGet.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "taskName": "myTask" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger":{ + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents":[ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksGetDetails.json new file mode 100644 index 000000000000..2cf8941b7d58 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksGetDetails.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "taskName": "myTask" + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ] + }, + "trigger":{ + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master", + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents":[ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime" + } + } + }, + "location": "eastus", + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksList.json new file mode 100644 index 000000000000..8fdc3da5cb69 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksList.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger":{ + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents":[ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "tags": { + "testkey": "value" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksUpdate.json new file mode 100644 index 000000000000..f85dbf5b969a --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/TasksUpdate.json @@ -0,0 +1,163 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "taskName": "myTask", + "taskUpdateParameters": { + "properties": { + "status": "Enabled", + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile" + }, + "trigger":{ + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents":[ + "commit" + ] + } + ] + } + }, + "tags": { + "testkey": "value" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger":{ + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents":[ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "tags": { + "testkey": "value" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger":{ + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents":[ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/readme.md b/specification/containerregistry/resource-manager/readme.md index 4d0899d10ad5..0881189bb609 100644 --- a/specification/containerregistry/resource-manager/readme.md +++ b/specification/containerregistry/resource-manager/readme.md @@ -26,7 +26,17 @@ These are the global settings for the ContainerRegistry API. ``` yaml openapi-type: arm -tag: package-2017-10 +tag: package-2018-09 +``` + +### Tag: package-2018-09 + +These settings apply only when `--tag=package-2018-09` is specified on the command line. + +``` yaml $(tag) == 'package-2018-09' +input-file: +- Microsoft.ContainerRegistry/stable/2017-10-01/containerregistry.json +- Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json ``` ### Tag: package-2018-02-preview @@ -135,11 +145,23 @@ Generate all API versions currently shipped for this package ```yaml $(python) && $(multiapi) batch: + - tag: package-2018-09 - tag: package-2018-02-preview - tag: package-2017-10 - tag: package-2017-03 ``` +### Tag: package-2018-09 and python + +These settings apply only when `--tag=package-2018-09 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-09' && $(python) +python: + namespace: azure.mgmt.containerregistry.v2018_09_01 + output-folder: $(python-sdks-folder)/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01 +``` + ### Tag: package-2018-02-preview and python These settings apply only when `--tag=package-2018-02-preview --python` is specified on the command line. @@ -189,6 +211,7 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2018-09 - tag: package-2018-02-preview - tag: package-2017-10 - tag: package-2017-06-preview @@ -196,6 +219,15 @@ batch: - tag: package-2016-06-preview ``` +### Tag: package-2018-09 and go + +These settings apply only when `--tag=package-2018-09 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-09' && $(go) +output-folder: $(go-sdk-folder)/services/containerregistry/mgmt/2018-09-01/containerregistry +``` + ### Tag: package-2018-02-preview and go These settings apply only when `--tag=package-2018-02-preview --go` is specified on the command line. @@ -260,6 +292,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-containerregistry ``` yaml $(java) && $(multiapi) batch: + - tag: package-2018-09 - tag: package-2018-02-preview - tag: package-2017-10 - tag: package-2017-06-preview @@ -267,6 +300,19 @@ batch: - tag: package-2016-06-preview ``` +### Tag: package-2018-09 and java + +These settings apply only when `--tag=package-2018-09 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-09' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.containerregistry.v2018_09_01 + output-folder: $(azure-libraries-for-java-folder)/containerregistry/resource-manager/v2018_09_01 +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-2018-02-preview and java These settings apply only when `--tag=package-2018-02-preview --java` is specified on the command line. diff --git a/specification/containerregistry/resource-manager/readme.nodejs.md b/specification/containerregistry/resource-manager/readme.nodejs.md index 4b2007b25076..bf0ac3e4c42f 100644 --- a/specification/containerregistry/resource-manager/readme.nodejs.md +++ b/specification/containerregistry/resource-manager/readme.nodejs.md @@ -14,5 +14,5 @@ nodejs: generate-readme-md: true input-file: - Microsoft.ContainerRegistry/stable/2017-10-01/containerregistry.json -- Microsoft.ContainerRegistry/preview/2018-02-01-preview/containerregistry_build.json +- Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json ```