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
@@ -87,6 +87,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
87
87
  end
88
88
 
89
89
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
90
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
91
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
90
92
  # Deserialize Response
91
93
  if status_code == 200
92
94
  begin
@@ -175,6 +177,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
175
177
  end
176
178
 
177
179
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
180
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
181
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
178
182
  # Deserialize Response
179
183
  if status_code == 200
180
184
  begin
@@ -107,6 +107,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
107
107
  end
108
108
 
109
109
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
110
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
111
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
110
112
  # Deserialize Response
111
113
  if status_code == 200
112
114
  begin
@@ -214,6 +216,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
214
216
  end
215
217
 
216
218
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
219
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
220
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
217
221
  # Deserialize Response
218
222
  if status_code == 200
219
223
  begin
@@ -477,6 +481,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
477
481
  end
478
482
 
479
483
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
484
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
485
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
480
486
  # Deserialize Response
481
487
  if status_code == 200
482
488
  begin
@@ -583,6 +589,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
583
589
  end
584
590
 
585
591
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
592
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
593
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
586
594
 
587
595
  result
588
596
  end
@@ -690,6 +698,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
690
698
  end
691
699
 
692
700
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
701
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
702
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
693
703
 
694
704
  result
695
705
  end
@@ -223,6 +223,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
223
223
  end
224
224
 
225
225
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
226
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
227
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
226
228
  # Deserialize Response
227
229
  if status_code == 200
228
230
  begin
@@ -376,6 +378,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
376
378
  end
377
379
 
378
380
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
381
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
382
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
379
383
  # Deserialize Response
380
384
  if status_code == 200
381
385
  begin
@@ -549,6 +553,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
549
553
  end
550
554
 
551
555
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
556
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
557
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
552
558
  # Deserialize Response
553
559
  if status_code == 200
554
560
  begin
@@ -673,6 +679,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
673
679
  end
674
680
 
675
681
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
682
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
683
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
676
684
  # Deserialize Response
677
685
  if status_code == 200
678
686
  begin
@@ -783,6 +791,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
783
791
  end
784
792
 
785
793
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
794
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
795
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
786
796
 
787
797
  result
788
798
  end
@@ -894,6 +904,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
894
904
  end
895
905
 
896
906
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
907
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
908
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
897
909
 
898
910
  result
899
911
  end
@@ -148,7 +148,7 @@ module Azure::StorageSync::Mgmt::V2019_02_01
148
148
  #
149
149
  def add_telemetry
150
150
  sdk_information = 'azure_mgmt_storagesync'
151
- sdk_information = "#{sdk_information}/0.17.0"
151
+ sdk_information = "#{sdk_information}/0.18.0"
152
152
  add_user_agent_information(sdk_information)
153
153
  end
154
154
  end
@@ -108,6 +108,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
108
108
  end
109
109
 
110
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?
111
113
  # Deserialize Response
112
114
  if status_code == 200
113
115
  begin
@@ -225,6 +227,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
225
227
  end
226
228
 
227
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?
228
232
  # Deserialize Response
229
233
  if status_code == 200
230
234
  begin
@@ -328,6 +332,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
328
332
  end
329
333
 
330
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?
331
337
  # Deserialize Response
332
338
  if status_code == 200
333
339
  begin
@@ -444,6 +450,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
444
450
  end
445
451
 
446
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?
447
455
  # Deserialize Response
448
456
  if status_code == 200
449
457
  begin
@@ -546,6 +554,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
546
554
  end
547
555
 
548
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?
549
559
 
550
560
  result
551
561
  end
@@ -632,6 +642,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
632
642
  end
633
643
 
634
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?
635
647
  # Deserialize Response
636
648
  if status_code == 200
637
649
  begin
@@ -718,6 +730,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
718
730
  end
719
731
 
720
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?
721
735
  # Deserialize Response
722
736
  if status_code == 200
723
737
  begin
@@ -107,6 +107,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
107
107
  end
108
108
 
109
109
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
110
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
111
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
110
112
  # Deserialize Response
111
113
  if status_code == 200
112
114
  begin
@@ -225,6 +227,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
225
227
  end
226
228
 
227
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?
228
232
  # Deserialize Response
229
233
  if status_code == 200
230
234
  begin
@@ -332,6 +336,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
332
336
  end
333
337
 
334
338
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
339
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
340
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
335
341
  # Deserialize Response
336
342
  if status_code == 200
337
343
  begin
@@ -438,6 +444,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
438
444
  end
439
445
 
440
446
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
447
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
448
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
441
449
 
442
450
  result
443
451
  end
@@ -107,6 +107,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
107
107
  end
108
108
 
109
109
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
110
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
111
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
110
112
  # Deserialize Response
111
113
  if status_code == 200
112
114
  begin
@@ -214,6 +216,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
214
216
  end
215
217
 
216
218
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
219
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
220
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
217
221
  # Deserialize Response
218
222
  if status_code == 200
219
223
  begin
@@ -320,6 +324,8 @@ module Azure::StorageSync::Mgmt::V2019_02_01
320
324
  end
321
325
 
322
326
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
327
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
328
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
323
329
 
324
330
  result
325
331
  end
