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,712 @@
|
|
|
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::V2018_05_01
|
|
7
|
+
#
|
|
8
|
+
# The Azure BatchAI Management API.
|
|
9
|
+
#
|
|
10
|
+
class Experiments
|
|
11
|
+
include MsRestAzure
|
|
12
|
+
|
|
13
|
+
#
|
|
14
|
+
# Creates and initializes a new instance of the Experiments 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
|
+
# Gets a list of Experiments within the specified Workspace.
|
|
26
|
+
#
|
|
27
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
28
|
+
# resource belongs.
|
|
29
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
30
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
31
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
32
|
+
# @param experiments_list_by_workspace_options
|
|
33
|
+
# [ExperimentsListByWorkspaceOptions] Additional parameters for the operation
|
|
34
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
35
|
+
# will be added to the HTTP request.
|
|
36
|
+
#
|
|
37
|
+
# @return [Array<Experiment>] operation results.
|
|
38
|
+
#
|
|
39
|
+
def list_by_workspace(resource_group_name, workspace_name, experiments_list_by_workspace_options:nil, custom_headers:nil)
|
|
40
|
+
first_page = list_by_workspace_as_lazy(resource_group_name, workspace_name, experiments_list_by_workspace_options:experiments_list_by_workspace_options, custom_headers:custom_headers)
|
|
41
|
+
first_page.get_all_items
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
#
|
|
45
|
+
# Gets a list of Experiments within the specified Workspace.
|
|
46
|
+
#
|
|
47
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
48
|
+
# resource belongs.
|
|
49
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
50
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
51
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
52
|
+
# @param experiments_list_by_workspace_options
|
|
53
|
+
# [ExperimentsListByWorkspaceOptions] Additional parameters for the operation
|
|
54
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
55
|
+
# will be added to the HTTP request.
|
|
56
|
+
#
|
|
57
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
58
|
+
#
|
|
59
|
+
def list_by_workspace_with_http_info(resource_group_name, workspace_name, experiments_list_by_workspace_options:nil, custom_headers:nil)
|
|
60
|
+
list_by_workspace_async(resource_group_name, workspace_name, experiments_list_by_workspace_options:experiments_list_by_workspace_options, custom_headers:custom_headers).value!
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
#
|
|
64
|
+
# Gets a list of Experiments within the specified Workspace.
|
|
65
|
+
#
|
|
66
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
67
|
+
# resource belongs.
|
|
68
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
69
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
70
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
71
|
+
# @param experiments_list_by_workspace_options
|
|
72
|
+
# [ExperimentsListByWorkspaceOptions] Additional parameters for the operation
|
|
73
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
74
|
+
# to the HTTP request.
|
|
75
|
+
#
|
|
76
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
77
|
+
#
|
|
78
|
+
def list_by_workspace_async(resource_group_name, workspace_name, experiments_list_by_workspace_options:nil, custom_headers:nil)
|
|
79
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
80
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
81
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
|
82
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '64'" if !workspace_name.nil? && workspace_name.length > 64
|
|
83
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
|
84
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[-\w_]+$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[-\w_]+$$')).nil?
|
|
85
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
86
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
87
|
+
|
|
88
|
+
max_results = nil
|
|
89
|
+
unless experiments_list_by_workspace_options.nil?
|
|
90
|
+
max_results = experiments_list_by_workspace_options.maxResults
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
request_headers = {}
|
|
94
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
95
|
+
|
|
96
|
+
# Set Headers
|
|
97
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
98
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
99
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments'
|
|
100
|
+
|
|
101
|
+
request_url = @base_url || @client.base_url
|
|
102
|
+
|
|
103
|
+
options = {
|
|
104
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
105
|
+
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'subscriptionId' => @client.subscription_id},
|
|
106
|
+
query_params: {'api-version' => @client.api_version,'maxresults' => max_results},
|
|
107
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
108
|
+
base_url: request_url
|
|
109
|
+
}
|
|
110
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
111
|
+
|
|
112
|
+
promise = promise.then do |result|
|
|
113
|
+
http_response = result.response
|
|
114
|
+
status_code = http_response.status
|
|
115
|
+
response_content = http_response.body
|
|
116
|
+
unless status_code == 200
|
|
117
|
+
error_model = JSON.load(response_content)
|
|
118
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
122
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
123
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
124
|
+
# Deserialize Response
|
|
125
|
+
if status_code == 200
|
|
126
|
+
begin
|
|
127
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
128
|
+
result_mapper = Azure::BatchAI::Mgmt::V2018_05_01::Models::ExperimentListResult.mapper()
|
|
129
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
130
|
+
rescue Exception => e
|
|
131
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
result
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
promise.execute
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
#
|
|
142
|
+
# Creates an Experiment.
|
|
143
|
+
#
|
|
144
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
145
|
+
# resource belongs.
|
|
146
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
147
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
148
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
149
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
150
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
151
|
+
# and underscore (_). The name must be from 1 through 64 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 [Experiment] operation results.
|
|
156
|
+
#
|
|
157
|
+
def create(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
158
|
+
response = create_async(resource_group_name, workspace_name, experiment_name, custom_headers:custom_headers).value!
|
|
159
|
+
response.body unless response.nil?
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
#
|
|
163
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
164
|
+
# resource belongs.
|
|
165
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
166
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
167
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
168
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
169
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
170
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
171
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
172
|
+
# will be added to the HTTP request.
|
|
173
|
+
#
|
|
174
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
175
|
+
# response.
|
|
176
|
+
#
|
|
177
|
+
def create_async(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
178
|
+
# Send request
|
|
179
|
+
promise = begin_create_async(resource_group_name, workspace_name, experiment_name, custom_headers:custom_headers)
|
|
180
|
+
|
|
181
|
+
promise = promise.then do |response|
|
|
182
|
+
# Defining deserialization method.
|
|
183
|
+
deserialize_method = lambda do |parsed_response|
|
|
184
|
+
result_mapper = Azure::BatchAI::Mgmt::V2018_05_01::Models::Experiment.mapper()
|
|
185
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Waiting for response.
|
|
189
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
promise
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
#
|
|
196
|
+
# Deletes an Experiment.
|
|
197
|
+
#
|
|
198
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
199
|
+
# resource belongs.
|
|
200
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
201
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
202
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
203
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
204
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
205
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
206
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
207
|
+
# will be added to the HTTP request.
|
|
208
|
+
#
|
|
209
|
+
def delete(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
210
|
+
response = delete_async(resource_group_name, workspace_name, experiment_name, custom_headers:custom_headers).value!
|
|
211
|
+
nil
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
#
|
|
215
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
216
|
+
# resource belongs.
|
|
217
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
218
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
219
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
220
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
221
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
222
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
223
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
224
|
+
# will be added to the HTTP request.
|
|
225
|
+
#
|
|
226
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
227
|
+
# response.
|
|
228
|
+
#
|
|
229
|
+
def delete_async(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
230
|
+
# Send request
|
|
231
|
+
promise = begin_delete_async(resource_group_name, workspace_name, experiment_name, custom_headers:custom_headers)
|
|
232
|
+
|
|
233
|
+
promise = promise.then do |response|
|
|
234
|
+
# Defining deserialization method.
|
|
235
|
+
deserialize_method = lambda do |parsed_response|
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Waiting for response.
|
|
239
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
promise
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
#
|
|
246
|
+
# Gets information about an Experiment.
|
|
247
|
+
#
|
|
248
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
249
|
+
# resource belongs.
|
|
250
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
251
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
252
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
253
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
254
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
255
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
256
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
257
|
+
# will be added to the HTTP request.
|
|
258
|
+
#
|
|
259
|
+
# @return [Experiment] operation results.
|
|
260
|
+
#
|
|
261
|
+
def get(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
262
|
+
response = get_async(resource_group_name, workspace_name, experiment_name, custom_headers:custom_headers).value!
|
|
263
|
+
response.body unless response.nil?
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
#
|
|
267
|
+
# Gets information about an Experiment.
|
|
268
|
+
#
|
|
269
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
270
|
+
# resource belongs.
|
|
271
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
272
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
273
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
274
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
275
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
276
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
277
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
278
|
+
# will be added to the HTTP request.
|
|
279
|
+
#
|
|
280
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
281
|
+
#
|
|
282
|
+
def get_with_http_info(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
283
|
+
get_async(resource_group_name, workspace_name, experiment_name, custom_headers:custom_headers).value!
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
#
|
|
287
|
+
# Gets information about an Experiment.
|
|
288
|
+
#
|
|
289
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
290
|
+
# resource belongs.
|
|
291
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
292
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
293
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
294
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
295
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
296
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
297
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
298
|
+
# to the HTTP request.
|
|
299
|
+
#
|
|
300
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
301
|
+
#
|
|
302
|
+
def get_async(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
303
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
304
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
305
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
|
306
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '64'" if !workspace_name.nil? && workspace_name.length > 64
|
|
307
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
|
308
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[-\w_]+$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[-\w_]+$$')).nil?
|
|
309
|
+
fail ArgumentError, 'experiment_name is nil' if experiment_name.nil?
|
|
310
|
+
fail ArgumentError, "'experiment_name' should satisfy the constraint - 'MaxLength': '64'" if !experiment_name.nil? && experiment_name.length > 64
|
|
311
|
+
fail ArgumentError, "'experiment_name' should satisfy the constraint - 'MinLength': '1'" if !experiment_name.nil? && experiment_name.length < 1
|
|
312
|
+
fail ArgumentError, "'experiment_name' should satisfy the constraint - 'Pattern': '^[-\w_]+$'" if !experiment_name.nil? && experiment_name.match(Regexp.new('^^[-\w_]+$$')).nil?
|
|
313
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
314
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
request_headers = {}
|
|
318
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
319
|
+
|
|
320
|
+
# Set Headers
|
|
321
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
322
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
323
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}'
|
|
324
|
+
|
|
325
|
+
request_url = @base_url || @client.base_url
|
|
326
|
+
|
|
327
|
+
options = {
|
|
328
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
329
|
+
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'experimentName' => experiment_name,'subscriptionId' => @client.subscription_id},
|
|
330
|
+
query_params: {'api-version' => @client.api_version},
|
|
331
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
332
|
+
base_url: request_url
|
|
333
|
+
}
|
|
334
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
335
|
+
|
|
336
|
+
promise = promise.then do |result|
|
|
337
|
+
http_response = result.response
|
|
338
|
+
status_code = http_response.status
|
|
339
|
+
response_content = http_response.body
|
|
340
|
+
unless status_code == 200
|
|
341
|
+
error_model = JSON.load(response_content)
|
|
342
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
346
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
347
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
348
|
+
# Deserialize Response
|
|
349
|
+
if status_code == 200
|
|
350
|
+
begin
|
|
351
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
352
|
+
result_mapper = Azure::BatchAI::Mgmt::V2018_05_01::Models::Experiment.mapper()
|
|
353
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
354
|
+
rescue Exception => e
|
|
355
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
356
|
+
end
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
result
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
promise.execute
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
#
|
|
366
|
+
# Creates an Experiment.
|
|
367
|
+
#
|
|
368
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
369
|
+
# resource belongs.
|
|
370
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
371
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
372
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
373
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
374
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
375
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
376
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
377
|
+
# will be added to the HTTP request.
|
|
378
|
+
#
|
|
379
|
+
# @return [Experiment] operation results.
|
|
380
|
+
#
|
|
381
|
+
def begin_create(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
382
|
+
response = begin_create_async(resource_group_name, workspace_name, experiment_name, custom_headers:custom_headers).value!
|
|
383
|
+
response.body unless response.nil?
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
#
|
|
387
|
+
# Creates an Experiment.
|
|
388
|
+
#
|
|
389
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
390
|
+
# resource belongs.
|
|
391
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
392
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
393
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
394
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
395
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
396
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
397
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
398
|
+
# will be added to the HTTP request.
|
|
399
|
+
#
|
|
400
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
401
|
+
#
|
|
402
|
+
def begin_create_with_http_info(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
403
|
+
begin_create_async(resource_group_name, workspace_name, experiment_name, custom_headers:custom_headers).value!
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
#
|
|
407
|
+
# Creates an Experiment.
|
|
408
|
+
#
|
|
409
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
410
|
+
# resource belongs.
|
|
411
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
412
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
413
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
414
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
415
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
416
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
417
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
418
|
+
# to the HTTP request.
|
|
419
|
+
#
|
|
420
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
421
|
+
#
|
|
422
|
+
def begin_create_async(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
423
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
424
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
425
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
|
426
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '64'" if !workspace_name.nil? && workspace_name.length > 64
|
|
427
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
|
428
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[-\w_]+$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[-\w_]+$$')).nil?
|
|
429
|
+
fail ArgumentError, 'experiment_name is nil' if experiment_name.nil?
|
|
430
|
+
fail ArgumentError, "'experiment_name' should satisfy the constraint - 'MaxLength': '64'" if !experiment_name.nil? && experiment_name.length > 64
|
|
431
|
+
fail ArgumentError, "'experiment_name' should satisfy the constraint - 'MinLength': '1'" if !experiment_name.nil? && experiment_name.length < 1
|
|
432
|
+
fail ArgumentError, "'experiment_name' should satisfy the constraint - 'Pattern': '^[-\w_]+$'" if !experiment_name.nil? && experiment_name.match(Regexp.new('^^[-\w_]+$$')).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
|
+
|
|
437
|
+
request_headers = {}
|
|
438
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
439
|
+
|
|
440
|
+
# Set Headers
|
|
441
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
442
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
443
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}'
|
|
444
|
+
|
|
445
|
+
request_url = @base_url || @client.base_url
|
|
446
|
+
|
|
447
|
+
options = {
|
|
448
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
449
|
+
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'experimentName' => experiment_name,'subscriptionId' => @client.subscription_id},
|
|
450
|
+
query_params: {'api-version' => @client.api_version},
|
|
451
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
452
|
+
base_url: request_url
|
|
453
|
+
}
|
|
454
|
+
promise = @client.make_request_async(:put, path_template, options)
|
|
455
|
+
|
|
456
|
+
promise = promise.then do |result|
|
|
457
|
+
http_response = result.response
|
|
458
|
+
status_code = http_response.status
|
|
459
|
+
response_content = http_response.body
|
|
460
|
+
unless status_code == 200 || status_code == 202
|
|
461
|
+
error_model = JSON.load(response_content)
|
|
462
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
466
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
467
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
468
|
+
# Deserialize Response
|
|
469
|
+
if status_code == 200
|
|
470
|
+
begin
|
|
471
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
472
|
+
result_mapper = Azure::BatchAI::Mgmt::V2018_05_01::Models::Experiment.mapper()
|
|
473
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
474
|
+
rescue Exception => e
|
|
475
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
476
|
+
end
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
result
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
promise.execute
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
#
|
|
486
|
+
# Deletes an Experiment.
|
|
487
|
+
#
|
|
488
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
489
|
+
# resource belongs.
|
|
490
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
491
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
492
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
493
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
494
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
495
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
496
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
497
|
+
# will be added to the HTTP request.
|
|
498
|
+
#
|
|
499
|
+
#
|
|
500
|
+
def begin_delete(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
501
|
+
response = begin_delete_async(resource_group_name, workspace_name, experiment_name, custom_headers:custom_headers).value!
|
|
502
|
+
nil
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
#
|
|
506
|
+
# Deletes an Experiment.
|
|
507
|
+
#
|
|
508
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
509
|
+
# resource belongs.
|
|
510
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
511
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
512
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
513
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
514
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
515
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
516
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
517
|
+
# will be added to the HTTP request.
|
|
518
|
+
#
|
|
519
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
520
|
+
#
|
|
521
|
+
def begin_delete_with_http_info(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
522
|
+
begin_delete_async(resource_group_name, workspace_name, experiment_name, custom_headers:custom_headers).value!
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
#
|
|
526
|
+
# Deletes an Experiment.
|
|
527
|
+
#
|
|
528
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
529
|
+
# resource belongs.
|
|
530
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
531
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
532
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
533
|
+
# @param experiment_name [String] The name of the experiment. Experiment names
|
|
534
|
+
# can only contain a combination of alphanumeric characters along with dash (-)
|
|
535
|
+
# and underscore (_). The name must be from 1 through 64 characters long.
|
|
536
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
537
|
+
# to the HTTP request.
|
|
538
|
+
#
|
|
539
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
540
|
+
#
|
|
541
|
+
def begin_delete_async(resource_group_name, workspace_name, experiment_name, custom_headers:nil)
|
|
542
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
543
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
|
544
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
|
545
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '64'" if !workspace_name.nil? && workspace_name.length > 64
|
|
546
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
|
547
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[-\w_]+$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[-\w_]+$$')).nil?
|
|
548
|
+
fail ArgumentError, 'experiment_name is nil' if experiment_name.nil?
|
|
549
|
+
fail ArgumentError, "'experiment_name' should satisfy the constraint - 'MaxLength': '64'" if !experiment_name.nil? && experiment_name.length > 64
|
|
550
|
+
fail ArgumentError, "'experiment_name' should satisfy the constraint - 'MinLength': '1'" if !experiment_name.nil? && experiment_name.length < 1
|
|
551
|
+
fail ArgumentError, "'experiment_name' should satisfy the constraint - 'Pattern': '^[-\w_]+$'" if !experiment_name.nil? && experiment_name.match(Regexp.new('^^[-\w_]+$$')).nil?
|
|
552
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
553
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
request_headers = {}
|
|
557
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
558
|
+
|
|
559
|
+
# Set Headers
|
|
560
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
561
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
562
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}'
|
|
563
|
+
|
|
564
|
+
request_url = @base_url || @client.base_url
|
|
565
|
+
|
|
566
|
+
options = {
|
|
567
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
568
|
+
path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'experimentName' => experiment_name,'subscriptionId' => @client.subscription_id},
|
|
569
|
+
query_params: {'api-version' => @client.api_version},
|
|
570
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
571
|
+
base_url: request_url
|
|
572
|
+
}
|
|
573
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
|
574
|
+
|
|
575
|
+
promise = promise.then do |result|
|
|
576
|
+
http_response = result.response
|
|
577
|
+
status_code = http_response.status
|
|
578
|
+
response_content = http_response.body
|
|
579
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
|
580
|
+
error_model = JSON.load(response_content)
|
|
581
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
585
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
586
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
587
|
+
|
|
588
|
+
result
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
promise.execute
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
#
|
|
595
|
+
# Gets a list of Experiments within the specified Workspace.
|
|
596
|
+
#
|
|
597
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
598
|
+
# to List operation.
|
|
599
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
600
|
+
# will be added to the HTTP request.
|
|
601
|
+
#
|
|
602
|
+
# @return [ExperimentListResult] operation results.
|
|
603
|
+
#
|
|
604
|
+
def list_by_workspace_next(next_page_link, custom_headers:nil)
|
|
605
|
+
response = list_by_workspace_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
606
|
+
response.body unless response.nil?
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
#
|
|
610
|
+
# Gets a list of Experiments within the specified Workspace.
|
|
611
|
+
#
|
|
612
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
613
|
+
# to List operation.
|
|
614
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
615
|
+
# will be added to the HTTP request.
|
|
616
|
+
#
|
|
617
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
618
|
+
#
|
|
619
|
+
def list_by_workspace_next_with_http_info(next_page_link, custom_headers:nil)
|
|
620
|
+
list_by_workspace_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
#
|
|
624
|
+
# Gets a list of Experiments within the specified Workspace.
|
|
625
|
+
#
|
|
626
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
627
|
+
# to List operation.
|
|
628
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
629
|
+
# to the HTTP request.
|
|
630
|
+
#
|
|
631
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
632
|
+
#
|
|
633
|
+
def list_by_workspace_next_async(next_page_link, custom_headers:nil)
|
|
634
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
request_headers = {}
|
|
638
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
639
|
+
|
|
640
|
+
# Set Headers
|
|
641
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
642
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
643
|
+
path_template = '{nextLink}'
|
|
644
|
+
|
|
645
|
+
request_url = @base_url || @client.base_url
|
|
646
|
+
|
|
647
|
+
options = {
|
|
648
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
649
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
650
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
651
|
+
base_url: request_url
|
|
652
|
+
}
|
|
653
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
654
|
+
|
|
655
|
+
promise = promise.then do |result|
|
|
656
|
+
http_response = result.response
|
|
657
|
+
status_code = http_response.status
|
|
658
|
+
response_content = http_response.body
|
|
659
|
+
unless status_code == 200
|
|
660
|
+
error_model = JSON.load(response_content)
|
|
661
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
665
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
666
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
667
|
+
# Deserialize Response
|
|
668
|
+
if status_code == 200
|
|
669
|
+
begin
|
|
670
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
671
|
+
result_mapper = Azure::BatchAI::Mgmt::V2018_05_01::Models::ExperimentListResult.mapper()
|
|
672
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
673
|
+
rescue Exception => e
|
|
674
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
675
|
+
end
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
result
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
promise.execute
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
#
|
|
685
|
+
# Gets a list of Experiments within the specified Workspace.
|
|
686
|
+
#
|
|
687
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
|
688
|
+
# resource belongs.
|
|
689
|
+
# @param workspace_name [String] The name of the workspace. Workspace names can
|
|
690
|
+
# only contain a combination of alphanumeric characters along with dash (-) and
|
|
691
|
+
# underscore (_). The name must be from 1 through 64 characters long.
|
|
692
|
+
# @param experiments_list_by_workspace_options
|
|
693
|
+
# [ExperimentsListByWorkspaceOptions] Additional parameters for the operation
|
|
694
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
695
|
+
# will be added to the HTTP request.
|
|
696
|
+
#
|
|
697
|
+
# @return [ExperimentListResult] which provide lazy access to pages of the
|
|
698
|
+
# response.
|
|
699
|
+
#
|
|
700
|
+
def list_by_workspace_as_lazy(resource_group_name, workspace_name, experiments_list_by_workspace_options:nil, custom_headers:nil)
|
|
701
|
+
response = list_by_workspace_async(resource_group_name, workspace_name, experiments_list_by_workspace_options:experiments_list_by_workspace_options, custom_headers:custom_headers).value!
|
|
702
|
+
unless response.nil?
|
|
703
|
+
page = response.body
|
|
704
|
+
page.next_method = Proc.new do |next_page_link|
|
|
705
|
+
list_by_workspace_next_async(next_page_link, custom_headers:custom_headers)
|
|
706
|
+
end
|
|
707
|
+
page
|
|
708
|
+
end
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
end
|
|
712
|
+
end
|