azure_mgmt_storagesync 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (352) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +20 -20
  3. data/lib/2018-04-02/generated/azure_mgmt_storagesync.rb +0 -0
  4. data/lib/2018-04-02/generated/azure_mgmt_storagesync/cloud_endpoints.rb +18 -0
  5. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +0 -0
  6. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/backup_request.rb +0 -0
  7. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +0 -0
  8. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +0 -0
  9. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +0 -0
  10. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +0 -0
  11. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +0 -0
  12. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +0 -0
  13. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_display_info.rb +0 -0
  14. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +0 -0
  15. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_entity.rb +0 -0
  16. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +0 -0
  17. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/post_backup_response.rb +0 -0
  18. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/post_restore_request.rb +0 -0
  19. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +0 -0
  20. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/proxy_resource.rb +0 -0
  21. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/reason.rb +0 -0
  22. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +0 -0
  23. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/registered_server.rb +0 -0
  24. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/registered_server_array.rb +0 -0
  25. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +0 -0
  26. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/resource.rb +0 -0
  27. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/resources_move_info.rb +0 -0
  28. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +0 -0
  29. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint.rb +0 -0
  30. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +0 -0
  31. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +0 -0
  32. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +0 -0
  33. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +0 -0
  34. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +0 -0
  35. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +0 -0
  36. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +0 -0
  37. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +0 -0
  38. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +0 -0
  39. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +0 -0
  40. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/subscription_state.rb +0 -0
  41. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/sync_group.rb +0 -0
  42. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/sync_group_array.rb +0 -0
  43. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +0 -0
  44. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/tracked_resource.rb +0 -0
  45. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/workflow.rb +0 -0
  46. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/workflow_array.rb +0 -0
  47. data/lib/2018-04-02/generated/azure_mgmt_storagesync/module_definition.rb +0 -0
  48. data/lib/2018-04-02/generated/azure_mgmt_storagesync/operations.rb +4 -0
  49. data/lib/2018-04-02/generated/azure_mgmt_storagesync/registered_servers.rb +8 -0
  50. data/lib/2018-04-02/generated/azure_mgmt_storagesync/server_endpoints.rb +12 -0
  51. data/lib/2018-04-02/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +1 -1
  52. data/lib/2018-04-02/generated/azure_mgmt_storagesync/storage_sync_services.rb +14 -0
  53. data/lib/2018-04-02/generated/azure_mgmt_storagesync/sync_groups.rb +8 -0
  54. data/lib/2018-04-02/generated/azure_mgmt_storagesync/workflows.rb +4 -0
  55. data/lib/2018-07-01/generated/azure_mgmt_storagesync.rb +0 -0
  56. data/lib/2018-07-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +18 -0
  57. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +0 -0
  58. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/backup_request.rb +0 -0
  59. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +0 -0
  60. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +0 -0
  61. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +0 -0
  62. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +0 -0
  63. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +0 -0
  64. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +0 -0
  65. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +0 -0
  66. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +0 -0
  67. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +0 -0
  68. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +0 -0
  69. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +0 -0
  70. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +0 -0
  71. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +0 -0
  72. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +0 -0
  73. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/reason.rb +0 -0
  74. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +0 -0
  75. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/registered_server.rb +0 -0
  76. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +0 -0
  77. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +0 -0
  78. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/resource.rb +0 -0
  79. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +0 -0
  80. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +0 -0
  81. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +0 -0
  82. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +0 -0
  83. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +0 -0
  84. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +0 -0
  85. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +0 -0
  86. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +0 -0
  87. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +0 -0
  88. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +0 -0
  89. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +0 -0
  90. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +0 -0
  91. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +0 -0
  92. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +0 -0
  93. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/sync_group.rb +0 -0
  94. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +0 -0
  95. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +0 -0
  96. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +0 -0
  97. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +0 -0
  98. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/workflow.rb +0 -0
  99. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +0 -0
  100. data/lib/2018-07-01/generated/azure_mgmt_storagesync/module_definition.rb +0 -0
  101. data/lib/2018-07-01/generated/azure_mgmt_storagesync/operations.rb +4 -0
  102. data/lib/2018-07-01/generated/azure_mgmt_storagesync/registered_servers.rb +10 -0
  103. data/lib/2018-07-01/generated/azure_mgmt_storagesync/server_endpoints.rb +12 -0
  104. data/lib/2018-07-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +1 -1
  105. data/lib/2018-07-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +14 -0
  106. data/lib/2018-07-01/generated/azure_mgmt_storagesync/sync_groups.rb +8 -0
  107. data/lib/2018-07-01/generated/azure_mgmt_storagesync/workflows.rb +6 -0
  108. data/lib/2018-10-01/generated/azure_mgmt_storagesync.rb +0 -0
  109. data/lib/2018-10-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +18 -0
  110. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +0 -0
  111. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/backup_request.rb +0 -0
  112. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +0 -0
  113. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +0 -0
  114. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +0 -0
  115. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +0 -0
  116. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +0 -0
  117. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +0 -0
  118. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +0 -0
  119. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +0 -0
  120. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +0 -0
  121. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +0 -0
  122. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +0 -0
  123. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +0 -0
  124. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +0 -0
  125. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +0 -0
  126. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/reason.rb +0 -0
  127. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +0 -0
  128. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/registered_server.rb +0 -0
  129. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +0 -0
  130. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +0 -0
  131. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/resource.rb +0 -0
  132. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +0 -0
  133. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +0 -0
  134. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +0 -0
  135. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +0 -0
  136. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +0 -0
  137. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_health.rb +0 -0
  138. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +0 -0
  139. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +0 -0
  140. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +0 -0
  141. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +0 -0
  142. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +0 -0
  143. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +0 -0
  144. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +0 -0
  145. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +0 -0
  146. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +0 -0
  147. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_group.rb +0 -0
  148. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +0 -0
  149. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +0 -0
  150. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_progress_status.rb +0 -0
  151. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_session_status.rb +0 -0
  152. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +0 -0
  153. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +0 -0
  154. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/workflow.rb +0 -0
  155. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +0 -0
  156. data/lib/2018-10-01/generated/azure_mgmt_storagesync/module_definition.rb +0 -0
  157. data/lib/2018-10-01/generated/azure_mgmt_storagesync/operations.rb +4 -0
  158. data/lib/2018-10-01/generated/azure_mgmt_storagesync/registered_servers.rb +10 -0
  159. data/lib/2018-10-01/generated/azure_mgmt_storagesync/server_endpoints.rb +12 -0
  160. data/lib/2018-10-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +1 -1
  161. data/lib/2018-10-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +14 -0
  162. data/lib/2018-10-01/generated/azure_mgmt_storagesync/sync_groups.rb +8 -0
  163. data/lib/2018-10-01/generated/azure_mgmt_storagesync/workflows.rb +6 -0
  164. data/lib/2019-02-01/generated/azure_mgmt_storagesync.rb +0 -0
  165. data/lib/2019-02-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +18 -0
  166. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +0 -0
  167. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/backup_request.rb +0 -0
  168. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +0 -0
  169. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +0 -0
  170. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +0 -0
  171. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +0 -0
  172. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +0 -0
  173. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/files_not_syncing_error.rb +0 -0
  174. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +0 -0
  175. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +0 -0
  176. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +0 -0
  177. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +0 -0
  178. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +0 -0
  179. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +0 -0
  180. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +0 -0
  181. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +0 -0
  182. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +0 -0
  183. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/reason.rb +0 -0
  184. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +0 -0
  185. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/registered_server.rb +0 -0
  186. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +0 -0
  187. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +0 -0
  188. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/resource.rb +0 -0
  189. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +0 -0
  190. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +0 -0
  191. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +0 -0
  192. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +0 -0
  193. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +0 -0
  194. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_sync_status.rb +0 -0
  195. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +0 -0
  196. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +0 -0
  197. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +0 -0
  198. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +0 -0
  199. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +0 -0
  200. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +0 -0
  201. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +0 -0
  202. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +0 -0
  203. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +0 -0
  204. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_activity_status.rb +0 -0
  205. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_group.rb +0 -0
  206. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +0 -0
  207. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +0 -0
  208. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_session_status.rb +0 -0
  209. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +0 -0
  210. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +0 -0
  211. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/workflow.rb +0 -0
  212. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +0 -0
  213. data/lib/2019-02-01/generated/azure_mgmt_storagesync/module_definition.rb +0 -0
  214. data/lib/2019-02-01/generated/azure_mgmt_storagesync/operations.rb +4 -0
  215. data/lib/2019-02-01/generated/azure_mgmt_storagesync/registered_servers.rb +10 -0
  216. data/lib/2019-02-01/generated/azure_mgmt_storagesync/server_endpoints.rb +12 -0
  217. data/lib/2019-02-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +1 -1
  218. data/lib/2019-02-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +14 -0
  219. data/lib/2019-02-01/generated/azure_mgmt_storagesync/sync_groups.rb +8 -0
  220. data/lib/2019-02-01/generated/azure_mgmt_storagesync/workflows.rb +6 -0
  221. data/lib/2019-03-01/generated/azure_mgmt_storagesync.rb +85 -0
  222. data/lib/2019-03-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +1507 -0
  223. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +75 -0
  224. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/backup_request.rb +46 -0
  225. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/change_detection_mode.rb +16 -0
  226. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +61 -0
  227. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +78 -0
  228. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +162 -0
  229. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +55 -0
  230. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +106 -0
  231. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/files_not_syncing_error.rb +73 -0
  232. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +16 -0
  233. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +80 -0
  234. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +79 -0
  235. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +69 -0
  236. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +98 -0
  237. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/operation_status.rb +96 -0
  238. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +47 -0
  239. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +132 -0
  240. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +144 -0
  241. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +63 -0
  242. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/reason.rb +19 -0
  243. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +57 -0
  244. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/registered_server.rb +271 -0
  245. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +55 -0
  246. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +161 -0
  247. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/resource.rb +83 -0
  248. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +65 -0
  249. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +58 -0
  250. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +233 -0
  251. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +55 -0
  252. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +160 -0
  253. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/server_endpoint_sync_status.rb +180 -0
  254. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +100 -0
  255. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +80 -0
  256. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +59 -0
  257. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +68 -0
  258. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +110 -0
  259. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +55 -0
  260. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +85 -0
  261. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +66 -0
  262. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +70 -0
  263. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/sync_activity_status.rb +107 -0
  264. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/sync_group.rb +85 -0
  265. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +55 -0
  266. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +73 -0
  267. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/sync_session_status.rb +131 -0
  268. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +92 -0
  269. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/trigger_change_detection_parameters.rb +81 -0
  270. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +46 -0
  271. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/workflow.rb +119 -0
  272. data/lib/2019-03-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +55 -0
  273. data/lib/2019-03-01/generated/azure_mgmt_storagesync/module_definition.rb +9 -0
  274. data/lib/2019-03-01/generated/azure_mgmt_storagesync/operation_status_operations.rb +135 -0
  275. data/lib/2019-03-01/generated/azure_mgmt_storagesync/operations.rb +220 -0
  276. data/lib/2019-03-01/generated/azure_mgmt_storagesync/registered_servers.rb +711 -0
  277. data/lib/2019-03-01/generated/azure_mgmt_storagesync/server_endpoints.rb +917 -0
  278. data/lib/2019-03-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +159 -0
  279. data/lib/2019-03-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +753 -0
  280. data/lib/2019-03-01/generated/azure_mgmt_storagesync/sync_groups.rb +457 -0
  281. data/lib/2019-03-01/generated/azure_mgmt_storagesync/workflows.rb +337 -0
  282. data/lib/2019-06-01/generated/azure_mgmt_storagesync.rb +88 -0
  283. data/lib/2019-06-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +1507 -0
  284. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +75 -0
  285. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/backup_request.rb +46 -0
  286. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/change_detection_mode.rb +16 -0
  287. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +61 -0
  288. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +78 -0
  289. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +162 -0
  290. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +55 -0
  291. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +106 -0
  292. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +16 -0
  293. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +80 -0
  294. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +79 -0
  295. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +69 -0
  296. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +98 -0
  297. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/operation_status.rb +96 -0
  298. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +47 -0
  299. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +132 -0
  300. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +144 -0
  301. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +63 -0
  302. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/reason.rb +19 -0
  303. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +57 -0
  304. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/registered_server.rb +271 -0
  305. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +55 -0
  306. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +161 -0
  307. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/resource.rb +83 -0
  308. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +65 -0
  309. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +57 -0
  310. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +261 -0
  311. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +55 -0
  312. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint_cloud_tiering_status.rb +84 -0
  313. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +160 -0
  314. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint_files_not_syncing_error.rb +79 -0
  315. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint_recall_error.rb +62 -0
  316. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint_recall_status.rb +83 -0
  317. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint_sync_activity_status.rb +122 -0
  318. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint_sync_session_status.rb +138 -0
  319. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint_sync_status.rb +183 -0
  320. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +100 -0
  321. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +80 -0
  322. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +59 -0
  323. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +68 -0
  324. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +110 -0
  325. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +55 -0
  326. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +85 -0
  327. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +66 -0
  328. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +70 -0
  329. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/sync_group.rb +86 -0
  330. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +55 -0
  331. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +73 -0
  332. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +92 -0
  333. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/trigger_change_detection_parameters.rb +81 -0
  334. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +46 -0
  335. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/workflow.rb +119 -0
  336. data/lib/2019-06-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +55 -0
  337. data/lib/2019-06-01/generated/azure_mgmt_storagesync/module_definition.rb +9 -0
  338. data/lib/2019-06-01/generated/azure_mgmt_storagesync/operation_status_operations.rb +135 -0
  339. data/lib/2019-06-01/generated/azure_mgmt_storagesync/operations.rb +220 -0
  340. data/lib/2019-06-01/generated/azure_mgmt_storagesync/registered_servers.rb +711 -0
  341. data/lib/2019-06-01/generated/azure_mgmt_storagesync/server_endpoints.rb +917 -0
  342. data/lib/2019-06-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +159 -0
  343. data/lib/2019-06-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +753 -0
  344. data/lib/2019-06-01/generated/azure_mgmt_storagesync/sync_groups.rb +457 -0
  345. data/lib/2019-06-01/generated/azure_mgmt_storagesync/workflows.rb +337 -0
  346. data/lib/azure_mgmt_storagesync.rb +3 -1
  347. data/lib/module_definition.rb +7 -7
  348. data/lib/profiles/latest/modules/storagesync_profile_module.rb +144 -118
  349. data/lib/profiles/latest/storagesync_latest_profile_client.rb +40 -40
  350. data/lib/profiles/latest/storagesync_module_definition.rb +8 -8
  351. data/lib/version.rb +1 -1
  352. metadata +130 -6
