azure_mgmt_storagesync 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2018-04-02/generated/azure_mgmt_storagesync.rb +76 -0
  4. data/lib/2018-04-02/generated/azure_mgmt_storagesync/cloud_endpoints.rb +1319 -0
  5. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +75 -0
  6. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/backup_request.rb +46 -0
  7. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +61 -0
  8. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +78 -0
  9. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +162 -0
  10. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +55 -0
  11. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +107 -0
  12. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +16 -0
  13. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_display_info.rb +80 -0
  14. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +79 -0
  15. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_entity.rb +69 -0
  16. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +98 -0
  17. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/post_backup_response.rb +47 -0
  18. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/post_restore_request.rb +132 -0
  19. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +144 -0
  20. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/proxy_resource.rb +63 -0
  21. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/reason.rb +19 -0
  22. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +57 -0
  23. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/registered_server.rb +260 -0
  24. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/registered_server_array.rb +55 -0
  25. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +173 -0
  26. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/resource.rb +83 -0
  27. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/resources_move_info.rb +65 -0
  28. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +58 -0
  29. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint.rb +166 -0
  30. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +55 -0
  31. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +134 -0
  32. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +82 -0
  33. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +80 -0
  34. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +59 -0
  35. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +68 -0
  36. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +110 -0
  37. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +55 -0
  38. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +74 -0
  39. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +66 -0
  40. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/subscription_state.rb +70 -0
  41. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/sync_group.rb +85 -0
  42. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/sync_group_array.rb +55 -0
  43. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +85 -0
  44. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/tracked_resource.rb +92 -0
  45. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/workflow.rb +119 -0
  46. data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/workflow_array.rb +55 -0
  47. data/lib/2018-04-02/generated/azure_mgmt_storagesync/module_definition.rb +9 -0
  48. data/lib/2018-04-02/generated/azure_mgmt_storagesync/operations.rb +216 -0
  49. data/lib/2018-04-02/generated/azure_mgmt_storagesync/registered_servers.rb +548 -0
  50. data/lib/2018-04-02/generated/azure_mgmt_storagesync/server_endpoints.rb +905 -0
  51. data/lib/2018-04-02/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +155 -0
  52. data/lib/2018-04-02/generated/azure_mgmt_storagesync/storage_sync_services.rb +739 -0
  53. data/lib/2018-04-02/generated/azure_mgmt_storagesync/sync_groups.rb +449 -0
  54. data/lib/2018-04-02/generated/azure_mgmt_storagesync/workflows.rb +228 -0
  55. data/lib/2018-07-01/generated/azure_mgmt_storagesync.rb +77 -0
  56. data/lib/2018-07-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +1319 -0
  57. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +75 -0
  58. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/backup_request.rb +46 -0
  59. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +61 -0
  60. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +78 -0
  61. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +162 -0
  62. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +55 -0
  63. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +95 -0
  64. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +16 -0
  65. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +80 -0
  66. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +79 -0
  67. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +69 -0
  68. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +98 -0
  69. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +47 -0
  70. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +132 -0
  71. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +144 -0
  72. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +63 -0
  73. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/reason.rb +19 -0
  74. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +57 -0
  75. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/registered_server.rb +271 -0
  76. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +55 -0
  77. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +161 -0
  78. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/resource.rb +83 -0
  79. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +65 -0
  80. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +58 -0
  81. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +181 -0
  82. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +55 -0
  83. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +137 -0
  84. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +77 -0
  85. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +80 -0
  86. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +59 -0
  87. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +68 -0
  88. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +110 -0
  89. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +55 -0
  90. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +85 -0
  91. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +66 -0
  92. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +70 -0
  93. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/sync_group.rb +85 -0
  94. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +55 -0
  95. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +73 -0
  96. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +92 -0
  97. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +46 -0
  98. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/workflow.rb +119 -0
  99. data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +55 -0
  100. data/lib/2018-07-01/generated/azure_mgmt_storagesync/module_definition.rb +9 -0
  101. data/lib/2018-07-01/generated/azure_mgmt_storagesync/operations.rb +216 -0
  102. data/lib/2018-07-01/generated/azure_mgmt_storagesync/registered_servers.rb +701 -0
  103. data/lib/2018-07-01/generated/azure_mgmt_storagesync/server_endpoints.rb +905 -0
  104. data/lib/2018-07-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +155 -0
  105. data/lib/2018-07-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +739 -0
  106. data/lib/2018-07-01/generated/azure_mgmt_storagesync/sync_groups.rb +449 -0
  107. data/lib/2018-07-01/generated/azure_mgmt_storagesync/workflows.rb +331 -0
  108. data/lib/2018-10-01/generated/azure_mgmt_storagesync.rb +80 -0
  109. data/lib/2018-10-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +1319 -0
  110. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +75 -0
  111. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/backup_request.rb +46 -0
  112. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +61 -0
  113. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +78 -0
  114. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +162 -0
  115. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +55 -0
  116. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +95 -0
  117. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +16 -0
  118. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +80 -0
  119. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +79 -0
  120. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +69 -0
  121. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +98 -0
  122. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +47 -0
  123. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +132 -0
  124. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +144 -0
  125. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +63 -0
  126. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/reason.rb +19 -0
  127. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +57 -0
  128. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/registered_server.rb +271 -0
  129. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +55 -0
  130. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +161 -0
  131. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/resource.rb +83 -0
  132. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +65 -0
  133. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +58 -0
  134. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +229 -0
  135. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +55 -0
  136. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +160 -0
  137. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_health.rb +133 -0
  138. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +100 -0
  139. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +80 -0
  140. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +59 -0
  141. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +68 -0
  142. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +110 -0
  143. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +55 -0
  144. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +85 -0
  145. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +66 -0
  146. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +70 -0
  147. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_group.rb +85 -0
  148. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +55 -0
  149. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +73 -0
  150. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_progress_status.rb +133 -0
  151. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_session_status.rb +83 -0
  152. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +92 -0
  153. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +46 -0
  154. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/workflow.rb +119 -0
  155. data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +55 -0
  156. data/lib/2018-10-01/generated/azure_mgmt_storagesync/module_definition.rb +9 -0
  157. data/lib/2018-10-01/generated/azure_mgmt_storagesync/operations.rb +216 -0
  158. data/lib/2018-10-01/generated/azure_mgmt_storagesync/registered_servers.rb +701 -0
  159. data/lib/2018-10-01/generated/azure_mgmt_storagesync/server_endpoints.rb +905 -0
  160. data/lib/2018-10-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +155 -0
  161. data/lib/2018-10-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +739 -0
  162. data/lib/2018-10-01/generated/azure_mgmt_storagesync/sync_groups.rb +449 -0
  163. data/lib/2018-10-01/generated/azure_mgmt_storagesync/workflows.rb +331 -0
  164. data/lib/2019-02-01/generated/azure_mgmt_storagesync.rb +81 -0
  165. data/lib/2019-02-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +1319 -0
  166. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +75 -0
  167. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/backup_request.rb +46 -0
  168. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +61 -0
  169. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +78 -0
  170. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +162 -0
  171. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +55 -0
  172. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +95 -0
  173. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/files_not_syncing_error.rb +73 -0
  174. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +16 -0
  175. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +80 -0
  176. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +79 -0
  177. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +69 -0
  178. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +98 -0
  179. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +47 -0
  180. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +132 -0
  181. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +144 -0
  182. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +63 -0
  183. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/reason.rb +19 -0
  184. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +57 -0
  185. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/registered_server.rb +271 -0
  186. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +55 -0
  187. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +161 -0
  188. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/resource.rb +83 -0
  189. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +65 -0
  190. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +58 -0
  191. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +233 -0
  192. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +55 -0
  193. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +160 -0
  194. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_sync_status.rb +180 -0
  195. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +100 -0
  196. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +80 -0
  197. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +59 -0
  198. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +68 -0
  199. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +110 -0
  200. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +55 -0
  201. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +85 -0
  202. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +66 -0
  203. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +70 -0
  204. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_activity_status.rb +107 -0
  205. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_group.rb +85 -0
  206. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +55 -0
  207. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +73 -0
  208. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_session_status.rb +131 -0
  209. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +92 -0
  210. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +46 -0
  211. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/workflow.rb +119 -0
  212. data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +55 -0
  213. data/lib/2019-02-01/generated/azure_mgmt_storagesync/module_definition.rb +9 -0
  214. data/lib/2019-02-01/generated/azure_mgmt_storagesync/operations.rb +216 -0
  215. data/lib/2019-02-01/generated/azure_mgmt_storagesync/registered_servers.rb +701 -0
  216. data/lib/2019-02-01/generated/azure_mgmt_storagesync/server_endpoints.rb +905 -0
  217. data/lib/2019-02-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +155 -0
  218. data/lib/2019-02-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +739 -0
  219. data/lib/2019-02-01/generated/azure_mgmt_storagesync/sync_groups.rb +449 -0
  220. data/lib/2019-02-01/generated/azure_mgmt_storagesync/workflows.rb +331 -0
  221. data/lib/azure_mgmt_storagesync.rb +9 -0
  222. data/lib/module_definition.rb +7 -0
  223. data/lib/profiles/latest/modules/storagesync_profile_module.rb +261 -0
  224. data/lib/profiles/latest/storagesync_latest_profile_client.rb +40 -0
  225. data/lib/profiles/latest/storagesync_module_definition.rb +8 -0
  226. data/lib/version.rb +7 -0
  227. metadata +343 -0
