azure_mgmt_data_migration 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (746) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration.rb +134 -0
  4. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/data_migration_service_client.rb +151 -0
  5. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/api_error.rb +47 -0
  6. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/authentication_type.rb +19 -0
  7. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/available_service_sku.rb +71 -0
  8. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/available_service_sku_capacity.rb +81 -0
  9. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/available_service_sku_sku.rb +80 -0
  10. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_input.rb +62 -0
  11. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output.rb +60 -0
  12. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_database_level.rb +137 -0
  13. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_task_level.rb +127 -0
  14. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_properties.rb +115 -0
  15. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_input.rb +48 -0
  16. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_output.rb +93 -0
  17. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_properties.rb +113 -0
  18. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/connection_info.rb +68 -0
  19. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/data_integrity_validation_result.rb +68 -0
  20. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/data_item_migration_summary_result.rb +148 -0
  21. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/data_migration_error.rb +60 -0
  22. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/data_migration_project_metadata.rb +141 -0
  23. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/data_migration_service.rb +162 -0
  24. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/data_migration_service_list.rb +98 -0
  25. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/data_migration_service_status_response.rb +90 -0
  26. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database.rb +230 -0
  27. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database_compat_level.rb +21 -0
  28. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database_file_info.rb +114 -0
  29. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database_file_input.rb +92 -0
  30. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database_file_type.rb +19 -0
  31. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database_info.rb +46 -0
  32. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database_migration_stage.rb +20 -0
  33. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database_object_name.rb +85 -0
  34. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database_state.rb +23 -0
  35. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database_summary_result.rb +129 -0
  36. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/database_table.rb +59 -0
  37. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/error_type.rb +17 -0
  38. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/execution_statistics.rb +119 -0
  39. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_input.rb +67 -0
  40. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_output.rb +99 -0
  41. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_properties.rb +113 -0
  42. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_database_input.rb +89 -0
  43. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_input.rb +97 -0
  44. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output.rb +62 -0
  45. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_database_level.rb +255 -0
  46. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_error.rb +72 -0
  47. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_migration_level.rb +261 -0
  48. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_table_level.rb +173 -0
  49. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_properties.rb +115 -0
  50. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migration_report_result.rb +58 -0
  51. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migration_state.rb +21 -0
  52. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migration_status.rb +24 -0
  53. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migration_table_metadata.rb +59 -0
  54. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_database_level_result.rb +165 -0
  55. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_database_summary_result.rb +122 -0
  56. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_options.rb +74 -0
  57. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_result.rb +97 -0
  58. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/name_availability_request.rb +58 -0
  59. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/name_availability_response.rb +73 -0
  60. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/name_check_failure_reason.rb +16 -0
  61. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/object_type.rb +19 -0
  62. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/odata_error.rb +78 -0
  63. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/project.rb +186 -0
  64. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/project_list.rb +98 -0
  65. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/project_provisioning_state.rb +16 -0
  66. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/project_source_platform.rb +16 -0
  67. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/project_target_platform.rb +16 -0
  68. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/project_task.rb +88 -0
  69. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/project_task_properties.rb +87 -0
  70. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/query_analysis_validation_result.rb +60 -0
  71. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/query_execution_result.rb +81 -0
  72. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/quota.rb +94 -0
  73. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/quota_list.rb +99 -0
  74. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/quota_name.rb +57 -0
  75. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/reportable_exception.rb +91 -0
  76. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource.rb +80 -0
  77. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource_sku.rb +225 -0
  78. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_capabilities.rb +59 -0
  79. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_capacity.rb +85 -0
  80. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_capacity_scale_type.rb +17 -0
  81. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_costs.rb +72 -0
  82. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions.rb +86 -0
  83. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions_reason_code.rb +16 -0
  84. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions_type.rb +15 -0
  85. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource_skus_result.rb +100 -0
  86. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/schema_comparison_validation_result.rb +99 -0
  87. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/schema_comparison_validation_result_type.rb +74 -0
  88. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/server_level_permissions_group.rb +16 -0
  89. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/service_operation.rb +59 -0
  90. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/service_operation_display.rb +79 -0
  91. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/service_operation_list.rb +98 -0
  92. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/service_provisioning_state.rb +24 -0
  93. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/service_scalability.rb +17 -0
  94. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/service_sku.rb +95 -0
  95. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/service_sku_list.rb +98 -0
  96. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/severity.rb +17 -0
  97. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/sql_connection_info.rb +130 -0
  98. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/sql_migration_task_input.rb +59 -0
  99. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/task_list.rb +98 -0
  100. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/task_state.rb +22 -0
  101. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/tracked_resource.rb +92 -0
  102. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/update_action_type.rb +17 -0
  103. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/validation_error.rb +59 -0
  104. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/validation_status.rb +22 -0
  105. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/wait_statistics.rb +69 -0
  106. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/module_definition.rb +9 -0
  107. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/operations.rb +236 -0
  108. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/projects.rb +694 -0
  109. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/resource_skus.rb +231 -0
  110. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/services.rb +1918 -0
  111. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/tasks.rb +866 -0
  112. data/lib/2017-11-15-preview/generated/azure_mgmt_data_migration/usages.rb +242 -0
  113. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration.rb +150 -0
  114. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/data_migration_service_client.rb +151 -0
  115. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/api_error.rb +47 -0
  116. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/authentication_type.rb +19 -0
  117. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/available_service_sku.rb +71 -0
  118. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/available_service_sku_capacity.rb +80 -0
  119. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/available_service_sku_sku.rb +80 -0
  120. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/blob_share.rb +46 -0
  121. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_input.rb +61 -0
  122. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output.rb +60 -0
  123. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_database_level.rb +135 -0
  124. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_task_level.rb +127 -0
  125. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_properties.rb +114 -0
  126. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_input.rb +48 -0
  127. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_output.rb +93 -0
  128. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_properties.rb +112 -0
  129. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_mitask_input.rb +49 -0
  130. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_mitask_output.rb +93 -0
  131. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_mitask_properties.rb +112 -0
  132. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/connection_info.rb +68 -0
  133. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/data_integrity_validation_result.rb +68 -0
  134. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/data_item_migration_summary_result.rb +147 -0
  135. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/data_migration_error.rb +59 -0
  136. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/data_migration_project_metadata.rb +141 -0
  137. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/data_migration_service.rb +161 -0
  138. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/data_migration_service_list.rb +98 -0
  139. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/data_migration_service_status_response.rb +90 -0
  140. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database.rb +228 -0
  141. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database_compat_level.rb +21 -0
  142. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database_file_info.rb +113 -0
  143. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database_file_input.rb +91 -0
  144. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database_file_type.rb +19 -0
  145. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database_info.rb +46 -0
  146. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database_migration_stage.rb +20 -0
  147. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database_object_name.rb +84 -0
  148. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database_state.rb +23 -0
  149. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database_summary_result.rb +128 -0
  150. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/database_table.rb +59 -0
  151. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/error_type.rb +17 -0
  152. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/execution_statistics.rb +119 -0
  153. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/file_share.rb +69 -0
  154. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_input.rb +67 -0
  155. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_output.rb +99 -0
  156. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_properties.rb +112 -0
  157. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_database_input.rb +89 -0
  158. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_input.rb +97 -0
  159. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output.rb +62 -0
  160. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_database_level.rb +253 -0
  161. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_error.rb +72 -0
  162. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_migration_level.rb +260 -0
  163. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_table_level.rb +172 -0
  164. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_properties.rb +114 -0
  165. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_midatabase_input.rb +71 -0
  166. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_input.rb +101 -0
  167. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output.rb +61 -0
  168. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_database_level.rb +157 -0
  169. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_error.rb +72 -0
  170. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_migration_level.rb +215 -0
  171. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_properties.rb +114 -0
  172. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_server_database_input.rb +89 -0
  173. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migration_report_result.rb +58 -0
  174. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migration_state.rb +21 -0
  175. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migration_status.rb +24 -0
  176. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migration_table_metadata.rb +59 -0
  177. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_database_level_result.rb +164 -0
  178. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_database_summary_result.rb +121 -0
  179. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_options.rb +74 -0
  180. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_result.rb +96 -0
  181. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/name_availability_request.rb +58 -0
  182. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/name_availability_response.rb +72 -0
  183. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/name_check_failure_reason.rb +16 -0
  184. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/object_type.rb +19 -0
  185. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/odata_error.rb +78 -0
  186. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/project.rb +183 -0
  187. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/project_list.rb +98 -0
  188. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/project_provisioning_state.rb +16 -0
  189. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/project_source_platform.rb +16 -0
  190. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/project_target_platform.rb +16 -0
  191. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/project_task.rb +88 -0
  192. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/project_task_properties.rb +89 -0
  193. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/query_analysis_validation_result.rb +60 -0
  194. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/query_execution_result.rb +81 -0
  195. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/quota.rb +94 -0
  196. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/quota_list.rb +99 -0
  197. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/quota_name.rb +57 -0
  198. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/reportable_exception.rb +91 -0
  199. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/resource.rb +80 -0
  200. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/resource_sku.rb +225 -0
  201. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_capabilities.rb +59 -0
  202. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_capacity.rb +84 -0
  203. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_capacity_scale_type.rb +17 -0
  204. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_costs.rb +72 -0
  205. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions.rb +84 -0
  206. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions_reason_code.rb +16 -0
  207. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions_type.rb +15 -0
  208. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/resource_skus_result.rb +100 -0
  209. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/schema_comparison_validation_result.rb +99 -0
  210. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/schema_comparison_validation_result_type.rb +72 -0
  211. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/server_level_permissions_group.rb +16 -0
  212. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/service_operation.rb +59 -0
  213. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/service_operation_display.rb +79 -0
  214. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/service_operation_list.rb +98 -0
  215. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/service_provisioning_state.rb +24 -0
  216. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/service_scalability.rb +17 -0
  217. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/service_sku.rb +95 -0
  218. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/service_sku_list.rb +98 -0
  219. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/severity.rb +17 -0
  220. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/sql_connection_info.rb +129 -0
  221. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/sql_migration_task_input.rb +59 -0
  222. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/task_list.rb +98 -0
  223. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/task_state.rb +22 -0
  224. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/tracked_resource.rb +92 -0
  225. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/update_action_type.rb +17 -0
  226. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/validate_migration_input_sql_server_sql_mitask_input.rb +96 -0
  227. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/validate_migration_input_sql_server_sql_mitask_output.rb +149 -0
  228. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/validate_migration_input_sql_server_sql_mitask_properties.rb +113 -0
  229. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/validation_error.rb +58 -0
  230. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/validation_status.rb +22 -0
  231. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/models/wait_statistics.rb +69 -0
  232. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/module_definition.rb +9 -0
  233. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/operations.rb +236 -0
  234. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/projects.rb +694 -0
  235. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/resource_skus.rb +231 -0
  236. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/services.rb +1918 -0
  237. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/tasks.rb +866 -0
  238. data/lib/2018-03-15-preview/generated/azure_mgmt_data_migration/usages.rb +242 -0
  239. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration.rb +158 -0
  240. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/data_migration_service_client.rb +151 -0
  241. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/api_error.rb +47 -0
  242. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/authentication_type.rb +19 -0
  243. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/available_service_sku.rb +71 -0
  244. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/available_service_sku_capacity.rb +80 -0
  245. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/available_service_sku_sku.rb +80 -0
  246. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/blob_share.rb +46 -0
  247. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_input.rb +87 -0
  248. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output.rb +62 -0
  249. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_agent_job_level.rb +136 -0
  250. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_database_level.rb +135 -0
  251. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_login_level.rb +126 -0
  252. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_task_level.rb +169 -0
  253. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_properties.rb +114 -0
  254. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_input.rb +48 -0
  255. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_output.rb +93 -0
  256. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_properties.rb +112 -0
  257. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_mitask_input.rb +49 -0
  258. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_mitask_output.rb +133 -0
  259. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_mitask_properties.rb +112 -0
  260. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/connection_info.rb +68 -0
  261. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/data_integrity_validation_result.rb +68 -0
  262. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/data_item_migration_summary_result.rb +147 -0
  263. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/data_migration_error.rb +59 -0
  264. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/data_migration_project_metadata.rb +141 -0
  265. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/data_migration_service.rb +161 -0
  266. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/data_migration_service_list.rb +98 -0
  267. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/data_migration_service_status_response.rb +90 -0
  268. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database.rb +228 -0
  269. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database_compat_level.rb +21 -0
  270. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database_file_info.rb +113 -0
  271. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database_file_input.rb +91 -0
  272. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database_file_type.rb +19 -0
  273. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database_info.rb +46 -0
  274. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database_migration_stage.rb +20 -0
  275. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database_object_name.rb +84 -0
  276. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database_state.rb +23 -0
  277. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database_summary_result.rb +128 -0
  278. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/database_table.rb +59 -0
  279. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/error_type.rb +17 -0
  280. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/execution_statistics.rb +119 -0
  281. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/file_share.rb +69 -0
  282. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_input.rb +67 -0
  283. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_output.rb +99 -0
  284. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_properties.rb +112 -0
  285. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/login_migration_stage.rb +23 -0
  286. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/login_type.rb +21 -0
  287. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_database_input.rb +89 -0
  288. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_input.rb +97 -0
  289. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output.rb +62 -0
  290. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_database_level.rb +254 -0
  291. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_error.rb +73 -0
  292. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_migration_level.rb +261 -0
  293. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_table_level.rb +173 -0
  294. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_properties.rb +114 -0
  295. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_midatabase_input.rb +71 -0
  296. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_input.rb +139 -0
  297. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output.rb +63 -0
  298. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_agent_job_level.rb +157 -0
  299. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_database_level.rb +170 -0
  300. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_error.rb +73 -0
  301. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_login_level.rb +161 -0
  302. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_migration_level.rb +301 -0
  303. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_properties.rb +114 -0
  304. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_server_database_input.rb +89 -0
  305. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migration_eligibility_info.rb +68 -0
  306. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migration_report_result.rb +58 -0
  307. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migration_state.rb +21 -0
  308. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migration_status.rb +24 -0
  309. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migration_table_metadata.rb +59 -0
  310. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migration_validation_database_level_result.rb +164 -0
  311. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migration_validation_database_summary_result.rb +121 -0
  312. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migration_validation_options.rb +74 -0
  313. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/migration_validation_result.rb +96 -0
  314. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/name_availability_request.rb +58 -0
  315. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/name_availability_response.rb +72 -0
  316. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/name_check_failure_reason.rb +16 -0
  317. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/object_type.rb +19 -0
  318. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/odata_error.rb +78 -0
  319. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/project.rb +183 -0
  320. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/project_list.rb +98 -0
  321. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/project_provisioning_state.rb +16 -0
  322. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/project_source_platform.rb +16 -0
  323. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/project_target_platform.rb +17 -0
  324. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/project_task.rb +88 -0
  325. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/project_task_properties.rb +89 -0
  326. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/query_analysis_validation_result.rb +60 -0
  327. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/query_execution_result.rb +81 -0
  328. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/quota.rb +94 -0
  329. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/quota_list.rb +99 -0
  330. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/quota_name.rb +57 -0
  331. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/reportable_exception.rb +91 -0
  332. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/resource.rb +80 -0
  333. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/resource_sku.rb +225 -0
  334. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/resource_sku_capabilities.rb +59 -0
  335. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/resource_sku_capacity.rb +84 -0
  336. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/resource_sku_capacity_scale_type.rb +17 -0
  337. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/resource_sku_costs.rb +72 -0
  338. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions.rb +84 -0
  339. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions_reason_code.rb +16 -0
  340. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions_type.rb +15 -0
  341. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/resource_skus_result.rb +100 -0
  342. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/schema_comparison_validation_result.rb +99 -0
  343. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/schema_comparison_validation_result_type.rb +72 -0
  344. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/server_level_permissions_group.rb +16 -0
  345. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/service_operation.rb +59 -0
  346. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/service_operation_display.rb +79 -0
  347. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/service_operation_list.rb +98 -0
  348. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/service_provisioning_state.rb +24 -0
  349. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/service_scalability.rb +17 -0
  350. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/service_sku.rb +95 -0
  351. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/service_sku_list.rb +98 -0
  352. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/severity.rb +17 -0
  353. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/sql_connection_info.rb +129 -0
  354. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/sql_migration_task_input.rb +59 -0
  355. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/start_migration_scenario_server_role_result.rb +82 -0
  356. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/task_list.rb +98 -0
  357. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/task_state.rb +22 -0
  358. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/tracked_resource.rb +92 -0
  359. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/update_action_type.rb +17 -0
  360. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/validate_migration_input_sql_server_sql_mitask_input.rb +96 -0
  361. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/validate_migration_input_sql_server_sql_mitask_output.rb +149 -0
  362. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/validate_migration_input_sql_server_sql_mitask_properties.rb +113 -0
  363. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/validation_error.rb +58 -0
  364. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/validation_status.rb +22 -0
  365. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/models/wait_statistics.rb +69 -0
  366. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/module_definition.rb +9 -0
  367. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/operations.rb +236 -0
  368. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/projects.rb +694 -0
  369. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/resource_skus.rb +231 -0
  370. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/services.rb +1918 -0
  371. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/tasks.rb +866 -0
  372. data/lib/2018-03-31-preview/generated/azure_mgmt_data_migration/usages.rb +242 -0
  373. data/lib/2018-04-19/generated/azure_mgmt_data_migration.rb +143 -0
  374. data/lib/2018-04-19/generated/azure_mgmt_data_migration/data_migration_service_client.rb +151 -0
  375. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/api_error.rb +47 -0
  376. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/authentication_type.rb +19 -0
  377. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/available_service_sku.rb +71 -0
  378. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/available_service_sku_capacity.rb +80 -0
  379. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/available_service_sku_sku.rb +80 -0
  380. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/blob_share.rb +46 -0
  381. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_input.rb +87 -0
  382. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output.rb +62 -0
  383. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_agent_job_level.rb +136 -0
  384. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_database_level.rb +135 -0
  385. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_login_level.rb +126 -0
  386. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_task_level.rb +169 -0
  387. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_properties.rb +113 -0
  388. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_input.rb +48 -0
  389. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_output.rb +93 -0
  390. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_properties.rb +111 -0
  391. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/connection_info.rb +68 -0
  392. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/data_integrity_validation_result.rb +70 -0
  393. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/data_item_migration_summary_result.rb +147 -0
  394. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/data_migration_error.rb +59 -0
  395. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/data_migration_project_metadata.rb +141 -0
  396. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/data_migration_service.rb +161 -0
  397. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/data_migration_service_list.rb +98 -0
  398. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/data_migration_service_status_response.rb +90 -0
  399. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database.rb +245 -0
  400. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database_compat_level.rb +21 -0
  401. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database_file_info.rb +113 -0
  402. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database_file_input.rb +91 -0
  403. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database_file_type.rb +19 -0
  404. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database_info.rb +46 -0
  405. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database_migration_stage.rb +20 -0
  406. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database_object_name.rb +84 -0
  407. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database_state.rb +23 -0
  408. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database_summary_result.rb +128 -0
  409. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/database_table.rb +59 -0
  410. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/error_type.rb +17 -0
  411. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/execution_statistics.rb +124 -0
  412. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/file_share.rb +69 -0
  413. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_input.rb +67 -0
  414. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_output.rb +99 -0
  415. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_properties.rb +111 -0
  416. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/login_migration_stage.rb +23 -0
  417. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/login_type.rb +21 -0
  418. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_database_input.rb +89 -0
  419. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_input.rb +97 -0
  420. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output.rb +64 -0
  421. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_database_level.rb +253 -0
  422. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_database_level_validation_result.rb +177 -0
  423. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_error.rb +72 -0
  424. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_migration_level.rb +261 -0
  425. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_table_level.rb +172 -0
  426. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_validation_result.rb +109 -0
  427. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_properties.rb +113 -0
  428. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_server_database_input.rb +89 -0
  429. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migration_eligibility_info.rb +68 -0
  430. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migration_report_result.rb +60 -0
  431. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migration_state.rb +21 -0
  432. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migration_status.rb +24 -0
  433. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migration_table_metadata.rb +59 -0
  434. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migration_validation_database_summary_result.rb +121 -0
  435. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/migration_validation_options.rb +74 -0
  436. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/name_availability_request.rb +58 -0
  437. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/name_availability_response.rb +75 -0
  438. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/name_check_failure_reason.rb +16 -0
  439. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/object_type.rb +19 -0
  440. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/odata_error.rb +81 -0
  441. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/project.rb +183 -0
  442. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_list.rb +98 -0
  443. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_provisioning_state.rb +16 -0
  444. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_source_platform.rb +16 -0
  445. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_target_platform.rb +16 -0
  446. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_task.rb +88 -0
  447. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_task_properties.rb +85 -0
  448. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/query_analysis_validation_result.rb +62 -0
  449. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/query_execution_result.rb +85 -0
  450. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb +94 -0
  451. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota_list.rb +99 -0
  452. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota_name.rb +57 -0
  453. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/reportable_exception.rb +96 -0
  454. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/resource.rb +80 -0
  455. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/resource_sku.rb +225 -0
  456. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/resource_sku_capabilities.rb +59 -0
  457. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/resource_sku_capacity.rb +84 -0
  458. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/resource_sku_capacity_scale_type.rb +17 -0
  459. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/resource_sku_costs.rb +72 -0
  460. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/resource_sku_restrictions.rb +84 -0
  461. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/resource_sku_restrictions_reason_code.rb +16 -0
  462. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/resource_sku_restrictions_type.rb +15 -0
  463. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/resource_skus_result.rb +100 -0
  464. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/schema_comparison_validation_result.rb +101 -0
  465. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/schema_comparison_validation_result_type.rb +75 -0
  466. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/server_level_permissions_group.rb +16 -0
  467. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_operation.rb +59 -0
  468. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_operation_display.rb +79 -0
  469. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_operation_list.rb +98 -0
  470. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_provisioning_state.rb +24 -0
  471. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_scalability.rb +17 -0
  472. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_sku.rb +95 -0
  473. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_sku_list.rb +98 -0
  474. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/severity.rb +17 -0
  475. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/sql_connection_info.rb +129 -0
  476. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/sql_migration_task_input.rb +59 -0
  477. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/start_migration_scenario_server_role_result.rb +82 -0
  478. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/task_list.rb +98 -0
  479. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/task_state.rb +22 -0
  480. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/tracked_resource.rb +92 -0
  481. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/update_action_type.rb +17 -0
  482. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/validation_error.rb +60 -0
  483. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/validation_status.rb +22 -0
  484. data/lib/2018-04-19/generated/azure_mgmt_data_migration/models/wait_statistics.rb +72 -0
  485. data/lib/2018-04-19/generated/azure_mgmt_data_migration/module_definition.rb +9 -0
  486. data/lib/2018-04-19/generated/azure_mgmt_data_migration/operations.rb +236 -0
  487. data/lib/2018-04-19/generated/azure_mgmt_data_migration/projects.rb +694 -0
  488. data/lib/2018-04-19/generated/azure_mgmt_data_migration/resource_skus.rb +231 -0
  489. data/lib/2018-04-19/generated/azure_mgmt_data_migration/services.rb +1918 -0
  490. data/lib/2018-04-19/generated/azure_mgmt_data_migration/tasks.rb +866 -0
  491. data/lib/2018-04-19/generated/azure_mgmt_data_migration/usages.rb +242 -0
  492. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration.rb +272 -0
  493. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/data_migration_service_client.rb +155 -0
  494. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/files.rb +921 -0
  495. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/api_error.rb +47 -0
  496. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/authentication_type.rb +19 -0
  497. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/available_service_sku.rb +71 -0
  498. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/available_service_sku_capacity.rb +80 -0
  499. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/available_service_sku_sku.rb +80 -0
  500. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/backup_mode.rb +16 -0
  501. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/backup_type.rb +21 -0
  502. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/blob_share.rb +46 -0
  503. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/command_properties.rb +86 -0
  504. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/command_state.rb +19 -0
  505. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_mongo_db_task_properties.rb +132 -0
  506. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_my_sql_task_input.rb +74 -0
  507. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_my_sql_task_properties.rb +131 -0
  508. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_non_sql_task_output.rb +114 -0
  509. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_sync_task_properties.rb +135 -0
  510. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_input.rb +102 -0
  511. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output.rb +62 -0
  512. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_agent_job_level.rb +157 -0
  513. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_database_level.rb +135 -0
  514. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_login_level.rb +125 -0
  515. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_output_task_level.rb +190 -0
  516. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_source_sql_server_task_properties.rb +134 -0
  517. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_azure_db_for_my_sql_task_input.rb +62 -0
  518. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_azure_db_for_my_sql_task_output.rb +114 -0
  519. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_azure_db_for_my_sql_task_properties.rb +133 -0
  520. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_input.rb +48 -0
  521. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_output.rb +93 -0
  522. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_db_task_properties.rb +132 -0
  523. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_mitask_input.rb +49 -0
  524. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_mitask_output.rb +133 -0
  525. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_mitask_properties.rb +132 -0
  526. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_sql_db_sync_task_input.rb +61 -0
  527. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connect_to_target_sql_sql_db_sync_task_properties.rb +133 -0
  528. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connection_info.rb +71 -0
  529. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/data_integrity_validation_result.rb +68 -0
  530. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/data_item_migration_summary_result.rb +147 -0
  531. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/data_migration_error.rb +59 -0
  532. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/data_migration_project_metadata.rb +141 -0
  533. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/data_migration_result_code.rb +20 -0
  534. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/data_migration_service.rb +161 -0
  535. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/data_migration_service_list.rb +98 -0
  536. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/data_migration_service_status_response.rb +90 -0
  537. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database.rb +228 -0
  538. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_backup_info.rb +143 -0
  539. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_compat_level.rb +21 -0
  540. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_file_info.rb +113 -0
  541. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_file_input.rb +91 -0
  542. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_file_type.rb +19 -0
  543. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_info.rb +46 -0
  544. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_migration_stage.rb +20 -0
  545. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_object_name.rb +84 -0
  546. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_state.rb +23 -0
  547. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_summary_result.rb +128 -0
  548. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/database_table.rb +59 -0
  549. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/error_type.rb +17 -0
  550. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/execution_statistics.rb +119 -0
  551. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/file_list.rb +98 -0
  552. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/file_share.rb +69 -0
  553. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/file_storage_info.rb +65 -0
  554. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/get_project_details_non_sql_task_input.rb +58 -0
  555. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/get_tde_certificates_sql_task_input.rb +82 -0
  556. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/get_tde_certificates_sql_task_output.rb +85 -0
  557. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/get_tde_certificates_sql_task_properties.rb +132 -0
  558. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_sync_task_input.rb +100 -0
  559. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_sync_task_output.rb +146 -0
  560. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_sync_task_properties.rb +132 -0
  561. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_input.rb +67 -0
  562. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_output.rb +99 -0
  563. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/get_user_tables_sql_task_properties.rb +132 -0
  564. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/login_migration_stage.rb +23 -0
  565. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/login_type.rb +21 -0
  566. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_mongo_db_task_properties.rb +130 -0
  567. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_my_sql_azure_db_for_my_sql_sync_database_input.rb +60 -0
  568. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_input.rb +82 -0
  569. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output.rb +64 -0
  570. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_error.rb +92 -0
  571. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_level.rb +245 -0
  572. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_error.rb +74 -0
  573. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_migration_level.rb +133 -0
  574. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_table_level.rb +219 -0
  575. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_properties.rb +135 -0
  576. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.rb +60 -0
  577. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input.rb +84 -0
  578. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output.rb +64 -0
  579. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error.rb +93 -0
  580. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level.rb +246 -0
  581. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error.rb +74 -0
  582. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level.rb +134 -0
  583. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level.rb +220 -0
  584. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties.rb +135 -0
  585. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_schema_sql_server_sql_db_database_input.rb +69 -0
  586. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_schema_sql_server_sql_db_task_input.rb +75 -0
  587. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_schema_sql_server_sql_db_task_output.rb +62 -0
  588. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_schema_sql_server_sql_db_task_output_database_level.rb +190 -0
  589. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_schema_sql_server_sql_db_task_output_error.rb +85 -0
  590. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_schema_sql_server_sql_db_task_output_migration_level.rb +147 -0
  591. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_schema_sql_server_sql_db_task_properties.rb +135 -0
  592. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_schema_sql_task_output_error.rb +73 -0
  593. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_database_input.rb +89 -0
  594. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_sync_database_input.rb +159 -0
  595. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_sync_task_input.rb +87 -0
  596. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_sync_task_output.rb +63 -0
  597. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_sync_task_output_database_error.rb +92 -0
  598. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_sync_task_output_database_level.rb +245 -0
  599. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_sync_task_output_error.rb +73 -0
  600. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_sync_task_output_migration_level.rb +145 -0
  601. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_sync_task_output_table_level.rb +219 -0
  602. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_sync_task_properties.rb +134 -0
  603. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_input.rb +97 -0
  604. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output.rb +62 -0
  605. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_database_level.rb +254 -0
  606. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_error.rb +73 -0
  607. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_migration_level.rb +273 -0
  608. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_output_table_level.rb +173 -0
  609. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_db_task_properties.rb +134 -0
  610. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_midatabase_input.rb +91 -0
  611. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_input.rb +153 -0
  612. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output.rb +63 -0
  613. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_agent_job_level.rb +157 -0
  614. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_database_level.rb +170 -0
  615. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_error.rb +73 -0
  616. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_login_level.rb +160 -0
  617. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_output_migration_level.rb +301 -0
  618. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_mitask_properties.rb +134 -0
  619. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sql_server_sql_server_database_input.rb +88 -0
  620. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sync_complete_command_input.rb +57 -0
  621. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sync_complete_command_output.rb +56 -0
  622. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migrate_sync_complete_command_properties.rb +103 -0
  623. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migration_eligibility_info.rb +68 -0
  624. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migration_report_result.rb +58 -0
  625. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migration_state.rb +21 -0
  626. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migration_status.rb +24 -0
  627. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migration_table_metadata.rb +59 -0
  628. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_database_level_result.rb +164 -0
  629. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_database_summary_result.rb +121 -0
  630. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_options.rb +74 -0
  631. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/migration_validation_result.rb +96 -0
  632. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_cancel_command.rb +89 -0
  633. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_cluster_info.rb +91 -0
  634. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_cluster_type.rb +17 -0
  635. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_collection_info.rb +158 -0
  636. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_collection_progress.rb +156 -0
  637. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_collection_settings.rb +73 -0
  638. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_command_input.rb +48 -0
  639. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_connection_info.rb +79 -0
  640. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_database_info.rb +108 -0
  641. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_database_progress.rb +178 -0
  642. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_database_settings.rb +71 -0
  643. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_error.rb +82 -0
  644. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_error_type.rb +17 -0
  645. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_finish_command.rb +89 -0
  646. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_finish_command_input.rb +56 -0
  647. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_migration_progress.rb +177 -0
  648. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_migration_settings.rb +124 -0
  649. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_migration_state.rb +25 -0
  650. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_object_info.rb +94 -0
  651. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_progress.rb +214 -0
  652. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_replication.rb +17 -0
  653. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_restart_command.rb +89 -0
  654. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_shard_key_field.rb +58 -0
  655. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_shard_key_info.rb +66 -0
  656. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_shard_key_order.rb +17 -0
  657. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_shard_key_setting.rb +66 -0
  658. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_throttling_settings.rb +71 -0
  659. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/my_sql_connection_info.rb +88 -0
  660. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/my_sql_target_platform_type.rb +15 -0
  661. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/name_availability_request.rb +58 -0
  662. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/name_availability_response.rb +72 -0
  663. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/name_check_failure_reason.rb +16 -0
  664. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/non_sql_data_migration_table.rb +46 -0
  665. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/non_sql_data_migration_table_result.rb +132 -0
  666. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/non_sql_migration_task_input.rb +102 -0
  667. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/non_sql_migration_task_output.rb +145 -0
  668. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/object_type.rb +19 -0
  669. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/odata_error.rb +78 -0
  670. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/postgre_sql_connection_info.rb +99 -0
  671. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project.rb +185 -0
  672. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_file.rb +86 -0
  673. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_file_properties.rb +95 -0
  674. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_list.rb +98 -0
  675. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_provisioning_state.rb +16 -0
  676. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_source_platform.rb +19 -0
  677. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_target_platform.rb +20 -0
  678. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_task.rb +88 -0
  679. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_task_properties.rb +126 -0
  680. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/query_analysis_validation_result.rb +60 -0
  681. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/query_execution_result.rb +81 -0
  682. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/quota.rb +94 -0
  683. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/quota_list.rb +99 -0
  684. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/quota_name.rb +57 -0
  685. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/reportable_exception.rb +102 -0
  686. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/resource.rb +80 -0
  687. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/resource_sku.rb +225 -0
  688. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_capabilities.rb +59 -0
  689. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_capacity.rb +84 -0
  690. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_capacity_scale_type.rb +17 -0
  691. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_costs.rb +72 -0
  692. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions.rb +84 -0
  693. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions_reason_code.rb +16 -0
  694. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/resource_sku_restrictions_type.rb +15 -0
  695. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/resource_skus_result.rb +100 -0
  696. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/schema_comparison_validation_result.rb +99 -0
  697. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/schema_comparison_validation_result_type.rb +72 -0
  698. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/schema_migration_option.rb +17 -0
  699. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/schema_migration_setting.rb +59 -0
  700. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/schema_migration_stage.rb +24 -0
  701. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/selected_certificate_input.rb +58 -0
  702. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/server_level_permissions_group.rb +18 -0
  703. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/server_properties.rb +107 -0
  704. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/service_operation.rb +59 -0
  705. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/service_operation_display.rb +79 -0
  706. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/service_operation_list.rb +98 -0
  707. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/service_provisioning_state.rb +24 -0
  708. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/service_scalability.rb +17 -0
  709. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/service_sku.rb +95 -0
  710. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/service_sku_list.rb +98 -0
  711. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/severity.rb +17 -0
  712. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/sql_connection_info.rb +141 -0
  713. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/sql_migration_task_input.rb +59 -0
  714. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/sql_source_platform.rb +15 -0
  715. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/start_migration_scenario_server_role_result.rb +82 -0
  716. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/sync_database_migration_reporting_state.rb +25 -0
  717. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/sync_migration_database_error_event.rb +71 -0
  718. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/sync_table_migration_state.rb +20 -0
  719. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/task_list.rb +98 -0
  720. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/task_state.rb +22 -0
  721. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/tracked_resource.rb +92 -0
  722. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/update_action_type.rb +17 -0
  723. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/validate_migration_input_sql_server_sql_db_sync_task_properties.rb +133 -0
  724. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/validate_migration_input_sql_server_sql_mitask_input.rb +140 -0
  725. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/validate_migration_input_sql_server_sql_mitask_output.rb +184 -0
  726. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/validate_migration_input_sql_server_sql_mitask_properties.rb +133 -0
  727. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/validate_mongo_db_task_properties.rb +132 -0
  728. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/validate_sync_migration_input_sql_server_task_input.rb +82 -0
  729. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/validate_sync_migration_input_sql_server_task_output.rb +82 -0
  730. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/validation_error.rb +58 -0
  731. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/validation_status.rb +22 -0
  732. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/wait_statistics.rb +69 -0
  733. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/module_definition.rb +9 -0
  734. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/operations.rb +236 -0
  735. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/projects.rb +694 -0
  736. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/resource_skus.rb +231 -0
  737. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/services.rb +1918 -0
  738. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/tasks.rb +989 -0
  739. data/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/usages.rb +242 -0
  740. data/lib/azure_mgmt_data_migration.rb +10 -0
  741. data/lib/module_definition.rb +7 -0
  742. data/lib/profiles/latest/datamigration_latest_profile_client.rb +40 -0
  743. data/lib/profiles/latest/datamigration_module_definition.rb +8 -0
  744. data/lib/profiles/latest/modules/datamigration_profile_module.rb +1025 -0
  745. data/lib/version.rb +7 -0
  746. metadata +862 -0
