@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api ContainerRegistryManagementClient
@base https://management.azure.com/
@version 2019-06-01-preview
@auth OAuth2
@common_fields {subscriptionId: any # The Microsoft Azure subscription ID., resourceGroupName: any # The name of the resource group to which the container registry belongs., registryName: any # The name of the container registry., api-version: any # The client API version.}
@endpoints 25
@hint download_for_search
@toc subscriptions(25)

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}
@desc Gets the detailed information for a given agent pool.
@required {agentPoolName: any # The name of the agent pool.}
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}
@desc Creates an agent pool for a container registry with the specified parameters.
@required {agentPoolName: any # The name of the agent pool., agentPool: map # The parameters of an agent pool that needs to scheduled.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(201) The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}
@desc Deletes a specified agent pool resource.
@required {agentPoolName: any # The name of the agent pool.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(202) The request was successfully accepted; the operation will complete asynchronously.
@returns(204) No Content - the specified resource was not found.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}
@desc Updates an agent pool with the specified parameters.
@required {agentPoolName: any # The name of the agent pool., updateParameters: map # The parameters for updating an agent pool.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(201) The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools
@desc Lists all the agent pools for a specified container registry.
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus
@desc Gets the count of queued runs for a given agent pool.
@required {agentPoolName: any # The name of the agent pool.}
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun
@desc Schedules a new run based on the request parameters and add it to the run queue.
@required {runRequest: map # The parameters of a run that needs to scheduled.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(202) The request was successfully accepted; the operation will complete asynchronously.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl
@desc Get the upload location for the user to be able to upload the source.
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs
@desc Gets all the runs for a registry.
@optional {$filter: any # 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., $top: any # $top is supported for get list of runs, which limits the maximum number of runs to return.}
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}
@desc Gets the detailed information for a given run.
@required {runId: any # The run ID.}
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}
@desc Patch the run properties.
@required {runId: any # The run ID., runUpdateParameters: map # The run update properties.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(201) The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/listLogSasUrl
@desc Gets a link to download the run logs.
@required {runId: any # The run ID.}
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel
@desc Cancel an existing run.
@required {runId: any # The run ID.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(202) The request was successfully accepted; the operation will complete asynchronously.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}
@desc Gets the detailed information for a given task run.
@required {taskRunName: any # The name of the task run.}
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}
@desc Creates a task run for a container registry with the specified parameters.
@required {taskRunName: any # The name of the task run., taskRun: map # The parameters of a run that needs to scheduled.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(201) The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}
@desc Deletes a specified task run resource.
@required {taskRunName: any # The name of the task run.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(202) The request was successfully accepted; the operation will complete asynchronously.
@returns(204) No Content - the specified resource was not found.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}
@desc Updates a task run with the specified parameters.
@required {taskRunName: any # The name of the task run., updateParameters: map # The parameters for updating a task run.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(201) The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}/listDetails
@desc Gets the detailed information for a given task run that includes all secrets.
@required {taskRunName: any # The name of the task run.}
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns
@desc Lists all the task runs for a specified container registry.
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks
@desc Lists all the tasks for a specified container registry.
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}
@desc Get the properties of a specified task.
@required {taskName: any # The name of the container registry task.}
@returns(200) The request was successful; the request was well-formed and received properly.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}
@desc Creates a task for a container registry with the specified parameters.
@required {taskName: any # The name of the container registry task., taskCreateParameters: map # The parameters for creating a task.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(201) The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}
@desc Deletes a specified task.
@required {taskName: any # The name of the container registry task.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(202) The request was successfully accepted; the operation will complete asynchronously.
@returns(204) No Content - the specified resource was not found.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}
@desc Updates a task with the specified parameters.
@required {taskName: any # The name of the container registry task., taskUpdateParameters: map # The parameters for updating a task.}
@returns(200) The request was successful; the request was well-formed and received properly.
@returns(201) The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}/listDetails
@desc Returns a task with extended information that includes all secrets.
@required {taskName: any # The name of the container registry task.}
@returns(200) The request was successful; the request was well-formed and received properly.

@end