@@ -0,0 +1,159 @@
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::StorageSync::Mgmt::V2019_06_01
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class StorageSyncManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] The API version to use for this operation.
21
+ attr_reader :api_version
22
+
23
+ # @return [String] The ID of the target subscription.
24
+ attr_accessor :subscription_id
25
+
26
+ # @return [String] The preferred language for the response.
27
+ attr_accessor :accept_language
28
+
29
+ # @return [Integer] The retry timeout in seconds for Long Running
30
+ # Operations. Default value is 30.
31
+ attr_accessor :long_running_operation_retry_timeout
32
+
33
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
34
+ # generated. When set to true a unique x-ms-client-request-id value is
35
+ # generated and included in each request. Default is true.
36
+ attr_accessor :generate_client_request_id
37
+
38
+ # @return [Operations] operations
39
+ attr_reader :operations
40
+
41
+ # @return [StorageSyncServices] storage_sync_services
42
+ attr_reader :storage_sync_services
43
+
44
+ # @return [SyncGroups] sync_groups
45
+ attr_reader :sync_groups
46
+
47
+ # @return [CloudEndpoints] cloud_endpoints
48
+ attr_reader :cloud_endpoints
49
+
50
+ # @return [ServerEndpoints] server_endpoints
51
+ attr_reader :server_endpoints
52
+
53
+ # @return [RegisteredServers] registered_servers
54
+ attr_reader :registered_servers
55
+
56
+ # @return [Workflows] workflows
57
+ attr_reader :workflows
58
+
59
+ # @return [OperationStatusOperations] operation_status_operations
60
+ attr_reader :operation_status_operations
61
+
62
+ #
63
+ # Creates initializes a new instance of the StorageSyncManagementClient class.
64
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
65
+ # @param base_url [String] the base URI of the service.
66
+ # @param options [Array] filters to be applied to the HTTP requests.
67
+ #
68
+ def initialize(credentials = nil, base_url = nil, options = nil)
69
+ super(credentials, options)
70
+ @base_url = base_url || 'https://management.azure.com'
71
+
72
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
73
+ @credentials = credentials
74
+
75
+ @operations = Operations.new(self)
76
+ @storage_sync_services = StorageSyncServices.new(self)
77
+ @sync_groups = SyncGroups.new(self)
78
+ @cloud_endpoints = CloudEndpoints.new(self)
79
+ @server_endpoints = ServerEndpoints.new(self)
80
+ @registered_servers = RegisteredServers.new(self)
81
+ @workflows = Workflows.new(self)
82
+ @operation_status_operations = OperationStatusOperations.new(self)
83
+ @api_version = '2019-06-01'
84
+ @accept_language = 'en-US'
85
+ @long_running_operation_retry_timeout = 30
86
+ @generate_client_request_id = true
87
+ add_telemetry
88
+ end
89
+
90
+ #
91
+ # Makes a request and returns the body of the response.
92
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
93
+ # @param path [String] the path, relative to {base_url}.
94
+ # @param options [Hash{String=>String}] specifying any request options like :body.
95
+ # @return [Hash{String=>String}] containing the body of the response.
96
+ # Example:
97
+ #
98
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
99
+ # path = "/path"
100
+ # options = {
101
+ # body: request_content,
102
+ # query_params: {'api-version' => '2016-02-01'}
103
+ # }
104
+ # result = @client.make_request(:put, path, options)
105
+ #
106
+ def make_request(method, path, options = {})
107
+ result = make_request_with_http_info(method, path, options)
108
+ result.body unless result.nil?
109
+ end
110
+
111
+ #
112
+ # Makes a request and returns the operation response.
113
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
114
+ # @param path [String] the path, relative to {base_url}.
115
+ # @param options [Hash{String=>String}] specifying any request options like :body.
116
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
117
+ #
118
+ def make_request_with_http_info(method, path, options = {})
119
+ result = make_request_async(method, path, options).value!
120
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
121
+ result
122
+ end
123
+
124
+ #
125
+ # Makes a request asynchronously.
126
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
127
+ # @param path [String] the path, relative to {base_url}.
128
+ # @param options [Hash{String=>String}] specifying any request options like :body.
129
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
130
+ #
131
+ def make_request_async(method, path, options = {})
132
+ fail ArgumentError, 'method is nil' if method.nil?
133
+ fail ArgumentError, 'path is nil' if path.nil?
134
+
135
+ request_url = options[:base_url] || @base_url
136
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
137
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
138
+ end
139
+
140
+ request_headers = @request_headers
141
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
142
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
143
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
144
+
145
+ super(request_url, method, path, options)
146
+ end
147
+
148
+
149
+ private
150
+ #
151
+ # Adds telemetry information.
152
+ #
153
+ def add_telemetry
154
+ sdk_information = 'azure_mgmt_storagesync'
155
+ sdk_information = "#{sdk_information}/0.18.0"
156
+ add_user_agent_information(sdk_information)
157
+ end
158
+ end
159
+ end
@@ -0,0 +1,753 @@
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::StorageSync::Mgmt::V2019_06_01
7
+ #
8
+ # Microsoft Storage Sync Service API
9
+ #
10
+ class StorageSyncServices
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the StorageSyncServices class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [StorageSyncManagementClient] reference to the StorageSyncManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Check the give namespace name availability.
26
+ #
27
+ # @param location_name [String] The desired region for the name check.
28
+ # @param parameters [CheckNameAvailabilityParameters] Parameters to check
29
+ # availability of the given namespace name
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [CheckNameAvailabilityResult] operation results.
34
+ #
35
+ def check_name_availability(location_name, parameters, custom_headers:nil)
36
+ response = check_name_availability_async(location_name, parameters, custom_headers:custom_headers).value!
37
+ response.body unless response.nil?
38
+ end
39
+
40
+ #
41
+ # Check the give namespace name availability.
42
+ #
43
+ # @param location_name [String] The desired region for the name check.
44
+ # @param parameters [CheckNameAvailabilityParameters] Parameters to check
45
+ # availability of the given namespace name
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
+ #
51
+ def check_name_availability_with_http_info(location_name, parameters, custom_headers:nil)
52
+ check_name_availability_async(location_name, parameters, custom_headers:custom_headers).value!
53
+ end
54
+
55
+ #
56
+ # Check the give namespace name availability.
57
+ #
58
+ # @param location_name [String] The desired region for the name check.
59
+ # @param parameters [CheckNameAvailabilityParameters] Parameters to check
60
+ # availability of the given namespace name
61
+ # @param [Hash{String => String}] A hash of custom headers that will be added
62
+ # to the HTTP request.
63
+ #
64
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
+ #
66
+ def check_name_availability_async(location_name, parameters, custom_headers:nil)
67
+ fail ArgumentError, 'location_name is nil' if location_name.nil?
68
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
69
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
70
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
72
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
73
+
74
+
75
+ request_headers = {}
76
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
77
+
78
+ # Set Headers
79
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
80
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
81
+
82
+ # Serialize Request
83
+ request_mapper = Azure::StorageSync::Mgmt::V2019_06_01::Models::CheckNameAvailabilityParameters.mapper()
84
+ request_content = @client.serialize(request_mapper, parameters)
85
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
86
+
87
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/checkNameAvailability'
88
+
89
+ request_url = @base_url || @client.base_url
90
+
91
+ options = {
92
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
93
+ path_params: {'locationName' => location_name,'subscriptionId' => @client.subscription_id},
94
+ query_params: {'api-version' => @client.api_version},
95
+ body: request_content,
96
+ headers: request_headers.merge(custom_headers || {}),
97
+ base_url: request_url
98
+ }
99
+ promise = @client.make_request_async(:post, path_template, options)
100
+
101
+ promise = promise.then do |result|
102
+ http_response = result.response
103
+ status_code = http_response.status
104
+ response_content = http_response.body
105
+ unless status_code == 200
106
+ error_model = JSON.load(response_content)
107
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
108
+ end
109
+
110
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
111
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
112
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
113
+ # Deserialize Response
114
+ if status_code == 200
115
+ begin
116
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
117
+ result_mapper = Azure::StorageSync::Mgmt::V2019_06_01::Models::CheckNameAvailabilityResult.mapper()
118
+ result.body = @client.deserialize(result_mapper, parsed_response)
119
+ rescue Exception => e
120
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
121
+ end
122
+ end
123
+
124
+ result
125
+ end
126
+
127
+ promise.execute
128
+ end
129
+
130
+ #
131
+ # Create a new StorageSyncService.
132
+ #
133
+ # @param resource_group_name [String] The name of the resource group. The name
134
+ # is case insensitive.
135
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
136
+ # resource.
137
+ # @param parameters [StorageSyncServiceCreateParameters] Storage Sync Service
138
+ # resource name.
139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
140
+ # will be added to the HTTP request.
141
+ #
142
+ # @return [StorageSyncService] operation results.
143
+ #
144
+ def create(resource_group_name, storage_sync_service_name, parameters, custom_headers:nil)
145
+ response = create_async(resource_group_name, storage_sync_service_name, parameters, custom_headers:custom_headers).value!
146
+ response.body unless response.nil?
147
+ end
148
+
149
+ #
150
+ # Create a new StorageSyncService.
151
+ #
152
+ # @param resource_group_name [String] The name of the resource group. The name
153
+ # is case insensitive.
154
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
155
+ # resource.
156
+ # @param parameters [StorageSyncServiceCreateParameters] Storage Sync Service
157
+ # resource name.
158
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
159
+ # will be added to the HTTP request.
160
+ #
161
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
162
+ #
163
+ def create_with_http_info(resource_group_name, storage_sync_service_name, parameters, custom_headers:nil)
164
+ create_async(resource_group_name, storage_sync_service_name, parameters, custom_headers:custom_headers).value!
165
+ end
166
+
167
+ #
168
+ # Create a new StorageSyncService.
169
+ #
170
+ # @param resource_group_name [String] The name of the resource group. The name
171
+ # is case insensitive.
172
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
173
+ # resource.
174
+ # @param parameters [StorageSyncServiceCreateParameters] Storage Sync Service
175
+ # resource name.
176
+ # @param [Hash{String => String}] A hash of custom headers that will be added
177
+ # to the HTTP request.
178
+ #
179
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
180
+ #
181
+ def create_async(resource_group_name, storage_sync_service_name, parameters, custom_headers:nil)
182
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
183
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
184
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
185
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
186
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
187
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
188
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
189
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
190
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
191
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
192
+
193
+
194
+ request_headers = {}
195
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
196
+
197
+ # Set Headers
198
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
199
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
200
+
201
+ # Serialize Request
202
+ request_mapper = Azure::StorageSync::Mgmt::V2019_06_01::Models::StorageSyncServiceCreateParameters.mapper()
203
+ request_content = @client.serialize(request_mapper, parameters)
204
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
205
+
206
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}'
207
+
208
+ request_url = @base_url || @client.base_url
209
+
210
+ options = {
211
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
212
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name},
213
+ query_params: {'api-version' => @client.api_version},
214
+ body: request_content,
215
+ headers: request_headers.merge(custom_headers || {}),
216
+ base_url: request_url
217
+ }
218
+ promise = @client.make_request_async(:put, path_template, options)
219
+
220
+ promise = promise.then do |result|
221
+ http_response = result.response
222
+ status_code = http_response.status
223
+ response_content = http_response.body
224
+ unless status_code == 200
225
+ error_model = JSON.load(response_content)
226
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
227
+ end
228
+
229
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
230
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
231
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
232
+ # Deserialize Response
233
+ if status_code == 200
234
+ begin
235
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
236
+ result_mapper = Azure::StorageSync::Mgmt::V2019_06_01::Models::StorageSyncService.mapper()
237
+ result.body = @client.deserialize(result_mapper, parsed_response)
238
+ rescue Exception => e
239
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
240
+ end
241
+ end
242
+
243
+ result
244
+ end
245
+
246
+ promise.execute
247
+ end
248
+
249
+ #
250
+ # Get a given StorageSyncService.
251
+ #
252
+ # @param resource_group_name [String] The name of the resource group. The name
253
+ # is case insensitive.
254
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
255
+ # resource.
256
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
257
+ # will be added to the HTTP request.
258
+ #
259
+ # @return [StorageSyncService] operation results.
260
+ #
261
+ def get(resource_group_name, storage_sync_service_name, custom_headers:nil)
262
+ response = get_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
263
+ response.body unless response.nil?
264
+ end
265
+
266
+ #
267
+ # Get a given StorageSyncService.
268
+ #
269
+ # @param resource_group_name [String] The name of the resource group. The name
270
+ # is case insensitive.
271
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
272
+ # resource.
273
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
274
+ # will be added to the HTTP request.
275
+ #
276
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
277
+ #
278
+ def get_with_http_info(resource_group_name, storage_sync_service_name, custom_headers:nil)
279
+ get_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
280
+ end
281
+
282
+ #
283
+ # Get a given StorageSyncService.
284
+ #
285
+ # @param resource_group_name [String] The name of the resource group. The name
286
+ # is case insensitive.
287
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
288
+ # resource.
289
+ # @param [Hash{String => String}] A hash of custom headers that will be added
290
+ # to the HTTP request.
291
+ #
292
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
293
+ #
294
+ def get_async(resource_group_name, storage_sync_service_name, custom_headers:nil)
295
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
296
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
297
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
298
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
299
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
300
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
301
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
302
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
303
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
304
+
305
+
306
+ request_headers = {}
307
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
308
+
309
+ # Set Headers
310
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
311
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
312
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}'
313
+
314
+ request_url = @base_url || @client.base_url
315
+
316
+ options = {
317
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
318
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name},
319
+ query_params: {'api-version' => @client.api_version},
320
+ headers: request_headers.merge(custom_headers || {}),
321
+ base_url: request_url
322
+ }
323
+ promise = @client.make_request_async(:get, path_template, options)
324
+
325
+ promise = promise.then do |result|
326
+ http_response = result.response
327
+ status_code = http_response.status
328
+ response_content = http_response.body
329
+ unless status_code == 200
330
+ error_model = JSON.load(response_content)
331
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
332
+ end
333
+
334
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
335
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
336
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
337
+ # Deserialize Response
338
+ if status_code == 200
339
+ begin
340
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
341
+ result_mapper = Azure::StorageSync::Mgmt::V2019_06_01::Models::StorageSyncService.mapper()
342
+ result.body = @client.deserialize(result_mapper, parsed_response)
343
+ rescue Exception => e
344
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
345
+ end
346
+ end
347
+
348
+ result
349
+ end
350
+
351
+ promise.execute
352
+ end
353
+
354
+ #
355
+ # Patch a given StorageSyncService.
356
+ #
357
+ # @param resource_group_name [String] The name of the resource group. The name
358
+ # is case insensitive.
359
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
360
+ # resource.
361
+ # @param parameters [StorageSyncServiceUpdateParameters] Storage Sync Service
362
+ # resource.
363
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
364
+ # will be added to the HTTP request.
365
+ #
366
+ # @return [StorageSyncService] operation results.
367
+ #
368
+ def update(resource_group_name, storage_sync_service_name, parameters:nil, custom_headers:nil)
369
+ response = update_async(resource_group_name, storage_sync_service_name, parameters:parameters, custom_headers:custom_headers).value!
370
+ response.body unless response.nil?
371
+ end
372
+
373
+ #
374
+ # Patch a given StorageSyncService.
375
+ #
376
+ # @param resource_group_name [String] The name of the resource group. The name
377
+ # is case insensitive.
378
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
379
+ # resource.
380
+ # @param parameters [StorageSyncServiceUpdateParameters] Storage Sync Service
381
+ # resource.
382
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
383
+ # will be added to the HTTP request.
384
+ #
385
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
386
+ #
387
+ def update_with_http_info(resource_group_name, storage_sync_service_name, parameters:nil, custom_headers:nil)
388
+ update_async(resource_group_name, storage_sync_service_name, parameters:parameters, custom_headers:custom_headers).value!
389
+ end
390
+
391
+ #
392
+ # Patch a given StorageSyncService.
393
+ #
394
+ # @param resource_group_name [String] The name of the resource group. The name
395
+ # is case insensitive.
396
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
397
+ # resource.
398
+ # @param parameters [StorageSyncServiceUpdateParameters] Storage Sync Service
399
+ # resource.
400
+ # @param [Hash{String => String}] A hash of custom headers that will be added
401
+ # to the HTTP request.
402
+ #
403
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
404
+ #
405
+ def update_async(resource_group_name, storage_sync_service_name, parameters:nil, custom_headers:nil)
406
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
407
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
408
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
409
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
410
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
411
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
412
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
413
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
414
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
415
+
416
+
417
+ request_headers = {}
418
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
419
+
420
+ # Set Headers
421
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
422
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
423
+
424
+ # Serialize Request
425
+ request_mapper = Azure::StorageSync::Mgmt::V2019_06_01::Models::StorageSyncServiceUpdateParameters.mapper()
426
+ request_content = @client.serialize(request_mapper, parameters)
427
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
428
+
429
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}'
430
+
431
+ request_url = @base_url || @client.base_url
432
+
433
+ options = {
434
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
435
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name},
436
+ query_params: {'api-version' => @client.api_version},
437
+ body: request_content,
438
+ headers: request_headers.merge(custom_headers || {}),
439
+ base_url: request_url
440
+ }
441
+ promise = @client.make_request_async(:patch, path_template, options)
442
+
443
+ promise = promise.then do |result|
444
+ http_response = result.response
445
+ status_code = http_response.status
446
+ response_content = http_response.body
447
+ unless status_code == 200
448
+ error_model = JSON.load(response_content)
449
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
450
+ end
451
+
452
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
453
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
454
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
455
+ # Deserialize Response
456
+ if status_code == 200
457
+ begin
458
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
459
+ result_mapper = Azure::StorageSync::Mgmt::V2019_06_01::Models::StorageSyncService.mapper()
460
+ result.body = @client.deserialize(result_mapper, parsed_response)
461
+ rescue Exception => e
462
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
463
+ end
464
+ end
465
+
466
+ result
467
+ end
468
+
469
+ promise.execute
470
+ end
471
+
472
+ #
473
+ # Delete a given StorageSyncService.
474
+ #
475
+ # @param resource_group_name [String] The name of the resource group. The name
476
+ # is case insensitive.
477
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
478
+ # resource.
479
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
480
+ # will be added to the HTTP request.
481
+ #
482
+ #
483
+ def delete(resource_group_name, storage_sync_service_name, custom_headers:nil)
484
+ response = delete_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
485
+ nil
486
+ end
487
+
488
+ #
489
+ # Delete a given StorageSyncService.
490
+ #
491
+ # @param resource_group_name [String] The name of the resource group. The name
492
+ # is case insensitive.
493
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
494
+ # resource.
495
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
496
+ # will be added to the HTTP request.
497
+ #
498
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
499
+ #
500
+ def delete_with_http_info(resource_group_name, storage_sync_service_name, custom_headers:nil)
501
+ delete_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
502
+ end
503
+
504
+ #
505
+ # Delete a given StorageSyncService.
506
+ #
507
+ # @param resource_group_name [String] The name of the resource group. The name
508
+ # is case insensitive.
509
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
510
+ # resource.
511
+ # @param [Hash{String => String}] A hash of custom headers that will be added
512
+ # to the HTTP request.
513
+ #
514
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
515
+ #
516
+ def delete_async(resource_group_name, storage_sync_service_name, custom_headers:nil)
517
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
518
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
519
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
520
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
521
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
522
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
523
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
524
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
525
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
526
+
527
+
528
+ request_headers = {}
529
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
530
+
531
+ # Set Headers
532
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
533
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
534
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}'
535
+
536
+ request_url = @base_url || @client.base_url
537
+
538
+ options = {
539
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
540
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name},
541
+ query_params: {'api-version' => @client.api_version},
542
+ headers: request_headers.merge(custom_headers || {}),
543
+ base_url: request_url
544
+ }
545
+ promise = @client.make_request_async(:delete, path_template, options)
546
+
547
+ promise = promise.then do |result|
548
+ http_response = result.response
549
+ status_code = http_response.status
550
+ response_content = http_response.body
551
+ unless status_code == 200 || status_code == 204
552
+ error_model = JSON.load(response_content)
553
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
554
+ end
555
+
556
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
557
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
558
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
559
+
560
+ result
561
+ end
562
+
563
+ promise.execute
564
+ end
565
+
566
+ #
567
+ # Get a StorageSyncService list by Resource group name.
568
+ #
569
+ # @param resource_group_name [String] The name of the resource group. The name
570
+ # is case insensitive.
571
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
572
+ # will be added to the HTTP request.
573
+ #
574
+ # @return [StorageSyncServiceArray] operation results.
575
+ #
576
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
577
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
578
+ response.body unless response.nil?
579
+ end
580
+
581
+ #
582
+ # Get a StorageSyncService list by Resource group name.
583
+ #
584
+ # @param resource_group_name [String] The name of the resource group. The name
585
+ # is case insensitive.
586
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
587
+ # will be added to the HTTP request.
588
+ #
589
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
590
+ #
591
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
592
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
593
+ end
594
+
595
+ #
596
+ # Get a StorageSyncService list by Resource group name.
597
+ #
598
+ # @param resource_group_name [String] The name of the resource group. The name
599
+ # is case insensitive.
600
+ # @param [Hash{String => String}] A hash of custom headers that will be added
601
+ # to the HTTP request.
602
+ #
603
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
604
+ #
605
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
606
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
607
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
608
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
609
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
610
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
611
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
612
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
613
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
614
+
615
+
616
+ request_headers = {}
617
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
618
+
619
+ # Set Headers
620
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
621
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
622
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices'
623
+
624
+ request_url = @base_url || @client.base_url
625
+
626
+ options = {
627
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
628
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
629
+ query_params: {'api-version' => @client.api_version},
630
+ headers: request_headers.merge(custom_headers || {}),
631
+ base_url: request_url
632
+ }
633
+ promise = @client.make_request_async(:get, path_template, options)
634
+
635
+ promise = promise.then do |result|
636
+ http_response = result.response
637
+ status_code = http_response.status
638
+ response_content = http_response.body
639
+ unless status_code == 200
640
+ error_model = JSON.load(response_content)
641
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
642
+ end
643
+
644
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
645
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
646
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
647
+ # Deserialize Response
648
+ if status_code == 200
649
+ begin
650
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
651
+ result_mapper = Azure::StorageSync::Mgmt::V2019_06_01::Models::StorageSyncServiceArray.mapper()
652
+ result.body = @client.deserialize(result_mapper, parsed_response)
653
+ rescue Exception => e
654
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
655
+ end
656
+ end
657
+
658
+ result
659
+ end
660
+
661
+ promise.execute
662
+ end
663
+
664
+ #
665
+ # Get a StorageSyncService list by subscription.
666
+ #
667
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
668
+ # will be added to the HTTP request.
669
+ #
670
+ # @return [StorageSyncServiceArray] operation results.
671
+ #
672
+ def list_by_subscription(custom_headers:nil)
673
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
674
+ response.body unless response.nil?
675
+ end
676
+
677
+ #
678
+ # Get a StorageSyncService list by subscription.
679
+ #
680
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
681
+ # will be added to the HTTP request.
682
+ #
683
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
684
+ #
685
+ def list_by_subscription_with_http_info(custom_headers:nil)
686
+ list_by_subscription_async(custom_headers:custom_headers).value!
687
+ end
688
+
689
+ #
690
+ # Get a StorageSyncService list by subscription.
691
+ #
692
+ # @param [Hash{String => String}] A hash of custom headers that will be added
693
+ # to the HTTP request.
694
+ #
695
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
696
+ #
697
+ def list_by_subscription_async(custom_headers:nil)
698
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
699
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
700
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
701
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
702
+
703
+
704
+ request_headers = {}
705
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
706
+
707
+ # Set Headers
708
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
709
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
710
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices'
711
+
712
+ request_url = @base_url || @client.base_url
713
+
714
+ options = {
715
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
716
+ path_params: {'subscriptionId' => @client.subscription_id},
717
+ query_params: {'api-version' => @client.api_version},
718
+ headers: request_headers.merge(custom_headers || {}),
719
+ base_url: request_url
720
+ }
721
+ promise = @client.make_request_async(:get, path_template, options)
722
+
723
+ promise = promise.then do |result|
724
+ http_response = result.response
725
+ status_code = http_response.status
726
+ response_content = http_response.body
727
+ unless status_code == 200
728
+ error_model = JSON.load(response_content)
729
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
730
+ end
731
+
732
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
733
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
734
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
735
+ # Deserialize Response
736
+ if status_code == 200
737
+ begin
738
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
739
+ result_mapper = Azure::StorageSync::Mgmt::V2019_06_01::Models::StorageSyncServiceArray.mapper()
740
+ result.body = @client.deserialize(result_mapper, parsed_response)
741
+ rescue Exception => e
742
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
743
+ end
744
+ end
745
+
746
+ result
747
+ end
748
+
749
+ promise.execute
750
+ end
751
+
752
+ end
753
+ end