-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure container registry build feature GA API specification and examp…
…les. (#3617) * Azure container registry build GA API specification and examples. * Fix the Model validation errors in example files. * Removed secrets from Task properties as this is not yet supported. * Removed Alias and secrets property from task. * Fixed the readme to the latest tag. * separate the PUT and PATCH request payload * Matching the resource schema with that in the Registry swagger * added more description to $filer, separated create and update parameters to avoid conflict between required nd patchable properties. * Replaced GitCOmmitTrigger to SourceTrigger * Added isArchiveEnabled as part of Schedule Run request, renamed the arguments property to values for Task type requests and steps * Removed the Required attribute for the source control auth properties to fix the model validation failures. * Update readme.md to include tags for all languages * Updated the operation ID as per the feedback
- Loading branch information
1 parent
e91e96e
commit 4ed1dcd
Showing
19 changed files
with
3,333 additions
and
2 deletions.
There are no files selected for viewing
2,240 changes: 2,240 additions & 0 deletions
2,240
...source-manager/Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...osoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesGetBuildSourceUploadUrl.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...crosoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_BuildTask.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", | ||
"resourceGroupName": "myResourceGroup", | ||
"registryName": "myRegistry", | ||
"api-version": "2018-09-01", | ||
"runRequest": { | ||
"type": "BuildTaskRequest", | ||
"sourceLocation": "https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D", | ||
"values": [ | ||
{ | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
], | ||
"platform": { | ||
"os": "Linux", | ||
"architecture": "amd64" | ||
}, | ||
"agentConfiguration": { | ||
"cpu": 2 | ||
}, | ||
"templateFilePath": "acb.yaml", | ||
"valuesFilePath":"prod-values.yaml" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"runId": "0accec26-d6de-4757-8e74-d080f38eaaab", | ||
"status": "Succeeded", | ||
"lastUpdatedTime": "2018-01-25T05:13:51.617Z" | ||
}, | ||
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", | ||
"name": "0accec26-d6de-4757-8e74-d080f38eaaab", | ||
"type": "Microsoft.ContainerRegistry/registries/run" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...soft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_QuickTaskRun.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", | ||
"resourceGroupName": "myResourceGroup", | ||
"registryName": "myRegistry", | ||
"api-version": "2018-09-01", | ||
"runRequest": { | ||
"type": "QuickTaskRunRequest", | ||
"values": [ | ||
{ | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
], | ||
"platform": { | ||
"os": "Linux", | ||
"architecture": "amd64" | ||
}, | ||
"agentConfiguration": { | ||
"cpu": 2 | ||
}, | ||
"taskDefinitionContent": "c3RlcHM6Cnt7IGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAncHJvZCcgfX0KICAtIHJ1bjogcHJvZCBzZXR1cAp7eyBlbHNlIGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAnc3RhZ2luZycgfX0KICAtIHJ1bjogc3RhZ2luZyBzZXR1cAp7eyBlbHNlIH19CiAgLSBydW46IGRlZmF1bHQgc2V0dXAKe3sgZW5kIH19CgogIC0gcnVuOiBidWlsZCAtdCBGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0gLgoKcHVzaDogWydGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0nXQ==", | ||
"valuesContent":"ZW52aXJvbm1lbnQ6IHByb2QKdmVyc2lvbjogMQ==" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"runId": "0accec26-d6de-4757-8e74-d080f38eaaab", | ||
"status": "Succeeded", | ||
"lastUpdatedTime": "2018-01-25T05:13:51.617Z" | ||
}, | ||
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", | ||
"name": "0accec26-d6de-4757-8e74-d080f38eaaab", | ||
"type": "Microsoft.ContainerRegistry/registries/run" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...er/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RegistriesScheduleRun_Task.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...y/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsCancel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...stry/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...urce-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsGetLogSasUrl.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...try/resource-manager/Microsoft.ContainerRegistry/stable/2018-09-01/examples/RunsList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.