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