-
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.
Container Registries Data-plane API 07/2019 (#6629)
* Began organizing and preparing for release * Added Necessary supression * Small bugfix * Update version in new swagger file * Added Go Support * Added preview specification in generated paths
- Loading branch information
1 parent
1b4a18f
commit 7cfa94a
Showing
22 changed files
with
2,335 additions
and
8 deletions.
There are no files selected for viewing
1,863 changes: 1,863 additions & 0 deletions
1,863
...registry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/containerregistry.json
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...ry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/CreateManifest.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,18 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "hello-world", | ||
"reference": "a20190628-081044z", | ||
"payload": "{\"schemaVersion\":2,\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"config\":{\"mediaType\":\"application/vnd.docker.container.image.v1+json\",\"size\":1512,\"digest\":\"sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f\"},\"layers\":[{\"mediaType\":\"application/vnd.docker.image.rootfs.diff.tar.gzip\",\"size\":2107098,\"digest\":\"sha256:5d20c808ce198565ff70b3ed23a991dd49afac45dece63474b27ce6ed036adc6\"}]}" | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": { | ||
"Docker-Content-Digest": "sha256:15685c48490175b7dde62e6bfcfb54d9420c6495ea6404776e2facca3da93cd8", | ||
"Location": "/v2/hello-world/manifests/sha256:15685c48490175b7dde62e6bfcfb54d9420c6495ea6404776e2facca3da93cd8", | ||
"Content-Length": 0 | ||
}, | ||
"body": {} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ta-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteAcrRepository.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,18 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "nanoserver" | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"manifestsDeleted": [ | ||
"sha256:e31831d63f77a0a6d74ef5b16df619a50808dac842190d07ae24e8b520d159fa" | ||
], | ||
"tagsDeleted": [ | ||
"4.7.2-20180814-windowsservercore-1709" | ||
] | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...stry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteAcrTag.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,10 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "nanoserver", | ||
"reference": "4.7.2-20180905-nanoserver-1803" | ||
}, | ||
"responses": { | ||
"202": {} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteManifest.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,10 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "alpine", | ||
"reference": "3.7" | ||
}, | ||
"responses": { | ||
"202": {} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAccessToken.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": { | ||
"url": "acrapi.azurecr-test.io", | ||
"service": "someregistry.azurecr.io", | ||
"scope": "registry:catalog:*" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"access_token": "eyJ0eXAiOiJKJhbGcigdCI6IkN0ZlFaOExlLTMejlnIiwidGlkIjoiNzbmOTgWItMmQ3Y2QwMTFkYjQ3Ii..." | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrManifestAttributes.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,34 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "nanoserver", | ||
"reference": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"registry": "acrapi.azurecr-test.io", | ||
"imageName": "nanoserver", | ||
"manifest": { | ||
"digest": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086", | ||
"imageSize": 2401606, | ||
"createdTime": "2018-09-06T06:17:20.9983915Z", | ||
"lastUpdateTime": "2018-09-06T06:17:20.9983915Z", | ||
"architecture": "amd64", | ||
"os": "windows", | ||
"mediaType": "application/vnd.docker.distribution.manifest.v2+json", | ||
"configMediaType": "application/vnd.docker.container.image.v1+json", | ||
"tags": [ | ||
"4.7.2-20180905-nanoserver-1803" | ||
], | ||
"changeableAttributes": { | ||
"deleteEnabled": true, | ||
"writeEnabled": true, | ||
"readEnabled": true, | ||
"listEnabled": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...y/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrManifests.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": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "nanoserver" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"registry": "acrapi.azurecr-test.io", | ||
"imageName": "nanoserver", | ||
"manifests": [ | ||
{ | ||
"digest": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086", | ||
"imageSize": 2401606, | ||
"createdTime": "2018-09-06T06:17:20.9983915Z", | ||
"lastUpdateTime": "2018-09-06T06:17:20.9983915Z", | ||
"architecture": "amd64", | ||
"os": "windows", | ||
"mediaType": "application/vnd.docker.distribution.manifest.v2+json", | ||
"configMediaType": "application/vnd.docker.container.image.v1+json", | ||
"tags": [ | ||
"4.7.2-20180905-nanoserver-1803" | ||
], | ||
"changeableAttributes": { | ||
"deleteEnabled": true, | ||
"writeEnabled": true, | ||
"readEnabled": true, | ||
"listEnabled": true | ||
} | ||
}, | ||
{ | ||
"digest": "sha256:7af5cd1dde3e8f5c2c9103860afa4ca871a6075373b6564b0e7b1b47866dab52", | ||
"imageSize": 4135121, | ||
"createdTime": "2018-09-07T16:30:46.5651701Z", | ||
"lastUpdateTime": "2018-09-07T16:30:46.5651701Z", | ||
"architecture": "amd64", | ||
"os": "windows", | ||
"mediaType": "application/vnd.docker.distribution.manifest.v2+json", | ||
"configMediaType": "application/vnd.docker.container.image.v1+json", | ||
"tags": [ | ||
"4.7.2-20180906-nanoserver-1803" | ||
], | ||
"changeableAttributes": { | ||
"deleteEnabled": true, | ||
"writeEnabled": true, | ||
"readEnabled": true, | ||
"listEnabled": true | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...e/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrRepositoryAttributes.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,24 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "nanoserver" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"registry": "acrapi.azurecr-test.io", | ||
"imageName": "nanoserver", | ||
"createdTime": "2018-09-06T06:17:20.9531248Z", | ||
"lastUpdateTime": "2018-09-07T16:30:46.6583219Z", | ||
"manifestCount": 2, | ||
"tagCount": 2, | ||
"changeableAttributes": { | ||
"deleteEnabled": true, | ||
"writeEnabled": true, | ||
"readEnabled": true, | ||
"listEnabled": true | ||
} | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ta-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrTagAttributes.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,28 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "test/bash", | ||
"reference": "sha256:eabe547f78d4c18c708dd97ec3166cf7464cc651f1cbb67e7afas407405b7ad7b6" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"registry": "acrapi.azurecr-test.io", | ||
"imageName": "test/bash", | ||
"tag": { | ||
"name": "tagName", | ||
"digest": "sha256:eabe547f78d4c18c708dd97ec3166cf7464cc651f1cbb67e70d407405b7ad7b6", | ||
"createdTime": "2018-10-05T20:54:24.1286047Z", | ||
"lastUpdateTime": "2018-10-05T20:54:24.1286047Z", | ||
"signed": false, | ||
"changeableAttributes": { | ||
"deleteEnabled": true, | ||
"writeEnabled": false, | ||
"readEnabled": true, | ||
"listEnabled": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...gistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrTags.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,42 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "nanoserver" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"registry": "acrapi.azurecr-test.io", | ||
"imageName": "nanoserver", | ||
"tags": [ | ||
{ | ||
"name": "4.7.2-20180905-nanoserver-1803", | ||
"digest": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086", | ||
"createdTime": "2018-09-06T06:17:21.0856539Z", | ||
"lastUpdateTime": "2018-09-06T06:17:21.0856539Z", | ||
"signed": false, | ||
"changeableAttributes": { | ||
"deleteEnabled": true, | ||
"writeEnabled": true, | ||
"readEnabled": true, | ||
"listEnabled": true | ||
} | ||
}, | ||
{ | ||
"name": "4.7.2-20180906-nanoserver-1803", | ||
"digest": "sha256:7af5cd1dde3e8f5c2c9103860afa4ca871a6075373b6564b0e7b1b47866dab52", | ||
"createdTime": "2018-09-06T16:30:43.3860166Z", | ||
"lastUpdateTime": "2018-09-07T16:30:46.7022734Z", | ||
"signed": false, | ||
"changeableAttributes": { | ||
"deleteEnabled": true, | ||
"writeEnabled": true, | ||
"readEnabled": true, | ||
"listEnabled": true | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...e/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetDockerRegistryV2Support.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,8 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...istry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetManifest.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": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "hello-world-dangling", | ||
"reference": "20190628-033033z", | ||
"accept": "application/vnd.docker.distribution.manifest.v2+json" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"schemaVersion": 2, | ||
"mediaType": "application/vnd.docker.distribution.manifest.v2+json", | ||
"config": { | ||
"mediaType": "application/vnd.docker.container.image.v1+json", | ||
"size": 5824, | ||
"digest": "sha256:691fbc2d44fff48357bba69ab0505b9bf12b2b250a925a84a0b8e8e7eed390b2" | ||
}, | ||
"layers": [ | ||
{ | ||
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", | ||
"size": 2014658, | ||
"digest": "sha256:a073c86ecf9e0f29180e80e9638d4c741970695851ea48247276c32c57e40282" | ||
}, | ||
{ | ||
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", | ||
"size": 19778035, | ||
"digest": "sha256:0e28711eb56d78f1e3dfde1807eba529d1346222bcd07d1cb1e436a18a0388bd" | ||
}, | ||
{ | ||
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", | ||
"size": 1074044, | ||
"digest": "sha256:e460dd483fddb555911f7ed188c319fd97542c60e36843dcb1c5d753f733e1fa" | ||
}, | ||
{ | ||
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", | ||
"size": 5827, | ||
"digest": "sha256:6aa301222093bfb8cf424ccb387f59e2c9510c3a30cca7fbcf8c954f88e6600c" | ||
}, | ||
{ | ||
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", | ||
"size": 568, | ||
"digest": "sha256:9c5d80083a57d565f684e0155707204d497a5ad965279f92927452f15dae17e6" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...y/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetRepositories.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,15 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"repositories": [ | ||
"production/alpine", | ||
"testing/alpine" | ||
] | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...gistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetTagList.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,17 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "nanoserver" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "nanoserver", | ||
"tags": [ | ||
"4.7.2-20180905-nanoserver-1803", | ||
"4.7.2-20180906-nanoserver-1803" | ||
] | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...y/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/PostAccessToken.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": { | ||
"url": "acrapi.azurecr-test.io", | ||
"grant_type": "refresh_token", | ||
"service": "someregistry.azurecr.io", | ||
"scope": "registry:catalog:*", | ||
"refresh_token": "eyJ0eXAiOiJKJhbGci1dCI6IkN0ZlFDOExlLTMejlnIiwidGlkIjoiNzJmOTgWItMmQ3Y2QwMTFkYjQ3Ii..." | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"access_token": "eyJ0eXAiOiJKJhbGcigdCI6IkN0ZlFaOExlLTMejlnIiwidGlkIjoiNzbmOTgWItMmQ3Y2QwMTFkYjQ3Ii..." | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
.../data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/PostRefreshToken.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": { | ||
"grant_type": "access_token", | ||
"url": "acrapi.azurecr-test.io", | ||
"service": "someregistry.azurecr.io", | ||
"tenant": "02f900bf-86f1-31af-p1ab-2b7cd0nndb47", | ||
"accessToken": "eyJ0eXAiOiJKJhbGci1dCI6IkN0ZlFDOExlLTMejlnIiwidGlkIjoiNzJmOTgWItMmQ3Y2QwMTFkYjQ3Ii..." | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"refresh_token": "eyJ0eXAiOiJKJhbGcigdCI6IkN0ZlFaOExlLTMejlnIiwidGlkIjoiNzbmOTgWItMmQ3Y2QwMTFkYjQ3Ii..." | ||
} | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
.../Microsoft.ContainerRegistry/preview/2019-07-15/examples/UpdateAcrManifestAttributes.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,11 @@ | ||
{ | ||
"parameters": { | ||
"url": "acrapi.azurecr-test.io", | ||
"name": "nanoserver", | ||
"reference": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086", | ||
"value": "{\"writeEnabled\": false}" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
Oops, something went wrong.