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> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all the container registries under the specified /// subscription. @@ -645,6 +644,6 @@ public partial interface IRegistriesOperations /// /// 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/IReplicationsOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IReplicationsOperations.cs index 698157edb01c..d8ef679dc262 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IReplicationsOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IReplicationsOperations.cs @@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry using System.Collections; using System.Collections.Generic; using System.Threading; - using System.Threading.Tasks; /// /// ReplicationsOperations operations. @@ -51,7 +50,7 @@ public partial interface IReplicationsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates a replication for a container registry with the specified /// parameters. @@ -88,7 +87,7 @@ public partial interface IReplicationsOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a replication from a container registry. /// @@ -114,7 +113,7 @@ public partial interface IReplicationsOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a replication for a container registry with the specified /// parameters. @@ -147,7 +146,7 @@ public partial interface IReplicationsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all the replications for the specified container registry. /// @@ -173,7 +172,7 @@ public partial interface IReplicationsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates a replication for a container registry with the specified /// parameters. @@ -210,7 +209,7 @@ public partial interface IReplicationsOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a replication from a container registry. /// @@ -236,7 +235,7 @@ public partial interface IReplicationsOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a replication for a container registry with the specified /// parameters. @@ -269,7 +268,7 @@ public partial interface IReplicationsOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all the replications for the specified container registry. /// @@ -291,6 +290,6 @@ public partial interface IReplicationsOperations /// /// 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/IBuildsOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRunsOperations.cs similarity index 73% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IBuildsOperations.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRunsOperations.cs index fb02f5a002b4..b3e05481a630 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IBuildsOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRunsOperations.cs @@ -17,15 +17,14 @@ namespace Microsoft.Azure.Management.ContainerRegistry using System.Collections; using System.Collections.Generic; using System.Threading; - using System.Threading.Tasks; /// - /// BuildsOperations operations. + /// RunsOperations operations. /// - public partial interface IBuildsOperations + public partial interface IRunsOperations { /// - /// Gets all the builds for a registry. + /// Gets all the runs for a registry. /// /// /// The name of the resource group to which the container registry @@ -37,10 +36,6 @@ public partial interface IBuildsOperations /// /// OData parameters to apply to the operation. /// - /// - /// $skipToken is supported on get list of builds, which provides the - /// next page in the list of builds. - /// /// /// The headers that will be added to request. /// @@ -56,9 +51,9 @@ public partial interface IBuildsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the detailed information for a given build. + /// Gets the detailed information for a given run. /// /// /// The name of the resource group to which the container registry @@ -67,8 +62,8 @@ public partial interface IBuildsOperations /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The headers that will be added to request. @@ -85,9 +80,9 @@ public partial interface IBuildsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Patch the build properties. + /// Patch the run properties. /// /// /// The name of the resource group to which the container registry @@ -96,8 +91,8 @@ public partial interface IBuildsOperations /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The value that indicates whether archiving is enabled or not. @@ -117,9 +112,9 @@ public partial interface IBuildsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, bool? isArchiveEnabled = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, bool? isArchiveEnabled = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a link to download the build logs. + /// Gets a link to download the run logs. /// /// /// The name of the resource group to which the container registry @@ -128,8 +123,8 @@ public partial interface IBuildsOperations /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The headers that will be added to request. @@ -146,9 +141,9 @@ public partial interface IBuildsOperations /// /// Thrown when a required parameter is null /// - Task> GetLogLinkWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> GetLogSasUrlWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Cancel an existing build. + /// Cancel an existing run. /// /// /// The name of the resource group to which the container registry @@ -157,8 +152,8 @@ public partial interface IBuildsOperations /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The headers that will be added to request. @@ -172,9 +167,9 @@ public partial interface IBuildsOperations /// /// Thrown when a required parameter is null /// - Task CancelWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task CancelWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Patch the build properties. + /// Patch the run properties. /// /// /// The name of the resource group to which the container registry @@ -183,8 +178,8 @@ public partial interface IBuildsOperations /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The value that indicates whether archiving is enabled or not. @@ -204,9 +199,9 @@ public partial interface IBuildsOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, bool? isArchiveEnabled = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, bool? isArchiveEnabled = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Cancel an existing build. + /// Cancel an existing run. /// /// /// The name of the resource group to which the container registry @@ -215,8 +210,8 @@ public partial interface IBuildsOperations /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The headers that will be added to request. @@ -230,9 +225,9 @@ public partial interface IBuildsOperations /// /// Thrown when a required parameter is null /// - Task BeginCancelWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task BeginCancelWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets all the builds for a registry. + /// Gets all the runs for a registry. /// /// /// The NextLink from the previous successful call to List operation. @@ -252,6 +247,6 @@ public partial interface IBuildsOperations /// /// 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/IBuildTasksOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ITasksOperations.cs similarity index 66% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IBuildTasksOperations.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ITasksOperations.cs index 2dbe4f04da70..02c631b70494 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IBuildTasksOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ITasksOperations.cs @@ -12,20 +12,18 @@ namespace Microsoft.Azure.Management.ContainerRegistry { using Microsoft.Rest; using Microsoft.Rest.Azure; - using Microsoft.Rest.Azure.OData; using Models; using System.Collections; using System.Collections.Generic; using System.Threading; - using System.Threading.Tasks; /// - /// BuildTasksOperations operations. + /// TasksOperations operations. /// - public partial interface IBuildTasksOperations + public partial interface ITasksOperations { /// - /// Lists all the build tasks for a specified container registry. + /// Lists all the tasks for a specified container registry. /// /// /// The name of the resource group to which the container registry @@ -34,13 +32,6 @@ public partial interface IBuildTasksOperations /// /// The name of the container registry. /// - /// - /// OData parameters to apply to the operation. - /// - /// - /// $skipToken is supported on get list of build tasks, which provides - /// the next page in the list of tasks. - /// /// /// The headers that will be added to request. /// @@ -56,9 +47,9 @@ public partial interface IBuildTasksOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get the properties of a specified build task. + /// Get the properties of a specified task. /// /// /// The name of the resource group to which the container registry @@ -67,8 +58,8 @@ public partial interface IBuildTasksOperations /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// The headers that will be added to request. @@ -85,9 +76,9 @@ public partial interface IBuildTasksOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a build task for a container registry with the specified + /// Creates a task for a container registry with the specified /// parameters. /// /// @@ -97,11 +88,11 @@ public partial interface IBuildTasksOperations /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for creating a build task. + /// + /// The parameters for creating a task. /// /// /// The headers that will be added to request. @@ -118,9 +109,9 @@ public partial interface IBuildTasksOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, BuildTask buildTaskCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Task taskCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a specified build task. + /// Deletes a specified task. /// /// /// The name of the resource group to which the container registry @@ -129,8 +120,8 @@ public partial interface IBuildTasksOperations /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// The headers that will be added to request. @@ -144,9 +135,9 @@ public partial interface IBuildTasksOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates a build task with the specified parameters. + /// Updates a task with the specified parameters. /// /// /// The name of the resource group to which the container registry @@ -155,11 +146,11 @@ public partial interface IBuildTasksOperations /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for updating a build task. + /// + /// The parameters for updating a task. /// /// /// The headers that will be added to request. @@ -176,9 +167,9 @@ public partial interface IBuildTasksOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, BuildTaskUpdateParameters buildTaskUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, TaskUpdateParameters taskUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get the source control properties for a build task. + /// Returns a task with extended information that includes all secrets. /// /// /// The name of the resource group to which the container registry @@ -187,8 +178,8 @@ public partial interface IBuildTasksOperations /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// The headers that will be added to request. @@ -205,9 +196,9 @@ public partial interface IBuildTasksOperations /// /// Thrown when a required parameter is null /// - Task> ListSourceRepositoryPropertiesWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> GetDetailsWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a build task for a container registry with the specified + /// Creates a task for a container registry with the specified /// parameters. /// /// @@ -217,11 +208,11 @@ public partial interface IBuildTasksOperations /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for creating a build task. + /// + /// The parameters for creating a task. /// /// /// The headers that will be added to request. @@ -238,9 +229,9 @@ public partial interface IBuildTasksOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, BuildTask buildTaskCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Task taskCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a specified build task. + /// Deletes a specified task. /// /// /// The name of the resource group to which the container registry @@ -249,8 +240,8 @@ public partial interface IBuildTasksOperations /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// The headers that will be added to request. @@ -264,9 +255,9 @@ public partial interface IBuildTasksOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates a build task with the specified parameters. + /// Updates a task with the specified parameters. /// /// /// The name of the resource group to which the container registry @@ -275,11 +266,11 @@ public partial interface IBuildTasksOperations /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for updating a build task. + /// + /// The parameters for updating a task. /// /// /// The headers that will be added to request. @@ -296,9 +287,9 @@ public partial interface IBuildTasksOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, BuildTaskUpdateParameters buildTaskUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, TaskUpdateParameters taskUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all the build tasks for a specified container registry. + /// Lists all the tasks for a specified container registry. /// /// /// The NextLink from the previous successful call to List operation. @@ -318,6 +309,6 @@ public partial interface IBuildTasksOperations /// /// 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/IWebhooksOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IWebhooksOperations.cs index 7e41edaa9f64..d25434e61058 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IWebhooksOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IWebhooksOperations.cs @@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry using System.Collections; using System.Collections.Generic; using System.Threading; - using System.Threading.Tasks; /// /// WebhooksOperations operations. @@ -51,7 +50,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates a webhook for a container registry with the specified /// parameters. @@ -84,7 +83,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a webhook from a container registry. /// @@ -110,7 +109,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a webhook with the specified parameters. /// @@ -142,7 +141,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all the webhooks for the specified container registry. /// @@ -168,7 +167,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Triggers a ping event to be sent to the webhook. /// @@ -197,7 +196,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task> PingWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> PingWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the configuration of service URI and custom headers for the /// webhook. @@ -227,7 +226,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task> GetCallbackConfigWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> GetCallbackConfigWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists recent events for the specified webhook. /// @@ -256,7 +255,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task>> ListEventsWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task>> ListEventsWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates a webhook for a container registry with the specified /// parameters. @@ -289,7 +288,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a webhook from a container registry. /// @@ -315,7 +314,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a webhook with the specified parameters. /// @@ -347,7 +346,7 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all the webhooks for the specified container registry. /// @@ -369,7 +368,7 @@ public partial interface IWebhooksOperations /// /// 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)); /// /// Lists recent events for the specified webhook. /// @@ -391,6 +390,6 @@ public partial interface IWebhooksOperations /// /// Thrown when a required parameter is null /// - Task>> ListEventsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + System.Threading.Tasks.Task>> ListEventsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskFilter.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/AgentProperties.cs similarity index 58% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskFilter.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/AgentProperties.cs index 9399519e2d28..bcff3e94e691 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskFilter.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/AgentProperties.cs @@ -14,25 +14,26 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models using System.Linq; /// - /// The filter that can be used for listing build tasks. + /// The properties that determine the run agent configuration. /// - public partial class BuildTaskFilter + public partial class AgentProperties { /// - /// Initializes a new instance of the BuildTaskFilter class. + /// Initializes a new instance of the AgentProperties class. /// - public BuildTaskFilter() + public AgentProperties() { CustomInit(); } /// - /// Initializes a new instance of the BuildTaskFilter class. + /// Initializes a new instance of the AgentProperties class. /// - /// The alternative name for build task. - public BuildTaskFilter(string alias = default(string)) + /// The CPU configuration in terms of number of cores + /// required for the run. + public AgentProperties(int? cpu = default(int?)) { - Alias = alias; + Cpu = cpu; CustomInit(); } @@ -42,10 +43,11 @@ public BuildTaskFilter() partial void CustomInit(); /// - /// Gets or sets the alternative name for build task. + /// Gets or sets the CPU configuration in terms of number of cores + /// required for the run. /// - [JsonProperty(PropertyName = "alias")] - public string Alias { get; set; } + [JsonProperty(PropertyName = "cpu")] + public int? Cpu { get; set; } } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Architecture.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Architecture.cs new file mode 100644 index 000000000000..f595764f86d8 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Architecture.cs @@ -0,0 +1,23 @@ +// +// 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.Models +{ + + /// + /// Defines values for Architecture. + /// + public static class Architecture + { + public const string Amd64 = "amd64"; + public const string X86 = "x86"; + public const string Arm = "arm"; + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildArgument.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Argument.cs similarity index 77% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildArgument.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Argument.cs index 848d918b58f8..062e04c31685 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildArgument.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Argument.cs @@ -15,39 +15,32 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models using System.Linq; /// - /// Properties of a build argument. + /// The properties of a run argument. /// - public partial class BuildArgument + public partial class Argument { /// - /// Initializes a new instance of the BuildArgument class. + /// Initializes a new instance of the Argument class. /// - public BuildArgument() + public Argument() { CustomInit(); } /// - /// Initializes a new instance of the BuildArgument class. + /// Initializes a new instance of the Argument class. /// /// The name of the argument. /// The value of the argument. /// Flag to indicate whether the argument /// represents a secret and want to be removed from build logs. - public BuildArgument(string name, string value, bool? isSecret = default(bool?)) + public Argument(string name, string value, bool? isSecret = default(bool?)) { Name = name; Value = value; IsSecret = isSecret; CustomInit(); } - /// - /// Static constructor for BuildArgument class. - /// - static BuildArgument() - { - Type = "DockerBuildArgument"; - } /// /// An initialization method that performs custom operations like setting defaults @@ -73,12 +66,6 @@ static BuildArgument() [JsonProperty(PropertyName = "isSecret")] public bool? IsSecret { get; set; } - /// - /// The type of the argument. - /// - [JsonProperty(PropertyName = "type")] - public static string Type { get; private set; } - /// /// Validate the object. /// diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceControlAuthInfo.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/AuthInfo.cs similarity index 86% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceControlAuthInfo.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/AuthInfo.cs index ec3cfe80704b..07d63c7ad03f 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceControlAuthInfo.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/AuthInfo.cs @@ -17,29 +17,29 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models /// /// The authorization properties for accessing the source code repository. /// - public partial class SourceControlAuthInfo + public partial class AuthInfo { /// - /// Initializes a new instance of the SourceControlAuthInfo class. + /// Initializes a new instance of the AuthInfo class. /// - public SourceControlAuthInfo() + public AuthInfo() { CustomInit(); } /// - /// Initializes a new instance of the SourceControlAuthInfo class. + /// Initializes a new instance of the AuthInfo class. /// - /// The access token used to access the source - /// control provider. /// The type of Auth token. Possible values /// include: 'PAT', 'OAuth' + /// The access token used to access the source + /// control provider. /// The refresh token used to refresh the /// access token. /// The scope of the access token. /// Time in seconds that the token remains /// valid - public SourceControlAuthInfo(string token, string tokenType = default(string), string refreshToken = default(string), string scope = default(string), int? expiresIn = default(int?)) + public AuthInfo(string tokenType, string token, string refreshToken = default(string), string scope = default(string), int? expiresIn = default(int?)) { TokenType = tokenType; Token = token; @@ -94,6 +94,10 @@ public SourceControlAuthInfo() /// public virtual void Validate() { + if (TokenType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TokenType"); + } if (Token == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Token"); diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/AuthInfoUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/AuthInfoUpdateParameters.cs new file mode 100644 index 000000000000..06ef9043d09c --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/AuthInfoUpdateParameters.cs @@ -0,0 +1,89 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The authorization properties for accessing the source code repository. + /// + public partial class AuthInfoUpdateParameters + { + /// + /// Initializes a new instance of the AuthInfoUpdateParameters class. + /// + public AuthInfoUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AuthInfoUpdateParameters class. + /// + /// The type of Auth token. Possible values + /// include: 'PAT', 'OAuth' + /// The access token used to access the source + /// control provider. + /// The refresh token used to refresh the + /// access token. + /// The scope of the access token. + /// Time in seconds that the token remains + /// valid + public AuthInfoUpdateParameters(string tokenType = default(string), string token = default(string), string refreshToken = default(string), string scope = default(string), int? expiresIn = default(int?)) + { + TokenType = tokenType; + Token = token; + RefreshToken = refreshToken; + Scope = scope; + ExpiresIn = expiresIn; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of Auth token. Possible values include: + /// 'PAT', 'OAuth' + /// + [JsonProperty(PropertyName = "tokenType")] + public string TokenType { get; set; } + + /// + /// Gets or sets the access token used to access the source control + /// provider. + /// + [JsonProperty(PropertyName = "token")] + public string Token { get; set; } + + /// + /// Gets or sets the refresh token used to refresh the access token. + /// + [JsonProperty(PropertyName = "refreshToken")] + public string RefreshToken { get; set; } + + /// + /// Gets or sets the scope of the access token. + /// + [JsonProperty(PropertyName = "scope")] + public string Scope { get; set; } + + /// + /// Gets or sets time in seconds that the token remains valid + /// + [JsonProperty(PropertyName = "expiresIn")] + public int? ExpiresIn { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BaseImageTrigger.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BaseImageTrigger.cs new file mode 100644 index 000000000000..eda102f29f6d --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BaseImageTrigger.cs @@ -0,0 +1,90 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The trigger based on base image dependency. + /// + public partial class BaseImageTrigger + { + /// + /// Initializes a new instance of the BaseImageTrigger class. + /// + public BaseImageTrigger() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BaseImageTrigger class. + /// + /// The type of the auto trigger for + /// base image dependency updates. Possible values include: 'All', + /// 'Runtime' + /// The name of the trigger. + /// The current status of trigger. Possible values + /// include: 'Disabled', 'Enabled' + public BaseImageTrigger(string baseImageTriggerType, string name, string status = default(string)) + { + BaseImageTriggerType = baseImageTriggerType; + Status = status; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of the auto trigger for base image dependency + /// updates. Possible values include: 'All', 'Runtime' + /// + [JsonProperty(PropertyName = "baseImageTriggerType")] + public string BaseImageTriggerType { get; set; } + + /// + /// Gets or sets the current status of trigger. Possible values + /// include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the name of the trigger. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (BaseImageTriggerType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "BaseImageTriggerType"); + } + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BaseImageTriggerType.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BaseImageTriggerType.cs index a44a09303ceb..5acfd504ba39 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BaseImageTriggerType.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BaseImageTriggerType.cs @@ -18,6 +18,5 @@ public static class BaseImageTriggerType { public const string All = "All"; public const string Runtime = "Runtime"; - public const string None = "None"; } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BaseImageTriggerUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BaseImageTriggerUpdateParameters.cs new file mode 100644 index 000000000000..8ae0c6948d12 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BaseImageTriggerUpdateParameters.cs @@ -0,0 +1,88 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The properties for updating base image dependency trigger. + /// + public partial class BaseImageTriggerUpdateParameters + { + /// + /// Initializes a new instance of the BaseImageTriggerUpdateParameters + /// class. + /// + public BaseImageTriggerUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BaseImageTriggerUpdateParameters + /// class. + /// + /// The name of the trigger. + /// The type of the auto trigger for + /// base image dependency updates. Possible values include: 'All', + /// 'Runtime' + /// The current status of trigger. Possible values + /// include: 'Disabled', 'Enabled' + public BaseImageTriggerUpdateParameters(string name, string baseImageTriggerType = default(string), string status = default(string)) + { + BaseImageTriggerType = baseImageTriggerType; + Status = status; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of the auto trigger for base image dependency + /// updates. Possible values include: 'All', 'Runtime' + /// + [JsonProperty(PropertyName = "baseImageTriggerType")] + public string BaseImageTriggerType { get; set; } + + /// + /// Gets or sets the current status of trigger. Possible values + /// include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the name of the trigger. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStep.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStep.cs deleted file mode 100644 index 53944dc02c65..000000000000 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStep.cs +++ /dev/null @@ -1,55 +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.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Build step resource properties - /// - public partial class BuildStep : ProxyResource - { - /// - /// Initializes a new instance of the BuildStep class. - /// - public BuildStep() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the BuildStep class. - /// - /// The resource ID. - /// The name of the resource. - /// The type of the resource. - /// The properties of a build step. - public BuildStep(string id = default(string), string name = default(string), string type = default(string), BuildStepProperties properties = default(BuildStepProperties)) - : base(id, name, type) - { - Properties = properties; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the properties of a build step. - /// - [JsonProperty(PropertyName = "properties")] - public BuildStepProperties Properties { get; set; } - - } -} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStepPropertiesUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStepPropertiesUpdateParameters.cs deleted file mode 100644 index 8b56f253446f..000000000000 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStepPropertiesUpdateParameters.cs +++ /dev/null @@ -1,36 +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.Models -{ - using System.Linq; - - /// - /// The properties for updating a build step. - /// - public partial class BuildStepPropertiesUpdateParameters - { - /// - /// Initializes a new instance of the - /// BuildStepPropertiesUpdateParameters class. - /// - public BuildStepPropertiesUpdateParameters() - { - CustomInit(); - } - - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - } -} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStepUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStepUpdateParameters.cs deleted file mode 100644 index 4c9b6f8b8ef9..000000000000 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStepUpdateParameters.cs +++ /dev/null @@ -1,62 +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.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The parameters for updating a build step. - /// - public partial class BuildStepUpdateParameters - { - /// - /// Initializes a new instance of the BuildStepUpdateParameters class. - /// - public BuildStepUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the BuildStepUpdateParameters class. - /// - /// The properties for updating a build - /// step. - /// The ARM resource tags. - public BuildStepUpdateParameters(BuildStepPropertiesUpdateParameters properties = default(BuildStepPropertiesUpdateParameters), IDictionary tags = default(IDictionary)) - { - Properties = properties; - Tags = tags; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the properties for updating a build step. - /// - [JsonProperty(PropertyName = "properties")] - public BuildStepPropertiesUpdateParameters Properties { get; set; } - - /// - /// Gets or sets the ARM resource tags. - /// - [JsonProperty(PropertyName = "tags")] - public IDictionary Tags { get; set; } - - } -} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskBuildRequest.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskBuildRequest.cs deleted file mode 100644 index 413fe61a36b9..000000000000 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskBuildRequest.cs +++ /dev/null @@ -1,68 +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.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// The queue build parameters based on a build task. - /// - [Newtonsoft.Json.JsonObject("BuildTask")] - public partial class BuildTaskBuildRequest : QueueBuildRequest - { - /// - /// Initializes a new instance of the BuildTaskBuildRequest class. - /// - public BuildTaskBuildRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the BuildTaskBuildRequest class. - /// - /// The name of build task against which - /// build has to be queued. - public BuildTaskBuildRequest(string buildTaskName) - { - BuildTaskName = buildTaskName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the name of build task against which build has to be - /// queued. - /// - [JsonProperty(PropertyName = "buildTaskName")] - public string BuildTaskName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (BuildTaskName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "BuildTaskName"); - } - } - } -} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskUpdateParameters.cs deleted file mode 100644 index 4597880dcbcd..000000000000 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskUpdateParameters.cs +++ /dev/null @@ -1,128 +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.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The parameters for updating a build task. - /// - [Rest.Serialization.JsonTransformation] - public partial class BuildTaskUpdateParameters - { - /// - /// Initializes a new instance of the BuildTaskUpdateParameters class. - /// - public BuildTaskUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the BuildTaskUpdateParameters class. - /// - /// The alternative updatable name for a build - /// task. - /// The current status of build task. Possible - /// values include: 'Disabled', 'Enabled' - /// The platform properties against which the - /// build has to happen. - /// Build timeout in seconds. - /// The properties that describes the - /// source(code) for the build task. - /// The ARM resource tags. - public BuildTaskUpdateParameters(string alias = default(string), string status = default(string), PlatformProperties platform = default(PlatformProperties), int? timeout = default(int?), SourceRepositoryUpdateParameters sourceRepository = default(SourceRepositoryUpdateParameters), IDictionary tags = default(IDictionary)) - { - Alias = alias; - Status = status; - Platform = platform; - Timeout = timeout; - SourceRepository = sourceRepository; - Tags = tags; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the alternative updatable name for a build task. - /// - [JsonProperty(PropertyName = "properties.alias")] - public string Alias { get; set; } - - /// - /// Gets or sets the current status of build task. Possible values - /// include: 'Disabled', 'Enabled' - /// - [JsonProperty(PropertyName = "properties.status")] - public string Status { get; set; } - - /// - /// Gets or sets the platform properties against which the build has to - /// happen. - /// - [JsonProperty(PropertyName = "properties.platform")] - public PlatformProperties Platform { get; set; } - - /// - /// Gets or sets build timeout in seconds. - /// - [JsonProperty(PropertyName = "properties.timeout")] - public int? Timeout { get; set; } - - /// - /// Gets or sets the properties that describes the source(code) for the - /// build task. - /// - [JsonProperty(PropertyName = "properties.sourceRepository")] - public SourceRepositoryUpdateParameters SourceRepository { get; set; } - - /// - /// Gets or sets the ARM resource tags. - /// - [JsonProperty(PropertyName = "tags")] - public IDictionary Tags { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Platform != null) - { - Platform.Validate(); - } - if (Timeout > 28800) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "Timeout", 28800); - } - if (Timeout < 300) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "Timeout", 300); - } - if (SourceRepository != null) - { - SourceRepository.Validate(); - } - } - } -} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/QuickBuildRequest.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildRequest.cs similarity index 69% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/QuickBuildRequest.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildRequest.cs index cdbdf1016a14..99cb492fbd83 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/QuickBuildRequest.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildRequest.cs @@ -17,51 +17,55 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models using System.Linq; /// - /// The queue build request parameters for a quick build. + /// The parameters for a docker quick build. /// - [Newtonsoft.Json.JsonObject("QuickBuild")] - public partial class QuickBuildRequest : QueueBuildRequest + public partial class DockerBuildRequest : RunRequest { /// - /// Initializes a new instance of the QuickBuildRequest class. + /// Initializes a new instance of the DockerBuildRequest class. /// - public QuickBuildRequest() + public DockerBuildRequest() { CustomInit(); } /// - /// Initializes a new instance of the QuickBuildRequest class. + /// Initializes a new instance of the DockerBuildRequest class. /// - /// The URL(absolute or relative) of the - /// source that needs to be built. For Docker build, it can be an URL - /// to a tar or github repoistory as supported by Docker. - /// If it is relative URL, the relative path should be obtained from - /// calling getSourceUploadUrl API. - /// The platform properties against which the - /// build will happen. /// The Docker file path relative to the /// source location. + /// The platform properties against which the + /// run has to happen. + /// The value that indicates whether + /// archiving is enabled for the run or not. /// The fully qualified image names including /// the repository and tag. - /// The collection of build arguments to - /// be used. /// The value of this property indicates /// whether the image built should be pushed to the registry or /// not. /// The value of this property indicates whether /// the image cache is enabled or not. - /// Build timeout in seconds. - public QuickBuildRequest(string sourceLocation, PlatformProperties platform, string dockerFilePath, IList imageNames = default(IList), IList buildArguments = default(IList), bool? isPushEnabled = default(bool?), bool? noCache = default(bool?), int? timeout = default(int?)) + /// The collection of override arguments to be + /// used when executing the run. + /// Run timeout in seconds. + /// The machine configuration of the + /// run agent. + /// The URL(absolute or relative) of the + /// source context. It can be an URL to a tar or git repoistory. + /// If it is relative URL, the relative path should be obtained from + /// calling listBuildSourceUploadUrl API. + public DockerBuildRequest(string dockerFilePath, PlatformProperties platform, bool? isArchiveEnabled = default(bool?), IList imageNames = default(IList), bool? isPushEnabled = default(bool?), bool? noCache = default(bool?), IList arguments = default(IList), int? timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string)) + : base(isArchiveEnabled) { ImageNames = imageNames; - SourceLocation = sourceLocation; - BuildArguments = buildArguments; IsPushEnabled = isPushEnabled; NoCache = noCache; + DockerFilePath = dockerFilePath; + Arguments = arguments; Timeout = timeout; Platform = platform; - DockerFilePath = dockerFilePath; + AgentConfiguration = agentConfiguration; + SourceLocation = sourceLocation; CustomInit(); } @@ -77,22 +81,6 @@ public QuickBuildRequest() [JsonProperty(PropertyName = "imageNames")] public IList ImageNames { get; set; } - /// - /// Gets or sets the URL(absolute or relative) of the source that needs - /// to be built. For Docker build, it can be an URL to a tar or github - /// repoistory as supported by Docker. - /// If it is relative URL, the relative path should be obtained from - /// calling getSourceUploadUrl API. - /// - [JsonProperty(PropertyName = "sourceLocation")] - public string SourceLocation { get; set; } - - /// - /// Gets or sets the collection of build arguments to be used. - /// - [JsonProperty(PropertyName = "buildArguments")] - public IList BuildArguments { get; set; } - /// /// Gets or sets the value of this property indicates whether the image /// built should be pushed to the registry or not. @@ -108,23 +96,45 @@ public QuickBuildRequest() public bool? NoCache { get; set; } /// - /// Gets or sets build timeout in seconds. + /// Gets or sets the Docker file path relative to the source location. + /// + [JsonProperty(PropertyName = "dockerFilePath")] + public string DockerFilePath { get; set; } + + /// + /// Gets or sets the collection of override arguments to be used when + /// executing the run. + /// + [JsonProperty(PropertyName = "arguments")] + public IList Arguments { get; set; } + + /// + /// Gets or sets run timeout in seconds. /// [JsonProperty(PropertyName = "timeout")] public int? Timeout { get; set; } /// - /// Gets or sets the platform properties against which the build will + /// Gets or sets the platform properties against which the run has to /// happen. /// [JsonProperty(PropertyName = "platform")] public PlatformProperties Platform { get; set; } /// - /// Gets or sets the Docker file path relative to the source location. + /// Gets or sets the machine configuration of the run agent. /// - [JsonProperty(PropertyName = "dockerFilePath")] - public string DockerFilePath { get; set; } + [JsonProperty(PropertyName = "agentConfiguration")] + public AgentProperties AgentConfiguration { get; set; } + + /// + /// Gets or sets the URL(absolute or relative) of the source context. + /// It can be an URL to a tar or git repoistory. + /// If it is relative URL, the relative path should be obtained from + /// calling listBuildSourceUploadUrl API. + /// + [JsonProperty(PropertyName = "sourceLocation")] + public string SourceLocation { get; set; } /// /// Validate the object. @@ -134,21 +144,17 @@ public QuickBuildRequest() /// public virtual void Validate() { - if (SourceLocation == null) + if (DockerFilePath == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "SourceLocation"); + throw new ValidationException(ValidationRules.CannotBeNull, "DockerFilePath"); } if (Platform == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Platform"); } - if (DockerFilePath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DockerFilePath"); - } - if (BuildArguments != null) + if (Arguments != null) { - foreach (var element in BuildArguments) + foreach (var element in Arguments) { if (element != null) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildStep.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildStep.cs index 283ef74c9315..8b360842f739 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildStep.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildStep.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -19,7 +20,7 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models /// The Docker build step. /// [Newtonsoft.Json.JsonObject("Docker")] - public partial class DockerBuildStep : BuildStepProperties + public partial class DockerBuildStep : TaskStepProperties { /// /// Initializes a new instance of the DockerBuildStep class. @@ -32,10 +33,12 @@ public DockerBuildStep() /// /// Initializes a new instance of the DockerBuildStep class. /// - /// The provisioning state of the build - /// step. Possible values include: 'Creating', 'Updating', 'Deleting', - /// 'Succeeded', 'Failed', 'Canceled' - /// The repository branch name. + /// The Docker file path relative to the + /// source context. + /// List of base image dependencies + /// for a step. + /// The URL(absolute or relative) of the + /// source context for the task step. /// The fully qualified image names including /// the repository and tag. /// The value of this property indicates @@ -43,29 +46,16 @@ public DockerBuildStep() /// not. /// The value of this property indicates whether /// the image cache is enabled or not. - /// The Docker file path relative to the - /// source control root. - /// The relative context path for a docker - /// build in the source. - /// The custom arguments for building this - /// build step. - /// List of base image dependencies - /// for a step. - /// The type of the auto trigger for - /// base image dependency updates. Possible values include: 'All', - /// 'Runtime', 'None' - public DockerBuildStep(string provisioningState = default(string), string branch = default(string), IList imageNames = default(IList), bool? isPushEnabled = default(bool?), bool? noCache = default(bool?), string dockerFilePath = default(string), string contextPath = default(string), IList buildArguments = default(IList), IList baseImageDependencies = default(IList), string baseImageTrigger = default(string)) - : base(provisioningState) + /// The collection of override arguments to be + /// used when executing this build step. + public DockerBuildStep(string dockerFilePath, IList baseImageDependencies = default(IList), string contextPath = default(string), IList imageNames = default(IList), bool? isPushEnabled = default(bool?), bool? noCache = default(bool?), IList arguments = default(IList)) + : base(baseImageDependencies, contextPath) { - Branch = branch; ImageNames = imageNames; IsPushEnabled = isPushEnabled; NoCache = noCache; DockerFilePath = dockerFilePath; - ContextPath = contextPath; - BuildArguments = buildArguments; - BaseImageDependencies = baseImageDependencies; - BaseImageTrigger = baseImageTrigger; + Arguments = arguments; CustomInit(); } @@ -74,12 +64,6 @@ public DockerBuildStep() /// partial void CustomInit(); - /// - /// Gets or sets the repository branch name. - /// - [JsonProperty(PropertyName = "branch")] - public string Branch { get; set; } - /// /// Gets or sets the fully qualified image names including the /// repository and tag. @@ -102,37 +86,40 @@ public DockerBuildStep() public bool? NoCache { get; set; } /// - /// Gets or sets the Docker file path relative to the source control - /// root. + /// Gets or sets the Docker file path relative to the source context. /// [JsonProperty(PropertyName = "dockerFilePath")] public string DockerFilePath { get; set; } /// - /// Gets or sets the relative context path for a docker build in the - /// source. + /// Gets or sets the collection of override arguments to be used when + /// executing this build step. /// - [JsonProperty(PropertyName = "contextPath")] - public string ContextPath { get; set; } + [JsonProperty(PropertyName = "arguments")] + public IList Arguments { get; set; } /// - /// Gets or sets the custom arguments for building this build step. + /// Validate the object. /// - [JsonProperty(PropertyName = "buildArguments")] - public IList BuildArguments { get; set; } - - /// - /// Gets list of base image dependencies for a step. - /// - [JsonProperty(PropertyName = "baseImageDependencies")] - public IList BaseImageDependencies { get; private set; } - - /// - /// Gets or sets the type of the auto trigger for base image dependency - /// updates. Possible values include: 'All', 'Runtime', 'None' - /// - [JsonProperty(PropertyName = "baseImageTrigger")] - public string BaseImageTrigger { get; set; } - + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DockerFilePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DockerFilePath"); + } + if (Arguments != null) + { + foreach (var element in Arguments) + { + if (element != null) + { + element.Validate(); + } + } + } + } } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildStepUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildStepUpdateParameters.cs index 0ef37df2ef9d..6d5e89b14cd2 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildStepUpdateParameters.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/DockerBuildStepUpdateParameters.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models /// The properties for updating a docker build step. /// [Newtonsoft.Json.JsonObject("Docker")] - public partial class DockerBuildStepUpdateParameters : BuildStepPropertiesUpdateParameters + public partial class DockerBuildStepUpdateParameters : TaskStepUpdateParameters { /// /// Initializes a new instance of the DockerBuildStepUpdateParameters @@ -34,7 +34,8 @@ public DockerBuildStepUpdateParameters() /// Initializes a new instance of the DockerBuildStepUpdateParameters /// class. /// - /// The repository branch name. + /// The URL(absolute or relative) of the + /// source context for the task step. /// The fully qualified image names including /// the repository and tag. /// The value of this property indicates @@ -43,24 +44,17 @@ public DockerBuildStepUpdateParameters() /// The value of this property indicates whether /// the image cache is enabled or not. /// The Docker file path relative to the - /// source control root. - /// The relative context path for a docker - /// build in the source. - /// The custom arguments for building this - /// build step. - /// The type of the auto trigger for - /// base image dependency updates. Possible values include: 'All', - /// 'Runtime', 'None' - public DockerBuildStepUpdateParameters(string branch = default(string), IList imageNames = default(IList), bool? isPushEnabled = default(bool?), bool? noCache = default(bool?), string dockerFilePath = default(string), string contextPath = default(string), IList buildArguments = default(IList), string baseImageTrigger = default(string)) + /// source context. + /// The collection of override arguments to be + /// used when executing this build step. + public DockerBuildStepUpdateParameters(string contextPath = default(string), IList imageNames = default(IList), bool? isPushEnabled = default(bool?), bool? noCache = default(bool?), string dockerFilePath = default(string), IList arguments = default(IList)) + : base(contextPath) { - Branch = branch; ImageNames = imageNames; IsPushEnabled = isPushEnabled; NoCache = noCache; DockerFilePath = dockerFilePath; - ContextPath = contextPath; - BuildArguments = buildArguments; - BaseImageTrigger = baseImageTrigger; + Arguments = arguments; CustomInit(); } @@ -69,12 +63,6 @@ public DockerBuildStepUpdateParameters() /// partial void CustomInit(); - /// - /// Gets or sets the repository branch name. - /// - [JsonProperty(PropertyName = "branch")] - public string Branch { get; set; } - /// /// Gets or sets the fully qualified image names including the /// repository and tag. @@ -97,31 +85,17 @@ public DockerBuildStepUpdateParameters() public bool? NoCache { get; set; } /// - /// Gets or sets the Docker file path relative to the source control - /// root. + /// Gets or sets the Docker file path relative to the source context. /// [JsonProperty(PropertyName = "dockerFilePath")] public string DockerFilePath { get; set; } /// - /// Gets or sets the relative context path for a docker build in the - /// source. - /// - [JsonProperty(PropertyName = "contextPath")] - public string ContextPath { get; set; } - - /// - /// Gets or sets the custom arguments for building this build step. - /// - [JsonProperty(PropertyName = "buildArguments")] - public IList BuildArguments { get; set; } - - /// - /// Gets or sets the type of the auto trigger for base image dependency - /// updates. Possible values include: 'All', 'Runtime', 'None' + /// Gets or sets the collection of override arguments to be used when + /// executing this build step. /// - [JsonProperty(PropertyName = "baseImageTrigger")] - public string BaseImageTrigger { get; set; } + [JsonProperty(PropertyName = "arguments")] + public IList Arguments { get; set; } } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EncodedTaskRunRequest.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EncodedTaskRunRequest.cs new file mode 100644 index 000000000000..a3a607eaef96 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EncodedTaskRunRequest.cs @@ -0,0 +1,159 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters for a quick task run request. + /// + public partial class EncodedTaskRunRequest : RunRequest + { + /// + /// Initializes a new instance of the EncodedTaskRunRequest class. + /// + public EncodedTaskRunRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EncodedTaskRunRequest class. + /// + /// Base64 encoded value of the + /// template/definition file content. + /// The platform properties against which the + /// run has to happen. + /// The value that indicates whether + /// archiving is enabled for the run or not. + /// Base64 encoded value of the + /// parameters/values file content. + /// The collection of overridable values that can + /// be passed when running a task. + /// Run timeout in seconds. + /// The machine configuration of the + /// run agent. + /// The URL(absolute or relative) of the + /// source context. It can be an URL to a tar or git repoistory. + /// If it is relative URL, the relative path should be obtained from + /// calling listBuildSourceUploadUrl API. + public EncodedTaskRunRequest(string encodedTaskContent, PlatformProperties platform, bool? isArchiveEnabled = default(bool?), string encodedValuesContent = default(string), IList values = default(IList), int? timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string)) + : base(isArchiveEnabled) + { + EncodedTaskContent = encodedTaskContent; + EncodedValuesContent = encodedValuesContent; + Values = values; + Timeout = timeout; + Platform = platform; + AgentConfiguration = agentConfiguration; + SourceLocation = sourceLocation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets base64 encoded value of the template/definition file + /// content. + /// + [JsonProperty(PropertyName = "encodedTaskContent")] + public string EncodedTaskContent { get; set; } + + /// + /// Gets or sets base64 encoded value of the parameters/values file + /// content. + /// + [JsonProperty(PropertyName = "encodedValuesContent")] + public string EncodedValuesContent { get; set; } + + /// + /// Gets or sets the collection of overridable values that can be + /// passed when running a task. + /// + [JsonProperty(PropertyName = "values")] + public IList Values { get; set; } + + /// + /// Gets or sets run timeout in seconds. + /// + [JsonProperty(PropertyName = "timeout")] + public int? Timeout { get; set; } + + /// + /// Gets or sets the platform properties against which the run has to + /// happen. + /// + [JsonProperty(PropertyName = "platform")] + public PlatformProperties Platform { get; set; } + + /// + /// Gets or sets the machine configuration of the run agent. + /// + [JsonProperty(PropertyName = "agentConfiguration")] + public AgentProperties AgentConfiguration { get; set; } + + /// + /// Gets or sets the URL(absolute or relative) of the source context. + /// It can be an URL to a tar or git repoistory. + /// If it is relative URL, the relative path should be obtained from + /// calling listBuildSourceUploadUrl API. + /// + [JsonProperty(PropertyName = "sourceLocation")] + public string SourceLocation { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (EncodedTaskContent == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EncodedTaskContent"); + } + if (Platform == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Platform"); + } + if (Values != null) + { + foreach (var element in Values) + { + if (element != null) + { + element.Validate(); + } + } + } + if (Timeout > 28800) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "Timeout", 28800); + } + if (Timeout < 300) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Timeout", 300); + } + if (Platform != null) + { + Platform.Validate(); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EncodedTaskStep.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EncodedTaskStep.cs new file mode 100644 index 000000000000..93b818e38fdf --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EncodedTaskStep.cs @@ -0,0 +1,105 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties of a encoded task step. + /// + [Newtonsoft.Json.JsonObject("EncodedTask")] + public partial class EncodedTaskStep : TaskStepProperties + { + /// + /// Initializes a new instance of the EncodedTaskStep class. + /// + public EncodedTaskStep() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EncodedTaskStep class. + /// + /// Base64 encoded value of the + /// template/definition file content. + /// List of base image dependencies + /// for a step. + /// The URL(absolute or relative) of the + /// source context for the task step. + /// Base64 encoded value of the + /// parameters/values file content. + /// The collection of overridable values that can + /// be passed when running a task. + public EncodedTaskStep(string encodedTaskContent, IList baseImageDependencies = default(IList), string contextPath = default(string), string encodedValuesContent = default(string), IList values = default(IList)) + : base(baseImageDependencies, contextPath) + { + EncodedTaskContent = encodedTaskContent; + EncodedValuesContent = encodedValuesContent; + Values = values; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets base64 encoded value of the template/definition file + /// content. + /// + [JsonProperty(PropertyName = "encodedTaskContent")] + public string EncodedTaskContent { get; set; } + + /// + /// Gets or sets base64 encoded value of the parameters/values file + /// content. + /// + [JsonProperty(PropertyName = "encodedValuesContent")] + public string EncodedValuesContent { get; set; } + + /// + /// Gets or sets the collection of overridable values that can be + /// passed when running a task. + /// + [JsonProperty(PropertyName = "values")] + public IList Values { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (EncodedTaskContent == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EncodedTaskContent"); + } + if (Values != null) + { + foreach (var element in Values) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EncodedTaskStepUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EncodedTaskStepUpdateParameters.cs new file mode 100644 index 000000000000..49696c84bfb6 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EncodedTaskStepUpdateParameters.cs @@ -0,0 +1,81 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties for updating encoded task step. + /// + [Newtonsoft.Json.JsonObject("EncodedTask")] + public partial class EncodedTaskStepUpdateParameters : TaskStepUpdateParameters + { + /// + /// Initializes a new instance of the EncodedTaskStepUpdateParameters + /// class. + /// + public EncodedTaskStepUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EncodedTaskStepUpdateParameters + /// class. + /// + /// The URL(absolute or relative) of the + /// source context for the task step. + /// Base64 encoded value of the + /// template/definition file content. + /// Base64 encoded value of the + /// parameters/values file content. + /// The collection of overridable values that can + /// be passed when running a task. + public EncodedTaskStepUpdateParameters(string contextPath = default(string), string encodedTaskContent = default(string), string encodedValuesContent = default(string), IList values = default(IList)) + : base(contextPath) + { + EncodedTaskContent = encodedTaskContent; + EncodedValuesContent = encodedValuesContent; + Values = values; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets base64 encoded value of the template/definition file + /// content. + /// + [JsonProperty(PropertyName = "encodedTaskContent")] + public string EncodedTaskContent { get; set; } + + /// + /// Gets or sets base64 encoded value of the parameters/values file + /// content. + /// + [JsonProperty(PropertyName = "encodedValuesContent")] + public string EncodedValuesContent { get; set; } + + /// + /// Gets or sets the collection of overridable values that can be + /// passed when running a task. + /// + [JsonProperty(PropertyName = "values")] + public IList Values { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/FileTaskRunRequest.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/FileTaskRunRequest.cs new file mode 100644 index 000000000000..6897fca16545 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/FileTaskRunRequest.cs @@ -0,0 +1,159 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The request parameters for a scheduling run against a task file. + /// + public partial class FileTaskRunRequest : RunRequest + { + /// + /// Initializes a new instance of the FileTaskRunRequest class. + /// + public FileTaskRunRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FileTaskRunRequest class. + /// + /// The template/definition file path + /// relative to the source. + /// The platform properties against which the + /// run has to happen. + /// The value that indicates whether + /// archiving is enabled for the run or not. + /// The values/parameters file path + /// relative to the source. + /// The collection of overridable values that can + /// be passed when running a task. + /// Run timeout in seconds. + /// The machine configuration of the + /// run agent. + /// The URL(absolute or relative) of the + /// source context. It can be an URL to a tar or git repoistory. + /// If it is relative URL, the relative path should be obtained from + /// calling listBuildSourceUploadUrl API. + public FileTaskRunRequest(string taskFilePath, PlatformProperties platform, bool? isArchiveEnabled = default(bool?), string valuesFilePath = default(string), IList values = default(IList), int? timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string)) + : base(isArchiveEnabled) + { + TaskFilePath = taskFilePath; + ValuesFilePath = valuesFilePath; + Values = values; + Timeout = timeout; + Platform = platform; + AgentConfiguration = agentConfiguration; + SourceLocation = sourceLocation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the template/definition file path relative to the + /// source. + /// + [JsonProperty(PropertyName = "taskFilePath")] + public string TaskFilePath { get; set; } + + /// + /// Gets or sets the values/parameters file path relative to the + /// source. + /// + [JsonProperty(PropertyName = "valuesFilePath")] + public string ValuesFilePath { get; set; } + + /// + /// Gets or sets the collection of overridable values that can be + /// passed when running a task. + /// + [JsonProperty(PropertyName = "values")] + public IList Values { get; set; } + + /// + /// Gets or sets run timeout in seconds. + /// + [JsonProperty(PropertyName = "timeout")] + public int? Timeout { get; set; } + + /// + /// Gets or sets the platform properties against which the run has to + /// happen. + /// + [JsonProperty(PropertyName = "platform")] + public PlatformProperties Platform { get; set; } + + /// + /// Gets or sets the machine configuration of the run agent. + /// + [JsonProperty(PropertyName = "agentConfiguration")] + public AgentProperties AgentConfiguration { get; set; } + + /// + /// Gets or sets the URL(absolute or relative) of the source context. + /// It can be an URL to a tar or git repoistory. + /// If it is relative URL, the relative path should be obtained from + /// calling listBuildSourceUploadUrl API. + /// + [JsonProperty(PropertyName = "sourceLocation")] + public string SourceLocation { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TaskFilePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TaskFilePath"); + } + if (Platform == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Platform"); + } + if (Values != null) + { + foreach (var element in Values) + { + if (element != null) + { + element.Validate(); + } + } + } + if (Timeout > 28800) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "Timeout", 28800); + } + if (Timeout < 300) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Timeout", 300); + } + if (Platform != null) + { + Platform.Validate(); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/FileTaskStep.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/FileTaskStep.cs new file mode 100644 index 000000000000..20dfcf611b7c --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/FileTaskStep.cs @@ -0,0 +1,105 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties of a task step. + /// + [Newtonsoft.Json.JsonObject("FileTask")] + public partial class FileTaskStep : TaskStepProperties + { + /// + /// Initializes a new instance of the FileTaskStep class. + /// + public FileTaskStep() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FileTaskStep class. + /// + /// The task template/definition file path + /// relative to the source context. + /// List of base image dependencies + /// for a step. + /// The URL(absolute or relative) of the + /// source context for the task step. + /// The task values/parameters file path + /// relative to the source context. + /// The collection of overridable values that can + /// be passed when running a task. + public FileTaskStep(string taskFilePath, IList baseImageDependencies = default(IList), string contextPath = default(string), string valuesFilePath = default(string), IList values = default(IList)) + : base(baseImageDependencies, contextPath) + { + TaskFilePath = taskFilePath; + ValuesFilePath = valuesFilePath; + Values = values; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the task template/definition file path relative to the + /// source context. + /// + [JsonProperty(PropertyName = "taskFilePath")] + public string TaskFilePath { get; set; } + + /// + /// Gets or sets the task values/parameters file path relative to the + /// source context. + /// + [JsonProperty(PropertyName = "valuesFilePath")] + public string ValuesFilePath { get; set; } + + /// + /// Gets or sets the collection of overridable values that can be + /// passed when running a task. + /// + [JsonProperty(PropertyName = "values")] + public IList Values { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TaskFilePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TaskFilePath"); + } + if (Values != null) + { + foreach (var element in Values) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/FileTaskStepUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/FileTaskStepUpdateParameters.cs new file mode 100644 index 000000000000..87240a977f01 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/FileTaskStepUpdateParameters.cs @@ -0,0 +1,81 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties of updating a task step. + /// + [Newtonsoft.Json.JsonObject("FileTask")] + public partial class FileTaskStepUpdateParameters : TaskStepUpdateParameters + { + /// + /// Initializes a new instance of the FileTaskStepUpdateParameters + /// class. + /// + public FileTaskStepUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FileTaskStepUpdateParameters + /// class. + /// + /// The URL(absolute or relative) of the + /// source context for the task step. + /// The task template/definition file path + /// relative to the source context. + /// The values/parameters file path + /// relative to the source context. + /// The collection of overridable values that can + /// be passed when running a task. + public FileTaskStepUpdateParameters(string contextPath = default(string), string taskFilePath = default(string), string valuesFilePath = default(string), IList values = default(IList)) + : base(contextPath) + { + TaskFilePath = taskFilePath; + ValuesFilePath = valuesFilePath; + Values = values; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the task template/definition file path relative to the + /// source context. + /// + [JsonProperty(PropertyName = "taskFilePath")] + public string TaskFilePath { get; set; } + + /// + /// Gets or sets the values/parameters file path relative to the source + /// context. + /// + [JsonProperty(PropertyName = "valuesFilePath")] + public string ValuesFilePath { get; set; } + + /// + /// Gets or sets the collection of overridable values that can be + /// passed when running a task. + /// + [JsonProperty(PropertyName = "values")] + public IList Values { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ImportSource.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ImportSource.cs index f1be7121a624..f31b890d6570 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ImportSource.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ImportSource.cs @@ -27,17 +27,20 @@ public ImportSource() /// /// Initializes a new instance of the ImportSource class. /// - /// The resource identifier of the target - /// Azure Container Registry. /// Repository name of the source image. /// Specify an image by repository ('hello-world'). This will use the /// 'latest' tag. /// Specify an image by tag ('hello-world:latest'). /// Specify an image by sha256-based manifest digest /// ('hello-world@sha256:abc123'). - public ImportSource(string resourceId, string sourceImage) + /// The resource identifier of the source + /// Azure Container Registry. + /// The address of the source + /// registry. + public ImportSource(string sourceImage, string resourceId = default(string), string registryUri = default(string)) { ResourceId = resourceId; + RegistryUri = registryUri; SourceImage = sourceImage; CustomInit(); } @@ -48,12 +51,18 @@ public ImportSource(string resourceId, string sourceImage) partial void CustomInit(); /// - /// Gets or sets the resource identifier of the target Azure Container + /// Gets or sets the resource identifier of the source Azure Container /// Registry. /// [JsonProperty(PropertyName = "resourceId")] public string ResourceId { get; set; } + /// + /// Gets or sets the address of the source registry. + /// + [JsonProperty(PropertyName = "registryUri")] + public string RegistryUri { get; set; } + /// /// Gets or sets repository name of the source image. /// Specify an image by repository ('hello-world'). This will use the @@ -73,10 +82,6 @@ public ImportSource(string resourceId, string sourceImage) /// public virtual void Validate() { - if (ResourceId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ResourceId"); - } if (SourceImage == null) { throw new ValidationException(ValidationRules.CannotBeNull, "SourceImage"); diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OsType.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OS.cs similarity index 89% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OsType.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OS.cs index 8d22ebe203cf..6c5ae120bb07 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OsType.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OS.cs @@ -12,9 +12,9 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models { /// - /// Defines values for OsType. + /// Defines values for OS. /// - public static class OsType + public static class OS { public const string Windows = "Windows"; public const string Linux = "Linux"; diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PlatformProperties.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PlatformProperties.cs index 46b0cee46220..12f5821ec7f9 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PlatformProperties.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PlatformProperties.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models using System.Linq; /// - /// The platform properties against which the build has to happen. + /// The platform properties against which the run has to happen. /// public partial class PlatformProperties { @@ -30,14 +30,17 @@ public PlatformProperties() /// /// Initializes a new instance of the PlatformProperties class. /// - /// The operating system type required for the - /// build. Possible values include: 'Windows', 'Linux' - /// The CPU configuration in terms of number of cores - /// required for the build. - public PlatformProperties(string osType, int? cpu = default(int?)) + /// The operating system type required for the run. + /// Possible values include: 'Windows', 'Linux' + /// The OS architecture. Possible values + /// include: 'amd64', 'x86', 'arm' + /// Variant of the CPU. Possible values include: + /// 'v6', 'v7', 'v8' + public PlatformProperties(string os, string architecture = default(string), string variant = default(string)) { - OsType = osType; - Cpu = cpu; + Os = os; + Architecture = architecture; + Variant = variant; CustomInit(); } @@ -47,18 +50,25 @@ public PlatformProperties() partial void CustomInit(); /// - /// Gets or sets the operating system type required for the build. + /// Gets or sets the operating system type required for the run. /// Possible values include: 'Windows', 'Linux' /// - [JsonProperty(PropertyName = "osType")] - public string OsType { get; set; } + [JsonProperty(PropertyName = "os")] + public string Os { get; set; } /// - /// Gets or sets the CPU configuration in terms of number of cores - /// required for the build. + /// Gets or sets the OS architecture. Possible values include: 'amd64', + /// 'x86', 'arm' /// - [JsonProperty(PropertyName = "cpu")] - public int? Cpu { get; set; } + [JsonProperty(PropertyName = "architecture")] + public string Architecture { get; set; } + + /// + /// Gets or sets variant of the CPU. Possible values include: 'v6', + /// 'v7', 'v8' + /// + [JsonProperty(PropertyName = "variant")] + public string Variant { get; set; } /// /// Validate the object. @@ -68,9 +78,9 @@ public PlatformProperties() /// public virtual void Validate() { - if (OsType == null) + if (Os == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "OsType"); + throw new ValidationException(ValidationRules.CannotBeNull, "Os"); } } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PlatformUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PlatformUpdateParameters.cs new file mode 100644 index 000000000000..37ea9e4f338d --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PlatformUpdateParameters.cs @@ -0,0 +1,73 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The properties for updating the platform configuration. + /// + public partial class PlatformUpdateParameters + { + /// + /// Initializes a new instance of the PlatformUpdateParameters class. + /// + public PlatformUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PlatformUpdateParameters class. + /// + /// The operating system type required for the run. + /// Possible values include: 'Windows', 'Linux' + /// The OS architecture. Possible values + /// include: 'amd64', 'x86', 'arm' + /// Variant of the CPU. Possible values include: + /// 'v6', 'v7', 'v8' + public PlatformUpdateParameters(string os = default(string), string architecture = default(string), string variant = default(string)) + { + Os = os; + Architecture = architecture; + Variant = variant; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the operating system type required for the run. + /// Possible values include: 'Windows', 'Linux' + /// + [JsonProperty(PropertyName = "os")] + public string Os { get; set; } + + /// + /// Gets or sets the OS architecture. Possible values include: 'amd64', + /// 'x86', 'arm' + /// + [JsonProperty(PropertyName = "architecture")] + public string Architecture { get; set; } + + /// + /// Gets or sets variant of the CPU. Possible values include: 'v6', + /// 'v7', 'v8' + /// + [JsonProperty(PropertyName = "variant")] + public string Variant { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/QueueBuildRequest.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/QueueBuildRequest.cs deleted file mode 100644 index 2ffccad5ec8a..000000000000 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/QueueBuildRequest.cs +++ /dev/null @@ -1,35 +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.Models -{ - using System.Linq; - - /// - /// The queue build request parameters. - /// - public partial class QueueBuildRequest - { - /// - /// Initializes a new instance of the QueueBuildRequest class. - /// - public QueueBuildRequest() - { - CustomInit(); - } - - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - } -} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Build.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Run.cs similarity index 56% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Build.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Run.cs index 9cfd2f1ad4c5..753e376618c5 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Build.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Run.cs @@ -18,67 +18,72 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models using System.Linq; /// - /// Build resource properties + /// Run resource properties /// [Rest.Serialization.JsonTransformation] - public partial class Build : ProxyResource + public partial class Run : ProxyResource { /// - /// Initializes a new instance of the Build class. + /// Initializes a new instance of the Run class. /// - public Build() + public Run() { CustomInit(); } /// - /// Initializes a new instance of the Build class. + /// Initializes a new instance of the Run class. /// /// The resource ID. /// The name of the resource. /// The type of the resource. - /// The unique identifier for the build. - /// The current status of the build. Possible - /// values include: 'Queued', 'Started', 'Running', 'Succeeded', - /// 'Failed', 'Canceled', 'Error', 'Timeout' + /// The unique identifier for the run. + /// The current status of the run. Possible values + /// include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', + /// 'Canceled', 'Error', 'Timeout' /// The last updated time for the - /// build. - /// The type of build. Possible values include: - /// 'AutoBuild', 'QuickBuild' - /// The time the build was created. - /// The time the build started. - /// The time the build finished. + /// run. + /// The type of run. Possible values include: + /// 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' + /// The time the run was scheduled. + /// The time the run started. + /// The time the run finished. /// The list of all images that were - /// generated from the build. - /// The build task with which the build was - /// started. + /// generated from the run. This is applicable if the run generates + /// base image dependencies. + /// The task against which run was + /// scheduled. /// The image update trigger that - /// caused the build. - /// The git commit trigger that caused - /// the build. + /// caused the run. This is applicable if the task has base image + /// trigger configured. + /// The source trigger that caused the + /// run. /// The value that indicates whether /// archiving is enabled or not. /// The platform properties against which the - /// build will happen. - /// The provisioning state of a build. + /// run will happen. + /// The machine configuration of the + /// run agent. + /// The provisioning state of a run. /// Possible values include: 'Creating', 'Updating', 'Deleting', /// 'Succeeded', 'Failed', 'Canceled' - public Build(string id = default(string), string name = default(string), string type = default(string), string buildId = default(string), string status = default(string), System.DateTime? lastUpdatedTime = default(System.DateTime?), string buildType = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? finishTime = default(System.DateTime?), IList outputImages = default(IList), string buildTask = default(string), ImageUpdateTrigger imageUpdateTrigger = default(ImageUpdateTrigger), GitCommitTrigger gitCommitTrigger = default(GitCommitTrigger), bool? isArchiveEnabled = default(bool?), PlatformProperties platform = default(PlatformProperties), string provisioningState = default(string)) + public Run(string id = default(string), string name = default(string), string type = default(string), string runId = default(string), string status = default(string), System.DateTime? lastUpdatedTime = default(System.DateTime?), string runType = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? finishTime = default(System.DateTime?), IList outputImages = default(IList), string task = default(string), ImageUpdateTrigger imageUpdateTrigger = default(ImageUpdateTrigger), SourceTriggerDescriptor sourceTrigger = default(SourceTriggerDescriptor), bool? isArchiveEnabled = default(bool?), PlatformProperties platform = default(PlatformProperties), AgentProperties agentConfiguration = default(AgentProperties), string provisioningState = default(string)) : base(id, name, type) { - BuildId = buildId; + RunId = runId; Status = status; LastUpdatedTime = lastUpdatedTime; - BuildType = buildType; + RunType = runType; CreateTime = createTime; StartTime = startTime; FinishTime = finishTime; OutputImages = outputImages; - BuildTask = buildTask; + Task = task; ImageUpdateTrigger = imageUpdateTrigger; - GitCommitTrigger = gitCommitTrigger; + SourceTrigger = sourceTrigger; IsArchiveEnabled = isArchiveEnabled; Platform = platform; + AgentConfiguration = agentConfiguration; ProvisioningState = provisioningState; CustomInit(); } @@ -89,13 +94,13 @@ public Build() partial void CustomInit(); /// - /// Gets or sets the unique identifier for the build. + /// Gets or sets the unique identifier for the run. /// - [JsonProperty(PropertyName = "properties.buildId")] - public string BuildId { get; set; } + [JsonProperty(PropertyName = "properties.runId")] + public string RunId { get; set; } /// - /// Gets or sets the current status of the build. Possible values + /// Gets or sets the current status of the run. Possible values /// include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', /// 'Canceled', 'Error', 'Timeout' /// @@ -103,60 +108,62 @@ public Build() public string Status { get; set; } /// - /// Gets or sets the last updated time for the build. + /// Gets or sets the last updated time for the run. /// [JsonProperty(PropertyName = "properties.lastUpdatedTime")] public System.DateTime? LastUpdatedTime { get; set; } /// - /// Gets or sets the type of build. Possible values include: - /// 'AutoBuild', 'QuickBuild' + /// Gets or sets the type of run. Possible values include: + /// 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' /// - [JsonProperty(PropertyName = "properties.buildType")] - public string BuildType { get; set; } + [JsonProperty(PropertyName = "properties.runType")] + public string RunType { get; set; } /// - /// Gets or sets the time the build was created. + /// Gets or sets the time the run was scheduled. /// [JsonProperty(PropertyName = "properties.createTime")] public System.DateTime? CreateTime { get; set; } /// - /// Gets or sets the time the build started. + /// Gets or sets the time the run started. /// [JsonProperty(PropertyName = "properties.startTime")] public System.DateTime? StartTime { get; set; } /// - /// Gets or sets the time the build finished. + /// Gets or sets the time the run finished. /// [JsonProperty(PropertyName = "properties.finishTime")] public System.DateTime? FinishTime { get; set; } /// /// Gets or sets the list of all images that were generated from the - /// build. + /// run. This is applicable if the run generates base image + /// dependencies. /// [JsonProperty(PropertyName = "properties.outputImages")] public IList OutputImages { get; set; } /// - /// Gets or sets the build task with which the build was started. + /// Gets or sets the task against which run was scheduled. /// - [JsonProperty(PropertyName = "properties.buildTask")] - public string BuildTask { get; set; } + [JsonProperty(PropertyName = "properties.task")] + public string Task { get; set; } /// - /// Gets or sets the image update trigger that caused the build. + /// Gets or sets the image update trigger that caused the run. This is + /// applicable if the task has base image trigger configured. /// [JsonProperty(PropertyName = "properties.imageUpdateTrigger")] public ImageUpdateTrigger ImageUpdateTrigger { get; set; } /// - /// Gets or sets the git commit trigger that caused the build. + /// Gets or sets the source trigger that caused the run. /// - [JsonProperty(PropertyName = "properties.gitCommitTrigger")] - public GitCommitTrigger GitCommitTrigger { get; set; } + [JsonProperty(PropertyName = "properties.sourceTrigger")] + public SourceTriggerDescriptor SourceTrigger { get; set; } /// /// Gets or sets the value that indicates whether archiving is enabled @@ -166,14 +173,20 @@ public Build() public bool? IsArchiveEnabled { get; set; } /// - /// Gets or sets the platform properties against which the build will + /// Gets or sets the platform properties against which the run will /// happen. /// [JsonProperty(PropertyName = "properties.platform")] public PlatformProperties Platform { get; set; } /// - /// Gets or sets the provisioning state of a build. Possible values + /// Gets or sets the machine configuration of the run agent. + /// + [JsonProperty(PropertyName = "properties.agentConfiguration")] + public AgentProperties AgentConfiguration { get; set; } + + /// + /// Gets or sets the provisioning state of a run. Possible values /// include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', /// 'Canceled' /// diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildFilter.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunFilter.cs similarity index 51% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildFilter.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunFilter.cs index 5cec904a76ff..19d86ef940a9 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildFilter.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunFilter.cs @@ -14,45 +14,47 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models using System.Linq; /// - /// Properties that are enabled for Odata querying. + /// Properties that are enabled for Odata querying on runs. /// - public partial class BuildFilter + public partial class RunFilter { /// - /// Initializes a new instance of the BuildFilter class. + /// Initializes a new instance of the RunFilter class. /// - public BuildFilter() + public RunFilter() { CustomInit(); } /// - /// Initializes a new instance of the BuildFilter class. + /// Initializes a new instance of the RunFilter class. /// - /// The unique identifier for the build. - /// The type of build. Possible values include: - /// 'AutoBuild', 'QuickBuild' - /// The current status of the build. Possible - /// values include: 'Queued', 'Started', 'Running', 'Succeeded', - /// 'Failed', 'Canceled', 'Error', 'Timeout' - /// The create time for a build. - /// The time the build finished. + /// The unique identifier for the run. + /// The type of run. Possible values include: + /// 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' + /// The current status of the run. Possible values + /// include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', + /// 'Canceled', 'Error', 'Timeout' + /// The create time for a run. + /// The time the run finished. /// The list of comma-separated - /// image manifests that were generated from the build. + /// image manifests that were generated from the run. This is + /// applicable if the run is of + /// build type. /// The value that indicates whether /// archiving is enabled or not. - /// The name of the build task that the - /// build corresponds to. - public BuildFilter(string buildId = default(string), string buildType = default(string), string status = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? finishTime = default(System.DateTime?), string outputImageManifests = default(string), bool? isArchiveEnabled = default(bool?), string buildTaskName = default(string)) + /// The name of the task that the run + /// corresponds to. + public RunFilter(string runId = default(string), string runType = default(string), string status = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? finishTime = default(System.DateTime?), string outputImageManifests = default(string), bool? isArchiveEnabled = default(bool?), string taskName = default(string)) { - BuildId = buildId; - BuildType = buildType; + RunId = runId; + RunType = runType; Status = status; CreateTime = createTime; FinishTime = finishTime; OutputImageManifests = outputImageManifests; IsArchiveEnabled = isArchiveEnabled; - BuildTaskName = buildTaskName; + TaskName = taskName; CustomInit(); } @@ -62,20 +64,20 @@ public BuildFilter() partial void CustomInit(); /// - /// Gets or sets the unique identifier for the build. + /// Gets or sets the unique identifier for the run. /// - [JsonProperty(PropertyName = "buildId")] - public string BuildId { get; set; } + [JsonProperty(PropertyName = "runId")] + public string RunId { get; set; } /// - /// Gets or sets the type of build. Possible values include: - /// 'AutoBuild', 'QuickBuild' + /// Gets or sets the type of run. Possible values include: + /// 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' /// - [JsonProperty(PropertyName = "buildType")] - public string BuildType { get; set; } + [JsonProperty(PropertyName = "runType")] + public string RunType { get; set; } /// - /// Gets or sets the current status of the build. Possible values + /// Gets or sets the current status of the run. Possible values /// include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', /// 'Canceled', 'Error', 'Timeout' /// @@ -83,20 +85,21 @@ public BuildFilter() public string Status { get; set; } /// - /// Gets or sets the create time for a build. + /// Gets or sets the create time for a run. /// [JsonProperty(PropertyName = "createTime")] public System.DateTime? CreateTime { get; set; } /// - /// Gets or sets the time the build finished. + /// Gets or sets the time the run finished. /// [JsonProperty(PropertyName = "finishTime")] public System.DateTime? FinishTime { get; set; } /// /// Gets or sets the list of comma-separated image manifests that were - /// generated from the build. + /// generated from the run. This is applicable if the run is of + /// build type. /// [JsonProperty(PropertyName = "outputImageManifests")] public string OutputImageManifests { get; set; } @@ -109,11 +112,10 @@ public BuildFilter() public bool? IsArchiveEnabled { get; set; } /// - /// Gets or sets the name of the build task that the build corresponds - /// to. + /// Gets or sets the name of the task that the run corresponds to. /// - [JsonProperty(PropertyName = "buildTaskName")] - public string BuildTaskName { get; set; } + [JsonProperty(PropertyName = "taskName")] + public string TaskName { get; set; } } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildGetLogResult.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunGetLogResult.cs similarity index 69% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildGetLogResult.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunGetLogResult.cs index d707dbea9709..718af610a69f 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildGetLogResult.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunGetLogResult.cs @@ -16,22 +16,22 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models /// /// The result of get log link operation. /// - public partial class BuildGetLogResult + public partial class RunGetLogResult { /// - /// Initializes a new instance of the BuildGetLogResult class. + /// Initializes a new instance of the RunGetLogResult class. /// - public BuildGetLogResult() + public RunGetLogResult() { CustomInit(); } /// - /// Initializes a new instance of the BuildGetLogResult class. + /// Initializes a new instance of the RunGetLogResult class. /// - /// The link to logs for a azure container - /// registry build. - public BuildGetLogResult(string logLink = default(string)) + /// The link to logs for a run on a azure + /// container registry. + public RunGetLogResult(string logLink = default(string)) { LogLink = logLink; CustomInit(); @@ -43,7 +43,8 @@ public BuildGetLogResult() partial void CustomInit(); /// - /// Gets or sets the link to logs for a azure container registry build. + /// Gets or sets the link to logs for a run on a azure container + /// registry. /// [JsonProperty(PropertyName = "logLink")] public string LogLink { get; set; } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStepProperties.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunRequest.cs similarity index 50% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStepProperties.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunRequest.cs index 90834d524639..a04a91b58c0b 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStepProperties.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunRequest.cs @@ -14,27 +14,26 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models using System.Linq; /// - /// Base properties for any build step. + /// The request parameters for scheduling a run. /// - public partial class BuildStepProperties + public partial class RunRequest { /// - /// Initializes a new instance of the BuildStepProperties class. + /// Initializes a new instance of the RunRequest class. /// - public BuildStepProperties() + public RunRequest() { CustomInit(); } /// - /// Initializes a new instance of the BuildStepProperties class. + /// Initializes a new instance of the RunRequest class. /// - /// The provisioning state of the build - /// step. Possible values include: 'Creating', 'Updating', 'Deleting', - /// 'Succeeded', 'Failed', 'Canceled' - public BuildStepProperties(string provisioningState = default(string)) + /// The value that indicates whether + /// archiving is enabled for the run or not. + public RunRequest(bool? isArchiveEnabled = default(bool?)) { - ProvisioningState = provisioningState; + IsArchiveEnabled = isArchiveEnabled; CustomInit(); } @@ -44,12 +43,11 @@ public BuildStepProperties() partial void CustomInit(); /// - /// Gets the provisioning state of the build step. Possible values - /// include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', - /// 'Canceled' + /// Gets or sets the value that indicates whether archiving is enabled + /// for the run or not. /// - [JsonProperty(PropertyName = "provisioningState")] - public string ProvisioningState { get; private set; } + [JsonProperty(PropertyName = "isArchiveEnabled")] + public bool? IsArchiveEnabled { get; set; } } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStatus.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunStatus.cs similarity index 91% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStatus.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunStatus.cs index 0ce2c6631af2..fb785a55f392 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildStatus.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunStatus.cs @@ -12,9 +12,9 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models { /// - /// Defines values for BuildStatus. + /// Defines values for RunStatus. /// - public static class BuildStatus + public static class RunStatus { public const string Queued = "Queued"; public const string Started = "Started"; diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildType.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunType.cs similarity index 77% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildType.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunType.cs index 5f22badf2a90..119c45c17dde 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildType.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunType.cs @@ -12,11 +12,13 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models { /// - /// Defines values for BuildType. + /// Defines values for RunType. /// - public static class BuildType + public static class RunType { - public const string AutoBuild = "AutoBuild"; public const string QuickBuild = "QuickBuild"; + public const string QuickRun = "QuickRun"; + public const string AutoBuild = "AutoBuild"; + public const string AutoRun = "AutoRun"; } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunUpdateParameters.cs similarity index 77% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildUpdateParameters.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunUpdateParameters.cs index 2208f700ebf5..5a3e461c4d7e 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildUpdateParameters.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RunUpdateParameters.cs @@ -14,24 +14,24 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models using System.Linq; /// - /// The set of build properties that can be updated. + /// The set of run properties that can be updated. /// - public partial class BuildUpdateParameters + public partial class RunUpdateParameters { /// - /// Initializes a new instance of the BuildUpdateParameters class. + /// Initializes a new instance of the RunUpdateParameters class. /// - public BuildUpdateParameters() + public RunUpdateParameters() { CustomInit(); } /// - /// Initializes a new instance of the BuildUpdateParameters class. + /// Initializes a new instance of the RunUpdateParameters class. /// /// The value that indicates whether /// archiving is enabled or not. - public BuildUpdateParameters(bool? isArchiveEnabled = default(bool?)) + public RunUpdateParameters(bool? isArchiveEnabled = default(bool?)) { IsArchiveEnabled = isArchiveEnabled; CustomInit(); diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SetValue.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SetValue.cs new file mode 100644 index 000000000000..f289d64c84dc --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SetValue.cs @@ -0,0 +1,88 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The properties of a overridable value that can be passed to a task + /// template. + /// + public partial class SetValue + { + /// + /// Initializes a new instance of the SetValue class. + /// + public SetValue() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SetValue class. + /// + /// The name of the overridable value. + /// The overridable value. + /// Flag to indicate whether the value + /// represents a secret or not. + public SetValue(string name, string value, bool? isSecret = default(bool?)) + { + Name = name; + Value = value; + IsSecret = isSecret; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the overridable value. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the overridable value. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// Gets or sets flag to indicate whether the value represents a secret + /// or not. + /// + [JsonProperty(PropertyName = "isSecret")] + public bool? IsSecret { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (Value == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Value"); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceRepositoryProperties.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceProperties.cs similarity index 71% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceRepositoryProperties.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceProperties.cs index e59a2f9e77df..f0df49f74477 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceRepositoryProperties.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceProperties.cs @@ -17,34 +17,33 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models /// /// The properties of the source code repository. /// - public partial class SourceRepositoryProperties + public partial class SourceProperties { /// - /// Initializes a new instance of the SourceRepositoryProperties class. + /// Initializes a new instance of the SourceProperties class. /// - public SourceRepositoryProperties() + public SourceProperties() { CustomInit(); } /// - /// Initializes a new instance of the SourceRepositoryProperties class. + /// Initializes a new instance of the SourceProperties class. /// /// The type of source control service. /// Possible values include: 'Github', /// 'VisualStudioTeamService' /// The full URL to the source code /// respository - /// The value of this property - /// indicates whether the source control commit trigger is enabled or - /// not. + /// The branch name of the source code. /// The authorization - /// properties for accessing the source code repository. - public SourceRepositoryProperties(string sourceControlType, string repositoryUrl, bool? isCommitTriggerEnabled = default(bool?), SourceControlAuthInfo sourceControlAuthProperties = default(SourceControlAuthInfo)) + /// properties for accessing the source code repository and to set up + /// webhooks for notifications. + public SourceProperties(string sourceControlType, string repositoryUrl, string branch = default(string), AuthInfo sourceControlAuthProperties = default(AuthInfo)) { SourceControlType = sourceControlType; RepositoryUrl = repositoryUrl; - IsCommitTriggerEnabled = isCommitTriggerEnabled; + Branch = branch; SourceControlAuthProperties = sourceControlAuthProperties; CustomInit(); } @@ -68,18 +67,18 @@ public SourceRepositoryProperties() public string RepositoryUrl { get; set; } /// - /// Gets or sets the value of this property indicates whether the - /// source control commit trigger is enabled or not. + /// Gets or sets the branch name of the source code. /// - [JsonProperty(PropertyName = "isCommitTriggerEnabled")] - public bool? IsCommitTriggerEnabled { get; set; } + [JsonProperty(PropertyName = "branch")] + public string Branch { get; set; } /// /// Gets or sets the authorization properties for accessing the source - /// code repository. + /// code repository and to set up + /// webhooks for notifications. /// [JsonProperty(PropertyName = "sourceControlAuthProperties")] - public SourceControlAuthInfo SourceControlAuthProperties { get; set; } + public AuthInfo SourceControlAuthProperties { get; set; } /// /// Validate the object. diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceRepositoryUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceRepositoryUpdateParameters.cs deleted file mode 100644 index e9045cc391d8..000000000000 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceRepositoryUpdateParameters.cs +++ /dev/null @@ -1,79 +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.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// The properties for updating the source code repository configuration. - /// - public partial class SourceRepositoryUpdateParameters - { - /// - /// Initializes a new instance of the SourceRepositoryUpdateParameters - /// class. - /// - public SourceRepositoryUpdateParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the SourceRepositoryUpdateParameters - /// class. - /// - /// The authorization - /// properties for accessing the source code repository. - /// The value of this property - /// indicates whether the source control commit trigger is enabled or - /// not. - public SourceRepositoryUpdateParameters(SourceControlAuthInfo sourceControlAuthProperties = default(SourceControlAuthInfo), bool? isCommitTriggerEnabled = default(bool?)) - { - SourceControlAuthProperties = sourceControlAuthProperties; - IsCommitTriggerEnabled = isCommitTriggerEnabled; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the authorization properties for accessing the source - /// code repository. - /// - [JsonProperty(PropertyName = "sourceControlAuthProperties")] - public SourceControlAuthInfo SourceControlAuthProperties { get; set; } - - /// - /// Gets or sets the value of this property indicates whether the - /// source control commit trigger is enabled or not. - /// - [JsonProperty(PropertyName = "isCommitTriggerEnabled")] - public bool? IsCommitTriggerEnabled { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (SourceControlAuthProperties != null) - { - SourceControlAuthProperties.Validate(); - } - } - } -} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTrigger.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTrigger.cs new file mode 100644 index 000000000000..f484086dd36e --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTrigger.cs @@ -0,0 +1,108 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties of a source based trigger. + /// + public partial class SourceTrigger + { + /// + /// Initializes a new instance of the SourceTrigger class. + /// + public SourceTrigger() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SourceTrigger class. + /// + /// The properties that describes the + /// source(code) for the task. + /// The source event corresponding to + /// the trigger. + /// The name of the trigger. + /// The current status of trigger. Possible values + /// include: 'Disabled', 'Enabled' + public SourceTrigger(SourceProperties sourceRepository, IList sourceTriggerEvents, string name, string status = default(string)) + { + SourceRepository = sourceRepository; + SourceTriggerEvents = sourceTriggerEvents; + Status = status; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the properties that describes the source(code) for the + /// task. + /// + [JsonProperty(PropertyName = "sourceRepository")] + public SourceProperties SourceRepository { get; set; } + + /// + /// Gets or sets the source event corresponding to the trigger. + /// + [JsonProperty(PropertyName = "sourceTriggerEvents")] + public IList SourceTriggerEvents { get; set; } + + /// + /// Gets or sets the current status of trigger. Possible values + /// include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the name of the trigger. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (SourceRepository == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SourceRepository"); + } + if (SourceTriggerEvents == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SourceTriggerEvents"); + } + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (SourceRepository != null) + { + SourceRepository.Validate(); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/GitCommitTrigger.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTriggerDescriptor.cs similarity index 66% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/GitCommitTrigger.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTriggerDescriptor.cs index 5fb02bb6a82f..46f74e57bbf4 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/GitCommitTrigger.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTriggerDescriptor.cs @@ -14,32 +14,37 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models using System.Linq; /// - /// The git commit trigger that caused a build. + /// The source trigger that caused a run. /// - public partial class GitCommitTrigger + public partial class SourceTriggerDescriptor { /// - /// Initializes a new instance of the GitCommitTrigger class. + /// Initializes a new instance of the SourceTriggerDescriptor class. /// - public GitCommitTrigger() + public SourceTriggerDescriptor() { CustomInit(); } /// - /// Initializes a new instance of the GitCommitTrigger class. + /// Initializes a new instance of the SourceTriggerDescriptor class. /// /// The unique ID of the trigger. + /// The event type of the trigger. /// The unique ID that identifies a /// commit. + /// The unique ID that identifies pull + /// request. /// The repository URL. /// The branch name in the repository. /// The source control provider /// type. - public GitCommitTrigger(string id = default(string), string commitId = default(string), string repositoryUrl = default(string), string branchName = default(string), string providerType = default(string)) + public SourceTriggerDescriptor(string id = default(string), string eventType = default(string), string commitId = default(string), string pullRequestId = default(string), string repositoryUrl = default(string), string branchName = default(string), string providerType = default(string)) { Id = id; + EventType = eventType; CommitId = commitId; + PullRequestId = pullRequestId; RepositoryUrl = repositoryUrl; BranchName = branchName; ProviderType = providerType; @@ -57,12 +62,24 @@ public GitCommitTrigger() [JsonProperty(PropertyName = "id")] public string Id { get; set; } + /// + /// Gets or sets the event type of the trigger. + /// + [JsonProperty(PropertyName = "eventType")] + public string EventType { get; set; } + /// /// Gets or sets the unique ID that identifies a commit. /// [JsonProperty(PropertyName = "commitId")] public string CommitId { get; set; } + /// + /// Gets or sets the unique ID that identifies pull request. + /// + [JsonProperty(PropertyName = "pullRequestId")] + public string PullRequestId { get; set; } + /// /// Gets or sets the repository URL. /// diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTriggerEvent.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTriggerEvent.cs new file mode 100644 index 000000000000..6aa6c680930c --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTriggerEvent.cs @@ -0,0 +1,22 @@ +// +// 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.Models +{ + + /// + /// Defines values for SourceTriggerEvent. + /// + public static class SourceTriggerEvent + { + public const string Commit = "commit"; + public const string Pullrequest = "pullrequest"; + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTriggerUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTriggerUpdateParameters.cs new file mode 100644 index 000000000000..a393cb88ff6f --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceTriggerUpdateParameters.cs @@ -0,0 +1,98 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties for updating a source based trigger. + /// + public partial class SourceTriggerUpdateParameters + { + /// + /// Initializes a new instance of the SourceTriggerUpdateParameters + /// class. + /// + public SourceTriggerUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SourceTriggerUpdateParameters + /// class. + /// + /// The name of the trigger. + /// The properties that describes the + /// source(code) for the task. + /// The source event corresponding to + /// the trigger. + /// The current status of trigger. Possible values + /// include: 'Disabled', 'Enabled' + public SourceTriggerUpdateParameters(string name, SourceUpdateParameters sourceRepository = default(SourceUpdateParameters), IList sourceTriggerEvents = default(IList), string status = default(string)) + { + SourceRepository = sourceRepository; + SourceTriggerEvents = sourceTriggerEvents; + Status = status; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the properties that describes the source(code) for the + /// task. + /// + [JsonProperty(PropertyName = "sourceRepository")] + public SourceUpdateParameters SourceRepository { get; set; } + + /// + /// Gets or sets the source event corresponding to the trigger. + /// + [JsonProperty(PropertyName = "sourceTriggerEvents")] + public IList SourceTriggerEvents { get; set; } + + /// + /// Gets or sets the current status of trigger. Possible values + /// include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the name of the trigger. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceUpdateParameters.cs new file mode 100644 index 000000000000..a4d807ac6985 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SourceUpdateParameters.cs @@ -0,0 +1,83 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The properties for updating the source code repository. + /// + public partial class SourceUpdateParameters + { + /// + /// Initializes a new instance of the SourceUpdateParameters class. + /// + public SourceUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SourceUpdateParameters class. + /// + /// The type of source control service. + /// Possible values include: 'Github', + /// 'VisualStudioTeamService' + /// The full URL to the source code + /// respository + /// The branch name of the source code. + /// The authorization + /// properties for accessing the source code repository and to set up + /// webhooks for notifications. + public SourceUpdateParameters(string sourceControlType = default(string), string repositoryUrl = default(string), string branch = default(string), AuthInfoUpdateParameters sourceControlAuthProperties = default(AuthInfoUpdateParameters)) + { + SourceControlType = sourceControlType; + RepositoryUrl = repositoryUrl; + Branch = branch; + SourceControlAuthProperties = sourceControlAuthProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of source control service. Possible values + /// include: 'Github', 'VisualStudioTeamService' + /// + [JsonProperty(PropertyName = "sourceControlType")] + public string SourceControlType { get; set; } + + /// + /// Gets or sets the full URL to the source code respository + /// + [JsonProperty(PropertyName = "repositoryUrl")] + public string RepositoryUrl { get; set; } + + /// + /// Gets or sets the branch name of the source code. + /// + [JsonProperty(PropertyName = "branch")] + public string Branch { get; set; } + + /// + /// Gets or sets the authorization properties for accessing the source + /// code repository and to set up + /// webhooks for notifications. + /// + [JsonProperty(PropertyName = "sourceControlAuthProperties")] + public AuthInfoUpdateParameters SourceControlAuthProperties { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTask.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Task.cs similarity index 58% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTask.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Task.cs index 8ab1a08991f2..5eb95f0576b0 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTask.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Task.cs @@ -18,53 +18,54 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models using System.Linq; /// - /// The build task that has the resource properties and all build items. - /// The build task will have all information to schedule a build against - /// it. + /// The task that has the ARM resource and task properties. + /// The task will have all information to schedule a run against it. /// [Rest.Serialization.JsonTransformation] - public partial class BuildTask : Resource + public partial class Task : Resource { /// - /// Initializes a new instance of the BuildTask class. + /// Initializes a new instance of the Task class. /// - public BuildTask() + public Task() { CustomInit(); } /// - /// Initializes a new instance of the BuildTask class. + /// Initializes a new instance of the Task class. /// /// The location of the resource. This cannot be /// changed after the resource is created. - /// The alternative updatable name for a build - /// task. - /// The properties that describes the - /// source(code) for the build task. /// The platform properties against which the - /// build has to happen. + /// run has to happen. + /// The properties of a task step. /// The resource ID. /// The name of the resource. /// The type of the resource. /// The tags of the resource. - /// The provisioning state of the build - /// task. Possible values include: 'Creating', 'Updating', 'Deleting', + /// The provisioning state of the task. + /// Possible values include: 'Creating', 'Updating', 'Deleting', /// 'Succeeded', 'Failed', 'Canceled' - /// The creation date of build task. - /// The current status of build task. Possible - /// values include: 'Disabled', 'Enabled' - /// Build timeout in seconds. - public BuildTask(string location, string alias, SourceRepositoryProperties sourceRepository, PlatformProperties platform, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), System.DateTime? creationDate = default(System.DateTime?), string status = default(string), int? timeout = default(int?)) + /// The creation date of task. + /// The current status of task. Possible values + /// include: 'Disabled', 'Enabled' + /// The machine configuration of the + /// run agent. + /// Run timeout in seconds. + /// The properties that describe all triggers for + /// the task. + public Task(string location, PlatformProperties platform, TaskStepProperties step, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), System.DateTime? creationDate = default(System.DateTime?), string status = default(string), AgentProperties agentConfiguration = default(AgentProperties), int? timeout = default(int?), TriggerProperties trigger = default(TriggerProperties)) : base(location, id, name, type, tags) { ProvisioningState = provisioningState; CreationDate = creationDate; - Alias = alias; Status = status; - SourceRepository = sourceRepository; Platform = platform; + AgentConfiguration = agentConfiguration; Timeout = timeout; + Step = step; + Trigger = trigger; CustomInit(); } @@ -74,52 +75,58 @@ public BuildTask() partial void CustomInit(); /// - /// Gets the provisioning state of the build task. Possible values - /// include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', + /// Gets the provisioning state of the task. Possible values include: + /// 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', /// 'Canceled' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } /// - /// Gets the creation date of build task. + /// Gets the creation date of task. /// [JsonProperty(PropertyName = "properties.creationDate")] public System.DateTime? CreationDate { get; private set; } /// - /// Gets or sets the alternative updatable name for a build task. - /// - [JsonProperty(PropertyName = "properties.alias")] - public string Alias { get; set; } - - /// - /// Gets or sets the current status of build task. Possible values - /// include: 'Disabled', 'Enabled' + /// Gets or sets the current status of task. Possible values include: + /// 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "properties.status")] public string Status { get; set; } /// - /// Gets or sets the properties that describes the source(code) for the - /// build task. - /// - [JsonProperty(PropertyName = "properties.sourceRepository")] - public SourceRepositoryProperties SourceRepository { get; set; } - - /// - /// Gets or sets the platform properties against which the build has to + /// Gets or sets the platform properties against which the run has to /// happen. /// [JsonProperty(PropertyName = "properties.platform")] public PlatformProperties Platform { get; set; } /// - /// Gets or sets build timeout in seconds. + /// Gets or sets the machine configuration of the run agent. + /// + [JsonProperty(PropertyName = "properties.agentConfiguration")] + public AgentProperties AgentConfiguration { get; set; } + + /// + /// Gets or sets run timeout in seconds. /// [JsonProperty(PropertyName = "properties.timeout")] public int? Timeout { get; set; } + /// + /// Gets or sets the properties of a task step. + /// + [JsonProperty(PropertyName = "properties.step")] + public TaskStepProperties Step { get; set; } + + /// + /// Gets or sets the properties that describe all triggers for the + /// task. + /// + [JsonProperty(PropertyName = "properties.trigger")] + public TriggerProperties Trigger { get; set; } + /// /// Validate the object. /// @@ -129,21 +136,13 @@ public BuildTask() public override void Validate() { base.Validate(); - if (Alias == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Alias"); - } - if (SourceRepository == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SourceRepository"); - } if (Platform == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Platform"); } - if (SourceRepository != null) + if (Step == null) { - SourceRepository.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "Step"); } if (Platform != null) { @@ -157,6 +156,10 @@ public override void Validate() { throw new ValidationException(ValidationRules.InclusiveMinimum, "Timeout", 300); } + if (Trigger != null) + { + Trigger.Validate(); + } } } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskRunRequest.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskRunRequest.cs new file mode 100644 index 000000000000..fde6bcb2d6d5 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskRunRequest.cs @@ -0,0 +1,91 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters for a task run request. + /// + public partial class TaskRunRequest : RunRequest + { + /// + /// Initializes a new instance of the TaskRunRequest class. + /// + public TaskRunRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TaskRunRequest class. + /// + /// The name of task against which run has to be + /// queued. + /// The value that indicates whether + /// archiving is enabled for the run or not. + /// The collection of overridable values that can + /// be passed when running a task. + public TaskRunRequest(string taskName, bool? isArchiveEnabled = default(bool?), IList values = default(IList)) + : base(isArchiveEnabled) + { + TaskName = taskName; + Values = values; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of task against which run has to be queued. + /// + [JsonProperty(PropertyName = "taskName")] + public string TaskName { get; set; } + + /// + /// Gets or sets the collection of overridable values that can be + /// passed when running a task. + /// + [JsonProperty(PropertyName = "values")] + public IList Values { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TaskName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TaskName"); + } + if (Values != null) + { + foreach (var element in Values) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskStatus.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskStatus.cs similarity index 87% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskStatus.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskStatus.cs index 1b04368695ef..23910be329ed 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/BuildTaskStatus.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskStatus.cs @@ -12,9 +12,9 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models { /// - /// Defines values for BuildTaskStatus. + /// Defines values for TaskStatus. /// - public static class BuildTaskStatus + public static class TaskStatus { public const string Disabled = "Disabled"; public const string Enabled = "Enabled"; diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskStepProperties.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskStepProperties.cs new file mode 100644 index 000000000000..1a7218059024 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskStepProperties.cs @@ -0,0 +1,64 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Base properties for any task step. + /// + public partial class TaskStepProperties + { + /// + /// Initializes a new instance of the TaskStepProperties class. + /// + public TaskStepProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TaskStepProperties class. + /// + /// List of base image dependencies + /// for a step. + /// The URL(absolute or relative) of the + /// source context for the task step. + public TaskStepProperties(IList baseImageDependencies = default(IList), string contextPath = default(string)) + { + BaseImageDependencies = baseImageDependencies; + ContextPath = contextPath; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets list of base image dependencies for a step. + /// + [JsonProperty(PropertyName = "baseImageDependencies")] + public IList BaseImageDependencies { get; private set; } + + /// + /// Gets or sets the URL(absolute or relative) of the source context + /// for the task step. + /// + [JsonProperty(PropertyName = "contextPath")] + public string ContextPath { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskStepUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskStepUpdateParameters.cs new file mode 100644 index 000000000000..7136ef25bfbd --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskStepUpdateParameters.cs @@ -0,0 +1,53 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Base properties for updating any task step. + /// + public partial class TaskStepUpdateParameters + { + /// + /// Initializes a new instance of the TaskStepUpdateParameters class. + /// + public TaskStepUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TaskStepUpdateParameters class. + /// + /// The URL(absolute or relative) of the + /// source context for the task step. + public TaskStepUpdateParameters(string contextPath = default(string)) + { + ContextPath = contextPath; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the URL(absolute or relative) of the source context + /// for the task step. + /// + [JsonProperty(PropertyName = "contextPath")] + public string ContextPath { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskUpdateParameters.cs new file mode 100644 index 000000000000..eece509730a1 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TaskUpdateParameters.cs @@ -0,0 +1,123 @@ +// +// 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.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters for updating a task. + /// + [Rest.Serialization.JsonTransformation] + public partial class TaskUpdateParameters + { + /// + /// Initializes a new instance of the TaskUpdateParameters class. + /// + public TaskUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TaskUpdateParameters class. + /// + /// The current status of task. Possible values + /// include: 'Disabled', 'Enabled' + /// The platform properties against which the + /// run has to happen. + /// The machine configuration of the + /// run agent. + /// Run timeout in seconds. + /// The properties for updating a task step. + /// The properties for updating trigger + /// properties. + /// The ARM resource tags. + public TaskUpdateParameters(string status = default(string), PlatformUpdateParameters platform = default(PlatformUpdateParameters), AgentProperties agentConfiguration = default(AgentProperties), int? timeout = default(int?), TaskStepUpdateParameters step = default(TaskStepUpdateParameters), TriggerUpdateParameters trigger = default(TriggerUpdateParameters), IDictionary tags = default(IDictionary)) + { + Status = status; + Platform = platform; + AgentConfiguration = agentConfiguration; + Timeout = timeout; + Step = step; + Trigger = trigger; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the current status of task. Possible values include: + /// 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; set; } + + /// + /// Gets or sets the platform properties against which the run has to + /// happen. + /// + [JsonProperty(PropertyName = "properties.platform")] + public PlatformUpdateParameters Platform { get; set; } + + /// + /// Gets or sets the machine configuration of the run agent. + /// + [JsonProperty(PropertyName = "properties.agentConfiguration")] + public AgentProperties AgentConfiguration { get; set; } + + /// + /// Gets or sets run timeout in seconds. + /// + [JsonProperty(PropertyName = "properties.timeout")] + public int? Timeout { get; set; } + + /// + /// Gets or sets the properties for updating a task step. + /// + [JsonProperty(PropertyName = "properties.step")] + public TaskStepUpdateParameters Step { get; set; } + + /// + /// Gets or sets the properties for updating trigger properties. + /// + [JsonProperty(PropertyName = "properties.trigger")] + public TriggerUpdateParameters Trigger { get; set; } + + /// + /// Gets or sets the ARM resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Trigger != null) + { + Trigger.Validate(); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TriggerProperties.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TriggerProperties.cs new file mode 100644 index 000000000000..dce8ded6b29b --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TriggerProperties.cs @@ -0,0 +1,87 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties of a trigger. + /// + public partial class TriggerProperties + { + /// + /// Initializes a new instance of the TriggerProperties class. + /// + public TriggerProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TriggerProperties class. + /// + /// The collection of triggers based on + /// source code repository. + /// The trigger based on base image + /// dependencies. + public TriggerProperties(IList sourceTriggers = default(IList), BaseImageTrigger baseImageTrigger = default(BaseImageTrigger)) + { + SourceTriggers = sourceTriggers; + BaseImageTrigger = baseImageTrigger; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the collection of triggers based on source code + /// repository. + /// + [JsonProperty(PropertyName = "sourceTriggers")] + public IList SourceTriggers { get; set; } + + /// + /// Gets or sets the trigger based on base image dependencies. + /// + [JsonProperty(PropertyName = "baseImageTrigger")] + public BaseImageTrigger BaseImageTrigger { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (SourceTriggers != null) + { + foreach (var element in SourceTriggers) + { + if (element != null) + { + element.Validate(); + } + } + } + if (BaseImageTrigger != null) + { + BaseImageTrigger.Validate(); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TriggerStatus.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TriggerStatus.cs new file mode 100644 index 000000000000..067d64b49005 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TriggerStatus.cs @@ -0,0 +1,22 @@ +// +// 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.Models +{ + + /// + /// Defines values for TriggerStatus. + /// + public static class TriggerStatus + { + public const string Disabled = "Disabled"; + public const string Enabled = "Enabled"; + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TriggerUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TriggerUpdateParameters.cs new file mode 100644 index 000000000000..b0fa8fcd7a5c --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/TriggerUpdateParameters.cs @@ -0,0 +1,87 @@ +// +// 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.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties for updating triggers. + /// + public partial class TriggerUpdateParameters + { + /// + /// Initializes a new instance of the TriggerUpdateParameters class. + /// + public TriggerUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TriggerUpdateParameters class. + /// + /// The collection of triggers based on + /// source code repository. + /// The trigger based on base image + /// dependencies. + public TriggerUpdateParameters(IList sourceTriggers = default(IList), BaseImageTriggerUpdateParameters baseImageTrigger = default(BaseImageTriggerUpdateParameters)) + { + SourceTriggers = sourceTriggers; + BaseImageTrigger = baseImageTrigger; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the collection of triggers based on source code + /// repository. + /// + [JsonProperty(PropertyName = "sourceTriggers")] + public IList SourceTriggers { get; set; } + + /// + /// Gets or sets the trigger based on base image dependencies. + /// + [JsonProperty(PropertyName = "baseImageTrigger")] + public BaseImageTriggerUpdateParameters BaseImageTrigger { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (SourceTriggers != null) + { + foreach (var element in SourceTriggers) + { + if (element != null) + { + element.Validate(); + } + } + } + if (BaseImageTrigger != null) + { + BaseImageTrigger.Validate(); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Variant.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Variant.cs new file mode 100644 index 000000000000..6adb3bba7e52 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Variant.cs @@ -0,0 +1,23 @@ +// +// 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.Models +{ + + /// + /// Defines values for Variant. + /// + public static class Variant + { + public const string V6 = "v6"; + public const string V7 = "v7"; + public const string V8 = "v8"; + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Operations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Operations.cs index 59d9fbfed482..5b2adff0376d 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Operations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Operations.cs @@ -20,7 +20,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry using System.Net; using System.Net.Http; using System.Threading; - using System.Threading.Tasks; /// /// Operations operations. @@ -68,7 +67,7 @@ internal Operations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { string apiVersion = "2017-10-01"; // Tracing @@ -242,7 +241,7 @@ internal Operations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/OperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/OperationsExtensions.cs index 54914d3e1b6b..c964a7c73b1d 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/OperationsExtensions.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/OperationsExtensions.cs @@ -14,7 +14,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry using Microsoft.Rest.Azure; using Models; using System.Threading; - using System.Threading.Tasks; /// /// Extension methods for Operations. @@ -41,7 +40,7 @@ public static IPage List(this IOperations operations) /// /// The cancellation token. /// - public static async Task> ListAsync(this IOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListAsync(this IOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { @@ -75,7 +74,7 @@ public static IPage ListNext(this IOperations operations, s /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListNextAsync(this IOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperations.cs index 1654937a11b0..9ad23513c714 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperations.cs @@ -20,7 +20,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry using System.Net; using System.Net.Http; using System.Threading; - using System.Threading.Tasks; /// /// RegistriesOperations operations. @@ -70,7 +69,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task ImportImageWithHttpMessagesAsync(string resourceGroupName, string registryName, ImportImageParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task ImportImageWithHttpMessagesAsync(string resourceGroupName, string registryName, ImportImageParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginImportImageWithHttpMessagesAsync(resourceGroupName, registryName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); @@ -106,7 +105,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> CheckNameAvailabilityWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -319,7 +318,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -516,7 +515,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, registry, customHeaders, cancellationToken).ConfigureAwait(false); @@ -538,7 +537,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, customHeaders, cancellationToken).ConfigureAwait(false); @@ -563,7 +562,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, registryUpdateParameters, customHeaders, cancellationToken).ConfigureAwait(false); @@ -597,7 +596,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -779,7 +778,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -961,7 +960,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> ListCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1175,7 +1174,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> RegenerateCredentialWithHttpMessagesAsync(string resourceGroupName, string registryName, PasswordName name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> RegenerateCredentialWithHttpMessagesAsync(string resourceGroupName, string registryName, PasswordName name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1393,7 +1392,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListUsagesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> ListUsagesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1602,7 +1601,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListPoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> ListPoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1802,7 +1801,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> UpdatePoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginUpdatePoliciesWithHttpMessagesAsync(resourceGroupName, registryName, quarantinePolicy, trustPolicy, customHeaders, cancellationToken).ConfigureAwait(false); @@ -1810,7 +1809,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) } /// - /// Creates a new build based on the request parameters and add it to the build + /// Schedules a new run based on the request parameters and add it to the run /// queue. /// /// @@ -1819,8 +1818,8 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// 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. @@ -1828,10 +1827,10 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> QueueBuildWithHttpMessagesAsync(string resourceGroupName, string registryName, QueueBuildRequest buildRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> ScheduleRunWithHttpMessagesAsync(string resourceGroupName, string registryName, RunRequest runRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginQueueBuildWithHttpMessagesAsync(resourceGroupName, registryName, buildRequest, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginScheduleRunWithHttpMessagesAsync(resourceGroupName, registryName, runRequest, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -1865,7 +1864,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetBuildSourceUploadUrlWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> GetBuildSourceUploadUrlWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1894,7 +1893,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1910,7 +1909,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) } // 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}/getBuildSourceUploadUrl").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl").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)); @@ -2076,7 +2075,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginImportImageWithHttpMessagesAsync(string resourceGroupName, string registryName, ImportImageParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task BeginImportImageWithHttpMessagesAsync(string resourceGroupName, string registryName, ImportImageParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2285,7 +2284,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2524,7 +2523,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2718,7 +2717,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2962,7 +2961,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdatePoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginUpdatePoliciesWithHttpMessagesAsync(string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -3155,7 +3154,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) } /// - /// Creates a new build based on the request parameters and add it to the build + /// Schedules a new run based on the request parameters and add it to the run /// queue. /// /// @@ -3164,8 +3163,8 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The parameters of a build that needs to queued. + /// + /// The parameters of a run that needs to scheduled. /// /// /// Headers that will be added to request. @@ -3188,7 +3187,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginQueueBuildWithHttpMessagesAsync(string resourceGroupName, string registryName, QueueBuildRequest buildRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginScheduleRunWithHttpMessagesAsync(string resourceGroupName, string registryName, RunRequest runRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -3217,11 +3216,11 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (buildRequest == null) + if (runRequest == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildRequest"); + throw new ValidationException(ValidationRules.CannotBeNull, "runRequest"); } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3232,13 +3231,13 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("buildRequest", buildRequest); + tracingParameters.Add("runRequest", runRequest); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginQueueBuild", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginScheduleRun", 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}/queueBuild").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun").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)); @@ -3285,9 +3284,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; - if(buildRequest != null) + if(runRequest != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(buildRequest, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(runRequest, 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"); } @@ -3346,7 +3345,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -3359,7 +3358,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -3405,7 +3404,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -3578,7 +3577,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs index 6bfc2e216ba8..5e1641fe136a 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs @@ -14,7 +14,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry using Microsoft.Rest.Azure; using Models; using System.Threading; - using System.Threading.Tasks; /// /// Extension methods for RegistriesOperations. @@ -63,7 +62,7 @@ public static void ImportImage(this IRegistriesOperations operations, string res /// /// The cancellation token. /// - public static async Task ImportImageAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, ImportImageParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task ImportImageAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, ImportImageParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ImportImageWithHttpMessagesAsync(resourceGroupName, registryName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -98,7 +97,7 @@ public static RegistryNameStatus CheckNameAvailability(this IRegistriesOperation /// /// The cancellation token. /// - public static async Task CheckNameAvailabilityAsync(this IRegistriesOperations operations, string name, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task CheckNameAvailabilityAsync(this IRegistriesOperations operations, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false)) { @@ -138,7 +137,7 @@ public static Registry Get(this IRegistriesOperations operations, string resourc /// /// The cancellation token. /// - public static async Task GetAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task GetAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) { @@ -184,7 +183,7 @@ public static Registry Create(this IRegistriesOperations operations, string reso /// /// The cancellation token. /// - public static async Task CreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, Registry registry, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task CreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, Registry registry, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, registry, null, cancellationToken).ConfigureAwait(false)) { @@ -224,7 +223,7 @@ public static void Delete(this IRegistriesOperations operations, string resource /// /// The cancellation token. /// - public static async Task DeleteAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task DeleteAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -267,7 +266,7 @@ public static Registry Update(this IRegistriesOperations operations, string reso /// /// The cancellation token. /// - public static async Task UpdateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task UpdateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, registryUpdateParameters, null, cancellationToken).ConfigureAwait(false)) { @@ -301,7 +300,7 @@ public static IPage ListByResourceGroup(this IRegistriesOperations ope /// /// The cancellation token. /// - public static async Task> ListByResourceGroupAsync(this IRegistriesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListByResourceGroupAsync(this IRegistriesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { @@ -329,7 +328,7 @@ public static IPage List(this IRegistriesOperations operations) /// /// The cancellation token. /// - public static async Task> ListAsync(this IRegistriesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListAsync(this IRegistriesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { @@ -369,7 +368,7 @@ public static RegistryListCredentialsResult ListCredentials(this IRegistriesOper /// /// The cancellation token. /// - public static async Task ListCredentialsAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task ListCredentialsAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListCredentialsWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) { @@ -419,7 +418,7 @@ public static RegistryListCredentialsResult RegenerateCredential(this IRegistrie /// /// The cancellation token. /// - public static async Task RegenerateCredentialAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, PasswordName name, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task RegenerateCredentialAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, PasswordName name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RegenerateCredentialWithHttpMessagesAsync(resourceGroupName, registryName, name, null, cancellationToken).ConfigureAwait(false)) { @@ -459,7 +458,7 @@ public static RegistryUsageListResult ListUsages(this IRegistriesOperations oper /// /// The cancellation token. /// - public static async Task ListUsagesAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task ListUsagesAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListUsagesWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) { @@ -499,7 +498,7 @@ public static RegistryPolicies ListPolicies(this IRegistriesOperations operation /// /// The cancellation token. /// - public static async Task ListPoliciesAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task ListPoliciesAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListPoliciesWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) { @@ -551,7 +550,7 @@ public static RegistryPolicies ListPolicies(this IRegistriesOperations operation /// /// The cancellation token. /// - public static async Task UpdatePoliciesAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task UpdatePoliciesAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdatePoliciesWithHttpMessagesAsync(resourceGroupName, registryName, quarantinePolicy, trustPolicy, null, cancellationToken).ConfigureAwait(false)) { @@ -560,7 +559,7 @@ public static RegistryPolicies ListPolicies(this IRegistriesOperations operation } /// - /// Creates a new build based on the request parameters and add it to the build + /// Schedules a new run based on the request parameters and add it to the run /// queue. /// /// @@ -572,16 +571,16 @@ public static RegistryPolicies ListPolicies(this IRegistriesOperations operation /// /// The name of the container registry. /// - /// - /// The parameters of a build that needs to queued. + /// + /// The parameters of a run that needs to scheduled. /// - public static Build QueueBuild(this IRegistriesOperations operations, string resourceGroupName, string registryName, QueueBuildRequest buildRequest) + public static Run ScheduleRun(this IRegistriesOperations operations, string resourceGroupName, string registryName, RunRequest runRequest) { - return operations.QueueBuildAsync(resourceGroupName, registryName, buildRequest).GetAwaiter().GetResult(); + return operations.ScheduleRunAsync(resourceGroupName, registryName, runRequest).GetAwaiter().GetResult(); } /// - /// Creates a new build based on the request parameters and add it to the build + /// Schedules a new run based on the request parameters and add it to the run /// queue. /// /// @@ -593,15 +592,15 @@ public static Build QueueBuild(this IRegistriesOperations operations, string res /// /// 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 cancellation token. /// - public static async Task QueueBuildAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, QueueBuildRequest buildRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task ScheduleRunAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RunRequest runRequest, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.QueueBuildWithHttpMessagesAsync(resourceGroupName, registryName, buildRequest, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ScheduleRunWithHttpMessagesAsync(resourceGroupName, registryName, runRequest, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -639,7 +638,7 @@ public static SourceUploadDefinition GetBuildSourceUploadUrl(this IRegistriesOpe /// /// The cancellation token. /// - public static async Task GetBuildSourceUploadUrlAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task GetBuildSourceUploadUrlAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetBuildSourceUploadUrlWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) { @@ -689,7 +688,7 @@ public static void BeginImportImage(this IRegistriesOperations operations, strin /// /// The cancellation token. /// - public static async Task BeginImportImageAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, ImportImageParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginImportImageAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, ImportImageParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginImportImageWithHttpMessagesAsync(resourceGroupName, registryName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -732,7 +731,7 @@ public static Registry BeginCreate(this IRegistriesOperations operations, string /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, Registry registry, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginCreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, Registry registry, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, registry, null, cancellationToken).ConfigureAwait(false)) { @@ -772,7 +771,7 @@ public static void BeginDelete(this IRegistriesOperations operations, string res /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginDeleteAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -815,7 +814,7 @@ public static Registry BeginUpdate(this IRegistriesOperations operations, string /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginUpdateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, registryUpdateParameters, null, cancellationToken).ConfigureAwait(false)) { @@ -867,7 +866,7 @@ public static Registry BeginUpdate(this IRegistriesOperations operations, string /// /// The cancellation token. /// - public static async Task BeginUpdatePoliciesAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginUpdatePoliciesAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, QuarantinePolicy quarantinePolicy = default(QuarantinePolicy), TrustPolicy trustPolicy = default(TrustPolicy), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdatePoliciesWithHttpMessagesAsync(resourceGroupName, registryName, quarantinePolicy, trustPolicy, null, cancellationToken).ConfigureAwait(false)) { @@ -876,7 +875,7 @@ public static Registry BeginUpdate(this IRegistriesOperations operations, string } /// - /// Creates a new build based on the request parameters and add it to the build + /// Schedules a new run based on the request parameters and add it to the run /// queue. /// /// @@ -888,16 +887,16 @@ public static Registry BeginUpdate(this IRegistriesOperations operations, string /// /// The name of the container registry. /// - /// - /// The parameters of a build that needs to queued. + /// + /// The parameters of a run that needs to scheduled. /// - public static Build BeginQueueBuild(this IRegistriesOperations operations, string resourceGroupName, string registryName, QueueBuildRequest buildRequest) + public static Run BeginScheduleRun(this IRegistriesOperations operations, string resourceGroupName, string registryName, RunRequest runRequest) { - return operations.BeginQueueBuildAsync(resourceGroupName, registryName, buildRequest).GetAwaiter().GetResult(); + return operations.BeginScheduleRunAsync(resourceGroupName, registryName, runRequest).GetAwaiter().GetResult(); } /// - /// Creates a new build based on the request parameters and add it to the build + /// Schedules a new run based on the request parameters and add it to the run /// queue. /// /// @@ -909,15 +908,15 @@ public static Build BeginQueueBuild(this IRegistriesOperations operations, strin /// /// 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 cancellation token. /// - public static async Task BeginQueueBuildAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, QueueBuildRequest buildRequest, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginScheduleRunAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RunRequest runRequest, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginQueueBuildWithHttpMessagesAsync(resourceGroupName, registryName, buildRequest, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginScheduleRunWithHttpMessagesAsync(resourceGroupName, registryName, runRequest, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -949,7 +948,7 @@ public static IPage ListByResourceGroupNext(this IRegistriesOperations /// /// The cancellation token. /// - public static async Task> ListByResourceGroupNextAsync(this IRegistriesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListByResourceGroupNextAsync(this IRegistriesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { @@ -983,7 +982,7 @@ public static IPage ListNext(this IRegistriesOperations operations, st /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IRegistriesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListNextAsync(this IRegistriesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperations.cs index c03d2ebba46e..dcb86317760f 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperations.cs @@ -20,7 +20,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry using System.Net; using System.Net.Http; using System.Threading; - using System.Threading.Tasks; /// /// ReplicationsOperations operations. @@ -83,7 +82,7 @@ internal ReplicationsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -309,7 +308,7 @@ internal ReplicationsOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, location, tags, customHeaders, cancellationToken).ConfigureAwait(false); @@ -334,7 +333,7 @@ internal ReplicationsOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, customHeaders, cancellationToken).ConfigureAwait(false); @@ -363,7 +362,7 @@ internal ReplicationsOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, tags, customHeaders, cancellationToken).ConfigureAwait(false); @@ -400,7 +399,7 @@ internal ReplicationsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -620,7 +619,7 @@ internal ReplicationsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -885,7 +884,7 @@ internal ReplicationsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1104,7 +1103,7 @@ internal ReplicationsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1361,7 +1360,7 @@ internal ReplicationsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperationsExtensions.cs index b781e2821415..e9ed7eac22d9 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperationsExtensions.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperationsExtensions.cs @@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry using System.Collections; using System.Collections.Generic; using System.Threading; - using System.Threading.Tasks; /// /// Extension methods for ReplicationsOperations. @@ -61,7 +60,7 @@ public static Replication Get(this IReplicationsOperations operations, string re /// /// The cancellation token. /// - public static async Task GetAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task GetAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, null, cancellationToken).ConfigureAwait(false)) { @@ -123,7 +122,7 @@ public static Replication Get(this IReplicationsOperations operations, string re /// /// The cancellation token. /// - public static async Task CreateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task CreateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, location, tags, null, cancellationToken).ConfigureAwait(false)) { @@ -169,7 +168,7 @@ public static void Delete(this IReplicationsOperations operations, string resour /// /// The cancellation token. /// - public static async Task DeleteAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task DeleteAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -220,7 +219,7 @@ public static void Delete(this IReplicationsOperations operations, string resour /// /// The cancellation token. /// - public static async Task UpdateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task UpdateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, tags, null, cancellationToken).ConfigureAwait(false)) { @@ -260,7 +259,7 @@ public static IPage List(this IReplicationsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) { @@ -322,7 +321,7 @@ public static IPage List(this IReplicationsOperations operations, s /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginCreateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, location, tags, null, cancellationToken).ConfigureAwait(false)) { @@ -368,7 +367,7 @@ public static void BeginDelete(this IReplicationsOperations operations, string r /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginDeleteAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -419,7 +418,7 @@ public static void BeginDelete(this IReplicationsOperations operations, string r /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginUpdateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, tags, null, cancellationToken).ConfigureAwait(false)) { @@ -453,7 +452,7 @@ public static IPage ListNext(this IReplicationsOperations operation /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IReplicationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListNextAsync(this IReplicationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildsOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RunsOperations.cs similarity index 89% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildsOperations.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RunsOperations.cs index 3d0c0e08d55d..9b690bbec076 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildsOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RunsOperations.cs @@ -21,15 +21,14 @@ namespace Microsoft.Azure.Management.ContainerRegistry using System.Net; using System.Net.Http; using System.Threading; - using System.Threading.Tasks; /// - /// BuildsOperations operations. + /// RunsOperations operations. /// - internal partial class BuildsOperations : IServiceOperations, IBuildsOperations + internal partial class RunsOperations : IServiceOperations, IRunsOperations { /// - /// Initializes a new instance of the BuildsOperations class. + /// Initializes a new instance of the RunsOperations class. /// /// /// Reference to the service client. @@ -37,7 +36,7 @@ internal partial class BuildsOperations : IServiceOperations /// Thrown when a required parameter is null /// - internal BuildsOperations(ContainerRegistryManagementClient client) + internal RunsOperations(ContainerRegistryManagementClient client) { if (client == null) { @@ -52,7 +51,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) public ContainerRegistryManagementClient Client { get; private set; } /// - /// Gets all the builds for a registry. + /// Gets all the runs for a registry. /// /// /// The name of the resource group to which the container registry belongs. @@ -63,10 +62,6 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// OData parameters to apply to the operation. /// - /// - /// $skipToken is supported on get list of builds, which provides the next page - /// in the list of builds. - /// /// /// Headers that will be added to request. /// @@ -88,7 +83,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -117,7 +112,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -129,13 +124,12 @@ internal BuildsOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("skipToken", skipToken); 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}/builds").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs").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)); @@ -152,10 +146,6 @@ internal BuildsOperations(ContainerRegistryManagementClient client) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } - if (skipToken != null) - { - _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -249,7 +239,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -262,7 +252,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -282,7 +272,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) } /// - /// Gets the detailed information for a given build. + /// Gets the detailed information for a given run. /// /// /// The name of the resource group to which the container registry belongs. @@ -290,8 +280,8 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// Headers that will be added to request. @@ -314,7 +304,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -343,11 +333,11 @@ internal BuildsOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (buildId == null) + if (runId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildId"); + throw new ValidationException(ValidationRules.CannotBeNull, "runId"); } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -358,17 +348,17 @@ internal BuildsOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("buildId", buildId); + tracingParameters.Add("runId", runId); 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}/builds/{buildId}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}").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("{buildId}", System.Uri.EscapeDataString(buildId)); + _url = _url.Replace("{runId}", System.Uri.EscapeDataString(runId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -467,7 +457,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -480,7 +470,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -500,7 +490,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) } /// - /// Patch the build properties. + /// Patch the run properties. /// /// /// The name of the resource group to which the container registry belongs. @@ -508,8 +498,8 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The value that indicates whether archiving is enabled or not. @@ -520,15 +510,15 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, bool? isArchiveEnabled = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, bool? isArchiveEnabled = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, buildId, isArchiveEnabled, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, runId, isArchiveEnabled, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Gets a link to download the build logs. + /// Gets a link to download the run logs. /// /// /// The name of the resource group to which the container registry belongs. @@ -536,8 +526,8 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// Headers that will be added to request. @@ -560,7 +550,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetLogLinkWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> GetLogSasUrlWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -589,11 +579,11 @@ internal BuildsOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (buildId == null) + if (runId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildId"); + throw new ValidationException(ValidationRules.CannotBeNull, "runId"); } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -604,17 +594,17 @@ internal BuildsOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("buildId", buildId); + tracingParameters.Add("runId", runId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetLogLink", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetLogSasUrl", 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}/builds/{buildId}/getLogLink").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/listLogSasUrl").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("{buildId}", System.Uri.EscapeDataString(buildId)); + _url = _url.Replace("{runId}", System.Uri.EscapeDataString(runId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -713,7 +703,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -726,7 +716,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -746,7 +736,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) } /// - /// Cancel an existing build. + /// Cancel an existing run. /// /// /// The name of the resource group to which the container registry belongs. @@ -754,8 +744,8 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The headers that will be added to request. @@ -763,15 +753,15 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task CancelWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task CancelWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginCancelWithHttpMessagesAsync(resourceGroupName, registryName, buildId, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCancelWithHttpMessagesAsync(resourceGroupName, registryName, runId, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Patch the build properties. + /// Patch the run properties. /// /// /// The name of the resource group to which the container registry belongs. @@ -779,8 +769,8 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The value that indicates whether archiving is enabled or not. @@ -806,7 +796,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, bool? isArchiveEnabled = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, bool? isArchiveEnabled = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -835,15 +825,15 @@ internal BuildsOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (buildId == null) + if (runId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildId"); + throw new ValidationException(ValidationRules.CannotBeNull, "runId"); } - string apiVersion = "2018-02-01-preview"; - BuildUpdateParameters buildUpdateParameters = new BuildUpdateParameters(); + string apiVersion = "2018-09-01"; + RunUpdateParameters runUpdateParameters = new RunUpdateParameters(); if (isArchiveEnabled != null) { - buildUpdateParameters.IsArchiveEnabled = isArchiveEnabled; + runUpdateParameters.IsArchiveEnabled = isArchiveEnabled; } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -855,18 +845,18 @@ internal BuildsOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("buildId", buildId); - tracingParameters.Add("buildUpdateParameters", buildUpdateParameters); + tracingParameters.Add("runId", runId); + tracingParameters.Add("runUpdateParameters", runUpdateParameters); 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}/builds/{buildId}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}").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("{buildId}", System.Uri.EscapeDataString(buildId)); + _url = _url.Replace("{runId}", System.Uri.EscapeDataString(runId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -910,9 +900,9 @@ internal BuildsOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; - if(buildUpdateParameters != null) + if(runUpdateParameters != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(buildUpdateParameters, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(runUpdateParameters, 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"); } @@ -971,7 +961,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -984,7 +974,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1002,7 +992,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1022,7 +1012,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) } /// - /// Cancel an existing build. + /// Cancel an existing run. /// /// /// The name of the resource group to which the container registry belongs. @@ -1030,8 +1020,8 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// Headers that will be added to request. @@ -1051,7 +1041,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginCancelWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task BeginCancelWithHttpMessagesAsync(string resourceGroupName, string registryName, string runId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1080,11 +1070,11 @@ internal BuildsOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (buildId == null) + if (runId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildId"); + throw new ValidationException(ValidationRules.CannotBeNull, "runId"); } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1095,17 +1085,17 @@ internal BuildsOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("buildId", buildId); + tracingParameters.Add("runId", runId); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginCancel", 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}/builds/{buildId}/cancel").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel").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("{buildId}", System.Uri.EscapeDataString(buildId)); + _url = _url.Replace("{runId}", System.Uri.EscapeDataString(runId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1219,7 +1209,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) } /// - /// Gets all the builds for a registry. + /// Gets all the runs for a registry. /// /// /// The NextLink from the previous successful call to List operation. @@ -1245,7 +1235,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1359,7 +1349,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1372,7 +1362,7 @@ internal BuildsOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildsOperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RunsOperationsExtensions.cs similarity index 64% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildsOperationsExtensions.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RunsOperationsExtensions.cs index 27ad6907a8fc..408b5dbc9f12 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildsOperationsExtensions.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RunsOperationsExtensions.cs @@ -15,15 +15,14 @@ namespace Microsoft.Azure.Management.ContainerRegistry using Microsoft.Rest.Azure.OData; using Models; using System.Threading; - using System.Threading.Tasks; /// - /// Extension methods for BuildsOperations. + /// Extension methods for RunsOperations. /// - public static partial class BuildsOperationsExtensions + public static partial class RunsOperationsExtensions { /// - /// Gets all the builds for a registry. + /// Gets all the runs for a registry. /// /// /// The operations group for this extension method. @@ -37,17 +36,13 @@ public static partial class BuildsOperationsExtensions /// /// OData parameters to apply to the operation. /// - /// - /// $skipToken is supported on get list of builds, which provides the next page - /// in the list of builds. - /// - public static IPage List(this IBuildsOperations operations, string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string)) + public static IPage List(this IRunsOperations operations, string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery)) { - return operations.ListAsync(resourceGroupName, registryName, odataQuery, skipToken).GetAwaiter().GetResult(); + return operations.ListAsync(resourceGroupName, registryName, odataQuery).GetAwaiter().GetResult(); } /// - /// Gets all the builds for a registry. + /// Gets all the runs for a registry. /// /// /// The operations group for this extension method. @@ -61,23 +56,19 @@ public static partial class BuildsOperationsExtensions /// /// OData parameters to apply to the operation. /// - /// - /// $skipToken is supported on get list of builds, which provides the next page - /// in the list of builds. - /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IBuildsOperations operations, string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListAsync(this IRunsOperations operations, string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, registryName, odataQuery, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, registryName, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the detailed information for a given build. + /// Gets the detailed information for a given run. /// /// /// The operations group for this extension method. @@ -88,16 +79,16 @@ public static partial class BuildsOperationsExtensions /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// - public static Build Get(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId) + public static Run Get(this IRunsOperations operations, string resourceGroupName, string registryName, string runId) { - return operations.GetAsync(resourceGroupName, registryName, buildId).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, registryName, runId).GetAwaiter().GetResult(); } /// - /// Gets the detailed information for a given build. + /// Gets the detailed information for a given run. /// /// /// The operations group for this extension method. @@ -108,22 +99,22 @@ public static Build Get(this IBuildsOperations operations, string resourceGroupN /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task GetAsync(this IRunsOperations operations, string resourceGroupName, string registryName, string runId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, buildId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, runId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Patch the build properties. + /// Patch the run properties. /// /// /// The operations group for this extension method. @@ -134,19 +125,19 @@ public static Build Get(this IBuildsOperations operations, string resourceGroupN /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The value that indicates whether archiving is enabled or not. /// - public static Build Update(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId, bool? isArchiveEnabled = default(bool?)) + public static Run Update(this IRunsOperations operations, string resourceGroupName, string registryName, string runId, bool? isArchiveEnabled = default(bool?)) { - return operations.UpdateAsync(resourceGroupName, registryName, buildId, isArchiveEnabled).GetAwaiter().GetResult(); + return operations.UpdateAsync(resourceGroupName, registryName, runId, isArchiveEnabled).GetAwaiter().GetResult(); } /// - /// Patch the build properties. + /// Patch the run properties. /// /// /// The operations group for this extension method. @@ -157,8 +148,8 @@ public static Build Get(this IBuildsOperations operations, string resourceGroupN /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The value that indicates whether archiving is enabled or not. @@ -166,16 +157,16 @@ public static Build Get(this IBuildsOperations operations, string resourceGroupN /// /// The cancellation token. /// - public static async Task UpdateAsync(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId, bool? isArchiveEnabled = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task UpdateAsync(this IRunsOperations operations, string resourceGroupName, string registryName, string runId, bool? isArchiveEnabled = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, buildId, isArchiveEnabled, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, runId, isArchiveEnabled, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets a link to download the build logs. + /// Gets a link to download the run logs. /// /// /// The operations group for this extension method. @@ -186,16 +177,16 @@ public static Build Get(this IBuildsOperations operations, string resourceGroupN /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// - public static BuildGetLogResult GetLogLink(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId) + public static RunGetLogResult GetLogSasUrl(this IRunsOperations operations, string resourceGroupName, string registryName, string runId) { - return operations.GetLogLinkAsync(resourceGroupName, registryName, buildId).GetAwaiter().GetResult(); + return operations.GetLogSasUrlAsync(resourceGroupName, registryName, runId).GetAwaiter().GetResult(); } /// - /// Gets a link to download the build logs. + /// Gets a link to download the run logs. /// /// /// The operations group for this extension method. @@ -206,22 +197,22 @@ public static BuildGetLogResult GetLogLink(this IBuildsOperations operations, st /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The cancellation token. /// - public static async Task GetLogLinkAsync(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task GetLogSasUrlAsync(this IRunsOperations operations, string resourceGroupName, string registryName, string runId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetLogLinkWithHttpMessagesAsync(resourceGroupName, registryName, buildId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetLogSasUrlWithHttpMessagesAsync(resourceGroupName, registryName, runId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Cancel an existing build. + /// Cancel an existing run. /// /// /// The operations group for this extension method. @@ -232,16 +223,16 @@ public static BuildGetLogResult GetLogLink(this IBuildsOperations operations, st /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// - public static void Cancel(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId) + public static void Cancel(this IRunsOperations operations, string resourceGroupName, string registryName, string runId) { - operations.CancelAsync(resourceGroupName, registryName, buildId).GetAwaiter().GetResult(); + operations.CancelAsync(resourceGroupName, registryName, runId).GetAwaiter().GetResult(); } /// - /// Cancel an existing build. + /// Cancel an existing run. /// /// /// The operations group for this extension method. @@ -252,19 +243,19 @@ public static void Cancel(this IBuildsOperations operations, string resourceGrou /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The cancellation token. /// - public static async Task CancelAsync(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task CancelAsync(this IRunsOperations operations, string resourceGroupName, string registryName, string runId, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.CancelWithHttpMessagesAsync(resourceGroupName, registryName, buildId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.CancelWithHttpMessagesAsync(resourceGroupName, registryName, runId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Patch the build properties. + /// Patch the run properties. /// /// /// The operations group for this extension method. @@ -275,19 +266,19 @@ public static void Cancel(this IBuildsOperations operations, string resourceGrou /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The value that indicates whether archiving is enabled or not. /// - public static Build BeginUpdate(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId, bool? isArchiveEnabled = default(bool?)) + public static Run BeginUpdate(this IRunsOperations operations, string resourceGroupName, string registryName, string runId, bool? isArchiveEnabled = default(bool?)) { - return operations.BeginUpdateAsync(resourceGroupName, registryName, buildId, isArchiveEnabled).GetAwaiter().GetResult(); + return operations.BeginUpdateAsync(resourceGroupName, registryName, runId, isArchiveEnabled).GetAwaiter().GetResult(); } /// - /// Patch the build properties. + /// Patch the run properties. /// /// /// The operations group for this extension method. @@ -298,8 +289,8 @@ public static void Cancel(this IBuildsOperations operations, string resourceGrou /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The value that indicates whether archiving is enabled or not. @@ -307,16 +298,16 @@ public static void Cancel(this IBuildsOperations operations, string resourceGrou /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId, bool? isArchiveEnabled = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginUpdateAsync(this IRunsOperations operations, string resourceGroupName, string registryName, string runId, bool? isArchiveEnabled = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, buildId, isArchiveEnabled, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, runId, isArchiveEnabled, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Cancel an existing build. + /// Cancel an existing run. /// /// /// The operations group for this extension method. @@ -327,16 +318,16 @@ public static void Cancel(this IBuildsOperations operations, string resourceGrou /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// - public static void BeginCancel(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId) + public static void BeginCancel(this IRunsOperations operations, string resourceGroupName, string registryName, string runId) { - operations.BeginCancelAsync(resourceGroupName, registryName, buildId).GetAwaiter().GetResult(); + operations.BeginCancelAsync(resourceGroupName, registryName, runId).GetAwaiter().GetResult(); } /// - /// Cancel an existing build. + /// Cancel an existing run. /// /// /// The operations group for this extension method. @@ -347,19 +338,19 @@ public static void BeginCancel(this IBuildsOperations operations, string resourc /// /// The name of the container registry. /// - /// - /// The build ID. + /// + /// The run ID. /// /// /// The cancellation token. /// - public static async Task BeginCancelAsync(this IBuildsOperations operations, string resourceGroupName, string registryName, string buildId, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginCancelAsync(this IRunsOperations operations, string resourceGroupName, string registryName, string runId, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginCancelWithHttpMessagesAsync(resourceGroupName, registryName, buildId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginCancelWithHttpMessagesAsync(resourceGroupName, registryName, runId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Gets all the builds for a registry. + /// Gets all the runs for a registry. /// /// /// The operations group for this extension method. @@ -367,13 +358,13 @@ public static void BeginCancel(this IBuildsOperations operations, string resourc /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListNext(this IBuildsOperations operations, string nextPageLink) + public static IPage ListNext(this IRunsOperations operations, string nextPageLink) { return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets all the builds for a registry. + /// Gets all the runs for a registry. /// /// /// The operations group for this extension method. @@ -384,7 +375,7 @@ public static IPage ListNext(this IBuildsOperations operations, string ne /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IBuildsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListNextAsync(this IRunsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/SdkInfo_ContainerRegistryManagementClient.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/SdkInfo_ContainerRegistryManagementClient.cs index 4c21307fc2bf..b84a693f13ca 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/SdkInfo_ContainerRegistryManagementClient.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/SdkInfo_ContainerRegistryManagementClient.cs @@ -19,13 +19,12 @@ public static IEnumerable> ApiInfo_ContainerRegist { return new Tuple[] { - new Tuple("ContainerRegistry", "BuildSteps", "2018-02-01-preview"), - new Tuple("ContainerRegistry", "BuildTasks", "2018-02-01-preview"), - new Tuple("ContainerRegistry", "Builds", "2018-02-01-preview"), new Tuple("ContainerRegistry", "Operations", "2017-10-01"), new Tuple("ContainerRegistry", "Registries", "2017-10-01"), - new Tuple("ContainerRegistry", "Registries", "2018-02-01-preview"), + new Tuple("ContainerRegistry", "Registries", "2018-09-01"), new Tuple("ContainerRegistry", "Replications", "2017-10-01"), + new Tuple("ContainerRegistry", "Runs", "2018-09-01"), + new Tuple("ContainerRegistry", "Tasks", "2018-09-01"), new Tuple("ContainerRegistry", "Webhooks", "2017-10-01"), }.AsEnumerable(); } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildTasksOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/TasksOperations.cs similarity index 85% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildTasksOperations.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/TasksOperations.cs index 1e89235f305c..818681294310 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildTasksOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/TasksOperations.cs @@ -12,7 +12,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry { using Microsoft.Rest; using Microsoft.Rest.Azure; - using Microsoft.Rest.Azure.OData; using Models; using Newtonsoft.Json; using System.Collections; @@ -21,15 +20,14 @@ namespace Microsoft.Azure.Management.ContainerRegistry using System.Net; using System.Net.Http; using System.Threading; - using System.Threading.Tasks; /// - /// BuildTasksOperations operations. + /// TasksOperations operations. /// - internal partial class BuildTasksOperations : IServiceOperations, IBuildTasksOperations + internal partial class TasksOperations : IServiceOperations, ITasksOperations { /// - /// Initializes a new instance of the BuildTasksOperations class. + /// Initializes a new instance of the TasksOperations class. /// /// /// Reference to the service client. @@ -37,7 +35,7 @@ internal partial class BuildTasksOperations : IServiceOperations /// Thrown when a required parameter is null /// - internal BuildTasksOperations(ContainerRegistryManagementClient client) + internal TasksOperations(ContainerRegistryManagementClient client) { if (client == null) { @@ -52,7 +50,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) public ContainerRegistryManagementClient Client { get; private set; } /// - /// Lists all the build tasks for a specified container registry. + /// Lists all the tasks for a specified container registry. /// /// /// The name of the resource group to which the container registry belongs. @@ -60,13 +58,6 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// OData parameters to apply to the operation. - /// - /// - /// $skipToken is supported on get list of build tasks, which provides the next - /// page in the list of tasks. - /// /// /// Headers that will be added to request. /// @@ -88,7 +79,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -117,7 +108,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -125,37 +116,23 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("odataQuery", odataQuery); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("skipToken", skipToken); 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").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks").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)); List _queryParameters = new List(); - if (odataQuery != null) - { - var _odataFilter = odataQuery.ToString(); - if (!string.IsNullOrEmpty(_odataFilter)) - { - _queryParameters.Add(_odataFilter); - } - } if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } - if (skipToken != null) - { - _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -249,7 +226,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -262,7 +239,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -282,7 +259,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) } /// - /// Get the properties of a specified build task. + /// Get the properties of a specified task. /// /// /// The name of the resource group to which the container registry belongs. @@ -290,8 +267,8 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// Headers that will be added to request. @@ -314,7 +291,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -343,26 +320,26 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (buildTaskName == null) + if (taskName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName"); + throw new ValidationException(ValidationRules.CannotBeNull, "taskName"); } - if (buildTaskName != null) + if (taskName != null) { - if (buildTaskName.Length > 50) + if (taskName.Length > 50) { - throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50); + throw new ValidationException(ValidationRules.MaxLength, "taskName", 50); } - if (buildTaskName.Length < 5) + if (taskName.Length < 5) { - throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5); + throw new ValidationException(ValidationRules.MinLength, "taskName", 5); } - if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(taskName, "^[a-zA-Z0-9-_]*$")) { - throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$"); + throw new ValidationException(ValidationRules.Pattern, "taskName", "^[a-zA-Z0-9-_]*$"); } } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -373,17 +350,17 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("buildTaskName", buildTaskName); + tracingParameters.Add("taskName", taskName); 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}").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("{taskName}", System.Uri.EscapeDataString(taskName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -482,7 +459,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -495,7 +472,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -515,8 +492,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) } /// - /// Creates a build task for a container registry with the specified - /// parameters. + /// Creates a task for a container registry with the specified parameters. /// /// /// The name of the resource group to which the container registry belongs. @@ -524,11 +500,11 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for creating a build task. + /// + /// The parameters for creating a task. /// /// /// The headers that will be added to request. @@ -536,15 +512,15 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, BuildTask buildTaskCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Task taskCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, buildTaskCreateParameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, taskName, taskCreateParameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a specified build task. + /// Deletes a specified task. /// /// /// The name of the resource group to which the container registry belongs. @@ -552,8 +528,8 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// The headers that will be added to request. @@ -561,15 +537,15 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, taskName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Updates a build task with the specified parameters. + /// Updates a task with the specified parameters. /// /// /// The name of the resource group to which the container registry belongs. @@ -577,11 +553,11 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for updating a build task. + /// + /// The parameters for updating a task. /// /// /// The headers that will be added to request. @@ -589,15 +565,15 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, BuildTaskUpdateParameters buildTaskUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, TaskUpdateParameters taskUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, buildTaskUpdateParameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, taskName, taskUpdateParameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Get the source control properties for a build task. + /// Returns a task with extended information that includes all secrets. /// /// /// The name of the resource group to which the container registry belongs. @@ -605,8 +581,8 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// Headers that will be added to request. @@ -629,7 +605,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListSourceRepositoryPropertiesWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> GetDetailsWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -658,26 +634,26 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (buildTaskName == null) + if (taskName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName"); + throw new ValidationException(ValidationRules.CannotBeNull, "taskName"); } - if (buildTaskName != null) + if (taskName != null) { - if (buildTaskName.Length > 50) + if (taskName.Length > 50) { - throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50); + throw new ValidationException(ValidationRules.MaxLength, "taskName", 50); } - if (buildTaskName.Length < 5) + if (taskName.Length < 5) { - throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5); + throw new ValidationException(ValidationRules.MinLength, "taskName", 5); } - if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(taskName, "^[a-zA-Z0-9-_]*$")) { - throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$"); + throw new ValidationException(ValidationRules.Pattern, "taskName", "^[a-zA-Z0-9-_]*$"); } } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -688,17 +664,17 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("buildTaskName", buildTaskName); + tracingParameters.Add("taskName", taskName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListSourceRepositoryProperties", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetDetails", 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}/listSourceRepositoryProperties").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}/listDetails").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("{taskName}", System.Uri.EscapeDataString(taskName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -797,7 +773,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -810,7 +786,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -830,8 +806,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) } /// - /// Creates a build task for a container registry with the specified - /// parameters. + /// Creates a task for a container registry with the specified parameters. /// /// /// The name of the resource group to which the container registry belongs. @@ -839,11 +814,11 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for creating a build task. + /// + /// The parameters for creating a task. /// /// /// Headers that will be added to request. @@ -866,7 +841,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, BuildTask buildTaskCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Task taskCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -895,34 +870,34 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (buildTaskName == null) + if (taskName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName"); + throw new ValidationException(ValidationRules.CannotBeNull, "taskName"); } - if (buildTaskName != null) + if (taskName != null) { - if (buildTaskName.Length > 50) + if (taskName.Length > 50) { - throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50); + throw new ValidationException(ValidationRules.MaxLength, "taskName", 50); } - if (buildTaskName.Length < 5) + if (taskName.Length < 5) { - throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5); + throw new ValidationException(ValidationRules.MinLength, "taskName", 5); } - if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(taskName, "^[a-zA-Z0-9-_]*$")) { - throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$"); + throw new ValidationException(ValidationRules.Pattern, "taskName", "^[a-zA-Z0-9-_]*$"); } } - if (buildTaskCreateParameters == null) + if (taskCreateParameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskCreateParameters"); + throw new ValidationException(ValidationRules.CannotBeNull, "taskCreateParameters"); } - if (buildTaskCreateParameters != null) + if (taskCreateParameters != null) { - buildTaskCreateParameters.Validate(); + taskCreateParameters.Validate(); } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -933,18 +908,18 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("buildTaskName", buildTaskName); - tracingParameters.Add("buildTaskCreateParameters", buildTaskCreateParameters); + tracingParameters.Add("taskName", taskName); + tracingParameters.Add("taskCreateParameters", taskCreateParameters); 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}").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("{taskName}", System.Uri.EscapeDataString(taskName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -988,9 +963,9 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; - if(buildTaskCreateParameters != null) + if(taskCreateParameters != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(buildTaskCreateParameters, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(taskCreateParameters, 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"); } @@ -1049,7 +1024,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1062,7 +1037,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1080,7 +1055,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1100,7 +1075,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) } /// - /// Deletes a specified build task. + /// Deletes a specified task. /// /// /// The name of the resource group to which the container registry belongs. @@ -1108,8 +1083,8 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// Headers that will be added to request. @@ -1129,7 +1104,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1158,26 +1133,26 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (buildTaskName == null) + if (taskName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName"); + throw new ValidationException(ValidationRules.CannotBeNull, "taskName"); } - if (buildTaskName != null) + if (taskName != null) { - if (buildTaskName.Length > 50) + if (taskName.Length > 50) { - throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50); + throw new ValidationException(ValidationRules.MaxLength, "taskName", 50); } - if (buildTaskName.Length < 5) + if (taskName.Length < 5) { - throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5); + throw new ValidationException(ValidationRules.MinLength, "taskName", 5); } - if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(taskName, "^[a-zA-Z0-9-_]*$")) { - throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$"); + throw new ValidationException(ValidationRules.Pattern, "taskName", "^[a-zA-Z0-9-_]*$"); } } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1188,17 +1163,17 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("buildTaskName", buildTaskName); + tracingParameters.Add("taskName", taskName); 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}").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("{taskName}", System.Uri.EscapeDataString(taskName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1312,7 +1287,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) } /// - /// Updates a build task with the specified parameters. + /// Updates a task with the specified parameters. /// /// /// The name of the resource group to which the container registry belongs. @@ -1320,11 +1295,11 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for updating a build task. + /// + /// The parameters for updating a task. /// /// /// Headers that will be added to request. @@ -1347,7 +1322,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string buildTaskName, BuildTaskUpdateParameters buildTaskUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string taskName, TaskUpdateParameters taskUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1376,30 +1351,30 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (buildTaskName == null) + if (taskName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskName"); + throw new ValidationException(ValidationRules.CannotBeNull, "taskName"); } - if (buildTaskName != null) + if (taskName != null) { - if (buildTaskName.Length > 50) + if (taskName.Length > 50) { - throw new ValidationException(ValidationRules.MaxLength, "buildTaskName", 50); + throw new ValidationException(ValidationRules.MaxLength, "taskName", 50); } - if (buildTaskName.Length < 5) + if (taskName.Length < 5) { - throw new ValidationException(ValidationRules.MinLength, "buildTaskName", 5); + throw new ValidationException(ValidationRules.MinLength, "taskName", 5); } - if (!System.Text.RegularExpressions.Regex.IsMatch(buildTaskName, "^[a-zA-Z0-9]*$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(taskName, "^[a-zA-Z0-9-_]*$")) { - throw new ValidationException(ValidationRules.Pattern, "buildTaskName", "^[a-zA-Z0-9]*$"); + throw new ValidationException(ValidationRules.Pattern, "taskName", "^[a-zA-Z0-9-_]*$"); } } - if (buildTaskUpdateParameters == null) + if (taskUpdateParameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "buildTaskUpdateParameters"); + throw new ValidationException(ValidationRules.CannotBeNull, "taskUpdateParameters"); } - string apiVersion = "2018-02-01-preview"; + string apiVersion = "2018-09-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1410,18 +1385,18 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("buildTaskName", buildTaskName); - tracingParameters.Add("buildTaskUpdateParameters", buildTaskUpdateParameters); + tracingParameters.Add("taskName", taskName); + tracingParameters.Add("taskUpdateParameters", taskUpdateParameters); 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}").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("{taskName}", System.Uri.EscapeDataString(taskName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1465,9 +1440,9 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; - if(buildTaskUpdateParameters != null) + if(taskUpdateParameters != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(buildTaskUpdateParameters, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(taskUpdateParameters, 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"); } @@ -1526,7 +1501,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1539,7 +1514,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1557,7 +1532,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1577,7 +1552,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) } /// - /// Lists all the build tasks for a specified container registry. + /// Lists all the tasks for a specified container registry. /// /// /// The NextLink from the previous successful call to List operation. @@ -1603,7 +1578,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1717,7 +1692,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1730,7 +1705,7 @@ internal BuildTasksOperations(ContainerRegistryManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildTasksOperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/TasksOperationsExtensions.cs similarity index 55% rename from src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildTasksOperationsExtensions.cs rename to src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/TasksOperationsExtensions.cs index 747100b10d01..8e1a77173a40 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/BuildTasksOperationsExtensions.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/TasksOperationsExtensions.cs @@ -12,18 +12,16 @@ namespace Microsoft.Azure.Management.ContainerRegistry { using Microsoft.Rest; using Microsoft.Rest.Azure; - using Microsoft.Rest.Azure.OData; using Models; using System.Threading; - using System.Threading.Tasks; /// - /// Extension methods for BuildTasksOperations. + /// Extension methods for TasksOperations. /// - public static partial class BuildTasksOperationsExtensions + public static partial class TasksOperationsExtensions { /// - /// Lists all the build tasks for a specified container registry. + /// Lists all the tasks for a specified container registry. /// /// /// The operations group for this extension method. @@ -34,20 +32,13 @@ public static partial class BuildTasksOperationsExtensions /// /// The name of the container registry. /// - /// - /// OData parameters to apply to the operation. - /// - /// - /// $skipToken is supported on get list of build tasks, which provides the next - /// page in the list of tasks. - /// - public static IPage List(this IBuildTasksOperations operations, string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string)) + public static IPage List(this ITasksOperations operations, string resourceGroupName, string registryName) { - return operations.ListAsync(resourceGroupName, registryName, odataQuery, skipToken).GetAwaiter().GetResult(); + return operations.ListAsync(resourceGroupName, registryName).GetAwaiter().GetResult(); } /// - /// Lists all the build tasks for a specified container registry. + /// Lists all the tasks for a specified container registry. /// /// /// The operations group for this extension method. @@ -58,26 +49,19 @@ public static partial class BuildTasksOperationsExtensions /// /// The name of the container registry. /// - /// - /// OData parameters to apply to the operation. - /// - /// - /// $skipToken is supported on get list of build tasks, which provides the next - /// page in the list of tasks. - /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IBuildTasksOperations operations, string resourceGroupName, string registryName, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListAsync(this ITasksOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, registryName, odataQuery, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get the properties of a specified build task. + /// Get the properties of a specified task. /// /// /// The operations group for this extension method. @@ -88,16 +72,16 @@ public static partial class BuildTasksOperationsExtensions /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - public static BuildTask Get(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName) + public static Task Get(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName) { - return operations.GetAsync(resourceGroupName, registryName, buildTaskName).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, registryName, taskName).GetAwaiter().GetResult(); } /// - /// Get the properties of a specified build task. + /// Get the properties of a specified task. /// /// /// The operations group for this extension method. @@ -108,23 +92,22 @@ public static BuildTask Get(this IBuildTasksOperations operations, string resour /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task GetAsync(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, taskName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Creates a build task for a container registry with the specified - /// parameters. + /// Creates a task for a container registry with the specified parameters. /// /// /// The operations group for this extension method. @@ -135,20 +118,19 @@ public static BuildTask Get(this IBuildTasksOperations operations, string resour /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for creating a build task. + /// + /// The parameters for creating a task. /// - public static BuildTask Create(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, BuildTask buildTaskCreateParameters) + public static Task Create(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, Task taskCreateParameters) { - return operations.CreateAsync(resourceGroupName, registryName, buildTaskName, buildTaskCreateParameters).GetAwaiter().GetResult(); + return operations.CreateAsync(resourceGroupName, registryName, taskName, taskCreateParameters).GetAwaiter().GetResult(); } /// - /// Creates a build task for a container registry with the specified - /// parameters. + /// Creates a task for a container registry with the specified parameters. /// /// /// The operations group for this extension method. @@ -159,25 +141,25 @@ public static BuildTask Create(this IBuildTasksOperations operations, string res /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for creating a build task. + /// + /// The parameters for creating a task. /// /// /// The cancellation token. /// - public static async Task CreateAsync(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, BuildTask buildTaskCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task CreateAsync(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, Task taskCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, buildTaskCreateParameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, taskName, taskCreateParameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a specified build task. + /// Deletes a specified task. /// /// /// The operations group for this extension method. @@ -188,16 +170,16 @@ public static BuildTask Create(this IBuildTasksOperations operations, string res /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - public static void Delete(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName) + public static void Delete(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName) { - operations.DeleteAsync(resourceGroupName, registryName, buildTaskName).GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, registryName, taskName).GetAwaiter().GetResult(); } /// - /// Deletes a specified build task. + /// Deletes a specified task. /// /// /// The operations group for this extension method. @@ -208,19 +190,19 @@ public static void Delete(this IBuildTasksOperations operations, string resource /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task DeleteAsync(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, taskName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Updates a build task with the specified parameters. + /// Updates a task with the specified parameters. /// /// /// The operations group for this extension method. @@ -231,19 +213,19 @@ public static void Delete(this IBuildTasksOperations operations, string resource /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for updating a build task. + /// + /// The parameters for updating a task. /// - public static BuildTask Update(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, BuildTaskUpdateParameters buildTaskUpdateParameters) + public static Task Update(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, TaskUpdateParameters taskUpdateParameters) { - return operations.UpdateAsync(resourceGroupName, registryName, buildTaskName, buildTaskUpdateParameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(resourceGroupName, registryName, taskName, taskUpdateParameters).GetAwaiter().GetResult(); } /// - /// Updates a build task with the specified parameters. + /// Updates a task with the specified parameters. /// /// /// The operations group for this extension method. @@ -254,25 +236,25 @@ public static BuildTask Update(this IBuildTasksOperations operations, string res /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for updating a build task. + /// + /// The parameters for updating a task. /// /// /// The cancellation token. /// - public static async Task UpdateAsync(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, BuildTaskUpdateParameters buildTaskUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task UpdateAsync(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, TaskUpdateParameters taskUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, buildTaskUpdateParameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, taskName, taskUpdateParameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get the source control properties for a build task. + /// Returns a task with extended information that includes all secrets. /// /// /// The operations group for this extension method. @@ -283,16 +265,16 @@ public static BuildTask Update(this IBuildTasksOperations operations, string res /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - public static SourceRepositoryProperties ListSourceRepositoryProperties(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName) + public static Task GetDetails(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName) { - return operations.ListSourceRepositoryPropertiesAsync(resourceGroupName, registryName, buildTaskName).GetAwaiter().GetResult(); + return operations.GetDetailsAsync(resourceGroupName, registryName, taskName).GetAwaiter().GetResult(); } /// - /// Get the source control properties for a build task. + /// Returns a task with extended information that includes all secrets. /// /// /// The operations group for this extension method. @@ -303,23 +285,22 @@ public static SourceRepositoryProperties ListSourceRepositoryProperties(this IBu /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// The cancellation token. /// - public static async Task ListSourceRepositoryPropertiesAsync(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task GetDetailsAsync(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSourceRepositoryPropertiesWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetDetailsWithHttpMessagesAsync(resourceGroupName, registryName, taskName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Creates a build task for a container registry with the specified - /// parameters. + /// Creates a task for a container registry with the specified parameters. /// /// /// The operations group for this extension method. @@ -330,20 +311,19 @@ public static SourceRepositoryProperties ListSourceRepositoryProperties(this IBu /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for creating a build task. + /// + /// The parameters for creating a task. /// - public static BuildTask BeginCreate(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, BuildTask buildTaskCreateParameters) + public static Task BeginCreate(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, Task taskCreateParameters) { - return operations.BeginCreateAsync(resourceGroupName, registryName, buildTaskName, buildTaskCreateParameters).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(resourceGroupName, registryName, taskName, taskCreateParameters).GetAwaiter().GetResult(); } /// - /// Creates a build task for a container registry with the specified - /// parameters. + /// Creates a task for a container registry with the specified parameters. /// /// /// The operations group for this extension method. @@ -354,25 +334,25 @@ public static BuildTask BeginCreate(this IBuildTasksOperations operations, strin /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for creating a build task. + /// + /// The parameters for creating a task. /// /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, BuildTask buildTaskCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginCreateAsync(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, Task taskCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, buildTaskCreateParameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, taskName, taskCreateParameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a specified build task. + /// Deletes a specified task. /// /// /// The operations group for this extension method. @@ -383,16 +363,16 @@ public static BuildTask BeginCreate(this IBuildTasksOperations operations, strin /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - public static void BeginDelete(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName) + public static void BeginDelete(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName) { - operations.BeginDeleteAsync(resourceGroupName, registryName, buildTaskName).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(resourceGroupName, registryName, taskName).GetAwaiter().GetResult(); } /// - /// Deletes a specified build task. + /// Deletes a specified task. /// /// /// The operations group for this extension method. @@ -403,19 +383,19 @@ public static void BeginDelete(this IBuildTasksOperations operations, string res /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginDeleteAsync(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, taskName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Updates a build task with the specified parameters. + /// Updates a task with the specified parameters. /// /// /// The operations group for this extension method. @@ -426,19 +406,19 @@ public static void BeginDelete(this IBuildTasksOperations operations, string res /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for updating a build task. + /// + /// The parameters for updating a task. /// - public static BuildTask BeginUpdate(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, BuildTaskUpdateParameters buildTaskUpdateParameters) + public static Task BeginUpdate(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, TaskUpdateParameters taskUpdateParameters) { - return operations.BeginUpdateAsync(resourceGroupName, registryName, buildTaskName, buildTaskUpdateParameters).GetAwaiter().GetResult(); + return operations.BeginUpdateAsync(resourceGroupName, registryName, taskName, taskUpdateParameters).GetAwaiter().GetResult(); } /// - /// Updates a build task with the specified parameters. + /// Updates a task with the specified parameters. /// /// /// The operations group for this extension method. @@ -449,25 +429,25 @@ public static BuildTask BeginUpdate(this IBuildTasksOperations operations, strin /// /// The name of the container registry. /// - /// - /// The name of the container registry build task. + /// + /// The name of the container registry task. /// - /// - /// The parameters for updating a build task. + /// + /// The parameters for updating a task. /// /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IBuildTasksOperations operations, string resourceGroupName, string registryName, string buildTaskName, BuildTaskUpdateParameters buildTaskUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginUpdateAsync(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, TaskUpdateParameters taskUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, buildTaskName, buildTaskUpdateParameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, taskName, taskUpdateParameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Lists all the build tasks for a specified container registry. + /// Lists all the tasks for a specified container registry. /// /// /// The operations group for this extension method. @@ -475,13 +455,13 @@ public static BuildTask BeginUpdate(this IBuildTasksOperations operations, strin /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListNext(this IBuildTasksOperations operations, string nextPageLink) + public static IPage ListNext(this ITasksOperations operations, string nextPageLink) { return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Lists all the build tasks for a specified container registry. + /// Lists all the tasks for a specified container registry. /// /// /// The operations group for this extension method. @@ -492,7 +472,7 @@ public static IPage ListNext(this IBuildTasksOperations operations, s /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IBuildTasksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListNextAsync(this ITasksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperations.cs index 6739db459cc5..10473180ae01 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperations.cs @@ -20,7 +20,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry using System.Net; using System.Net.Http; using System.Threading; - using System.Threading.Tasks; /// /// WebhooksOperations operations. @@ -83,7 +82,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -304,7 +303,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookCreateParameters, customHeaders, cancellationToken).ConfigureAwait(false); @@ -329,7 +328,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, customHeaders, cancellationToken).ConfigureAwait(false); @@ -357,7 +356,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookUpdateParameters, customHeaders, cancellationToken).ConfigureAwait(false); @@ -394,7 +393,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -606,7 +605,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> PingWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> PingWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -839,7 +838,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetCallbackConfigWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> GetCallbackConfigWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1072,7 +1071,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListEventsWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListEventsWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1308,7 +1307,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1571,7 +1570,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1789,7 +1788,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2045,7 +2044,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -2218,7 +2217,7 @@ internal WebhooksOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListEventsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async System.Threading.Tasks.Task>> ListEventsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperationsExtensions.cs index 8d8d9df08e8f..ab2ddb4d590f 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperationsExtensions.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperationsExtensions.cs @@ -14,7 +14,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry using Microsoft.Rest.Azure; using Models; using System.Threading; - using System.Threading.Tasks; /// /// Extension methods for WebhooksOperations. @@ -59,7 +58,7 @@ public static Webhook Get(this IWebhooksOperations operations, string resourceGr /// /// The cancellation token. /// - public static async Task GetAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task GetAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)) { @@ -111,7 +110,7 @@ public static Webhook Create(this IWebhooksOperations operations, string resourc /// /// The cancellation token. /// - public static async Task CreateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task CreateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookCreateParameters, null, cancellationToken).ConfigureAwait(false)) { @@ -157,7 +156,7 @@ public static void Delete(this IWebhooksOperations operations, string resourceGr /// /// The cancellation token. /// - public static async Task DeleteAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task DeleteAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -206,7 +205,7 @@ public static Webhook Update(this IWebhooksOperations operations, string resourc /// /// The cancellation token. /// - public static async Task UpdateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task UpdateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookUpdateParameters, null, cancellationToken).ConfigureAwait(false)) { @@ -246,7 +245,7 @@ public static IPage List(this IWebhooksOperations operations, string re /// /// The cancellation token. /// - public static async Task> ListAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) { @@ -292,7 +291,7 @@ public static EventInfo Ping(this IWebhooksOperations operations, string resourc /// /// The cancellation token. /// - public static async Task PingAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task PingAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PingWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)) { @@ -338,7 +337,7 @@ public static CallbackConfig GetCallbackConfig(this IWebhooksOperations operatio /// /// The cancellation token. /// - public static async Task GetCallbackConfigAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task GetCallbackConfigAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetCallbackConfigWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)) { @@ -384,7 +383,7 @@ public static IPage ListEvents(this IWebhooksOperations operations, /// /// The cancellation token. /// - public static async Task> ListEventsAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListEventsAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListEventsWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)) { @@ -436,7 +435,7 @@ public static Webhook BeginCreate(this IWebhooksOperations operations, string re /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginCreateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookCreateParameters, null, cancellationToken).ConfigureAwait(false)) { @@ -482,7 +481,7 @@ public static void BeginDelete(this IWebhooksOperations operations, string resou /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginDeleteAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -531,7 +530,7 @@ public static Webhook BeginUpdate(this IWebhooksOperations operations, string re /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task BeginUpdateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookUpdateParameters, null, cancellationToken).ConfigureAwait(false)) { @@ -565,7 +564,7 @@ public static IPage ListNext(this IWebhooksOperations operations, strin /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IWebhooksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListNextAsync(this IWebhooksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { @@ -599,7 +598,7 @@ public static IPage ListEventsNext(this IWebhooksOperations operatio /// /// The cancellation token. /// - public static async Task> ListEventsNextAsync(this IWebhooksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async System.Threading.Tasks.Task> ListEventsNextAsync(this IWebhooksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListEventsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry.csproj b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry.csproj index 5190a53f5c82..01cb73b4d14d 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry.csproj +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry.csproj @@ -6,14 +6,13 @@ Microsoft.Azure.Management.ContainerRegistry Provides management capabilities for Azure Container Registry. - 2.8.0-preview + 3.0.0 Microsoft.Azure.Management.ContainerRegistry Microsoft Azure Container Registry;Container Registry; diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Properties/AssemblyInfo.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Properties/AssemblyInfo.cs index 63dc3774e673..480c96052467 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Properties/AssemblyInfo.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure Container Registry Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Container Registry.")] -[assembly: AssemblyVersion("2.0.0.0")] -[assembly: AssemblyFileVersion("2.8.0.0")] +[assembly: AssemblyVersion("3.0.0.0")] +[assembly: AssemblyFileVersion("3.0.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] diff --git a/src/SDKs/_metadata/containerregistry_resource-manager.txt b/src/SDKs/_metadata/containerregistry_resource-manager.txt index 562c3df404de..f5bbc657e841 100644 --- a/src/SDKs/_metadata/containerregistry_resource-manager.txt +++ b/src/SDKs/_metadata/containerregistry_resource-manager.txt @@ -1,9 +1,9 @@ -2018-08-04 02:42:27 UTC +2018-10-02 17:14:52 UTC 1) azure-rest-api-specs repository information GitHub user: Azure Branch: master -Commit: 6b16c82331f65580318bced2d4fe47b5be2e207e +Commit: 6828c10e04fcfcce8f90f6c09beb05ef4b496804 2) AutoRest information Requested version: latest