azure_mgmt_batchai 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai.rb +107 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/batch_aimanagement_client.rb +143 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/clusters.rb +1261 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/file_servers.rb +918 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/jobs.rb +1536 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/allocation_state.rb +16 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/auto_scale_settings.rb +75 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/azure_blob_file_system_reference.rb +97 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/azure_file_share_reference.rb +109 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/azure_storage_credentials_info.rb +63 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/batch_aierror.rb +80 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/caching_type.rb +17 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/caffe2settings.rb +70 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/caffe_settings.rb +97 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/chainer_settings.rb +83 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/cluster.rb +310 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb +161 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/cluster_list_result.rb +98 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/cluster_update_parameters.rb +67 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/clusters_list_by_resource_group_options.rb +69 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/clusters_list_options.rb +69 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/cntksettings.rb +110 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/container_settings.rb +47 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/custom_toolkit_settings.rb +46 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/data_disks.rb +88 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/deallocation_option.rb +18 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/environment_setting.rb +57 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/execution_state.rb +19 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file.rb +85 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_list_result.rb +99 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_server.rb +197 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_server_create_parameters.rb +116 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_server_list_result.rb +98 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_server_provisioning_state.rb +19 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_server_reference.rb +85 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_server_type.rb +16 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_servers_list_by_resource_group_options.rb +69 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_servers_list_options.rb +69 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/image_reference.rb +79 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/image_source_registry.rb +70 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/input_directory.rb +62 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job.rb +427 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_base_properties_constraints.rb +48 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_create_parameters.rb +313 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_list_result.rb +98 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_preparation.rb +48 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_properties_constraints.rb +48 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_properties_execution_info.rb +96 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/jobs_list_by_resource_group_options.rb +69 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/jobs_list_options.rb +69 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/jobs_list_output_files_options.rb +71 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/key_vault_key_reference.rb +58 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/key_vault_secret_reference.rb +58 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/local_data_volume.rb +59 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/manual_scale_settings.rb +65 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/mount_settings.rb +81 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/mount_volumes.rb +121 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/name_value_pair.rb +57 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/node_setup.rb +67 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/node_state_counts.rb +91 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/operation.rb +83 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/operation_display.rb +80 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/operation_list_result.rb +99 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/output_directory.rb +104 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/output_type.rb +18 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/private_registry_credentials.rb +73 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/provisioning_state.rb +18 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/remote_login_information.rb +68 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/remote_login_information_list_result.rb +99 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/resource.rb +112 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/resource_id.rb +47 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/scale_settings.rb +64 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/setup_task.rb +92 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/ssh_configuration.rb +68 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/storage_account_type.rb +16 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/tensor_flow_settings.rb +123 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/tool_type.rb +20 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/unmanaged_file_system_reference.rb +59 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/user_account_settings.rb +71 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/virtual_machine_configuration.rb +47 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/vm_priority.rb +16 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/module_definition.rb +9 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_batchai/operations.rb +219 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai.rb +115 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/batch_aimanagement_client.rb +147 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/clusters.rb +1261 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/file_servers.rb +918 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/jobs.rb +1547 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/allocation_state.rb +16 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/app_insights_reference.rb +77 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/auto_scale_settings.rb +75 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/azure_blob_file_system_reference.rb +99 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/azure_file_share_reference.rb +110 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/azure_storage_credentials_info.rb +63 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/batch_aierror.rb +80 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/caching_type.rb +17 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/caffe2settings.rb +70 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/caffe_settings.rb +97 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/chainer_settings.rb +83 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster.rb +310 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb +161 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_list_result.rb +98 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_update_parameters.rb +67 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/clusters_list_by_resource_group_options.rb +69 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/clusters_list_options.rb +69 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/cntksettings.rb +110 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/container_settings.rb +47 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/custom_toolkit_settings.rb +46 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/data_disks.rb +87 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/deallocation_option.rb +18 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/environment_variable.rb +57 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/environment_variable_with_secret_value.rb +75 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/execution_state.rb +19 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/file.rb +92 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/file_list_result.rb +100 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server.rb +197 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_create_parameters.rb +116 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_list_result.rb +98 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_provisioning_state.rb +19 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_reference.rb +86 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_type.rb +16 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/file_servers_list_by_resource_group_options.rb +69 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/file_servers_list_options.rb +69 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/image_reference.rb +99 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/image_source_registry.rb +70 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/input_directory.rb +59 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/job.rb +490 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/job_base_properties_constraints.rb +48 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/job_create_parameters.rb +360 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/job_list_result.rb +98 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/job_preparation.rb +48 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/job_properties_constraints.rb +48 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/job_properties_execution_info.rb +96 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/jobs_list_by_resource_group_options.rb +69 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/jobs_list_options.rb +69 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/jobs_list_output_files_options.rb +82 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/key_vault_key_reference.rb +58 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/key_vault_secret_reference.rb +58 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/list_usages_result.rb +100 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/local_data_volume.rb +59 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/manual_scale_settings.rb +65 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/mount_settings.rb +81 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/mount_volumes.rb +121 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/name_value_pair.rb +57 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/node_setup.rb +82 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/node_state_counts.rb +91 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/operation.rb +83 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/operation_display.rb +80 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/operation_list_result.rb +99 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/output_directory.rb +110 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/output_type.rb +18 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/performance_counters_settings.rb +50 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/private_registry_credentials.rb +73 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/provisioning_state.rb +18 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/py_torch_settings.rb +95 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/remote_login_information.rb +68 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/remote_login_information_list_result.rb +99 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/resource.rb +112 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/resource_id.rb +47 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/scale_settings.rb +64 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/setup_task.rb +134 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/ssh_configuration.rb +69 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/storage_account_type.rb +16 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/tensor_flow_settings.rb +123 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/tool_type.rb +20 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/unmanaged_file_system_reference.rb +61 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/usage.rb +83 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/usage_name.rb +57 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/user_account_settings.rb +71 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/virtual_machine_configuration.rb +47 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/models/vm_priority.rb +16 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/module_definition.rb +9 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/operations.rb +219 -0
- data/lib/2018-03-01/generated/azure_mgmt_batchai/usage_operations.rb +234 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai.rb +125 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/batch_aimanagement_client.rb +155 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/clusters.rb +1122 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/experiments.rb +712 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/file_servers.rb +743 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/jobs.rb +1560 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/allocation_state.rb +16 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/app_insights_reference.rb +76 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/auto_scale_settings.rb +77 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/azure_blob_file_system_reference.rb +98 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/azure_file_share_reference.rb +111 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/azure_storage_credentials_info.rb +61 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/batch_aierror.rb +83 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/caching_type.rb +17 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/caffe2settings.rb +70 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/caffe_settings.rb +97 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/chainer_settings.rb +83 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/cluster.rb +279 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb +134 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/cluster_list_result.rb +100 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/cluster_update_parameters.rb +48 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/clusters_list_by_workspace_options.rb +47 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/cntksettings.rb +111 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/container_settings.rb +60 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/custom_mpi_settings.rb +60 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/custom_toolkit_settings.rb +47 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/data_disks.rb +92 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/deallocation_option.rb +17 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/environment_variable.rb +57 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/environment_variable_with_secret_value.rb +73 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/execution_state.rb +19 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/experiment.rb +101 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/experiment_list_result.rb +100 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/experiments_list_by_workspace_options.rb +47 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/file.rb +98 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/file_list_result.rb +101 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/file_server.rb +171 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/file_server_create_parameters.rb +88 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/file_server_list_result.rb +99 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/file_server_provisioning_state.rb +19 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/file_server_reference.rb +88 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/file_servers_list_by_workspace_options.rb +47 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/file_type.rb +16 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/horovod_settings.rb +83 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/image_reference.rb +99 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/image_source_registry.rb +70 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/input_directory.rb +59 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/job.rb +490 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/job_base_properties_constraints.rb +48 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/job_create_parameters.rb +340 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/job_list_result.rb +100 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/job_preparation.rb +49 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/job_priority.rb +17 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/job_properties_constraints.rb +48 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/job_properties_execution_info.rb +99 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/jobs_list_by_experiment_options.rb +47 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/jobs_list_output_files_options.rb +82 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/key_vault_secret_reference.rb +60 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/list_usages_result.rb +102 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/manual_scale_settings.rb +63 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/mount_settings.rb +71 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/mount_volumes.rb +122 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/name_value_pair.rb +57 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/node_setup.rb +79 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/node_state_counts.rb +100 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/operation.rb +85 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/operation_display.rb +84 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/operation_list_result.rb +101 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/output_directory.rb +77 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/performance_counters_settings.rb +50 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/private_registry_credentials.rb +74 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/provisioning_state.rb +18 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/proxy_resource.rb +71 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/py_torch_settings.rb +96 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/remote_login_information.rb +71 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/remote_login_information_list_result.rb +101 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/resource.rb +112 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/resource_id.rb +47 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/scale_settings.rb +64 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/setup_task.rb +124 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/ssh_configuration.rb +70 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/storage_account_type.rb +16 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/tensor_flow_settings.rb +126 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/tool_type.rb +22 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/unmanaged_file_system_reference.rb +62 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/usage.rb +85 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/usage_name.rb +59 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/usage_unit.rb +15 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/user_account_settings.rb +71 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/virtual_machine_configuration.rb +48 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/vm_priority.rb +16 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/workspace.rb +127 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/workspace_create_parameters.rb +66 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/workspace_list_result.rb +100 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/workspace_update_parameters.rb +55 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/workspaces_list_by_resource_group_options.rb +47 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/models/workspaces_list_options.rb +47 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/module_definition.rb +9 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/operations.rb +219 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/usages.rb +234 -0
- data/lib/2018-05-01/generated/azure_mgmt_batchai/workspaces.rb +991 -0
- data/lib/azure_mgmt_batchai.rb +8 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/batchai_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/batchai_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/batchai_profile_module.rb +437 -0
- data/lib/version.rb +7 -0
- metadata +399 -0
|
@@ -0,0 +1,1536 @@
|
|
|
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::BatchAI::Mgmt::V2017_09_01_preview
|
|
7
|
+
#
|
|
8
|
+
# The Azure BatchAI Management API.
|
|
9
|
+
#
|
|
10
|
+
class Jobs
|
|
11
|
+
include MsRestAzure
|
|
12
|
+
|
|
13
|
+
#
|
|
14
|
+
# Creates and initializes a new instance of the Jobs class.
|
|
15
|
+
# @param client service class for accessing basic functionality.
|
|
16
|
+
#
|
|
17
|
+
def initialize(client)
|
|
18
|
+
@client = client
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# @return [BatchAIManagementClient] reference to the BatchAIManagementClient
|
|
22
|
+
attr_reader :client
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
# Adds a Job that gets executed on a cluster.
|
|
26
|
+
#
|
|
27
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
28
|
+
# resource belongs.
|
|
29
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
30
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
31
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
32
|
+
# characters long.
|
|
33
|
+
# @param parameters [JobCreateParameters] The parameters to provide for job
|
|
34
|
+
# creation.
|
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
36
|
+
# will be added to the HTTP request.
|
|
37
|
+
#
|
|
38
|
+
# @return [Job] operation results.
|
|
39
|
+
#
|
|
40
|
+
def create(resource_group_name, job_name, parameters, custom_headers:nil)
|
|
41
|
+
response = create_async(resource_group_name, job_name, parameters, custom_headers:custom_headers).value!
|
|
42
|
+
response.body unless response.nil?
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
#
|
|
46
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
47
|
+
# resource belongs.
|
|
48
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
49
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
50
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
51
|
+
# characters long.
|
|
52
|
+
# @param parameters [JobCreateParameters] The parameters to provide for job
|
|
53
|
+
# creation.
|
|
54
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
55
|
+
# will be added to the HTTP request.
|
|
56
|
+
#
|
|
57
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
58
|
+
# response.
|
|
59
|
+
#
|
|
60
|
+
def create_async(resource_group_name, job_name, parameters, custom_headers:nil)
|
|
61
|
+
# Send request
|
|
62
|
+
promise = begin_create_async(resource_group_name, job_name, parameters, custom_headers:custom_headers)
|
|
63
|
+
|
|
64
|
+
promise = promise.then do |response|
|
|
65
|
+
# Defining deserialization method.
|
|
66
|
+
deserialize_method = lambda do |parsed_response|
|
|
67
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::Job.mapper()
|
|
68
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Waiting for response.
|
|
72
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
promise
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
#
|
|
79
|
+
# Deletes the specified Batch AI job.
|
|
80
|
+
#
|
|
81
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
82
|
+
# resource belongs.
|
|
83
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
84
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
85
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
86
|
+
# characters long.
|
|
87
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
88
|
+
# will be added to the HTTP request.
|
|
89
|
+
#
|
|
90
|
+
def delete(resource_group_name, job_name, custom_headers:nil)
|
|
91
|
+
response = delete_async(resource_group_name, job_name, custom_headers:custom_headers).value!
|
|
92
|
+
nil
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
#
|
|
96
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
97
|
+
# resource belongs.
|
|
98
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
99
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
100
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
101
|
+
# characters long.
|
|
102
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
103
|
+
# will be added to the HTTP request.
|
|
104
|
+
#
|
|
105
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
106
|
+
# response.
|
|
107
|
+
#
|
|
108
|
+
def delete_async(resource_group_name, job_name, custom_headers:nil)
|
|
109
|
+
# Send request
|
|
110
|
+
promise = begin_delete_async(resource_group_name, job_name, custom_headers:custom_headers)
|
|
111
|
+
|
|
112
|
+
promise = promise.then do |response|
|
|
113
|
+
# Defining deserialization method.
|
|
114
|
+
deserialize_method = lambda do |parsed_response|
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Waiting for response.
|
|
118
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
promise
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
#
|
|
125
|
+
# Gets information about the specified Batch AI job.
|
|
126
|
+
#
|
|
127
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
128
|
+
# resource belongs.
|
|
129
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
130
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
131
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
132
|
+
# characters long.
|
|
133
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
134
|
+
# will be added to the HTTP request.
|
|
135
|
+
#
|
|
136
|
+
# @return [Job] operation results.
|
|
137
|
+
#
|
|
138
|
+
def get(resource_group_name, job_name, custom_headers:nil)
|
|
139
|
+
response = get_async(resource_group_name, job_name, custom_headers:custom_headers).value!
|
|
140
|
+
response.body unless response.nil?
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
#
|
|
144
|
+
# Gets information about the specified Batch AI job.
|
|
145
|
+
#
|
|
146
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
147
|
+
# resource belongs.
|
|
148
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
149
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
150
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
151
|
+
# characters long.
|
|
152
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
153
|
+
# will be added to the HTTP request.
|
|
154
|
+
#
|
|
155
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
156
|
+
#
|
|
157
|
+
def get_with_http_info(resource_group_name, job_name, custom_headers:nil)
|
|
158
|
+
get_async(resource_group_name, job_name, custom_headers:custom_headers).value!
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
#
|
|
162
|
+
# Gets information about the specified Batch AI job.
|
|
163
|
+
#
|
|
164
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
165
|
+
# resource belongs.
|
|
166
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
167
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
168
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
169
|
+
# characters long.
|
|
170
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
171
|
+
# to the HTTP request.
|
|
172
|
+
#
|
|
173
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
174
|
+
#
|
|
175
|
+
def get_async(resource_group_name, job_name, custom_headers:nil)
|
|
176
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
177
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
178
|
+
fail ArgumentError, 'job_name is nil' if job_name.nil?
|
|
179
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MaxLength': '64'" if !job_name.nil? && job_name.length > 64
|
|
180
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MinLength': '1'" if !job_name.nil? && job_name.length < 1
|
|
181
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !job_name.nil? && job_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
182
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
183
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
request_headers = {}
|
|
187
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
188
|
+
|
|
189
|
+
# Set Headers
|
|
190
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
191
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
192
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}'
|
|
193
|
+
|
|
194
|
+
request_url = @base_url || @client.base_url
|
|
195
|
+
|
|
196
|
+
options = {
|
|
197
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
198
|
+
path_params: {'resourceGroupName' => resource_group_name,'jobName' => job_name,'subscriptionId' => @client.subscription_id},
|
|
199
|
+
query_params: {'api-version' => @client.api_version},
|
|
200
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
201
|
+
base_url: request_url
|
|
202
|
+
}
|
|
203
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
204
|
+
|
|
205
|
+
promise = promise.then do |result|
|
|
206
|
+
http_response = result.response
|
|
207
|
+
status_code = http_response.status
|
|
208
|
+
response_content = http_response.body
|
|
209
|
+
unless status_code == 200
|
|
210
|
+
error_model = JSON.load(response_content)
|
|
211
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
215
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
216
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
217
|
+
# Deserialize Response
|
|
218
|
+
if status_code == 200
|
|
219
|
+
begin
|
|
220
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
221
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::Job.mapper()
|
|
222
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
223
|
+
rescue Exception => e
|
|
224
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
result
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
promise.execute
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
#
|
|
235
|
+
# Gets the IP address and port information of all the compute nodes which are
|
|
236
|
+
# used for job execution.
|
|
237
|
+
#
|
|
238
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
239
|
+
# resource belongs.
|
|
240
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
241
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
242
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
243
|
+
# characters long.
|
|
244
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
245
|
+
# will be added to the HTTP request.
|
|
246
|
+
#
|
|
247
|
+
# @return [Array<RemoteLoginInformation>] operation results.
|
|
248
|
+
#
|
|
249
|
+
def list_remote_login_information(resource_group_name, job_name, custom_headers:nil)
|
|
250
|
+
first_page = list_remote_login_information_as_lazy(resource_group_name, job_name, custom_headers:custom_headers)
|
|
251
|
+
first_page.get_all_items
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
#
|
|
255
|
+
# Gets the IP address and port information of all the compute nodes which are
|
|
256
|
+
# used for job execution.
|
|
257
|
+
#
|
|
258
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
259
|
+
# resource belongs.
|
|
260
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
261
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
262
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
263
|
+
# characters long.
|
|
264
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
265
|
+
# will be added to the HTTP request.
|
|
266
|
+
#
|
|
267
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
268
|
+
#
|
|
269
|
+
def list_remote_login_information_with_http_info(resource_group_name, job_name, custom_headers:nil)
|
|
270
|
+
list_remote_login_information_async(resource_group_name, job_name, custom_headers:custom_headers).value!
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
#
|
|
274
|
+
# Gets the IP address and port information of all the compute nodes which are
|
|
275
|
+
# used for job execution.
|
|
276
|
+
#
|
|
277
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
278
|
+
# resource belongs.
|
|
279
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
280
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
281
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
282
|
+
# characters long.
|
|
283
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
284
|
+
# to the HTTP request.
|
|
285
|
+
#
|
|
286
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
287
|
+
#
|
|
288
|
+
def list_remote_login_information_async(resource_group_name, job_name, custom_headers:nil)
|
|
289
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
290
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
291
|
+
fail ArgumentError, 'job_name is nil' if job_name.nil?
|
|
292
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MaxLength': '64'" if !job_name.nil? && job_name.length > 64
|
|
293
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MinLength': '1'" if !job_name.nil? && job_name.length < 1
|
|
294
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !job_name.nil? && job_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
295
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
296
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
request_headers = {}
|
|
300
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
301
|
+
|
|
302
|
+
# Set Headers
|
|
303
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
304
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
305
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}/listRemoteLoginInformation'
|
|
306
|
+
|
|
307
|
+
request_url = @base_url || @client.base_url
|
|
308
|
+
|
|
309
|
+
options = {
|
|
310
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
311
|
+
path_params: {'resourceGroupName' => resource_group_name,'jobName' => job_name,'subscriptionId' => @client.subscription_id},
|
|
312
|
+
query_params: {'api-version' => @client.api_version},
|
|
313
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
314
|
+
base_url: request_url
|
|
315
|
+
}
|
|
316
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
317
|
+
|
|
318
|
+
promise = promise.then do |result|
|
|
319
|
+
http_response = result.response
|
|
320
|
+
status_code = http_response.status
|
|
321
|
+
response_content = http_response.body
|
|
322
|
+
unless status_code == 200
|
|
323
|
+
error_model = JSON.load(response_content)
|
|
324
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
328
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
329
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
330
|
+
# Deserialize Response
|
|
331
|
+
if status_code == 200
|
|
332
|
+
begin
|
|
333
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
334
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::RemoteLoginInformationListResult.mapper()
|
|
335
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
336
|
+
rescue Exception => e
|
|
337
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
result
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
promise.execute
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
#
|
|
348
|
+
# Terminates a job.
|
|
349
|
+
#
|
|
350
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
351
|
+
# resource belongs.
|
|
352
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
353
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
354
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
355
|
+
# characters long.
|
|
356
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
357
|
+
# will be added to the HTTP request.
|
|
358
|
+
#
|
|
359
|
+
def terminate(resource_group_name, job_name, custom_headers:nil)
|
|
360
|
+
response = terminate_async(resource_group_name, job_name, custom_headers:custom_headers).value!
|
|
361
|
+
nil
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
#
|
|
365
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
366
|
+
# resource belongs.
|
|
367
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
368
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
369
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
370
|
+
# characters long.
|
|
371
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
372
|
+
# will be added to the HTTP request.
|
|
373
|
+
#
|
|
374
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
375
|
+
# response.
|
|
376
|
+
#
|
|
377
|
+
def terminate_async(resource_group_name, job_name, custom_headers:nil)
|
|
378
|
+
# Send request
|
|
379
|
+
promise = begin_terminate_async(resource_group_name, job_name, custom_headers:custom_headers)
|
|
380
|
+
|
|
381
|
+
promise = promise.then do |response|
|
|
382
|
+
# Defining deserialization method.
|
|
383
|
+
deserialize_method = lambda do |parsed_response|
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# Waiting for response.
|
|
387
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
promise
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
#
|
|
394
|
+
# Gets information about the jobs associated with the subscription.
|
|
395
|
+
#
|
|
396
|
+
# @param jobs_list_options [JobsListOptions] Additional parameters for the
|
|
397
|
+
# operation
|
|
398
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
399
|
+
# will be added to the HTTP request.
|
|
400
|
+
#
|
|
401
|
+
# @return [Array<Job>] operation results.
|
|
402
|
+
#
|
|
403
|
+
def list(jobs_list_options:nil, custom_headers:nil)
|
|
404
|
+
first_page = list_as_lazy(jobs_list_options:jobs_list_options, custom_headers:custom_headers)
|
|
405
|
+
first_page.get_all_items
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
#
|
|
409
|
+
# Gets information about the jobs associated with the subscription.
|
|
410
|
+
#
|
|
411
|
+
# @param jobs_list_options [JobsListOptions] Additional parameters for the
|
|
412
|
+
# operation
|
|
413
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
414
|
+
# will be added to the HTTP request.
|
|
415
|
+
#
|
|
416
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
417
|
+
#
|
|
418
|
+
def list_with_http_info(jobs_list_options:nil, custom_headers:nil)
|
|
419
|
+
list_async(jobs_list_options:jobs_list_options, custom_headers:custom_headers).value!
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
#
|
|
423
|
+
# Gets information about the jobs associated with the subscription.
|
|
424
|
+
#
|
|
425
|
+
# @param jobs_list_options [JobsListOptions] Additional parameters for the
|
|
426
|
+
# operation
|
|
427
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
428
|
+
# to the HTTP request.
|
|
429
|
+
#
|
|
430
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
431
|
+
#
|
|
432
|
+
def list_async(jobs_list_options:nil, custom_headers:nil)
|
|
433
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
434
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
435
|
+
|
|
436
|
+
filter = nil
|
|
437
|
+
select = nil
|
|
438
|
+
max_results = nil
|
|
439
|
+
unless jobs_list_options.nil?
|
|
440
|
+
filter = jobs_list_options.filter
|
|
441
|
+
end
|
|
442
|
+
unless jobs_list_options.nil?
|
|
443
|
+
select = jobs_list_options.select
|
|
444
|
+
end
|
|
445
|
+
unless jobs_list_options.nil?
|
|
446
|
+
max_results = jobs_list_options.maxResults
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
request_headers = {}
|
|
450
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
451
|
+
|
|
452
|
+
# Set Headers
|
|
453
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
454
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
455
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.BatchAI/jobs'
|
|
456
|
+
|
|
457
|
+
request_url = @base_url || @client.base_url
|
|
458
|
+
|
|
459
|
+
options = {
|
|
460
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
461
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
|
462
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$select' => select,'maxresults' => max_results},
|
|
463
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
464
|
+
base_url: request_url
|
|
465
|
+
}
|
|
466
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
467
|
+
|
|
468
|
+
promise = promise.then do |result|
|
|
469
|
+
http_response = result.response
|
|
470
|
+
status_code = http_response.status
|
|
471
|
+
response_content = http_response.body
|
|
472
|
+
unless status_code == 200
|
|
473
|
+
error_model = JSON.load(response_content)
|
|
474
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
478
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
479
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
480
|
+
# Deserialize Response
|
|
481
|
+
if status_code == 200
|
|
482
|
+
begin
|
|
483
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
484
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::JobListResult.mapper()
|
|
485
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
486
|
+
rescue Exception => e
|
|
487
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
488
|
+
end
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
result
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
promise.execute
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
#
|
|
498
|
+
# Gets information about the Batch AI jobs associated within the specified
|
|
499
|
+
# resource group.
|
|
500
|
+
#
|
|
501
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
502
|
+
# resource belongs.
|
|
503
|
+
# @param jobs_list_by_resource_group_options [JobsListByResourceGroupOptions]
|
|
504
|
+
# Additional parameters for the operation
|
|
505
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
506
|
+
# will be added to the HTTP request.
|
|
507
|
+
#
|
|
508
|
+
# @return [Array<Job>] operation results.
|
|
509
|
+
#
|
|
510
|
+
def list_by_resource_group(resource_group_name, jobs_list_by_resource_group_options:nil, custom_headers:nil)
|
|
511
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, jobs_list_by_resource_group_options:jobs_list_by_resource_group_options, custom_headers:custom_headers)
|
|
512
|
+
first_page.get_all_items
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
#
|
|
516
|
+
# Gets information about the Batch AI jobs associated within the specified
|
|
517
|
+
# resource group.
|
|
518
|
+
#
|
|
519
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
520
|
+
# resource belongs.
|
|
521
|
+
# @param jobs_list_by_resource_group_options [JobsListByResourceGroupOptions]
|
|
522
|
+
# Additional parameters for the operation
|
|
523
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
524
|
+
# will be added to the HTTP request.
|
|
525
|
+
#
|
|
526
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
527
|
+
#
|
|
528
|
+
def list_by_resource_group_with_http_info(resource_group_name, jobs_list_by_resource_group_options:nil, custom_headers:nil)
|
|
529
|
+
list_by_resource_group_async(resource_group_name, jobs_list_by_resource_group_options:jobs_list_by_resource_group_options, custom_headers:custom_headers).value!
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
#
|
|
533
|
+
# Gets information about the Batch AI jobs associated within the specified
|
|
534
|
+
# resource group.
|
|
535
|
+
#
|
|
536
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
537
|
+
# resource belongs.
|
|
538
|
+
# @param jobs_list_by_resource_group_options [JobsListByResourceGroupOptions]
|
|
539
|
+
# Additional parameters for the operation
|
|
540
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
541
|
+
# to the HTTP request.
|
|
542
|
+
#
|
|
543
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
544
|
+
#
|
|
545
|
+
def list_by_resource_group_async(resource_group_name, jobs_list_by_resource_group_options:nil, custom_headers:nil)
|
|
546
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
547
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
548
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
549
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
550
|
+
|
|
551
|
+
filter = nil
|
|
552
|
+
select = nil
|
|
553
|
+
max_results = nil
|
|
554
|
+
unless jobs_list_by_resource_group_options.nil?
|
|
555
|
+
filter = jobs_list_by_resource_group_options.filter
|
|
556
|
+
end
|
|
557
|
+
unless jobs_list_by_resource_group_options.nil?
|
|
558
|
+
select = jobs_list_by_resource_group_options.select
|
|
559
|
+
end
|
|
560
|
+
unless jobs_list_by_resource_group_options.nil?
|
|
561
|
+
max_results = jobs_list_by_resource_group_options.maxResults
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
request_headers = {}
|
|
565
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
566
|
+
|
|
567
|
+
# Set Headers
|
|
568
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
569
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
570
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs'
|
|
571
|
+
|
|
572
|
+
request_url = @base_url || @client.base_url
|
|
573
|
+
|
|
574
|
+
options = {
|
|
575
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
576
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
|
577
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$select' => select,'maxresults' => max_results},
|
|
578
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
579
|
+
base_url: request_url
|
|
580
|
+
}
|
|
581
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
582
|
+
|
|
583
|
+
promise = promise.then do |result|
|
|
584
|
+
http_response = result.response
|
|
585
|
+
status_code = http_response.status
|
|
586
|
+
response_content = http_response.body
|
|
587
|
+
unless status_code == 200
|
|
588
|
+
error_model = JSON.load(response_content)
|
|
589
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
593
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
594
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
595
|
+
# Deserialize Response
|
|
596
|
+
if status_code == 200
|
|
597
|
+
begin
|
|
598
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
599
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::JobListResult.mapper()
|
|
600
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
601
|
+
rescue Exception => e
|
|
602
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
603
|
+
end
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
result
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
promise.execute
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
#
|
|
613
|
+
# List all files inside the given output directory (Only if the output
|
|
614
|
+
# directory is on Azure File Share or Azure Storage container).
|
|
615
|
+
#
|
|
616
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
617
|
+
# resource belongs.
|
|
618
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
619
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
620
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
621
|
+
# characters long.
|
|
622
|
+
# @param jobs_list_output_files_options [JobsListOutputFilesOptions] Additional
|
|
623
|
+
# parameters for the operation
|
|
624
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
625
|
+
# will be added to the HTTP request.
|
|
626
|
+
#
|
|
627
|
+
# @return [Array<File>] operation results.
|
|
628
|
+
#
|
|
629
|
+
def list_output_files(resource_group_name, job_name, jobs_list_output_files_options, custom_headers:nil)
|
|
630
|
+
first_page = list_output_files_as_lazy(resource_group_name, job_name, jobs_list_output_files_options, custom_headers:custom_headers)
|
|
631
|
+
first_page.get_all_items
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
#
|
|
635
|
+
# List all files inside the given output directory (Only if the output
|
|
636
|
+
# directory is on Azure File Share or Azure Storage container).
|
|
637
|
+
#
|
|
638
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
639
|
+
# resource belongs.
|
|
640
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
641
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
642
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
643
|
+
# characters long.
|
|
644
|
+
# @param jobs_list_output_files_options [JobsListOutputFilesOptions] Additional
|
|
645
|
+
# parameters for the operation
|
|
646
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
647
|
+
# will be added to the HTTP request.
|
|
648
|
+
#
|
|
649
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
650
|
+
#
|
|
651
|
+
def list_output_files_with_http_info(resource_group_name, job_name, jobs_list_output_files_options, custom_headers:nil)
|
|
652
|
+
list_output_files_async(resource_group_name, job_name, jobs_list_output_files_options, custom_headers:custom_headers).value!
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
#
|
|
656
|
+
# List all files inside the given output directory (Only if the output
|
|
657
|
+
# directory is on Azure File Share or Azure Storage container).
|
|
658
|
+
#
|
|
659
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
660
|
+
# resource belongs.
|
|
661
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
662
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
663
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
664
|
+
# characters long.
|
|
665
|
+
# @param jobs_list_output_files_options [JobsListOutputFilesOptions] Additional
|
|
666
|
+
# parameters for the operation
|
|
667
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
668
|
+
# to the HTTP request.
|
|
669
|
+
#
|
|
670
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
671
|
+
#
|
|
672
|
+
def list_output_files_async(resource_group_name, job_name, jobs_list_output_files_options, custom_headers:nil)
|
|
673
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
674
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
675
|
+
fail ArgumentError, 'job_name is nil' if job_name.nil?
|
|
676
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MaxLength': '64'" if !job_name.nil? && job_name.length > 64
|
|
677
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MinLength': '1'" if !job_name.nil? && job_name.length < 1
|
|
678
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !job_name.nil? && job_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
679
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
680
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
681
|
+
fail ArgumentError, 'jobs_list_output_files_options is nil' if jobs_list_output_files_options.nil?
|
|
682
|
+
|
|
683
|
+
outputdirectoryid = nil
|
|
684
|
+
linkexpiryinminutes = nil
|
|
685
|
+
max_results = nil
|
|
686
|
+
unless jobs_list_output_files_options.nil?
|
|
687
|
+
outputdirectoryid = jobs_list_output_files_options.outputdirectoryid
|
|
688
|
+
end
|
|
689
|
+
unless jobs_list_output_files_options.nil?
|
|
690
|
+
linkexpiryinminutes = jobs_list_output_files_options.linkexpiryinminutes
|
|
691
|
+
end
|
|
692
|
+
unless jobs_list_output_files_options.nil?
|
|
693
|
+
max_results = jobs_list_output_files_options.maxResults
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
request_headers = {}
|
|
697
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
698
|
+
|
|
699
|
+
# Set Headers
|
|
700
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
701
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
702
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}/listOutputFiles'
|
|
703
|
+
|
|
704
|
+
request_url = @base_url || @client.base_url
|
|
705
|
+
|
|
706
|
+
options = {
|
|
707
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
708
|
+
path_params: {'resourceGroupName' => resource_group_name,'jobName' => job_name,'subscriptionId' => @client.subscription_id},
|
|
709
|
+
query_params: {'api-version' => @client.api_version,'outputdirectoryid' => outputdirectoryid,'linkexpiryinminutes' => linkexpiryinminutes,'maxresults' => max_results},
|
|
710
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
711
|
+
base_url: request_url
|
|
712
|
+
}
|
|
713
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
714
|
+
|
|
715
|
+
promise = promise.then do |result|
|
|
716
|
+
http_response = result.response
|
|
717
|
+
status_code = http_response.status
|
|
718
|
+
response_content = http_response.body
|
|
719
|
+
unless status_code == 200
|
|
720
|
+
error_model = JSON.load(response_content)
|
|
721
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
722
|
+
end
|
|
723
|
+
|
|
724
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
725
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
726
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
727
|
+
# Deserialize Response
|
|
728
|
+
if status_code == 200
|
|
729
|
+
begin
|
|
730
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
731
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::FileListResult.mapper()
|
|
732
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
733
|
+
rescue Exception => e
|
|
734
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
735
|
+
end
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
result
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
promise.execute
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
#
|
|
745
|
+
# Adds a Job that gets executed on a cluster.
|
|
746
|
+
#
|
|
747
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
748
|
+
# resource belongs.
|
|
749
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
750
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
751
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
752
|
+
# characters long.
|
|
753
|
+
# @param parameters [JobCreateParameters] The parameters to provide for job
|
|
754
|
+
# creation.
|
|
755
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
756
|
+
# will be added to the HTTP request.
|
|
757
|
+
#
|
|
758
|
+
# @return [Job] operation results.
|
|
759
|
+
#
|
|
760
|
+
def begin_create(resource_group_name, job_name, parameters, custom_headers:nil)
|
|
761
|
+
response = begin_create_async(resource_group_name, job_name, parameters, custom_headers:custom_headers).value!
|
|
762
|
+
response.body unless response.nil?
|
|
763
|
+
end
|
|
764
|
+
|
|
765
|
+
#
|
|
766
|
+
# Adds a Job that gets executed on a cluster.
|
|
767
|
+
#
|
|
768
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
769
|
+
# resource belongs.
|
|
770
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
771
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
772
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
773
|
+
# characters long.
|
|
774
|
+
# @param parameters [JobCreateParameters] The parameters to provide for job
|
|
775
|
+
# creation.
|
|
776
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
777
|
+
# will be added to the HTTP request.
|
|
778
|
+
#
|
|
779
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
780
|
+
#
|
|
781
|
+
def begin_create_with_http_info(resource_group_name, job_name, parameters, custom_headers:nil)
|
|
782
|
+
begin_create_async(resource_group_name, job_name, parameters, custom_headers:custom_headers).value!
|
|
783
|
+
end
|
|
784
|
+
|
|
785
|
+
#
|
|
786
|
+
# Adds a Job that gets executed on a cluster.
|
|
787
|
+
#
|
|
788
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
789
|
+
# resource belongs.
|
|
790
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
791
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
792
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
793
|
+
# characters long.
|
|
794
|
+
# @param parameters [JobCreateParameters] The parameters to provide for job
|
|
795
|
+
# creation.
|
|
796
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
797
|
+
# to the HTTP request.
|
|
798
|
+
#
|
|
799
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
800
|
+
#
|
|
801
|
+
def begin_create_async(resource_group_name, job_name, parameters, custom_headers:nil)
|
|
802
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
803
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
804
|
+
fail ArgumentError, 'job_name is nil' if job_name.nil?
|
|
805
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MaxLength': '64'" if !job_name.nil? && job_name.length > 64
|
|
806
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MinLength': '1'" if !job_name.nil? && job_name.length < 1
|
|
807
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !job_name.nil? && job_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
808
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
809
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
810
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
request_headers = {}
|
|
814
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
815
|
+
|
|
816
|
+
# Set Headers
|
|
817
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
818
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
819
|
+
|
|
820
|
+
# Serialize Request
|
|
821
|
+
request_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::JobCreateParameters.mapper()
|
|
822
|
+
request_content = @client.serialize(request_mapper, parameters)
|
|
823
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
824
|
+
|
|
825
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}'
|
|
826
|
+
|
|
827
|
+
request_url = @base_url || @client.base_url
|
|
828
|
+
|
|
829
|
+
options = {
|
|
830
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
831
|
+
path_params: {'resourceGroupName' => resource_group_name,'jobName' => job_name,'subscriptionId' => @client.subscription_id},
|
|
832
|
+
query_params: {'api-version' => @client.api_version},
|
|
833
|
+
body: request_content,
|
|
834
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
835
|
+
base_url: request_url
|
|
836
|
+
}
|
|
837
|
+
promise = @client.make_request_async(:put, path_template, options)
|
|
838
|
+
|
|
839
|
+
promise = promise.then do |result|
|
|
840
|
+
http_response = result.response
|
|
841
|
+
status_code = http_response.status
|
|
842
|
+
response_content = http_response.body
|
|
843
|
+
unless status_code == 200 || status_code == 202
|
|
844
|
+
error_model = JSON.load(response_content)
|
|
845
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
849
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
850
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
851
|
+
# Deserialize Response
|
|
852
|
+
if status_code == 200
|
|
853
|
+
begin
|
|
854
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
855
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::Job.mapper()
|
|
856
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
857
|
+
rescue Exception => e
|
|
858
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
859
|
+
end
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
result
|
|
863
|
+
end
|
|
864
|
+
|
|
865
|
+
promise.execute
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
#
|
|
869
|
+
# Deletes the specified Batch AI job.
|
|
870
|
+
#
|
|
871
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
872
|
+
# resource belongs.
|
|
873
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
874
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
875
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
876
|
+
# characters long.
|
|
877
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
878
|
+
# will be added to the HTTP request.
|
|
879
|
+
#
|
|
880
|
+
#
|
|
881
|
+
def begin_delete(resource_group_name, job_name, custom_headers:nil)
|
|
882
|
+
response = begin_delete_async(resource_group_name, job_name, custom_headers:custom_headers).value!
|
|
883
|
+
nil
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
#
|
|
887
|
+
# Deletes the specified Batch AI job.
|
|
888
|
+
#
|
|
889
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
890
|
+
# resource belongs.
|
|
891
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
892
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
893
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
894
|
+
# characters long.
|
|
895
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
896
|
+
# will be added to the HTTP request.
|
|
897
|
+
#
|
|
898
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
899
|
+
#
|
|
900
|
+
def begin_delete_with_http_info(resource_group_name, job_name, custom_headers:nil)
|
|
901
|
+
begin_delete_async(resource_group_name, job_name, custom_headers:custom_headers).value!
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
#
|
|
905
|
+
# Deletes the specified Batch AI job.
|
|
906
|
+
#
|
|
907
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
908
|
+
# resource belongs.
|
|
909
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
910
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
911
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
912
|
+
# characters long.
|
|
913
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
914
|
+
# to the HTTP request.
|
|
915
|
+
#
|
|
916
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
917
|
+
#
|
|
918
|
+
def begin_delete_async(resource_group_name, job_name, custom_headers:nil)
|
|
919
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
920
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
921
|
+
fail ArgumentError, 'job_name is nil' if job_name.nil?
|
|
922
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MaxLength': '64'" if !job_name.nil? && job_name.length > 64
|
|
923
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MinLength': '1'" if !job_name.nil? && job_name.length < 1
|
|
924
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !job_name.nil? && job_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
925
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
926
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
request_headers = {}
|
|
930
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
931
|
+
|
|
932
|
+
# Set Headers
|
|
933
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
934
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
935
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}'
|
|
936
|
+
|
|
937
|
+
request_url = @base_url || @client.base_url
|
|
938
|
+
|
|
939
|
+
options = {
|
|
940
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
941
|
+
path_params: {'resourceGroupName' => resource_group_name,'jobName' => job_name,'subscriptionId' => @client.subscription_id},
|
|
942
|
+
query_params: {'api-version' => @client.api_version},
|
|
943
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
944
|
+
base_url: request_url
|
|
945
|
+
}
|
|
946
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
|
947
|
+
|
|
948
|
+
promise = promise.then do |result|
|
|
949
|
+
http_response = result.response
|
|
950
|
+
status_code = http_response.status
|
|
951
|
+
response_content = http_response.body
|
|
952
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
|
953
|
+
error_model = JSON.load(response_content)
|
|
954
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
955
|
+
end
|
|
956
|
+
|
|
957
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
958
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
959
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
960
|
+
|
|
961
|
+
result
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
promise.execute
|
|
965
|
+
end
|
|
966
|
+
|
|
967
|
+
#
|
|
968
|
+
# Terminates a job.
|
|
969
|
+
#
|
|
970
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
971
|
+
# resource belongs.
|
|
972
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
973
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
974
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
975
|
+
# characters long.
|
|
976
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
977
|
+
# will be added to the HTTP request.
|
|
978
|
+
#
|
|
979
|
+
#
|
|
980
|
+
def begin_terminate(resource_group_name, job_name, custom_headers:nil)
|
|
981
|
+
response = begin_terminate_async(resource_group_name, job_name, custom_headers:custom_headers).value!
|
|
982
|
+
nil
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
#
|
|
986
|
+
# Terminates a job.
|
|
987
|
+
#
|
|
988
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
989
|
+
# resource belongs.
|
|
990
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
991
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
992
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
993
|
+
# characters long.
|
|
994
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
995
|
+
# will be added to the HTTP request.
|
|
996
|
+
#
|
|
997
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
998
|
+
#
|
|
999
|
+
def begin_terminate_with_http_info(resource_group_name, job_name, custom_headers:nil)
|
|
1000
|
+
begin_terminate_async(resource_group_name, job_name, custom_headers:custom_headers).value!
|
|
1001
|
+
end
|
|
1002
|
+
|
|
1003
|
+
#
|
|
1004
|
+
# Terminates a job.
|
|
1005
|
+
#
|
|
1006
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
1007
|
+
# resource belongs.
|
|
1008
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
1009
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
1010
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
1011
|
+
# characters long.
|
|
1012
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1013
|
+
# to the HTTP request.
|
|
1014
|
+
#
|
|
1015
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1016
|
+
#
|
|
1017
|
+
def begin_terminate_async(resource_group_name, job_name, custom_headers:nil)
|
|
1018
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
1019
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
1020
|
+
fail ArgumentError, 'job_name is nil' if job_name.nil?
|
|
1021
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MaxLength': '64'" if !job_name.nil? && job_name.length > 64
|
|
1022
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'MinLength': '1'" if !job_name.nil? && job_name.length < 1
|
|
1023
|
+
fail ArgumentError, "'job_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !job_name.nil? && job_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
1024
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
1025
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
request_headers = {}
|
|
1029
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1030
|
+
|
|
1031
|
+
# Set Headers
|
|
1032
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1033
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1034
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}/terminate'
|
|
1035
|
+
|
|
1036
|
+
request_url = @base_url || @client.base_url
|
|
1037
|
+
|
|
1038
|
+
options = {
|
|
1039
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1040
|
+
path_params: {'resourceGroupName' => resource_group_name,'jobName' => job_name,'subscriptionId' => @client.subscription_id},
|
|
1041
|
+
query_params: {'api-version' => @client.api_version},
|
|
1042
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1043
|
+
base_url: request_url
|
|
1044
|
+
}
|
|
1045
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
1046
|
+
|
|
1047
|
+
promise = promise.then do |result|
|
|
1048
|
+
http_response = result.response
|
|
1049
|
+
status_code = http_response.status
|
|
1050
|
+
response_content = http_response.body
|
|
1051
|
+
unless status_code == 200 || status_code == 202
|
|
1052
|
+
error_model = JSON.load(response_content)
|
|
1053
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1054
|
+
end
|
|
1055
|
+
|
|
1056
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1057
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
1058
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
1059
|
+
|
|
1060
|
+
result
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
promise.execute
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
#
|
|
1067
|
+
# Gets the IP address and port information of all the compute nodes which are
|
|
1068
|
+
# used for job execution.
|
|
1069
|
+
#
|
|
1070
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1071
|
+
# to List operation.
|
|
1072
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1073
|
+
# will be added to the HTTP request.
|
|
1074
|
+
#
|
|
1075
|
+
# @return [RemoteLoginInformationListResult] operation results.
|
|
1076
|
+
#
|
|
1077
|
+
def list_remote_login_information_next(next_page_link, custom_headers:nil)
|
|
1078
|
+
response = list_remote_login_information_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1079
|
+
response.body unless response.nil?
|
|
1080
|
+
end
|
|
1081
|
+
|
|
1082
|
+
#
|
|
1083
|
+
# Gets the IP address and port information of all the compute nodes which are
|
|
1084
|
+
# used for job execution.
|
|
1085
|
+
#
|
|
1086
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1087
|
+
# to List operation.
|
|
1088
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1089
|
+
# will be added to the HTTP request.
|
|
1090
|
+
#
|
|
1091
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1092
|
+
#
|
|
1093
|
+
def list_remote_login_information_next_with_http_info(next_page_link, custom_headers:nil)
|
|
1094
|
+
list_remote_login_information_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1095
|
+
end
|
|
1096
|
+
|
|
1097
|
+
#
|
|
1098
|
+
# Gets the IP address and port information of all the compute nodes which are
|
|
1099
|
+
# used for job execution.
|
|
1100
|
+
#
|
|
1101
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1102
|
+
# to List operation.
|
|
1103
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1104
|
+
# to the HTTP request.
|
|
1105
|
+
#
|
|
1106
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1107
|
+
#
|
|
1108
|
+
def list_remote_login_information_next_async(next_page_link, custom_headers:nil)
|
|
1109
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
request_headers = {}
|
|
1113
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1114
|
+
|
|
1115
|
+
# Set Headers
|
|
1116
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1117
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1118
|
+
path_template = '{nextLink}'
|
|
1119
|
+
|
|
1120
|
+
request_url = @base_url || @client.base_url
|
|
1121
|
+
|
|
1122
|
+
options = {
|
|
1123
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1124
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1125
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1126
|
+
base_url: request_url
|
|
1127
|
+
}
|
|
1128
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
1129
|
+
|
|
1130
|
+
promise = promise.then do |result|
|
|
1131
|
+
http_response = result.response
|
|
1132
|
+
status_code = http_response.status
|
|
1133
|
+
response_content = http_response.body
|
|
1134
|
+
unless status_code == 200
|
|
1135
|
+
error_model = JSON.load(response_content)
|
|
1136
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1137
|
+
end
|
|
1138
|
+
|
|
1139
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1140
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
1141
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
1142
|
+
# Deserialize Response
|
|
1143
|
+
if status_code == 200
|
|
1144
|
+
begin
|
|
1145
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1146
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::RemoteLoginInformationListResult.mapper()
|
|
1147
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1148
|
+
rescue Exception => e
|
|
1149
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1150
|
+
end
|
|
1151
|
+
end
|
|
1152
|
+
|
|
1153
|
+
result
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
promise.execute
|
|
1157
|
+
end
|
|
1158
|
+
|
|
1159
|
+
#
|
|
1160
|
+
# Gets information about the jobs associated with the subscription.
|
|
1161
|
+
#
|
|
1162
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1163
|
+
# to List operation.
|
|
1164
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1165
|
+
# will be added to the HTTP request.
|
|
1166
|
+
#
|
|
1167
|
+
# @return [JobListResult] operation results.
|
|
1168
|
+
#
|
|
1169
|
+
def list_next(next_page_link, custom_headers:nil)
|
|
1170
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1171
|
+
response.body unless response.nil?
|
|
1172
|
+
end
|
|
1173
|
+
|
|
1174
|
+
#
|
|
1175
|
+
# Gets information about the jobs associated with the subscription.
|
|
1176
|
+
#
|
|
1177
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1178
|
+
# to List operation.
|
|
1179
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1180
|
+
# will be added to the HTTP request.
|
|
1181
|
+
#
|
|
1182
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1183
|
+
#
|
|
1184
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
|
1185
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1186
|
+
end
|
|
1187
|
+
|
|
1188
|
+
#
|
|
1189
|
+
# Gets information about the jobs associated with the subscription.
|
|
1190
|
+
#
|
|
1191
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1192
|
+
# to List operation.
|
|
1193
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1194
|
+
# to the HTTP request.
|
|
1195
|
+
#
|
|
1196
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1197
|
+
#
|
|
1198
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
|
1199
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
request_headers = {}
|
|
1203
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1204
|
+
|
|
1205
|
+
# Set Headers
|
|
1206
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1207
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1208
|
+
path_template = '{nextLink}'
|
|
1209
|
+
|
|
1210
|
+
request_url = @base_url || @client.base_url
|
|
1211
|
+
|
|
1212
|
+
options = {
|
|
1213
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1214
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1215
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1216
|
+
base_url: request_url
|
|
1217
|
+
}
|
|
1218
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
1219
|
+
|
|
1220
|
+
promise = promise.then do |result|
|
|
1221
|
+
http_response = result.response
|
|
1222
|
+
status_code = http_response.status
|
|
1223
|
+
response_content = http_response.body
|
|
1224
|
+
unless status_code == 200
|
|
1225
|
+
error_model = JSON.load(response_content)
|
|
1226
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1227
|
+
end
|
|
1228
|
+
|
|
1229
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1230
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
1231
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
1232
|
+
# Deserialize Response
|
|
1233
|
+
if status_code == 200
|
|
1234
|
+
begin
|
|
1235
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1236
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::JobListResult.mapper()
|
|
1237
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1238
|
+
rescue Exception => e
|
|
1239
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1240
|
+
end
|
|
1241
|
+
end
|
|
1242
|
+
|
|
1243
|
+
result
|
|
1244
|
+
end
|
|
1245
|
+
|
|
1246
|
+
promise.execute
|
|
1247
|
+
end
|
|
1248
|
+
|
|
1249
|
+
#
|
|
1250
|
+
# Gets information about the Batch AI jobs associated within the specified
|
|
1251
|
+
# resource group.
|
|
1252
|
+
#
|
|
1253
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1254
|
+
# to List operation.
|
|
1255
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1256
|
+
# will be added to the HTTP request.
|
|
1257
|
+
#
|
|
1258
|
+
# @return [JobListResult] operation results.
|
|
1259
|
+
#
|
|
1260
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
|
1261
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1262
|
+
response.body unless response.nil?
|
|
1263
|
+
end
|
|
1264
|
+
|
|
1265
|
+
#
|
|
1266
|
+
# Gets information about the Batch AI jobs associated within the specified
|
|
1267
|
+
# resource group.
|
|
1268
|
+
#
|
|
1269
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1270
|
+
# to List operation.
|
|
1271
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1272
|
+
# will be added to the HTTP request.
|
|
1273
|
+
#
|
|
1274
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1275
|
+
#
|
|
1276
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
|
1277
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
#
|
|
1281
|
+
# Gets information about the Batch AI jobs associated within the specified
|
|
1282
|
+
# resource group.
|
|
1283
|
+
#
|
|
1284
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1285
|
+
# to List operation.
|
|
1286
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1287
|
+
# to the HTTP request.
|
|
1288
|
+
#
|
|
1289
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1290
|
+
#
|
|
1291
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
|
1292
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
request_headers = {}
|
|
1296
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1297
|
+
|
|
1298
|
+
# Set Headers
|
|
1299
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1300
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1301
|
+
path_template = '{nextLink}'
|
|
1302
|
+
|
|
1303
|
+
request_url = @base_url || @client.base_url
|
|
1304
|
+
|
|
1305
|
+
options = {
|
|
1306
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1307
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1308
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1309
|
+
base_url: request_url
|
|
1310
|
+
}
|
|
1311
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
1312
|
+
|
|
1313
|
+
promise = promise.then do |result|
|
|
1314
|
+
http_response = result.response
|
|
1315
|
+
status_code = http_response.status
|
|
1316
|
+
response_content = http_response.body
|
|
1317
|
+
unless status_code == 200
|
|
1318
|
+
error_model = JSON.load(response_content)
|
|
1319
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1320
|
+
end
|
|
1321
|
+
|
|
1322
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1323
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
1324
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
1325
|
+
# Deserialize Response
|
|
1326
|
+
if status_code == 200
|
|
1327
|
+
begin
|
|
1328
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1329
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::JobListResult.mapper()
|
|
1330
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1331
|
+
rescue Exception => e
|
|
1332
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1333
|
+
end
|
|
1334
|
+
end
|
|
1335
|
+
|
|
1336
|
+
result
|
|
1337
|
+
end
|
|
1338
|
+
|
|
1339
|
+
promise.execute
|
|
1340
|
+
end
|
|
1341
|
+
|
|
1342
|
+
#
|
|
1343
|
+
# List all files inside the given output directory (Only if the output
|
|
1344
|
+
# directory is on Azure File Share or Azure Storage container).
|
|
1345
|
+
#
|
|
1346
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1347
|
+
# to List operation.
|
|
1348
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1349
|
+
# will be added to the HTTP request.
|
|
1350
|
+
#
|
|
1351
|
+
# @return [FileListResult] operation results.
|
|
1352
|
+
#
|
|
1353
|
+
def list_output_files_next(next_page_link, custom_headers:nil)
|
|
1354
|
+
response = list_output_files_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1355
|
+
response.body unless response.nil?
|
|
1356
|
+
end
|
|
1357
|
+
|
|
1358
|
+
#
|
|
1359
|
+
# List all files inside the given output directory (Only if the output
|
|
1360
|
+
# directory is on Azure File Share or Azure Storage container).
|
|
1361
|
+
#
|
|
1362
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1363
|
+
# to List operation.
|
|
1364
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1365
|
+
# will be added to the HTTP request.
|
|
1366
|
+
#
|
|
1367
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1368
|
+
#
|
|
1369
|
+
def list_output_files_next_with_http_info(next_page_link, custom_headers:nil)
|
|
1370
|
+
list_output_files_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1371
|
+
end
|
|
1372
|
+
|
|
1373
|
+
#
|
|
1374
|
+
# List all files inside the given output directory (Only if the output
|
|
1375
|
+
# directory is on Azure File Share or Azure Storage container).
|
|
1376
|
+
#
|
|
1377
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1378
|
+
# to List operation.
|
|
1379
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1380
|
+
# to the HTTP request.
|
|
1381
|
+
#
|
|
1382
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1383
|
+
#
|
|
1384
|
+
def list_output_files_next_async(next_page_link, custom_headers:nil)
|
|
1385
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
request_headers = {}
|
|
1389
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1390
|
+
|
|
1391
|
+
# Set Headers
|
|
1392
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1393
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1394
|
+
path_template = '{nextLink}'
|
|
1395
|
+
|
|
1396
|
+
request_url = @base_url || @client.base_url
|
|
1397
|
+
|
|
1398
|
+
options = {
|
|
1399
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1400
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1401
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1402
|
+
base_url: request_url
|
|
1403
|
+
}
|
|
1404
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
1405
|
+
|
|
1406
|
+
promise = promise.then do |result|
|
|
1407
|
+
http_response = result.response
|
|
1408
|
+
status_code = http_response.status
|
|
1409
|
+
response_content = http_response.body
|
|
1410
|
+
unless status_code == 200
|
|
1411
|
+
error_model = JSON.load(response_content)
|
|
1412
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1413
|
+
end
|
|
1414
|
+
|
|
1415
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1416
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
1417
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
1418
|
+
# Deserialize Response
|
|
1419
|
+
if status_code == 200
|
|
1420
|
+
begin
|
|
1421
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1422
|
+
result_mapper = Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::FileListResult.mapper()
|
|
1423
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1424
|
+
rescue Exception => e
|
|
1425
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1426
|
+
end
|
|
1427
|
+
end
|
|
1428
|
+
|
|
1429
|
+
result
|
|
1430
|
+
end
|
|
1431
|
+
|
|
1432
|
+
promise.execute
|
|
1433
|
+
end
|
|
1434
|
+
|
|
1435
|
+
#
|
|
1436
|
+
# Gets the IP address and port information of all the compute nodes which are
|
|
1437
|
+
# used for job execution.
|
|
1438
|
+
#
|
|
1439
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
1440
|
+
# resource belongs.
|
|
1441
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
1442
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
1443
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
1444
|
+
# characters long.
|
|
1445
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1446
|
+
# will be added to the HTTP request.
|
|
1447
|
+
#
|
|
1448
|
+
# @return [RemoteLoginInformationListResult] which provide lazy access to pages
|
|
1449
|
+
# of the response.
|
|
1450
|
+
#
|
|
1451
|
+
def list_remote_login_information_as_lazy(resource_group_name, job_name, custom_headers:nil)
|
|
1452
|
+
response = list_remote_login_information_async(resource_group_name, job_name, custom_headers:custom_headers).value!
|
|
1453
|
+
unless response.nil?
|
|
1454
|
+
page = response.body
|
|
1455
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1456
|
+
list_remote_login_information_next_async(next_page_link, custom_headers:custom_headers)
|
|
1457
|
+
end
|
|
1458
|
+
page
|
|
1459
|
+
end
|
|
1460
|
+
end
|
|
1461
|
+
|
|
1462
|
+
#
|
|
1463
|
+
# Gets information about the jobs associated with the subscription.
|
|
1464
|
+
#
|
|
1465
|
+
# @param jobs_list_options [JobsListOptions] Additional parameters for the
|
|
1466
|
+
# operation
|
|
1467
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1468
|
+
# will be added to the HTTP request.
|
|
1469
|
+
#
|
|
1470
|
+
# @return [JobListResult] which provide lazy access to pages of the response.
|
|
1471
|
+
#
|
|
1472
|
+
def list_as_lazy(jobs_list_options:nil, custom_headers:nil)
|
|
1473
|
+
response = list_async(jobs_list_options:jobs_list_options, custom_headers:custom_headers).value!
|
|
1474
|
+
unless response.nil?
|
|
1475
|
+
page = response.body
|
|
1476
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1477
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
|
1478
|
+
end
|
|
1479
|
+
page
|
|
1480
|
+
end
|
|
1481
|
+
end
|
|
1482
|
+
|
|
1483
|
+
#
|
|
1484
|
+
# Gets information about the Batch AI jobs associated within the specified
|
|
1485
|
+
# resource group.
|
|
1486
|
+
#
|
|
1487
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
1488
|
+
# resource belongs.
|
|
1489
|
+
# @param jobs_list_by_resource_group_options [JobsListByResourceGroupOptions]
|
|
1490
|
+
# Additional parameters for the operation
|
|
1491
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1492
|
+
# will be added to the HTTP request.
|
|
1493
|
+
#
|
|
1494
|
+
# @return [JobListResult] which provide lazy access to pages of the response.
|
|
1495
|
+
#
|
|
1496
|
+
def list_by_resource_group_as_lazy(resource_group_name, jobs_list_by_resource_group_options:nil, custom_headers:nil)
|
|
1497
|
+
response = list_by_resource_group_async(resource_group_name, jobs_list_by_resource_group_options:jobs_list_by_resource_group_options, custom_headers:custom_headers).value!
|
|
1498
|
+
unless response.nil?
|
|
1499
|
+
page = response.body
|
|
1500
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1501
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
|
1502
|
+
end
|
|
1503
|
+
page
|
|
1504
|
+
end
|
|
1505
|
+
end
|
|
1506
|
+
|
|
1507
|
+
#
|
|
1508
|
+
# List all files inside the given output directory (Only if the output
|
|
1509
|
+
# directory is on Azure File Share or Azure Storage container).
|
|
1510
|
+
#
|
|
1511
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
1512
|
+
# resource belongs.
|
|
1513
|
+
# @param job_name [String] The name of the job within the specified resource
|
|
1514
|
+
# group. Job names can only contain a combination of alphanumeric characters
|
|
1515
|
+
# along with dash (-) and underscore (_). The name must be from 1 through 64
|
|
1516
|
+
# characters long.
|
|
1517
|
+
# @param jobs_list_output_files_options [JobsListOutputFilesOptions] Additional
|
|
1518
|
+
# parameters for the operation
|
|
1519
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1520
|
+
# will be added to the HTTP request.
|
|
1521
|
+
#
|
|
1522
|
+
# @return [FileListResult] which provide lazy access to pages of the response.
|
|
1523
|
+
#
|
|
1524
|
+
def list_output_files_as_lazy(resource_group_name, job_name, jobs_list_output_files_options, custom_headers:nil)
|
|
1525
|
+
response = list_output_files_async(resource_group_name, job_name, jobs_list_output_files_options, custom_headers:custom_headers).value!
|
|
1526
|
+
unless response.nil?
|
|
1527
|
+
page = response.body
|
|
1528
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1529
|
+
list_output_files_next_async(next_page_link, custom_headers:custom_headers)
|
|
1530
|
+
end
|
|
1531
|
+
page
|
|
1532
|
+
end
|
|
1533
|
+
end
|
|
1534
|
+
|
|
1535
|
+
end
|
|
1536
|
+
end
|