From 326d50018ed15ac5cb21fee7c1e7136e9c20d6db Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Wed, 3 Apr 2019 17:16:25 -0700 Subject: [PATCH 01/23] examples for new sdk --- .../2019-04-01/containerregistry_build.json | 2422 +++++++++++++++++ ...sksCreate_WithSystemAndUserIdentities.json | 208 ++ .../TasksCreate_WithSystemIdentity.json | 203 ++ .../TasksCreate_WithUserIdentities.json | 211 ++ ..._WithKeyVaultCustomCredentials - Copy.json | 200 ++ .../TasksUpdate_WithMSICustomCredentials.json | 192 ++ .../RegistriesGetBuildSourceUploadUrl.json | 16 + .../examples/RegistriesScheduleRun.json | 54 + .../RegistriesScheduleRun_EncodedTaskRun.json | 47 + .../RegistriesScheduleRun_FileTaskRun.json | 48 + .../examples/RegistriesScheduleRun_Task.json | 40 + ...cheduleRun_Task_WithCustomCredentials.json | 57 + ...riesScheduleRun_WithCustomCredentials.json | 82 + .../2019-04-01/examples/RunsCancel.json | 13 + .../stable/2019-04-01/examples/RunsGet.json | 57 + .../2019-04-01/examples/RunsGetLogSasUrl.json | 16 + .../stable/2019-04-01/examples/RunsList.json | 62 + .../2019-04-01/examples/RunsUpdate.json | 106 + .../2019-04-01/examples/TasksCreate.json | 190 ++ .../2019-04-01/examples/TasksDelete.json | 14 + .../stable/2019-04-01/examples/TasksGet.json | 81 + .../2019-04-01/examples/TasksGetDetails.json | 94 + .../stable/2019-04-01/examples/TasksList.json | 84 + ...ksUpdate _WithOpaqueCustomCredentials.json | 185 ++ .../2019-04-01/examples/TasksUpdate.json | 185 ++ .../resource-manager/readme.md | 10 + .../resource-manager/readme.python.md | 12 + 27 files changed, 4889 insertions(+) create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials - Copy.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate _WithOpaqueCustomCredentials.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json new file mode 100644 index 000000000000..afa6d335cea8 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json @@ -0,0 +1,2422 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-04-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", + "QuickRun", + "AutoBuild", + "AutoRun" + ], + "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 generates base image dependencies.", + "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 has base image trigger configured." + }, + "sourceTrigger": { + "$ref": "#/definitions/SourceTriggerDescriptor", + "description": "The source trigger that caused the run." + }, + "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." + }, + "sourceRegistryAuth": { + "description": "The scope of the credentials that were used to login to the source registry during this run.", + "type": "string" + }, + "customRegistries": { + "description": "The list of custom registries that were logged in during this run.", + "type": "array", + "items": { + "type": "string" + } + }, + "provisioningState": { + "description": "The provisioning state of a run.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "isArchiveEnabled": { + "description": "The value that indicates whether archiving is enabled or not.", + "default": false, + "type": "boolean" + } + } + }, + "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" + ], + "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", + "QuickRun", + "AutoBuild", + "AutoRun" + ], + "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": { + "identity": { + "$ref": "#/definitions/IdentityProperties", + "description": "Identity for the resource." + }, + "properties": { + "$ref": "#/definitions/TaskProperties", + "description": "The properties of a task.", + "x-ms-client-flatten": true + } + } + }, + "IdentityProperties": { + "description": "Managed identity for the resource.", + "type": "object", + "properties": { + "principalId": { + "description": "The principal ID of resource identity.", + "type": "string" + }, + "tenantId": { + "description": "The tenant ID of resource.", + "type": "string" + }, + "type": { + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssignedUserAssigned", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "description": "The list of user identities associated with the resource. The user identity \r\ndictionary key references will be ARM resource ids in the form: \r\n'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/\r\n providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserIdentityProperties" + } + } + } + }, + "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." + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + } + }, + "UserIdentityProperties": { + "type": "object", + "properties": { + "principalId": { + "description": "The principal id of user assigned identity.", + "type": "string" + }, + "clientId": { + "description": "The client id of user assigned identity.", + "type": "string" + } + } + }, + "TaskStepProperties": { + "description": "Base properties for any task step.", + "type": "object", + "properties": { + "type": { + "description": "The type of the step.", + "enum": [ + "Docker", + "FileTask", + "EncodedTask" + ], + "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 + }, + "contextPath": { + "description": "The URL(absolute or relative) of the source context for the task step.", + "type": "string" + }, + "contextAccessToken": { + "description": "The token (git PAT or SAS token of storage account blob) associated with the context for a step.", + "type": "string" + } + }, + "discriminator": "type" + }, + "TriggerProperties": { + "description": "The properties of a 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." + } + } + }, + "Credentials": { + "description": "The parameters that describes a set of credentials that will be used when a run is invoked.", + "type": "object", + "properties": { + "sourceRegistry": { + "$ref": "#/definitions/SourceRegistryCredentials", + "description": "Describes the credential parameters for accessing the source registry." + }, + "customRegistries": { + "description": "Describes the credential parameters for accessing other custom registries. The key\r\nfor the dictionary item will be the registry login server (myregistry.azurecr.io) and\r\nthe value of the item will be the registry credentials for accessing the registry.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/CustomRegistryCredentials" + } + } + } + }, + "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", + "pullrequest" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceTriggerEvent", + "modelAsString": true + } + } + }, + "status": { + "description": "The current status of 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 trigger.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "SourceRegistryCredentials": { + "description": "Describes the credential parameters for accessing the source registry.", + "type": "object", + "properties": { + "loginMode": { + "description": "The authentication mode which determines the source registry login scope. The credentials for the source registry\r\nwill be generated using the given scope. These credentials will be used to login to\r\nthe source registry during the run.", + "enum": [ + "None", + "Default" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceRegistryLoginMode", + "modelAsString": true + } + } + } + }, + "CustomRegistryCredentials": { + "description": "Describes the credentials that will be used to access a custom registry during a run.", + "type": "object", + "properties": { + "userName": { + "$ref": "#/definitions/SecretObject", + "description": "The username for logging into the custom registry." + }, + "password": { + "$ref": "#/definitions/SecretObject", + "description": "The password for logging into the custom registry. The password is a secret \r\nobject that allows multiple ways of providing the value for it." + }, + "identity": { + "description": "Indicates the managed identity assigned to the custom credential. If a user-assigned identity\r\nthis value is the Client ID. If a system-assigned identity, the value will be `system`. In\r\nthe case of a system-assigned identity, the Client ID will be determined by the runner. This\r\nidentity may be used to authenticate to key vault to retreive credentials or it may be the only \r\nsource of authentication used for accessing the registry.", + "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 repository", + "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." + } + } + }, + "SecretObject": { + "description": "Describes the properties of a secret object value.", + "type": "object", + "properties": { + "value": { + "description": "The value of the secret. The format of this value will be determined\r\nbased on the type of the secret object. If the type is Opaque, the value will be\r\nused as is without any modification.", + "type": "string" + }, + "type": { + "description": "The type of the secret object which determines how the value of the secret object has to be\r\ninterpreted.", + "enum": [ + "Opaque", + "Vaultsecret" + ], + "type": "string", + "x-ms-enum": { + "name": "SecretObjectType", + "modelAsString": true + } + } + } + }, + "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": { + "identity": { + "$ref": "#/definitions/IdentityProperties", + "description": "Identity for the resource." + }, + "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." + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The parameters that describes a set of credentials that will be used when this run is invoked." + } + } + }, + "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", + "FileTask", + "EncodedTask" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "StepType", + "modelAsString": true + } + }, + "contextPath": { + "description": "The URL(absolute or relative) of the source context for the task step.", + "type": "string" + }, + "contextAccessToken": { + "description": "The token (git PAT or SAS token of storage account blob) associated with the context for a step.", + "type": "string" + } + }, + "discriminator": "type" + }, + "TriggerUpdateParameters": { + "description": "The properties for updating 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", + "pullrequest" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceTriggerEvent", + "modelAsString": true + } + } + }, + "status": { + "description": "The current status of 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 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 repository", + "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", + "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" + }, + "target": { + "description": "The name of the target build stage for the docker build.", + "type": "string" + }, + "arguments": { + "description": "The collection of override arguments to be used when executing the run.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "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." + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", + "type": "string" + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + }, + "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" + } + } + }, + "FileTaskRunRequest": { + "description": "The request parameters for a scheduling run against a task file.", + "required": [ + "type", + "taskFilePath", + "platform" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "taskFilePath": { + "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" + } + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "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." + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", + "type": "string" + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + }, + "x-ms-discriminator-value": "FileTaskRunRequest" + }, + "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" + }, + "EncodedTaskRunRequest": { + "description": "The parameters for a quick task run request.", + "required": [ + "type", + "encodedTaskContent", + "platform" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "encodedTaskContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "encodedValuesContent": { + "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": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "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." + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", + "type": "string" + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + }, + "x-ms-discriminator-value": "EncodedTaskRunRequest" + }, + "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" + }, + "target": { + "description": "The name of the target build stage for the docker build.", + "type": "string" + }, + "arguments": { + "description": "The collection of override arguments to be used when executing this build step.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + } + }, + "x-ms-discriminator-value": "Docker" + }, + "FileTaskStep": { + "description": "The properties of a task step.", + "required": [ + "taskFilePath" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepProperties" + } + ], + "properties": { + "taskFilePath": { + "description": "The 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" + } + } + }, + "x-ms-discriminator-value": "FileTask" + }, + "EncodedTaskStep": { + "description": "The properties of a encoded task step.", + "required": [ + "encodedTaskContent" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepProperties" + } + ], + "properties": { + "encodedTaskContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "encodedValuesContent": { + "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": "EncodedTask" + }, + "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" + } + }, + "target": { + "description": "The name of the target build stage for the docker build.", + "type": "string" + } + }, + "x-ms-discriminator-value": "Docker" + }, + "FileTaskStepUpdateParameters": { + "description": "The properties of updating a task step.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepUpdateParameters" + } + ], + "properties": { + "taskFilePath": { + "description": "The task template/definition file path relative to the source context.", + "type": "string" + }, + "valuesFilePath": { + "description": "The 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" + } + } + }, + "x-ms-discriminator-value": "FileTask" + }, + "EncodedTaskStepUpdateParameters": { + "description": "The properties for updating encoded task step.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepUpdateParameters" + } + ], + "properties": { + "encodedTaskContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "encodedValuesContent": { + "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": "EncodedTask" + } + }, + "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", + "minLength": 1, + "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/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json new file mode 100644 index 000000000000..6e51a53724ea --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json @@ -0,0 +1,208 @@ +{ + "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", + "identity": { + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {} + } + }, + "credentials": null, + "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", + "identity": { + "principalId": "fc99dc67-1ad9-45c8-9ebc-e438081c8e30", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json new file mode 100644 index 000000000000..9160c6d918cb --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json @@ -0,0 +1,203 @@ +{ + "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", + "identity": { + "type": "SystemAssigned" + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json new file mode 100644 index 000000000000..55571dbbab1c --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json @@ -0,0 +1,211 @@ +{ + "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", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {} + } + }, + "credentials": null, + "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", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { + "clientId": "d3ce1bc2-f7d7-4a5b-9979-950f4e57680e", + "principalId": "b6p9f58b-6fbf-4efd-a7e0-fvd46911a466" + }, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials - Copy.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials - Copy.json new file mode 100644 index 000000000000..c7e997d8ab48 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials - Copy.json @@ -0,0 +1,200 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + ] + } + ] + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "Type": "Opaque", + "Value": "reg1" + }, + "password": { + "Type": "Vaultsecret", + "Value": "https://myacbvault2.vault.azure.net/secrets/username" + }, + "identity": "[system]" + } + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json new file mode 100644 index 000000000000..fa40c45d42f5 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json @@ -0,0 +1,192 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + ] + } + ] + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "identity": "[system]" + } + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json new file mode 100644 index 000000000000..275c0a191b5b --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-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/2019-04-01/examples/RegistriesScheduleRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json new file mode 100644 index 000000000000..224d6286f162 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-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/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json new file mode 100644 index 000000000000..beb63ea9c8a0 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "runRequest": { + "type": "EncodedTaskRunRequest", + "values": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "platform": { + "os": "Linux" + }, + "agentConfiguration": { + "cpu": 2 + }, + "encodedTaskContent": "c3RlcHM6Cnt7IGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAncHJvZCcgfX0KICAtIHJ1bjogcHJvZCBzZXR1cAp7eyBlbHNlIGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAnc3RhZ2luZycgfX0KICAtIHJ1bjogc3RhZ2luZyBzZXR1cAp7eyBlbHNlIH19CiAgLSBydW46IGRlZmF1bHQgc2V0dXAKe3sgZW5kIH19CgogIC0gcnVuOiBidWlsZCAtdCBGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0gLgoKcHVzaDogWydGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0nXQ==", + "encodedValuesContent":"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/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json new file mode 100644 index 000000000000..b85267583849 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2018-09-01", + "runRequest": { + "type": "FileTaskRunRequest", + "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" + }, + "agentConfiguration": { + "cpu": 2 + }, + "taskFilePath": "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/2019-04-01/examples/RegistriesScheduleRun_Task.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json new file mode 100644 index 000000000000..d0c880e528e1 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-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/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json new file mode 100644 index 000000000000..4eafc8ac646d --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json @@ -0,0 +1,57 @@ +{ + "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", + "credentials": { + "sourceRegistry": { + "loginMode": "Default" + }, + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg1" + }, + "password": { + "type": "Opaque", + "value": "***" + } + } + } + } + } + }, + "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/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json new file mode 100644 index 000000000000..ecd8d6c3b889 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json @@ -0,0 +1,82 @@ +{ + "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", + "target": "stage1", + "credentials": { + "sourceRegistry": { + "loginMode": "Default" + }, + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "Type": "Opaque", + "Value": "reg1" + }, + "password": { + "Type": "Opaque", + "Value": "***" + } + }, + "myregistry2.azurecr.io": { + "userName": { + "Type": "Opaque", + "Value": "reg2" + }, + "password": { + "Type": "Opaque", + "Value": "***" + } + } + } + } + } + }, + "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/2019-04-01/examples/RunsCancel.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json new file mode 100644 index 000000000000..add7efc92013 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-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/2019-04-01/examples/RunsGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json new file mode 100644 index 000000000000..0c5eb24f471b --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-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/2019-04-01/examples/RunsGetLogSasUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json new file mode 100644 index 000000000000..6a387bcd5d7f --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-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/2019-04-01/examples/RunsList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json new file mode 100644 index 000000000000..1309e2d5648d --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-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/2019-04-01/examples/RunsUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json new file mode 100644 index 000000000000..2843c4cf7215 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-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/2019-04-01/examples/TasksCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json new file mode 100644 index 000000000000..d910b6b12608 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-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/2019-04-01/examples/TasksDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json new file mode 100644 index 000000000000..be43f2087a57 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-01", + "taskName": "myTask" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json new file mode 100644 index 000000000000..ddd902e937a9 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json new file mode 100644 index 000000000000..cd9a59ba333e --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "jeburkedf.azure-test.io": { + "password": { + "type": "Opaque", + "value": "password" + }, + "userName": { + "type": "Opaque", + "value": "jeanine" + } + } + }, + "sourceRegistry": null + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json new file mode 100644 index 000000000000..8f00839d619f --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null + }, + "tags": { + "testkey": "value" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate _WithOpaqueCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate _WithOpaqueCustomCredentials.json new file mode 100644 index 000000000000..090f53bf45f4 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate _WithOpaqueCustomCredentials.json @@ -0,0 +1,185 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json new file mode 100644 index 000000000000..090f53bf45f4 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json @@ -0,0 +1,185 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null + }, + "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 044cd903ae01..4762dc1f6757 100644 --- a/specification/containerregistry/resource-manager/readme.md +++ b/specification/containerregistry/resource-manager/readme.md @@ -29,6 +29,16 @@ openapi-type: arm tag: package-2018-09 ``` +### Tag: package-2019-04 + +These settings apply only when `--tag=package-2019-04` is specified on the command line. + +``` yaml $(tag) == 'package-2019-04' +input-file: +- Microsoft.ContainerRegistry/stable/2017-10-01/containerregistry.json +- Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +``` + ### Tag: package-2018-09 These settings apply only when `--tag=package-2018-09` is specified on the command line. diff --git a/specification/containerregistry/resource-manager/readme.python.md b/specification/containerregistry/resource-manager/readme.python.md index b73d84808626..69581f810e7c 100644 --- a/specification/containerregistry/resource-manager/readme.python.md +++ b/specification/containerregistry/resource-manager/readme.python.md @@ -18,12 +18,24 @@ Generate all API versions currently shipped for this package ```yaml $(python) && $(multiapi) batch: + - tag: package-2019-04 - tag: package-2018-09 - tag: package-2018-02-preview - tag: package-2017-10 - tag: package-2017-03 ``` +### Tag: package-2019-04 and python + +These settings apply only when `--tag=package-2019-04 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2019-04' && $(python) +python: + namespace: azure.mgmt.containerregistry.v2019_04_01 + output-folder: $(python-sdks-folder)/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01 +``` + ### Tag: package-2018-09 and python These settings apply only when `--tag=package-2018-09 --python` is specified on the command line. From d8eb69a0873a859594deb824c50b61a4a19ad70d Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Fri, 5 Apr 2019 10:50:18 -0700 Subject: [PATCH 02/23] update examples --- .../2019-04-01/containerregistry_build.json | 2 +- ...sksCreate_WithSystemAndUserIdentities.json | 12 +- .../TasksCreate_WithUserIdentities.json | 13 ++ ...sUpdate_WithKeyVaultCustomCredentials.json | 200 ++++++++++++++++++ .../TasksUpdate_WithMSICustomCredentials.json | 60 +++--- 5 files changed, 255 insertions(+), 32 deletions(-) create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json index afa6d335cea8..79385f95045a 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json @@ -1107,7 +1107,7 @@ "enum": [ "SystemAssigned", "UserAssigned", - "SystemAssignedUserAssigned", + "SystemAssigned, UserAssigned", "None" ], "type": "string", diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json index 6e51a53724ea..cacee99fe651 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json @@ -68,7 +68,6 @@ "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {} } }, - "credentials": null, "tags": { "testkey": "value" } @@ -129,6 +128,17 @@ "name": "myTask", "type": "Microsoft.ContainerRegistry/registries/tasks", "location": "eastus", + "identity": { + "principalId": "fc99dc67-1ad9-45c8-9ebc-e438081c8e30", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, "tags": { "testkey": "value" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json index 55571dbbab1c..0868ce4ccce9 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json @@ -130,6 +130,19 @@ "name": "myTask", "type": "Microsoft.ContainerRegistry/registries/tasks", "location": "eastus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { + "clientId": "d3ce1bc2-f7d7-4a5b-9979-950f4e57680e", + "principalId": "b6p9f58b-6fbf-4efd-a7e0-fvd46911a466" + }, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, "tags": { "testkey": "value" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json new file mode 100644 index 000000000000..5a3dd027d995 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json @@ -0,0 +1,200 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + ] + } + ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "Type": "Opaque", + "Value": "reg1" + }, + "password": { + "Type": "Vaultsecret", + "Value": "https://myacbvault2.vault.azure.net/secrets/username" + }, + "identity": "[system]" + } + } + } + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json index fa40c45d42f5..80ba9184a9ad 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json @@ -18,7 +18,7 @@ ], "dockerFilePath": "src/DockerFile" }, - "trigger":{ + "trigger": { "sourceTriggers": [ { "name": "mySourceTrigger", @@ -28,17 +28,17 @@ "token": "xxxxx" } }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } ] - } - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": { - "identity": "[system]" + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "identity": "[system]" + } } } }, @@ -78,7 +78,7 @@ } ] }, - "trigger":{ + "trigger": { "sourceTriggers": [ { "name": "mySourceTrigger", @@ -87,7 +87,7 @@ "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", "branch": "master" }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } @@ -96,6 +96,12 @@ "name": "myBaseImageTrigger", "baseImageTriggerType": "Runtime" } + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null } }, "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", @@ -103,15 +109,9 @@ "type": "Microsoft.ContainerRegistry/registries/tasks", "location": "eastus", "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "credentials": { - "customRegistries": { - "myRegistry.azure.io": null - }, - "sourceRegistry": null + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" }, "tags": { "testkey": "value" @@ -148,7 +148,7 @@ } ] }, - "trigger":{ + "trigger": { "sourceTriggers": [ { "name": "mySourceTrigger", @@ -157,7 +157,7 @@ "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", "branch": "master" }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } @@ -166,6 +166,12 @@ "name": "myBaseImageTrigger", "baseImageTriggerType": "Runtime" } + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null } }, "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", @@ -173,15 +179,9 @@ "type": "Microsoft.ContainerRegistry/registries/tasks", "location": "eastus", "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "credentials": { - "customRegistries": { - "myRegistry.azure.io": null - }, - "sourceRegistry": null + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" }, "tags": { "testkey": "value" From 6732d7d68878a9a550a86f7a3a19f25fb10343b2 Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Fri, 5 Apr 2019 11:57:09 -0700 Subject: [PATCH 03/23] update examples --- .../stable/2019-04-01/examples/TasksGet.json | 22 +++++++------- .../2019-04-01/examples/TasksGetDetails.json | 30 +++++++++---------- .../stable/2019-04-01/examples/TasksList.json | 22 +++++++------- .../2019-04-01/examples/TasksUpdate.json | 22 -------------- .../resource-manager/readme.md | 2 +- 5 files changed, 38 insertions(+), 60 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json index ddd902e937a9..1e25492693b0 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json @@ -37,7 +37,7 @@ } ] }, - "trigger":{ + "trigger": { "sourceTriggers": [ { "name": "mySourceTrigger", @@ -46,7 +46,7 @@ "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", "branch": "master" }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } @@ -55,6 +55,12 @@ "name": "myBaseImageTrigger", "baseImageTriggerType": "Runtime" } + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null } }, "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", @@ -62,15 +68,9 @@ "type": "Microsoft.ContainerRegistry/registries/tasks", "location": "eastus", "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "credentials": { - "customRegistries": { - "myRegistry.azure.io": null - }, - "sourceRegistry": null + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" }, "tags": { "testkey": "value" diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json index cd9a59ba333e..53793ed34105 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json @@ -62,6 +62,21 @@ "name": "myBaseImageTrigger", "baseImageTriggerType": "Runtime" } + }, + "credentials": { + "customRegistries": { + "jeburkedf.azure-test.io": { + "password": { + "type": "Opaque", + "value": "password" + }, + "userName": { + "type": "Opaque", + "value": "jeanine" + } + } + }, + "sourceRegistry": null } }, "location": "eastus", @@ -70,21 +85,6 @@ "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", "type": "SystemAssigned" }, - "credentials": { - "customRegistries": { - "jeburkedf.azure-test.io": { - "password": { - "type": "Opaque", - "value": "password" - }, - "userName": { - "type": "Opaque", - "value": "jeanine" - } - } - }, - "sourceRegistry": null - }, "tags": { "testkey": "value" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json index 8f00839d619f..203183c5377f 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json @@ -38,7 +38,7 @@ } ] }, - "trigger":{ + "trigger": { "sourceTriggers": [ { "name": "mySourceTrigger", @@ -47,7 +47,7 @@ "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", "branch": "master" }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } @@ -56,6 +56,12 @@ "name": "myBaseImageTrigger", "baseImageTriggerType": "Runtime" } + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null } }, "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", @@ -63,15 +69,9 @@ "type": "Microsoft.ContainerRegistry/registries/tasks", "location": "eastus", "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "credentials": { - "customRegistries": { - "myRegistry.azure.io": null - }, - "sourceRegistry": null + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" }, "tags": { "testkey": "value" diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json index 090f53bf45f4..4e6dbe59c4ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json @@ -95,17 +95,6 @@ "name": "myTask", "type": "Microsoft.ContainerRegistry/registries/tasks", "location": "eastus", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "credentials": { - "customRegistries": { - "myRegistry.azure.io": null - }, - "sourceRegistry": null - }, "tags": { "testkey": "value" } @@ -165,17 +154,6 @@ "name": "myTask", "type": "Microsoft.ContainerRegistry/registries/tasks", "location": "eastus", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "credentials": { - "customRegistries": { - "myRegistry.azure.io": null - }, - "sourceRegistry": null - }, "tags": { "testkey": "value" } diff --git a/specification/containerregistry/resource-manager/readme.md b/specification/containerregistry/resource-manager/readme.md index 4762dc1f6757..fda87b216368 100644 --- a/specification/containerregistry/resource-manager/readme.md +++ b/specification/containerregistry/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the ContainerRegistry API. ``` yaml openapi-type: arm -tag: package-2018-09 +tag: package-2019-04 ``` ### Tag: package-2019-04 From 1d7aa09d90cec36f80b09ee5fb861dde497b3ece Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Fri, 5 Apr 2019 12:24:47 -0700 Subject: [PATCH 04/23] add identity to core examples --- ...sUpdate_WithKeyVaultCustomCredentials.json | 6 +-- .../2019-04-01/examples/TasksCreate.json | 13 +++++++ .../2019-04-01/examples/TasksGetDetails.json | 15 ++++---- .../2019-04-01/examples/TasksUpdate.json | 37 +++++++++++++++++++ 4 files changed, 61 insertions(+), 10 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json index 5a3dd027d995..f616058edbdf 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json @@ -38,12 +38,12 @@ "customRegistries": { "myregistry.azurecr.io": { "userName": { - "Type": "Opaque", - "Value": "reg1" + "Type": "Vaultsecret", + "Value": "https://myacbvault.vault.azure.net/secrets/username" }, "password": { "Type": "Vaultsecret", - "Value": "https://myacbvault2.vault.azure.net/secrets/username" + "Value": "https://myacbvault.vault.azure.net/secrets/password" }, "identity": "[system]" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json index d910b6b12608..9160c6d918cb 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json @@ -62,6 +62,9 @@ } }, "location": "eastus", + "identity": { + "type": "SystemAssigned" + }, "tags": { "testkey": "value" } @@ -122,6 +125,11 @@ "name": "myTask", "type": "Microsoft.ContainerRegistry/registries/tasks", "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, "tags": { "testkey": "value" } @@ -181,6 +189,11 @@ "name": "myTask", "type": "Microsoft.ContainerRegistry/registries/tasks", "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, "tags": { "testkey": "value" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json index 53793ed34105..ae10bd636121 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json @@ -65,15 +65,16 @@ }, "credentials": { "customRegistries": { - "jeburkedf.azure-test.io": { - "password": { - "type": "Opaque", - "value": "password" - }, + "myregistry.azure-test.io": { "userName": { "type": "Opaque", - "value": "jeanine" - } + "value": "username" + }, + "password": { + "type": "Vaultsecret", + "value": "https://myacbvault.vault.azure.net/secrets/username" + }, + "identity": "[system]" } }, "sourceRegistry": null diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json index 4e6dbe59c4ff..4a0f83ff6825 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json @@ -33,6 +33,21 @@ ] } ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "Type": "Opaque", + "Value": "username" + }, + "password": { + "Type": "Vaultsecret", + "Value": "https://myacbvault.vault.azure.net/secrets/password" + }, + "identity": "[system]" + } + } } }, "tags": { @@ -89,12 +104,23 @@ "name": "myBaseImageTrigger", "baseImageTriggerType": "Runtime" } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null } }, "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, "tags": { "testkey": "value" } @@ -148,12 +174,23 @@ "name": "myBaseImageTrigger", "baseImageTriggerType": "Runtime" } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null } }, "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, "tags": { "testkey": "value" } From 06cb4cc9de7f6cf71d270edb37eb822c9d235b45 Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Fri, 5 Apr 2019 12:33:32 -0700 Subject: [PATCH 05/23] Add opaque example --- .../TasksUpdate_WithMSICustomCredentials.json | 4 +- .../stable/2019-04-01/examples/TasksGet.json | 2 +- ...sksUpdate_WithOpaqueCustomCredentials.json | 199 ++++++++++++++++++ 3 files changed, 202 insertions(+), 3 deletions(-) create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json index 80ba9184a9ad..b39f5fd41309 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json @@ -99,7 +99,7 @@ }, "credentials": { "customRegistries": { - "myRegistry.azure.io": null + "myregistry.azure.io": null }, "sourceRegistry": null } @@ -169,7 +169,7 @@ }, "credentials": { "customRegistries": { - "myRegistry.azure.io": null + "myregistry.azure.io": null }, "sourceRegistry": null } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json index 1e25492693b0..865c03955bed 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json @@ -58,7 +58,7 @@ }, "credentials": { "customRegistries": { - "myRegistry.azure.io": null + "myregistry.azure.io": null }, "sourceRegistry": null } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json new file mode 100644 index 000000000000..6db48cf290c0 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json @@ -0,0 +1,199 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + ] + } + ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "Type": "Opaque", + "Value": "username" + }, + "password": { + "Type": "Opaque", + "Value": "***" + } + } + } + } + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file From f3d24e9b18bb689a6bf1341d59579a48c6b246ff Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Fri, 5 Apr 2019 14:30:31 -0700 Subject: [PATCH 06/23] add references to examples --- .../2018-09-01/containerregistry_build.json | 15 +++++++++ .../2019-04-01/containerregistry_build.json | 33 +++++++++++++++++++ 2 files changed, 48 insertions(+) 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 index 332fff7c3d86..99c237da566e 100644 --- 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 @@ -64,6 +64,21 @@ "x-ms-examples": { "Registries_ScheduleRun": { "$ref": "./examples/RegistriesScheduleRun.json" + }, + "Registries_ScheduleRun_EncodedTaskRun": { + "$ref": "./examples/RegistriesScheduleRun_EncodedTaskRun.json" + }, + "Registries_ScheduleRun_FileTaskRun": { + "$ref": "./examples/RegistriesScheduleRun_FileTaskRun.json" + }, + "Registries_ScheduleRun_Task": { + "$ref": "./examples/RegistriesScheduleRun_Task.json" + }, + "Registries_ScheduleRun_Task_WithCustomCredentials": { + "$ref": "./examples/RegistriesScheduleRun_Task_WithCustomCredentials.json" + }, + "Registries_ScheduleRun_WithCustomCredentials": { + "$ref": "./examples/RegistriesScheduleRun_WithCustomCredentials.json" } } } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json index 79385f95045a..9111c20fe53a 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json @@ -64,6 +64,21 @@ "x-ms-examples": { "Registries_ScheduleRun": { "$ref": "./examples/RegistriesScheduleRun.json" + }, + "Registries_ScheduleRun_EncodedTaskRun": { + "$ref": "./examples/RegistriesScheduleRun_EncodedTaskRun.json" + }, + "Registries_ScheduleRun_FileTaskRun": { + "$ref": "./examples/RegistriesScheduleRun_FileTaskRun.json" + }, + "Registries_ScheduleRun_Task": { + "$ref": "./examples/RegistriesScheduleRun_Task.json" + }, + "Registries_ScheduleRun_Task_WithCustomCredentials": { + "$ref": "./examples/RegistriesScheduleRun_Task_WithCustomCredentials.json" + }, + "Registries_ScheduleRun_WithCustomCredentials": { + "$ref": "./examples/RegistriesScheduleRun_WithCustomCredentials.json" } } } @@ -500,6 +515,15 @@ "x-ms-examples": { "Tasks_Create": { "$ref": "./examples/TasksCreate.json" + }, + "Tasks_Create_WithSystemAndUserIdentities": { + "$ref": "./examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json" + }, + "Tasks_Create_WithUserIdentities_WithSystemIdentity": { + "$ref": "./examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json" + }, + "Tasks_Create_WithUserIdentities": { + "$ref": "./examples/ManagedIdentity/TasksCreate_WithUserIdentities.json" } } }, @@ -600,6 +624,15 @@ "x-ms-examples": { "Tasks_Update": { "$ref": "./examples/TasksUpdate.json" + }, + "Tasks_Update_WithKeyVaultCustomCredentials": { + "$ref": "./examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json" + }, + "Tasks_Update_WithMSICustomCredentials": { + "$ref": "./examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json" + }, + "Tasks_Update_WithOpaqueCustomCredentials": { + "$ref": "./examples/TasksUpdate_WithOpaqueCustomCredentials.json" } } } From 1c9c81031312a2ff4253d58abfcf8624b4f10483 Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Mon, 8 Apr 2019 10:29:32 -0700 Subject: [PATCH 07/23] spelling fix --- .../stable/2019-04-01/containerregistry_build.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json index 9111c20fe53a..171e92205af9 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json @@ -1464,7 +1464,7 @@ "description": "The password for logging into the custom registry. The password is a secret \r\nobject that allows multiple ways of providing the value for it." }, "identity": { - "description": "Indicates the managed identity assigned to the custom credential. If a user-assigned identity\r\nthis value is the Client ID. If a system-assigned identity, the value will be `system`. In\r\nthe case of a system-assigned identity, the Client ID will be determined by the runner. This\r\nidentity may be used to authenticate to key vault to retreive credentials or it may be the only \r\nsource of authentication used for accessing the registry.", + "description": "Indicates the managed identity assigned to the custom credential. If a user-assigned identity\r\nthis value is the Client ID. If a system-assigned identity, the value will be `system`. In\r\nthe case of a system-assigned identity, the Client ID will be determined by the runner. This\r\nidentity may be used to authenticate to key vault to retrieve credentials or it may be the only \r\nsource of authentication used for accessing the registry.", "type": "string" } } From bf7b36b72f8824b5efe8792029509d2822e440cb Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Mon, 8 Apr 2019 10:56:24 -0700 Subject: [PATCH 08/23] update tag in all readmes --- .../containerregistry/resource-manager/readme.go.md | 10 ++++++++++ .../resource-manager/readme.nodejs.md | 2 +- .../resource-manager/readme.typescript.md | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/specification/containerregistry/resource-manager/readme.go.md b/specification/containerregistry/resource-manager/readme.go.md index 1712041f331b..6008e706debf 100644 --- a/specification/containerregistry/resource-manager/readme.go.md +++ b/specification/containerregistry/resource-manager/readme.go.md @@ -13,6 +13,7 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2019-04 - tag: package-2018-09 - tag: package-2018-02-preview - tag: package-2017-10 @@ -23,6 +24,15 @@ batch: ### Tag: package-2018-09 and go +These settings apply only when `--tag=package-2019-04 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-04' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-04-01/$(namespace) +``` + +### 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=`. diff --git a/specification/containerregistry/resource-manager/readme.nodejs.md b/specification/containerregistry/resource-manager/readme.nodejs.md index 4f2d10d3f741..b6274aeed389 100644 --- a/specification/containerregistry/resource-manager/readme.nodejs.md +++ b/specification/containerregistry/resource-manager/readme.nodejs.md @@ -13,5 +13,5 @@ nodejs: generate-readme-md: true input-file: - Microsoft.ContainerRegistry/stable/2017-10-01/containerregistry.json -- Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json +- Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json ``` diff --git a/specification/containerregistry/resource-manager/readme.typescript.md b/specification/containerregistry/resource-manager/readme.typescript.md index 9e381eb29a42..2d62c8c89348 100644 --- a/specification/containerregistry/resource-manager/readme.typescript.md +++ b/specification/containerregistry/resource-manager/readme.typescript.md @@ -6,7 +6,7 @@ Please also specify `--typescript-sdks-folder= Date: Mon, 8 Apr 2019 11:11:11 -0700 Subject: [PATCH 09/23] update jave readme --- .../containerregistry/resource-manager/readme.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/specification/containerregistry/resource-manager/readme.md b/specification/containerregistry/resource-manager/readme.md index fda87b216368..929924bd3f57 100644 --- a/specification/containerregistry/resource-manager/readme.md +++ b/specification/containerregistry/resource-manager/readme.md @@ -161,6 +161,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-containerregistry ``` yaml $(java) && $(multiapi) batch: + - tag: package-2019-04 - tag: package-2018-09 - tag: package-2018-02-preview - tag: package-2017-10 @@ -169,6 +170,19 @@ batch: - tag: package-2016-06-preview ``` +### Tag: package-2019-04 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-2019-04' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.containerregistry.v2019_04_01 + output-folder: $(azure-libraries-for-java-folder)/containerregistry/resource-manager/v2019_04_01 +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-2018-09 and java These settings apply only when `--tag=package-2018-09 --java` is specified on the command line. From de41900c0ea7bad03b521ec7fa44f628d9c5d1cb Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Mon, 8 Apr 2019 12:13:59 -0700 Subject: [PATCH 10/23] fix RunRequest examples --- ...cheduleRun_Task_WithCustomCredentials.json | 29 ++++++-------- ...riesScheduleRun_WithCustomCredentials.json | 39 ++++++------------- 2 files changed, 24 insertions(+), 44 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json index 4eafc8ac646d..8699114b88b7 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json @@ -19,23 +19,18 @@ } ], "taskName": "myTask", - "credentials": { - "sourceRegistry": { - "loginMode": "Default" - }, - "customRegistries": { - "myregistry.azurecr.io": { - "userName": { - "type": "Opaque", - "value": "reg1" - }, - "password": { - "type": "Opaque", - "value": "***" - } - } - } - } + "sourceRegistry": { + "loginMode": "Default" + }, + "registryCredentials": [ + { + "registry": "myregistry.azurecr.io", + "username": "username", + "userNameProviderType": "Opaque", + "password": "***", + "passwordProviderType": "Opaque" + } + ] } }, "responses": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json index ecd8d6c3b889..1d2bacfc9b1f 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json @@ -34,33 +34,18 @@ }, "dockerFilePath": "DockerFile", "target": "stage1", - "credentials": { - "sourceRegistry": { - "loginMode": "Default" - }, - "customRegistries": { - "myregistry.azurecr.io": { - "userName": { - "Type": "Opaque", - "Value": "reg1" - }, - "password": { - "Type": "Opaque", - "Value": "***" - } - }, - "myregistry2.azurecr.io": { - "userName": { - "Type": "Opaque", - "Value": "reg2" - }, - "password": { - "Type": "Opaque", - "Value": "***" - } - } - } - } + "sourceRegistry": { + "loginMode": "Default" + }, + "registryCredentials": [ + { + "registry": "myregistry.azurecr.io", + "username": "username", + "userNameProviderType": "Opaque", + "password": "***", + "passwordProviderType": "Opaque" + } + ] } }, "responses": { From 37e33a9a98cda2131cea50464737f0321205e2b8 Mon Sep 17 00:00:00 2001 From: Jeanine Burke <41650461+jaysterp@users.noreply.github.com> Date: Mon, 8 Apr 2019 12:26:24 -0700 Subject: [PATCH 11/23] Delete extra file. --- ..._WithKeyVaultCustomCredentials - Copy.json | 200 ------------------ 1 file changed, 200 deletions(-) delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials - Copy.json diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials - Copy.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials - Copy.json deleted file mode 100644 index c7e997d8ab48..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials - Copy.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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" - ] - } - ] - } - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": { - "userName": { - "Type": "Opaque", - "Value": "reg1" - }, - "password": { - "Type": "Vaultsecret", - "Value": "https://myacbvault2.vault.azure.net/secrets/username" - }, - "identity": "[system]" - } - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": null - }, - "sourceRegistry": null - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": null - }, - "sourceRegistry": null - }, - "tags": { - "testkey": "value" - } - } - } - } -} \ No newline at end of file From efac5f92e7beef3805d3af39a3fd38ee8943be82 Mon Sep 17 00:00:00 2001 From: Jeanine Burke <41650461+jaysterp@users.noreply.github.com> Date: Mon, 8 Apr 2019 12:27:09 -0700 Subject: [PATCH 12/23] Delete extra file. --- ...ksUpdate _WithOpaqueCustomCredentials.json | 185 ------------------ 1 file changed, 185 deletions(-) delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate _WithOpaqueCustomCredentials.json diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate _WithOpaqueCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate _WithOpaqueCustomCredentials.json deleted file mode 100644 index 090f53bf45f4..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate _WithOpaqueCustomCredentials.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "credentials": { - "customRegistries": { - "myRegistry.azure.io": null - }, - "sourceRegistry": null - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "credentials": { - "customRegistries": { - "myRegistry.azure.io": null - }, - "sourceRegistry": null - }, - "tags": { - "testkey": "value" - } - } - } - } -} \ No newline at end of file From f58c2a16630b1f9d6d3634d7c55b924126b3381d Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Tue, 9 Apr 2019 10:22:25 -0700 Subject: [PATCH 13/23] Fix examples from previous API version --- ...cheduleRun_Task_WithCustomCredentials.json | 27 +++++------- ...riesScheduleRun_WithCustomCredentials.json | 42 ++++++++----------- ...cheduleRun_Task_WithCustomCredentials.json | 2 +- ...riesScheduleRun_WithCustomCredentials.json | 18 ++++---- 4 files changed, 38 insertions(+), 51 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json index 4eafc8ac646d..275847924281 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json @@ -19,23 +19,18 @@ } ], "taskName": "myTask", - "credentials": { - "sourceRegistry": { - "loginMode": "Default" - }, - "customRegistries": { - "myregistry.azurecr.io": { - "userName": { - "type": "Opaque", - "value": "reg1" - }, - "password": { - "type": "Opaque", - "value": "***" - } - } + "sourceRegistry": { + "loginMode": "Default" + }, + "registryCredentials": [ + { + "registry": "myregistry.azurecr.io", + "username": "username", + "userNameProviderType": "Opaque", + "password": "***", + "passwordProviderType": "Opaque" } - } + ] } }, "responses": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_WithCustomCredentials.json index ecd8d6c3b889..ceb2044dd4a2 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_WithCustomCredentials.json @@ -34,33 +34,25 @@ }, "dockerFilePath": "DockerFile", "target": "stage1", - "credentials": { - "sourceRegistry": { - "loginMode": "Default" + "sourceRegistry": { + "loginMode": "Default" + }, + "registryCredentials": [ + { + "registry": "myregistry.azurecr.io", + "username": "username", + "userNameProviderType": "Opaque", + "password": "***", + "passwordProviderType": "Opaque" }, - "customRegistries": { - "myregistry.azurecr.io": { - "userName": { - "Type": "Opaque", - "Value": "reg1" - }, - "password": { - "Type": "Opaque", - "Value": "***" - } - }, - "myregistry2.azurecr.io": { - "userName": { - "Type": "Opaque", - "Value": "reg2" - }, - "password": { - "Type": "Opaque", - "Value": "***" - } - } + { + "registry": "myregistry2.azurecr.io", + "username": "username2", + "userNameProviderType": "Opaque", + "password": "***", + "passwordProviderType": "Opaque" } - } + ] } }, "responses": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json index 8699114b88b7..275847924281 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json @@ -29,7 +29,7 @@ "userNameProviderType": "Opaque", "password": "***", "passwordProviderType": "Opaque" - } + } ] } }, diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json index 1d2bacfc9b1f..91c7db05e58f 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json @@ -36,16 +36,16 @@ "target": "stage1", "sourceRegistry": { "loginMode": "Default" - }, - "registryCredentials": [ + }, + "registryCredentials": [ { - "registry": "myregistry.azurecr.io", - "username": "username", - "userNameProviderType": "Opaque", - "password": "***", - "passwordProviderType": "Opaque" - } - ] + "registry": "myregistry.azurecr.io", + "username": "username", + "userNameProviderType": "Opaque", + "password": "***", + "passwordProviderType": "Opaque" + } + ] } }, "responses": { From 2e221b53642249b3192b01faa25efaa3aa5c9e55 Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Tue, 9 Apr 2019 10:55:09 -0700 Subject: [PATCH 14/23] fix example errors --- .../2018-09-01/containerregistry_build.json | 2 +- .../RegistriesScheduleRun_EncodedTaskRun.json | 2 +- ...leRun_FileTask_WithCustomCredentials.json} | 29 +++++++------ ...riesScheduleRun_WithCustomCredentials.json | 42 +++++++++++-------- .../2019-04-01/containerregistry_build.json | 2 +- ...leRun_FileTask_WithCustomCredentials.json} | 29 +++++++------ ...riesScheduleRun_WithCustomCredentials.json | 37 +++++++++++----- 7 files changed, 88 insertions(+), 55 deletions(-) rename specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/{RegistriesScheduleRun_Task_WithCustomCredentials.json => RegistriesScheduleRun_FileTask_WithCustomCredentials.json} (73%) rename specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/{RegistriesScheduleRun_Task_WithCustomCredentials.json => RegistriesScheduleRun_FileTask_WithCustomCredentials.json} (73%) 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 index 99c237da566e..9f4c93caf957 100644 --- 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 @@ -75,7 +75,7 @@ "$ref": "./examples/RegistriesScheduleRun_Task.json" }, "Registries_ScheduleRun_Task_WithCustomCredentials": { - "$ref": "./examples/RegistriesScheduleRun_Task_WithCustomCredentials.json" + "$ref": "./examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json" }, "Registries_ScheduleRun_WithCustomCredentials": { "$ref": "./examples/RegistriesScheduleRun_WithCustomCredentials.json" diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_EncodedTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_EncodedTaskRun.json index beb63ea9c8a0..15c95951d943 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_EncodedTaskRun.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_EncodedTaskRun.json @@ -25,7 +25,7 @@ "cpu": 2 }, "encodedTaskContent": "c3RlcHM6Cnt7IGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAncHJvZCcgfX0KICAtIHJ1bjogcHJvZCBzZXR1cAp7eyBlbHNlIGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAnc3RhZ2luZycgfX0KICAtIHJ1bjogc3RhZ2luZyBzZXR1cAp7eyBlbHNlIH19CiAgLSBydW46IGRlZmF1bHQgc2V0dXAKe3sgZW5kIH19CgogIC0gcnVuOiBidWlsZCAtdCBGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0gLgoKcHVzaDogWydGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0nXQ==", - "encodedValuesContent":"ZW52aXJvbm1lbnQ6IHByb2QKdmVyc2lvbjogMQ==" + "encodedValuesContent": "ZW52aXJvbm1lbnQ6IHByb2QKdmVyc2lvbjogMQ==" } }, "responses": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json similarity index 73% rename from specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json rename to specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json index 275847924281..e7060cd90a8d 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json @@ -5,7 +5,7 @@ "registryName": "myRegistry", "api-version": "2018-09-01", "runRequest": { - "type": "TaskRunRequest", + "type": "FileTaskRunRequest", "values": [ { "name": "mytestargument", @@ -19,18 +19,23 @@ } ], "taskName": "myTask", - "sourceRegistry": { - "loginMode": "Default" - }, - "registryCredentials": [ - { - "registry": "myregistry.azurecr.io", - "username": "username", - "userNameProviderType": "Opaque", - "password": "***", - "passwordProviderType": "Opaque" + "credentials": { + "sourceRegistry": { + "loginMode": "Default" + }, + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg1" + }, + "password": { + "type": "Opaque", + "value": "***" + } + } } - ] + } } }, "responses": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_WithCustomCredentials.json index ceb2044dd4a2..e7fa51ad99b8 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_WithCustomCredentials.json @@ -34,25 +34,33 @@ }, "dockerFilePath": "DockerFile", "target": "stage1", - "sourceRegistry": { - "loginMode": "Default" - }, - "registryCredentials": [ - { - "registry": "myregistry.azurecr.io", - "username": "username", - "userNameProviderType": "Opaque", - "password": "***", - "passwordProviderType": "Opaque" + "credentials": { + "sourceRegistry": { + "loginMode": "Default" }, - { - "registry": "myregistry2.azurecr.io", - "username": "username2", - "userNameProviderType": "Opaque", - "password": "***", - "passwordProviderType": "Opaque" + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg1" + }, + "password": { + "type": "Opaque", + "value": "***" + } + }, + "myregistry2.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg2" + }, + "password": { + "type": "Opaque", + "value": "***" + } + } } - ] + } } }, "responses": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json index 171e92205af9..d779cc20350f 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json @@ -75,7 +75,7 @@ "$ref": "./examples/RegistriesScheduleRun_Task.json" }, "Registries_ScheduleRun_Task_WithCustomCredentials": { - "$ref": "./examples/RegistriesScheduleRun_Task_WithCustomCredentials.json" + "$ref": "./examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json" }, "Registries_ScheduleRun_WithCustomCredentials": { "$ref": "./examples/RegistriesScheduleRun_WithCustomCredentials.json" diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json similarity index 73% rename from specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json rename to specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json index 275847924281..e7060cd90a8d 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json @@ -5,7 +5,7 @@ "registryName": "myRegistry", "api-version": "2018-09-01", "runRequest": { - "type": "TaskRunRequest", + "type": "FileTaskRunRequest", "values": [ { "name": "mytestargument", @@ -19,18 +19,23 @@ } ], "taskName": "myTask", - "sourceRegistry": { - "loginMode": "Default" - }, - "registryCredentials": [ - { - "registry": "myregistry.azurecr.io", - "username": "username", - "userNameProviderType": "Opaque", - "password": "***", - "passwordProviderType": "Opaque" + "credentials": { + "sourceRegistry": { + "loginMode": "Default" + }, + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg1" + }, + "password": { + "type": "Opaque", + "value": "***" + } + } } - ] + } } }, "responses": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json index 91c7db05e58f..e7fa51ad99b8 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json @@ -34,18 +34,33 @@ }, "dockerFilePath": "DockerFile", "target": "stage1", - "sourceRegistry": { - "loginMode": "Default" - }, - "registryCredentials": [ - { - "registry": "myregistry.azurecr.io", - "username": "username", - "userNameProviderType": "Opaque", - "password": "***", - "passwordProviderType": "Opaque" + "credentials": { + "sourceRegistry": { + "loginMode": "Default" + }, + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg1" + }, + "password": { + "type": "Opaque", + "value": "***" + } + }, + "myregistry2.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg2" + }, + "password": { + "type": "Opaque", + "value": "***" + } + } } - ] + } } }, "responses": { From 7d1a4a856e9669d20f5000afc03ad4f95a0cc094 Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Tue, 9 Apr 2019 11:21:01 -0700 Subject: [PATCH 15/23] FileTaskRunRequest fix --- ...RegistriesScheduleRun_FileTask_WithCustomCredentials.json | 5 ++++- ...RegistriesScheduleRun_FileTask_WithCustomCredentials.json | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json index e7060cd90a8d..6afb88615fc3 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json @@ -18,7 +18,10 @@ "isSecret": true } ], - "taskName": "myTask", + "platform": { + "os": "Linux" + }, + "taskFilePath": "acb.yaml", "credentials": { "sourceRegistry": { "loginMode": "Default" diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json index e7060cd90a8d..6afb88615fc3 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json @@ -18,7 +18,10 @@ "isSecret": true } ], - "taskName": "myTask", + "platform": { + "os": "Linux" + }, + "taskFilePath": "acb.yaml", "credentials": { "sourceRegistry": { "loginMode": "Default" From 9b02e065937667ed373d05bd7c7f01b40eb370ab Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Tue, 9 Apr 2019 14:16:24 -0700 Subject: [PATCH 16/23] Add RunErrorMessage from previous version --- .../stable/2019-04-01/containerregistry_build.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json index d779cc20350f..8e365b964b8d 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json @@ -812,6 +812,11 @@ "type": "string" } }, + "runErrorMessage": { + "description": "The error message received from backend systems after the run is scheduled.", + "type": "string", + "readOnly": true + }, "provisioningState": { "description": "The provisioning state of a run.", "enum": [ From e5ea59439f70d9fe11ecafedbb573ddc895f318b Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Thu, 11 Apr 2019 11:29:20 -0700 Subject: [PATCH 17/23] update api-version in examples --- .../TasksCreate_WithSystemAndUserIdentities.json | 2 +- .../ManagedIdentity/TasksCreate_WithSystemIdentity.json | 2 +- .../ManagedIdentity/TasksCreate_WithUserIdentities.json | 2 +- .../2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json | 2 +- .../stable/2019-04-01/examples/RegistriesScheduleRun.json | 2 +- .../examples/RegistriesScheduleRun_EncodedTaskRun.json | 2 +- .../2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json | 2 +- .../RegistriesScheduleRun_FileTask_WithCustomCredentials.json | 2 +- .../stable/2019-04-01/examples/RegistriesScheduleRun_Task.json | 2 +- .../examples/RegistriesScheduleRun_WithCustomCredentials.json | 2 +- .../stable/2019-04-01/examples/RunsCancel.json | 2 +- .../stable/2019-04-01/examples/RunsGet.json | 2 +- .../stable/2019-04-01/examples/RunsGetLogSasUrl.json | 2 +- .../stable/2019-04-01/examples/RunsList.json | 2 +- .../stable/2019-04-01/examples/RunsUpdate.json | 2 +- .../stable/2019-04-01/examples/TasksCreate.json | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json index cacee99fe651..2a23ac932a0b 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "taskName": "mytTask", "taskCreateParameters": { "properties": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json index 9160c6d918cb..0e61f53957a1 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "taskName": "mytTask", "taskCreateParameters": { "properties": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json index 0868ce4ccce9..8a777066503c 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "taskName": "mytTask", "taskCreateParameters": { "properties": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json index 275c0a191b5b..6ee37c4a3d9a 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01" + "api-version": "2019-04-01" }, "responses": { "200": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json index 224d6286f162..fb836139321d 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "runRequest": { "type": "DockerBuildRequest", "isArchiveEnabled": true, diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json index beb63ea9c8a0..39c9eb5457cf 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "runRequest": { "type": "EncodedTaskRunRequest", "values": [ diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json index b85267583849..9775c60694d4 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "runRequest": { "type": "FileTaskRunRequest", "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", diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json index 6afb88615fc3..5e9cceaf0012 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "runRequest": { "type": "FileTaskRunRequest", "values": [ diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json index d0c880e528e1..a015956b30e6 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "runRequest": { "type": "TaskRunRequest", "values": [ diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json index e7fa51ad99b8..2e959ff4d3fa 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "runRequest": { "type": "DockerBuildRequest", "isArchiveEnabled": true, diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json index add7efc92013..aabde8b0d998 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "runId": "0accec26-d6de-4757-8e74-d080f38eaaab" }, "responses": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json index 0c5eb24f471b..f9738b7cfb4a 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "runId": "0accec26-d6de-4757-8e74-d080f38eaaab" }, "responses": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json index 6a387bcd5d7f..aa2d1323cba1 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "runId": "0accec26-d6de-4757-8e74-d080f38eaaab" }, "responses": { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json index 1309e2d5648d..13855a4eb1f4 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "$filter": "", "$top": 10 }, diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json index 2843c4cf7215..441e643d12e3 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", "runUpdateParameters": { "isArchiveEnabled": true diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json index 9160c6d918cb..0e61f53957a1 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json @@ -3,7 +3,7 @@ "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", "resourceGroupName": "myResourceGroup", "registryName": "myRegistry", - "api-version": "2018-09-01", + "api-version": "2019-04-01", "taskName": "mytTask", "taskCreateParameters": { "properties": { From 6aad167d898332cb839dd3029deebd464b0b1cea Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Mon, 15 Apr 2019 10:09:41 -0700 Subject: [PATCH 18/23] old version: 2018-09-01 --- .../2019-04-01/containerregistry_build.json | 2460 ----------------- ...sksCreate_WithSystemAndUserIdentities.json | 218 -- .../TasksCreate_WithSystemIdentity.json | 203 -- .../TasksCreate_WithUserIdentities.json | 224 -- ...sUpdate_WithKeyVaultCustomCredentials.json | 200 -- .../TasksUpdate_WithMSICustomCredentials.json | 192 -- .../RegistriesGetBuildSourceUploadUrl.json | 16 - .../examples/RegistriesScheduleRun.json | 54 - .../RegistriesScheduleRun_EncodedTaskRun.json | 47 - .../RegistriesScheduleRun_FileTaskRun.json | 48 - ...uleRun_FileTask_WithCustomCredentials.json | 60 - .../examples/RegistriesScheduleRun_Task.json | 40 - ...riesScheduleRun_WithCustomCredentials.json | 82 - .../2019-04-01/examples/RunsCancel.json | 13 - .../stable/2019-04-01/examples/RunsGet.json | 57 - .../2019-04-01/examples/RunsGetLogSasUrl.json | 16 - .../stable/2019-04-01/examples/RunsList.json | 62 - .../2019-04-01/examples/RunsUpdate.json | 106 - .../2019-04-01/examples/TasksCreate.json | 203 -- .../2019-04-01/examples/TasksDelete.json | 14 - .../stable/2019-04-01/examples/TasksGet.json | 81 - .../2019-04-01/examples/TasksGetDetails.json | 95 - .../stable/2019-04-01/examples/TasksList.json | 84 - .../2019-04-01/examples/TasksUpdate.json | 200 -- ...sksUpdate_WithOpaqueCustomCredentials.json | 199 -- 25 files changed, 4974 deletions(-) delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json delete mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json deleted file mode 100644 index 8e365b964b8d..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +++ /dev/null @@ -1,2460 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2019-04-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" - }, - "Registries_ScheduleRun_EncodedTaskRun": { - "$ref": "./examples/RegistriesScheduleRun_EncodedTaskRun.json" - }, - "Registries_ScheduleRun_FileTaskRun": { - "$ref": "./examples/RegistriesScheduleRun_FileTaskRun.json" - }, - "Registries_ScheduleRun_Task": { - "$ref": "./examples/RegistriesScheduleRun_Task.json" - }, - "Registries_ScheduleRun_Task_WithCustomCredentials": { - "$ref": "./examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json" - }, - "Registries_ScheduleRun_WithCustomCredentials": { - "$ref": "./examples/RegistriesScheduleRun_WithCustomCredentials.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" - }, - "Tasks_Create_WithSystemAndUserIdentities": { - "$ref": "./examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json" - }, - "Tasks_Create_WithUserIdentities_WithSystemIdentity": { - "$ref": "./examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json" - }, - "Tasks_Create_WithUserIdentities": { - "$ref": "./examples/ManagedIdentity/TasksCreate_WithUserIdentities.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" - }, - "Tasks_Update_WithKeyVaultCustomCredentials": { - "$ref": "./examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json" - }, - "Tasks_Update_WithMSICustomCredentials": { - "$ref": "./examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json" - }, - "Tasks_Update_WithOpaqueCustomCredentials": { - "$ref": "./examples/TasksUpdate_WithOpaqueCustomCredentials.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", - "QuickRun", - "AutoBuild", - "AutoRun" - ], - "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 generates base image dependencies.", - "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 has base image trigger configured." - }, - "sourceTrigger": { - "$ref": "#/definitions/SourceTriggerDescriptor", - "description": "The source trigger that caused the run." - }, - "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." - }, - "sourceRegistryAuth": { - "description": "The scope of the credentials that were used to login to the source registry during this run.", - "type": "string" - }, - "customRegistries": { - "description": "The list of custom registries that were logged in during this run.", - "type": "array", - "items": { - "type": "string" - } - }, - "runErrorMessage": { - "description": "The error message received from backend systems after the run is scheduled.", - "type": "string", - "readOnly": true - }, - "provisioningState": { - "description": "The provisioning state of a run.", - "enum": [ - "Creating", - "Updating", - "Deleting", - "Succeeded", - "Failed", - "Canceled" - ], - "type": "string", - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "isArchiveEnabled": { - "description": "The value that indicates whether archiving is enabled or not.", - "default": false, - "type": "boolean" - } - } - }, - "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" - ], - "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", - "QuickRun", - "AutoBuild", - "AutoRun" - ], - "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": { - "identity": { - "$ref": "#/definitions/IdentityProperties", - "description": "Identity for the resource." - }, - "properties": { - "$ref": "#/definitions/TaskProperties", - "description": "The properties of a task.", - "x-ms-client-flatten": true - } - } - }, - "IdentityProperties": { - "description": "Managed identity for the resource.", - "type": "object", - "properties": { - "principalId": { - "description": "The principal ID of resource identity.", - "type": "string" - }, - "tenantId": { - "description": "The tenant ID of resource.", - "type": "string" - }, - "type": { - "description": "The identity type.", - "enum": [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ], - "type": "string", - "x-ms-enum": { - "name": "ResourceIdentityType", - "modelAsString": false - } - }, - "userAssignedIdentities": { - "description": "The list of user identities associated with the resource. The user identity \r\ndictionary key references will be ARM resource ids in the form: \r\n'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/\r\n providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UserIdentityProperties" - } - } - } - }, - "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." - }, - "credentials": { - "$ref": "#/definitions/Credentials", - "description": "The properties that describes a set of credentials that will be used when this run is invoked." - } - } - }, - "UserIdentityProperties": { - "type": "object", - "properties": { - "principalId": { - "description": "The principal id of user assigned identity.", - "type": "string" - }, - "clientId": { - "description": "The client id of user assigned identity.", - "type": "string" - } - } - }, - "TaskStepProperties": { - "description": "Base properties for any task step.", - "type": "object", - "properties": { - "type": { - "description": "The type of the step.", - "enum": [ - "Docker", - "FileTask", - "EncodedTask" - ], - "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 - }, - "contextPath": { - "description": "The URL(absolute or relative) of the source context for the task step.", - "type": "string" - }, - "contextAccessToken": { - "description": "The token (git PAT or SAS token of storage account blob) associated with the context for a step.", - "type": "string" - } - }, - "discriminator": "type" - }, - "TriggerProperties": { - "description": "The properties of a 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." - } - } - }, - "Credentials": { - "description": "The parameters that describes a set of credentials that will be used when a run is invoked.", - "type": "object", - "properties": { - "sourceRegistry": { - "$ref": "#/definitions/SourceRegistryCredentials", - "description": "Describes the credential parameters for accessing the source registry." - }, - "customRegistries": { - "description": "Describes the credential parameters for accessing other custom registries. The key\r\nfor the dictionary item will be the registry login server (myregistry.azurecr.io) and\r\nthe value of the item will be the registry credentials for accessing the registry.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/CustomRegistryCredentials" - } - } - } - }, - "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", - "pullrequest" - ], - "type": "string", - "x-ms-enum": { - "name": "SourceTriggerEvent", - "modelAsString": true - } - } - }, - "status": { - "description": "The current status of 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 trigger.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "TriggerStatus", - "modelAsString": true - } - }, - "name": { - "description": "The name of the trigger.", - "type": "string" - } - } - }, - "SourceRegistryCredentials": { - "description": "Describes the credential parameters for accessing the source registry.", - "type": "object", - "properties": { - "loginMode": { - "description": "The authentication mode which determines the source registry login scope. The credentials for the source registry\r\nwill be generated using the given scope. These credentials will be used to login to\r\nthe source registry during the run.", - "enum": [ - "None", - "Default" - ], - "type": "string", - "x-ms-enum": { - "name": "SourceRegistryLoginMode", - "modelAsString": true - } - } - } - }, - "CustomRegistryCredentials": { - "description": "Describes the credentials that will be used to access a custom registry during a run.", - "type": "object", - "properties": { - "userName": { - "$ref": "#/definitions/SecretObject", - "description": "The username for logging into the custom registry." - }, - "password": { - "$ref": "#/definitions/SecretObject", - "description": "The password for logging into the custom registry. The password is a secret \r\nobject that allows multiple ways of providing the value for it." - }, - "identity": { - "description": "Indicates the managed identity assigned to the custom credential. If a user-assigned identity\r\nthis value is the Client ID. If a system-assigned identity, the value will be `system`. In\r\nthe case of a system-assigned identity, the Client ID will be determined by the runner. This\r\nidentity may be used to authenticate to key vault to retrieve credentials or it may be the only \r\nsource of authentication used for accessing the registry.", - "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 repository", - "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." - } - } - }, - "SecretObject": { - "description": "Describes the properties of a secret object value.", - "type": "object", - "properties": { - "value": { - "description": "The value of the secret. The format of this value will be determined\r\nbased on the type of the secret object. If the type is Opaque, the value will be\r\nused as is without any modification.", - "type": "string" - }, - "type": { - "description": "The type of the secret object which determines how the value of the secret object has to be\r\ninterpreted.", - "enum": [ - "Opaque", - "Vaultsecret" - ], - "type": "string", - "x-ms-enum": { - "name": "SecretObjectType", - "modelAsString": true - } - } - } - }, - "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": { - "identity": { - "$ref": "#/definitions/IdentityProperties", - "description": "Identity for the resource." - }, - "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." - }, - "credentials": { - "$ref": "#/definitions/Credentials", - "description": "The parameters that describes a set of credentials that will be used when this run is invoked." - } - } - }, - "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", - "FileTask", - "EncodedTask" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "StepType", - "modelAsString": true - } - }, - "contextPath": { - "description": "The URL(absolute or relative) of the source context for the task step.", - "type": "string" - }, - "contextAccessToken": { - "description": "The token (git PAT or SAS token of storage account blob) associated with the context for a step.", - "type": "string" - } - }, - "discriminator": "type" - }, - "TriggerUpdateParameters": { - "description": "The properties for updating 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", - "pullrequest" - ], - "type": "string", - "x-ms-enum": { - "name": "SourceTriggerEvent", - "modelAsString": true - } - } - }, - "status": { - "description": "The current status of 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 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 repository", - "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", - "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" - }, - "target": { - "description": "The name of the target build stage for the docker build.", - "type": "string" - }, - "arguments": { - "description": "The collection of override arguments to be used when executing the run.", - "type": "array", - "items": { - "$ref": "#/definitions/Argument" - } - }, - "timeout": { - "format": "int32", - "description": "Run timeout in seconds.", - "default": 3600, - "maximum": 28800, - "minimum": 300, - "type": "integer" - }, - "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." - }, - "sourceLocation": { - "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", - "type": "string" - }, - "credentials": { - "$ref": "#/definitions/Credentials", - "description": "The properties that describes a set of credentials that will be used when this run is invoked." - } - }, - "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" - } - } - }, - "FileTaskRunRequest": { - "description": "The request parameters for a scheduling run against a task file.", - "required": [ - "type", - "taskFilePath", - "platform" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/RunRequest" - } - ], - "properties": { - "taskFilePath": { - "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" - } - }, - "timeout": { - "format": "int32", - "description": "Run timeout in seconds.", - "default": 3600, - "maximum": 28800, - "minimum": 300, - "type": "integer" - }, - "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." - }, - "sourceLocation": { - "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", - "type": "string" - }, - "credentials": { - "$ref": "#/definitions/Credentials", - "description": "The properties that describes a set of credentials that will be used when this run is invoked." - } - }, - "x-ms-discriminator-value": "FileTaskRunRequest" - }, - "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" - }, - "EncodedTaskRunRequest": { - "description": "The parameters for a quick task run request.", - "required": [ - "type", - "encodedTaskContent", - "platform" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/RunRequest" - } - ], - "properties": { - "encodedTaskContent": { - "description": "Base64 encoded value of the template/definition file content.", - "type": "string" - }, - "encodedValuesContent": { - "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": "Run timeout in seconds.", - "default": 3600, - "maximum": 28800, - "minimum": 300, - "type": "integer" - }, - "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." - }, - "sourceLocation": { - "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", - "type": "string" - }, - "credentials": { - "$ref": "#/definitions/Credentials", - "description": "The properties that describes a set of credentials that will be used when this run is invoked." - } - }, - "x-ms-discriminator-value": "EncodedTaskRunRequest" - }, - "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" - }, - "target": { - "description": "The name of the target build stage for the docker build.", - "type": "string" - }, - "arguments": { - "description": "The collection of override arguments to be used when executing this build step.", - "type": "array", - "items": { - "$ref": "#/definitions/Argument" - } - } - }, - "x-ms-discriminator-value": "Docker" - }, - "FileTaskStep": { - "description": "The properties of a task step.", - "required": [ - "taskFilePath" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/TaskStepProperties" - } - ], - "properties": { - "taskFilePath": { - "description": "The 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" - } - } - }, - "x-ms-discriminator-value": "FileTask" - }, - "EncodedTaskStep": { - "description": "The properties of a encoded task step.", - "required": [ - "encodedTaskContent" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/TaskStepProperties" - } - ], - "properties": { - "encodedTaskContent": { - "description": "Base64 encoded value of the template/definition file content.", - "type": "string" - }, - "encodedValuesContent": { - "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": "EncodedTask" - }, - "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" - } - }, - "target": { - "description": "The name of the target build stage for the docker build.", - "type": "string" - } - }, - "x-ms-discriminator-value": "Docker" - }, - "FileTaskStepUpdateParameters": { - "description": "The properties of updating a task step.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/TaskStepUpdateParameters" - } - ], - "properties": { - "taskFilePath": { - "description": "The task template/definition file path relative to the source context.", - "type": "string" - }, - "valuesFilePath": { - "description": "The 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" - } - } - }, - "x-ms-discriminator-value": "FileTask" - }, - "EncodedTaskStepUpdateParameters": { - "description": "The properties for updating encoded task step.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/TaskStepUpdateParameters" - } - ], - "properties": { - "encodedTaskContent": { - "description": "Base64 encoded value of the template/definition file content.", - "type": "string" - }, - "encodedValuesContent": { - "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": "EncodedTask" - } - }, - "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", - "minLength": 1, - "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/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json deleted file mode 100644 index 2a23ac932a0b..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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", - "identity": { - "type": "SystemAssigned, UserAssigned", - "userAssignedIdentities": { - "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {} - } - }, - "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", - "identity": { - "principalId": "fc99dc67-1ad9-45c8-9ebc-e438081c8e30", - "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", - "type": "SystemAssigned, UserAssigned", - "userAssignedIdentities": { - "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" - } - } - }, - "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", - "identity": { - "principalId": "fc99dc67-1ad9-45c8-9ebc-e438081c8e30", - "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", - "type": "SystemAssigned, UserAssigned", - "userAssignedIdentities": { - "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" - } - } - }, - "tags": { - "testkey": "value" - } - } - } - } -} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json deleted file mode 100644 index 0e61f53957a1..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json +++ /dev/null @@ -1,203 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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", - "identity": { - "type": "SystemAssigned" - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "tags": { - "testkey": "value" - } - } - } - } -} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json deleted file mode 100644 index 8a777066503c..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json +++ /dev/null @@ -1,224 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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", - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}, - "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {} - } - }, - "credentials": null, - "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", - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { - "clientId": "d3ce1bc2-f7d7-4a5b-9979-950f4e57680e", - "principalId": "b6p9f58b-6fbf-4efd-a7e0-fvd46911a466" - }, - "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" - } - } - }, - "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", - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { - "clientId": "d3ce1bc2-f7d7-4a5b-9979-950f4e57680e", - "principalId": "b6p9f58b-6fbf-4efd-a7e0-fvd46911a466" - }, - "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" - } - } - }, - "tags": { - "testkey": "value" - } - } - } - } -} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json deleted file mode 100644 index f616058edbdf..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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" - ] - } - ] - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": { - "userName": { - "Type": "Vaultsecret", - "Value": "https://myacbvault.vault.azure.net/secrets/username" - }, - "password": { - "Type": "Vaultsecret", - "Value": "https://myacbvault.vault.azure.net/secrets/password" - }, - "identity": "[system]" - } - } - } - }, - "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" - } - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": null - }, - "sourceRegistry": null - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "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" - } - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": null - }, - "sourceRegistry": null - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "tags": { - "testkey": "value" - } - } - } - } -} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json deleted file mode 100644 index b39f5fd41309..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json +++ /dev/null @@ -1,192 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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" - ] - } - ] - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": { - "identity": "[system]" - } - } - } - }, - "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" - } - }, - "credentials": { - "customRegistries": { - "myregistry.azure.io": null - }, - "sourceRegistry": null - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "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" - } - }, - "credentials": { - "customRegistries": { - "myregistry.azure.io": null - }, - "sourceRegistry": null - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "tags": { - "testkey": "value" - } - } - } - } -} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json deleted file mode 100644 index 6ee37c4a3d9a..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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/2019-04-01/examples/RegistriesScheduleRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json deleted file mode 100644 index fb836139321d..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json deleted file mode 100644 index 39c9eb5457cf..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-01", - "runRequest": { - "type": "EncodedTaskRunRequest", - "values": [ - { - "name": "mytestargument", - "value": "mytestvalue", - "isSecret": false - }, - { - "name": "mysecrettestargument", - "value": "mysecrettestvalue", - "isSecret": true - } - ], - "platform": { - "os": "Linux" - }, - "agentConfiguration": { - "cpu": 2 - }, - "encodedTaskContent": "c3RlcHM6Cnt7IGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAncHJvZCcgfX0KICAtIHJ1bjogcHJvZCBzZXR1cAp7eyBlbHNlIGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAnc3RhZ2luZycgfX0KICAtIHJ1bjogc3RhZ2luZyBzZXR1cAp7eyBlbHNlIH19CiAgLSBydW46IGRlZmF1bHQgc2V0dXAKe3sgZW5kIH19CgogIC0gcnVuOiBidWlsZCAtdCBGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0gLgoKcHVzaDogWydGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0nXQ==", - "encodedValuesContent":"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/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json deleted file mode 100644 index 9775c60694d4..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-01", - "runRequest": { - "type": "FileTaskRunRequest", - "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" - }, - "agentConfiguration": { - "cpu": 2 - }, - "taskFilePath": "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/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json deleted file mode 100644 index 5e9cceaf0012..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-01", - "runRequest": { - "type": "FileTaskRunRequest", - "values": [ - { - "name": "mytestargument", - "value": "mytestvalue", - "isSecret": false - }, - { - "name": "mysecrettestargument", - "value": "mysecrettestvalue", - "isSecret": true - } - ], - "platform": { - "os": "Linux" - }, - "taskFilePath": "acb.yaml", - "credentials": { - "sourceRegistry": { - "loginMode": "Default" - }, - "customRegistries": { - "myregistry.azurecr.io": { - "userName": { - "type": "Opaque", - "value": "reg1" - }, - "password": { - "type": "Opaque", - "value": "***" - } - } - } - } - } - }, - "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/2019-04-01/examples/RegistriesScheduleRun_Task.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json deleted file mode 100644 index a015956b30e6..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json deleted file mode 100644 index 2e959ff4d3fa..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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", - "target": "stage1", - "credentials": { - "sourceRegistry": { - "loginMode": "Default" - }, - "customRegistries": { - "myregistry.azurecr.io": { - "userName": { - "type": "Opaque", - "value": "reg1" - }, - "password": { - "type": "Opaque", - "value": "***" - } - }, - "myregistry2.azurecr.io": { - "userName": { - "type": "Opaque", - "value": "reg2" - }, - "password": { - "type": "Opaque", - "value": "***" - } - } - } - } - } - }, - "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/2019-04-01/examples/RunsCancel.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json deleted file mode 100644 index aabde8b0d998..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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/2019-04-01/examples/RunsGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json deleted file mode 100644 index f9738b7cfb4a..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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/2019-04-01/examples/RunsGetLogSasUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json deleted file mode 100644 index aa2d1323cba1..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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/2019-04-01/examples/RunsList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json deleted file mode 100644 index 13855a4eb1f4..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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/2019-04-01/examples/RunsUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json deleted file mode 100644 index 441e643d12e3..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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/2019-04-01/examples/TasksCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json deleted file mode 100644 index 0e61f53957a1..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json +++ /dev/null @@ -1,203 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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", - "identity": { - "type": "SystemAssigned" - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "tags": { - "testkey": "value" - } - } - } - } -} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json deleted file mode 100644 index be43f2087a57..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-01", - "taskName": "myTask" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json deleted file mode 100644 index 865c03955bed..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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" - } - }, - "credentials": { - "customRegistries": { - "myregistry.azure.io": null - }, - "sourceRegistry": null - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "tags": { - "testkey": "value" - } - } - } - } -} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json deleted file mode 100644 index ae10bd636121..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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" - } - }, - "credentials": { - "customRegistries": { - "myregistry.azure-test.io": { - "userName": { - "type": "Opaque", - "value": "username" - }, - "password": { - "type": "Vaultsecret", - "value": "https://myacbvault.vault.azure.net/secrets/username" - }, - "identity": "[system]" - } - }, - "sourceRegistry": null - } - }, - "location": "eastus", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "tags": { - "testkey": "value" - } - } - } - } -} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json deleted file mode 100644 index 203183c5377f..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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" - } - }, - "credentials": { - "customRegistries": { - "myRegistry.azure.io": null - }, - "sourceRegistry": null - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "tags": { - "testkey": "value" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json deleted file mode 100644 index 4a0f83ff6825..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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" - ] - } - ] - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": { - "userName": { - "Type": "Opaque", - "Value": "username" - }, - "password": { - "Type": "Vaultsecret", - "Value": "https://myacbvault.vault.azure.net/secrets/password" - }, - "identity": "[system]" - } - } - } - }, - "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" - } - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": null - }, - "sourceRegistry": null - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "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" - } - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": null - }, - "sourceRegistry": null - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "tags": { - "testkey": "value" - } - } - } - } -} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json deleted file mode 100644 index 6db48cf290c0..000000000000 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "parameters": { - "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", - "resourceGroupName": "myResourceGroup", - "registryName": "myRegistry", - "api-version": "2019-04-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" - ] - } - ] - }, - "credentials": { - "customRegistries": { - "myregistry.azurecr.io": { - "userName": { - "Type": "Opaque", - "Value": "username" - }, - "password": { - "Type": "Opaque", - "Value": "***" - } - } - } - } - }, - "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" - } - }, - "credentials": { - "customRegistries": { - "myregistry.azure.io": null - }, - "sourceRegistry": null - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "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" - } - }, - "credentials": { - "customRegistries": { - "myregistry.azure.io": null - }, - "sourceRegistry": null - } - }, - "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", - "identity": { - "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", - "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", - "type": "SystemAssigned" - }, - "tags": { - "testkey": "value" - } - } - } - } -} \ No newline at end of file From 5710919d75f80e343c1568be2c9d36f4df70f9ad Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Mon, 15 Apr 2019 10:10:46 -0700 Subject: [PATCH 19/23] add new API version: 2019-04-01 --- .../2019-04-01/containerregistry_build.json | 2460 +++++++++++++++++ ...sksCreate_WithSystemAndUserIdentities.json | 218 ++ .../TasksCreate_WithSystemIdentity.json | 203 ++ .../TasksCreate_WithUserIdentities.json | 224 ++ ...sUpdate_WithKeyVaultCustomCredentials.json | 200 ++ .../TasksUpdate_WithMSICustomCredentials.json | 192 ++ .../RegistriesGetBuildSourceUploadUrl.json | 16 + .../examples/RegistriesScheduleRun.json | 54 + .../RegistriesScheduleRun_EncodedTaskRun.json | 47 + .../RegistriesScheduleRun_FileTaskRun.json | 48 + ...uleRun_FileTask_WithCustomCredentials.json | 60 + .../examples/RegistriesScheduleRun_Task.json | 40 + ...riesScheduleRun_WithCustomCredentials.json | 82 + .../2019-04-01/examples/RunsCancel.json | 13 + .../stable/2019-04-01/examples/RunsGet.json | 57 + .../2019-04-01/examples/RunsGetLogSasUrl.json | 16 + .../stable/2019-04-01/examples/RunsList.json | 62 + .../2019-04-01/examples/RunsUpdate.json | 106 + .../2019-04-01/examples/TasksCreate.json | 203 ++ .../2019-04-01/examples/TasksDelete.json | 14 + .../stable/2019-04-01/examples/TasksGet.json | 81 + .../2019-04-01/examples/TasksGetDetails.json | 95 + .../stable/2019-04-01/examples/TasksList.json | 84 + .../2019-04-01/examples/TasksUpdate.json | 200 ++ ...sksUpdate_WithOpaqueCustomCredentials.json | 199 ++ 25 files changed, 4974 insertions(+) create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json create mode 100644 specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json new file mode 100644 index 000000000000..8e365b964b8d --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json @@ -0,0 +1,2460 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-04-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" + }, + "Registries_ScheduleRun_EncodedTaskRun": { + "$ref": "./examples/RegistriesScheduleRun_EncodedTaskRun.json" + }, + "Registries_ScheduleRun_FileTaskRun": { + "$ref": "./examples/RegistriesScheduleRun_FileTaskRun.json" + }, + "Registries_ScheduleRun_Task": { + "$ref": "./examples/RegistriesScheduleRun_Task.json" + }, + "Registries_ScheduleRun_Task_WithCustomCredentials": { + "$ref": "./examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json" + }, + "Registries_ScheduleRun_WithCustomCredentials": { + "$ref": "./examples/RegistriesScheduleRun_WithCustomCredentials.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" + }, + "Tasks_Create_WithSystemAndUserIdentities": { + "$ref": "./examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json" + }, + "Tasks_Create_WithUserIdentities_WithSystemIdentity": { + "$ref": "./examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json" + }, + "Tasks_Create_WithUserIdentities": { + "$ref": "./examples/ManagedIdentity/TasksCreate_WithUserIdentities.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" + }, + "Tasks_Update_WithKeyVaultCustomCredentials": { + "$ref": "./examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json" + }, + "Tasks_Update_WithMSICustomCredentials": { + "$ref": "./examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json" + }, + "Tasks_Update_WithOpaqueCustomCredentials": { + "$ref": "./examples/TasksUpdate_WithOpaqueCustomCredentials.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", + "QuickRun", + "AutoBuild", + "AutoRun" + ], + "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 generates base image dependencies.", + "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 has base image trigger configured." + }, + "sourceTrigger": { + "$ref": "#/definitions/SourceTriggerDescriptor", + "description": "The source trigger that caused the run." + }, + "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." + }, + "sourceRegistryAuth": { + "description": "The scope of the credentials that were used to login to the source registry during this run.", + "type": "string" + }, + "customRegistries": { + "description": "The list of custom registries that were logged in during this run.", + "type": "array", + "items": { + "type": "string" + } + }, + "runErrorMessage": { + "description": "The error message received from backend systems after the run is scheduled.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning state of a run.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "isArchiveEnabled": { + "description": "The value that indicates whether archiving is enabled or not.", + "default": false, + "type": "boolean" + } + } + }, + "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" + ], + "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", + "QuickRun", + "AutoBuild", + "AutoRun" + ], + "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": { + "identity": { + "$ref": "#/definitions/IdentityProperties", + "description": "Identity for the resource." + }, + "properties": { + "$ref": "#/definitions/TaskProperties", + "description": "The properties of a task.", + "x-ms-client-flatten": true + } + } + }, + "IdentityProperties": { + "description": "Managed identity for the resource.", + "type": "object", + "properties": { + "principalId": { + "description": "The principal ID of resource identity.", + "type": "string" + }, + "tenantId": { + "description": "The tenant ID of resource.", + "type": "string" + }, + "type": { + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "description": "The list of user identities associated with the resource. The user identity \r\ndictionary key references will be ARM resource ids in the form: \r\n'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/\r\n providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserIdentityProperties" + } + } + } + }, + "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." + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + } + }, + "UserIdentityProperties": { + "type": "object", + "properties": { + "principalId": { + "description": "The principal id of user assigned identity.", + "type": "string" + }, + "clientId": { + "description": "The client id of user assigned identity.", + "type": "string" + } + } + }, + "TaskStepProperties": { + "description": "Base properties for any task step.", + "type": "object", + "properties": { + "type": { + "description": "The type of the step.", + "enum": [ + "Docker", + "FileTask", + "EncodedTask" + ], + "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 + }, + "contextPath": { + "description": "The URL(absolute or relative) of the source context for the task step.", + "type": "string" + }, + "contextAccessToken": { + "description": "The token (git PAT or SAS token of storage account blob) associated with the context for a step.", + "type": "string" + } + }, + "discriminator": "type" + }, + "TriggerProperties": { + "description": "The properties of a 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." + } + } + }, + "Credentials": { + "description": "The parameters that describes a set of credentials that will be used when a run is invoked.", + "type": "object", + "properties": { + "sourceRegistry": { + "$ref": "#/definitions/SourceRegistryCredentials", + "description": "Describes the credential parameters for accessing the source registry." + }, + "customRegistries": { + "description": "Describes the credential parameters for accessing other custom registries. The key\r\nfor the dictionary item will be the registry login server (myregistry.azurecr.io) and\r\nthe value of the item will be the registry credentials for accessing the registry.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/CustomRegistryCredentials" + } + } + } + }, + "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", + "pullrequest" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceTriggerEvent", + "modelAsString": true + } + } + }, + "status": { + "description": "The current status of 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 trigger.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "SourceRegistryCredentials": { + "description": "Describes the credential parameters for accessing the source registry.", + "type": "object", + "properties": { + "loginMode": { + "description": "The authentication mode which determines the source registry login scope. The credentials for the source registry\r\nwill be generated using the given scope. These credentials will be used to login to\r\nthe source registry during the run.", + "enum": [ + "None", + "Default" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceRegistryLoginMode", + "modelAsString": true + } + } + } + }, + "CustomRegistryCredentials": { + "description": "Describes the credentials that will be used to access a custom registry during a run.", + "type": "object", + "properties": { + "userName": { + "$ref": "#/definitions/SecretObject", + "description": "The username for logging into the custom registry." + }, + "password": { + "$ref": "#/definitions/SecretObject", + "description": "The password for logging into the custom registry. The password is a secret \r\nobject that allows multiple ways of providing the value for it." + }, + "identity": { + "description": "Indicates the managed identity assigned to the custom credential. If a user-assigned identity\r\nthis value is the Client ID. If a system-assigned identity, the value will be `system`. In\r\nthe case of a system-assigned identity, the Client ID will be determined by the runner. This\r\nidentity may be used to authenticate to key vault to retrieve credentials or it may be the only \r\nsource of authentication used for accessing the registry.", + "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 repository", + "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." + } + } + }, + "SecretObject": { + "description": "Describes the properties of a secret object value.", + "type": "object", + "properties": { + "value": { + "description": "The value of the secret. The format of this value will be determined\r\nbased on the type of the secret object. If the type is Opaque, the value will be\r\nused as is without any modification.", + "type": "string" + }, + "type": { + "description": "The type of the secret object which determines how the value of the secret object has to be\r\ninterpreted.", + "enum": [ + "Opaque", + "Vaultsecret" + ], + "type": "string", + "x-ms-enum": { + "name": "SecretObjectType", + "modelAsString": true + } + } + } + }, + "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": { + "identity": { + "$ref": "#/definitions/IdentityProperties", + "description": "Identity for the resource." + }, + "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." + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The parameters that describes a set of credentials that will be used when this run is invoked." + } + } + }, + "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", + "FileTask", + "EncodedTask" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "StepType", + "modelAsString": true + } + }, + "contextPath": { + "description": "The URL(absolute or relative) of the source context for the task step.", + "type": "string" + }, + "contextAccessToken": { + "description": "The token (git PAT or SAS token of storage account blob) associated with the context for a step.", + "type": "string" + } + }, + "discriminator": "type" + }, + "TriggerUpdateParameters": { + "description": "The properties for updating 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", + "pullrequest" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceTriggerEvent", + "modelAsString": true + } + } + }, + "status": { + "description": "The current status of 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 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 repository", + "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", + "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" + }, + "target": { + "description": "The name of the target build stage for the docker build.", + "type": "string" + }, + "arguments": { + "description": "The collection of override arguments to be used when executing the run.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "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." + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", + "type": "string" + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + }, + "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" + } + } + }, + "FileTaskRunRequest": { + "description": "The request parameters for a scheduling run against a task file.", + "required": [ + "type", + "taskFilePath", + "platform" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "taskFilePath": { + "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" + } + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "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." + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", + "type": "string" + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + }, + "x-ms-discriminator-value": "FileTaskRunRequest" + }, + "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" + }, + "EncodedTaskRunRequest": { + "description": "The parameters for a quick task run request.", + "required": [ + "type", + "encodedTaskContent", + "platform" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "encodedTaskContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "encodedValuesContent": { + "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": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "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." + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", + "type": "string" + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + }, + "x-ms-discriminator-value": "EncodedTaskRunRequest" + }, + "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" + }, + "target": { + "description": "The name of the target build stage for the docker build.", + "type": "string" + }, + "arguments": { + "description": "The collection of override arguments to be used when executing this build step.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + } + }, + "x-ms-discriminator-value": "Docker" + }, + "FileTaskStep": { + "description": "The properties of a task step.", + "required": [ + "taskFilePath" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepProperties" + } + ], + "properties": { + "taskFilePath": { + "description": "The 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" + } + } + }, + "x-ms-discriminator-value": "FileTask" + }, + "EncodedTaskStep": { + "description": "The properties of a encoded task step.", + "required": [ + "encodedTaskContent" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepProperties" + } + ], + "properties": { + "encodedTaskContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "encodedValuesContent": { + "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": "EncodedTask" + }, + "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" + } + }, + "target": { + "description": "The name of the target build stage for the docker build.", + "type": "string" + } + }, + "x-ms-discriminator-value": "Docker" + }, + "FileTaskStepUpdateParameters": { + "description": "The properties of updating a task step.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepUpdateParameters" + } + ], + "properties": { + "taskFilePath": { + "description": "The task template/definition file path relative to the source context.", + "type": "string" + }, + "valuesFilePath": { + "description": "The 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" + } + } + }, + "x-ms-discriminator-value": "FileTask" + }, + "EncodedTaskStepUpdateParameters": { + "description": "The properties for updating encoded task step.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepUpdateParameters" + } + ], + "properties": { + "encodedTaskContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "encodedValuesContent": { + "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": "EncodedTask" + } + }, + "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", + "minLength": 1, + "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/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json new file mode 100644 index 000000000000..2a23ac932a0b --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json @@ -0,0 +1,218 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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", + "identity": { + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {} + } + }, + "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", + "identity": { + "principalId": "fc99dc67-1ad9-45c8-9ebc-e438081c8e30", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, + "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", + "identity": { + "principalId": "fc99dc67-1ad9-45c8-9ebc-e438081c8e30", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json new file mode 100644 index 000000000000..0e61f53957a1 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json @@ -0,0 +1,203 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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", + "identity": { + "type": "SystemAssigned" + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json new file mode 100644 index 000000000000..8a777066503c --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json @@ -0,0 +1,224 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {} + } + }, + "credentials": null, + "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", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { + "clientId": "d3ce1bc2-f7d7-4a5b-9979-950f4e57680e", + "principalId": "b6p9f58b-6fbf-4efd-a7e0-fvd46911a466" + }, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, + "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", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { + "clientId": "d3ce1bc2-f7d7-4a5b-9979-950f4e57680e", + "principalId": "b6p9f58b-6fbf-4efd-a7e0-fvd46911a466" + }, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json new file mode 100644 index 000000000000..f616058edbdf --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json @@ -0,0 +1,200 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + ] + } + ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "Type": "Vaultsecret", + "Value": "https://myacbvault.vault.azure.net/secrets/username" + }, + "password": { + "Type": "Vaultsecret", + "Value": "https://myacbvault.vault.azure.net/secrets/password" + }, + "identity": "[system]" + } + } + } + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json new file mode 100644 index 000000000000..b39f5fd41309 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json @@ -0,0 +1,192 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + ] + } + ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "identity": "[system]" + } + } + } + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json new file mode 100644 index 000000000000..6ee37c4a3d9a --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesGetBuildSourceUploadUrl.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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/2019-04-01/examples/RegistriesScheduleRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json new file mode 100644 index 000000000000..fb836139321d --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json new file mode 100644 index 000000000000..39c9eb5457cf --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_EncodedTaskRun.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-01", + "runRequest": { + "type": "EncodedTaskRunRequest", + "values": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "platform": { + "os": "Linux" + }, + "agentConfiguration": { + "cpu": 2 + }, + "encodedTaskContent": "c3RlcHM6Cnt7IGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAncHJvZCcgfX0KICAtIHJ1bjogcHJvZCBzZXR1cAp7eyBlbHNlIGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAnc3RhZ2luZycgfX0KICAtIHJ1bjogc3RhZ2luZyBzZXR1cAp7eyBlbHNlIH19CiAgLSBydW46IGRlZmF1bHQgc2V0dXAKe3sgZW5kIH19CgogIC0gcnVuOiBidWlsZCAtdCBGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0gLgoKcHVzaDogWydGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0nXQ==", + "encodedValuesContent":"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/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json new file mode 100644 index 000000000000..9775c60694d4 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTaskRun.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-01", + "runRequest": { + "type": "FileTaskRunRequest", + "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" + }, + "agentConfiguration": { + "cpu": 2 + }, + "taskFilePath": "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/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json new file mode 100644 index 000000000000..5e9cceaf0012 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-01", + "runRequest": { + "type": "FileTaskRunRequest", + "values": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "platform": { + "os": "Linux" + }, + "taskFilePath": "acb.yaml", + "credentials": { + "sourceRegistry": { + "loginMode": "Default" + }, + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg1" + }, + "password": { + "type": "Opaque", + "value": "***" + } + } + } + } + } + }, + "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/2019-04-01/examples/RegistriesScheduleRun_Task.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json new file mode 100644 index 000000000000..a015956b30e6 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_Task.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json new file mode 100644 index 000000000000..2e959ff4d3fa --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RegistriesScheduleRun_WithCustomCredentials.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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", + "target": "stage1", + "credentials": { + "sourceRegistry": { + "loginMode": "Default" + }, + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg1" + }, + "password": { + "type": "Opaque", + "value": "***" + } + }, + "myregistry2.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg2" + }, + "password": { + "type": "Opaque", + "value": "***" + } + } + } + } + } + }, + "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/2019-04-01/examples/RunsCancel.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json new file mode 100644 index 000000000000..aabde8b0d998 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsCancel.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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/2019-04-01/examples/RunsGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json new file mode 100644 index 000000000000..f9738b7cfb4a --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGet.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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/2019-04-01/examples/RunsGetLogSasUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json new file mode 100644 index 000000000000..aa2d1323cba1 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsGetLogSasUrl.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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/2019-04-01/examples/RunsList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json new file mode 100644 index 000000000000..13855a4eb1f4 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsList.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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/2019-04-01/examples/RunsUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json new file mode 100644 index 000000000000..441e643d12e3 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/RunsUpdate.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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/2019-04-01/examples/TasksCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json new file mode 100644 index 000000000000..0e61f53957a1 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json @@ -0,0 +1,203 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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", + "identity": { + "type": "SystemAssigned" + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json new file mode 100644 index 000000000000..be43f2087a57 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-01", + "taskName": "myTask" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json new file mode 100644 index 000000000000..865c03955bed --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json new file mode 100644 index 000000000000..ae10bd636121 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure-test.io": { + "userName": { + "type": "Opaque", + "value": "username" + }, + "password": { + "type": "Vaultsecret", + "value": "https://myacbvault.vault.azure.net/secrets/username" + }, + "identity": "[system]" + } + }, + "sourceRegistry": null + } + }, + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json new file mode 100644 index 000000000000..203183c5377f --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + } + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json new file mode 100644 index 000000000000..4a0f83ff6825 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json @@ -0,0 +1,200 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + ] + } + ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "Type": "Opaque", + "Value": "username" + }, + "password": { + "Type": "Vaultsecret", + "Value": "https://myacbvault.vault.azure.net/secrets/password" + }, + "identity": "[system]" + } + } + } + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json new file mode 100644 index 000000000000..6db48cf290c0 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json @@ -0,0 +1,199 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-04-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" + ] + } + ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "Type": "Opaque", + "Value": "username" + }, + "password": { + "Type": "Opaque", + "Value": "***" + } + } + } + } + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "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" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "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", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} \ No newline at end of file From 98f457ddc924041fe496ea15209c17f9233fee51 Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Wed, 17 Apr 2019 15:01:47 -0700 Subject: [PATCH 20/23] Support Scheduler Trigger --- .../2019-04-01/containerregistry_build.json | 44 +++++++++++++++++++ ...sksCreate_WithSystemAndUserIdentities.json | 27 ++++++++++++ .../TasksCreate_WithSystemIdentity.json | 41 ++++++++++++++--- .../TasksCreate_WithUserIdentities.json | 27 ++++++++++++ ...sUpdate_WithKeyVaultCustomCredentials.json | 19 ++++++++ .../TasksUpdate_WithMSICustomCredentials.json | 19 ++++++++ .../2019-04-01/examples/TasksCreate.json | 38 +++++++++++++--- .../stable/2019-04-01/examples/TasksGet.json | 9 ++++ .../2019-04-01/examples/TasksGetDetails.json | 11 ++++- .../stable/2019-04-01/examples/TasksList.json | 9 ++++ .../2019-04-01/examples/TasksUpdate.json | 19 ++++++++ ...sksUpdate_WithOpaqueCustomCredentials.json | 19 ++++++++ 12 files changed, 267 insertions(+), 15 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json index 8e365b964b8d..752eb730b45e 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json @@ -1290,6 +1290,13 @@ "description": "The properties of a trigger.", "type": "object", "properties": { + "schedulerTriggers": { + "description": "The collection of scheduler triggers.", + "type": "array", + "items": { + "$ref": "#/definitions/SchedulerTrigger" + } + }, "sourceTriggers": { "description": "The collection of triggers based on source code repository.", "type": "array", @@ -1354,6 +1361,36 @@ } } }, + "SchedulerTrigger": { + "description": "The properties of a scheduler trigger.", + "required": [ + "schedule", + "name" + ], + "type": "object", + "properties": { + "schedule": { + "description": "The CRON expression for the task schedule", + "type": "string" + }, + "status": { + "description": "The current status of trigger.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, "SourceTrigger": { "description": "The properties of a source based trigger.", "required": [ @@ -1711,6 +1748,13 @@ "description": "The properties for updating triggers.", "type": "object", "properties": { + "schedulerTriggers": { + "description": "The collection of scheduler triggers.", + "type": "array", + "items": { + "$ref": "#/definitions/SchedulerTrigger" + } + }, "sourceTriggers": { "description": "The collection of triggers based on source code repository.", "type": "array", diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json index 2a23ac932a0b..8e5169fa257a 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json @@ -38,9 +38,17 @@ ] }, "trigger":{ + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -57,6 +65,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -105,9 +114,17 @@ ] }, "trigger":{ + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -120,6 +137,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -175,9 +193,17 @@ ] }, "trigger":{ + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -190,6 +216,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json index 0e61f53957a1..1e03d61e6716 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json @@ -37,10 +37,18 @@ } ] }, - "trigger":{ + "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -50,13 +58,14 @@ "token": "xxxxx" } }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -101,22 +110,31 @@ } ] }, - "trigger":{ + "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", "branch": "master" }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -165,22 +183,31 @@ } ] }, - "trigger":{ + "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", "branch": "master" }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -200,4 +227,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json index 8a777066503c..020dba2f41f0 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json @@ -38,9 +38,17 @@ ] }, "trigger":{ + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -57,6 +65,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -107,9 +116,17 @@ ] }, "trigger":{ + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -122,6 +139,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -179,9 +197,17 @@ ] }, "trigger":{ + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -194,6 +220,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json index f616058edbdf..a2f6b5f37087 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json @@ -22,6 +22,7 @@ "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlAuthProperties": { "tokenType": "PAT", @@ -87,9 +88,17 @@ ] }, "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -102,6 +111,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, @@ -157,9 +167,17 @@ ] }, "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -172,6 +190,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json index b39f5fd41309..7792ba39b832 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json @@ -22,6 +22,7 @@ "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlAuthProperties": { "tokenType": "PAT", @@ -79,9 +80,17 @@ ] }, "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -94,6 +103,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, @@ -149,9 +159,17 @@ ] }, "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -164,6 +182,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json index 0e61f53957a1..ef34fb38638d 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json @@ -37,10 +37,18 @@ } ] }, - "trigger":{ + "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -50,13 +58,14 @@ "token": "xxxxx" } }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -101,22 +110,31 @@ } ] }, - "trigger":{ + "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", "branch": "master" }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -165,7 +183,13 @@ } ] }, - "trigger":{ + "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", @@ -174,7 +198,7 @@ "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", "branch": "master" }, - "sourceTriggerEvents":[ + "sourceTriggerEvents": [ "commit" ] } @@ -200,4 +224,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json index 865c03955bed..ebff0fb71fb8 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json @@ -38,9 +38,17 @@ ] }, "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -53,6 +61,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json index ae10bd636121..45db078ba498 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json @@ -41,9 +41,17 @@ ] }, "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -60,6 +68,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, @@ -72,7 +81,7 @@ }, "password": { "type": "Vaultsecret", - "value": "https://myacbvault.vault.azure.net/secrets/username" + "value": "https://myacbvault.vault.azure.net/secrets/username" }, "identity": "[system]" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json index 203183c5377f..01bc69fde24c 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json @@ -39,9 +39,17 @@ ] }, "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -54,6 +62,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json index 4a0f83ff6825..bc6fb16a17cd 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json @@ -22,6 +22,7 @@ "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlAuthProperties": { "tokenType": "PAT", @@ -87,9 +88,17 @@ ] }, "trigger":{ + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -102,6 +111,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, @@ -157,9 +167,17 @@ ] }, "trigger":{ + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -172,6 +190,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json index 6db48cf290c0..9ddb12ec0bd5 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json @@ -22,6 +22,7 @@ "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlAuthProperties": { "tokenType": "PAT", @@ -86,9 +87,17 @@ ] }, "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -101,6 +110,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, @@ -156,9 +166,17 @@ ] }, "trigger": { + "schedulerTriggers": [ + { + "name": "mySchedulerTrigger", + "status": "Enabled", + "schedule": "0 30 9 * * 1-5" + } + ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -171,6 +189,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } }, From 70dc5dd5f12c39e8414fb243927d931405a7fa87 Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Wed, 17 Apr 2019 22:42:09 -0700 Subject: [PATCH 21/23] fix build errors --- .../ManagedIdentity/TasksCreate_WithUserIdentities.json | 1 - .../TasksUpdate_WithKeyVaultCustomCredentials.json | 8 ++++---- .../stable/2019-04-01/examples/TasksUpdate.json | 8 ++++---- .../examples/TasksUpdate_WithOpaqueCustomCredentials.json | 8 ++++---- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json index 020dba2f41f0..b31e568f5f96 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json @@ -78,7 +78,6 @@ "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {} } }, - "credentials": null, "tags": { "testkey": "value" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json index a2f6b5f37087..33ad6888ebbf 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json @@ -39,12 +39,12 @@ "customRegistries": { "myregistry.azurecr.io": { "userName": { - "Type": "Vaultsecret", - "Value": "https://myacbvault.vault.azure.net/secrets/username" + "type": "Vaultsecret", + "value": "https://myacbvault.vault.azure.net/secrets/username" }, "password": { - "Type": "Vaultsecret", - "Value": "https://myacbvault.vault.azure.net/secrets/password" + "type": "Vaultsecret", + "value": "https://myacbvault.vault.azure.net/secrets/password" }, "identity": "[system]" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json index bc6fb16a17cd..894b623ed6ef 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json @@ -39,12 +39,12 @@ "customRegistries": { "myregistry.azurecr.io": { "userName": { - "Type": "Opaque", - "Value": "username" + "type": "Opaque", + "value": "username" }, "password": { - "Type": "Vaultsecret", - "Value": "https://myacbvault.vault.azure.net/secrets/password" + "type": "Vaultsecret", + "value": "https://myacbvault.vault.azure.net/secrets/password" }, "identity": "[system]" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json index 9ddb12ec0bd5..7d0f2b1504df 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json @@ -39,12 +39,12 @@ "customRegistries": { "myregistry.azurecr.io": { "userName": { - "Type": "Opaque", - "Value": "username" + "type": "Opaque", + "value": "username" }, "password": { - "Type": "Opaque", - "Value": "***" + "type": "Opaque", + "value": "***" } } } From 28189818d4f0b48121cb565c61c7bbe37ba468a5 Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Tue, 23 Apr 2019 16:48:05 -0700 Subject: [PATCH 22/23] rename to TimerTrigger --- .../2019-04-01/containerregistry_build.json | 47 ++++++++++++++++--- ...sksCreate_WithSystemAndUserIdentities.json | 15 +++--- .../TasksCreate_WithSystemIdentity.json | 15 +++--- .../TasksCreate_WithUserIdentities.json | 15 +++--- ...sUpdate_WithKeyVaultCustomCredentials.json | 9 ++-- .../TasksUpdate_WithMSICustomCredentials.json | 9 ++-- .../2019-04-01/examples/TasksCreate.json | 18 +++---- .../stable/2019-04-01/examples/TasksGet.json | 4 +- .../2019-04-01/examples/TasksGetDetails.json | 4 +- .../stable/2019-04-01/examples/TasksList.json | 4 +- .../2019-04-01/examples/TasksUpdate.json | 9 ++-- ...sksUpdate_WithOpaqueCustomCredentials.json | 9 ++-- 12 files changed, 90 insertions(+), 68 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json index 752eb730b45e..2acf80a3a8ba 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json @@ -1290,11 +1290,11 @@ "description": "The properties of a trigger.", "type": "object", "properties": { - "schedulerTriggers": { + "timerTriggers": { "description": "The collection of scheduler triggers.", "type": "array", "items": { - "$ref": "#/definitions/SchedulerTrigger" + "$ref": "#/definitions/TimerTrigger" } }, "sourceTriggers": { @@ -1361,8 +1361,8 @@ } } }, - "SchedulerTrigger": { - "description": "The properties of a scheduler trigger.", + "TimerTrigger": { + "description": "The properties of a timer trigger.", "required": [ "schedule", "name" @@ -1375,6 +1375,7 @@ }, "status": { "description": "The current status of trigger.", + "default": "Enabled", "enum": [ "Disabled", "Enabled" @@ -1421,6 +1422,7 @@ }, "status": { "description": "The current status of trigger.", + "default": "Enabled", "enum": [ "Disabled", "Enabled" @@ -1459,6 +1461,7 @@ }, "status": { "description": "The current status of trigger.", + "default": "Enabled", "enum": [ "Disabled", "Enabled" @@ -1748,11 +1751,11 @@ "description": "The properties for updating triggers.", "type": "object", "properties": { - "schedulerTriggers": { + "timerTriggers": { "description": "The collection of scheduler triggers.", "type": "array", "items": { - "$ref": "#/definitions/SchedulerTrigger" + "$ref": "#/definitions/TimerTriggerUpdateParameters" } }, "sourceTriggers": { @@ -1768,6 +1771,36 @@ } } }, + "TimerTriggerUpdateParameters": { + "description": "The properties for updating a timer trigger.", + "required": [ + "name" + ], + "type": "object", + "properties": { + "schedule": { + "description": "The CRON expression for the task schedule", + "type": "string" + }, + "status": { + "description": "The current status of trigger.", + "default": "Enabled", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, "SourceTriggerUpdateParameters": { "description": "The properties for updating a source based trigger.", "required": [ @@ -1796,6 +1829,7 @@ }, "status": { "description": "The current status of trigger.", + "default": "Enabled", "enum": [ "Disabled", "Enabled" @@ -1833,6 +1867,7 @@ }, "status": { "description": "The current status of trigger.", + "default": "Enabled", "enum": [ "Disabled", "Enabled" diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json index 8e5169fa257a..66be54f0d11c 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json @@ -38,17 +38,15 @@ ] }, "trigger":{ - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", - "status": "Enabled", + "name": "myTimerTrigger", "schedule": "0 30 9 * * 1-5" } ], "sourceTriggers": [ { "name": "mySourceTrigger", - "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -65,7 +63,6 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", - "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -114,9 +111,9 @@ ] }, "trigger":{ - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } @@ -193,9 +190,9 @@ ] }, "trigger":{ - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json index 1e03d61e6716..512457a1184d 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json @@ -38,17 +38,15 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", - "status": "Enabled", + "name": "myTimerTrigger", "schedule": "0 30 9 * * 1-5" } ], "sourceTriggers": [ { "name": "mySourceTrigger", - "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -65,7 +63,6 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", - "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -111,9 +108,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } @@ -184,9 +181,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json index b31e568f5f96..812553abb310 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json @@ -38,17 +38,15 @@ ] }, "trigger":{ - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", - "status": "Enabled", + "name": "myTimerTrigger", "schedule": "0 30 9 * * 1-5" } ], "sourceTriggers": [ { "name": "mySourceTrigger", - "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -65,7 +63,6 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", - "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -115,9 +112,9 @@ ] }, "trigger":{ - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } @@ -196,9 +193,9 @@ ] }, "trigger":{ - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json index 33ad6888ebbf..edbf57228b99 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json @@ -22,7 +22,6 @@ "sourceTriggers": [ { "name": "mySourceTrigger", - "status": "Enabled", "sourceRepository": { "sourceControlAuthProperties": { "tokenType": "PAT", @@ -88,9 +87,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } @@ -167,9 +166,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json index 7792ba39b832..58f95d75ebcd 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json @@ -22,7 +22,6 @@ "sourceTriggers": [ { "name": "mySourceTrigger", - "status": "Enabled", "sourceRepository": { "sourceControlAuthProperties": { "tokenType": "PAT", @@ -80,9 +79,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } @@ -159,9 +158,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json index ef34fb38638d..512457a1184d 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksCreate.json @@ -38,17 +38,15 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", - "status": "Enabled", + "name": "myTimerTrigger", "schedule": "0 30 9 * * 1-5" } ], "sourceTriggers": [ { "name": "mySourceTrigger", - "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -65,7 +63,6 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", - "status": "Enabled", "baseImageTriggerType": "Runtime" } } @@ -111,9 +108,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } @@ -184,15 +181,17 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", + "status": "Enabled", "schedule": "0 30 9 * * 1-5" } ], "sourceTriggers": [ { "name": "mySourceTrigger", + "status": "Enabled", "sourceRepository": { "sourceControlType": "Github", "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", @@ -205,6 +204,7 @@ ], "baseImageTrigger": { "name": "myBaseImageTrigger", + "status": "Enabled", "baseImageTriggerType": "Runtime" } } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json index ebff0fb71fb8..dad97164b37d 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGet.json @@ -38,9 +38,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json index 45db078ba498..b25c074842f6 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksGetDetails.json @@ -41,9 +41,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json index 01bc69fde24c..d0388c1778fc 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksList.json @@ -39,9 +39,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json index 894b623ed6ef..1c5533cf3baf 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate.json @@ -22,7 +22,6 @@ "sourceTriggers": [ { "name": "mySourceTrigger", - "status": "Enabled", "sourceRepository": { "sourceControlAuthProperties": { "tokenType": "PAT", @@ -88,9 +87,9 @@ ] }, "trigger":{ - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } @@ -167,9 +166,9 @@ ] }, "trigger":{ - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json index 7d0f2b1504df..81121f9eea7d 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/examples/TasksUpdate_WithOpaqueCustomCredentials.json @@ -22,7 +22,6 @@ "sourceTriggers": [ { "name": "mySourceTrigger", - "status": "Enabled", "sourceRepository": { "sourceControlAuthProperties": { "tokenType": "PAT", @@ -87,9 +86,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } @@ -166,9 +165,9 @@ ] }, "trigger": { - "schedulerTriggers": [ + "timerTriggers": [ { - "name": "mySchedulerTrigger", + "name": "myTimerTrigger", "status": "Enabled", "schedule": "0 30 9 * * 1-5" } From 5828dc5aad27cf2fa8078522537a811be4a5648f Mon Sep 17 00:00:00 2001 From: Jeanine Burke Date: Tue, 23 Apr 2019 16:56:35 -0700 Subject: [PATCH 23/23] nit rename comment --- .../stable/2019-04-01/containerregistry_build.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json index 2acf80a3a8ba..e3ce011b0da1 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json @@ -1291,7 +1291,7 @@ "type": "object", "properties": { "timerTriggers": { - "description": "The collection of scheduler triggers.", + "description": "The collection of timer triggers.", "type": "array", "items": { "$ref": "#/definitions/TimerTrigger" @@ -1752,7 +1752,7 @@ "type": "object", "properties": { "timerTriggers": { - "description": "The collection of scheduler triggers.", + "description": "The collection of timer triggers.", "type": "array", "items": { "$ref": "#/definitions/TimerTriggerUpdateParameters"