azure_mgmt_batch 0.17.2 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE.txt +20 -20
- data/lib/2015-12-01/generated/azure_mgmt_batch.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb +12 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb +8 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +22 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/batch_management_client.rb +1 -1
- data/lib/2015-12-01/generated/azure_mgmt_batch/location.rb +2 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/account_key_type.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/application.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/application_package.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/list_applications_result.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/package_state.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/provisioning_state.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/resource.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +0 -0
- data/lib/2015-12-01/generated/azure_mgmt_batch/module_definition.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/application_operations.rb +12 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/application_package_operations.rb +8 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/batch_account_operations.rb +22 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/batch_management_client.rb +1 -1
- data/lib/2017-01-01/generated/azure_mgmt_batch/location.rb +2 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/account_key_type.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/application.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/list_applications_result.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/package_state.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/provisioning_state.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/resource.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +0 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/module_definition.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb +12 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb +8 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb +22 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/batch_management_client.rb +1 -1
- data/lib/2017-05-01/generated/azure_mgmt_batch/location.rb +4 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/account_key_type.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/application.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/application_create_parameters.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/application_package.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/application_update_parameters.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/list_applications_result.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/operation.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/operation_display.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/operation_list_result.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/package_state.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/provisioning_state.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/models/resource.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/module_definition.rb +0 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/operations.rb +4 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/application_operations.rb +12 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/application_package_operations.rb +8 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/batch_account_operations.rb +22 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/batch_management_client.rb +1 -1
- data/lib/2017-09-01/generated/azure_mgmt_batch/certificate_operations.rb +14 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/location.rb +4 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/account_key_type.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/allocation_state.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_create_parameters.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package_reference.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_update_parameters.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/caching_type.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_format.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_reference.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/elevation_level.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/environment_setting.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_applications_result.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_pools_result.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/metadata_item.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_configuration.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_display.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_list_result.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/osdisk.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/package_state.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/provisioning_state.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/proxy_resource.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_error.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/scale_settings.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/start_task.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/storage_account_type.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_account.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_identity.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/windows_configuration.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/module_definition.rb +0 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/operations.rb +4 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/pool_operations.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch.rb +116 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/application_operations.rb +696 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/application_package_operations.rb +737 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +1295 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/batch_management_client.rb +156 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/certificate_operations.rb +1023 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/location.rb +225 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +46 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/allocation_state.rb +17 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/application.rb +107 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/application_package.rb +137 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/application_package_reference.rb +64 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +74 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +80 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +61 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +56 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +66 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account.rb +208 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +71 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/caching_type.rb +17 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate.rb +192 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +75 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +135 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_format.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +17 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_reference.rb +112 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +17 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +61 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +78 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +67 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +18 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/container_configuration.rb +95 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/container_registry.rb +70 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/data_disk.rb +101 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +92 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +66 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/elevation_level.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/environment_setting.rb +58 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +93 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/image_reference.rb +108 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +141 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +81 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/list_application_packages_result.rb +98 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +98 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/list_pools_result.rb +98 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/login_mode.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/metadata_item.rb +60 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/network_configuration.rb +86 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +82 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/operation.rb +82 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/operation_display.rb +81 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/operation_list_result.rb +98 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/package_state.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/pool.rb +459 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +60 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/proxy_resource.rb +84 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/resize_error.rb +80 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +127 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/resource.rb +112 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/resource_file.rb +139 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/scale_settings.rb +69 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/start_task.rb +168 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/storage_account_type.rb +16 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/task_container_settings.rb +77 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +49 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/user_account.rb +104 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/user_identity.rb +64 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +141 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/windows_configuration.rb +48 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/models/windows_user_configuration.rb +51 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/operations.rb +219 -0
- data/lib/2018-12-01/generated/azure_mgmt_batch/pool_operations.rb +1148 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch.rb +117 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/application_operations.rb +696 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/application_package_operations.rb +737 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/batch_account_operations.rb +1295 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/batch_management_client.rb +156 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/certificate_operations.rb +1023 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/location.rb +225 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +46 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/allocation_state.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/application.rb +107 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/application_package.rb +137 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/application_package_reference.rb +64 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +74 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +80 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +61 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +56 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +66 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account.rb +257 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +71 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/caching_type.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate.rb +192 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +75 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +135 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_format.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_reference.rb +112 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +61 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +78 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +68 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/container_configuration.rb +95 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/container_registry.rb +70 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/data_disk.rb +101 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +92 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +66 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/elevation_level.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/environment_setting.rb +58 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +93 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/image_reference.rb +108 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +141 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +81 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/list_application_packages_result.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/list_pools_result.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/login_mode.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/metadata_item.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/network_configuration.rb +86 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +82 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/operation.rb +82 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/operation_display.rb +81 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/operation_list_result.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/package_state.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/pool.rb +462 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/proxy_resource.rb +84 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/resize_error.rb +80 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +127 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/resource.rb +112 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/resource_file.rb +139 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/scale_settings.rb +69 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/start_task.rb +174 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/storage_account_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/task_container_settings.rb +77 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +49 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/user_account.rb +104 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/user_identity.rb +64 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +141 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/virtual_machine_family_core_quota.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/windows_configuration.rb +48 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/models/windows_user_configuration.rb +51 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/operations.rb +219 -0
- data/lib/2019-04-01/generated/azure_mgmt_batch/pool_operations.rb +1148 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch.rb +123 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/application_operations.rb +696 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/application_package_operations.rb +749 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/batch_account_operations.rb +1295 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/batch_management_client.rb +156 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/certificate_operations.rb +1023 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/location.rb +225 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +46 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/allocation_state.rb +17 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/application.rb +107 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/application_package.rb +137 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/application_package_reference.rb +64 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +74 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +80 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +61 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +56 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +68 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/azure_blob_file_system_configuration.rb +109 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/azure_file_share_configuration.rb +97 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account.rb +257 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +71 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/caching_type.rb +17 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate.rb +192 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +75 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +135 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_format.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +17 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_reference.rb +112 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +17 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +61 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +78 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/cifsmount_configuration.rb +98 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +68 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +18 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/container_configuration.rb +95 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/container_registry.rb +70 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/container_working_directory.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/data_disk.rb +102 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +92 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +66 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/elevation_level.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/environment_setting.rb +58 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +93 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/image_reference.rb +111 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +141 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +81 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/list_application_packages_result.rb +98 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +98 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/list_pools_result.rb +98 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/login_mode.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/metadata_item.rb +60 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/mount_configuration.rb +91 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/network_configuration.rb +111 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +106 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/nfsmount_configuration.rb +74 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/operation.rb +82 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/operation_display.rb +81 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/operation_list_result.rb +98 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/package_state.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/pool.rb +484 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +60 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/proxy_resource.rb +84 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/resize_error.rb +80 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +127 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/resource.rb +112 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/resource_file.rb +139 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/scale_settings.rb +69 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/start_task.rb +174 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/storage_account_type.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/task_container_settings.rb +92 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +49 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/user_account.rb +104 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/user_identity.rb +64 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +141 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/virtual_machine_family_core_quota.rb +60 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/windows_configuration.rb +48 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/models/windows_user_configuration.rb +51 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/operations.rb +219 -0
- data/lib/2019-08-01/generated/azure_mgmt_batch/pool_operations.rb +1148 -0
- data/lib/azure_mgmt_batch.rb +5 -2
- data/lib/module_definition.rb +7 -7
- data/lib/profiles/latest/batch_latest_profile_client.rb +40 -40
- data/lib/profiles/latest/batch_module_definition.rb +8 -8
- data/lib/profiles/latest/modules/batch_profile_module.rb +244 -204
- data/lib/version.rb +1 -1
- metadata +289 -5
@@ -0,0 +1,117 @@
|
|
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 '2019-04-01/generated/azure_mgmt_batch/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Batch::Mgmt::V2019_04_01
|
23
|
+
autoload :BatchAccountOperations, '2019-04-01/generated/azure_mgmt_batch/batch_account_operations.rb'
|
24
|
+
autoload :ApplicationPackageOperations, '2019-04-01/generated/azure_mgmt_batch/application_package_operations.rb'
|
25
|
+
autoload :ApplicationOperations, '2019-04-01/generated/azure_mgmt_batch/application_operations.rb'
|
26
|
+
autoload :Location, '2019-04-01/generated/azure_mgmt_batch/location.rb'
|
27
|
+
autoload :Operations, '2019-04-01/generated/azure_mgmt_batch/operations.rb'
|
28
|
+
autoload :CertificateOperations, '2019-04-01/generated/azure_mgmt_batch/certificate_operations.rb'
|
29
|
+
autoload :PoolOperations, '2019-04-01/generated/azure_mgmt_batch/pool_operations.rb'
|
30
|
+
autoload :BatchManagementClient, '2019-04-01/generated/azure_mgmt_batch/batch_management_client.rb'
|
31
|
+
|
32
|
+
module Models
|
33
|
+
autoload :FixedScaleSettings, '2019-04-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb'
|
34
|
+
autoload :AutoScaleSettings, '2019-04-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb'
|
35
|
+
autoload :KeyVaultReference, '2019-04-01/generated/azure_mgmt_batch/models/key_vault_reference.rb'
|
36
|
+
autoload :ScaleSettings, '2019-04-01/generated/azure_mgmt_batch/models/scale_settings.rb'
|
37
|
+
autoload :DeploymentConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/deployment_configuration.rb'
|
38
|
+
autoload :VirtualMachineFamilyCoreQuota, '2019-04-01/generated/azure_mgmt_batch/models/virtual_machine_family_core_quota.rb'
|
39
|
+
autoload :AutoStorageBaseProperties, '2019-04-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb'
|
40
|
+
autoload :BatchAccountUpdateParameters, '2019-04-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb'
|
41
|
+
autoload :BatchAccountCreateParameters, '2019-04-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb'
|
42
|
+
autoload :BatchAccountRegenerateKeyParameters, '2019-04-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb'
|
43
|
+
autoload :ActivateApplicationPackageParameters, '2019-04-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb'
|
44
|
+
autoload :AutoScaleRunError, '2019-04-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb'
|
45
|
+
autoload :OperationListResult, '2019-04-01/generated/azure_mgmt_batch/models/operation_list_result.rb'
|
46
|
+
autoload :AutoScaleRun, '2019-04-01/generated/azure_mgmt_batch/models/auto_scale_run.rb'
|
47
|
+
autoload :ListApplicationPackagesResult, '2019-04-01/generated/azure_mgmt_batch/models/list_application_packages_result.rb'
|
48
|
+
autoload :NetworkSecurityGroupRule, '2019-04-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb'
|
49
|
+
autoload :Resource, '2019-04-01/generated/azure_mgmt_batch/models/resource.rb'
|
50
|
+
autoload :InboundNatPool, '2019-04-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb'
|
51
|
+
autoload :CertificateBaseProperties, '2019-04-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb'
|
52
|
+
autoload :PoolEndpointConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb'
|
53
|
+
autoload :Operation, '2019-04-01/generated/azure_mgmt_batch/models/operation.rb'
|
54
|
+
autoload :NetworkConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/network_configuration.rb'
|
55
|
+
autoload :ListCertificatesResult, '2019-04-01/generated/azure_mgmt_batch/models/list_certificates_result.rb'
|
56
|
+
autoload :TaskSchedulingPolicy, '2019-04-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb'
|
57
|
+
autoload :ImageReference, '2019-04-01/generated/azure_mgmt_batch/models/image_reference.rb'
|
58
|
+
autoload :LinuxUserConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb'
|
59
|
+
autoload :DataDisk, '2019-04-01/generated/azure_mgmt_batch/models/data_disk.rb'
|
60
|
+
autoload :WindowsUserConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/windows_user_configuration.rb'
|
61
|
+
autoload :ContainerConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/container_configuration.rb'
|
62
|
+
autoload :UserAccount, '2019-04-01/generated/azure_mgmt_batch/models/user_account.rb'
|
63
|
+
autoload :CheckNameAvailabilityResult, '2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb'
|
64
|
+
autoload :MetadataItem, '2019-04-01/generated/azure_mgmt_batch/models/metadata_item.rb'
|
65
|
+
autoload :BatchAccountKeys, '2019-04-01/generated/azure_mgmt_batch/models/batch_account_keys.rb'
|
66
|
+
autoload :ResourceFile, '2019-04-01/generated/azure_mgmt_batch/models/resource_file.rb'
|
67
|
+
autoload :ListApplicationsResult, '2019-04-01/generated/azure_mgmt_batch/models/list_applications_result.rb'
|
68
|
+
autoload :EnvironmentSetting, '2019-04-01/generated/azure_mgmt_batch/models/environment_setting.rb'
|
69
|
+
autoload :ProxyResource, '2019-04-01/generated/azure_mgmt_batch/models/proxy_resource.rb'
|
70
|
+
autoload :AutoUserSpecification, '2019-04-01/generated/azure_mgmt_batch/models/auto_user_specification.rb'
|
71
|
+
autoload :OperationDisplay, '2019-04-01/generated/azure_mgmt_batch/models/operation_display.rb'
|
72
|
+
autoload :UserIdentity, '2019-04-01/generated/azure_mgmt_batch/models/user_identity.rb'
|
73
|
+
autoload :WindowsConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/windows_configuration.rb'
|
74
|
+
autoload :TaskContainerSettings, '2019-04-01/generated/azure_mgmt_batch/models/task_container_settings.rb'
|
75
|
+
autoload :VirtualMachineConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb'
|
76
|
+
autoload :StartTask, '2019-04-01/generated/azure_mgmt_batch/models/start_task.rb'
|
77
|
+
autoload :CheckNameAvailabilityParameters, '2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb'
|
78
|
+
autoload :CertificateReference, '2019-04-01/generated/azure_mgmt_batch/models/certificate_reference.rb'
|
79
|
+
autoload :DeleteCertificateError, '2019-04-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb'
|
80
|
+
autoload :ApplicationPackageReference, '2019-04-01/generated/azure_mgmt_batch/models/application_package_reference.rb'
|
81
|
+
autoload :ContainerRegistry, '2019-04-01/generated/azure_mgmt_batch/models/container_registry.rb'
|
82
|
+
autoload :ResizeError, '2019-04-01/generated/azure_mgmt_batch/models/resize_error.rb'
|
83
|
+
autoload :BatchLocationQuota, '2019-04-01/generated/azure_mgmt_batch/models/batch_location_quota.rb'
|
84
|
+
autoload :ResizeOperationStatus, '2019-04-01/generated/azure_mgmt_batch/models/resize_operation_status.rb'
|
85
|
+
autoload :BatchAccountListResult, '2019-04-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb'
|
86
|
+
autoload :CloudServiceConfiguration, '2019-04-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb'
|
87
|
+
autoload :ListPoolsResult, '2019-04-01/generated/azure_mgmt_batch/models/list_pools_result.rb'
|
88
|
+
autoload :AutoStorageProperties, '2019-04-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb'
|
89
|
+
autoload :BatchAccount, '2019-04-01/generated/azure_mgmt_batch/models/batch_account.rb'
|
90
|
+
autoload :Application, '2019-04-01/generated/azure_mgmt_batch/models/application.rb'
|
91
|
+
autoload :ApplicationPackage, '2019-04-01/generated/azure_mgmt_batch/models/application_package.rb'
|
92
|
+
autoload :Certificate, '2019-04-01/generated/azure_mgmt_batch/models/certificate.rb'
|
93
|
+
autoload :CertificateCreateOrUpdateParameters, '2019-04-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb'
|
94
|
+
autoload :Pool, '2019-04-01/generated/azure_mgmt_batch/models/pool.rb'
|
95
|
+
autoload :PoolAllocationMode, '2019-04-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb'
|
96
|
+
autoload :ProvisioningState, '2019-04-01/generated/azure_mgmt_batch/models/provisioning_state.rb'
|
97
|
+
autoload :AccountKeyType, '2019-04-01/generated/azure_mgmt_batch/models/account_key_type.rb'
|
98
|
+
autoload :PackageState, '2019-04-01/generated/azure_mgmt_batch/models/package_state.rb'
|
99
|
+
autoload :CertificateFormat, '2019-04-01/generated/azure_mgmt_batch/models/certificate_format.rb'
|
100
|
+
autoload :CertificateProvisioningState, '2019-04-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb'
|
101
|
+
autoload :PoolProvisioningState, '2019-04-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb'
|
102
|
+
autoload :AllocationState, '2019-04-01/generated/azure_mgmt_batch/models/allocation_state.rb'
|
103
|
+
autoload :CachingType, '2019-04-01/generated/azure_mgmt_batch/models/caching_type.rb'
|
104
|
+
autoload :StorageAccountType, '2019-04-01/generated/azure_mgmt_batch/models/storage_account_type.rb'
|
105
|
+
autoload :ComputeNodeDeallocationOption, '2019-04-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb'
|
106
|
+
autoload :InterNodeCommunicationState, '2019-04-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb'
|
107
|
+
autoload :InboundEndpointProtocol, '2019-04-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb'
|
108
|
+
autoload :NetworkSecurityGroupRuleAccess, '2019-04-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb'
|
109
|
+
autoload :ComputeNodeFillType, '2019-04-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb'
|
110
|
+
autoload :ElevationLevel, '2019-04-01/generated/azure_mgmt_batch/models/elevation_level.rb'
|
111
|
+
autoload :LoginMode, '2019-04-01/generated/azure_mgmt_batch/models/login_mode.rb'
|
112
|
+
autoload :AutoUserScope, '2019-04-01/generated/azure_mgmt_batch/models/auto_user_scope.rb'
|
113
|
+
autoload :CertificateStoreLocation, '2019-04-01/generated/azure_mgmt_batch/models/certificate_store_location.rb'
|
114
|
+
autoload :CertificateVisibility, '2019-04-01/generated/azure_mgmt_batch/models/certificate_visibility.rb'
|
115
|
+
autoload :NameAvailabilityReason, '2019-04-01/generated/azure_mgmt_batch/models/name_availability_reason.rb'
|
116
|
+
end
|
117
|
+
end
|
@@ -0,0 +1,696 @@
|
|
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::Batch::Mgmt::V2019_04_01
|
7
|
+
#
|
8
|
+
# ApplicationOperations
|
9
|
+
#
|
10
|
+
class ApplicationOperations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the ApplicationOperations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [BatchManagementClient] reference to the BatchManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Adds an application to the specified Batch account.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group that
|
28
|
+
# contains the Batch account.
|
29
|
+
# @param account_name [String] The name of the Batch account.
|
30
|
+
# @param application_name [String] The name of the application. This must be
|
31
|
+
# unique within the account.
|
32
|
+
# @param parameters [Application] The parameters for the request.
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [Application] operation results.
|
37
|
+
#
|
38
|
+
def create(resource_group_name, account_name, application_name, parameters:nil, custom_headers:nil)
|
39
|
+
response = create_async(resource_group_name, account_name, application_name, parameters:parameters, custom_headers:custom_headers).value!
|
40
|
+
response.body unless response.nil?
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Adds an application to the specified Batch account.
|
45
|
+
#
|
46
|
+
# @param resource_group_name [String] The name of the resource group that
|
47
|
+
# contains the Batch account.
|
48
|
+
# @param account_name [String] The name of the Batch account.
|
49
|
+
# @param application_name [String] The name of the application. This must be
|
50
|
+
# unique within the account.
|
51
|
+
# @param parameters [Application] The parameters for the request.
|
52
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
|
+
# will be added to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
|
+
#
|
57
|
+
def create_with_http_info(resource_group_name, account_name, application_name, parameters:nil, custom_headers:nil)
|
58
|
+
create_async(resource_group_name, account_name, application_name, parameters:parameters, custom_headers:custom_headers).value!
|
59
|
+
end
|
60
|
+
|
61
|
+
#
|
62
|
+
# Adds an application to the specified Batch account.
|
63
|
+
#
|
64
|
+
# @param resource_group_name [String] The name of the resource group that
|
65
|
+
# contains the Batch account.
|
66
|
+
# @param account_name [String] The name of the Batch account.
|
67
|
+
# @param application_name [String] The name of the application. This must be
|
68
|
+
# unique within the account.
|
69
|
+
# @param parameters [Application] The parameters for the request.
|
70
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
71
|
+
# to the HTTP request.
|
72
|
+
#
|
73
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
|
+
#
|
75
|
+
def create_async(resource_group_name, account_name, application_name, parameters:nil, custom_headers:nil)
|
76
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
77
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
78
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
79
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
80
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
81
|
+
fail ArgumentError, 'application_name is nil' if application_name.nil?
|
82
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'MaxLength': '64'" if !application_name.nil? && application_name.length > 64
|
83
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'MinLength': '1'" if !application_name.nil? && application_name.length < 1
|
84
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !application_name.nil? && application_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
|
85
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
86
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
87
|
+
|
88
|
+
|
89
|
+
request_headers = {}
|
90
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
91
|
+
|
92
|
+
# Set Headers
|
93
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
94
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
95
|
+
|
96
|
+
# Serialize Request
|
97
|
+
request_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::Application.mapper()
|
98
|
+
request_content = @client.serialize(request_mapper, parameters)
|
99
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
100
|
+
|
101
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'
|
102
|
+
|
103
|
+
request_url = @base_url || @client.base_url
|
104
|
+
|
105
|
+
options = {
|
106
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
107
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'applicationName' => application_name,'subscriptionId' => @client.subscription_id},
|
108
|
+
query_params: {'api-version' => @client.api_version},
|
109
|
+
body: request_content,
|
110
|
+
headers: request_headers.merge(custom_headers || {}),
|
111
|
+
base_url: request_url
|
112
|
+
}
|
113
|
+
promise = @client.make_request_async(:put, path_template, options)
|
114
|
+
|
115
|
+
promise = promise.then do |result|
|
116
|
+
http_response = result.response
|
117
|
+
status_code = http_response.status
|
118
|
+
response_content = http_response.body
|
119
|
+
unless status_code == 200
|
120
|
+
error_model = JSON.load(response_content)
|
121
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
122
|
+
end
|
123
|
+
|
124
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
125
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
126
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
127
|
+
# Deserialize Response
|
128
|
+
if status_code == 200
|
129
|
+
begin
|
130
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
131
|
+
result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::Application.mapper()
|
132
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
133
|
+
rescue Exception => e
|
134
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
result
|
139
|
+
end
|
140
|
+
|
141
|
+
promise.execute
|
142
|
+
end
|
143
|
+
|
144
|
+
#
|
145
|
+
# Deletes an application.
|
146
|
+
#
|
147
|
+
# @param resource_group_name [String] The name of the resource group that
|
148
|
+
# contains the Batch account.
|
149
|
+
# @param account_name [String] The name of the Batch account.
|
150
|
+
# @param application_name [String] The name of the application. This must be
|
151
|
+
# unique within the account.
|
152
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
153
|
+
# will be added to the HTTP request.
|
154
|
+
#
|
155
|
+
#
|
156
|
+
def delete(resource_group_name, account_name, application_name, custom_headers:nil)
|
157
|
+
response = delete_async(resource_group_name, account_name, application_name, custom_headers:custom_headers).value!
|
158
|
+
nil
|
159
|
+
end
|
160
|
+
|
161
|
+
#
|
162
|
+
# Deletes an application.
|
163
|
+
#
|
164
|
+
# @param resource_group_name [String] The name of the resource group that
|
165
|
+
# contains the Batch account.
|
166
|
+
# @param account_name [String] The name of the Batch account.
|
167
|
+
# @param application_name [String] The name of the application. This must be
|
168
|
+
# unique within the account.
|
169
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
170
|
+
# will be added to the HTTP request.
|
171
|
+
#
|
172
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
173
|
+
#
|
174
|
+
def delete_with_http_info(resource_group_name, account_name, application_name, custom_headers:nil)
|
175
|
+
delete_async(resource_group_name, account_name, application_name, custom_headers:custom_headers).value!
|
176
|
+
end
|
177
|
+
|
178
|
+
#
|
179
|
+
# Deletes an application.
|
180
|
+
#
|
181
|
+
# @param resource_group_name [String] The name of the resource group that
|
182
|
+
# contains the Batch account.
|
183
|
+
# @param account_name [String] The name of the Batch account.
|
184
|
+
# @param application_name [String] The name of the application. This must be
|
185
|
+
# unique within the account.
|
186
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
187
|
+
# to the HTTP request.
|
188
|
+
#
|
189
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
190
|
+
#
|
191
|
+
def delete_async(resource_group_name, account_name, application_name, custom_headers:nil)
|
192
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
193
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
194
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
195
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
196
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
197
|
+
fail ArgumentError, 'application_name is nil' if application_name.nil?
|
198
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'MaxLength': '64'" if !application_name.nil? && application_name.length > 64
|
199
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'MinLength': '1'" if !application_name.nil? && application_name.length < 1
|
200
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !application_name.nil? && application_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
|
201
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
202
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
203
|
+
|
204
|
+
|
205
|
+
request_headers = {}
|
206
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
207
|
+
|
208
|
+
# Set Headers
|
209
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
210
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
211
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'
|
212
|
+
|
213
|
+
request_url = @base_url || @client.base_url
|
214
|
+
|
215
|
+
options = {
|
216
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
217
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'applicationName' => application_name,'subscriptionId' => @client.subscription_id},
|
218
|
+
query_params: {'api-version' => @client.api_version},
|
219
|
+
headers: request_headers.merge(custom_headers || {}),
|
220
|
+
base_url: request_url
|
221
|
+
}
|
222
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
223
|
+
|
224
|
+
promise = promise.then do |result|
|
225
|
+
http_response = result.response
|
226
|
+
status_code = http_response.status
|
227
|
+
response_content = http_response.body
|
228
|
+
unless status_code == 200 || status_code == 204
|
229
|
+
error_model = JSON.load(response_content)
|
230
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
231
|
+
end
|
232
|
+
|
233
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
234
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
235
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
236
|
+
|
237
|
+
result
|
238
|
+
end
|
239
|
+
|
240
|
+
promise.execute
|
241
|
+
end
|
242
|
+
|
243
|
+
#
|
244
|
+
# Gets information about the specified application.
|
245
|
+
#
|
246
|
+
# @param resource_group_name [String] The name of the resource group that
|
247
|
+
# contains the Batch account.
|
248
|
+
# @param account_name [String] The name of the Batch account.
|
249
|
+
# @param application_name [String] The name of the application. This must be
|
250
|
+
# unique within the account.
|
251
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
252
|
+
# will be added to the HTTP request.
|
253
|
+
#
|
254
|
+
# @return [Application] operation results.
|
255
|
+
#
|
256
|
+
def get(resource_group_name, account_name, application_name, custom_headers:nil)
|
257
|
+
response = get_async(resource_group_name, account_name, application_name, custom_headers:custom_headers).value!
|
258
|
+
response.body unless response.nil?
|
259
|
+
end
|
260
|
+
|
261
|
+
#
|
262
|
+
# Gets information about the specified application.
|
263
|
+
#
|
264
|
+
# @param resource_group_name [String] The name of the resource group that
|
265
|
+
# contains the Batch account.
|
266
|
+
# @param account_name [String] The name of the Batch account.
|
267
|
+
# @param application_name [String] The name of the application. This must be
|
268
|
+
# unique within the account.
|
269
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
270
|
+
# will be added to the HTTP request.
|
271
|
+
#
|
272
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
273
|
+
#
|
274
|
+
def get_with_http_info(resource_group_name, account_name, application_name, custom_headers:nil)
|
275
|
+
get_async(resource_group_name, account_name, application_name, custom_headers:custom_headers).value!
|
276
|
+
end
|
277
|
+
|
278
|
+
#
|
279
|
+
# Gets information about the specified application.
|
280
|
+
#
|
281
|
+
# @param resource_group_name [String] The name of the resource group that
|
282
|
+
# contains the Batch account.
|
283
|
+
# @param account_name [String] The name of the Batch account.
|
284
|
+
# @param application_name [String] The name of the application. This must be
|
285
|
+
# unique within the account.
|
286
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
287
|
+
# to the HTTP request.
|
288
|
+
#
|
289
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
290
|
+
#
|
291
|
+
def get_async(resource_group_name, account_name, application_name, custom_headers:nil)
|
292
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
293
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
294
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
295
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
296
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
297
|
+
fail ArgumentError, 'application_name is nil' if application_name.nil?
|
298
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'MaxLength': '64'" if !application_name.nil? && application_name.length > 64
|
299
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'MinLength': '1'" if !application_name.nil? && application_name.length < 1
|
300
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !application_name.nil? && application_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
|
301
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
302
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
303
|
+
|
304
|
+
|
305
|
+
request_headers = {}
|
306
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
307
|
+
|
308
|
+
# Set Headers
|
309
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
310
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
311
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'
|
312
|
+
|
313
|
+
request_url = @base_url || @client.base_url
|
314
|
+
|
315
|
+
options = {
|
316
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
317
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'applicationName' => application_name,'subscriptionId' => @client.subscription_id},
|
318
|
+
query_params: {'api-version' => @client.api_version},
|
319
|
+
headers: request_headers.merge(custom_headers || {}),
|
320
|
+
base_url: request_url
|
321
|
+
}
|
322
|
+
promise = @client.make_request_async(:get, path_template, options)
|
323
|
+
|
324
|
+
promise = promise.then do |result|
|
325
|
+
http_response = result.response
|
326
|
+
status_code = http_response.status
|
327
|
+
response_content = http_response.body
|
328
|
+
unless status_code == 200
|
329
|
+
error_model = JSON.load(response_content)
|
330
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
331
|
+
end
|
332
|
+
|
333
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
334
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
335
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
336
|
+
# Deserialize Response
|
337
|
+
if status_code == 200
|
338
|
+
begin
|
339
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
340
|
+
result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::Application.mapper()
|
341
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
342
|
+
rescue Exception => e
|
343
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
result
|
348
|
+
end
|
349
|
+
|
350
|
+
promise.execute
|
351
|
+
end
|
352
|
+
|
353
|
+
#
|
354
|
+
# Updates settings for the specified application.
|
355
|
+
#
|
356
|
+
# @param resource_group_name [String] The name of the resource group that
|
357
|
+
# contains the Batch account.
|
358
|
+
# @param account_name [String] The name of the Batch account.
|
359
|
+
# @param application_name [String] The name of the application. This must be
|
360
|
+
# unique within the account.
|
361
|
+
# @param parameters [Application] The parameters for the request.
|
362
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
363
|
+
# will be added to the HTTP request.
|
364
|
+
#
|
365
|
+
# @return [Application] operation results.
|
366
|
+
#
|
367
|
+
def update(resource_group_name, account_name, application_name, parameters, custom_headers:nil)
|
368
|
+
response = update_async(resource_group_name, account_name, application_name, parameters, custom_headers:custom_headers).value!
|
369
|
+
response.body unless response.nil?
|
370
|
+
end
|
371
|
+
|
372
|
+
#
|
373
|
+
# Updates settings for the specified application.
|
374
|
+
#
|
375
|
+
# @param resource_group_name [String] The name of the resource group that
|
376
|
+
# contains the Batch account.
|
377
|
+
# @param account_name [String] The name of the Batch account.
|
378
|
+
# @param application_name [String] The name of the application. This must be
|
379
|
+
# unique within the account.
|
380
|
+
# @param parameters [Application] The parameters for the request.
|
381
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
382
|
+
# will be added to the HTTP request.
|
383
|
+
#
|
384
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
385
|
+
#
|
386
|
+
def update_with_http_info(resource_group_name, account_name, application_name, parameters, custom_headers:nil)
|
387
|
+
update_async(resource_group_name, account_name, application_name, parameters, custom_headers:custom_headers).value!
|
388
|
+
end
|
389
|
+
|
390
|
+
#
|
391
|
+
# Updates settings for the specified application.
|
392
|
+
#
|
393
|
+
# @param resource_group_name [String] The name of the resource group that
|
394
|
+
# contains the Batch account.
|
395
|
+
# @param account_name [String] The name of the Batch account.
|
396
|
+
# @param application_name [String] The name of the application. This must be
|
397
|
+
# unique within the account.
|
398
|
+
# @param parameters [Application] The parameters for the request.
|
399
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
400
|
+
# to the HTTP request.
|
401
|
+
#
|
402
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
403
|
+
#
|
404
|
+
def update_async(resource_group_name, account_name, application_name, parameters, custom_headers:nil)
|
405
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
406
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
407
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
408
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
409
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
410
|
+
fail ArgumentError, 'application_name is nil' if application_name.nil?
|
411
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'MaxLength': '64'" if !application_name.nil? && application_name.length > 64
|
412
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'MinLength': '1'" if !application_name.nil? && application_name.length < 1
|
413
|
+
fail ArgumentError, "'application_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9_-]+$'" if !application_name.nil? && application_name.match(Regexp.new('^^[a-zA-Z0-9_-]+$$')).nil?
|
414
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
415
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
416
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
417
|
+
|
418
|
+
|
419
|
+
request_headers = {}
|
420
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
421
|
+
|
422
|
+
# Set Headers
|
423
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
424
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
425
|
+
|
426
|
+
# Serialize Request
|
427
|
+
request_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::Application.mapper()
|
428
|
+
request_content = @client.serialize(request_mapper, parameters)
|
429
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
430
|
+
|
431
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'
|
432
|
+
|
433
|
+
request_url = @base_url || @client.base_url
|
434
|
+
|
435
|
+
options = {
|
436
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
437
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'applicationName' => application_name,'subscriptionId' => @client.subscription_id},
|
438
|
+
query_params: {'api-version' => @client.api_version},
|
439
|
+
body: request_content,
|
440
|
+
headers: request_headers.merge(custom_headers || {}),
|
441
|
+
base_url: request_url
|
442
|
+
}
|
443
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
444
|
+
|
445
|
+
promise = promise.then do |result|
|
446
|
+
http_response = result.response
|
447
|
+
status_code = http_response.status
|
448
|
+
response_content = http_response.body
|
449
|
+
unless status_code == 200
|
450
|
+
error_model = JSON.load(response_content)
|
451
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
452
|
+
end
|
453
|
+
|
454
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
455
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
456
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
457
|
+
# Deserialize Response
|
458
|
+
if status_code == 200
|
459
|
+
begin
|
460
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
461
|
+
result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::Application.mapper()
|
462
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
463
|
+
rescue Exception => e
|
464
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
465
|
+
end
|
466
|
+
end
|
467
|
+
|
468
|
+
result
|
469
|
+
end
|
470
|
+
|
471
|
+
promise.execute
|
472
|
+
end
|
473
|
+
|
474
|
+
#
|
475
|
+
# Lists all of the applications in the specified account.
|
476
|
+
#
|
477
|
+
# @param resource_group_name [String] The name of the resource group that
|
478
|
+
# contains the Batch account.
|
479
|
+
# @param account_name [String] The name of the Batch account.
|
480
|
+
# @param maxresults [Integer] The maximum number of items to return in the
|
481
|
+
# response.
|
482
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
483
|
+
# will be added to the HTTP request.
|
484
|
+
#
|
485
|
+
# @return [Array<Application>] operation results.
|
486
|
+
#
|
487
|
+
def list(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
488
|
+
first_page = list_as_lazy(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers)
|
489
|
+
first_page.get_all_items
|
490
|
+
end
|
491
|
+
|
492
|
+
#
|
493
|
+
# Lists all of the applications in the specified account.
|
494
|
+
#
|
495
|
+
# @param resource_group_name [String] The name of the resource group that
|
496
|
+
# contains the Batch account.
|
497
|
+
# @param account_name [String] The name of the Batch account.
|
498
|
+
# @param maxresults [Integer] The maximum number of items to return in the
|
499
|
+
# response.
|
500
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
501
|
+
# will be added to the HTTP request.
|
502
|
+
#
|
503
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
504
|
+
#
|
505
|
+
def list_with_http_info(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
506
|
+
list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value!
|
507
|
+
end
|
508
|
+
|
509
|
+
#
|
510
|
+
# Lists all of the applications in the specified account.
|
511
|
+
#
|
512
|
+
# @param resource_group_name [String] The name of the resource group that
|
513
|
+
# contains the Batch account.
|
514
|
+
# @param account_name [String] The name of the Batch account.
|
515
|
+
# @param maxresults [Integer] The maximum number of items to return in the
|
516
|
+
# response.
|
517
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
518
|
+
# to the HTTP request.
|
519
|
+
#
|
520
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
521
|
+
#
|
522
|
+
def list_async(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
523
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
524
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
525
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
526
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
527
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
528
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
529
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
530
|
+
|
531
|
+
|
532
|
+
request_headers = {}
|
533
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
534
|
+
|
535
|
+
# Set Headers
|
536
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
537
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
538
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications'
|
539
|
+
|
540
|
+
request_url = @base_url || @client.base_url
|
541
|
+
|
542
|
+
options = {
|
543
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
544
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
545
|
+
query_params: {'maxresults' => maxresults,'api-version' => @client.api_version},
|
546
|
+
headers: request_headers.merge(custom_headers || {}),
|
547
|
+
base_url: request_url
|
548
|
+
}
|
549
|
+
promise = @client.make_request_async(:get, path_template, options)
|
550
|
+
|
551
|
+
promise = promise.then do |result|
|
552
|
+
http_response = result.response
|
553
|
+
status_code = http_response.status
|
554
|
+
response_content = http_response.body
|
555
|
+
unless status_code == 200
|
556
|
+
error_model = JSON.load(response_content)
|
557
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
558
|
+
end
|
559
|
+
|
560
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
561
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
562
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
563
|
+
# Deserialize Response
|
564
|
+
if status_code == 200
|
565
|
+
begin
|
566
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
567
|
+
result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::ListApplicationsResult.mapper()
|
568
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
569
|
+
rescue Exception => e
|
570
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
571
|
+
end
|
572
|
+
end
|
573
|
+
|
574
|
+
result
|
575
|
+
end
|
576
|
+
|
577
|
+
promise.execute
|
578
|
+
end
|
579
|
+
|
580
|
+
#
|
581
|
+
# Lists all of the applications in the specified account.
|
582
|
+
#
|
583
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
584
|
+
# to List operation.
|
585
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
586
|
+
# will be added to the HTTP request.
|
587
|
+
#
|
588
|
+
# @return [ListApplicationsResult] operation results.
|
589
|
+
#
|
590
|
+
def list_next(next_page_link, custom_headers:nil)
|
591
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
592
|
+
response.body unless response.nil?
|
593
|
+
end
|
594
|
+
|
595
|
+
#
|
596
|
+
# Lists all of the applications in the specified account.
|
597
|
+
#
|
598
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
599
|
+
# to List operation.
|
600
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
601
|
+
# will be added to the HTTP request.
|
602
|
+
#
|
603
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
604
|
+
#
|
605
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
606
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
607
|
+
end
|
608
|
+
|
609
|
+
#
|
610
|
+
# Lists all of the applications in the specified account.
|
611
|
+
#
|
612
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
613
|
+
# to List operation.
|
614
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
615
|
+
# to the HTTP request.
|
616
|
+
#
|
617
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
618
|
+
#
|
619
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
620
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
621
|
+
|
622
|
+
|
623
|
+
request_headers = {}
|
624
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
625
|
+
|
626
|
+
# Set Headers
|
627
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
628
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
629
|
+
path_template = '{nextLink}'
|
630
|
+
|
631
|
+
request_url = @base_url || @client.base_url
|
632
|
+
|
633
|
+
options = {
|
634
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
635
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
636
|
+
headers: request_headers.merge(custom_headers || {}),
|
637
|
+
base_url: request_url
|
638
|
+
}
|
639
|
+
promise = @client.make_request_async(:get, path_template, options)
|
640
|
+
|
641
|
+
promise = promise.then do |result|
|
642
|
+
http_response = result.response
|
643
|
+
status_code = http_response.status
|
644
|
+
response_content = http_response.body
|
645
|
+
unless status_code == 200
|
646
|
+
error_model = JSON.load(response_content)
|
647
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
648
|
+
end
|
649
|
+
|
650
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
651
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
652
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
653
|
+
# Deserialize Response
|
654
|
+
if status_code == 200
|
655
|
+
begin
|
656
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
657
|
+
result_mapper = Azure::Batch::Mgmt::V2019_04_01::Models::ListApplicationsResult.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
|
+
# Lists all of the applications in the specified account.
|
672
|
+
#
|
673
|
+
# @param resource_group_name [String] The name of the resource group that
|
674
|
+
# contains the Batch account.
|
675
|
+
# @param account_name [String] The name of the Batch account.
|
676
|
+
# @param maxresults [Integer] The maximum number of items to return in the
|
677
|
+
# response.
|
678
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
679
|
+
# will be added to the HTTP request.
|
680
|
+
#
|
681
|
+
# @return [ListApplicationsResult] which provide lazy access to pages of the
|
682
|
+
# response.
|
683
|
+
#
|
684
|
+
def list_as_lazy(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
685
|
+
response = list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value!
|
686
|
+
unless response.nil?
|
687
|
+
page = response.body
|
688
|
+
page.next_method = Proc.new do |next_page_link|
|
689
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
690
|
+
end
|
691
|
+
page
|
692
|
+
end
|
693
|
+
end
|
694
|
+
|
695
|
+
end
|
696
|
+
end
|