azure_mgmt_container_registry 0.17.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb +7 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/target.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_container_registry.rb +15 -11
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/default_action.rb +16 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/import_source.rb +27 -2
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/import_source_credentials.rb +59 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/network_rule_set.rb +69 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/registry.rb +12 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/registry_update_parameters.rb +12 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/virtual_network_rule.rb +47 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/registries.rb +11 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/replications.rb +5 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/webhooks.rb +8 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry.rb +72 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/build_steps.rb +1147 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/build_tasks.rb +971 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/builds.rb +766 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +143 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency.rb +91 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb +17 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build.rb +239 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_argument.rb +84 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_argument_list.rb +99 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_filter.rb +129 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_get_log_result.rb +46 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_list_result.rb +99 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_status.rb +22 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step.rb +76 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_list.rb +99 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_properties.rb +60 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_properties_update_parameters.rb +46 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_update_parameters.rb +69 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task.rb +178 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_build_request.rb +62 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_filter.rb +46 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_list_result.rb +99 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_status.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_update_parameters.rb +118 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_type.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_update_parameters.rb +47 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb +197 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +163 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/git_commit_trigger.rb +90 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/image_descriptor.rb +79 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/image_update_trigger.rb +78 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/os_type.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/platform_properties.rb +59 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/queue_build_request.rb +47 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/quick_build_request.rb +173 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_control_auth_info.rb +92 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_control_type.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_repository_properties.rb +84 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_repository_update_parameters.rb +60 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_upload_definition.rb +58 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/token_type.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/registries.rb +287 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry.rb +86 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +139 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/agent_properties.rb +47 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/architecture.rb +17 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/argument.rb +70 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/auth_info.rb +92 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/auth_info_update_parameters.rb +92 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_dependency.rb +91 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger.rb +70 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger_update_parameters.rb +70 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb +193 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step.rb +163 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +142 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb +159 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_step.rb +129 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_step_update_parameters.rb +111 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_run_request.rb +159 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_step.rb +129 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_step_update_parameters.rb +111 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/image_descriptor.rb +79 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/image_update_trigger.rb +78 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/os.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/platform_properties.rb +71 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/platform_update_parameters.rb +71 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run.rb +252 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_filter.rb +129 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_get_log_result.rb +47 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_list_result.rb +99 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_request.rb +62 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_status.rb +22 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_type.rb +18 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_update_parameters.rb +47 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/set_value.rb +71 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_control_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_properties.rb +83 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger.rb +91 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_descriptor.rb +112 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_event.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_update_parameters.rb +91 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_update_parameters.rb +83 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_upload_definition.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task.rb +193 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_list_result.rb +99 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_run_request.rb +91 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_status.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_step_properties.rb +94 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_step_update_parameters.rb +72 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_update_parameters.rb +130 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/token_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/trigger_properties.rb +69 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/trigger_status.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/trigger_update_parameters.rb +69 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/variant.rb +17 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/registries.rb +289 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/runs.rb +766 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/tasks.rb +938 -0
- data/lib/azure_mgmt_container_registry.rb +2 -0
- data/lib/profiles/latest/modules/containerregistry_profile_module.rb +288 -44
- data/lib/version.rb +1 -1
- metadata +116 -2
@@ -216,6 +216,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
216
216
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
217
217
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
218
218
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
219
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
219
220
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
220
221
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
221
222
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -445,6 +446,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
445
446
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
446
447
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
447
448
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
449
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
448
450
|
|
449
451
|
|
450
452
|
request_headers = {}
|
@@ -623,6 +625,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
623
625
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
624
626
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
625
627
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
628
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
626
629
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
627
630
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
628
631
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -733,6 +736,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
733
736
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
734
737
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
735
738
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
739
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
736
740
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
737
741
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
738
742
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -839,6 +843,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
839
843
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
840
844
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
841
845
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
846
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
842
847
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
843
848
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
844
849
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -937,6 +942,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
937
942
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
938
943
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
939
944
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
945
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
940
946
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
941
947
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
942
948
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -1091,6 +1097,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
1091
1097
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1092
1098
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1093
1099
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1100
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1094
1101
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
1095
1102
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
1096
1103
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -1190,6 +1197,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
1190
1197
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1191
1198
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1192
1199
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1200
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1193
1201
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
1194
1202
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
1195
1203
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -1305,6 +1313,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
1305
1313
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1306
1314
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1307
1315
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1316
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1308
1317
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
1309
1318
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
1310
1319
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -1399,6 +1408,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
1399
1408
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1400
1409
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1401
1410
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1411
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1402
1412
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
1403
1413
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
1404
1414
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -1521,6 +1531,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
1521
1531
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1522
1532
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1523
1533
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1534
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1524
1535
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
1525
1536
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
1526
1537
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -70,6 +70,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
70
70
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
71
71
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
72
72
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
73
74
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
74
75
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
75
76
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -312,6 +313,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
312
313
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
313
314
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
314
315
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
316
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
315
317
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
316
318
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
317
319
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -416,6 +418,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
416
418
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
417
419
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
418
420
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
421
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
419
422
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
420
423
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
421
424
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -538,6 +541,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
538
541
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
539
542
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
540
543
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
544
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
541
545
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
542
546
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
543
547
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -639,6 +643,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
639
643
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
640
644
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
641
645
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
646
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
642
647
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
643
648
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
644
649
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -70,6 +70,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
70
70
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
71
71
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
72
72
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
73
74
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
74
75
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
75
76
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -314,6 +315,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
314
315
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
315
316
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
316
317
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
318
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
317
319
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
318
320
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
319
321
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -415,6 +417,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
415
417
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
416
418
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
417
419
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
420
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
418
421
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
419
422
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
420
423
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -520,6 +523,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
520
523
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
521
524
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
522
525
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
526
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
523
527
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
524
528
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
525
529
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -625,6 +629,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
625
629
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
626
630
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
627
631
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
632
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
628
633
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
629
634
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
630
635
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -736,6 +741,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
736
741
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
737
742
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
738
743
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
744
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
739
745
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
740
746
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
741
747
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -858,6 +864,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
858
864
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
859
865
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
860
866
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
867
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
861
868
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
862
869
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
863
870
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -959,6 +966,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01
|
|
959
966
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
960
967
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
961
968
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
969
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
962
970
|
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
963
971
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
964
972
|
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2018-02-01-preview/generated/azure_mgmt_container_registry/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::ContainerRegistry::Mgmt::V2018_02_01_preview
|
23
|
+
autoload :Builds, '2018-02-01-preview/generated/azure_mgmt_container_registry/builds.rb'
|
24
|
+
autoload :BuildSteps, '2018-02-01-preview/generated/azure_mgmt_container_registry/build_steps.rb'
|
25
|
+
autoload :BuildTasks, '2018-02-01-preview/generated/azure_mgmt_container_registry/build_tasks.rb'
|
26
|
+
autoload :Registries, '2018-02-01-preview/generated/azure_mgmt_container_registry/registries.rb'
|
27
|
+
autoload :ContainerRegistryManagementClient, '2018-02-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb'
|
28
|
+
|
29
|
+
module Models
|
30
|
+
autoload :SourceControlAuthInfo, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_control_auth_info.rb'
|
31
|
+
autoload :ImageDescriptor, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/image_descriptor.rb'
|
32
|
+
autoload :SourceRepositoryProperties, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_repository_properties.rb'
|
33
|
+
autoload :GitCommitTrigger, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/git_commit_trigger.rb'
|
34
|
+
autoload :BuildArgumentList, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_argument_list.rb'
|
35
|
+
autoload :ImageUpdateTrigger, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/image_update_trigger.rb'
|
36
|
+
autoload :BuildListResult, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_list_result.rb'
|
37
|
+
autoload :PlatformProperties, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/platform_properties.rb'
|
38
|
+
autoload :BuildUpdateParameters, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_update_parameters.rb'
|
39
|
+
autoload :BuildStepProperties, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_properties.rb'
|
40
|
+
autoload :BuildTaskListResult, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_list_result.rb'
|
41
|
+
autoload :BuildStepList, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_list.rb'
|
42
|
+
autoload :BuildTaskFilter, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_filter.rb'
|
43
|
+
autoload :BuildStepUpdateParameters, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_update_parameters.rb'
|
44
|
+
autoload :SourceRepositoryUpdateParameters, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_repository_update_parameters.rb'
|
45
|
+
autoload :BuildArgument, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_argument.rb'
|
46
|
+
autoload :ProxyResource, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/proxy_resource.rb'
|
47
|
+
autoload :BuildGetLogResult, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_get_log_result.rb'
|
48
|
+
autoload :BuildTaskUpdateParameters, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_update_parameters.rb'
|
49
|
+
autoload :BuildStepPropertiesUpdateParameters, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_properties_update_parameters.rb'
|
50
|
+
autoload :QueueBuildRequest, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/queue_build_request.rb'
|
51
|
+
autoload :BaseImageDependency, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency.rb'
|
52
|
+
autoload :SourceUploadDefinition, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_upload_definition.rb'
|
53
|
+
autoload :BuildFilter, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_filter.rb'
|
54
|
+
autoload :Resource, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/resource.rb'
|
55
|
+
autoload :Build, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build.rb'
|
56
|
+
autoload :BuildStep, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step.rb'
|
57
|
+
autoload :BuildTask, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task.rb'
|
58
|
+
autoload :DockerBuildStep, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb'
|
59
|
+
autoload :DockerBuildStepUpdateParameters, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb'
|
60
|
+
autoload :BuildTaskBuildRequest, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_build_request.rb'
|
61
|
+
autoload :QuickBuildRequest, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/quick_build_request.rb'
|
62
|
+
autoload :BuildStatus, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_status.rb'
|
63
|
+
autoload :BuildType, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_type.rb'
|
64
|
+
autoload :OsType, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/os_type.rb'
|
65
|
+
autoload :ProvisioningState, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/provisioning_state.rb'
|
66
|
+
autoload :BuildTaskStatus, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_status.rb'
|
67
|
+
autoload :SourceControlType, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_control_type.rb'
|
68
|
+
autoload :TokenType, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/token_type.rb'
|
69
|
+
autoload :BaseImageDependencyType, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb'
|
70
|
+
autoload :BaseImageTriggerType, '2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb'
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,1147 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ContainerRegistry::Mgmt::V2018_02_01_preview
|
7
|
+
#
|
8
|
+
# BuildSteps
|
9
|
+
#
|
10
|
+
class BuildSteps
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the BuildSteps class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [ContainerRegistryManagementClient] reference to the ContainerRegistryManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# List all the build steps for a given build task.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group to which
|
28
|
+
# the container registry belongs.
|
29
|
+
# @param registry_name [String] The name of the container registry.
|
30
|
+
# @param build_task_name [String] The name of the container registry build
|
31
|
+
# task.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [Array<BuildStep>] operation results.
|
36
|
+
#
|
37
|
+
def list(resource_group_name, registry_name, build_task_name, custom_headers:nil)
|
38
|
+
first_page = list_as_lazy(resource_group_name, registry_name, build_task_name, custom_headers:custom_headers)
|
39
|
+
first_page.get_all_items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# List all the build steps for a given build task.
|
44
|
+
#
|
45
|
+
# @param resource_group_name [String] The name of the resource group to which
|
46
|
+
# the container registry belongs.
|
47
|
+
# @param registry_name [String] The name of the container registry.
|
48
|
+
# @param build_task_name [String] The name of the container registry build
|
49
|
+
# task.
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def list_with_http_info(resource_group_name, registry_name, build_task_name, custom_headers:nil)
|
56
|
+
list_async(resource_group_name, registry_name, build_task_name, custom_headers:custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# List all the build steps for a given build task.
|
61
|
+
#
|
62
|
+
# @param resource_group_name [String] The name of the resource group to which
|
63
|
+
# the container registry belongs.
|
64
|
+
# @param registry_name [String] The name of the container registry.
|
65
|
+
# @param build_task_name [String] The name of the container registry build
|
66
|
+
# task.
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
+
# to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
+
#
|
72
|
+
def list_async(resource_group_name, registry_name, build_task_name, custom_headers:nil)
|
73
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
74
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
75
|
+
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
76
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
77
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
78
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !registry_name.nil? && registry_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
79
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
80
|
+
fail ArgumentError, 'build_task_name is nil' if build_task_name.nil?
|
81
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MaxLength': '50'" if !build_task_name.nil? && build_task_name.length > 50
|
82
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MinLength': '5'" if !build_task_name.nil? && build_task_name.length < 5
|
83
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !build_task_name.nil? && build_task_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
84
|
+
|
85
|
+
|
86
|
+
request_headers = {}
|
87
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
88
|
+
|
89
|
+
# Set Headers
|
90
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
91
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
92
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps'
|
93
|
+
|
94
|
+
request_url = @base_url || @client.base_url
|
95
|
+
|
96
|
+
options = {
|
97
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
98
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'buildTaskName' => build_task_name},
|
99
|
+
query_params: {'api-version' => @client.api_version},
|
100
|
+
headers: request_headers.merge(custom_headers || {}),
|
101
|
+
base_url: request_url
|
102
|
+
}
|
103
|
+
promise = @client.make_request_async(:get, path_template, options)
|
104
|
+
|
105
|
+
promise = promise.then do |result|
|
106
|
+
http_response = result.response
|
107
|
+
status_code = http_response.status
|
108
|
+
response_content = http_response.body
|
109
|
+
unless status_code == 200
|
110
|
+
error_model = JSON.load(response_content)
|
111
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
112
|
+
end
|
113
|
+
|
114
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
115
|
+
# Deserialize Response
|
116
|
+
if status_code == 200
|
117
|
+
begin
|
118
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
119
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStepList.mapper()
|
120
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
121
|
+
rescue Exception => e
|
122
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
result
|
127
|
+
end
|
128
|
+
|
129
|
+
promise.execute
|
130
|
+
end
|
131
|
+
|
132
|
+
#
|
133
|
+
# Gets the build step for a build task.
|
134
|
+
#
|
135
|
+
# @param resource_group_name [String] The name of the resource group to which
|
136
|
+
# the container registry belongs.
|
137
|
+
# @param registry_name [String] The name of the container registry.
|
138
|
+
# @param build_task_name [String] The name of the container registry build
|
139
|
+
# task.
|
140
|
+
# @param step_name [String] The name of a build step for a container registry
|
141
|
+
# build task.
|
142
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
|
+
# will be added to the HTTP request.
|
144
|
+
#
|
145
|
+
# @return [BuildStep] operation results.
|
146
|
+
#
|
147
|
+
def get(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
148
|
+
response = get_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:custom_headers).value!
|
149
|
+
response.body unless response.nil?
|
150
|
+
end
|
151
|
+
|
152
|
+
#
|
153
|
+
# Gets the build step for a build task.
|
154
|
+
#
|
155
|
+
# @param resource_group_name [String] The name of the resource group to which
|
156
|
+
# the container registry belongs.
|
157
|
+
# @param registry_name [String] The name of the container registry.
|
158
|
+
# @param build_task_name [String] The name of the container registry build
|
159
|
+
# task.
|
160
|
+
# @param step_name [String] The name of a build step for a container registry
|
161
|
+
# build task.
|
162
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
163
|
+
# will be added to the HTTP request.
|
164
|
+
#
|
165
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
166
|
+
#
|
167
|
+
def get_with_http_info(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
168
|
+
get_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:custom_headers).value!
|
169
|
+
end
|
170
|
+
|
171
|
+
#
|
172
|
+
# Gets the build step for a build task.
|
173
|
+
#
|
174
|
+
# @param resource_group_name [String] The name of the resource group to which
|
175
|
+
# the container registry belongs.
|
176
|
+
# @param registry_name [String] The name of the container registry.
|
177
|
+
# @param build_task_name [String] The name of the container registry build
|
178
|
+
# task.
|
179
|
+
# @param step_name [String] The name of a build step for a container registry
|
180
|
+
# build task.
|
181
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
182
|
+
# to the HTTP request.
|
183
|
+
#
|
184
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
185
|
+
#
|
186
|
+
def get_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
187
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
188
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
189
|
+
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
190
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
191
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
192
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !registry_name.nil? && registry_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
193
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
194
|
+
fail ArgumentError, 'build_task_name is nil' if build_task_name.nil?
|
195
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MaxLength': '50'" if !build_task_name.nil? && build_task_name.length > 50
|
196
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MinLength': '5'" if !build_task_name.nil? && build_task_name.length < 5
|
197
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !build_task_name.nil? && build_task_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
198
|
+
fail ArgumentError, 'step_name is nil' if step_name.nil?
|
199
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'MaxLength': '50'" if !step_name.nil? && step_name.length > 50
|
200
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'MinLength': '5'" if !step_name.nil? && step_name.length < 5
|
201
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !step_name.nil? && step_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
202
|
+
|
203
|
+
|
204
|
+
request_headers = {}
|
205
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
206
|
+
|
207
|
+
# Set Headers
|
208
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
209
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
210
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps/{stepName}'
|
211
|
+
|
212
|
+
request_url = @base_url || @client.base_url
|
213
|
+
|
214
|
+
options = {
|
215
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
216
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'buildTaskName' => build_task_name,'stepName' => step_name},
|
217
|
+
query_params: {'api-version' => @client.api_version},
|
218
|
+
headers: request_headers.merge(custom_headers || {}),
|
219
|
+
base_url: request_url
|
220
|
+
}
|
221
|
+
promise = @client.make_request_async(:get, path_template, options)
|
222
|
+
|
223
|
+
promise = promise.then do |result|
|
224
|
+
http_response = result.response
|
225
|
+
status_code = http_response.status
|
226
|
+
response_content = http_response.body
|
227
|
+
unless status_code == 200
|
228
|
+
error_model = JSON.load(response_content)
|
229
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
230
|
+
end
|
231
|
+
|
232
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
233
|
+
# Deserialize Response
|
234
|
+
if status_code == 200
|
235
|
+
begin
|
236
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
237
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStep.mapper()
|
238
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
239
|
+
rescue Exception => e
|
240
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
result
|
245
|
+
end
|
246
|
+
|
247
|
+
promise.execute
|
248
|
+
end
|
249
|
+
|
250
|
+
#
|
251
|
+
# Creates a build step for a build task.
|
252
|
+
#
|
253
|
+
# @param resource_group_name [String] The name of the resource group to which
|
254
|
+
# the container registry belongs.
|
255
|
+
# @param registry_name [String] The name of the container registry.
|
256
|
+
# @param build_task_name [String] The name of the container registry build
|
257
|
+
# task.
|
258
|
+
# @param step_name [String] The name of a build step for a container registry
|
259
|
+
# build task.
|
260
|
+
# @param build_step_create_parameters [BuildStep] The parameters for creating a
|
261
|
+
# build step.
|
262
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
263
|
+
# will be added to the HTTP request.
|
264
|
+
#
|
265
|
+
# @return [BuildStep] operation results.
|
266
|
+
#
|
267
|
+
def create(resource_group_name, registry_name, build_task_name, step_name, build_step_create_parameters, custom_headers:nil)
|
268
|
+
response = create_async(resource_group_name, registry_name, build_task_name, step_name, build_step_create_parameters, custom_headers:custom_headers).value!
|
269
|
+
response.body unless response.nil?
|
270
|
+
end
|
271
|
+
|
272
|
+
#
|
273
|
+
# @param resource_group_name [String] The name of the resource group to which
|
274
|
+
# the container registry belongs.
|
275
|
+
# @param registry_name [String] The name of the container registry.
|
276
|
+
# @param build_task_name [String] The name of the container registry build
|
277
|
+
# task.
|
278
|
+
# @param step_name [String] The name of a build step for a container registry
|
279
|
+
# build task.
|
280
|
+
# @param build_step_create_parameters [BuildStep] The parameters for creating a
|
281
|
+
# build step.
|
282
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
283
|
+
# will be added to the HTTP request.
|
284
|
+
#
|
285
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
286
|
+
# response.
|
287
|
+
#
|
288
|
+
def create_async(resource_group_name, registry_name, build_task_name, step_name, build_step_create_parameters, custom_headers:nil)
|
289
|
+
# Send request
|
290
|
+
promise = begin_create_async(resource_group_name, registry_name, build_task_name, step_name, build_step_create_parameters, custom_headers:custom_headers)
|
291
|
+
|
292
|
+
promise = promise.then do |response|
|
293
|
+
# Defining deserialization method.
|
294
|
+
deserialize_method = lambda do |parsed_response|
|
295
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStep.mapper()
|
296
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
297
|
+
end
|
298
|
+
|
299
|
+
# Waiting for response.
|
300
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
301
|
+
end
|
302
|
+
|
303
|
+
promise
|
304
|
+
end
|
305
|
+
|
306
|
+
#
|
307
|
+
# Deletes a build step from the build task.
|
308
|
+
#
|
309
|
+
# @param resource_group_name [String] The name of the resource group to which
|
310
|
+
# the container registry belongs.
|
311
|
+
# @param registry_name [String] The name of the container registry.
|
312
|
+
# @param build_task_name [String] The name of the container registry build
|
313
|
+
# task.
|
314
|
+
# @param step_name [String] The name of a build step for a container registry
|
315
|
+
# build task.
|
316
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
317
|
+
# will be added to the HTTP request.
|
318
|
+
#
|
319
|
+
def delete(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
320
|
+
response = delete_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:custom_headers).value!
|
321
|
+
nil
|
322
|
+
end
|
323
|
+
|
324
|
+
#
|
325
|
+
# @param resource_group_name [String] The name of the resource group to which
|
326
|
+
# the container registry belongs.
|
327
|
+
# @param registry_name [String] The name of the container registry.
|
328
|
+
# @param build_task_name [String] The name of the container registry build
|
329
|
+
# task.
|
330
|
+
# @param step_name [String] The name of a build step for a container registry
|
331
|
+
# build task.
|
332
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
333
|
+
# will be added to the HTTP request.
|
334
|
+
#
|
335
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
336
|
+
# response.
|
337
|
+
#
|
338
|
+
def delete_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
339
|
+
# Send request
|
340
|
+
promise = begin_delete_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:custom_headers)
|
341
|
+
|
342
|
+
promise = promise.then do |response|
|
343
|
+
# Defining deserialization method.
|
344
|
+
deserialize_method = lambda do |parsed_response|
|
345
|
+
end
|
346
|
+
|
347
|
+
# Waiting for response.
|
348
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
349
|
+
end
|
350
|
+
|
351
|
+
promise
|
352
|
+
end
|
353
|
+
|
354
|
+
#
|
355
|
+
# Updates a build step in a build task.
|
356
|
+
#
|
357
|
+
# @param resource_group_name [String] The name of the resource group to which
|
358
|
+
# the container registry belongs.
|
359
|
+
# @param registry_name [String] The name of the container registry.
|
360
|
+
# @param build_task_name [String] The name of the container registry build
|
361
|
+
# task.
|
362
|
+
# @param step_name [String] The name of a build step for a container registry
|
363
|
+
# build task.
|
364
|
+
# @param build_step_update_parameters [BuildStepUpdateParameters] The
|
365
|
+
# parameters for updating a build step.
|
366
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
367
|
+
# will be added to the HTTP request.
|
368
|
+
#
|
369
|
+
# @return [BuildStep] operation results.
|
370
|
+
#
|
371
|
+
def update(resource_group_name, registry_name, build_task_name, step_name, build_step_update_parameters, custom_headers:nil)
|
372
|
+
response = update_async(resource_group_name, registry_name, build_task_name, step_name, build_step_update_parameters, custom_headers:custom_headers).value!
|
373
|
+
response.body unless response.nil?
|
374
|
+
end
|
375
|
+
|
376
|
+
#
|
377
|
+
# @param resource_group_name [String] The name of the resource group to which
|
378
|
+
# the container registry belongs.
|
379
|
+
# @param registry_name [String] The name of the container registry.
|
380
|
+
# @param build_task_name [String] The name of the container registry build
|
381
|
+
# task.
|
382
|
+
# @param step_name [String] The name of a build step for a container registry
|
383
|
+
# build task.
|
384
|
+
# @param build_step_update_parameters [BuildStepUpdateParameters] The
|
385
|
+
# parameters for updating a build step.
|
386
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
387
|
+
# will be added to the HTTP request.
|
388
|
+
#
|
389
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
390
|
+
# response.
|
391
|
+
#
|
392
|
+
def update_async(resource_group_name, registry_name, build_task_name, step_name, build_step_update_parameters, custom_headers:nil)
|
393
|
+
# Send request
|
394
|
+
promise = begin_update_async(resource_group_name, registry_name, build_task_name, step_name, build_step_update_parameters, custom_headers:custom_headers)
|
395
|
+
|
396
|
+
promise = promise.then do |response|
|
397
|
+
# Defining deserialization method.
|
398
|
+
deserialize_method = lambda do |parsed_response|
|
399
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStep.mapper()
|
400
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
401
|
+
end
|
402
|
+
|
403
|
+
# Waiting for response.
|
404
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
405
|
+
end
|
406
|
+
|
407
|
+
promise
|
408
|
+
end
|
409
|
+
|
410
|
+
#
|
411
|
+
# List the build arguments for a step including the secret arguments.
|
412
|
+
#
|
413
|
+
# @param resource_group_name [String] The name of the resource group to which
|
414
|
+
# the container registry belongs.
|
415
|
+
# @param registry_name [String] The name of the container registry.
|
416
|
+
# @param build_task_name [String] The name of the container registry build
|
417
|
+
# task.
|
418
|
+
# @param step_name [String] The name of a build step for a container registry
|
419
|
+
# build task.
|
420
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
421
|
+
# will be added to the HTTP request.
|
422
|
+
#
|
423
|
+
# @return [Array<BuildArgument>] operation results.
|
424
|
+
#
|
425
|
+
def list_build_arguments(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
426
|
+
first_page = list_build_arguments_as_lazy(resource_group_name, registry_name, build_task_name, step_name, custom_headers:custom_headers)
|
427
|
+
first_page.get_all_items
|
428
|
+
end
|
429
|
+
|
430
|
+
#
|
431
|
+
# List the build arguments for a step including the secret arguments.
|
432
|
+
#
|
433
|
+
# @param resource_group_name [String] The name of the resource group to which
|
434
|
+
# the container registry belongs.
|
435
|
+
# @param registry_name [String] The name of the container registry.
|
436
|
+
# @param build_task_name [String] The name of the container registry build
|
437
|
+
# task.
|
438
|
+
# @param step_name [String] The name of a build step for a container registry
|
439
|
+
# build task.
|
440
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
441
|
+
# will be added to the HTTP request.
|
442
|
+
#
|
443
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
444
|
+
#
|
445
|
+
def list_build_arguments_with_http_info(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
446
|
+
list_build_arguments_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:custom_headers).value!
|
447
|
+
end
|
448
|
+
|
449
|
+
#
|
450
|
+
# List the build arguments for a step including the secret arguments.
|
451
|
+
#
|
452
|
+
# @param resource_group_name [String] The name of the resource group to which
|
453
|
+
# the container registry belongs.
|
454
|
+
# @param registry_name [String] The name of the container registry.
|
455
|
+
# @param build_task_name [String] The name of the container registry build
|
456
|
+
# task.
|
457
|
+
# @param step_name [String] The name of a build step for a container registry
|
458
|
+
# build task.
|
459
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
460
|
+
# to the HTTP request.
|
461
|
+
#
|
462
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
463
|
+
#
|
464
|
+
def list_build_arguments_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
465
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
466
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
467
|
+
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
468
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
469
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
470
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !registry_name.nil? && registry_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
471
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
472
|
+
fail ArgumentError, 'build_task_name is nil' if build_task_name.nil?
|
473
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MaxLength': '50'" if !build_task_name.nil? && build_task_name.length > 50
|
474
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MinLength': '5'" if !build_task_name.nil? && build_task_name.length < 5
|
475
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !build_task_name.nil? && build_task_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
476
|
+
fail ArgumentError, 'step_name is nil' if step_name.nil?
|
477
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'MaxLength': '50'" if !step_name.nil? && step_name.length > 50
|
478
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'MinLength': '5'" if !step_name.nil? && step_name.length < 5
|
479
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !step_name.nil? && step_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
480
|
+
|
481
|
+
|
482
|
+
request_headers = {}
|
483
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
484
|
+
|
485
|
+
# Set Headers
|
486
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
487
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
488
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps/{stepName}/listBuildArguments'
|
489
|
+
|
490
|
+
request_url = @base_url || @client.base_url
|
491
|
+
|
492
|
+
options = {
|
493
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
494
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'buildTaskName' => build_task_name,'stepName' => step_name},
|
495
|
+
query_params: {'api-version' => @client.api_version},
|
496
|
+
headers: request_headers.merge(custom_headers || {}),
|
497
|
+
base_url: request_url
|
498
|
+
}
|
499
|
+
promise = @client.make_request_async(:post, path_template, options)
|
500
|
+
|
501
|
+
promise = promise.then do |result|
|
502
|
+
http_response = result.response
|
503
|
+
status_code = http_response.status
|
504
|
+
response_content = http_response.body
|
505
|
+
unless status_code == 200
|
506
|
+
error_model = JSON.load(response_content)
|
507
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
508
|
+
end
|
509
|
+
|
510
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
511
|
+
# Deserialize Response
|
512
|
+
if status_code == 200
|
513
|
+
begin
|
514
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
515
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildArgumentList.mapper()
|
516
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
517
|
+
rescue Exception => e
|
518
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
519
|
+
end
|
520
|
+
end
|
521
|
+
|
522
|
+
result
|
523
|
+
end
|
524
|
+
|
525
|
+
promise.execute
|
526
|
+
end
|
527
|
+
|
528
|
+
#
|
529
|
+
# Creates a build step for a build task.
|
530
|
+
#
|
531
|
+
# @param resource_group_name [String] The name of the resource group to which
|
532
|
+
# the container registry belongs.
|
533
|
+
# @param registry_name [String] The name of the container registry.
|
534
|
+
# @param build_task_name [String] The name of the container registry build
|
535
|
+
# task.
|
536
|
+
# @param step_name [String] The name of a build step for a container registry
|
537
|
+
# build task.
|
538
|
+
# @param build_step_create_parameters [BuildStep] The parameters for creating a
|
539
|
+
# build step.
|
540
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
541
|
+
# will be added to the HTTP request.
|
542
|
+
#
|
543
|
+
# @return [BuildStep] operation results.
|
544
|
+
#
|
545
|
+
def begin_create(resource_group_name, registry_name, build_task_name, step_name, build_step_create_parameters, custom_headers:nil)
|
546
|
+
response = begin_create_async(resource_group_name, registry_name, build_task_name, step_name, build_step_create_parameters, custom_headers:custom_headers).value!
|
547
|
+
response.body unless response.nil?
|
548
|
+
end
|
549
|
+
|
550
|
+
#
|
551
|
+
# Creates a build step for a build task.
|
552
|
+
#
|
553
|
+
# @param resource_group_name [String] The name of the resource group to which
|
554
|
+
# the container registry belongs.
|
555
|
+
# @param registry_name [String] The name of the container registry.
|
556
|
+
# @param build_task_name [String] The name of the container registry build
|
557
|
+
# task.
|
558
|
+
# @param step_name [String] The name of a build step for a container registry
|
559
|
+
# build task.
|
560
|
+
# @param build_step_create_parameters [BuildStep] The parameters for creating a
|
561
|
+
# build step.
|
562
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
563
|
+
# will be added to the HTTP request.
|
564
|
+
#
|
565
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
566
|
+
#
|
567
|
+
def begin_create_with_http_info(resource_group_name, registry_name, build_task_name, step_name, build_step_create_parameters, custom_headers:nil)
|
568
|
+
begin_create_async(resource_group_name, registry_name, build_task_name, step_name, build_step_create_parameters, custom_headers:custom_headers).value!
|
569
|
+
end
|
570
|
+
|
571
|
+
#
|
572
|
+
# Creates a build step for a build task.
|
573
|
+
#
|
574
|
+
# @param resource_group_name [String] The name of the resource group to which
|
575
|
+
# the container registry belongs.
|
576
|
+
# @param registry_name [String] The name of the container registry.
|
577
|
+
# @param build_task_name [String] The name of the container registry build
|
578
|
+
# task.
|
579
|
+
# @param step_name [String] The name of a build step for a container registry
|
580
|
+
# build task.
|
581
|
+
# @param build_step_create_parameters [BuildStep] The parameters for creating a
|
582
|
+
# build step.
|
583
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
584
|
+
# to the HTTP request.
|
585
|
+
#
|
586
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
587
|
+
#
|
588
|
+
def begin_create_async(resource_group_name, registry_name, build_task_name, step_name, build_step_create_parameters, custom_headers:nil)
|
589
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
590
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
591
|
+
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
592
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
593
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
594
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !registry_name.nil? && registry_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
595
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
596
|
+
fail ArgumentError, 'build_task_name is nil' if build_task_name.nil?
|
597
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MaxLength': '50'" if !build_task_name.nil? && build_task_name.length > 50
|
598
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MinLength': '5'" if !build_task_name.nil? && build_task_name.length < 5
|
599
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !build_task_name.nil? && build_task_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
600
|
+
fail ArgumentError, 'step_name is nil' if step_name.nil?
|
601
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'MaxLength': '50'" if !step_name.nil? && step_name.length > 50
|
602
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'MinLength': '5'" if !step_name.nil? && step_name.length < 5
|
603
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !step_name.nil? && step_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
604
|
+
fail ArgumentError, 'build_step_create_parameters is nil' if build_step_create_parameters.nil?
|
605
|
+
|
606
|
+
|
607
|
+
request_headers = {}
|
608
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
609
|
+
|
610
|
+
# Set Headers
|
611
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
612
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
613
|
+
|
614
|
+
# Serialize Request
|
615
|
+
request_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStep.mapper()
|
616
|
+
request_content = @client.serialize(request_mapper, build_step_create_parameters)
|
617
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
618
|
+
|
619
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps/{stepName}'
|
620
|
+
|
621
|
+
request_url = @base_url || @client.base_url
|
622
|
+
|
623
|
+
options = {
|
624
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
625
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'buildTaskName' => build_task_name,'stepName' => step_name},
|
626
|
+
query_params: {'api-version' => @client.api_version},
|
627
|
+
body: request_content,
|
628
|
+
headers: request_headers.merge(custom_headers || {}),
|
629
|
+
base_url: request_url
|
630
|
+
}
|
631
|
+
promise = @client.make_request_async(:put, path_template, options)
|
632
|
+
|
633
|
+
promise = promise.then do |result|
|
634
|
+
http_response = result.response
|
635
|
+
status_code = http_response.status
|
636
|
+
response_content = http_response.body
|
637
|
+
unless status_code == 200 || status_code == 201
|
638
|
+
error_model = JSON.load(response_content)
|
639
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
640
|
+
end
|
641
|
+
|
642
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
643
|
+
# Deserialize Response
|
644
|
+
if status_code == 200
|
645
|
+
begin
|
646
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
647
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStep.mapper()
|
648
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
649
|
+
rescue Exception => e
|
650
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
651
|
+
end
|
652
|
+
end
|
653
|
+
# Deserialize Response
|
654
|
+
if status_code == 201
|
655
|
+
begin
|
656
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
657
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStep.mapper()
|
658
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
659
|
+
rescue Exception => e
|
660
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
661
|
+
end
|
662
|
+
end
|
663
|
+
|
664
|
+
result
|
665
|
+
end
|
666
|
+
|
667
|
+
promise.execute
|
668
|
+
end
|
669
|
+
|
670
|
+
#
|
671
|
+
# Deletes a build step from the build task.
|
672
|
+
#
|
673
|
+
# @param resource_group_name [String] The name of the resource group to which
|
674
|
+
# the container registry belongs.
|
675
|
+
# @param registry_name [String] The name of the container registry.
|
676
|
+
# @param build_task_name [String] The name of the container registry build
|
677
|
+
# task.
|
678
|
+
# @param step_name [String] The name of a build step for a container registry
|
679
|
+
# build task.
|
680
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
681
|
+
# will be added to the HTTP request.
|
682
|
+
#
|
683
|
+
#
|
684
|
+
def begin_delete(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
685
|
+
response = begin_delete_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:custom_headers).value!
|
686
|
+
nil
|
687
|
+
end
|
688
|
+
|
689
|
+
#
|
690
|
+
# Deletes a build step from the build task.
|
691
|
+
#
|
692
|
+
# @param resource_group_name [String] The name of the resource group to which
|
693
|
+
# the container registry belongs.
|
694
|
+
# @param registry_name [String] The name of the container registry.
|
695
|
+
# @param build_task_name [String] The name of the container registry build
|
696
|
+
# task.
|
697
|
+
# @param step_name [String] The name of a build step for a container registry
|
698
|
+
# build task.
|
699
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
700
|
+
# will be added to the HTTP request.
|
701
|
+
#
|
702
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
703
|
+
#
|
704
|
+
def begin_delete_with_http_info(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
705
|
+
begin_delete_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:custom_headers).value!
|
706
|
+
end
|
707
|
+
|
708
|
+
#
|
709
|
+
# Deletes a build step from the build task.
|
710
|
+
#
|
711
|
+
# @param resource_group_name [String] The name of the resource group to which
|
712
|
+
# the container registry belongs.
|
713
|
+
# @param registry_name [String] The name of the container registry.
|
714
|
+
# @param build_task_name [String] The name of the container registry build
|
715
|
+
# task.
|
716
|
+
# @param step_name [String] The name of a build step for a container registry
|
717
|
+
# build task.
|
718
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
719
|
+
# to the HTTP request.
|
720
|
+
#
|
721
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
722
|
+
#
|
723
|
+
def begin_delete_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
724
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
725
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
726
|
+
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
727
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
728
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
729
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !registry_name.nil? && registry_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
730
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
731
|
+
fail ArgumentError, 'build_task_name is nil' if build_task_name.nil?
|
732
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MaxLength': '50'" if !build_task_name.nil? && build_task_name.length > 50
|
733
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MinLength': '5'" if !build_task_name.nil? && build_task_name.length < 5
|
734
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !build_task_name.nil? && build_task_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
735
|
+
fail ArgumentError, 'step_name is nil' if step_name.nil?
|
736
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'MaxLength': '50'" if !step_name.nil? && step_name.length > 50
|
737
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'MinLength': '5'" if !step_name.nil? && step_name.length < 5
|
738
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !step_name.nil? && step_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
739
|
+
|
740
|
+
|
741
|
+
request_headers = {}
|
742
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
743
|
+
|
744
|
+
# Set Headers
|
745
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
746
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
747
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps/{stepName}'
|
748
|
+
|
749
|
+
request_url = @base_url || @client.base_url
|
750
|
+
|
751
|
+
options = {
|
752
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
753
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'buildTaskName' => build_task_name,'stepName' => step_name},
|
754
|
+
query_params: {'api-version' => @client.api_version},
|
755
|
+
headers: request_headers.merge(custom_headers || {}),
|
756
|
+
base_url: request_url
|
757
|
+
}
|
758
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
759
|
+
|
760
|
+
promise = promise.then do |result|
|
761
|
+
http_response = result.response
|
762
|
+
status_code = http_response.status
|
763
|
+
response_content = http_response.body
|
764
|
+
unless status_code == 200 || status_code == 202
|
765
|
+
error_model = JSON.load(response_content)
|
766
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
767
|
+
end
|
768
|
+
|
769
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
770
|
+
|
771
|
+
result
|
772
|
+
end
|
773
|
+
|
774
|
+
promise.execute
|
775
|
+
end
|
776
|
+
|
777
|
+
#
|
778
|
+
# Updates a build step in a build task.
|
779
|
+
#
|
780
|
+
# @param resource_group_name [String] The name of the resource group to which
|
781
|
+
# the container registry belongs.
|
782
|
+
# @param registry_name [String] The name of the container registry.
|
783
|
+
# @param build_task_name [String] The name of the container registry build
|
784
|
+
# task.
|
785
|
+
# @param step_name [String] The name of a build step for a container registry
|
786
|
+
# build task.
|
787
|
+
# @param build_step_update_parameters [BuildStepUpdateParameters] The
|
788
|
+
# parameters for updating a build step.
|
789
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
790
|
+
# will be added to the HTTP request.
|
791
|
+
#
|
792
|
+
# @return [BuildStep] operation results.
|
793
|
+
#
|
794
|
+
def begin_update(resource_group_name, registry_name, build_task_name, step_name, build_step_update_parameters, custom_headers:nil)
|
795
|
+
response = begin_update_async(resource_group_name, registry_name, build_task_name, step_name, build_step_update_parameters, custom_headers:custom_headers).value!
|
796
|
+
response.body unless response.nil?
|
797
|
+
end
|
798
|
+
|
799
|
+
#
|
800
|
+
# Updates a build step in a build task.
|
801
|
+
#
|
802
|
+
# @param resource_group_name [String] The name of the resource group to which
|
803
|
+
# the container registry belongs.
|
804
|
+
# @param registry_name [String] The name of the container registry.
|
805
|
+
# @param build_task_name [String] The name of the container registry build
|
806
|
+
# task.
|
807
|
+
# @param step_name [String] The name of a build step for a container registry
|
808
|
+
# build task.
|
809
|
+
# @param build_step_update_parameters [BuildStepUpdateParameters] The
|
810
|
+
# parameters for updating a build step.
|
811
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
812
|
+
# will be added to the HTTP request.
|
813
|
+
#
|
814
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
815
|
+
#
|
816
|
+
def begin_update_with_http_info(resource_group_name, registry_name, build_task_name, step_name, build_step_update_parameters, custom_headers:nil)
|
817
|
+
begin_update_async(resource_group_name, registry_name, build_task_name, step_name, build_step_update_parameters, custom_headers:custom_headers).value!
|
818
|
+
end
|
819
|
+
|
820
|
+
#
|
821
|
+
# Updates a build step in a build task.
|
822
|
+
#
|
823
|
+
# @param resource_group_name [String] The name of the resource group to which
|
824
|
+
# the container registry belongs.
|
825
|
+
# @param registry_name [String] The name of the container registry.
|
826
|
+
# @param build_task_name [String] The name of the container registry build
|
827
|
+
# task.
|
828
|
+
# @param step_name [String] The name of a build step for a container registry
|
829
|
+
# build task.
|
830
|
+
# @param build_step_update_parameters [BuildStepUpdateParameters] The
|
831
|
+
# parameters for updating a build step.
|
832
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
833
|
+
# to the HTTP request.
|
834
|
+
#
|
835
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
836
|
+
#
|
837
|
+
def begin_update_async(resource_group_name, registry_name, build_task_name, step_name, build_step_update_parameters, custom_headers:nil)
|
838
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
839
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
840
|
+
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
841
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
842
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
843
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !registry_name.nil? && registry_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
844
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
845
|
+
fail ArgumentError, 'build_task_name is nil' if build_task_name.nil?
|
846
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MaxLength': '50'" if !build_task_name.nil? && build_task_name.length > 50
|
847
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'MinLength': '5'" if !build_task_name.nil? && build_task_name.length < 5
|
848
|
+
fail ArgumentError, "'build_task_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !build_task_name.nil? && build_task_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
849
|
+
fail ArgumentError, 'step_name is nil' if step_name.nil?
|
850
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'MaxLength': '50'" if !step_name.nil? && step_name.length > 50
|
851
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'MinLength': '5'" if !step_name.nil? && step_name.length < 5
|
852
|
+
fail ArgumentError, "'step_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !step_name.nil? && step_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
|
853
|
+
fail ArgumentError, 'build_step_update_parameters is nil' if build_step_update_parameters.nil?
|
854
|
+
|
855
|
+
|
856
|
+
request_headers = {}
|
857
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
858
|
+
|
859
|
+
# Set Headers
|
860
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
861
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
862
|
+
|
863
|
+
# Serialize Request
|
864
|
+
request_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStepUpdateParameters.mapper()
|
865
|
+
request_content = @client.serialize(request_mapper, build_step_update_parameters)
|
866
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
867
|
+
|
868
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/buildTasks/{buildTaskName}/steps/{stepName}'
|
869
|
+
|
870
|
+
request_url = @base_url || @client.base_url
|
871
|
+
|
872
|
+
options = {
|
873
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
874
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'buildTaskName' => build_task_name,'stepName' => step_name},
|
875
|
+
query_params: {'api-version' => @client.api_version},
|
876
|
+
body: request_content,
|
877
|
+
headers: request_headers.merge(custom_headers || {}),
|
878
|
+
base_url: request_url
|
879
|
+
}
|
880
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
881
|
+
|
882
|
+
promise = promise.then do |result|
|
883
|
+
http_response = result.response
|
884
|
+
status_code = http_response.status
|
885
|
+
response_content = http_response.body
|
886
|
+
unless status_code == 200 || status_code == 201
|
887
|
+
error_model = JSON.load(response_content)
|
888
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
889
|
+
end
|
890
|
+
|
891
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
892
|
+
# Deserialize Response
|
893
|
+
if status_code == 200
|
894
|
+
begin
|
895
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
896
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStep.mapper()
|
897
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
898
|
+
rescue Exception => e
|
899
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
900
|
+
end
|
901
|
+
end
|
902
|
+
# Deserialize Response
|
903
|
+
if status_code == 201
|
904
|
+
begin
|
905
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
906
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStep.mapper()
|
907
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
908
|
+
rescue Exception => e
|
909
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
913
|
+
result
|
914
|
+
end
|
915
|
+
|
916
|
+
promise.execute
|
917
|
+
end
|
918
|
+
|
919
|
+
#
|
920
|
+
# List all the build steps for a given build task.
|
921
|
+
#
|
922
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
923
|
+
# to List operation.
|
924
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
925
|
+
# will be added to the HTTP request.
|
926
|
+
#
|
927
|
+
# @return [BuildStepList] operation results.
|
928
|
+
#
|
929
|
+
def list_next(next_page_link, custom_headers:nil)
|
930
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
931
|
+
response.body unless response.nil?
|
932
|
+
end
|
933
|
+
|
934
|
+
#
|
935
|
+
# List all the build steps for a given build task.
|
936
|
+
#
|
937
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
938
|
+
# to List operation.
|
939
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
940
|
+
# will be added to the HTTP request.
|
941
|
+
#
|
942
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
943
|
+
#
|
944
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
945
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
946
|
+
end
|
947
|
+
|
948
|
+
#
|
949
|
+
# List all the build steps for a given build task.
|
950
|
+
#
|
951
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
952
|
+
# to List operation.
|
953
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
954
|
+
# to the HTTP request.
|
955
|
+
#
|
956
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
957
|
+
#
|
958
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
959
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
960
|
+
|
961
|
+
|
962
|
+
request_headers = {}
|
963
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
964
|
+
|
965
|
+
# Set Headers
|
966
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
967
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
968
|
+
path_template = '{nextLink}'
|
969
|
+
|
970
|
+
request_url = @base_url || @client.base_url
|
971
|
+
|
972
|
+
options = {
|
973
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
974
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
975
|
+
headers: request_headers.merge(custom_headers || {}),
|
976
|
+
base_url: request_url
|
977
|
+
}
|
978
|
+
promise = @client.make_request_async(:get, path_template, options)
|
979
|
+
|
980
|
+
promise = promise.then do |result|
|
981
|
+
http_response = result.response
|
982
|
+
status_code = http_response.status
|
983
|
+
response_content = http_response.body
|
984
|
+
unless status_code == 200
|
985
|
+
error_model = JSON.load(response_content)
|
986
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
987
|
+
end
|
988
|
+
|
989
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
990
|
+
# Deserialize Response
|
991
|
+
if status_code == 200
|
992
|
+
begin
|
993
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
994
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildStepList.mapper()
|
995
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
996
|
+
rescue Exception => e
|
997
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
998
|
+
end
|
999
|
+
end
|
1000
|
+
|
1001
|
+
result
|
1002
|
+
end
|
1003
|
+
|
1004
|
+
promise.execute
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
#
|
1008
|
+
# List the build arguments for a step including the secret arguments.
|
1009
|
+
#
|
1010
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1011
|
+
# to List operation.
|
1012
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1013
|
+
# will be added to the HTTP request.
|
1014
|
+
#
|
1015
|
+
# @return [BuildArgumentList] operation results.
|
1016
|
+
#
|
1017
|
+
def list_build_arguments_next(next_page_link, custom_headers:nil)
|
1018
|
+
response = list_build_arguments_next_async(next_page_link, custom_headers:custom_headers).value!
|
1019
|
+
response.body unless response.nil?
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
#
|
1023
|
+
# List the build arguments for a step including the secret arguments.
|
1024
|
+
#
|
1025
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1026
|
+
# to List operation.
|
1027
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1028
|
+
# will be added to the HTTP request.
|
1029
|
+
#
|
1030
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1031
|
+
#
|
1032
|
+
def list_build_arguments_next_with_http_info(next_page_link, custom_headers:nil)
|
1033
|
+
list_build_arguments_next_async(next_page_link, custom_headers:custom_headers).value!
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
#
|
1037
|
+
# List the build arguments for a step including the secret arguments.
|
1038
|
+
#
|
1039
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1040
|
+
# to List operation.
|
1041
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1042
|
+
# to the HTTP request.
|
1043
|
+
#
|
1044
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1045
|
+
#
|
1046
|
+
def list_build_arguments_next_async(next_page_link, custom_headers:nil)
|
1047
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1048
|
+
|
1049
|
+
|
1050
|
+
request_headers = {}
|
1051
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1052
|
+
|
1053
|
+
# Set Headers
|
1054
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1055
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1056
|
+
path_template = '{nextLink}'
|
1057
|
+
|
1058
|
+
request_url = @base_url || @client.base_url
|
1059
|
+
|
1060
|
+
options = {
|
1061
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1062
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1063
|
+
headers: request_headers.merge(custom_headers || {}),
|
1064
|
+
base_url: request_url
|
1065
|
+
}
|
1066
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1067
|
+
|
1068
|
+
promise = promise.then do |result|
|
1069
|
+
http_response = result.response
|
1070
|
+
status_code = http_response.status
|
1071
|
+
response_content = http_response.body
|
1072
|
+
unless status_code == 200
|
1073
|
+
error_model = JSON.load(response_content)
|
1074
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1078
|
+
# Deserialize Response
|
1079
|
+
if status_code == 200
|
1080
|
+
begin
|
1081
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1082
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_02_01_preview::Models::BuildArgumentList.mapper()
|
1083
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1084
|
+
rescue Exception => e
|
1085
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1086
|
+
end
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
result
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
promise.execute
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
#
|
1096
|
+
# List all the build steps for a given build task.
|
1097
|
+
#
|
1098
|
+
# @param resource_group_name [String] The name of the resource group to which
|
1099
|
+
# the container registry belongs.
|
1100
|
+
# @param registry_name [String] The name of the container registry.
|
1101
|
+
# @param build_task_name [String] The name of the container registry build
|
1102
|
+
# task.
|
1103
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1104
|
+
# will be added to the HTTP request.
|
1105
|
+
#
|
1106
|
+
# @return [BuildStepList] which provide lazy access to pages of the response.
|
1107
|
+
#
|
1108
|
+
def list_as_lazy(resource_group_name, registry_name, build_task_name, custom_headers:nil)
|
1109
|
+
response = list_async(resource_group_name, registry_name, build_task_name, custom_headers:custom_headers).value!
|
1110
|
+
unless response.nil?
|
1111
|
+
page = response.body
|
1112
|
+
page.next_method = Proc.new do |next_page_link|
|
1113
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1114
|
+
end
|
1115
|
+
page
|
1116
|
+
end
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
#
|
1120
|
+
# List the build arguments for a step including the secret arguments.
|
1121
|
+
#
|
1122
|
+
# @param resource_group_name [String] The name of the resource group to which
|
1123
|
+
# the container registry belongs.
|
1124
|
+
# @param registry_name [String] The name of the container registry.
|
1125
|
+
# @param build_task_name [String] The name of the container registry build
|
1126
|
+
# task.
|
1127
|
+
# @param step_name [String] The name of a build step for a container registry
|
1128
|
+
# build task.
|
1129
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1130
|
+
# will be added to the HTTP request.
|
1131
|
+
#
|
1132
|
+
# @return [BuildArgumentList] which provide lazy access to pages of the
|
1133
|
+
# response.
|
1134
|
+
#
|
1135
|
+
def list_build_arguments_as_lazy(resource_group_name, registry_name, build_task_name, step_name, custom_headers:nil)
|
1136
|
+
response = list_build_arguments_async(resource_group_name, registry_name, build_task_name, step_name, custom_headers:custom_headers).value!
|
1137
|
+
unless response.nil?
|
1138
|
+
page = response.body
|
1139
|
+
page.next_method = Proc.new do |next_page_link|
|
1140
|
+
list_build_arguments_next_async(next_page_link, custom_headers:custom_headers)
|
1141
|
+
end
|
1142
|
+
page
|
1143
|
+
end
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
end
|
1147
|
+
end
|