diff --git a/src/SDKs/ContainerRegistry/AzSdk.RP.props b/src/SDKs/ContainerRegistry/AzSdk.RP.props
index 586b76a302eb..40a29e827277 100644
--- a/src/SDKs/ContainerRegistry/AzSdk.RP.props
+++ b/src/SDKs/ContainerRegistry/AzSdk.RP.props
@@ -1,7 +1,7 @@
- ContainerRegistry_2018-02-01-preview;ContainerRegistry_2017-10-01;
+ ContainerRegistry_2017-10-01;ContainerRegistry_2018-09-01;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryTaskTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryTaskTest.json
new file mode 100644
index 000000000000..de8ad4af3f53
--- /dev/null
+++ b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryTaskTest.json
@@ -0,0 +1,993 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "46e3e1a7-6b5d-4319-b5c5-fe23f3a0d957"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:26 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11928"
+ ],
+ "x-ms-request-id": [
+ "8faaab4b-964e-41ca-9323-ce163674e9c4"
+ ],
+ "x-ms-correlation-request-id": [
+ "8faaab4b-964e-41ca-9323-ce163674e9c4"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003726Z:8faaab4b-964e-41ca-9323-ce163674e9c4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "18152"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n {\r\n \"applicationId\": \"737d58c1-397a-46e7-9d12-7d8c830883c2\",\r\n \"roleDefinitionId\": \"716bb53a-0390-4428-bf41-b1bedde7d751\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/importImage\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listBuildSourceUploadUrl\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/scheduleRun\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/runs\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/runs/listLogSasUrl\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/runs/cancel\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/tasks\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/tasks/listDetails\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/getBuildSourceUploadUrl\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/queueBuild\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/builds\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/builds/getLogLink\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/builds/cancel\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/buildTasks\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/buildTasks/listSourceRepositoryProperties\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/buildTasks/steps\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/buildTasks/steps/listBuildArguments\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/replications\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/ping\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/getCallbackConfig\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/listEvents\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/setupAuth\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/authorize\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listUsages\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listPolicies\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/updatePolicies\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/eventGridFilters\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4da808e1-4fad-474f-994c-9e6759b0f52f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:27 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11927"
+ ],
+ "x-ms-request-id": [
+ "33755a09-987f-4ebb-9afc-5e50dd21d5c1"
+ ],
+ "x-ms-correlation-request-id": [
+ "33755a09-987f-4ebb-9afc-5e50dd21d5c1"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003727Z:33755a09-987f-4ebb-9afc-5e50dd21d5c1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "18152"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n {\r\n \"applicationId\": \"737d58c1-397a-46e7-9d12-7d8c830883c2\",\r\n \"roleDefinitionId\": \"716bb53a-0390-4428-bf41-b1bedde7d751\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/importImage\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listBuildSourceUploadUrl\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/scheduleRun\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/runs\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/runs/listLogSasUrl\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/runs/cancel\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/tasks\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/tasks/listDetails\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/getBuildSourceUploadUrl\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/queueBuild\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/builds\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/builds/getLogLink\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/builds/cancel\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/buildTasks\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/buildTasks/listSourceRepositoryProperties\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/buildTasks/steps\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/buildTasks/steps/listBuildArguments\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/replications\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/ping\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/getCallbackConfig\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/listEvents\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/setupAuth\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/authorize\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"East Asia\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-02-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listUsages\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listPolicies\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/updatePolicies\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/eventGridFilters\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg7887?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzc4ODc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"West US\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ad4d592a-4810-42f8-b9dd-94c4ca036213"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "29"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:27 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1183"
+ ],
+ "x-ms-request-id": [
+ "70e2baaa-6032-47a8-963e-ad24bc07ca3f"
+ ],
+ "x-ms-correlation-request-id": [
+ "70e2baaa-6032-47a8-963e-ad24bc07ca3f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003727Z:70e2baaa-6032-47a8-963e-ad24bc07ca3f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "173"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887\",\r\n \"name\": \"acr_rg7887\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681?api-version=2017-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MT9hcGktdmVyc2lvbj0yMDE3LTEwLTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\"\r\n },\r\n \"location\": \"East US\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c0ad6f75-fcce-4be0-a54f-163322125347"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "134"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:30 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1182"
+ ],
+ "x-ms-request-id": [
+ "c5f42eb4-649f-40d9-a00d-1017fc2c26c8"
+ ],
+ "x-ms-correlation-request-id": [
+ "c5f42eb4-649f-40d9-a00d-1017fc2c26c8"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003730Z:c5f42eb4-649f-40d9-a00d-1017fc2c26c8"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "536"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681\",\r\n \"name\": \"acrregistry6681\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6681.azurecr.io\",\r\n \"creationDate\": \"2018-10-03T00:37:28.7599068Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"firewallRulesEnabled\": false,\r\n \"firewallRules\": []\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/tasks/acrtask1338?api-version=2018-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MS90YXNrcy9hY3J0YXNrMTMzOD9hcGktdmVyc2lvbj0yMDE4LTA5LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"status\": \"Enabled\",\r\n \"platform\": {\r\n \"os\": \"Linux\",\r\n \"architecture\": \"amd64\"\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": 2\r\n },\r\n \"timeout\": 600,\r\n \"step\": {\r\n \"type\": \"Docker\",\r\n \"imageNames\": [\r\n \"image:{{.Run.ID}}\",\r\n \"image:latest\"\r\n ],\r\n \"isPushEnabled\": true,\r\n \"noCache\": true,\r\n \"dockerFilePath\": \"Dockerfile\",\r\n \"contextPath\": \"https://github.com/azure/acr-builder.git\"\r\n },\r\n \"trigger\": {\r\n \"baseImageTrigger\": {\r\n \"baseImageTriggerType\": \"Runtime\",\r\n \"status\": \"Enabled\",\r\n \"name\": \"defaultBaseimageTriggerName\"\r\n }\r\n }\r\n },\r\n \"location\": \"eastus\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b2622abd-7f28-42a8-81dd-a295bf4a9596"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "710"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:31 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "nginx/1.13.9"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-correlation-request-id": [
+ "545dc13b-49d8-4757-8be3-980c56e743d5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1181"
+ ],
+ "x-ms-request-id": [
+ "ceeeee60-5a1f-4f67-b45c-93f72421d839"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003731Z:545dc13b-49d8-4757-8be3-980c56e743d5"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "890"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/tasks\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationDate\": \"2018-10-02T17:37:31.1624423-07:00\",\r\n \"status\": \"Enabled\",\r\n \"platform\": {\r\n \"os\": \"Linux\",\r\n \"architecture\": \"amd64\",\r\n \"variant\": null\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": 2\r\n },\r\n \"timeout\": 600,\r\n \"step\": {\r\n \"type\": \"Docker\",\r\n \"imageNames\": [\r\n \"image:{{.Run.ID}}\",\r\n \"image:latest\"\r\n ],\r\n \"isPushEnabled\": true,\r\n \"noCache\": true,\r\n \"dockerFilePath\": \"Dockerfile\",\r\n \"arguments\": null,\r\n \"baseImageDependencies\": null,\r\n \"contextPath\": \"https://github.com/azure/acr-builder.git\"\r\n },\r\n \"trigger\": {\r\n \"sourceTriggers\": null,\r\n \"baseImageTrigger\": {\r\n \"baseImageTriggerType\": \"Runtime\",\r\n \"status\": \"Enabled\",\r\n \"name\": \"defaultBaseimageTriggerName\"\r\n }\r\n }\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/tasks/acrtask1338\",\r\n \"name\": \"acrtask1338\",\r\n \"tags\": null,\r\n \"location\": \"eastus\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/tasks?api-version=2018-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MS90YXNrcz9hcGktdmVyc2lvbj0yMDE4LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8992115c-50b9-4fa4-8796-244afcf1021f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:31 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "nginx/1.13.9"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-correlation-request-id": [
+ "5c6f78c1-e065-4add-a456-648137d894f5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11926"
+ ],
+ "x-ms-request-id": [
+ "9aac0672-543e-4117-8f3c-f6582fc84e4e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003731Z:5c6f78c1-e065-4add-a456-648137d894f5"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "918"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries/tasks\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationDate\": \"2018-10-02T17:37:31.1624423-07:00\",\r\n \"status\": \"Enabled\",\r\n \"platform\": {\r\n \"os\": \"Linux\",\r\n \"architecture\": \"amd64\",\r\n \"variant\": null\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": 2\r\n },\r\n \"timeout\": 600,\r\n \"step\": {\r\n \"type\": \"Docker\",\r\n \"imageNames\": [\r\n \"image:{{.Run.ID}}\",\r\n \"image:latest\"\r\n ],\r\n \"isPushEnabled\": true,\r\n \"noCache\": true,\r\n \"dockerFilePath\": \"Dockerfile\",\r\n \"arguments\": null,\r\n \"baseImageDependencies\": null,\r\n \"contextPath\": \"https://github.com/azure/acr-builder.git\"\r\n },\r\n \"trigger\": {\r\n \"sourceTriggers\": null,\r\n \"baseImageTrigger\": {\r\n \"baseImageTriggerType\": \"Runtime\",\r\n \"status\": \"Enabled\",\r\n \"name\": \"defaultBaseimageTriggerName\"\r\n }\r\n }\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/tasks/acrtask1338\",\r\n \"name\": \"acrtask1338\",\r\n \"tags\": null,\r\n \"location\": \"eastus\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/tasks/acrtask1338?api-version=2018-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MS90YXNrcy9hY3J0YXNrMTMzOD9hcGktdmVyc2lvbj0yMDE4LTA5LTAx",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"timeout\": 900\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "08a0283f-5096-497f-ab31-4632d058f1ce"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "48"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:31 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "nginx/1.13.9"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-correlation-request-id": [
+ "e05b0eb5-0cf9-4843-b54a-7c67fd53a2bc"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1180"
+ ],
+ "x-ms-request-id": [
+ "ef5d4bb2-e7cc-4c42-9fad-5a3950c8d84f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003731Z:e05b0eb5-0cf9-4843-b54a-7c67fd53a2bc"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "890"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/tasks\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationDate\": \"2018-10-02T17:37:31.1624423-07:00\",\r\n \"status\": \"Enabled\",\r\n \"platform\": {\r\n \"os\": \"Linux\",\r\n \"architecture\": \"amd64\",\r\n \"variant\": null\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": 2\r\n },\r\n \"timeout\": 900,\r\n \"step\": {\r\n \"type\": \"Docker\",\r\n \"imageNames\": [\r\n \"image:{{.Run.ID}}\",\r\n \"image:latest\"\r\n ],\r\n \"isPushEnabled\": true,\r\n \"noCache\": true,\r\n \"dockerFilePath\": \"Dockerfile\",\r\n \"arguments\": null,\r\n \"baseImageDependencies\": null,\r\n \"contextPath\": \"https://github.com/azure/acr-builder.git\"\r\n },\r\n \"trigger\": {\r\n \"sourceTriggers\": null,\r\n \"baseImageTrigger\": {\r\n \"baseImageTriggerType\": \"Runtime\",\r\n \"status\": \"Enabled\",\r\n \"name\": \"defaultBaseimageTriggerName\"\r\n }\r\n }\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/tasks/acrtask1338\",\r\n \"name\": \"acrtask1338\",\r\n \"tags\": null,\r\n \"location\": \"eastus\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/scheduleRun?api-version=2018-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MS9zY2hlZHVsZVJ1bj9hcGktdmVyc2lvbj0yMDE4LTA5LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"type\": \"TaskRunRequest\",\r\n \"taskName\": \"acrtask1338\",\r\n \"values\": [\r\n {\r\n \"name\": \"key1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"key2\",\r\n \"value\": \"value2\",\r\n \"isSecret\": true\r\n }\r\n ]\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "77e92a8d-1bc9-4d9d-8289-bdb975d68813"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "233"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:32 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "nginx/1.13.9"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-correlation-request-id": [
+ "ffd90108-5079-459e-921e-7b3e56b86d16"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1179"
+ ],
+ "x-ms-request-id": [
+ "e471b6e2-b1e0-4f97-9e12-826e338f13ac"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003732Z:ffd90108-5079-459e-921e-7b3e56b86d16"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "565"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/runs\",\r\n \"properties\": {\r\n \"runId\": \"ca1\",\r\n \"status\": \"Queued\",\r\n \"lastUpdatedTime\": \"2018-10-02T17:37:31-07:00\",\r\n \"runType\": null,\r\n \"createTime\": null,\r\n \"startTime\": null,\r\n \"finishTime\": null,\r\n \"outputImages\": null,\r\n \"task\": null,\r\n \"imageUpdateTrigger\": null,\r\n \"sourceTrigger\": null,\r\n \"isArchiveEnabled\": false,\r\n \"platform\": null,\r\n \"agentConfiguration\": null,\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs/ca1\",\r\n \"name\": \"ca1\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/scheduleRun?api-version=2018-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MS9zY2hlZHVsZVJ1bj9hcGktdmVyc2lvbj0yMDE4LTA5LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"type\": \"DockerBuildRequest\",\r\n \"imageNames\": [\r\n \"testimage1:tag1\",\r\n \"testimage2:tag2\"\r\n ],\r\n \"isPushEnabled\": false,\r\n \"noCache\": true,\r\n \"dockerFilePath\": \"Dockerfile\",\r\n \"arguments\": [\r\n {\r\n \"name\": \"param1\",\r\n \"value\": \"value1\",\r\n \"isSecret\": true\r\n }\r\n ],\r\n \"timeout\": 600,\r\n \"platform\": {\r\n \"os\": \"Linux\",\r\n \"architecture\": \"amd64\"\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": 2\r\n },\r\n \"sourceLocation\": \"https://github.com/azure/acr-builder.git\",\r\n \"isArchiveEnabled\": false\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "182abf1f-564b-4cb1-b05e-386e0423625f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "536"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:32 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "nginx/1.13.9"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-correlation-request-id": [
+ "3e49ab21-f0e1-4efb-b626-d4ddbc7b8ed9"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1177"
+ ],
+ "x-ms-request-id": [
+ "170793d0-e63a-4d7c-84ce-729910a248cd"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003732Z:3e49ab21-f0e1-4efb-b626-d4ddbc7b8ed9"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "565"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/runs\",\r\n \"properties\": {\r\n \"runId\": \"ca2\",\r\n \"status\": \"Queued\",\r\n \"lastUpdatedTime\": \"2018-10-02T17:37:32-07:00\",\r\n \"runType\": null,\r\n \"createTime\": null,\r\n \"startTime\": null,\r\n \"finishTime\": null,\r\n \"outputImages\": null,\r\n \"task\": null,\r\n \"imageUpdateTrigger\": null,\r\n \"sourceTrigger\": null,\r\n \"isArchiveEnabled\": false,\r\n \"platform\": null,\r\n \"agentConfiguration\": null,\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs/ca2\",\r\n \"name\": \"ca2\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/scheduleRun?api-version=2018-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MS9zY2hlZHVsZVJ1bj9hcGktdmVyc2lvbj0yMDE4LTA5LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"type\": \"FileTaskRunRequest\",\r\n \"taskFilePath\": \"acb.yaml\",\r\n \"values\": [\r\n {\r\n \"name\": \"key1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"key2\",\r\n \"value\": \"value2\",\r\n \"isSecret\": true\r\n }\r\n ],\r\n \"timeout\": 600,\r\n \"platform\": {\r\n \"os\": \"Linux\",\r\n \"architecture\": \"amd64\"\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": 2\r\n },\r\n \"sourceLocation\": \"https://github.com/azure/acr-builder.git\",\r\n \"isArchiveEnabled\": false\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "731ffd9d-ce9f-4e54-b18c-70ba926e716d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "471"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:32 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "nginx/1.13.9"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-correlation-request-id": [
+ "bf0c4c87-71d9-4057-be9b-5a1b742d91d8"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1176"
+ ],
+ "x-ms-request-id": [
+ "26d505dc-58a5-4912-aaad-865492b615d3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003732Z:bf0c4c87-71d9-4057-be9b-5a1b742d91d8"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "565"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/runs\",\r\n \"properties\": {\r\n \"runId\": \"ca3\",\r\n \"status\": \"Queued\",\r\n \"lastUpdatedTime\": \"2018-10-02T17:37:32-07:00\",\r\n \"runType\": null,\r\n \"createTime\": null,\r\n \"startTime\": null,\r\n \"finishTime\": null,\r\n \"outputImages\": null,\r\n \"task\": null,\r\n \"imageUpdateTrigger\": null,\r\n \"sourceTrigger\": null,\r\n \"isArchiveEnabled\": false,\r\n \"platform\": null,\r\n \"agentConfiguration\": null,\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs/ca3\",\r\n \"name\": \"ca3\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/scheduleRun?api-version=2018-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MS9zY2hlZHVsZVJ1bj9hcGktdmVyc2lvbj0yMDE4LTA5LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"type\": \"EncodedTaskRunRequest\",\r\n \"encodedTaskContent\": \"DQpzdGVwczoNCiAgLWJ1aWxkOiAuIC10IGFjYjpsaW51eC17ey5SdW4uSUR9fQ==\",\r\n \"encodedValuesContent\": \"DQprZXkxOiB2YWx1ZTENCmtleTI6IHZhbHVlMg0K\",\r\n \"timeout\": 600,\r\n \"platform\": {\r\n \"os\": \"Linux\",\r\n \"architecture\": \"amd64\"\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": 2\r\n },\r\n \"sourceLocation\": \"https://github.com/azure/acr-builder.git\",\r\n \"isArchiveEnabled\": false\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0c118bb1-922c-4f20-b693-e05c8f868687"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "436"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:32 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "nginx/1.13.9"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-correlation-request-id": [
+ "efdb4034-2991-462f-bc23-a4f955678535"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1175"
+ ],
+ "x-ms-request-id": [
+ "0e552f32-fe23-4e15-94d7-30ec6f6bca3a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003733Z:efdb4034-2991-462f-bc23-a4f955678535"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "565"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/runs\",\r\n \"properties\": {\r\n \"runId\": \"ca4\",\r\n \"status\": \"Queued\",\r\n \"lastUpdatedTime\": \"2018-10-02T17:37:33-07:00\",\r\n \"runType\": null,\r\n \"createTime\": null,\r\n \"startTime\": null,\r\n \"finishTime\": null,\r\n \"outputImages\": null,\r\n \"task\": null,\r\n \"imageUpdateTrigger\": null,\r\n \"sourceTrigger\": null,\r\n \"isArchiveEnabled\": false,\r\n \"platform\": null,\r\n \"agentConfiguration\": null,\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs/ca4\",\r\n \"name\": \"ca4\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs/ca1/cancel?api-version=2018-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MS9ydW5zL2NhMS9jYW5jZWw/YXBpLXZlcnNpb249MjAxOC0wOS0wMQ==",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f07c84d0-1ab8-4cd4-836c-255d63720091"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:32 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "nginx/1.13.9"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-correlation-request-id": [
+ "708484d0-f4e3-4a17-8c36-06c6a1898763"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1178"
+ ],
+ "x-ms-request-id": [
+ "030a27c1-1fed-4d36-9624-f5f2db27a0d8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003732Z:708484d0-f4e3-4a17-8c36-06c6a1898763"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "651"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/runs\",\r\n \"properties\": {\r\n \"runId\": \"ca1\",\r\n \"status\": \"Queued\",\r\n \"lastUpdatedTime\": \"2018-10-02T17:37:32-07:00\",\r\n \"runType\": \"QuickRun\",\r\n \"createTime\": \"2018-10-02T17:37:31.763172-07:00\",\r\n \"startTime\": null,\r\n \"finishTime\": null,\r\n \"outputImages\": null,\r\n \"task\": null,\r\n \"imageUpdateTrigger\": null,\r\n \"sourceTrigger\": null,\r\n \"isArchiveEnabled\": false,\r\n \"platform\": {\r\n \"os\": null,\r\n \"architecture\": null,\r\n \"variant\": null\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": null\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs/ca1\",\r\n \"name\": \"ca1\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs?api-version=2018-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MS9ydW5zP2FwaS12ZXJzaW9uPTIwMTgtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3df10622-900e-4f83-9260-07420dac93bf"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:33 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "nginx/1.13.9"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-correlation-request-id": [
+ "bdee2693-452b-4a15-9f02-811e9cb58b99"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11925"
+ ],
+ "x-ms-request-id": [
+ "041d577e-01e8-4f23-8023-34f117cc32cc"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003733Z:bdee2693-452b-4a15-9f02-811e9cb58b99"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "2647"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries/runs\",\r\n \"properties\": {\r\n \"runId\": \"ca4\",\r\n \"status\": \"Queued\",\r\n \"lastUpdatedTime\": \"2018-10-02T17:37:33-07:00\",\r\n \"runType\": \"QuickRun\",\r\n \"createTime\": \"2018-10-02T17:37:32.9960205-07:00\",\r\n \"startTime\": null,\r\n \"finishTime\": null,\r\n \"outputImages\": null,\r\n \"task\": null,\r\n \"imageUpdateTrigger\": null,\r\n \"sourceTrigger\": null,\r\n \"isArchiveEnabled\": false,\r\n \"platform\": {\r\n \"os\": \"Linux\",\r\n \"architecture\": \"amd64\",\r\n \"variant\": null\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": 2\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs/ca4\",\r\n \"name\": \"ca4\"\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries/runs\",\r\n \"properties\": {\r\n \"runId\": \"ca3\",\r\n \"status\": \"Queued\",\r\n \"lastUpdatedTime\": \"2018-10-02T17:37:32-07:00\",\r\n \"runType\": \"QuickRun\",\r\n \"createTime\": \"2018-10-02T17:37:32.8373415-07:00\",\r\n \"startTime\": null,\r\n \"finishTime\": null,\r\n \"outputImages\": null,\r\n \"task\": null,\r\n \"imageUpdateTrigger\": null,\r\n \"sourceTrigger\": null,\r\n \"isArchiveEnabled\": false,\r\n \"platform\": {\r\n \"os\": \"Linux\",\r\n \"architecture\": \"amd64\",\r\n \"variant\": null\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": 2\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs/ca3\",\r\n \"name\": \"ca3\"\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries/runs\",\r\n \"properties\": {\r\n \"runId\": \"ca2\",\r\n \"status\": \"Queued\",\r\n \"lastUpdatedTime\": \"2018-10-02T17:37:32-07:00\",\r\n \"runType\": \"QuickRun\",\r\n \"createTime\": \"2018-10-02T17:37:32.5815786-07:00\",\r\n \"startTime\": null,\r\n \"finishTime\": null,\r\n \"outputImages\": null,\r\n \"task\": null,\r\n \"imageUpdateTrigger\": null,\r\n \"sourceTrigger\": null,\r\n \"isArchiveEnabled\": false,\r\n \"platform\": {\r\n \"os\": \"Linux\",\r\n \"architecture\": \"amd64\",\r\n \"variant\": null\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": 2\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs/ca2\",\r\n \"name\": \"ca2\"\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries/runs\",\r\n \"properties\": {\r\n \"runId\": \"ca1\",\r\n \"status\": \"Queued\",\r\n \"lastUpdatedTime\": \"2018-10-02T17:37:32-07:00\",\r\n \"runType\": \"QuickRun\",\r\n \"createTime\": \"2018-10-02T17:37:31.763172-07:00\",\r\n \"startTime\": null,\r\n \"finishTime\": null,\r\n \"outputImages\": null,\r\n \"task\": null,\r\n \"imageUpdateTrigger\": null,\r\n \"sourceTrigger\": null,\r\n \"isArchiveEnabled\": false,\r\n \"platform\": {\r\n \"os\": null,\r\n \"architecture\": null,\r\n \"variant\": null\r\n },\r\n \"agentConfiguration\": {\r\n \"cpu\": null\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/runs/ca1\",\r\n \"name\": \"ca1\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681/tasks/acrtask1338?api-version=2018-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MS90YXNrcy9hY3J0YXNrMTMzOD9hcGktdmVyc2lvbj0yMDE4LTA5LTAx",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "20aa254d-5c4e-46b8-aba1-0dad9eafc953"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:33 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "nginx/1.13.9"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14999"
+ ],
+ "x-ms-request-id": [
+ "333ca534-1dbf-4d04-96ae-2e58d3fcf7a5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-correlation-request-id": [
+ "bd17de12-eed8-4307-98cb-1cb365fbef5d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003733Z:bd17de12-eed8-4307-98cb-1cb365fbef5d"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7887/providers/Microsoft.ContainerRegistry/registries/acrregistry6681?api-version=2017-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc4ODcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjY4MT9hcGktdmVyc2lvbj0yMDE3LTEwLTAx",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c3347334-c10b-43b9-a997-521e8321404b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/3.0.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 03 Oct 2018 00:37:34 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14998"
+ ],
+ "x-ms-request-id": [
+ "405b845c-4988-4271-acef-a9ea419035d8"
+ ],
+ "x-ms-correlation-request-id": [
+ "405b845c-4988-4271-acef-a9ea419035d8"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20181003T003735Z:405b845c-4988-4271-acef-a9ea419035d8"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {
+ "CreateResourceGroup": [
+ "acr_rg7887"
+ ],
+ "CreateManagedContainerRegistry": [
+ "acrregistry6681"
+ ],
+ "ContainerRegistryTaskTest": [
+ "acrtask1338"
+ ]
+ },
+ "Variables": {
+ "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs
index f01e2f5cd74c..59527c6a05b1 100644
--- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs
+++ b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs
@@ -12,7 +12,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Net;
-using System.Threading.Tasks;
+using System.Text;
using Xunit;
using Sku = Microsoft.Azure.Management.ContainerRegistry.Models.Sku;
@@ -361,5 +361,135 @@ public void ContainerRegistryReplicationTest()
registryClient.Registries.Delete(resourceGroup.Name, registry.Name);
}
}
+
+ [Fact]
+ public void ContainerRegistryTaskTest()
+ {
+ var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK };
+
+ using (MockContext context = MockContext.Start(this.GetType().FullName))
+ {
+ var resourceClient = ContainerRegistryTestUtilities.GetResourceManagementClient(context, handler);
+ var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler);
+
+ // Create resource group
+ var resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient);
+ var nonDefaultLocation = ContainerRegistryTestUtilities.GetNonDefaultRegistryLocation(resourceClient, resourceGroup.Location);
+
+ // Create container registry
+ var registry = ContainerRegistryTestUtilities.CreateManagedContainerRegistry(registryClient, resourceGroup.Name, nonDefaultLocation);
+
+ // Crete task
+ var task = registryClient.Tasks.Create(
+ resourceGroup.Name,
+ registry.Name,
+ TestUtilities.GenerateName("acrtask"),
+ new Task(
+ location: registry.Location,
+ platform: new PlatformProperties { Architecture = Architecture.Amd64, Os = OS.Linux },
+ step: new DockerBuildStep(
+ dockerFilePath: "Dockerfile",
+ baseImageDependencies: null,
+ contextPath: "https://github.com/azure/acr-builder.git",
+ imageNames: new List { "image:{{.Run.ID}}", "image:latest" },
+ isPushEnabled: true,
+ noCache: true,
+ arguments: null),
+ agentConfiguration: new AgentProperties(cpu: 2),
+ status: "Enabled",
+ timeout: 600,
+ trigger: new TriggerProperties(
+ sourceTriggers: null,
+ baseImageTrigger: new BaseImageTrigger(BaseImageTriggerType.Runtime, "defaultBaseimageTriggerName", TriggerStatus.Enabled))
+ ));
+
+ Assert.NotNull(task);
+
+ // List task
+ var taskList = registryClient.Tasks.List(resourceGroup.Name, registry.Name);
+ Assert.Single(taskList);
+
+ // Update task
+ task = registryClient.Tasks.Update(resourceGroup.Name, registry.Name, task.Name, new TaskUpdateParameters(
+ timeout: 900
+ ));
+
+ Assert.Equal(900, task.Timeout);
+
+ // Schedule a run from task
+ var run1 = registryClient.Registries.ScheduleRun(resourceGroup.Name, registry.Name,
+ new TaskRunRequest(
+ task.Name,
+ values: new List { new SetValue("key1", "value1"), new SetValue("key2", "value2", isSecret: true) }));
+
+ Assert.Equal("ca1", run1.RunId);
+
+ // Cancel the run
+ registryClient.Runs.Cancel(resourceGroup.Name, registry.Name, run1.RunId);
+
+ // Schedule a docker build run
+ var run2 = registryClient.Registries.ScheduleRun(resourceGroup.Name, registry.Name,
+ new DockerBuildRequest(
+ dockerFilePath: "Dockerfile",
+ platform: new PlatformProperties { Architecture = Architecture.Amd64, Os = OS.Linux },
+ isArchiveEnabled: false,
+ imageNames: new List { "testimage1:tag1", "testimage2:tag2" },
+ isPushEnabled: false,
+ noCache: true,
+ arguments: new List { new Argument("param1", "value1", isSecret: true) },
+ timeout: 600,
+ agentConfiguration: new AgentProperties(cpu: 2),
+ sourceLocation: "https://github.com/azure/acr-builder.git"));
+
+ Assert.Equal("ca2", run2.RunId);
+
+ // Schedule a file based task run
+ var run3 = registryClient.Registries.ScheduleRun(resourceGroup.Name, registry.Name,
+ new FileTaskRunRequest(
+ taskFilePath: "acb.yaml",
+ platform: new PlatformProperties { Architecture = Architecture.Amd64, Os = OS.Linux },
+ isArchiveEnabled: false,
+ valuesFilePath: null,
+ values: new List { new SetValue("key1", "value1"), new SetValue("key2", "value2", isSecret: true) },
+ timeout: 600,
+ agentConfiguration: new AgentProperties(cpu: 2),
+ sourceLocation: "https://github.com/azure/acr-builder.git"));
+
+ Assert.Equal("ca3", run3.RunId);
+
+ // Schedule an encoded task run
+ string taskString =
+@"
+steps:
+ -build: . -t acb:linux-{{.Run.ID}}";
+ string valuesString =
+@"
+key1: value1
+key2: value2
+";
+ var run4 = registryClient.Registries.ScheduleRun(resourceGroup.Name, registry.Name,
+ new EncodedTaskRunRequest(
+ encodedTaskContent: Convert.ToBase64String(Encoding.UTF8.GetBytes(taskString)),
+ platform: new PlatformProperties { Architecture = Architecture.Amd64, Os = OS.Linux },
+ isArchiveEnabled: false,
+ encodedValuesContent: Convert.ToBase64String(Encoding.UTF8.GetBytes(valuesString)),
+ values: null,
+ timeout: 600,
+ agentConfiguration: new AgentProperties(cpu: 2),
+ sourceLocation: "https://github.com/azure/acr-builder.git"));
+
+ Assert.Equal("ca4", run4.RunId);
+
+ // List runs
+ var runList = registryClient.Runs.List(resourceGroup.Name, registry.Name);
+ Assert.Equal(4, runList.Count());
+
+ // Delete the task
+ registryClient.Tasks.Delete(resourceGroup.Name, registry.Name, task.Name);
+
+ // Delete the container registry
+ registryClient.Registries.Delete(resourceGroup.Name, registry.Name);
+ }
+ }
}
}
diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildStepsOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildStepsOperations.cs
deleted file mode 100644
index e7b03c964125..000000000000
--- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildStepsOperations.cs
+++ /dev/null
@@ -1,2060 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.ContainerRegistry
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// BuildStepsOperations operations.
- ///
- internal partial class BuildStepsOperations : IServiceOperations, IBuildStepsOperations
- {
- ///
- /// Initializes a new instance of the BuildStepsOperations class.
- ///
- ///
- /// Reference to the service client.
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- internal BuildStepsOperations(ContainerRegistryManagementClient client)
- {
- if (client == null)
- {
- throw new System.ArgumentNullException("client");
- }
- Client = client;
- }
-
- ///
- /// Gets a reference to the ContainerRegistryManagementClient
- ///
- public ContainerRegistryManagementClient Client { get; private set; }
-
- ///
- /// List all the build steps for a given build task.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (registryName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "registryName");
- }
- if (registryName != null)
- {
- if (registryName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "registryName", 50);
- }
- if (registryName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "registryName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$");
- }
- }
- if (buildTaskName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName");
- }
- if (buildTaskName != null)
- {
- if (buildTaskName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50);
- }
- if (buildTaskName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$");
- }
- }
- string apiVersion = "2018-02-01-preview";
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("registryName", registryName);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("buildTaskName", buildTaskName);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName));
- _url = _url.Replace("{buildTaskName}", System.Uri.EscapeDataString(buildTaskName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse>();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Gets the build step for a build task.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (registryName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "registryName");
- }
- if (registryName != null)
- {
- if (registryName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "registryName", 50);
- }
- if (registryName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "registryName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$");
- }
- }
- if (buildTaskName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName");
- }
- if (buildTaskName != null)
- {
- if (buildTaskName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50);
- }
- if (buildTaskName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$");
- }
- }
- if (stepName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "stepName");
- }
- if (stepName != null)
- {
- if (stepName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "stepName", 50);
- }
- if (stepName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "stepName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(stepName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "stepName", "^[a-zA-Z0-9]*$");
- }
- }
- string apiVersion = "2018-02-01-preview";
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("registryName", registryName);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("buildTaskName", buildTaskName);
- tracingParameters.Add("stepName", stepName);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps/{stepName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName));
- _url = _url.Replace("{buildTaskName}", System.Uri.EscapeDataString(buildTaskName));
- _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Creates a build step for a build task.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties of a build step.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepProperties properties = default(BuildStepProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, properties, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Deletes a build step from the build task.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Updates a build step in a build task.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties for updating a build step.
- ///
- ///
- /// The ARM resource tags.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepPropertiesUpdateParameters properties = default(BuildStepPropertiesUpdateParameters), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, properties, tags, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// List the build arguments for a step including the secret arguments.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListBuildArgumentsWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (registryName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "registryName");
- }
- if (registryName != null)
- {
- if (registryName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "registryName", 50);
- }
- if (registryName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "registryName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$");
- }
- }
- if (buildTaskName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName");
- }
- if (buildTaskName != null)
- {
- if (buildTaskName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50);
- }
- if (buildTaskName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$");
- }
- }
- if (stepName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "stepName");
- }
- if (stepName != null)
- {
- if (stepName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "stepName", 50);
- }
- if (stepName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "stepName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(stepName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "stepName", "^[a-zA-Z0-9]*$");
- }
- }
- string apiVersion = "2018-02-01-preview";
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("registryName", registryName);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("buildTaskName", buildTaskName);
- tracingParameters.Add("stepName", stepName);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListBuildArguments", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps/{stepName}/listBuildArguments").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName));
- _url = _url.Replace("{buildTaskName}", System.Uri.EscapeDataString(buildTaskName));
- _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse>();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Creates a build step for a build task.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties of a build step.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepProperties properties = default(BuildStepProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (registryName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "registryName");
- }
- if (registryName != null)
- {
- if (registryName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "registryName", 50);
- }
- if (registryName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "registryName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$");
- }
- }
- if (buildTaskName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName");
- }
- if (buildTaskName != null)
- {
- if (buildTaskName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50);
- }
- if (buildTaskName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$");
- }
- }
- if (stepName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "stepName");
- }
- if (stepName != null)
- {
- if (stepName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "stepName", 50);
- }
- if (stepName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "stepName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(stepName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "stepName", "^[a-zA-Z0-9]*$");
- }
- }
- string apiVersion = "2018-02-01-preview";
- BuildStep buildStepCreateParameters = new BuildStep();
- if (properties != null)
- {
- buildStepCreateParameters.Properties = properties;
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("registryName", registryName);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("buildTaskName", buildTaskName);
- tracingParameters.Add("stepName", stepName);
- tracingParameters.Add("buildStepCreateParameters", buildStepCreateParameters);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps/{stepName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName));
- _url = _url.Replace("{buildTaskName}", System.Uri.EscapeDataString(buildTaskName));
- _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- if(buildStepCreateParameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(buildStepCreateParameters, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 201)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- // Deserialize Response
- if ((int)_statusCode == 201)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Deletes a build step from the build task.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (registryName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "registryName");
- }
- if (registryName != null)
- {
- if (registryName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "registryName", 50);
- }
- if (registryName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "registryName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$");
- }
- }
- if (buildTaskName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName");
- }
- if (buildTaskName != null)
- {
- if (buildTaskName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50);
- }
- if (buildTaskName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$");
- }
- }
- if (stepName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "stepName");
- }
- if (stepName != null)
- {
- if (stepName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "stepName", 50);
- }
- if (stepName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "stepName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(stepName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "stepName", "^[a-zA-Z0-9]*$");
- }
- }
- string apiVersion = "2018-02-01-preview";
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("registryName", registryName);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("buildTaskName", buildTaskName);
- tracingParameters.Add("stepName", stepName);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps/{stepName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName));
- _url = _url.Replace("{buildTaskName}", System.Uri.EscapeDataString(buildTaskName));
- _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Updates a build step in a build task.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties for updating a build step.
- ///
- ///
- /// The ARM resource tags.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepPropertiesUpdateParameters properties = default(BuildStepPropertiesUpdateParameters), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (registryName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "registryName");
- }
- if (registryName != null)
- {
- if (registryName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "registryName", 50);
- }
- if (registryName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "registryName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$");
- }
- }
- if (buildTaskName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName");
- }
- if (buildTaskName != null)
- {
- if (buildTaskName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50);
- }
- if (buildTaskName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$");
- }
- }
- if (stepName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "stepName");
- }
- if (stepName != null)
- {
- if (stepName.Length > 50)
- {
- throw new ValidationException(ValidationRules.MaxLength, "stepName", 50);
- }
- if (stepName.Length < 5)
- {
- throw new ValidationException(ValidationRules.MinLength, "stepName", 5);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(stepName, "^[a-zA-Z0-9]*$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "stepName", "^[a-zA-Z0-9]*$");
- }
- }
- string apiVersion = "2018-02-01-preview";
- BuildStepUpdateParameters buildStepUpdateParameters = new BuildStepUpdateParameters();
- if (properties != null || tags != null)
- {
- buildStepUpdateParameters.Properties = properties;
- buildStepUpdateParameters.Tags = tags;
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("registryName", registryName);
- tracingParameters.Add("apiVersion", apiVersion);
- tracingParameters.Add("buildTaskName", buildTaskName);
- tracingParameters.Add("stepName", stepName);
- tracingParameters.Add("buildStepUpdateParameters", buildStepUpdateParameters);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps/{stepName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName));
- _url = _url.Replace("{buildTaskName}", System.Uri.EscapeDataString(buildTaskName));
- _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName));
- List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PATCH");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- if(buildStepUpdateParameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(buildStepUpdateParameters, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 201)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- // Deserialize Response
- if ((int)_statusCode == 201)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// List all the build steps for a given build task.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (nextPageLink == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("nextPageLink", nextPageLink);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters);
- }
- // Construct URL
- string _url = "{nextLink}";
- _url = _url.Replace("{nextLink}", nextPageLink);
- List _queryParameters = new List();
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse>();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// List the build arguments for a step including the secret arguments.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListBuildArgumentsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (nextPageLink == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("nextPageLink", nextPageLink);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListBuildArgumentsNext", tracingParameters);
- }
- // Construct URL
- string _url = "{nextLink}";
- _url = _url.Replace("{nextLink}", nextPageLink);
- List _queryParameters = new List();
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse>();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- }
-}
diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildStepsOperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildStepsOperationsExtensions.cs
deleted file mode 100644
index f0a3f383459c..000000000000
--- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildStepsOperationsExtensions.cs
+++ /dev/null
@@ -1,587 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.ContainerRegistry
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// Extension methods for BuildStepsOperations.
- ///
- public static partial class BuildStepsOperationsExtensions
- {
- ///
- /// List all the build steps for a given build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- public static IPage List(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName)
- {
- return operations.ListAsync(resourceGroupName, registryName, buildTaskName).GetAwaiter().GetResult();
- }
-
- ///
- /// List all the build steps for a given build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListAsync(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Gets the build step for a build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- public static BuildStep Get(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName)
- {
- return operations.GetAsync(resourceGroupName, registryName, buildTaskName, stepName).GetAwaiter().GetResult();
- }
-
- ///
- /// Gets the build step for a build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetAsync(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Creates a build step for a build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties of a build step.
- ///
- public static BuildStep Create(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepProperties properties = default(BuildStepProperties))
- {
- return operations.CreateAsync(resourceGroupName, registryName, buildTaskName, stepName, properties).GetAwaiter().GetResult();
- }
-
- ///
- /// Creates a build step for a build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties of a build step.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task CreateAsync(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepProperties properties = default(BuildStepProperties), CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, properties, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Deletes a build step from the build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- public static void Delete(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName)
- {
- operations.DeleteAsync(resourceGroupName, registryName, buildTaskName, stepName).GetAwaiter().GetResult();
- }
-
- ///
- /// Deletes a build step from the build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task DeleteAsync(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// Updates a build step in a build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties for updating a build step.
- ///
- ///
- /// The ARM resource tags.
- ///
- public static BuildStep Update(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepPropertiesUpdateParameters properties = default(BuildStepPropertiesUpdateParameters), IDictionary tags = default(IDictionary))
- {
- return operations.UpdateAsync(resourceGroupName, registryName, buildTaskName, stepName, properties, tags).GetAwaiter().GetResult();
- }
-
- ///
- /// Updates a build step in a build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties for updating a build step.
- ///
- ///
- /// The ARM resource tags.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task UpdateAsync(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepPropertiesUpdateParameters properties = default(BuildStepPropertiesUpdateParameters), IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, properties, tags, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// List the build arguments for a step including the secret arguments.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- public static IPage ListBuildArguments(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName)
- {
- return operations.ListBuildArgumentsAsync(resourceGroupName, registryName, buildTaskName, stepName).GetAwaiter().GetResult();
- }
-
- ///
- /// List the build arguments for a step including the secret arguments.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListBuildArgumentsAsync(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListBuildArgumentsWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Creates a build step for a build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties of a build step.
- ///
- public static BuildStep BeginCreate(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepProperties properties = default(BuildStepProperties))
- {
- return operations.BeginCreateAsync(resourceGroupName, registryName, buildTaskName, stepName, properties).GetAwaiter().GetResult();
- }
-
- ///
- /// Creates a build step for a build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties of a build step.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginCreateAsync(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepProperties properties = default(BuildStepProperties), CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, properties, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Deletes a build step from the build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- public static void BeginDelete(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName)
- {
- operations.BeginDeleteAsync(resourceGroupName, registryName, buildTaskName, stepName).GetAwaiter().GetResult();
- }
-
- ///
- /// Deletes a build step from the build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginDeleteAsync(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// Updates a build step in a build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties for updating a build step.
- ///
- ///
- /// The ARM resource tags.
- ///
- public static BuildStep BeginUpdate(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepPropertiesUpdateParameters properties = default(BuildStepPropertiesUpdateParameters), IDictionary tags = default(IDictionary))
- {
- return operations.BeginUpdateAsync(resourceGroupName, registryName, buildTaskName, stepName, properties, tags).GetAwaiter().GetResult();
- }
-
- ///
- /// Updates a build step in a build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group to which the container registry belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties for updating a build step.
- ///
- ///
- /// The ARM resource tags.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginUpdateAsync(this IBuildStepsOperations operations, string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepPropertiesUpdateParameters properties = default(BuildStepPropertiesUpdateParameters), IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, stepName, properties, tags, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// List all the build steps for a given build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- public static IPage ListNext(this IBuildStepsOperations operations, string nextPageLink)
- {
- return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
- }
-
- ///
- /// List all the build steps for a given build task.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListNextAsync(this IBuildStepsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// List the build arguments for a step including the secret arguments.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- public static IPage ListBuildArgumentsNext(this IBuildStepsOperations operations, string nextPageLink)
- {
- return operations.ListBuildArgumentsNextAsync(nextPageLink).GetAwaiter().GetResult();
- }
-
- ///
- /// List the build arguments for a step including the secret arguments.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListBuildArgumentsNextAsync(this IBuildStepsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListBuildArgumentsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- }
-}
diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs
index 4765004cf505..b8f5a8bb5e92 100644
--- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs
+++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs
@@ -87,19 +87,27 @@ public partial class ContainerRegistryManagementClient : ServiceClient
- /// Gets the IBuildsOperations.
+ /// Gets the IRunsOperations.
///
- public virtual IBuildsOperations Builds { get; private set; }
+ public virtual IRunsOperations Runs { get; private set; }
///
- /// Gets the IBuildStepsOperations.
+ /// Gets the ITasksOperations.
///
- public virtual IBuildStepsOperations BuildSteps { get; private set; }
+ public virtual ITasksOperations Tasks { get; private set; }
///
- /// Gets the IBuildTasksOperations.
+ /// Initializes a new instance of the ContainerRegistryManagementClient class.
///
- public virtual IBuildTasksOperations BuildTasks { get; private set; }
+ ///
+ /// HttpClient to be used
+ ///
+ ///
+ /// True: will dispose the provided httpClient on calling ContainerRegistryManagementClient.Dispose(). False: will not dispose provided httpClient
+ protected ContainerRegistryManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
+ {
+ Initialize();
+ }
///
/// Initializes a new instance of the ContainerRegistryManagementClient class.
@@ -196,6 +204,33 @@ public ContainerRegistryManagementClient(ServiceClientCredentials credentials, p
}
}
+ ///
+ /// Initializes a new instance of the ContainerRegistryManagementClient class.
+ ///
+ ///
+ /// Required. Credentials needed for the client to connect to Azure.
+ ///
+ ///
+ /// HttpClient to be used
+ ///
+ ///
+ /// True: will dispose the provided httpClient on calling ContainerRegistryManagementClient.Dispose(). False: will not dispose provided httpClient
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ public ContainerRegistryManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
+ {
+ if (credentials == null)
+ {
+ throw new System.ArgumentNullException("credentials");
+ }
+ Credentials = credentials;
+ if (Credentials != null)
+ {
+ Credentials.InitializeServiceClient(this);
+ }
+ }
+
///
/// Initializes a new instance of the ContainerRegistryManagementClient class.
///
@@ -306,9 +341,8 @@ private void Initialize()
Operations = new Operations(this);
Replications = new ReplicationsOperations(this);
Webhooks = new WebhooksOperations(this);
- Builds = new BuildsOperations(this);
- BuildSteps = new BuildStepsOperations(this);
- BuildTasks = new BuildTasksOperations(this);
+ Runs = new RunsOperations(this);
+ Tasks = new TasksOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
@@ -339,12 +373,12 @@ private void Initialize()
new Iso8601TimeSpanConverter()
}
};
- SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
- DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
- SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
- DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
- SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
- DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
CustomInitialize();
DeserializationSettings.Converters.Add(new TransformationJsonConverter());
DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IBuildStepsOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IBuildStepsOperations.cs
deleted file mode 100644
index 88ea23dbe14d..000000000000
--- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IBuildStepsOperations.cs
+++ /dev/null
@@ -1,368 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.ContainerRegistry
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// BuildStepsOperations operations.
- ///
- public partial interface IBuildStepsOperations
- {
- ///
- /// List all the build steps for a given build task.
- ///
- ///
- /// The name of the resource group to which the container registry
- /// belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Gets the build step for a build task.
- ///
- ///
- /// The name of the resource group to which the container registry
- /// belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Creates a build step for a build task.
- ///
- ///
- /// The name of the resource group to which the container registry
- /// belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties of a build step.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepProperties properties = default(BuildStepProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Deletes a build step from the build task.
- ///
- ///
- /// The name of the resource group to which the container registry
- /// belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Updates a build step in a build task.
- ///
- ///
- /// The name of the resource group to which the container registry
- /// belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties for updating a build step.
- ///
- ///
- /// The ARM resource tags.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepPropertiesUpdateParameters properties = default(BuildStepPropertiesUpdateParameters), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List the build arguments for a step including the secret arguments.
- ///
- ///
- /// The name of the resource group to which the container registry
- /// belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBuildArgumentsWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Creates a build step for a build task.
- ///
- ///
- /// The name of the resource group to which the container registry
- /// belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties of a build step.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepProperties properties = default(BuildStepProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Deletes a build step from the build task.
- ///
- ///
- /// The name of the resource group to which the container registry
- /// belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Updates a build step in a build task.
- ///
- ///
- /// The name of the resource group to which the container registry
- /// belongs.
- ///
- ///
- /// The name of the container registry.
- ///
- ///
- /// The name of the container registry build task.
- ///
- ///
- /// The name of a build step for a container registry build task.
- ///
- ///
- /// The properties for updating a build step.
- ///
- ///
- /// The ARM resource tags.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, string stepName, BuildStepPropertiesUpdateParameters properties = default(BuildStepPropertiesUpdateParameters), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List all the build steps for a given build task.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List the build arguments for a step including the secret arguments.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBuildArgumentsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs
index 2b5a1aafbc11..e245c6061829 100644
--- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs
+++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs
@@ -84,19 +84,14 @@ public partial interface IContainerRegistryManagementClient : System.IDisposable
IWebhooksOperations Webhooks { get; }
///
- /// Gets the IBuildsOperations.
+ /// Gets the IRunsOperations.
///
- IBuildsOperations Builds { get; }
+ IRunsOperations Runs { get; }
///
- /// Gets the IBuildStepsOperations.
+ /// Gets the ITasksOperations.
///
- IBuildStepsOperations BuildSteps { get; }
-
- ///
- /// Gets the IBuildTasksOperations.
- ///
- IBuildTasksOperations BuildTasks { get; }
+ ITasksOperations Tasks { get; }
}
}
diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IOperations.cs
index 0dc45521af3b..a717894636b4 100644
--- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IOperations.cs
+++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IOperations.cs
@@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry
using System.Collections;
using System.Collections.Generic;
using System.Threading;
- using System.Threading.Tasks;
///
/// Operations operations.
@@ -42,7 +41,7 @@ public partial interface IOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists all of the available Azure Container Registry REST API
/// operations.
@@ -65,6 +64,6 @@ public partial interface IOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRegistriesOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRegistriesOperations.cs
index 7cfa5c402d54..23535b7b3569 100644
--- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRegistriesOperations.cs
+++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRegistriesOperations.cs
@@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry
using System.Collections;
using System.Collections.Generic;
using System.Threading;
- using System.Threading.Tasks;
///
/// RegistriesOperations operations.
@@ -50,7 +49,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task ImportImageWithHttpMessagesAsync(string resourceGroupName, string registryName, ImportImageParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task ImportImageWithHttpMessagesAsync(string resourceGroupName, string registryName, ImportImageParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Checks whether the container registry name is available for use.
/// The name must contain only alphanumeric characters, be globally
@@ -74,7 +73,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the properties of the specified container registry.
///
@@ -100,7 +99,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates a container registry with the specified parameters.
///
@@ -129,7 +128,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes a container registry.
///
@@ -152,7 +151,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Updates a container registry with the specified parameters.
///
@@ -181,7 +180,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists all the container registries under the specified resource
/// group.
@@ -205,7 +204,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists all the container registries under the specified
/// subscription.
@@ -225,7 +224,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists the login credentials for the specified container registry.
///
@@ -251,7 +250,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> ListCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> ListCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Regenerates one of the login credentials for the specified
/// container registry.
@@ -283,7 +282,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> RegenerateCredentialWithHttpMessagesAsync(string resourceGroupName, string registryName, PasswordName name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> RegenerateCredentialWithHttpMessagesAsync(string resourceGroupName, string registryName, PasswordName name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the quota usages for the specified container registry.
///
@@ -309,7 +308,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> ListUsagesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> ListUsagesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists the policies for the specified container registry.
///
@@ -335,7 +334,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> ListPoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> ListPoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Updates the policies for the specified container registry.
///
@@ -369,10 +368,10 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdatePoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> UpdatePoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates a new build based on the request parameters and add it to
- /// the build queue.
+ /// Schedules a new run based on the request parameters and add it to
+ /// the run queue.
///
///
/// The name of the resource group to which the container registry
@@ -381,8 +380,8 @@ public partial interface IRegistriesOperations
///
/// The name of the container registry.
///
- ///
- /// The parameters of a build that needs to queued.
+ ///
+ /// The parameters of a run that needs to scheduled.
///
///
/// The headers that will be added to request.
@@ -399,7 +398,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> QueueBuildWithHttpMessagesAsync(string resourceGroupName, string registryName, QueueBuildRequest buildRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> ScheduleRunWithHttpMessagesAsync(string resourceGroupName, string registryName, RunRequest runRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Get the upload location for the user to be able to upload the
/// source.
@@ -426,7 +425,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> GetBuildSourceUploadUrlWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> GetBuildSourceUploadUrlWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Copies an image to this container registry from the specified
/// container registry.
@@ -454,7 +453,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task BeginImportImageWithHttpMessagesAsync(string resourceGroupName, string registryName, ImportImageParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task BeginImportImageWithHttpMessagesAsync(string resourceGroupName, string registryName, ImportImageParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates a container registry with the specified parameters.
///
@@ -483,7 +482,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes a container registry.
///
@@ -506,7 +505,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Updates a container registry with the specified parameters.
///
@@ -535,7 +534,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Updates the policies for the specified container registry.
///
@@ -569,10 +568,10 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdatePoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> BeginUpdatePoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates a new build based on the request parameters and add it to
- /// the build queue.
+ /// Schedules a new run based on the request parameters and add it to
+ /// the run queue.
///
///
/// The name of the resource group to which the container registry
@@ -581,8 +580,8 @@ public partial interface IRegistriesOperations
///
/// The name of the container registry.
///
- ///
- /// The parameters of a build that needs to queued.
+ ///
+ /// The parameters of a run that needs to scheduled.
///
///
/// The headers that will be added to request.
@@ -599,7 +598,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginQueueBuildWithHttpMessagesAsync(string resourceGroupName, string registryName, QueueBuildRequest buildRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ System.Threading.Tasks.Task> BeginScheduleRunWithHttpMessagesAsync(string resourceGroupName, string registryName, RunRequest runRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists all the container registries under the specified resource
/// group.
@@ -622,7 +621,7 @@ public partial interface IRegistriesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary