forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Auto Build Feature Swagger and examples (Azu…
…re#2378) * Azure Container Registry Auto Build Feature Swagger and examples * Updated the Readme to include the new build swagger under default tag * Removed Required attribute on the route parameters * Removed the Required attribute for the global parameters and corrected the ProvisioningState * Updated the readme to fix the CI failures * Fixed the ref errrors on the global parameters * Made getLogLink as POST operation * Added a new getSourceUploadUrl API * Renamed ImageName to RepositoryName and removed 404 status code * Removed log parameters for GetBuildLogLink API * Removed OAuth APIs * Swagger team review feedback * Added listBaseImageDependencies to build step and separated PUT and PATCH object types * Removed Context Path for Quick build * Removed separate build parameters in QuickBuild object * Removed some of the unused properties and fixed the response payload of Queue build request * API updates for base image dependencies * Making list arguments pageable. * Added a new POST action for build definition and fixed the Azure resource schema * The parent resource swagger uses Resource for TrackedResource. So changed according to it * Renamed the resource buildDefinition to buildTask * Updated readme to include parent resource swagger * Added range validation for timeout parameter * Adding imageNames, No-cache and git commit and image update trigger * Rebased with remote and fixed the Error schema * Removed obsolete properties and actions * Added registry property to BaseImageDependecy * Update image descriptor * update examples * Improve examples * Revert a change in formatting * A few improvements and fixes (#4) * A few improvements and fixes * Fix the description for build arguments * Remove error schema * use 2017-10-01 tag * Add default response back * Fix Error status, fix version (#5) * Remove error schema * Add default response back * Fix abandoned as system error * Fix Error status * Use preview tag * Fix tag * Remove error response schema as they are not used * Fix default valus (#6) * Fix CI (#7) * Add python sdk version * Add preview to namespace * Remove an example * Fix examples (#8)
- Loading branch information
1 parent
b1cab9d
commit e6d4651
Showing
21 changed files
with
3,083 additions
and
0 deletions.
There are no files selected for viewing
2,112 changes: 2,112 additions & 0 deletions
2,112
...nager/Microsoft.ContainerRegistry/preview/2018-02-01-preview/containerregistry_build.json
Large diffs are not rendered by default.
Oops, something went wrong.
106 changes: 106 additions & 0 deletions
106
...ger/Microsoft.ContainerRegistry/preview/2018-02-01-preview/examples/BuildStepsCreate.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,106 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", | ||
"resourceGroupName": "myResourceGroup", | ||
"registryName": "myRegistry", | ||
"api-version": "2018-02-01-preview", | ||
"buildTaskName": "myBuildTask", | ||
"stepName": "myStep", | ||
"buildStepCreateParameters": { | ||
"properties": { | ||
"type": "Docker", | ||
"imageNames": [ | ||
"azurerest:testtag" | ||
], | ||
"dockerFilePath": "src/DockerFile", | ||
"contextPath": "src", | ||
"isPushEnabled": true, | ||
"noCache": true, | ||
"buildArguments": [ | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"type": "Docker", | ||
"branch": "master", | ||
"imageNames": [ | ||
"azurerest:testtag" | ||
], | ||
"dockerFilePath": "src/DockerFile", | ||
"contextPath": "src", | ||
"isPushEnabled": true, | ||
"noCache": false, | ||
"provisioningState": "Succeeded", | ||
"baseImageTrigger": "Runtime", | ||
"buildArguments": [ | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
] | ||
}, | ||
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/buildTasks/myBuildTask/steps/myStep", | ||
"name": "myStep", | ||
"type": "Microsoft.ContainerRegistry/registries/buildTasks/steps" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"type": "Docker", | ||
"branch": "master", | ||
"imageNames": [ | ||
"azurerest:testtag" | ||
], | ||
"dockerFilePath": "src/DockerFile", | ||
"contextPath": "src", | ||
"isPushEnabled": true, | ||
"noCache": false, | ||
"provisioningState": "Updating", | ||
"baseImageTrigger": "Runtime", | ||
"buildArguments": [ | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
] | ||
}, | ||
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/buildTasks/myBuildTask/steps/myStep", | ||
"name": "myStep", | ||
"type": "Microsoft.ContainerRegistry/registries/buildTasks/steps" | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ger/Microsoft.ContainerRegistry/preview/2018-02-01-preview/examples/BuildStepsDelete.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,14 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", | ||
"resourceGroupName": "myResourceGroup", | ||
"registryName": "myRegistry", | ||
"api-version": "2018-02-01-preview", | ||
"buildTaskName": "myBuildTask", | ||
"stepName": "myStep" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...anager/Microsoft.ContainerRegistry/preview/2018-02-01-preview/examples/BuildStepsGet.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,46 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", | ||
"resourceGroupName": "myResourceGroup", | ||
"registryName": "myRegistry", | ||
"api-version": "2018-02-01-preview", | ||
"buildTaskName": "myBuildTask", | ||
"stepName": "myStep" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"type": "Docker", | ||
"branch": "master", | ||
"imageNames": [ | ||
"azurerest:testtag" | ||
], | ||
"dockerFilePath": "src/DockerFile", | ||
"contextPath": "src", | ||
"isPushEnabled": true, | ||
"noCache": false, | ||
"provisioningState": "Succeeded", | ||
"baseImageTrigger": "Runtime", | ||
"buildArguments": [ | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
] | ||
}, | ||
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/buildTasks/myBuildTask/steps/myStep", | ||
"name": "myStep", | ||
"type": "Microsoft.ContainerRegistry/registries/buildTasks/steps" | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...nager/Microsoft.ContainerRegistry/preview/2018-02-01-preview/examples/BuildStepsList.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-02-01-preview", | ||
"buildTaskName": "myBuildTask" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"type": "Docker", | ||
"branch": "master", | ||
"imageNames": [ | ||
"azurerest:testtag" | ||
], | ||
"dockerFilePath": "src/DockerFile", | ||
"contextPath": "src", | ||
"isPushEnabled": true, | ||
"noCache": false, | ||
"provisioningState": "Succeeded", | ||
"baseImageTrigger": "Runtime", | ||
"buildArguments": [ | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
] | ||
}, | ||
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/buildTasks/myBuildTask/steps/myStep", | ||
"name": "myStep", | ||
"type": "Microsoft.ContainerRegistry/registries/buildTasks/steps" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...t.ContainerRegistry/preview/2018-02-01-preview/examples/BuildStepsListBuildArguments.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,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", | ||
"resourceGroupName": "myResourceGroup", | ||
"registryName": "myRegistry", | ||
"api-version": "2018-02-01-preview", | ||
"buildTaskName": "myBuildTask", | ||
"stepName": "myStep" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
108 changes: 108 additions & 0 deletions
108
...ger/Microsoft.ContainerRegistry/preview/2018-02-01-preview/examples/BuildStepsUpdate.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,108 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", | ||
"resourceGroupName": "myResourceGroup", | ||
"registryName": "myRegistry", | ||
"api-version": "2018-02-01-preview", | ||
"buildTaskName": "myBuildTask", | ||
"stepName": "myStep", | ||
"buildStepUpdateParameters": { | ||
"properties": { | ||
"type": "Docker", | ||
"imageNames": [ | ||
"azurerest:testtag", | ||
"azurerest1:testtag1" | ||
], | ||
"dockerFilePath": "src/DockerFile", | ||
"contextPath": "src", | ||
"isPushEnabled": true, | ||
"noCache": false, | ||
"baseImageTrigger": "None", | ||
"buildArguments": [ | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"type": "Docker", | ||
"branch": "master", | ||
"imageNames": [ | ||
"azurerest:testtag" | ||
], | ||
"dockerFilePath": "src/DockerFile", | ||
"contextPath": "src", | ||
"isPushEnabled": true, | ||
"noCache": false, | ||
"provisioningState": "Succeeded", | ||
"baseImageTrigger": "Runtime", | ||
"buildArguments": [ | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
] | ||
}, | ||
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/buildTasks/myBuildTask/steps/myStep", | ||
"name": "myStep", | ||
"type": "Microsoft.ContainerRegistry/registries/buildTasks/steps" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"type": "Docker", | ||
"branch": "master", | ||
"imageNames": [ | ||
"azurerest:testtag" | ||
], | ||
"dockerFilePath": "src/DockerFile", | ||
"contextPath": "src", | ||
"isPushEnabled": true, | ||
"noCache": false, | ||
"provisioningState": "Updating", | ||
"baseImageTrigger": "Runtime", | ||
"buildArguments": [ | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mytestargument", | ||
"value": "mytestvalue", | ||
"isSecret": false | ||
}, | ||
{ | ||
"type": "DockerBuildArgument", | ||
"name": "mysecrettestargument", | ||
"value": "mysecrettestvalue", | ||
"isSecret": true | ||
} | ||
] | ||
}, | ||
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/buildTasks/myBuildTask/steps/myStep", | ||
"name": "myStep", | ||
"type": "Microsoft.ContainerRegistry/registries/buildTasks/steps" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.