@@ -0,0 +1,231 @@
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::DataMigration::Mgmt::V2018_03_15_preview
7
+ #
8
+ # Data Migration Client
9
+ #
10
+ class ResourceSkus
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ResourceSkus class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [DataMigrationServiceClient] reference to the DataMigrationServiceClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Get supported SKUs
26
+ #
27
+ # The skus action returns the list of SKUs that DMS supports.
28
+ #
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Array<ResourceSku>] operation results.
33
+ #
34
+ def list_skus(custom_headers:nil)
35
+ first_page = list_skus_as_lazy(custom_headers:custom_headers)
36
+ first_page.get_all_items
37
+ end
38
+
39
+ #
40
+ # Get supported SKUs
41
+ #
42
+ # The skus action returns the list of SKUs that DMS supports.
43
+ #
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def list_skus_with_http_info(custom_headers:nil)
50
+ list_skus_async(custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Get supported SKUs
55
+ #
56
+ # The skus action returns the list of SKUs that DMS supports.
57
+ #
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def list_skus_async(custom_headers:nil)
64
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
65
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
66
+
67
+
68
+ request_headers = {}
69
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
70
+
71
+ # Set Headers
72
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
73
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
74
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/skus'
75
+
76
+ request_url = @base_url || @client.base_url
77
+
78
+ options = {
79
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
80
+ path_params: {'subscriptionId' => @client.subscription_id},
81
+ query_params: {'api-version' => @client.api_version},
82
+ headers: request_headers.merge(custom_headers || {}),
83
+ base_url: request_url
84
+ }
85
+ promise = @client.make_request_async(:get, path_template, options)
86
+
87
+ promise = promise.then do |result|
88
+ http_response = result.response
89
+ status_code = http_response.status
90
+ response_content = http_response.body
91
+ unless status_code == 200
92
+ error_model = JSON.load(response_content)
93
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
94
+ end
95
+
96
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
97
+ # Deserialize Response
98
+ if status_code == 200
99
+ begin
100
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
101
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::ResourceSkusResult.mapper()
102
+ result.body = @client.deserialize(result_mapper, parsed_response)
103
+ rescue Exception => e
104
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
105
+ end
106
+ end
107
+
108
+ result
109
+ end
110
+
111
+ promise.execute
112
+ end
113
+
114
+ #
115
+ # Get supported SKUs
116
+ #
117
+ # The skus action returns the list of SKUs that DMS supports.
118
+ #
119
+ # @param next_page_link [String] The NextLink from the previous successful call
120
+ # to List operation.
121
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
122
+ # will be added to the HTTP request.
123
+ #
124
+ # @return [ResourceSkusResult] operation results.
125
+ #
126
+ def list_skus_next(next_page_link, custom_headers:nil)
127
+ response = list_skus_next_async(next_page_link, custom_headers:custom_headers).value!
128
+ response.body unless response.nil?
129
+ end
130
+
131
+ #
132
+ # Get supported SKUs
133
+ #
134
+ # The skus action returns the list of SKUs that DMS supports.
135
+ #
136
+ # @param next_page_link [String] The NextLink from the previous successful call
137
+ # to List operation.
138
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
139
+ # will be added to the HTTP request.
140
+ #
141
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
142
+ #
143
+ def list_skus_next_with_http_info(next_page_link, custom_headers:nil)
144
+ list_skus_next_async(next_page_link, custom_headers:custom_headers).value!
145
+ end
146
+
147
+ #
148
+ # Get supported SKUs
149
+ #
150
+ # The skus action returns the list of SKUs that DMS supports.
151
+ #
152
+ # @param next_page_link [String] The NextLink from the previous successful call
153
+ # to List operation.
154
+ # @param [Hash{String => String}] A hash of custom headers that will be added
155
+ # to the HTTP request.
156
+ #
157
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
158
+ #
159
+ def list_skus_next_async(next_page_link, custom_headers:nil)
160
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
161
+
162
+
163
+ request_headers = {}
164
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
165
+
166
+ # Set Headers
167
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
168
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
169
+ path_template = '{nextLink}'
170
+
171
+ request_url = @base_url || @client.base_url
172
+
173
+ options = {
174
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
175
+ skip_encoding_path_params: {'nextLink' => next_page_link},
176
+ headers: request_headers.merge(custom_headers || {}),
177
+ base_url: request_url
178
+ }
179
+ promise = @client.make_request_async(:get, path_template, options)
180
+
181
+ promise = promise.then do |result|
182
+ http_response = result.response
183
+ status_code = http_response.status
184
+ response_content = http_response.body
185
+ unless status_code == 200
186
+ error_model = JSON.load(response_content)
187
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
188
+ end
189
+
190
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
191
+ # Deserialize Response
192
+ if status_code == 200
193
+ begin
194
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
195
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::ResourceSkusResult.mapper()
196
+ result.body = @client.deserialize(result_mapper, parsed_response)
197
+ rescue Exception => e
198
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
199
+ end
200
+ end
201
+
202
+ result
203
+ end
204
+
205
+ promise.execute
206
+ end
207
+
208
+ #
209
+ # Get supported SKUs
210
+ #
211
+ # The skus action returns the list of SKUs that DMS supports.
212
+ #
213
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
214
+ # will be added to the HTTP request.
215
+ #
216
+ # @return [ResourceSkusResult] which provide lazy access to pages of the
217
+ # response.
218
+ #
219
+ def list_skus_as_lazy(custom_headers:nil)
220
+ response = list_skus_async(custom_headers:custom_headers).value!
221
+ unless response.nil?
222
+ page = response.body
223
+ page.next_method = Proc.new do |next_page_link|
224
+ list_skus_next_async(next_page_link, custom_headers:custom_headers)
225
+ end
226
+ page
227
+ end
228
+ end
229
+
230
+ end
231
+ end
@@ -0,0 +1,1918 @@
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::DataMigration::Mgmt::V2018_03_15_preview
7
+ #
8
+ # Data Migration Client
9
+ #
10
+ class Services
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Services class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [DataMigrationServiceClient] reference to the DataMigrationServiceClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Create or update DMS Instance
26
+ #
27
+ # The services resource is the top-level resource that represents the Data
28
+ # Migration Service. The PUT method creates a new service or updates an
29
+ # existing one. When a service is updated, existing child resources (i.e.
30
+ # tasks) are unaffected. Services currently support a single kind, "vm", which
31
+ # refers to a VM-based service, although other kinds may be added in the
32
+ # future. This method can change the kind, SKU, and network of the service, but
33
+ # if tasks are currently running (i.e. the service is busy), this will fail
34
+ # with 400 Bad Request ("ServiceIsBusy"). The provider will reply when
35
+ # successful with 200 OK or 201 Created. Long-running operations use the
36
+ # provisioningState property.
37
+ #
38
+ # @param parameters [DataMigrationService] Information about the service
39
+ # @param group_name [String] Name of the resource group
40
+ # @param service_name [String] Name of the service
41
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
42
+ # will be added to the HTTP request.
43
+ #
44
+ # @return [DataMigrationService] operation results.
45
+ #
46
+ def create_or_update(parameters, group_name, service_name, custom_headers:nil)
47
+ response = create_or_update_async(parameters, group_name, service_name, custom_headers:custom_headers).value!
48
+ response.body unless response.nil?
49
+ end
50
+
51
+ #
52
+ # @param parameters [DataMigrationService] Information about the service
53
+ # @param group_name [String] Name of the resource group
54
+ # @param service_name [String] Name of the service
55
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
56
+ # will be added to the HTTP request.
57
+ #
58
+ # @return [Concurrent::Promise] promise which provides async access to http
59
+ # response.
60
+ #
61
+ def create_or_update_async(parameters, group_name, service_name, custom_headers:nil)
62
+ # Send request
63
+ promise = begin_create_or_update_async(parameters, group_name, service_name, custom_headers:custom_headers)
64
+
65
+ promise = promise.then do |response|
66
+ # Defining deserialization method.
67
+ deserialize_method = lambda do |parsed_response|
68
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationService.mapper()
69
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
70
+ end
71
+
72
+ # Waiting for response.
73
+ @client.get_long_running_operation_result(response, deserialize_method)
74
+ end
75
+
76
+ promise
77
+ end
78
+
79
+ #
80
+ # Get DMS Service Instance
81
+ #
82
+ # The services resource is the top-level resource that represents the Data
83
+ # Migration Service. The GET method retrieves information about a service
84
+ # instance.
85
+ #
86
+ # @param group_name [String] Name of the resource group
87
+ # @param service_name [String] Name of the service
88
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
89
+ # will be added to the HTTP request.
90
+ #
91
+ # @return [DataMigrationService] operation results.
92
+ #
93
+ def get(group_name, service_name, custom_headers:nil)
94
+ response = get_async(group_name, service_name, custom_headers:custom_headers).value!
95
+ response.body unless response.nil?
96
+ end
97
+
98
+ #
99
+ # Get DMS Service Instance
100
+ #
101
+ # The services resource is the top-level resource that represents the Data
102
+ # Migration Service. The GET method retrieves information about a service
103
+ # instance.
104
+ #
105
+ # @param group_name [String] Name of the resource group
106
+ # @param service_name [String] Name of the service
107
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
108
+ # will be added to the HTTP request.
109
+ #
110
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
111
+ #
112
+ def get_with_http_info(group_name, service_name, custom_headers:nil)
113
+ get_async(group_name, service_name, custom_headers:custom_headers).value!
114
+ end
115
+
116
+ #
117
+ # Get DMS Service Instance
118
+ #
119
+ # The services resource is the top-level resource that represents the Data
120
+ # Migration Service. The GET method retrieves information about a service
121
+ # instance.
122
+ #
123
+ # @param group_name [String] Name of the resource group
124
+ # @param service_name [String] Name of the service
125
+ # @param [Hash{String => String}] A hash of custom headers that will be added
126
+ # to the HTTP request.
127
+ #
128
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
129
+ #
130
+ def get_async(group_name, service_name, custom_headers:nil)
131
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
132
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
133
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
134
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
135
+
136
+
137
+ request_headers = {}
138
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
139
+
140
+ # Set Headers
141
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
142
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
143
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}'
144
+
145
+ request_url = @base_url || @client.base_url
146
+
147
+ options = {
148
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
149
+ path_params: {'subscriptionId' => @client.subscription_id,'groupName' => group_name,'serviceName' => service_name},
150
+ query_params: {'api-version' => @client.api_version},
151
+ headers: request_headers.merge(custom_headers || {}),
152
+ base_url: request_url
153
+ }
154
+ promise = @client.make_request_async(:get, path_template, options)
155
+
156
+ promise = promise.then do |result|
157
+ http_response = result.response
158
+ status_code = http_response.status
159
+ response_content = http_response.body
160
+ unless status_code == 200
161
+ error_model = JSON.load(response_content)
162
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
163
+ end
164
+
165
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
166
+ # Deserialize Response
167
+ if status_code == 200
168
+ begin
169
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
170
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationService.mapper()
171
+ result.body = @client.deserialize(result_mapper, parsed_response)
172
+ rescue Exception => e
173
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
174
+ end
175
+ end
176
+
177
+ result
178
+ end
179
+
180
+ promise.execute
181
+ end
182
+
183
+ #
184
+ # Delete DMS Service Instance
185
+ #
186
+ # The services resource is the top-level resource that represents the Data
187
+ # Migration Service. The DELETE method deletes a service. Any running tasks
188
+ # will be canceled.
189
+ #
190
+ # @param group_name [String] Name of the resource group
191
+ # @param service_name [String] Name of the service
192
+ # @param delete_running_tasks [Boolean] Delete the resource even if it contains
193
+ # running tasks
194
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
195
+ # will be added to the HTTP request.
196
+ #
197
+ def delete(group_name, service_name, delete_running_tasks:nil, custom_headers:nil)
198
+ response = delete_async(group_name, service_name, delete_running_tasks:delete_running_tasks, custom_headers:custom_headers).value!
199
+ nil
200
+ end
201
+
202
+ #
203
+ # @param group_name [String] Name of the resource group
204
+ # @param service_name [String] Name of the service
205
+ # @param delete_running_tasks [Boolean] Delete the resource even if it contains
206
+ # running tasks
207
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
208
+ # will be added to the HTTP request.
209
+ #
210
+ # @return [Concurrent::Promise] promise which provides async access to http
211
+ # response.
212
+ #
213
+ def delete_async(group_name, service_name, delete_running_tasks:nil, custom_headers:nil)
214
+ # Send request
215
+ promise = begin_delete_async(group_name, service_name, delete_running_tasks:delete_running_tasks, custom_headers:custom_headers)
216
+
217
+ promise = promise.then do |response|
218
+ # Defining deserialization method.
219
+ deserialize_method = lambda do |parsed_response|
220
+ end
221
+
222
+ # Waiting for response.
223
+ @client.get_long_running_operation_result(response, deserialize_method)
224
+ end
225
+
226
+ promise
227
+ end
228
+
229
+ #
230
+ # Create or update DMS Service Instance
231
+ #
232
+ # The services resource is the top-level resource that represents the Data
233
+ # Migration Service. The PATCH method updates an existing service. This method
234
+ # can change the kind, SKU, and network of the service, but if tasks are
235
+ # currently running (i.e. the service is busy), this will fail with 400 Bad
236
+ # Request ("ServiceIsBusy").
237
+ #
238
+ # @param parameters [DataMigrationService] Information about the service
239
+ # @param group_name [String] Name of the resource group
240
+ # @param service_name [String] Name of the service
241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
+ # will be added to the HTTP request.
243
+ #
244
+ # @return [DataMigrationService] operation results.
245
+ #
246
+ def update(parameters, group_name, service_name, custom_headers:nil)
247
+ response = update_async(parameters, group_name, service_name, custom_headers:custom_headers).value!
248
+ response.body unless response.nil?
249
+ end
250
+
251
+ #
252
+ # @param parameters [DataMigrationService] Information about the service
253
+ # @param group_name [String] Name of the resource group
254
+ # @param service_name [String] Name of the service
255
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
256
+ # will be added to the HTTP request.
257
+ #
258
+ # @return [Concurrent::Promise] promise which provides async access to http
259
+ # response.
260
+ #
261
+ def update_async(parameters, group_name, service_name, custom_headers:nil)
262
+ # Send request
263
+ promise = begin_update_async(parameters, group_name, service_name, custom_headers:custom_headers)
264
+
265
+ promise = promise.then do |response|
266
+ # Defining deserialization method.
267
+ deserialize_method = lambda do |parsed_response|
268
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationService.mapper()
269
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
270
+ end
271
+
272
+ # Waiting for response.
273
+ @client.get_long_running_operation_result(response, deserialize_method)
274
+ end
275
+
276
+ promise
277
+ end
278
+
279
+ #
280
+ # Check service health status
281
+ #
282
+ # The services resource is the top-level resource that represents the Data
283
+ # Migration Service. This action performs a health check and returns the status
284
+ # of the service and virtual machine size.
285
+ #
286
+ # @param group_name [String] Name of the resource group
287
+ # @param service_name [String] Name of the service
288
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
289
+ # will be added to the HTTP request.
290
+ #
291
+ # @return [DataMigrationServiceStatusResponse] operation results.
292
+ #
293
+ def check_status(group_name, service_name, custom_headers:nil)
294
+ response = check_status_async(group_name, service_name, custom_headers:custom_headers).value!
295
+ response.body unless response.nil?
296
+ end
297
+
298
+ #
299
+ # Check service health status
300
+ #
301
+ # The services resource is the top-level resource that represents the Data
302
+ # Migration Service. This action performs a health check and returns the status
303
+ # of the service and virtual machine size.
304
+ #
305
+ # @param group_name [String] Name of the resource group
306
+ # @param service_name [String] Name of the service
307
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
308
+ # will be added to the HTTP request.
309
+ #
310
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
311
+ #
312
+ def check_status_with_http_info(group_name, service_name, custom_headers:nil)
313
+ check_status_async(group_name, service_name, custom_headers:custom_headers).value!
314
+ end
315
+
316
+ #
317
+ # Check service health status
318
+ #
319
+ # The services resource is the top-level resource that represents the Data
320
+ # Migration Service. This action performs a health check and returns the status
321
+ # of the service and virtual machine size.
322
+ #
323
+ # @param group_name [String] Name of the resource group
324
+ # @param service_name [String] Name of the service
325
+ # @param [Hash{String => String}] A hash of custom headers that will be added
326
+ # to the HTTP request.
327
+ #
328
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
329
+ #
330
+ def check_status_async(group_name, service_name, custom_headers:nil)
331
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
332
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
333
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
334
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
335
+
336
+
337
+ request_headers = {}
338
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
339
+
340
+ # Set Headers
341
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
342
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
343
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkStatus'
344
+
345
+ request_url = @base_url || @client.base_url
346
+
347
+ options = {
348
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
349
+ path_params: {'subscriptionId' => @client.subscription_id,'groupName' => group_name,'serviceName' => service_name},
350
+ query_params: {'api-version' => @client.api_version},
351
+ headers: request_headers.merge(custom_headers || {}),
352
+ base_url: request_url
353
+ }
354
+ promise = @client.make_request_async(:post, path_template, options)
355
+
356
+ promise = promise.then do |result|
357
+ http_response = result.response
358
+ status_code = http_response.status
359
+ response_content = http_response.body
360
+ unless status_code == 200
361
+ error_model = JSON.load(response_content)
362
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
363
+ end
364
+
365
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
366
+ # Deserialize Response
367
+ if status_code == 200
368
+ begin
369
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
370
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationServiceStatusResponse.mapper()
371
+ result.body = @client.deserialize(result_mapper, parsed_response)
372
+ rescue Exception => e
373
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
374
+ end
375
+ end
376
+
377
+ result
378
+ end
379
+
380
+ promise.execute
381
+ end
382
+
383
+ #
384
+ # Start service
385
+ #
386
+ # The services resource is the top-level resource that represents the Data
387
+ # Migration Service. This action starts the service and the service can be used
388
+ # for data migration.
389
+ #
390
+ # @param group_name [String] Name of the resource group
391
+ # @param service_name [String] Name of the service
392
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
393
+ # will be added to the HTTP request.
394
+ #
395
+ def start(group_name, service_name, custom_headers:nil)
396
+ response = start_async(group_name, service_name, custom_headers:custom_headers).value!
397
+ nil
398
+ end
399
+
400
+ #
401
+ # @param group_name [String] Name of the resource group
402
+ # @param service_name [String] Name of the service
403
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
404
+ # will be added to the HTTP request.
405
+ #
406
+ # @return [Concurrent::Promise] promise which provides async access to http
407
+ # response.
408
+ #
409
+ def start_async(group_name, service_name, custom_headers:nil)
410
+ # Send request
411
+ promise = begin_start_async(group_name, service_name, custom_headers:custom_headers)
412
+
413
+ promise = promise.then do |response|
414
+ # Defining deserialization method.
415
+ deserialize_method = lambda do |parsed_response|
416
+ end
417
+
418
+ # Waiting for response.
419
+ @client.get_long_running_operation_result(response, deserialize_method)
420
+ end
421
+
422
+ promise
423
+ end
424
+
425
+ #
426
+ # Stop service
427
+ #
428
+ # The services resource is the top-level resource that represents the Data
429
+ # Migration Service. This action stops the service and the service cannot be
430
+ # used for data migration. The service owner won't be billed when the service
431
+ # is stopped.
432
+ #
433
+ # @param group_name [String] Name of the resource group
434
+ # @param service_name [String] Name of the service
435
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
436
+ # will be added to the HTTP request.
437
+ #
438
+ def stop(group_name, service_name, custom_headers:nil)
439
+ response = stop_async(group_name, service_name, custom_headers:custom_headers).value!
440
+ nil
441
+ end
442
+
443
+ #
444
+ # @param group_name [String] Name of the resource group
445
+ # @param service_name [String] Name of the service
446
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
447
+ # will be added to the HTTP request.
448
+ #
449
+ # @return [Concurrent::Promise] promise which provides async access to http
450
+ # response.
451
+ #
452
+ def stop_async(group_name, service_name, custom_headers:nil)
453
+ # Send request
454
+ promise = begin_stop_async(group_name, service_name, custom_headers:custom_headers)
455
+
456
+ promise = promise.then do |response|
457
+ # Defining deserialization method.
458
+ deserialize_method = lambda do |parsed_response|
459
+ end
460
+
461
+ # Waiting for response.
462
+ @client.get_long_running_operation_result(response, deserialize_method)
463
+ end
464
+
465
+ promise
466
+ end
467
+
468
+ #
469
+ # Get compatible SKUs
470
+ #
471
+ # The services resource is the top-level resource that represents the Data
472
+ # Migration Service. The skus action returns the list of SKUs that a service
473
+ # resource can be updated to.
474
+ #
475
+ # @param group_name [String] Name of the resource group
476
+ # @param service_name [String] Name of the service
477
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
478
+ # will be added to the HTTP request.
479
+ #
480
+ # @return [Array<AvailableServiceSku>] operation results.
481
+ #
482
+ def list_skus(group_name, service_name, custom_headers:nil)
483
+ first_page = list_skus_as_lazy(group_name, service_name, custom_headers:custom_headers)
484
+ first_page.get_all_items
485
+ end
486
+
487
+ #
488
+ # Get compatible SKUs
489
+ #
490
+ # The services resource is the top-level resource that represents the Data
491
+ # Migration Service. The skus action returns the list of SKUs that a service
492
+ # resource can be updated to.
493
+ #
494
+ # @param group_name [String] Name of the resource group
495
+ # @param service_name [String] Name of the service
496
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
497
+ # will be added to the HTTP request.
498
+ #
499
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
500
+ #
501
+ def list_skus_with_http_info(group_name, service_name, custom_headers:nil)
502
+ list_skus_async(group_name, service_name, custom_headers:custom_headers).value!
503
+ end
504
+
505
+ #
506
+ # Get compatible SKUs
507
+ #
508
+ # The services resource is the top-level resource that represents the Data
509
+ # Migration Service. The skus action returns the list of SKUs that a service
510
+ # resource can be updated to.
511
+ #
512
+ # @param group_name [String] Name of the resource group
513
+ # @param service_name [String] Name of the service
514
+ # @param [Hash{String => String}] A hash of custom headers that will be added
515
+ # to the HTTP request.
516
+ #
517
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
518
+ #
519
+ def list_skus_async(group_name, service_name, custom_headers:nil)
520
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
521
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
522
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
523
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
524
+
525
+
526
+ request_headers = {}
527
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
528
+
529
+ # Set Headers
530
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
531
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
532
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/skus'
533
+
534
+ request_url = @base_url || @client.base_url
535
+
536
+ options = {
537
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
538
+ path_params: {'subscriptionId' => @client.subscription_id,'groupName' => group_name,'serviceName' => service_name},
539
+ query_params: {'api-version' => @client.api_version},
540
+ headers: request_headers.merge(custom_headers || {}),
541
+ base_url: request_url
542
+ }
543
+ promise = @client.make_request_async(:get, path_template, options)
544
+
545
+ promise = promise.then do |result|
546
+ http_response = result.response
547
+ status_code = http_response.status
548
+ response_content = http_response.body
549
+ unless status_code == 200
550
+ error_model = JSON.load(response_content)
551
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
552
+ end
553
+
554
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
555
+ # Deserialize Response
556
+ if status_code == 200
557
+ begin
558
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
559
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::ServiceSkuList.mapper()
560
+ result.body = @client.deserialize(result_mapper, parsed_response)
561
+ rescue Exception => e
562
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
563
+ end
564
+ end
565
+
566
+ result
567
+ end
568
+
569
+ promise.execute
570
+ end
571
+
572
+ #
573
+ # Check nested resource name validity and availability
574
+ #
575
+ # This method checks whether a proposed nested resource name is valid and
576
+ # available.
577
+ #
578
+ # @param group_name [String] Name of the resource group
579
+ # @param service_name [String] Name of the service
580
+ # @param parameters [NameAvailabilityRequest] Requested name to validate
581
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
582
+ # will be added to the HTTP request.
583
+ #
584
+ # @return [NameAvailabilityResponse] operation results.
585
+ #
586
+ def check_children_name_availability(group_name, service_name, parameters, custom_headers:nil)
587
+ response = check_children_name_availability_async(group_name, service_name, parameters, custom_headers:custom_headers).value!
588
+ response.body unless response.nil?
589
+ end
590
+
591
+ #
592
+ # Check nested resource name validity and availability
593
+ #
594
+ # This method checks whether a proposed nested resource name is valid and
595
+ # available.
596
+ #
597
+ # @param group_name [String] Name of the resource group
598
+ # @param service_name [String] Name of the service
599
+ # @param parameters [NameAvailabilityRequest] Requested name to validate
600
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
601
+ # will be added to the HTTP request.
602
+ #
603
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
604
+ #
605
+ def check_children_name_availability_with_http_info(group_name, service_name, parameters, custom_headers:nil)
606
+ check_children_name_availability_async(group_name, service_name, parameters, custom_headers:custom_headers).value!
607
+ end
608
+
609
+ #
610
+ # Check nested resource name validity and availability
611
+ #
612
+ # This method checks whether a proposed nested resource name is valid and
613
+ # available.
614
+ #
615
+ # @param group_name [String] Name of the resource group
616
+ # @param service_name [String] Name of the service
617
+ # @param parameters [NameAvailabilityRequest] Requested name to validate
618
+ # @param [Hash{String => String}] A hash of custom headers that will be added
619
+ # to the HTTP request.
620
+ #
621
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
622
+ #
623
+ def check_children_name_availability_async(group_name, service_name, parameters, custom_headers:nil)
624
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
625
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
626
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
627
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
628
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
629
+
630
+
631
+ request_headers = {}
632
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
633
+
634
+ # Set Headers
635
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
636
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
637
+
638
+ # Serialize Request
639
+ request_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::NameAvailabilityRequest.mapper()
640
+ request_content = @client.serialize(request_mapper, parameters)
641
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
642
+
643
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkNameAvailability'
644
+
645
+ request_url = @base_url || @client.base_url
646
+
647
+ options = {
648
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
649
+ path_params: {'subscriptionId' => @client.subscription_id,'groupName' => group_name,'serviceName' => service_name},
650
+ query_params: {'api-version' => @client.api_version},
651
+ body: request_content,
652
+ headers: request_headers.merge(custom_headers || {}),
653
+ base_url: request_url
654
+ }
655
+ promise = @client.make_request_async(:post, path_template, options)
656
+
657
+ promise = promise.then do |result|
658
+ http_response = result.response
659
+ status_code = http_response.status
660
+ response_content = http_response.body
661
+ unless status_code == 200
662
+ error_model = JSON.load(response_content)
663
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
664
+ end
665
+
666
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-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::DataMigration::Mgmt::V2018_03_15_preview::Models::NameAvailabilityResponse.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
+ # Get services in resource group
686
+ #
687
+ # The Services resource is the top-level resource that represents the Data
688
+ # Migration Service. This method returns a list of service resources in a
689
+ # resource group.
690
+ #
691
+ # @param group_name [String] Name of the resource group
692
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
693
+ # will be added to the HTTP request.
694
+ #
695
+ # @return [Array<DataMigrationService>] operation results.
696
+ #
697
+ def list_by_resource_group(group_name, custom_headers:nil)
698
+ first_page = list_by_resource_group_as_lazy(group_name, custom_headers:custom_headers)
699
+ first_page.get_all_items
700
+ end
701
+
702
+ #
703
+ # Get services in resource group
704
+ #
705
+ # The Services resource is the top-level resource that represents the Data
706
+ # Migration Service. This method returns a list of service resources in a
707
+ # resource group.
708
+ #
709
+ # @param group_name [String] Name of the resource group
710
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
711
+ # will be added to the HTTP request.
712
+ #
713
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
714
+ #
715
+ def list_by_resource_group_with_http_info(group_name, custom_headers:nil)
716
+ list_by_resource_group_async(group_name, custom_headers:custom_headers).value!
717
+ end
718
+
719
+ #
720
+ # Get services in resource group
721
+ #
722
+ # The Services resource is the top-level resource that represents the Data
723
+ # Migration Service. This method returns a list of service resources in a
724
+ # resource group.
725
+ #
726
+ # @param group_name [String] Name of the resource group
727
+ # @param [Hash{String => String}] A hash of custom headers that will be added
728
+ # to the HTTP request.
729
+ #
730
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
731
+ #
732
+ def list_by_resource_group_async(group_name, custom_headers:nil)
733
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
734
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
735
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
736
+
737
+
738
+ request_headers = {}
739
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
740
+
741
+ # Set Headers
742
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
743
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
744
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services'
745
+
746
+ request_url = @base_url || @client.base_url
747
+
748
+ options = {
749
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
750
+ path_params: {'subscriptionId' => @client.subscription_id,'groupName' => group_name},
751
+ query_params: {'api-version' => @client.api_version},
752
+ headers: request_headers.merge(custom_headers || {}),
753
+ base_url: request_url
754
+ }
755
+ promise = @client.make_request_async(:get, path_template, options)
756
+
757
+ promise = promise.then do |result|
758
+ http_response = result.response
759
+ status_code = http_response.status
760
+ response_content = http_response.body
761
+ unless status_code == 200
762
+ error_model = JSON.load(response_content)
763
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
764
+ end
765
+
766
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
767
+ # Deserialize Response
768
+ if status_code == 200
769
+ begin
770
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
771
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationServiceList.mapper()
772
+ result.body = @client.deserialize(result_mapper, parsed_response)
773
+ rescue Exception => e
774
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
775
+ end
776
+ end
777
+
778
+ result
779
+ end
780
+
781
+ promise.execute
782
+ end
783
+
784
+ #
785
+ # Get services in subscription
786
+ #
787
+ # The services resource is the top-level resource that represents the Data
788
+ # Migration Service. This method returns a list of service resources in a
789
+ # subscription.
790
+ #
791
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
792
+ # will be added to the HTTP request.
793
+ #
794
+ # @return [Array<DataMigrationService>] operation results.
795
+ #
796
+ def list(custom_headers:nil)
797
+ first_page = list_as_lazy(custom_headers:custom_headers)
798
+ first_page.get_all_items
799
+ end
800
+
801
+ #
802
+ # Get services in subscription
803
+ #
804
+ # The services resource is the top-level resource that represents the Data
805
+ # Migration Service. This method returns a list of service resources in a
806
+ # subscription.
807
+ #
808
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
809
+ # will be added to the HTTP request.
810
+ #
811
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
+ #
813
+ def list_with_http_info(custom_headers:nil)
814
+ list_async(custom_headers:custom_headers).value!
815
+ end
816
+
817
+ #
818
+ # Get services in subscription
819
+ #
820
+ # The services resource is the top-level resource that represents the Data
821
+ # Migration Service. This method returns a list of service resources in a
822
+ # subscription.
823
+ #
824
+ # @param [Hash{String => String}] A hash of custom headers that will be added
825
+ # to the HTTP request.
826
+ #
827
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
828
+ #
829
+ def list_async(custom_headers:nil)
830
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
831
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
832
+
833
+
834
+ request_headers = {}
835
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
836
+
837
+ # Set Headers
838
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
839
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
840
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services'
841
+
842
+ request_url = @base_url || @client.base_url
843
+
844
+ options = {
845
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
846
+ path_params: {'subscriptionId' => @client.subscription_id},
847
+ query_params: {'api-version' => @client.api_version},
848
+ headers: request_headers.merge(custom_headers || {}),
849
+ base_url: request_url
850
+ }
851
+ promise = @client.make_request_async(:get, path_template, options)
852
+
853
+ promise = promise.then do |result|
854
+ http_response = result.response
855
+ status_code = http_response.status
856
+ response_content = http_response.body
857
+ unless status_code == 200
858
+ error_model = JSON.load(response_content)
859
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
860
+ end
861
+
862
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
863
+ # Deserialize Response
864
+ if status_code == 200
865
+ begin
866
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
867
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationServiceList.mapper()
868
+ result.body = @client.deserialize(result_mapper, parsed_response)
869
+ rescue Exception => e
870
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
871
+ end
872
+ end
873
+
874
+ result
875
+ end
876
+
877
+ promise.execute
878
+ end
879
+
880
+ #
881
+ # Check name validity and availability
882
+ #
883
+ # This method checks whether a proposed top-level resource name is valid and
884
+ # available.
885
+ #
886
+ # @param location [String] The Azure region of the operation
887
+ # @param parameters [NameAvailabilityRequest] Requested name to validate
888
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
889
+ # will be added to the HTTP request.
890
+ #
891
+ # @return [NameAvailabilityResponse] operation results.
892
+ #
893
+ def check_name_availability(location, parameters, custom_headers:nil)
894
+ response = check_name_availability_async(location, parameters, custom_headers:custom_headers).value!
895
+ response.body unless response.nil?
896
+ end
897
+
898
+ #
899
+ # Check name validity and availability
900
+ #
901
+ # This method checks whether a proposed top-level resource name is valid and
902
+ # available.
903
+ #
904
+ # @param location [String] The Azure region of the operation
905
+ # @param parameters [NameAvailabilityRequest] Requested name to validate
906
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
907
+ # will be added to the HTTP request.
908
+ #
909
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
910
+ #
911
+ def check_name_availability_with_http_info(location, parameters, custom_headers:nil)
912
+ check_name_availability_async(location, parameters, custom_headers:custom_headers).value!
913
+ end
914
+
915
+ #
916
+ # Check name validity and availability
917
+ #
918
+ # This method checks whether a proposed top-level resource name is valid and
919
+ # available.
920
+ #
921
+ # @param location [String] The Azure region of the operation
922
+ # @param parameters [NameAvailabilityRequest] Requested name to validate
923
+ # @param [Hash{String => String}] A hash of custom headers that will be added
924
+ # to the HTTP request.
925
+ #
926
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
927
+ #
928
+ def check_name_availability_async(location, parameters, custom_headers:nil)
929
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
930
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
931
+ fail ArgumentError, 'location is nil' if location.nil?
932
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
933
+
934
+
935
+ request_headers = {}
936
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
937
+
938
+ # Set Headers
939
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
940
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
941
+
942
+ # Serialize Request
943
+ request_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::NameAvailabilityRequest.mapper()
944
+ request_content = @client.serialize(request_mapper, parameters)
945
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
946
+
947
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability'
948
+
949
+ request_url = @base_url || @client.base_url
950
+
951
+ options = {
952
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
953
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
954
+ query_params: {'api-version' => @client.api_version},
955
+ body: request_content,
956
+ headers: request_headers.merge(custom_headers || {}),
957
+ base_url: request_url
958
+ }
959
+ promise = @client.make_request_async(:post, path_template, options)
960
+
961
+ promise = promise.then do |result|
962
+ http_response = result.response
963
+ status_code = http_response.status
964
+ response_content = http_response.body
965
+ unless status_code == 200
966
+ error_model = JSON.load(response_content)
967
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
968
+ end
969
+
970
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
971
+ # Deserialize Response
972
+ if status_code == 200
973
+ begin
974
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
975
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::NameAvailabilityResponse.mapper()
976
+ result.body = @client.deserialize(result_mapper, parsed_response)
977
+ rescue Exception => e
978
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
979
+ end
980
+ end
981
+
982
+ result
983
+ end
984
+
985
+ promise.execute
986
+ end
987
+
988
+ #
989
+ # Create or update DMS Instance
990
+ #
991
+ # The services resource is the top-level resource that represents the Data
992
+ # Migration Service. The PUT method creates a new service or updates an
993
+ # existing one. When a service is updated, existing child resources (i.e.
994
+ # tasks) are unaffected. Services currently support a single kind, "vm", which
995
+ # refers to a VM-based service, although other kinds may be added in the
996
+ # future. This method can change the kind, SKU, and network of the service, but
997
+ # if tasks are currently running (i.e. the service is busy), this will fail
998
+ # with 400 Bad Request ("ServiceIsBusy"). The provider will reply when
999
+ # successful with 200 OK or 201 Created. Long-running operations use the
1000
+ # provisioningState property.
1001
+ #
1002
+ # @param parameters [DataMigrationService] Information about the service
1003
+ # @param group_name [String] Name of the resource group
1004
+ # @param service_name [String] Name of the service
1005
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1006
+ # will be added to the HTTP request.
1007
+ #
1008
+ # @return [DataMigrationService] operation results.
1009
+ #
1010
+ def begin_create_or_update(parameters, group_name, service_name, custom_headers:nil)
1011
+ response = begin_create_or_update_async(parameters, group_name, service_name, custom_headers:custom_headers).value!
1012
+ response.body unless response.nil?
1013
+ end
1014
+
1015
+ #
1016
+ # Create or update DMS Instance
1017
+ #
1018
+ # The services resource is the top-level resource that represents the Data
1019
+ # Migration Service. The PUT method creates a new service or updates an
1020
+ # existing one. When a service is updated, existing child resources (i.e.
1021
+ # tasks) are unaffected. Services currently support a single kind, "vm", which
1022
+ # refers to a VM-based service, although other kinds may be added in the
1023
+ # future. This method can change the kind, SKU, and network of the service, but
1024
+ # if tasks are currently running (i.e. the service is busy), this will fail
1025
+ # with 400 Bad Request ("ServiceIsBusy"). The provider will reply when
1026
+ # successful with 200 OK or 201 Created. Long-running operations use the
1027
+ # provisioningState property.
1028
+ #
1029
+ # @param parameters [DataMigrationService] Information about the service
1030
+ # @param group_name [String] Name of the resource group
1031
+ # @param service_name [String] Name of the service
1032
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1033
+ # will be added to the HTTP request.
1034
+ #
1035
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1036
+ #
1037
+ def begin_create_or_update_with_http_info(parameters, group_name, service_name, custom_headers:nil)
1038
+ begin_create_or_update_async(parameters, group_name, service_name, custom_headers:custom_headers).value!
1039
+ end
1040
+
1041
+ #
1042
+ # Create or update DMS Instance
1043
+ #
1044
+ # The services resource is the top-level resource that represents the Data
1045
+ # Migration Service. The PUT method creates a new service or updates an
1046
+ # existing one. When a service is updated, existing child resources (i.e.
1047
+ # tasks) are unaffected. Services currently support a single kind, "vm", which
1048
+ # refers to a VM-based service, although other kinds may be added in the
1049
+ # future. This method can change the kind, SKU, and network of the service, but
1050
+ # if tasks are currently running (i.e. the service is busy), this will fail
1051
+ # with 400 Bad Request ("ServiceIsBusy"). The provider will reply when
1052
+ # successful with 200 OK or 201 Created. Long-running operations use the
1053
+ # provisioningState property.
1054
+ #
1055
+ # @param parameters [DataMigrationService] Information about the service
1056
+ # @param group_name [String] Name of the resource group
1057
+ # @param service_name [String] Name of the service
1058
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1059
+ # to the HTTP request.
1060
+ #
1061
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1062
+ #
1063
+ def begin_create_or_update_async(parameters, group_name, service_name, custom_headers:nil)
1064
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1065
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1066
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
1067
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1068
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1069
+
1070
+
1071
+ request_headers = {}
1072
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1073
+
1074
+ # Set Headers
1075
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1076
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1077
+
1078
+ # Serialize Request
1079
+ request_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationService.mapper()
1080
+ request_content = @client.serialize(request_mapper, parameters)
1081
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1082
+
1083
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}'
1084
+
1085
+ request_url = @base_url || @client.base_url
1086
+
1087
+ options = {
1088
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1089
+ path_params: {'subscriptionId' => @client.subscription_id,'groupName' => group_name,'serviceName' => service_name},
1090
+ query_params: {'api-version' => @client.api_version},
1091
+ body: request_content,
1092
+ headers: request_headers.merge(custom_headers || {}),
1093
+ base_url: request_url
1094
+ }
1095
+ promise = @client.make_request_async(:put, path_template, options)
1096
+
1097
+ promise = promise.then do |result|
1098
+ http_response = result.response
1099
+ status_code = http_response.status
1100
+ response_content = http_response.body
1101
+ unless status_code == 200 || status_code == 201 || status_code == 202
1102
+ error_model = JSON.load(response_content)
1103
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1104
+ end
1105
+
1106
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1107
+ # Deserialize Response
1108
+ if status_code == 200
1109
+ begin
1110
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1111
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationService.mapper()
1112
+ result.body = @client.deserialize(result_mapper, parsed_response)
1113
+ rescue Exception => e
1114
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1115
+ end
1116
+ end
1117
+ # Deserialize Response
1118
+ if status_code == 201
1119
+ begin
1120
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1121
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationService.mapper()
1122
+ result.body = @client.deserialize(result_mapper, parsed_response)
1123
+ rescue Exception => e
1124
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1125
+ end
1126
+ end
1127
+
1128
+ result
1129
+ end
1130
+
1131
+ promise.execute
1132
+ end
1133
+
1134
+ #
1135
+ # Delete DMS Service Instance
1136
+ #
1137
+ # The services resource is the top-level resource that represents the Data
1138
+ # Migration Service. The DELETE method deletes a service. Any running tasks
1139
+ # will be canceled.
1140
+ #
1141
+ # @param group_name [String] Name of the resource group
1142
+ # @param service_name [String] Name of the service
1143
+ # @param delete_running_tasks [Boolean] Delete the resource even if it contains
1144
+ # running tasks
1145
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1146
+ # will be added to the HTTP request.
1147
+ #
1148
+ #
1149
+ def begin_delete(group_name, service_name, delete_running_tasks:nil, custom_headers:nil)
1150
+ response = begin_delete_async(group_name, service_name, delete_running_tasks:delete_running_tasks, custom_headers:custom_headers).value!
1151
+ nil
1152
+ end
1153
+
1154
+ #
1155
+ # Delete DMS Service Instance
1156
+ #
1157
+ # The services resource is the top-level resource that represents the Data
1158
+ # Migration Service. The DELETE method deletes a service. Any running tasks
1159
+ # will be canceled.
1160
+ #
1161
+ # @param group_name [String] Name of the resource group
1162
+ # @param service_name [String] Name of the service
1163
+ # @param delete_running_tasks [Boolean] Delete the resource even if it contains
1164
+ # running tasks
1165
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1166
+ # will be added to the HTTP request.
1167
+ #
1168
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1169
+ #
1170
+ def begin_delete_with_http_info(group_name, service_name, delete_running_tasks:nil, custom_headers:nil)
1171
+ begin_delete_async(group_name, service_name, delete_running_tasks:delete_running_tasks, custom_headers:custom_headers).value!
1172
+ end
1173
+
1174
+ #
1175
+ # Delete DMS Service Instance
1176
+ #
1177
+ # The services resource is the top-level resource that represents the Data
1178
+ # Migration Service. The DELETE method deletes a service. Any running tasks
1179
+ # will be canceled.
1180
+ #
1181
+ # @param group_name [String] Name of the resource group
1182
+ # @param service_name [String] Name of the service
1183
+ # @param delete_running_tasks [Boolean] Delete the resource even if it contains
1184
+ # running tasks
1185
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1186
+ # to the HTTP request.
1187
+ #
1188
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1189
+ #
1190
+ def begin_delete_async(group_name, service_name, delete_running_tasks:nil, custom_headers:nil)
1191
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1192
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
1193
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1194
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1195
+
1196
+
1197
+ request_headers = {}
1198
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1199
+
1200
+ # Set Headers
1201
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1202
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1203
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}'
1204
+
1205
+ request_url = @base_url || @client.base_url
1206
+
1207
+ options = {
1208
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1209
+ path_params: {'subscriptionId' => @client.subscription_id,'groupName' => group_name,'serviceName' => service_name},
1210
+ query_params: {'deleteRunningTasks' => delete_running_tasks,'api-version' => @client.api_version},
1211
+ headers: request_headers.merge(custom_headers || {}),
1212
+ base_url: request_url
1213
+ }
1214
+ promise = @client.make_request_async(:delete, path_template, options)
1215
+
1216
+ promise = promise.then do |result|
1217
+ http_response = result.response
1218
+ status_code = http_response.status
1219
+ response_content = http_response.body
1220
+ unless status_code == 200 || status_code == 202 || status_code == 204
1221
+ error_model = JSON.load(response_content)
1222
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1223
+ end
1224
+
1225
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1226
+
1227
+ result
1228
+ end
1229
+
1230
+ promise.execute
1231
+ end
1232
+
1233
+ #
1234
+ # Create or update DMS Service Instance
1235
+ #
1236
+ # The services resource is the top-level resource that represents the Data
1237
+ # Migration Service. The PATCH method updates an existing service. This method
1238
+ # can change the kind, SKU, and network of the service, but if tasks are
1239
+ # currently running (i.e. the service is busy), this will fail with 400 Bad
1240
+ # Request ("ServiceIsBusy").
1241
+ #
1242
+ # @param parameters [DataMigrationService] Information about the service
1243
+ # @param group_name [String] Name of the resource group
1244
+ # @param service_name [String] Name of the service
1245
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1246
+ # will be added to the HTTP request.
1247
+ #
1248
+ # @return [DataMigrationService] operation results.
1249
+ #
1250
+ def begin_update(parameters, group_name, service_name, custom_headers:nil)
1251
+ response = begin_update_async(parameters, group_name, service_name, custom_headers:custom_headers).value!
1252
+ response.body unless response.nil?
1253
+ end
1254
+
1255
+ #
1256
+ # Create or update DMS Service Instance
1257
+ #
1258
+ # The services resource is the top-level resource that represents the Data
1259
+ # Migration Service. The PATCH method updates an existing service. This method
1260
+ # can change the kind, SKU, and network of the service, but if tasks are
1261
+ # currently running (i.e. the service is busy), this will fail with 400 Bad
1262
+ # Request ("ServiceIsBusy").
1263
+ #
1264
+ # @param parameters [DataMigrationService] Information about the service
1265
+ # @param group_name [String] Name of the resource group
1266
+ # @param service_name [String] Name of the service
1267
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1268
+ # will be added to the HTTP request.
1269
+ #
1270
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1271
+ #
1272
+ def begin_update_with_http_info(parameters, group_name, service_name, custom_headers:nil)
1273
+ begin_update_async(parameters, group_name, service_name, custom_headers:custom_headers).value!
1274
+ end
1275
+
1276
+ #
1277
+ # Create or update DMS Service Instance
1278
+ #
1279
+ # The services resource is the top-level resource that represents the Data
1280
+ # Migration Service. The PATCH method updates an existing service. This method
1281
+ # can change the kind, SKU, and network of the service, but if tasks are
1282
+ # currently running (i.e. the service is busy), this will fail with 400 Bad
1283
+ # Request ("ServiceIsBusy").
1284
+ #
1285
+ # @param parameters [DataMigrationService] Information about the service
1286
+ # @param group_name [String] Name of the resource group
1287
+ # @param service_name [String] Name of the service
1288
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1289
+ # to the HTTP request.
1290
+ #
1291
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1292
+ #
1293
+ def begin_update_async(parameters, group_name, service_name, custom_headers:nil)
1294
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1295
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1296
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
1297
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1298
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1299
+
1300
+
1301
+ request_headers = {}
1302
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1303
+
1304
+ # Set Headers
1305
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1306
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1307
+
1308
+ # Serialize Request
1309
+ request_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationService.mapper()
1310
+ request_content = @client.serialize(request_mapper, parameters)
1311
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1312
+
1313
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}'
1314
+
1315
+ request_url = @base_url || @client.base_url
1316
+
1317
+ options = {
1318
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1319
+ path_params: {'subscriptionId' => @client.subscription_id,'groupName' => group_name,'serviceName' => service_name},
1320
+ query_params: {'api-version' => @client.api_version},
1321
+ body: request_content,
1322
+ headers: request_headers.merge(custom_headers || {}),
1323
+ base_url: request_url
1324
+ }
1325
+ promise = @client.make_request_async(:patch, path_template, options)
1326
+
1327
+ promise = promise.then do |result|
1328
+ http_response = result.response
1329
+ status_code = http_response.status
1330
+ response_content = http_response.body
1331
+ unless status_code == 200 || status_code == 202
1332
+ error_model = JSON.load(response_content)
1333
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1334
+ end
1335
+
1336
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1337
+ # Deserialize Response
1338
+ if status_code == 200
1339
+ begin
1340
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1341
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationService.mapper()
1342
+ result.body = @client.deserialize(result_mapper, parsed_response)
1343
+ rescue Exception => e
1344
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1345
+ end
1346
+ end
1347
+
1348
+ result
1349
+ end
1350
+
1351
+ promise.execute
1352
+ end
1353
+
1354
+ #
1355
+ # Start service
1356
+ #
1357
+ # The services resource is the top-level resource that represents the Data
1358
+ # Migration Service. This action starts the service and the service can be used
1359
+ # for data migration.
1360
+ #
1361
+ # @param group_name [String] Name of the resource group
1362
+ # @param service_name [String] Name of the service
1363
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1364
+ # will be added to the HTTP request.
1365
+ #
1366
+ #
1367
+ def begin_start(group_name, service_name, custom_headers:nil)
1368
+ response = begin_start_async(group_name, service_name, custom_headers:custom_headers).value!
1369
+ nil
1370
+ end
1371
+
1372
+ #
1373
+ # Start service
1374
+ #
1375
+ # The services resource is the top-level resource that represents the Data
1376
+ # Migration Service. This action starts the service and the service can be used
1377
+ # for data migration.
1378
+ #
1379
+ # @param group_name [String] Name of the resource group
1380
+ # @param service_name [String] Name of the service
1381
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1382
+ # will be added to the HTTP request.
1383
+ #
1384
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1385
+ #
1386
+ def begin_start_with_http_info(group_name, service_name, custom_headers:nil)
1387
+ begin_start_async(group_name, service_name, custom_headers:custom_headers).value!
1388
+ end
1389
+
1390
+ #
1391
+ # Start service
1392
+ #
1393
+ # The services resource is the top-level resource that represents the Data
1394
+ # Migration Service. This action starts the service and the service can be used
1395
+ # for data migration.
1396
+ #
1397
+ # @param group_name [String] Name of the resource group
1398
+ # @param service_name [String] Name of the service
1399
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1400
+ # to the HTTP request.
1401
+ #
1402
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1403
+ #
1404
+ def begin_start_async(group_name, service_name, custom_headers:nil)
1405
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1406
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
1407
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1408
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1409
+
1410
+
1411
+ request_headers = {}
1412
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1413
+
1414
+ # Set Headers
1415
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1416
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1417
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/start'
1418
+
1419
+ request_url = @base_url || @client.base_url
1420
+
1421
+ options = {
1422
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1423
+ path_params: {'subscriptionId' => @client.subscription_id,'groupName' => group_name,'serviceName' => service_name},
1424
+ query_params: {'api-version' => @client.api_version},
1425
+ headers: request_headers.merge(custom_headers || {}),
1426
+ base_url: request_url
1427
+ }
1428
+ promise = @client.make_request_async(:post, path_template, options)
1429
+
1430
+ promise = promise.then do |result|
1431
+ http_response = result.response
1432
+ status_code = http_response.status
1433
+ response_content = http_response.body
1434
+ unless status_code == 200 || status_code == 202
1435
+ error_model = JSON.load(response_content)
1436
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1437
+ end
1438
+
1439
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1440
+
1441
+ result
1442
+ end
1443
+
1444
+ promise.execute
1445
+ end
1446
+
1447
+ #
1448
+ # Stop service
1449
+ #
1450
+ # The services resource is the top-level resource that represents the Data
1451
+ # Migration Service. This action stops the service and the service cannot be
1452
+ # used for data migration. The service owner won't be billed when the service
1453
+ # is stopped.
1454
+ #
1455
+ # @param group_name [String] Name of the resource group
1456
+ # @param service_name [String] Name of the service
1457
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1458
+ # will be added to the HTTP request.
1459
+ #
1460
+ #
1461
+ def begin_stop(group_name, service_name, custom_headers:nil)
1462
+ response = begin_stop_async(group_name, service_name, custom_headers:custom_headers).value!
1463
+ nil
1464
+ end
1465
+
1466
+ #
1467
+ # Stop service
1468
+ #
1469
+ # The services resource is the top-level resource that represents the Data
1470
+ # Migration Service. This action stops the service and the service cannot be
1471
+ # used for data migration. The service owner won't be billed when the service
1472
+ # is stopped.
1473
+ #
1474
+ # @param group_name [String] Name of the resource group
1475
+ # @param service_name [String] Name of the service
1476
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1477
+ # will be added to the HTTP request.
1478
+ #
1479
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1480
+ #
1481
+ def begin_stop_with_http_info(group_name, service_name, custom_headers:nil)
1482
+ begin_stop_async(group_name, service_name, custom_headers:custom_headers).value!
1483
+ end
1484
+
1485
+ #
1486
+ # Stop service
1487
+ #
1488
+ # The services resource is the top-level resource that represents the Data
1489
+ # Migration Service. This action stops the service and the service cannot be
1490
+ # used for data migration. The service owner won't be billed when the service
1491
+ # is stopped.
1492
+ #
1493
+ # @param group_name [String] Name of the resource group
1494
+ # @param service_name [String] Name of the service
1495
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1496
+ # to the HTTP request.
1497
+ #
1498
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1499
+ #
1500
+ def begin_stop_async(group_name, service_name, custom_headers:nil)
1501
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1502
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
1503
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1504
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1505
+
1506
+
1507
+ request_headers = {}
1508
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1509
+
1510
+ # Set Headers
1511
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1512
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1513
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/stop'
1514
+
1515
+ request_url = @base_url || @client.base_url
1516
+
1517
+ options = {
1518
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1519
+ path_params: {'subscriptionId' => @client.subscription_id,'groupName' => group_name,'serviceName' => service_name},
1520
+ query_params: {'api-version' => @client.api_version},
1521
+ headers: request_headers.merge(custom_headers || {}),
1522
+ base_url: request_url
1523
+ }
1524
+ promise = @client.make_request_async(:post, path_template, options)
1525
+
1526
+ promise = promise.then do |result|
1527
+ http_response = result.response
1528
+ status_code = http_response.status
1529
+ response_content = http_response.body
1530
+ unless status_code == 200 || status_code == 202
1531
+ error_model = JSON.load(response_content)
1532
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1533
+ end
1534
+
1535
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1536
+
1537
+ result
1538
+ end
1539
+
1540
+ promise.execute
1541
+ end
1542
+
1543
+ #
1544
+ # Get compatible SKUs
1545
+ #
1546
+ # The services resource is the top-level resource that represents the Data
1547
+ # Migration Service. The skus action returns the list of SKUs that a service
1548
+ # resource can be updated to.
1549
+ #
1550
+ # @param next_page_link [String] The NextLink from the previous successful call
1551
+ # to List operation.
1552
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1553
+ # will be added to the HTTP request.
1554
+ #
1555
+ # @return [ServiceSkuList] operation results.
1556
+ #
1557
+ def list_skus_next(next_page_link, custom_headers:nil)
1558
+ response = list_skus_next_async(next_page_link, custom_headers:custom_headers).value!
1559
+ response.body unless response.nil?
1560
+ end
1561
+
1562
+ #
1563
+ # Get compatible SKUs
1564
+ #
1565
+ # The services resource is the top-level resource that represents the Data
1566
+ # Migration Service. The skus action returns the list of SKUs that a service
1567
+ # resource can be updated to.
1568
+ #
1569
+ # @param next_page_link [String] The NextLink from the previous successful call
1570
+ # to List operation.
1571
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1572
+ # will be added to the HTTP request.
1573
+ #
1574
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1575
+ #
1576
+ def list_skus_next_with_http_info(next_page_link, custom_headers:nil)
1577
+ list_skus_next_async(next_page_link, custom_headers:custom_headers).value!
1578
+ end
1579
+
1580
+ #
1581
+ # Get compatible SKUs
1582
+ #
1583
+ # The services resource is the top-level resource that represents the Data
1584
+ # Migration Service. The skus action returns the list of SKUs that a service
1585
+ # resource can be updated to.
1586
+ #
1587
+ # @param next_page_link [String] The NextLink from the previous successful call
1588
+ # to List operation.
1589
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1590
+ # to the HTTP request.
1591
+ #
1592
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1593
+ #
1594
+ def list_skus_next_async(next_page_link, custom_headers:nil)
1595
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1596
+
1597
+
1598
+ request_headers = {}
1599
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1600
+
1601
+ # Set Headers
1602
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1603
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1604
+ path_template = '{nextLink}'
1605
+
1606
+ request_url = @base_url || @client.base_url
1607
+
1608
+ options = {
1609
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1610
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1611
+ headers: request_headers.merge(custom_headers || {}),
1612
+ base_url: request_url
1613
+ }
1614
+ promise = @client.make_request_async(:get, path_template, options)
1615
+
1616
+ promise = promise.then do |result|
1617
+ http_response = result.response
1618
+ status_code = http_response.status
1619
+ response_content = http_response.body
1620
+ unless status_code == 200
1621
+ error_model = JSON.load(response_content)
1622
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1623
+ end
1624
+
1625
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1626
+ # Deserialize Response
1627
+ if status_code == 200
1628
+ begin
1629
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1630
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::ServiceSkuList.mapper()
1631
+ result.body = @client.deserialize(result_mapper, parsed_response)
1632
+ rescue Exception => e
1633
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1634
+ end
1635
+ end
1636
+
1637
+ result
1638
+ end
1639
+
1640
+ promise.execute
1641
+ end
1642
+
1643
+ #
1644
+ # Get services in resource group
1645
+ #
1646
+ # The Services resource is the top-level resource that represents the Data
1647
+ # Migration Service. This method returns a list of service resources in a
1648
+ # resource group.
1649
+ #
1650
+ # @param next_page_link [String] The NextLink from the previous successful call
1651
+ # to List operation.
1652
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1653
+ # will be added to the HTTP request.
1654
+ #
1655
+ # @return [DataMigrationServiceList] operation results.
1656
+ #
1657
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1658
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1659
+ response.body unless response.nil?
1660
+ end
1661
+
1662
+ #
1663
+ # Get services in resource group
1664
+ #
1665
+ # The Services resource is the top-level resource that represents the Data
1666
+ # Migration Service. This method returns a list of service resources in a
1667
+ # resource group.
1668
+ #
1669
+ # @param next_page_link [String] The NextLink from the previous successful call
1670
+ # to List operation.
1671
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1672
+ # will be added to the HTTP request.
1673
+ #
1674
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1675
+ #
1676
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1677
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1678
+ end
1679
+
1680
+ #
1681
+ # Get services in resource group
1682
+ #
1683
+ # The Services resource is the top-level resource that represents the Data
1684
+ # Migration Service. This method returns a list of service resources in a
1685
+ # resource group.
1686
+ #
1687
+ # @param next_page_link [String] The NextLink from the previous successful call
1688
+ # to List operation.
1689
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1690
+ # to the HTTP request.
1691
+ #
1692
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1693
+ #
1694
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1695
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1696
+
1697
+
1698
+ request_headers = {}
1699
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1700
+
1701
+ # Set Headers
1702
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1703
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1704
+ path_template = '{nextLink}'
1705
+
1706
+ request_url = @base_url || @client.base_url
1707
+
1708
+ options = {
1709
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1710
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1711
+ headers: request_headers.merge(custom_headers || {}),
1712
+ base_url: request_url
1713
+ }
1714
+ promise = @client.make_request_async(:get, path_template, options)
1715
+
1716
+ promise = promise.then do |result|
1717
+ http_response = result.response
1718
+ status_code = http_response.status
1719
+ response_content = http_response.body
1720
+ unless status_code == 200
1721
+ error_model = JSON.load(response_content)
1722
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1723
+ end
1724
+
1725
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1726
+ # Deserialize Response
1727
+ if status_code == 200
1728
+ begin
1729
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1730
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationServiceList.mapper()
1731
+ result.body = @client.deserialize(result_mapper, parsed_response)
1732
+ rescue Exception => e
1733
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1734
+ end
1735
+ end
1736
+
1737
+ result
1738
+ end
1739
+
1740
+ promise.execute
1741
+ end
1742
+
1743
+ #
1744
+ # Get services in subscription
1745
+ #
1746
+ # The services resource is the top-level resource that represents the Data
1747
+ # Migration Service. This method returns a list of service resources in a
1748
+ # subscription.
1749
+ #
1750
+ # @param next_page_link [String] The NextLink from the previous successful call
1751
+ # to List operation.
1752
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1753
+ # will be added to the HTTP request.
1754
+ #
1755
+ # @return [DataMigrationServiceList] operation results.
1756
+ #
1757
+ def list_next(next_page_link, custom_headers:nil)
1758
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1759
+ response.body unless response.nil?
1760
+ end
1761
+
1762
+ #
1763
+ # Get services in subscription
1764
+ #
1765
+ # The services resource is the top-level resource that represents the Data
1766
+ # Migration Service. This method returns a list of service resources in a
1767
+ # subscription.
1768
+ #
1769
+ # @param next_page_link [String] The NextLink from the previous successful call
1770
+ # to List operation.
1771
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1772
+ # will be added to the HTTP request.
1773
+ #
1774
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1775
+ #
1776
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1777
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1778
+ end
1779
+
1780
+ #
1781
+ # Get services in subscription
1782
+ #
1783
+ # The services resource is the top-level resource that represents the Data
1784
+ # Migration Service. This method returns a list of service resources in a
1785
+ # subscription.
1786
+ #
1787
+ # @param next_page_link [String] The NextLink from the previous successful call
1788
+ # to List operation.
1789
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1790
+ # to the HTTP request.
1791
+ #
1792
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1793
+ #
1794
+ def list_next_async(next_page_link, custom_headers:nil)
1795
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1796
+
1797
+
1798
+ request_headers = {}
1799
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1800
+
1801
+ # Set Headers
1802
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1803
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1804
+ path_template = '{nextLink}'
1805
+
1806
+ request_url = @base_url || @client.base_url
1807
+
1808
+ options = {
1809
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1810
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1811
+ headers: request_headers.merge(custom_headers || {}),
1812
+ base_url: request_url
1813
+ }
1814
+ promise = @client.make_request_async(:get, path_template, options)
1815
+
1816
+ promise = promise.then do |result|
1817
+ http_response = result.response
1818
+ status_code = http_response.status
1819
+ response_content = http_response.body
1820
+ unless status_code == 200
1821
+ error_model = JSON.load(response_content)
1822
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1823
+ end
1824
+
1825
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1826
+ # Deserialize Response
1827
+ if status_code == 200
1828
+ begin
1829
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1830
+ result_mapper = Azure::DataMigration::Mgmt::V2018_03_15_preview::Models::DataMigrationServiceList.mapper()
1831
+ result.body = @client.deserialize(result_mapper, parsed_response)
1832
+ rescue Exception => e
1833
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1834
+ end
1835
+ end
1836
+
1837
+ result
1838
+ end
1839
+
1840
+ promise.execute
1841
+ end
1842
+
1843
+ #
1844
+ # Get compatible SKUs
1845
+ #
1846
+ # The services resource is the top-level resource that represents the Data
1847
+ # Migration Service. The skus action returns the list of SKUs that a service
1848
+ # resource can be updated to.
1849
+ #
1850
+ # @param group_name [String] Name of the resource group
1851
+ # @param service_name [String] Name of the service
1852
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1853
+ # will be added to the HTTP request.
1854
+ #
1855
+ # @return [ServiceSkuList] which provide lazy access to pages of the response.
1856
+ #
1857
+ def list_skus_as_lazy(group_name, service_name, custom_headers:nil)
1858
+ response = list_skus_async(group_name, service_name, custom_headers:custom_headers).value!
1859
+ unless response.nil?
1860
+ page = response.body
1861
+ page.next_method = Proc.new do |next_page_link|
1862
+ list_skus_next_async(next_page_link, custom_headers:custom_headers)
1863
+ end
1864
+ page
1865
+ end
1866
+ end
1867
+
1868
+ #
1869
+ # Get services in resource group
1870
+ #
1871
+ # The Services resource is the top-level resource that represents the Data
1872
+ # Migration Service. This method returns a list of service resources in a
1873
+ # resource group.
1874
+ #
1875
+ # @param group_name [String] Name of the resource group
1876
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1877
+ # will be added to the HTTP request.
1878
+ #
1879
+ # @return [DataMigrationServiceList] which provide lazy access to pages of the
1880
+ # response.
1881
+ #
1882
+ def list_by_resource_group_as_lazy(group_name, custom_headers:nil)
1883
+ response = list_by_resource_group_async(group_name, custom_headers:custom_headers).value!
1884
+ unless response.nil?
1885
+ page = response.body
1886
+ page.next_method = Proc.new do |next_page_link|
1887
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1888
+ end
1889
+ page
1890
+ end
1891
+ end
1892
+
1893
+ #
1894
+ # Get services in subscription
1895
+ #
1896
+ # The services resource is the top-level resource that represents the Data
1897
+ # Migration Service. This method returns a list of service resources in a
1898
+ # subscription.
1899
+ #
1900
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1901
+ # will be added to the HTTP request.
1902
+ #
1903
+ # @return [DataMigrationServiceList] which provide lazy access to pages of the
1904
+ # response.
1905
+ #
1906
+ def list_as_lazy(custom_headers:nil)
1907
+ response = list_async(custom_headers:custom_headers).value!
1908
+ unless response.nil?
1909
+ page = response.body
1910
+ page.next_method = Proc.new do |next_page_link|
1911
+ list_next_async(next_page_link, custom_headers:custom_headers)
1912
+ end
1913
+ page
1914
+ end
1915
+ end
1916
+
1917
+ end
1918
+ end