@@ -0,0 +1,905 @@
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::V2018_07_01
7
+ #
8
+ # Microsoft Storage Sync Service API
9
+ #
10
+ class ServerEndpoints
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ServerEndpoints 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 ServerEndpoint.
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 server_endpoint_name [String] Name of Server Endpoint object.
33
+ # @param parameters [ServerEndpointCreateParameters] Body of Server Endpoint
34
+ # object.
35
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
+ # will be added to the HTTP request.
37
+ #
38
+ # @return [ServerEndpoint] operation results.
39
+ #
40
+ def create(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:nil)
41
+ response = create_async(resource_group_name, storage_sync_service_name, sync_group_name, server_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 server_endpoint_name [String] Name of Server Endpoint object.
52
+ # @param parameters [ServerEndpointCreateParameters] Body of Server Endpoint
53
+ # object.
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, server_endpoint_name, parameters, custom_headers:nil)
61
+ # Send request
62
+ promise = begin_create_async(resource_group_name, storage_sync_service_name, sync_group_name, server_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::V2018_07_01::Models::ServerEndpoint.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
+ # Patch a given ServerEndpoint.
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 server_endpoint_name [String] Name of Server Endpoint object.
87
+ # @param parameters [ServerEndpointUpdateParameters] Any of the properties
88
+ # applicable in PUT request.
89
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
90
+ # will be added to the HTTP request.
91
+ #
92
+ # @return [ServerEndpoint] operation results.
93
+ #
94
+ def update(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters:nil, custom_headers:nil)
95
+ response = update_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters:parameters, custom_headers:custom_headers).value!
96
+ response.body unless response.nil?
97
+ end
98
+
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 server_endpoint_name [String] Name of Server Endpoint object.
106
+ # @param parameters [ServerEndpointUpdateParameters] Any of the properties
107
+ # applicable in PUT request.
108
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
109
+ # will be added to the HTTP request.
110
+ #
111
+ # @return [Concurrent::Promise] promise which provides async access to http
112
+ # response.
113
+ #
114
+ def update_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters:nil, custom_headers:nil)
115
+ # Send request
116
+ promise = begin_update_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters:parameters, custom_headers:custom_headers)
117
+
118
+ promise = promise.then do |response|
119
+ # Defining deserialization method.
120
+ deserialize_method = lambda do |parsed_response|
121
+ result_mapper = Azure::StorageSync::Mgmt::V2018_07_01::Models::ServerEndpoint.mapper()
122
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
123
+ end
124
+
125
+ # Waiting for response.
126
+ @client.get_long_running_operation_result(response, deserialize_method)
127
+ end
128
+
129
+ promise
130
+ end
131
+
132
+ #
133
+ # Get a ServerEndpoint.
134
+ #
135
+ # @param resource_group_name [String] The name of the resource group. The name
136
+ # is case insensitive.
137
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
138
+ # resource.
139
+ # @param sync_group_name [String] Name of Sync Group resource.
140
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
141
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
142
+ # will be added to the HTTP request.
143
+ #
144
+ # @return [ServerEndpoint] operation results.
145
+ #
146
+ def get(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
147
+ response = get_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:custom_headers).value!
148
+ response.body unless response.nil?
149
+ end
150
+
151
+ #
152
+ # Get a ServerEndpoint.
153
+ #
154
+ # @param resource_group_name [String] The name of the resource group. The name
155
+ # is case insensitive.
156
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
157
+ # resource.
158
+ # @param sync_group_name [String] Name of Sync Group resource.
159
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
160
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
161
+ # will be added to the HTTP request.
162
+ #
163
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
164
+ #
165
+ def get_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
166
+ get_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:custom_headers).value!
167
+ end
168
+
169
+ #
170
+ # Get a ServerEndpoint.
171
+ #
172
+ # @param resource_group_name [String] The name of the resource group. The name
173
+ # is case insensitive.
174
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
175
+ # resource.
176
+ # @param sync_group_name [String] Name of Sync Group resource.
177
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
178
+ # @param [Hash{String => String}] A hash of custom headers that will be added
179
+ # to the HTTP request.
180
+ #
181
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
182
+ #
183
+ def get_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
184
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
185
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
186
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
187
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
188
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
189
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
190
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
191
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
192
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
193
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
194
+ fail ArgumentError, 'server_endpoint_name is nil' if server_endpoint_name.nil?
195
+
196
+
197
+ request_headers = {}
198
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
199
+
200
+ # Set Headers
201
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
202
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
203
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}'
204
+
205
+ request_url = @base_url || @client.base_url
206
+
207
+ options = {
208
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
209
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'serverEndpointName' => server_endpoint_name},
210
+ query_params: {'api-version' => @client.api_version},
211
+ headers: request_headers.merge(custom_headers || {}),
212
+ base_url: request_url
213
+ }
214
+ promise = @client.make_request_async(:get, path_template, options)
215
+
216
+ promise = promise.then do |result|
217
+ http_response = result.response
218
+ status_code = http_response.status
219
+ response_content = http_response.body
220
+ unless status_code == 200
221
+ error_model = JSON.load(response_content)
222
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
223
+ end
224
+
225
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
226
+ # Deserialize Response
227
+ if status_code == 200
228
+ begin
229
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
230
+ result_mapper = Azure::StorageSync::Mgmt::V2018_07_01::Models::ServerEndpoint.mapper()
231
+ result.body = @client.deserialize(result_mapper, parsed_response)
232
+ rescue Exception => e
233
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
234
+ end
235
+ end
236
+
237
+ result
238
+ end
239
+
240
+ promise.execute
241
+ end
242
+
243
+ #
244
+ # Delete a given ServerEndpoint.
245
+ #
246
+ # @param resource_group_name [String] The name of the resource group. The name
247
+ # is case insensitive.
248
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
249
+ # resource.
250
+ # @param sync_group_name [String] Name of Sync Group resource.
251
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
252
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
253
+ # will be added to the HTTP request.
254
+ #
255
+ def delete(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
256
+ response = delete_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:custom_headers).value!
257
+ nil
258
+ end
259
+
260
+ #
261
+ # @param resource_group_name [String] The name of the resource group. The name
262
+ # is case insensitive.
263
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
264
+ # resource.
265
+ # @param sync_group_name [String] Name of Sync Group resource.
266
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
267
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
268
+ # will be added to the HTTP request.
269
+ #
270
+ # @return [Concurrent::Promise] promise which provides async access to http
271
+ # response.
272
+ #
273
+ def delete_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
274
+ # Send request
275
+ promise = begin_delete_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:custom_headers)
276
+
277
+ promise = promise.then do |response|
278
+ # Defining deserialization method.
279
+ deserialize_method = lambda do |parsed_response|
280
+ end
281
+
282
+ # Waiting for response.
283
+ @client.get_long_running_operation_result(response, deserialize_method)
284
+ end
285
+
286
+ promise
287
+ end
288
+
289
+ #
290
+ # Get a ServerEndpoint list.
291
+ #
292
+ # @param resource_group_name [String] The name of the resource group. The name
293
+ # is case insensitive.
294
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
295
+ # resource.
296
+ # @param sync_group_name [String] Name of Sync Group resource.
297
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
298
+ # will be added to the HTTP request.
299
+ #
300
+ # @return [ServerEndpointArray] operation results.
301
+ #
302
+ def list_by_sync_group(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:nil)
303
+ response = list_by_sync_group_async(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:custom_headers).value!
304
+ response.body unless response.nil?
305
+ end
306
+
307
+ #
308
+ # Get a ServerEndpoint list.
309
+ #
310
+ # @param resource_group_name [String] The name of the resource group. The name
311
+ # is case insensitive.
312
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
313
+ # resource.
314
+ # @param sync_group_name [String] Name of Sync Group resource.
315
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
316
+ # will be added to the HTTP request.
317
+ #
318
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
319
+ #
320
+ def list_by_sync_group_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:nil)
321
+ list_by_sync_group_async(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:custom_headers).value!
322
+ end
323
+
324
+ #
325
+ # Get a ServerEndpoint list.
326
+ #
327
+ # @param resource_group_name [String] The name of the resource group. The name
328
+ # is case insensitive.
329
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
330
+ # resource.
331
+ # @param sync_group_name [String] Name of Sync Group resource.
332
+ # @param [Hash{String => String}] A hash of custom headers that will be added
333
+ # to the HTTP request.
334
+ #
335
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
336
+ #
337
+ def list_by_sync_group_async(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:nil)
338
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
339
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
340
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
341
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
342
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
343
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
344
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
345
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
346
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
347
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
348
+
349
+
350
+ request_headers = {}
351
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
352
+
353
+ # Set Headers
354
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
355
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
356
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints'
357
+
358
+ request_url = @base_url || @client.base_url
359
+
360
+ options = {
361
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
362
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name},
363
+ query_params: {'api-version' => @client.api_version},
364
+ headers: request_headers.merge(custom_headers || {}),
365
+ base_url: request_url
366
+ }
367
+ promise = @client.make_request_async(:get, path_template, options)
368
+
369
+ promise = promise.then do |result|
370
+ http_response = result.response
371
+ status_code = http_response.status
372
+ response_content = http_response.body
373
+ unless status_code == 200
374
+ error_model = JSON.load(response_content)
375
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
376
+ end
377
+
378
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
379
+ # Deserialize Response
380
+ if status_code == 200
381
+ begin
382
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
383
+ result_mapper = Azure::StorageSync::Mgmt::V2018_07_01::Models::ServerEndpointArray.mapper()
384
+ result.body = @client.deserialize(result_mapper, parsed_response)
385
+ rescue Exception => e
386
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
387
+ end
388
+ end
389
+
390
+ result
391
+ end
392
+
393
+ promise.execute
394
+ end
395
+
396
+ #
397
+ # Recall a server endpoint.
398
+ #
399
+ # @param resource_group_name [String] The name of the resource group. The name
400
+ # is case insensitive.
401
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
402
+ # resource.
403
+ # @param sync_group_name [String] Name of Sync Group resource.
404
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
405
+ # @param parameters [RecallActionParameters] Body of Recall Action object.
406
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
407
+ # will be added to the HTTP request.
408
+ #
409
+ def recall_action(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:nil)
410
+ response = recall_action_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:custom_headers).value!
411
+ 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 server_endpoint_name [String] Name of Server Endpoint object.
421
+ # @param parameters [RecallActionParameters] Body of Recall Action object.
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 recall_action_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:nil)
429
+ # Send request
430
+ promise = begin_recall_action_async(resource_group_name, storage_sync_service_name, sync_group_name, server_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
+ end
436
+
437
+ # Waiting for response.
438
+ @client.get_long_running_operation_result(response, deserialize_method)
439
+ end
440
+
441
+ promise
442
+ end
443
+
444
+ #
445
+ # Create a new ServerEndpoint.
446
+ #
447
+ # @param resource_group_name [String] The name of the resource group. The name
448
+ # is case insensitive.
449
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
450
+ # resource.
451
+ # @param sync_group_name [String] Name of Sync Group resource.
452
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
453
+ # @param parameters [ServerEndpointCreateParameters] Body of Server Endpoint
454
+ # object.
455
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
456
+ # will be added to the HTTP request.
457
+ #
458
+ # @return [ServerEndpoint] operation results.
459
+ #
460
+ def begin_create(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:nil)
461
+ response = begin_create_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:custom_headers).value!
462
+ response.body unless response.nil?
463
+ end
464
+
465
+ #
466
+ # Create a new ServerEndpoint.
467
+ #
468
+ # @param resource_group_name [String] The name of the resource group. The name
469
+ # is case insensitive.
470
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
471
+ # resource.
472
+ # @param sync_group_name [String] Name of Sync Group resource.
473
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
474
+ # @param parameters [ServerEndpointCreateParameters] Body of Server Endpoint
475
+ # object.
476
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
477
+ # will be added to the HTTP request.
478
+ #
479
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
480
+ #
481
+ def begin_create_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:nil)
482
+ begin_create_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:custom_headers).value!
483
+ end
484
+
485
+ #
486
+ # Create a new ServerEndpoint.
487
+ #
488
+ # @param resource_group_name [String] The name of the resource group. The name
489
+ # is case insensitive.
490
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
491
+ # resource.
492
+ # @param sync_group_name [String] Name of Sync Group resource.
493
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
494
+ # @param parameters [ServerEndpointCreateParameters] Body of Server Endpoint
495
+ # object.
496
+ # @param [Hash{String => String}] A hash of custom headers that will be added
497
+ # to the HTTP request.
498
+ #
499
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
500
+ #
501
+ def begin_create_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:nil)
502
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
503
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
504
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
505
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
506
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
507
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
508
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
509
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
510
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
511
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
512
+ fail ArgumentError, 'server_endpoint_name is nil' if server_endpoint_name.nil?
513
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
514
+
515
+
516
+ request_headers = {}
517
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
518
+
519
+ # Set Headers
520
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
521
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
522
+
523
+ # Serialize Request
524
+ request_mapper = Azure::StorageSync::Mgmt::V2018_07_01::Models::ServerEndpointCreateParameters.mapper()
525
+ request_content = @client.serialize(request_mapper, parameters)
526
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
527
+
528
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}'
529
+
530
+ request_url = @base_url || @client.base_url
531
+
532
+ options = {
533
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
534
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'serverEndpointName' => server_endpoint_name},
535
+ query_params: {'api-version' => @client.api_version},
536
+ body: request_content,
537
+ headers: request_headers.merge(custom_headers || {}),
538
+ base_url: request_url
539
+ }
540
+ promise = @client.make_request_async(:put, path_template, options)
541
+
542
+ promise = promise.then do |result|
543
+ http_response = result.response
544
+ status_code = http_response.status
545
+ response_content = http_response.body
546
+ unless status_code == 200 || status_code == 202
547
+ error_model = JSON.load(response_content)
548
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
549
+ end
550
+
551
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
552
+ # Deserialize Response
553
+ if status_code == 200
554
+ begin
555
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
556
+ result_mapper = Azure::StorageSync::Mgmt::V2018_07_01::Models::ServerEndpoint.mapper()
557
+ result.body = @client.deserialize(result_mapper, parsed_response)
558
+ rescue Exception => e
559
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
560
+ end
561
+ end
562
+
563
+ result
564
+ end
565
+
566
+ promise.execute
567
+ end
568
+
569
+ #
570
+ # Patch a given ServerEndpoint.
571
+ #
572
+ # @param resource_group_name [String] The name of the resource group. The name
573
+ # is case insensitive.
574
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
575
+ # resource.
576
+ # @param sync_group_name [String] Name of Sync Group resource.
577
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
578
+ # @param parameters [ServerEndpointUpdateParameters] Any of the properties
579
+ # applicable in PUT request.
580
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
581
+ # will be added to the HTTP request.
582
+ #
583
+ # @return [ServerEndpoint] operation results.
584
+ #
585
+ def begin_update(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters:nil, custom_headers:nil)
586
+ response = begin_update_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters:parameters, custom_headers:custom_headers).value!
587
+ response.body unless response.nil?
588
+ end
589
+
590
+ #
591
+ # Patch a given ServerEndpoint.
592
+ #
593
+ # @param resource_group_name [String] The name of the resource group. The name
594
+ # is case insensitive.
595
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
596
+ # resource.
597
+ # @param sync_group_name [String] Name of Sync Group resource.
598
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
599
+ # @param parameters [ServerEndpointUpdateParameters] Any of the properties
600
+ # applicable in PUT request.
601
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
602
+ # will be added to the HTTP request.
603
+ #
604
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
605
+ #
606
+ def begin_update_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters:nil, custom_headers:nil)
607
+ begin_update_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters:parameters, custom_headers:custom_headers).value!
608
+ end
609
+
610
+ #
611
+ # Patch a given ServerEndpoint.
612
+ #
613
+ # @param resource_group_name [String] The name of the resource group. The name
614
+ # is case insensitive.
615
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
616
+ # resource.
617
+ # @param sync_group_name [String] Name of Sync Group resource.
618
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
619
+ # @param parameters [ServerEndpointUpdateParameters] Any of the properties
620
+ # applicable in PUT request.
621
+ # @param [Hash{String => String}] A hash of custom headers that will be added
622
+ # to the HTTP request.
623
+ #
624
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
625
+ #
626
+ def begin_update_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters:nil, custom_headers:nil)
627
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
628
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
629
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
630
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
631
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
632
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
633
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
634
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
635
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
636
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
637
+ fail ArgumentError, 'server_endpoint_name is nil' if server_endpoint_name.nil?
638
+
639
+
640
+ request_headers = {}
641
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
642
+
643
+ # Set Headers
644
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
645
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
646
+
647
+ # Serialize Request
648
+ request_mapper = Azure::StorageSync::Mgmt::V2018_07_01::Models::ServerEndpointUpdateParameters.mapper()
649
+ request_content = @client.serialize(request_mapper, parameters)
650
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
651
+
652
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}'
653
+
654
+ request_url = @base_url || @client.base_url
655
+
656
+ options = {
657
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
658
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'serverEndpointName' => server_endpoint_name},
659
+ query_params: {'api-version' => @client.api_version},
660
+ body: request_content,
661
+ headers: request_headers.merge(custom_headers || {}),
662
+ base_url: request_url
663
+ }
664
+ promise = @client.make_request_async(:patch, path_template, options)
665
+
666
+ promise = promise.then do |result|
667
+ http_response = result.response
668
+ status_code = http_response.status
669
+ response_content = http_response.body
670
+ unless status_code == 200 || status_code == 202
671
+ error_model = JSON.load(response_content)
672
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
673
+ end
674
+
675
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
676
+ # Deserialize Response
677
+ if status_code == 200
678
+ begin
679
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
680
+ result_mapper = Azure::StorageSync::Mgmt::V2018_07_01::Models::ServerEndpoint.mapper()
681
+ result.body = @client.deserialize(result_mapper, parsed_response)
682
+ rescue Exception => e
683
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
684
+ end
685
+ end
686
+
687
+ result
688
+ end
689
+
690
+ promise.execute
691
+ end
692
+
693
+ #
694
+ # Delete a given ServerEndpoint.
695
+ #
696
+ # @param resource_group_name [String] The name of the resource group. The name
697
+ # is case insensitive.
698
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
699
+ # resource.
700
+ # @param sync_group_name [String] Name of Sync Group resource.
701
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
702
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
703
+ # will be added to the HTTP request.
704
+ #
705
+ #
706
+ def begin_delete(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
707
+ response = begin_delete_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:custom_headers).value!
708
+ nil
709
+ end
710
+
711
+ #
712
+ # Delete a given ServerEndpoint.
713
+ #
714
+ # @param resource_group_name [String] The name of the resource group. The name
715
+ # is case insensitive.
716
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
717
+ # resource.
718
+ # @param sync_group_name [String] Name of Sync Group resource.
719
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
720
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
721
+ # will be added to the HTTP request.
722
+ #
723
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
724
+ #
725
+ def begin_delete_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
726
+ begin_delete_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:custom_headers).value!
727
+ end
728
+
729
+ #
730
+ # Delete a given ServerEndpoint.
731
+ #
732
+ # @param resource_group_name [String] The name of the resource group. The name
733
+ # is case insensitive.
734
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
735
+ # resource.
736
+ # @param sync_group_name [String] Name of Sync Group resource.
737
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
738
+ # @param [Hash{String => String}] A hash of custom headers that will be added
739
+ # to the HTTP request.
740
+ #
741
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
742
+ #
743
+ def begin_delete_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, custom_headers:nil)
744
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
745
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
746
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
747
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
748
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
749
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
750
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
751
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
752
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
753
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
754
+ fail ArgumentError, 'server_endpoint_name is nil' if server_endpoint_name.nil?
755
+
756
+
757
+ request_headers = {}
758
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
759
+
760
+ # Set Headers
761
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
762
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
763
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}'
764
+
765
+ request_url = @base_url || @client.base_url
766
+
767
+ options = {
768
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
769
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'serverEndpointName' => server_endpoint_name},
770
+ query_params: {'api-version' => @client.api_version},
771
+ headers: request_headers.merge(custom_headers || {}),
772
+ base_url: request_url
773
+ }
774
+ promise = @client.make_request_async(:delete, path_template, options)
775
+
776
+ promise = promise.then do |result|
777
+ http_response = result.response
778
+ status_code = http_response.status
779
+ response_content = http_response.body
780
+ unless status_code == 200 || status_code == 202
781
+ error_model = JSON.load(response_content)
782
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
783
+ end
784
+
785
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
786
+
787
+ result
788
+ end
789
+
790
+ promise.execute
791
+ end
792
+
793
+ #
794
+ # Recall a server endpoint.
795
+ #
796
+ # @param resource_group_name [String] The name of the resource group. The name
797
+ # is case insensitive.
798
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
799
+ # resource.
800
+ # @param sync_group_name [String] Name of Sync Group resource.
801
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
802
+ # @param parameters [RecallActionParameters] Body of Recall Action object.
803
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
804
+ # will be added to the HTTP request.
805
+ #
806
+ #
807
+ def begin_recall_action(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:nil)
808
+ response = begin_recall_action_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:custom_headers).value!
809
+ nil
810
+ end
811
+
812
+ #
813
+ # Recall a server endpoint.
814
+ #
815
+ # @param resource_group_name [String] The name of the resource group. The name
816
+ # is case insensitive.
817
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
818
+ # resource.
819
+ # @param sync_group_name [String] Name of Sync Group resource.
820
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
821
+ # @param parameters [RecallActionParameters] Body of Recall Action object.
822
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
823
+ # will be added to the HTTP request.
824
+ #
825
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
826
+ #
827
+ def begin_recall_action_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:nil)
828
+ begin_recall_action_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:custom_headers).value!
829
+ end
830
+
831
+ #
832
+ # Recall a server endpoint.
833
+ #
834
+ # @param resource_group_name [String] The name of the resource group. The name
835
+ # is case insensitive.
836
+ # @param storage_sync_service_name [String] Name of Storage Sync Service
837
+ # resource.
838
+ # @param sync_group_name [String] Name of Sync Group resource.
839
+ # @param server_endpoint_name [String] Name of Server Endpoint object.
840
+ # @param parameters [RecallActionParameters] Body of Recall Action object.
841
+ # @param [Hash{String => String}] A hash of custom headers that will be added
842
+ # to the HTTP request.
843
+ #
844
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
845
+ #
846
+ def begin_recall_action_async(resource_group_name, storage_sync_service_name, sync_group_name, server_endpoint_name, parameters, custom_headers:nil)
847
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
848
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
849
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
850
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
851
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
852
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
853
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
854
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
855
+ fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
856
+ fail ArgumentError, 'sync_group_name is nil' if sync_group_name.nil?
857
+ fail ArgumentError, 'server_endpoint_name is nil' if server_endpoint_name.nil?
858
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
859
+
860
+
861
+ request_headers = {}
862
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
863
+
864
+ # Set Headers
865
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
866
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
867
+
868
+ # Serialize Request
869
+ request_mapper = Azure::StorageSync::Mgmt::V2018_07_01::Models::RecallActionParameters.mapper()
870
+ request_content = @client.serialize(request_mapper, parameters)
871
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
872
+
873
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}/recallAction'
874
+
875
+ request_url = @base_url || @client.base_url
876
+
877
+ options = {
878
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
879
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'syncGroupName' => sync_group_name,'serverEndpointName' => server_endpoint_name},
880
+ query_params: {'api-version' => @client.api_version},
881
+ body: request_content,
882
+ headers: request_headers.merge(custom_headers || {}),
883
+ base_url: request_url
884
+ }
885
+ promise = @client.make_request_async(:post, path_template, options)
886
+
887
+ promise = promise.then do |result|
888
+ http_response = result.response
889
+ status_code = http_response.status
890
+ response_content = http_response.body
891
+ unless status_code == 200 || status_code == 202
892
+ error_model = JSON.load(response_content)
893
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
894
+ end
895
+
896
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
897
+
898
+ result
899
+ end
900
+
901
+ promise.execute
902
+ end
903
+
904
+ end
905
+ end