azure_mgmt_container_registry 0.17.2 → 0.18.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/models/registry_list_result.rb +1 -1
- data/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/registries.rb +22 -0
- 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/models/operation_list_result.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_container_registry/models/registry_list_result.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_container_registry/operations.rb +4 -0
- data/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb +22 -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/event_list_result.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/operation_list_result.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/registry_list_result.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/replication_list_result.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/webhook_list_result.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/operations.rb +4 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/registries.rb +24 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/replications.rb +12 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb +20 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry.rb +15 -13
- 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/action.rb +15 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/event_list_result.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/iprule.rb +60 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/network_rule_set.rb +20 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/operation_list_result.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/registry_list_result.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/replication_list_result.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/target.rb +22 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/virtual_network_rule.rb +16 -3
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/webhook_action.rb +2 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/webhook_list_result.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/operations.rb +4 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/registries.rb +30 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/replications.rb +12 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/webhooks.rb +20 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/build_steps.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/build_tasks.rb +14 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/builds.rb +12 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_argument_list.rb +1 -1
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_list_result.rb +1 -1
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_list.rb +1 -1
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_list_result.rb +1 -1
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/registries.rb +4 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry.rb +25 -19
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger.rb +2 -1
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger_update_parameters.rb +2 -1
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/credentials.rb +74 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb +63 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb +25 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step.rb +12 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +12 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb +13 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_run_request.rb +13 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run.rb +58 -13
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_list_result.rb +1 -1
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/secret_object.rb +63 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/secret_object_type.rb +15 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_registry_credentials.rb +52 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_registry_login_mode.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger.rb +2 -1
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_update_parameters.rb +2 -1
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task.rb +13 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_list_result.rb +1 -1
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_update_parameters.rb +13 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/registries.rb +4 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/runs.rb +12 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/tasks.rb +14 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +139 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/agent_properties.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/architecture.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/argument.rb +70 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info.rb +92 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info_update_parameters.rb +92 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/base_image_dependency.rb +91 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/base_image_trigger.rb +71 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/base_image_trigger_update_parameters.rb +71 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/credentials.rb +74 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb +82 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb +218 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_step.rb +175 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +154 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb +172 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/encoded_task_step.rb +129 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/encoded_task_step_update_parameters.rb +111 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/file_task_run_request.rb +172 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/file_task_step.rb +129 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/file_task_step_update_parameters.rb +111 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/identity_properties.rb +95 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/image_descriptor.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/image_update_trigger.rb +78 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/os.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/platform_properties.rb +71 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/platform_update_parameters.rb +71 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/resource_identity_type.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run.rb +309 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_filter.rb +129 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_get_log_result.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_list_result.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_request.rb +62 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_status.rb +22 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_type.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_update_parameters.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/secret_object.rb +63 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/secret_object_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/set_value.rb +71 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_control_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_properties.rb +83 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_registry_credentials.rb +52 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_registry_login_mode.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_trigger.rb +92 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_trigger_descriptor.rb +112 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_trigger_event.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_trigger_update_parameters.rb +92 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_update_parameters.rb +83 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_upload_definition.rb +58 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb +218 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_list_result.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_run_request.rb +91 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_status.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_step_properties.rb +94 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_step_update_parameters.rb +72 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_update_parameters.rb +155 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/timer_trigger.rb +70 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/timer_trigger_descriptor.rb +58 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/timer_trigger_update_parameters.rb +70 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/token_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/trigger_properties.rb +89 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/trigger_status.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/trigger_update_parameters.rb +90 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/user_identity_properties.rb +58 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/variant.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/registries.rb +293 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/runs.rb +778 -0
- data/lib/2019-04-01/generated/azure_mgmt_container_registry/tasks.rb +952 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry.rb +46 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +139 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/generate_credentials_parameters.rb +75 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/generate_credentials_result.rb +67 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/scope_map.rb +133 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/scope_map_list_result.rb +101 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/scope_map_update_parameters.rb +68 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/status.rb +16 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token.rb +137 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_certificate.rb +81 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_certificate_name.rb +16 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_credentials_properties.rb +76 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_list_result.rb +101 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_password.rb +82 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_password_name.rb +16 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_update_parameters.rb +72 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/registries.rb +188 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/scope_maps.rb +850 -0
- data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/tokens.rb +844 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry.rb +90 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +143 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/action.rb +15 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/actor.rb +48 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/callback_config.rb +66 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/default_action.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event.rb +69 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event_content.rb +120 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event_info.rb +46 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event_list_result.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event_request_message.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event_response_message.rb +99 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_image_parameters.rb +104 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_mode.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_source.rb +89 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_source_credentials.rb +59 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/iprule.rb +60 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/network_rule_set.rb +89 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_definition.rb +84 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_display_definition.rb +80 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_list_result.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_metric_specification_definition.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_service_specification_definition.rb +56 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/password_name.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/policies.rb +74 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/policy_status.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/quarantine_policy.rb +47 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/regenerate_credential_parameters.rb +49 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry.rb +202 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_list_credentials_result.rb +67 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_list_result.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_name_check_request.rb +66 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_name_status.rb +71 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_password.rb +59 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_update_parameters.rb +102 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_usage.rb +80 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_usage_list_result.rb +56 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_usage_unit.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/replication.rb +114 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/replication_list_result.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/replication_update_parameters.rb +54 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/request.rb +93 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/retention_policy.rb +71 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/sku.rb +61 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/sku_name.rb +18 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/sku_tier.rb +18 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/source.rb +61 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/status.rb +73 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/storage_account_properties.rb +47 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/target.rb +137 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/trust_policy.rb +59 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/trust_policy_type.rb +15 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/virtual_network_rule.rb +60 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook.rb +146 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_action.rb +19 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_create_parameters.rb +143 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_list_result.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_status.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_update_parameters.rb +131 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/operations.rb +219 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/registries.rb +1580 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/replications.rb +845 -0
- data/lib/2019-05-01/generated/azure_mgmt_container_registry/webhooks.rb +1287 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +139 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/agent_properties.rb +47 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/architecture.rb +19 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/argument.rb +70 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/auth_info.rb +92 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/auth_info_update_parameters.rb +92 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency.rb +91 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/base_image_trigger.rb +94 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/base_image_trigger_update_parameters.rb +94 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/credentials.rb +74 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb +82 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_request.rb +218 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb +175 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +154 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb +172 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/encoded_task_step.rb +129 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/encoded_task_step_update_parameters.rb +111 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/file_task_run_request.rb +172 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/file_task_step.rb +129 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/file_task_step_update_parameters.rb +111 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/identity_properties.rb +95 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/image_descriptor.rb +79 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/image_update_trigger.rb +78 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/os.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/override_task_step_properties.rb +125 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/platform_properties.rb +71 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/platform_update_parameters.rb +71 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/resource_identity_type.rb +18 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run.rb +320 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_filter.rb +129 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_get_log_result.rb +47 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_list_result.rb +99 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_request.rb +62 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_status.rb +22 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_type.rb +18 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_update_parameters.rb +47 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/secret_object.rb +63 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/secret_object_type.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/set_value.rb +71 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_control_type.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_properties.rb +83 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_registry_credentials.rb +52 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_registry_login_mode.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_trigger.rb +92 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_trigger_descriptor.rb +112 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_trigger_event.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_trigger_update_parameters.rb +92 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_update_parameters.rb +83 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_upload_definition.rb +58 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task.rb +218 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_list_result.rb +99 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_run_request.rb +84 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_status.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_step_properties.rb +94 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_step_update_parameters.rb +72 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_update_parameters.rb +155 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/timer_trigger.rb +70 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/timer_trigger_descriptor.rb +58 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/timer_trigger_update_parameters.rb +70 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/token_type.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/trigger_properties.rb +89 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/trigger_status.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/trigger_update_parameters.rb +90 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/update_trigger_payload_type.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/user_identity_properties.rb +58 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/variant.rb +17 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/registries.rb +293 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/runs.rb +778 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/tasks.rb +952 -0
- data/lib/azure_mgmt_container_registry.rb +4 -0
- data/lib/profiles/latest/modules/containerregistry_profile_module.rb +348 -280
- data/lib/version.rb +1 -1
- metadata +251 -5
data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_list_result.rb
ADDED
@@ -0,0 +1,101 @@
|
|
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::V2019_05_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The result of a request to list tokens for a container registry.
|
10
|
+
#
|
11
|
+
class TokenListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<Token>] The list of tokens. Since this list may be
|
17
|
+
# incomplete, the nextLink field should be used to request the next list
|
18
|
+
# of tokens.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
# @return [String] The URI that can be used to request the next list of
|
22
|
+
# tokens.
|
23
|
+
attr_accessor :next_link
|
24
|
+
|
25
|
+
# return [Proc] with next page method call.
|
26
|
+
attr_accessor :next_method
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
30
|
+
#
|
31
|
+
# @return [Array<Token>] operation results.
|
32
|
+
#
|
33
|
+
def get_all_items
|
34
|
+
items = @value
|
35
|
+
page = self
|
36
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
37
|
+
page = page.get_next_page
|
38
|
+
items.concat(page.value)
|
39
|
+
end
|
40
|
+
items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Gets the next page of results.
|
45
|
+
#
|
46
|
+
# @return [TokenListResult] with next page content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for TokenListResult class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'TokenListResult',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
class_name: 'TokenListResult',
|
69
|
+
model_properties: {
|
70
|
+
value: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'value',
|
74
|
+
type: {
|
75
|
+
name: 'Sequence',
|
76
|
+
element: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'TokenElementType',
|
80
|
+
type: {
|
81
|
+
name: 'Composite',
|
82
|
+
class_name: 'Token'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
next_link: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'nextLink',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,82 @@
|
|
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::V2019_05_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The password that will be used for authenticating the token of a
|
10
|
+
# container registry.
|
11
|
+
#
|
12
|
+
class TokenPassword
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [DateTime] The password created datetime of the password.
|
17
|
+
attr_accessor :creation_time
|
18
|
+
|
19
|
+
# @return [DateTime] The expiry datetime of the password.
|
20
|
+
attr_accessor :expiry
|
21
|
+
|
22
|
+
# @return [TokenPasswordName] The password name "password" or
|
23
|
+
# "password2". Possible values include: 'password1', 'password2'
|
24
|
+
attr_accessor :name
|
25
|
+
|
26
|
+
# @return [String] The password value.
|
27
|
+
attr_accessor :value
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for TokenPassword class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'TokenPassword',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'TokenPassword',
|
42
|
+
model_properties: {
|
43
|
+
creation_time: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'creationTime',
|
47
|
+
type: {
|
48
|
+
name: 'DateTime'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
expiry: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'expiry',
|
55
|
+
type: {
|
56
|
+
name: 'DateTime'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
name: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'name',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
read_only: true,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_password_name.rb
ADDED
@@ -0,0 +1,16 @@
|
|
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::V2019_05_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for TokenPasswordName
|
10
|
+
#
|
11
|
+
module TokenPasswordName
|
12
|
+
Password1 = "password1"
|
13
|
+
Password2 = "password2"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -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
|
+
module Azure::ContainerRegistry::Mgmt::V2019_05_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The parameters for updating a token.
|
10
|
+
#
|
11
|
+
class TokenUpdateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The resource ID of the scope map to which the token
|
16
|
+
# will be associated with.
|
17
|
+
attr_accessor :scope_map_id
|
18
|
+
|
19
|
+
# @return [Status] The status of the token example enabled or disabled.
|
20
|
+
# Possible values include: 'enabled', 'disabled'
|
21
|
+
attr_accessor :status
|
22
|
+
|
23
|
+
# @return [TokenCredentialsProperties] The credentials that can be used
|
24
|
+
# for authenticating the token.
|
25
|
+
attr_accessor :credentials
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for TokenUpdateParameters class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'TokenUpdateParameters',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'TokenUpdateParameters',
|
40
|
+
model_properties: {
|
41
|
+
scope_map_id: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'properties.scopeMapId',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
status: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'properties.status',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
credentials: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'properties.credentials',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'TokenCredentialsProperties'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::ContainerRegistry end
|
8
|
+
module Azure::ContainerRegistry::Mgmt end
|
9
|
+
module Azure::ContainerRegistry::Mgmt::V2019_05_01_preview end
|
@@ -0,0 +1,188 @@
|
|
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::V2019_05_01_preview
|
7
|
+
#
|
8
|
+
# Registries
|
9
|
+
#
|
10
|
+
class Registries
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Registries 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
|
+
# Generate keys for a token of a specified container registry.
|
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 generate_credentials_parameters [GenerateCredentialsParameters] The
|
31
|
+
# parameters for generating credentials.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [GenerateCredentialsResult] operation results.
|
36
|
+
#
|
37
|
+
def generate_credentials(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:nil)
|
38
|
+
response = generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:custom_headers).value!
|
39
|
+
response.body unless response.nil?
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# @param resource_group_name [String] The name of the resource group to which
|
44
|
+
# the container registry belongs.
|
45
|
+
# @param registry_name [String] The name of the container registry.
|
46
|
+
# @param generate_credentials_parameters [GenerateCredentialsParameters] The
|
47
|
+
# parameters for generating credentials.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
52
|
+
# response.
|
53
|
+
#
|
54
|
+
def generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:nil)
|
55
|
+
# Send request
|
56
|
+
promise = begin_generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:custom_headers)
|
57
|
+
|
58
|
+
promise = promise.then do |response|
|
59
|
+
# Defining deserialization method.
|
60
|
+
deserialize_method = lambda do |parsed_response|
|
61
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2019_05_01_preview::Models::GenerateCredentialsResult.mapper()
|
62
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
63
|
+
end
|
64
|
+
|
65
|
+
# Waiting for response.
|
66
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
67
|
+
end
|
68
|
+
|
69
|
+
promise
|
70
|
+
end
|
71
|
+
|
72
|
+
#
|
73
|
+
# Generate keys for a token of a specified container registry.
|
74
|
+
#
|
75
|
+
# @param resource_group_name [String] The name of the resource group to which
|
76
|
+
# the container registry belongs.
|
77
|
+
# @param registry_name [String] The name of the container registry.
|
78
|
+
# @param generate_credentials_parameters [GenerateCredentialsParameters] The
|
79
|
+
# parameters for generating credentials.
|
80
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
81
|
+
# will be added to the HTTP request.
|
82
|
+
#
|
83
|
+
# @return [GenerateCredentialsResult] operation results.
|
84
|
+
#
|
85
|
+
def begin_generate_credentials(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:nil)
|
86
|
+
response = begin_generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:custom_headers).value!
|
87
|
+
response.body unless response.nil?
|
88
|
+
end
|
89
|
+
|
90
|
+
#
|
91
|
+
# Generate keys for a token of a specified container registry.
|
92
|
+
#
|
93
|
+
# @param resource_group_name [String] The name of the resource group to which
|
94
|
+
# the container registry belongs.
|
95
|
+
# @param registry_name [String] The name of the container registry.
|
96
|
+
# @param generate_credentials_parameters [GenerateCredentialsParameters] The
|
97
|
+
# parameters for generating credentials.
|
98
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
99
|
+
# will be added to the HTTP request.
|
100
|
+
#
|
101
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
102
|
+
#
|
103
|
+
def begin_generate_credentials_with_http_info(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:nil)
|
104
|
+
begin_generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:custom_headers).value!
|
105
|
+
end
|
106
|
+
|
107
|
+
#
|
108
|
+
# Generate keys for a token of a specified container registry.
|
109
|
+
#
|
110
|
+
# @param resource_group_name [String] The name of the resource group to which
|
111
|
+
# the container registry belongs.
|
112
|
+
# @param registry_name [String] The name of the container registry.
|
113
|
+
# @param generate_credentials_parameters [GenerateCredentialsParameters] The
|
114
|
+
# parameters for generating credentials.
|
115
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
116
|
+
# to the HTTP request.
|
117
|
+
#
|
118
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
119
|
+
#
|
120
|
+
def begin_generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:nil)
|
121
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
122
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
123
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
124
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
125
|
+
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
126
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
127
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
128
|
+
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?
|
129
|
+
fail ArgumentError, 'generate_credentials_parameters is nil' if generate_credentials_parameters.nil?
|
130
|
+
|
131
|
+
|
132
|
+
request_headers = {}
|
133
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
134
|
+
|
135
|
+
# Set Headers
|
136
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
137
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
138
|
+
|
139
|
+
# Serialize Request
|
140
|
+
request_mapper = Azure::ContainerRegistry::Mgmt::V2019_05_01_preview::Models::GenerateCredentialsParameters.mapper()
|
141
|
+
request_content = @client.serialize(request_mapper, generate_credentials_parameters)
|
142
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
143
|
+
|
144
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials'
|
145
|
+
|
146
|
+
request_url = @base_url || @client.base_url
|
147
|
+
|
148
|
+
options = {
|
149
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
150
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
|
151
|
+
query_params: {'api-version' => @client.api_version},
|
152
|
+
body: request_content,
|
153
|
+
headers: request_headers.merge(custom_headers || {}),
|
154
|
+
base_url: request_url
|
155
|
+
}
|
156
|
+
promise = @client.make_request_async(:post, path_template, options)
|
157
|
+
|
158
|
+
promise = promise.then do |result|
|
159
|
+
http_response = result.response
|
160
|
+
status_code = http_response.status
|
161
|
+
response_content = http_response.body
|
162
|
+
unless status_code == 200 || status_code == 202
|
163
|
+
error_model = JSON.load(response_content)
|
164
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
165
|
+
end
|
166
|
+
|
167
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
168
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
169
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
170
|
+
# Deserialize Response
|
171
|
+
if status_code == 200
|
172
|
+
begin
|
173
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
174
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2019_05_01_preview::Models::GenerateCredentialsResult.mapper()
|
175
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
176
|
+
rescue Exception => e
|
177
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
result
|
182
|
+
end
|
183
|
+
|
184
|
+
promise.execute
|
185
|
+
end
|
186
|
+
|
187
|
+
end
|
188
|
+
end
|