Skip to content

Commit

Permalink
Azure Container Registry Auto Build Feature Swagger and examples (Azu…
Browse files Browse the repository at this point in the history
…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
mnltejaswini authored and mcardosos committed Apr 24, 2018
1 parent b1cab9d commit e6d4651
Show file tree
Hide file tree
Showing 21 changed files with 3,083 additions and 0 deletions.

Large diffs are not rendered by default.

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"
}
}
}
}
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": {}
}
}
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"
}
}
}
}
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"
}
]
}
}
}
}
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
}
]
}
}
}
}
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"
}
}
}
}
Loading

0 comments on commit e6d4651

Please sign in to comment.