@@ -0,0 +1,85 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2019-03-01/generated/azure_mgmt_storagesync/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::StorageSync::Mgmt::V2019_03_01
23
+ autoload :Operations, '2019-03-01/generated/azure_mgmt_storagesync/operations.rb'
24
+ autoload :StorageSyncServices, '2019-03-01/generated/azure_mgmt_storagesync/storage_sync_services.rb'
25
+ autoload :SyncGroups, '2019-03-01/generated/azure_mgmt_storagesync/sync_groups.rb'
26
+ autoload :CloudEndpoints, '2019-03-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb'
27
+ autoload :ServerEndpoints, '2019-03-01/generated/azure_mgmt_storagesync/server_endpoints.rb'
28
+ autoload :RegisteredServers, '2019-03-01/generated/azure_mgmt_storagesync/registered_servers.rb'
29
+ autoload :Workflows, '2019-03-01/generated/azure_mgmt_storagesync/workflows.rb'
30
+ autoload :OperationStatusOperations, '2019-03-01/generated/azure_mgmt_storagesync/operation_status_operations.rb'
31
+ autoload :StorageSyncManagementClient, '2019-03-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb'
32
+
33
+ module Models
34
+ autoload :ResourcesMoveInfo, '2019-03-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb'
35
+ autoload :StorageSyncErrorDetails, '2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb'
36
+ autoload :StorageSyncError, '2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb'
37
+ autoload :OperationDisplayInfo, '2019-03-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb'
38
+ autoload :ServerEndpointSyncStatus, '2019-03-01/generated/azure_mgmt_storagesync/models/server_endpoint_sync_status.rb'
39
+ autoload :CloudEndpointArray, '2019-03-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb'
40
+ autoload :OperationStatus, '2019-03-01/generated/azure_mgmt_storagesync/models/operation_status.rb'
41
+ autoload :SyncGroupArray, '2019-03-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb'
42
+ autoload :RecallActionParameters, '2019-03-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb'
43
+ autoload :StorageSyncApiError, '2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb'
44
+ autoload :StorageSyncServiceUpdateParameters, '2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb'
45
+ autoload :SubscriptionState, '2019-03-01/generated/azure_mgmt_storagesync/models/subscription_state.rb'
46
+ autoload :RegisteredServerArray, '2019-03-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb'
47
+ autoload :StorageSyncServiceArray, '2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb'
48
+ autoload :ServerEndpointArray, '2019-03-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb'
49
+ autoload :OperationEntity, '2019-03-01/generated/azure_mgmt_storagesync/models/operation_entity.rb'
50
+ autoload :FilesNotSyncingError, '2019-03-01/generated/azure_mgmt_storagesync/models/files_not_syncing_error.rb'
51
+ autoload :OperationEntityListResult, '2019-03-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb'
52
+ autoload :SyncActivityStatus, '2019-03-01/generated/azure_mgmt_storagesync/models/sync_activity_status.rb'
53
+ autoload :OperationDisplayResource, '2019-03-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb'
54
+ autoload :TriggerChangeDetectionParameters, '2019-03-01/generated/azure_mgmt_storagesync/models/trigger_change_detection_parameters.rb'
55
+ autoload :CheckNameAvailabilityParameters, '2019-03-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb'
56
+ autoload :WorkflowArray, '2019-03-01/generated/azure_mgmt_storagesync/models/workflow_array.rb'
57
+ autoload :CheckNameAvailabilityResult, '2019-03-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb'
58
+ autoload :ServerEndpointUpdateParameters, '2019-03-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb'
59
+ autoload :RestoreFileSpec, '2019-03-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb'
60
+ autoload :Resource, '2019-03-01/generated/azure_mgmt_storagesync/models/resource.rb'
61
+ autoload :PostRestoreRequest, '2019-03-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb'
62
+ autoload :TriggerRolloverRequest, '2019-03-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb'
63
+ autoload :PreRestoreRequest, '2019-03-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb'
64
+ autoload :StorageSyncServiceCreateParameters, '2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb'
65
+ autoload :BackupRequest, '2019-03-01/generated/azure_mgmt_storagesync/models/backup_request.rb'
66
+ autoload :SyncSessionStatus, '2019-03-01/generated/azure_mgmt_storagesync/models/sync_session_status.rb'
67
+ autoload :PostBackupResponse, '2019-03-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb'
68
+ autoload :StorageSyncService, '2019-03-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb'
69
+ autoload :ProxyResource, '2019-03-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb'
70
+ autoload :SyncGroup, '2019-03-01/generated/azure_mgmt_storagesync/models/sync_group.rb'
71
+ autoload :CloudEndpoint, '2019-03-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb'
72
+ autoload :SyncGroupCreateParameters, '2019-03-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb'
73
+ autoload :CloudEndpointCreateParameters, '2019-03-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb'
74
+ autoload :ServerEndpointCreateParameters, '2019-03-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb'
75
+ autoload :RegisteredServerCreateParameters, '2019-03-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb'
76
+ autoload :ServerEndpoint, '2019-03-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb'
77
+ autoload :RegisteredServer, '2019-03-01/generated/azure_mgmt_storagesync/models/registered_server.rb'
78
+ autoload :Workflow, '2019-03-01/generated/azure_mgmt_storagesync/models/workflow.rb'
79
+ autoload :TrackedResource, '2019-03-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb'
80
+ autoload :AzureEntityResource, '2019-03-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb'
81
+ autoload :Reason, '2019-03-01/generated/azure_mgmt_storagesync/models/reason.rb'
82
+ autoload :ChangeDetectionMode, '2019-03-01/generated/azure_mgmt_storagesync/models/change_detection_mode.rb'
83
+ autoload :NameAvailabilityReason, '2019-03-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb'
84
+ end
85
+ end
@@ -0,0 +1,1507 @@
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_03_01
7
+ #
8
+ # Microsoft Storage Sync Service API
9
+ #
10
+ class CloudEndpoints
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the CloudEndpoints 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
+ # Create a new CloudEndpoint.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group. The name
28
+ # is case insensitive.
29
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
30
+ # resource.
31
+ # @param sync_group_name [String] Name of Sync Group resource.
32
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
33
+ # @param parameters [CloudEndpointCreateParameters] Body of Cloud Endpoint
34
+ # resource.
35
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
+ # will be added to the HTTP request.
37
+ #
38
+ # @return [CloudEndpoint] operation results.
39
+ #
40
+ def create(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
41
+ response = create_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
42
+ response.body unless response.nil?
43
+ end
44
+
45
+ #
46
+ # @param resource_group_name [String] The name of the resource group. The name
47
+ # is case insensitive.
48
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
49
+ # resource.
50
+ # @param sync_group_name [String] Name of Sync Group resource.
51
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
52
+ # @param parameters [CloudEndpointCreateParameters] Body of Cloud Endpoint
53
+ # resource.
54
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
55
+ # will be added to the HTTP request.
56
+ #
57
+ # @return [Concurrent::Promise] promise which provides async access to http
58
+ # response.
59
+ #
60
+ def create_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
61
+ # Send request
62
+ promise = begin_create_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers)
63
+
64
+ promise = promise.then do |response|
65
+ # Defining deserialization method.
66
+ deserialize_method = lambda do |parsed_response|
67
+ result_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::CloudEndpoint.mapper()
68
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
69
+ end
70
+
71
+ # Waiting for response.
72
+ @client.get_long_running_operation_result(response, deserialize_method)
73
+ end
74
+
75
+ promise
76
+ end
77
+
78
+ #
79
+ # Get a given CloudEndpoint.
80
+ #
81
+ # @param resource_group_name [String] The name of the resource group. The name
82
+ # is case insensitive.
83
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
84
+ # resource.
85
+ # @param sync_group_name [String] Name of Sync Group resource.
86
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
87
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
88
+ # will be added to the HTTP request.
89
+ #
90
+ # @return [CloudEndpoint] operation results.
91
+ #
92
+ def get(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
93
+ response = get_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:custom_headers).value!
94
+ response.body unless response.nil?
95
+ end
96
+
97
+ #
98
+ # Get a given CloudEndpoint.
99
+ #
100
+ # @param resource_group_name [String] The name of the resource group. The name
101
+ # is case insensitive.
102
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
103
+ # resource.
104
+ # @param sync_group_name [String] Name of Sync Group resource.
105
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
106
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
107
+ # will be added to the HTTP request.
108
+ #
109
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
110
+ #
111
+ def get_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
112
+ get_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:custom_headers).value!
113
+ end
114
+
115
+ #
116
+ # Get a given CloudEndpoint.
117
+ #
118
+ # @param resource_group_name [String] The name of the resource group. The name
119
+ # is case insensitive.
120
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
121
+ # resource.
122
+ # @param sync_group_name [String] Name of Sync Group resource.
123
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
124
+ # @param [Hash{String => String}] A hash of custom headers that will be added
125
+ # to the HTTP request.
126
+ #
127
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
128
+ #
129
+ def get_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
130
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
131
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
132
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
133
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
134
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
135
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
136
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
137
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
138
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
139
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
140
+ fail ArgumentError, 'cloud_endpoint_name is nil' if cloud_endpoint_name.nil?
141
+
142
+
143
+ request_headers = {}
144
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
145
+
146
+ # Set Headers
147
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
148
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
149
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}'
150
+
151
+ request_url = @base_url || @client.base_url
152
+
153
+ options = {
154
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
155
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'cloudEndpointName' => cloud_endpoint_name},
156
+ query_params: {'api-version' => @client.api_version},
157
+ headers: request_headers.merge(custom_headers || {}),
158
+ base_url: request_url
159
+ }
160
+ promise = @client.make_request_async(:get, path_template, options)
161
+
162
+ promise = promise.then do |result|
163
+ http_response = result.response
164
+ status_code = http_response.status
165
+ response_content = http_response.body
166
+ unless status_code == 200
167
+ error_model = JSON.load(response_content)
168
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
169
+ end
170
+
171
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
172
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
173
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
174
+ # Deserialize Response
175
+ if status_code == 200
176
+ begin
177
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
178
+ result_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::CloudEndpoint.mapper()
179
+ result.body = @client.deserialize(result_mapper, parsed_response)
180
+ rescue Exception => e
181
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
182
+ end
183
+ end
184
+
185
+ result
186
+ end
187
+
188
+ promise.execute
189
+ end
190
+
191
+ #
192
+ # Delete a given CloudEndpoint.
193
+ #
194
+ # @param resource_group_name [String] The name of the resource group. The name
195
+ # is case insensitive.
196
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
197
+ # resource.
198
+ # @param sync_group_name [String] Name of Sync Group resource.
199
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
200
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
201
+ # will be added to the HTTP request.
202
+ #
203
+ def delete(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
204
+ response = delete_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:custom_headers).value!
205
+ nil
206
+ end
207
+
208
+ #
209
+ # @param resource_group_name [String] The name of the resource group. The name
210
+ # is case insensitive.
211
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
212
+ # resource.
213
+ # @param sync_group_name [String] Name of Sync Group resource.
214
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
215
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
216
+ # will be added to the HTTP request.
217
+ #
218
+ # @return [Concurrent::Promise] promise which provides async access to http
219
+ # response.
220
+ #
221
+ def delete_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
222
+ # Send request
223
+ promise = begin_delete_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:custom_headers)
224
+
225
+ promise = promise.then do |response|
226
+ # Defining deserialization method.
227
+ deserialize_method = lambda do |parsed_response|
228
+ end
229
+
230
+ # Waiting for response.
231
+ @client.get_long_running_operation_result(response, deserialize_method)
232
+ end
233
+
234
+ promise
235
+ end
236
+
237
+ #
238
+ # Get a CloudEndpoint List.
239
+ #
240
+ # @param resource_group_name [String] The name of the resource group. The name
241
+ # is case insensitive.
242
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
243
+ # resource.
244
+ # @param sync_group_name [String] Name of Sync Group resource.
245
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
246
+ # will be added to the HTTP request.
247
+ #
248
+ # @return [CloudEndpointArray] operation results.
249
+ #
250
+ def list_by_sync_group(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:nil)
251
+ response = list_by_sync_group_async(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:custom_headers).value!
252
+ response.body unless response.nil?
253
+ end
254
+
255
+ #
256
+ # Get a CloudEndpoint List.
257
+ #
258
+ # @param resource_group_name [String] The name of the resource group. The name
259
+ # is case insensitive.
260
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
261
+ # resource.
262
+ # @param sync_group_name [String] Name of Sync Group resource.
263
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
264
+ # will be added to the HTTP request.
265
+ #
266
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
267
+ #
268
+ def list_by_sync_group_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:nil)
269
+ list_by_sync_group_async(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:custom_headers).value!
270
+ end
271
+
272
+ #
273
+ # Get a CloudEndpoint List.
274
+ #
275
+ # @param resource_group_name [String] The name of the resource group. The name
276
+ # is case insensitive.
277
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
278
+ # resource.
279
+ # @param sync_group_name [String] Name of Sync Group resource.
280
+ # @param [Hash{String => String}] A hash of custom headers that will be added
281
+ # to the HTTP request.
282
+ #
283
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
284
+ #
285
+ def list_by_sync_group_async(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:nil)
286
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
287
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
288
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
289
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
290
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
291
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
292
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
293
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
294
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
295
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
296
+
297
+
298
+ request_headers = {}
299
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
300
+
301
+ # Set Headers
302
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
303
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
304
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints'
305
+
306
+ request_url = @base_url || @client.base_url
307
+
308
+ options = {
309
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
310
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name},
311
+ query_params: {'api-version' => @client.api_version},
312
+ headers: request_headers.merge(custom_headers || {}),
313
+ base_url: request_url
314
+ }
315
+ promise = @client.make_request_async(:get, path_template, options)
316
+
317
+ promise = promise.then do |result|
318
+ http_response = result.response
319
+ status_code = http_response.status
320
+ response_content = http_response.body
321
+ unless status_code == 200
322
+ error_model = JSON.load(response_content)
323
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
324
+ end
325
+
326
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
327
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
328
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
329
+ # Deserialize Response
330
+ if status_code == 200
331
+ begin
332
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
333
+ result_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::CloudEndpointArray.mapper()
334
+ result.body = @client.deserialize(result_mapper, parsed_response)
335
+ rescue Exception => e
336
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
337
+ end
338
+ end
339
+
340
+ result
341
+ end
342
+
343
+ promise.execute
344
+ end
345
+
346
+ #
347
+ # Pre Backup a given CloudEndpoint.
348
+ #
349
+ # @param resource_group_name [String] The name of the resource group. The name
350
+ # is case insensitive.
351
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
352
+ # resource.
353
+ # @param sync_group_name [String] Name of Sync Group resource.
354
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
355
+ # @param parameters [BackupRequest] Body of Backup request.
356
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
357
+ # will be added to the HTTP request.
358
+ #
359
+ def pre_backup(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
360
+ response = pre_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
361
+ nil
362
+ end
363
+
364
+ #
365
+ # @param resource_group_name [String] The name of the resource group. The name
366
+ # is case insensitive.
367
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
368
+ # resource.
369
+ # @param sync_group_name [String] Name of Sync Group resource.
370
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
371
+ # @param parameters [BackupRequest] Body of Backup request.
372
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
373
+ # will be added to the HTTP request.
374
+ #
375
+ # @return [Concurrent::Promise] promise which provides async access to http
376
+ # response.
377
+ #
378
+ def pre_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
379
+ # Send request
380
+ promise = begin_pre_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers)
381
+
382
+ promise = promise.then do |response|
383
+ # Defining deserialization method.
384
+ deserialize_method = lambda do |parsed_response|
385
+ end
386
+
387
+ # Waiting for response.
388
+ @client.get_long_running_operation_result(response, deserialize_method)
389
+ end
390
+
391
+ promise
392
+ end
393
+
394
+ #
395
+ # Post Backup a given CloudEndpoint.
396
+ #
397
+ # @param resource_group_name [String] The name of the resource group. The name
398
+ # is case insensitive.
399
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
400
+ # resource.
401
+ # @param sync_group_name [String] Name of Sync Group resource.
402
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
403
+ # @param parameters [BackupRequest] Body of Backup request.
404
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
405
+ # will be added to the HTTP request.
406
+ #
407
+ # @return [PostBackupResponse] operation results.
408
+ #
409
+ def post_backup(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
410
+ response = post_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
411
+ response.body unless response.nil?
412
+ end
413
+
414
+ #
415
+ # @param resource_group_name [String] The name of the resource group. The name
416
+ # is case insensitive.
417
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
418
+ # resource.
419
+ # @param sync_group_name [String] Name of Sync Group resource.
420
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
421
+ # @param parameters [BackupRequest] Body of Backup request.
422
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
423
+ # will be added to the HTTP request.
424
+ #
425
+ # @return [Concurrent::Promise] promise which provides async access to http
426
+ # response.
427
+ #
428
+ def post_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
429
+ # Send request
430
+ promise = begin_post_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers)
431
+
432
+ promise = promise.then do |response|
433
+ # Defining deserialization method.
434
+ deserialize_method = lambda do |parsed_response|
435
+ result_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::PostBackupResponse.mapper()
436
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
437
+ end
438
+
439
+ # Waiting for response.
440
+ @client.get_long_running_operation_result(response, deserialize_method)
441
+ end
442
+
443
+ promise
444
+ end
445
+
446
+ #
447
+ # Pre Restore a given CloudEndpoint.
448
+ #
449
+ # @param resource_group_name [String] The name of the resource group. The name
450
+ # is case insensitive.
451
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
452
+ # resource.
453
+ # @param sync_group_name [String] Name of Sync Group resource.
454
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
455
+ # @param parameters [PreRestoreRequest] Body of Cloud Endpoint object.
456
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
457
+ # will be added to the HTTP request.
458
+ #
459
+ def pre_restore(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
460
+ response = pre_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
461
+ nil
462
+ end
463
+
464
+ #
465
+ # @param resource_group_name [String] The name of the resource group. The name
466
+ # is case insensitive.
467
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
468
+ # resource.
469
+ # @param sync_group_name [String] Name of Sync Group resource.
470
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
471
+ # @param parameters [PreRestoreRequest] Body of Cloud Endpoint object.
472
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
473
+ # will be added to the HTTP request.
474
+ #
475
+ # @return [Concurrent::Promise] promise which provides async access to http
476
+ # response.
477
+ #
478
+ def pre_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
479
+ # Send request
480
+ promise = begin_pre_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers)
481
+
482
+ promise = promise.then do |response|
483
+ # Defining deserialization method.
484
+ deserialize_method = lambda do |parsed_response|
485
+ end
486
+
487
+ # Waiting for response.
488
+ @client.get_long_running_operation_result(response, deserialize_method)
489
+ end
490
+
491
+ promise
492
+ end
493
+
494
+ #
495
+ # Restore Heartbeat a given CloudEndpoint.
496
+ #
497
+ # @param resource_group_name [String] The name of the resource group. The name
498
+ # is case insensitive.
499
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
500
+ # resource.
501
+ # @param sync_group_name [String] Name of Sync Group resource.
502
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
503
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
504
+ # will be added to the HTTP request.
505
+ #
506
+ #
507
+ def restoreheartbeat(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
508
+ response = restoreheartbeat_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:custom_headers).value!
509
+ nil
510
+ end
511
+
512
+ #
513
+ # Restore Heartbeat a given CloudEndpoint.
514
+ #
515
+ # @param resource_group_name [String] The name of the resource group. The name
516
+ # is case insensitive.
517
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
518
+ # resource.
519
+ # @param sync_group_name [String] Name of Sync Group resource.
520
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
521
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
522
+ # will be added to the HTTP request.
523
+ #
524
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
525
+ #
526
+ def restoreheartbeat_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
527
+ restoreheartbeat_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:custom_headers).value!
528
+ end
529
+
530
+ #
531
+ # Restore Heartbeat a given CloudEndpoint.
532
+ #
533
+ # @param resource_group_name [String] The name of the resource group. The name
534
+ # is case insensitive.
535
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
536
+ # resource.
537
+ # @param sync_group_name [String] Name of Sync Group resource.
538
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
539
+ # @param [Hash{String => String}] A hash of custom headers that will be added
540
+ # to the HTTP request.
541
+ #
542
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
543
+ #
544
+ def restoreheartbeat_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
545
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
546
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
547
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
548
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
549
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
550
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
551
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
552
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
553
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
554
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
555
+ fail ArgumentError, 'cloud_endpoint_name is nil' if cloud_endpoint_name.nil?
556
+
557
+
558
+ request_headers = {}
559
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
560
+
561
+ # Set Headers
562
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
563
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
564
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/restoreheartbeat'
565
+
566
+ request_url = @base_url || @client.base_url
567
+
568
+ options = {
569
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
570
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'cloudEndpointName' => cloud_endpoint_name},
571
+ query_params: {'api-version' => @client.api_version},
572
+ headers: request_headers.merge(custom_headers || {}),
573
+ base_url: request_url
574
+ }
575
+ promise = @client.make_request_async(:post, path_template, options)
576
+
577
+ promise = promise.then do |result|
578
+ http_response = result.response
579
+ status_code = http_response.status
580
+ response_content = http_response.body
581
+ unless status_code == 200
582
+ error_model = JSON.load(response_content)
583
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
584
+ end
585
+
586
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
587
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
588
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
589
+
590
+ result
591
+ end
592
+
593
+ promise.execute
594
+ end
595
+
596
+ #
597
+ # Post Restore a given CloudEndpoint.
598
+ #
599
+ # @param resource_group_name [String] The name of the resource group. The name
600
+ # is case insensitive.
601
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
602
+ # resource.
603
+ # @param sync_group_name [String] Name of Sync Group resource.
604
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
605
+ # @param parameters [PostRestoreRequest] Body of Cloud Endpoint object.
606
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
607
+ # will be added to the HTTP request.
608
+ #
609
+ def post_restore(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
610
+ response = post_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
611
+ nil
612
+ end
613
+
614
+ #
615
+ # @param resource_group_name [String] The name of the resource group. The name
616
+ # is case insensitive.
617
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
618
+ # resource.
619
+ # @param sync_group_name [String] Name of Sync Group resource.
620
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
621
+ # @param parameters [PostRestoreRequest] Body of Cloud Endpoint object.
622
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
623
+ # will be added to the HTTP request.
624
+ #
625
+ # @return [Concurrent::Promise] promise which provides async access to http
626
+ # response.
627
+ #
628
+ def post_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
629
+ # Send request
630
+ promise = begin_post_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers)
631
+
632
+ promise = promise.then do |response|
633
+ # Defining deserialization method.
634
+ deserialize_method = lambda do |parsed_response|
635
+ end
636
+
637
+ # Waiting for response.
638
+ @client.get_long_running_operation_result(response, deserialize_method)
639
+ end
640
+
641
+ promise
642
+ end
643
+
644
+ #
645
+ # Triggers detection of changes performed on Azure File share connected to the
646
+ # specified Azure File Sync Cloud Endpoint.
647
+ #
648
+ # @param resource_group_name [String] The name of the resource group. The name
649
+ # is case insensitive.
650
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
651
+ # resource.
652
+ # @param sync_group_name [String] Name of Sync Group resource.
653
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
654
+ # @param parameters [TriggerChangeDetectionParameters] Trigger Change Detection
655
+ # Action parameters.
656
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
657
+ # will be added to the HTTP request.
658
+ #
659
+ def trigger_change_detection(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
660
+ response = trigger_change_detection_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
661
+ nil
662
+ end
663
+
664
+ #
665
+ # @param resource_group_name [String] The name of the resource group. The name
666
+ # is case insensitive.
667
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
668
+ # resource.
669
+ # @param sync_group_name [String] Name of Sync Group resource.
670
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
671
+ # @param parameters [TriggerChangeDetectionParameters] Trigger Change Detection
672
+ # Action parameters.
673
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
674
+ # will be added to the HTTP request.
675
+ #
676
+ # @return [Concurrent::Promise] promise which provides async access to http
677
+ # response.
678
+ #
679
+ def trigger_change_detection_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
680
+ # Send request
681
+ promise = begin_trigger_change_detection_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers)
682
+
683
+ promise = promise.then do |response|
684
+ # Defining deserialization method.
685
+ deserialize_method = lambda do |parsed_response|
686
+ end
687
+
688
+ # Waiting for response.
689
+ @client.get_long_running_operation_result(response, deserialize_method)
690
+ end
691
+
692
+ promise
693
+ end
694
+
695
+ #
696
+ # Create a new CloudEndpoint.
697
+ #
698
+ # @param resource_group_name [String] The name of the resource group. The name
699
+ # is case insensitive.
700
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
701
+ # resource.
702
+ # @param sync_group_name [String] Name of Sync Group resource.
703
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
704
+ # @param parameters [CloudEndpointCreateParameters] Body of Cloud Endpoint
705
+ # resource.
706
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
707
+ # will be added to the HTTP request.
708
+ #
709
+ # @return [CloudEndpoint] operation results.
710
+ #
711
+ def begin_create(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
712
+ response = begin_create_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
713
+ response.body unless response.nil?
714
+ end
715
+
716
+ #
717
+ # Create a new CloudEndpoint.
718
+ #
719
+ # @param resource_group_name [String] The name of the resource group. The name
720
+ # is case insensitive.
721
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
722
+ # resource.
723
+ # @param sync_group_name [String] Name of Sync Group resource.
724
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
725
+ # @param parameters [CloudEndpointCreateParameters] Body of Cloud Endpoint
726
+ # resource.
727
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
728
+ # will be added to the HTTP request.
729
+ #
730
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
731
+ #
732
+ def begin_create_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
733
+ begin_create_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
734
+ end
735
+
736
+ #
737
+ # Create a new CloudEndpoint.
738
+ #
739
+ # @param resource_group_name [String] The name of the resource group. The name
740
+ # is case insensitive.
741
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
742
+ # resource.
743
+ # @param sync_group_name [String] Name of Sync Group resource.
744
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
745
+ # @param parameters [CloudEndpointCreateParameters] Body of Cloud Endpoint
746
+ # resource.
747
+ # @param [Hash{String => String}] A hash of custom headers that will be added
748
+ # to the HTTP request.
749
+ #
750
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
751
+ #
752
+ def begin_create_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
753
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
754
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
755
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
756
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
757
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
758
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
759
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
760
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
761
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
762
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
763
+ fail ArgumentError, 'cloud_endpoint_name is nil' if cloud_endpoint_name.nil?
764
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
765
+
766
+
767
+ request_headers = {}
768
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
769
+
770
+ # Set Headers
771
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
772
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
773
+
774
+ # Serialize Request
775
+ request_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::CloudEndpointCreateParameters.mapper()
776
+ request_content = @client.serialize(request_mapper, parameters)
777
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
778
+
779
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}'
780
+
781
+ request_url = @base_url || @client.base_url
782
+
783
+ options = {
784
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
785
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'cloudEndpointName' => cloud_endpoint_name},
786
+ query_params: {'api-version' => @client.api_version},
787
+ body: request_content,
788
+ headers: request_headers.merge(custom_headers || {}),
789
+ base_url: request_url
790
+ }
791
+ promise = @client.make_request_async(:put, path_template, options)
792
+
793
+ promise = promise.then do |result|
794
+ http_response = result.response
795
+ status_code = http_response.status
796
+ response_content = http_response.body
797
+ unless status_code == 200 || status_code == 202
798
+ error_model = JSON.load(response_content)
799
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
800
+ end
801
+
802
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
803
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
804
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
805
+ # Deserialize Response
806
+ if status_code == 200
807
+ begin
808
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
809
+ result_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::CloudEndpoint.mapper()
810
+ result.body = @client.deserialize(result_mapper, parsed_response)
811
+ rescue Exception => e
812
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
813
+ end
814
+ end
815
+
816
+ result
817
+ end
818
+
819
+ promise.execute
820
+ end
821
+
822
+ #
823
+ # Delete a given CloudEndpoint.
824
+ #
825
+ # @param resource_group_name [String] The name of the resource group. The name
826
+ # is case insensitive.
827
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
828
+ # resource.
829
+ # @param sync_group_name [String] Name of Sync Group resource.
830
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
831
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
832
+ # will be added to the HTTP request.
833
+ #
834
+ #
835
+ def begin_delete(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
836
+ response = begin_delete_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:custom_headers).value!
837
+ nil
838
+ end
839
+
840
+ #
841
+ # Delete a given CloudEndpoint.
842
+ #
843
+ # @param resource_group_name [String] The name of the resource group. The name
844
+ # is case insensitive.
845
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
846
+ # resource.
847
+ # @param sync_group_name [String] Name of Sync Group resource.
848
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
849
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
850
+ # will be added to the HTTP request.
851
+ #
852
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
853
+ #
854
+ def begin_delete_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
855
+ begin_delete_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:custom_headers).value!
856
+ end
857
+
858
+ #
859
+ # Delete a given CloudEndpoint.
860
+ #
861
+ # @param resource_group_name [String] The name of the resource group. The name
862
+ # is case insensitive.
863
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
864
+ # resource.
865
+ # @param sync_group_name [String] Name of Sync Group resource.
866
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
867
+ # @param [Hash{String => String}] A hash of custom headers that will be added
868
+ # to the HTTP request.
869
+ #
870
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
871
+ #
872
+ def begin_delete_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil)
873
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
874
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
875
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
876
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
877
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
878
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
879
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
880
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
881
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
882
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
883
+ fail ArgumentError, 'cloud_endpoint_name is nil' if cloud_endpoint_name.nil?
884
+
885
+
886
+ request_headers = {}
887
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
888
+
889
+ # Set Headers
890
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
891
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
892
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}'
893
+
894
+ request_url = @base_url || @client.base_url
895
+
896
+ options = {
897
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
898
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'cloudEndpointName' => cloud_endpoint_name},
899
+ query_params: {'api-version' => @client.api_version},
900
+ headers: request_headers.merge(custom_headers || {}),
901
+ base_url: request_url
902
+ }
903
+ promise = @client.make_request_async(:delete, path_template, options)
904
+
905
+ promise = promise.then do |result|
906
+ http_response = result.response
907
+ status_code = http_response.status
908
+ response_content = http_response.body
909
+ unless status_code == 200 || status_code == 202 || status_code == 204
910
+ error_model = JSON.load(response_content)
911
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
912
+ end
913
+
914
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
915
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
916
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
917
+
918
+ result
919
+ end
920
+
921
+ promise.execute
922
+ end
923
+
924
+ #
925
+ # Pre Backup a given CloudEndpoint.
926
+ #
927
+ # @param resource_group_name [String] The name of the resource group. The name
928
+ # is case insensitive.
929
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
930
+ # resource.
931
+ # @param sync_group_name [String] Name of Sync Group resource.
932
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
933
+ # @param parameters [BackupRequest] Body of Backup request.
934
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
935
+ # will be added to the HTTP request.
936
+ #
937
+ #
938
+ def begin_pre_backup(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
939
+ response = begin_pre_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
940
+ nil
941
+ end
942
+
943
+ #
944
+ # Pre Backup a given CloudEndpoint.
945
+ #
946
+ # @param resource_group_name [String] The name of the resource group. The name
947
+ # is case insensitive.
948
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
949
+ # resource.
950
+ # @param sync_group_name [String] Name of Sync Group resource.
951
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
952
+ # @param parameters [BackupRequest] Body of Backup request.
953
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
954
+ # will be added to the HTTP request.
955
+ #
956
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
957
+ #
958
+ def begin_pre_backup_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
959
+ begin_pre_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
960
+ end
961
+
962
+ #
963
+ # Pre Backup a given CloudEndpoint.
964
+ #
965
+ # @param resource_group_name [String] The name of the resource group. The name
966
+ # is case insensitive.
967
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
968
+ # resource.
969
+ # @param sync_group_name [String] Name of Sync Group resource.
970
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
971
+ # @param parameters [BackupRequest] Body of Backup request.
972
+ # @param [Hash{String => String}] A hash of custom headers that will be added
973
+ # to the HTTP request.
974
+ #
975
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
976
+ #
977
+ def begin_pre_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
978
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
979
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
980
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
981
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
982
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
983
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
984
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
985
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
986
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
987
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
988
+ fail ArgumentError, 'cloud_endpoint_name is nil' if cloud_endpoint_name.nil?
989
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
990
+
991
+
992
+ request_headers = {}
993
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
994
+
995
+ # Set Headers
996
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
997
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
998
+
999
+ # Serialize Request
1000
+ request_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::BackupRequest.mapper()
1001
+ request_content = @client.serialize(request_mapper, parameters)
1002
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1003
+
1004
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prebackup'
1005
+
1006
+ request_url = @base_url || @client.base_url
1007
+
1008
+ options = {
1009
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1010
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'cloudEndpointName' => cloud_endpoint_name},
1011
+ query_params: {'api-version' => @client.api_version},
1012
+ body: request_content,
1013
+ headers: request_headers.merge(custom_headers || {}),
1014
+ base_url: request_url
1015
+ }
1016
+ promise = @client.make_request_async(:post, path_template, options)
1017
+
1018
+ promise = promise.then do |result|
1019
+ http_response = result.response
1020
+ status_code = http_response.status
1021
+ response_content = http_response.body
1022
+ unless status_code == 200 || status_code == 202
1023
+ error_model = JSON.load(response_content)
1024
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1025
+ end
1026
+
1027
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1028
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1029
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1030
+
1031
+ result
1032
+ end
1033
+
1034
+ promise.execute
1035
+ end
1036
+
1037
+ #
1038
+ # Post Backup a given CloudEndpoint.
1039
+ #
1040
+ # @param resource_group_name [String] The name of the resource group. The name
1041
+ # is case insensitive.
1042
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1043
+ # resource.
1044
+ # @param sync_group_name [String] Name of Sync Group resource.
1045
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1046
+ # @param parameters [BackupRequest] Body of Backup request.
1047
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1048
+ # will be added to the HTTP request.
1049
+ #
1050
+ # @return [PostBackupResponse] operation results.
1051
+ #
1052
+ def begin_post_backup(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1053
+ response = begin_post_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
1054
+ response.body unless response.nil?
1055
+ end
1056
+
1057
+ #
1058
+ # Post Backup a given CloudEndpoint.
1059
+ #
1060
+ # @param resource_group_name [String] The name of the resource group. The name
1061
+ # is case insensitive.
1062
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1063
+ # resource.
1064
+ # @param sync_group_name [String] Name of Sync Group resource.
1065
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1066
+ # @param parameters [BackupRequest] Body of Backup request.
1067
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1068
+ # will be added to the HTTP request.
1069
+ #
1070
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1071
+ #
1072
+ def begin_post_backup_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1073
+ begin_post_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
1074
+ end
1075
+
1076
+ #
1077
+ # Post Backup a given CloudEndpoint.
1078
+ #
1079
+ # @param resource_group_name [String] The name of the resource group. The name
1080
+ # is case insensitive.
1081
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1082
+ # resource.
1083
+ # @param sync_group_name [String] Name of Sync Group resource.
1084
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1085
+ # @param parameters [BackupRequest] Body of Backup request.
1086
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1087
+ # to the HTTP request.
1088
+ #
1089
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1090
+ #
1091
+ def begin_post_backup_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1092
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1093
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1094
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1095
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1096
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1097
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1098
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1099
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1100
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
1101
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
1102
+ fail ArgumentError, 'cloud_endpoint_name is nil' if cloud_endpoint_name.nil?
1103
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1104
+
1105
+
1106
+ request_headers = {}
1107
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1108
+
1109
+ # Set Headers
1110
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1111
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1112
+
1113
+ # Serialize Request
1114
+ request_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::BackupRequest.mapper()
1115
+ request_content = @client.serialize(request_mapper, parameters)
1116
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1117
+
1118
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postbackup'
1119
+
1120
+ request_url = @base_url || @client.base_url
1121
+
1122
+ options = {
1123
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1124
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'cloudEndpointName' => cloud_endpoint_name},
1125
+ query_params: {'api-version' => @client.api_version},
1126
+ body: request_content,
1127
+ headers: request_headers.merge(custom_headers || {}),
1128
+ base_url: request_url
1129
+ }
1130
+ promise = @client.make_request_async(:post, path_template, options)
1131
+
1132
+ promise = promise.then do |result|
1133
+ http_response = result.response
1134
+ status_code = http_response.status
1135
+ response_content = http_response.body
1136
+ unless status_code == 200 || status_code == 202
1137
+ error_model = JSON.load(response_content)
1138
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1139
+ end
1140
+
1141
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1142
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1143
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1144
+ # Deserialize Response
1145
+ if status_code == 200
1146
+ begin
1147
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1148
+ result_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::PostBackupResponse.mapper()
1149
+ result.body = @client.deserialize(result_mapper, parsed_response)
1150
+ rescue Exception => e
1151
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1152
+ end
1153
+ end
1154
+
1155
+ result
1156
+ end
1157
+
1158
+ promise.execute
1159
+ end
1160
+
1161
+ #
1162
+ # Pre Restore a given CloudEndpoint.
1163
+ #
1164
+ # @param resource_group_name [String] The name of the resource group. The name
1165
+ # is case insensitive.
1166
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1167
+ # resource.
1168
+ # @param sync_group_name [String] Name of Sync Group resource.
1169
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1170
+ # @param parameters [PreRestoreRequest] Body of Cloud Endpoint object.
1171
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1172
+ # will be added to the HTTP request.
1173
+ #
1174
+ #
1175
+ def begin_pre_restore(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1176
+ response = begin_pre_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
1177
+ nil
1178
+ end
1179
+
1180
+ #
1181
+ # Pre Restore a given CloudEndpoint.
1182
+ #
1183
+ # @param resource_group_name [String] The name of the resource group. The name
1184
+ # is case insensitive.
1185
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1186
+ # resource.
1187
+ # @param sync_group_name [String] Name of Sync Group resource.
1188
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1189
+ # @param parameters [PreRestoreRequest] Body of Cloud Endpoint object.
1190
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1191
+ # will be added to the HTTP request.
1192
+ #
1193
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1194
+ #
1195
+ def begin_pre_restore_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1196
+ begin_pre_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
1197
+ end
1198
+
1199
+ #
1200
+ # Pre Restore a given CloudEndpoint.
1201
+ #
1202
+ # @param resource_group_name [String] The name of the resource group. The name
1203
+ # is case insensitive.
1204
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1205
+ # resource.
1206
+ # @param sync_group_name [String] Name of Sync Group resource.
1207
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1208
+ # @param parameters [PreRestoreRequest] Body of Cloud Endpoint object.
1209
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1210
+ # to the HTTP request.
1211
+ #
1212
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1213
+ #
1214
+ def begin_pre_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1215
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1216
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1217
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1218
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1219
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1220
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1221
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1222
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1223
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
1224
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
1225
+ fail ArgumentError, 'cloud_endpoint_name is nil' if cloud_endpoint_name.nil?
1226
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1227
+
1228
+
1229
+ request_headers = {}
1230
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1231
+
1232
+ # Set Headers
1233
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1234
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1235
+
1236
+ # Serialize Request
1237
+ request_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::PreRestoreRequest.mapper()
1238
+ request_content = @client.serialize(request_mapper, parameters)
1239
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1240
+
1241
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prerestore'
1242
+
1243
+ request_url = @base_url || @client.base_url
1244
+
1245
+ options = {
1246
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1247
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'cloudEndpointName' => cloud_endpoint_name},
1248
+ query_params: {'api-version' => @client.api_version},
1249
+ body: request_content,
1250
+ headers: request_headers.merge(custom_headers || {}),
1251
+ base_url: request_url
1252
+ }
1253
+ promise = @client.make_request_async(:post, path_template, options)
1254
+
1255
+ promise = promise.then do |result|
1256
+ http_response = result.response
1257
+ status_code = http_response.status
1258
+ response_content = http_response.body
1259
+ unless status_code == 200 || status_code == 202
1260
+ error_model = JSON.load(response_content)
1261
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1262
+ end
1263
+
1264
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1265
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1266
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1267
+
1268
+ result
1269
+ end
1270
+
1271
+ promise.execute
1272
+ end
1273
+
1274
+ #
1275
+ # Post Restore a given CloudEndpoint.
1276
+ #
1277
+ # @param resource_group_name [String] The name of the resource group. The name
1278
+ # is case insensitive.
1279
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1280
+ # resource.
1281
+ # @param sync_group_name [String] Name of Sync Group resource.
1282
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1283
+ # @param parameters [PostRestoreRequest] Body of Cloud Endpoint object.
1284
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1285
+ # will be added to the HTTP request.
1286
+ #
1287
+ #
1288
+ def begin_post_restore(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1289
+ response = begin_post_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
1290
+ nil
1291
+ end
1292
+
1293
+ #
1294
+ # Post Restore a given CloudEndpoint.
1295
+ #
1296
+ # @param resource_group_name [String] The name of the resource group. The name
1297
+ # is case insensitive.
1298
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1299
+ # resource.
1300
+ # @param sync_group_name [String] Name of Sync Group resource.
1301
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1302
+ # @param parameters [PostRestoreRequest] Body of Cloud Endpoint object.
1303
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1304
+ # will be added to the HTTP request.
1305
+ #
1306
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1307
+ #
1308
+ def begin_post_restore_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1309
+ begin_post_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
1310
+ end
1311
+
1312
+ #
1313
+ # Post Restore a given CloudEndpoint.
1314
+ #
1315
+ # @param resource_group_name [String] The name of the resource group. The name
1316
+ # is case insensitive.
1317
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1318
+ # resource.
1319
+ # @param sync_group_name [String] Name of Sync Group resource.
1320
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1321
+ # @param parameters [PostRestoreRequest] Body of Cloud Endpoint object.
1322
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1323
+ # to the HTTP request.
1324
+ #
1325
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1326
+ #
1327
+ def begin_post_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1328
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1329
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1330
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1331
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1332
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1333
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1334
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1335
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1336
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
1337
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
1338
+ fail ArgumentError, 'cloud_endpoint_name is nil' if cloud_endpoint_name.nil?
1339
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1340
+
1341
+
1342
+ request_headers = {}
1343
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1344
+
1345
+ # Set Headers
1346
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1347
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1348
+
1349
+ # Serialize Request
1350
+ request_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::PostRestoreRequest.mapper()
1351
+ request_content = @client.serialize(request_mapper, parameters)
1352
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1353
+
1354
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postrestore'
1355
+
1356
+ request_url = @base_url || @client.base_url
1357
+
1358
+ options = {
1359
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1360
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'cloudEndpointName' => cloud_endpoint_name},
1361
+ query_params: {'api-version' => @client.api_version},
1362
+ body: request_content,
1363
+ headers: request_headers.merge(custom_headers || {}),
1364
+ base_url: request_url
1365
+ }
1366
+ promise = @client.make_request_async(:post, path_template, options)
1367
+
1368
+ promise = promise.then do |result|
1369
+ http_response = result.response
1370
+ status_code = http_response.status
1371
+ response_content = http_response.body
1372
+ unless status_code == 200 || status_code == 202
1373
+ error_model = JSON.load(response_content)
1374
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1375
+ end
1376
+
1377
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1378
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1379
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1380
+
1381
+ result
1382
+ end
1383
+
1384
+ promise.execute
1385
+ end
1386
+
1387
+ #
1388
+ # Triggers detection of changes performed on Azure File share connected to the
1389
+ # specified Azure File Sync Cloud Endpoint.
1390
+ #
1391
+ # @param resource_group_name [String] The name of the resource group. The name
1392
+ # is case insensitive.
1393
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1394
+ # resource.
1395
+ # @param sync_group_name [String] Name of Sync Group resource.
1396
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1397
+ # @param parameters [TriggerChangeDetectionParameters] Trigger Change Detection
1398
+ # Action parameters.
1399
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1400
+ # will be added to the HTTP request.
1401
+ #
1402
+ #
1403
+ def begin_trigger_change_detection(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1404
+ response = begin_trigger_change_detection_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
1405
+ nil
1406
+ end
1407
+
1408
+ #
1409
+ # Triggers detection of changes performed on Azure File share connected to the
1410
+ # specified Azure File Sync Cloud Endpoint.
1411
+ #
1412
+ # @param resource_group_name [String] The name of the resource group. The name
1413
+ # is case insensitive.
1414
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1415
+ # resource.
1416
+ # @param sync_group_name [String] Name of Sync Group resource.
1417
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1418
+ # @param parameters [TriggerChangeDetectionParameters] Trigger Change Detection
1419
+ # Action parameters.
1420
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1421
+ # will be added to the HTTP request.
1422
+ #
1423
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1424
+ #
1425
+ def begin_trigger_change_detection_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1426
+ begin_trigger_change_detection_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom_headers).value!
1427
+ end
1428
+
1429
+ #
1430
+ # Triggers detection of changes performed on Azure File share connected to the
1431
+ # specified Azure File Sync Cloud Endpoint.
1432
+ #
1433
+ # @param resource_group_name [String] The name of the resource group. The name
1434
+ # is case insensitive.
1435
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
1436
+ # resource.
1437
+ # @param sync_group_name [String] Name of Sync Group resource.
1438
+ # @param cloud_endpoint_name [String] Name of Cloud Endpoint object.
1439
+ # @param parameters [TriggerChangeDetectionParameters] Trigger Change Detection
1440
+ # Action parameters.
1441
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1442
+ # to the HTTP request.
1443
+ #
1444
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1445
+ #
1446
+ def begin_trigger_change_detection_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil)
1447
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1448
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1449
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1450
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1451
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1452
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1453
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1454
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1455
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
1456
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
1457
+ fail ArgumentError, 'cloud_endpoint_name is nil' if cloud_endpoint_name.nil?
1458
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1459
+
1460
+
1461
+ request_headers = {}
1462
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1463
+
1464
+ # Set Headers
1465
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1466
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1467
+
1468
+ # Serialize Request
1469
+ request_mapper = Azure::StorageSync::Mgmt::V2019_03_01::Models::TriggerChangeDetectionParameters.mapper()
1470
+ request_content = @client.serialize(request_mapper, parameters)
1471
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1472
+
1473
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/triggerChangeDetection'
1474
+
1475
+ request_url = @base_url || @client.base_url
1476
+
1477
+ options = {
1478
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1479
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'cloudEndpointName' => cloud_endpoint_name},
1480
+ query_params: {'api-version' => @client.api_version},
1481
+ body: request_content,
1482
+ headers: request_headers.merge(custom_headers || {}),
1483
+ base_url: request_url
1484
+ }
1485
+ promise = @client.make_request_async(:post, path_template, options)
1486
+
1487
+ promise = promise.then do |result|
1488
+ http_response = result.response
1489
+ status_code = http_response.status
1490
+ response_content = http_response.body
1491
+ unless status_code == 200 || status_code == 202
1492
+ error_model = JSON.load(response_content)
1493
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1494
+ end
1495
+
1496
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1497
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1498
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1499
+
1500
+ result
1501
+ end
1502
+
1503
+ promise.execute
1504
+ end
1505
+
1506
+ end
1507
+ end