azure_mgmt_storagesync 0.17.0 → 0.18.0

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