azure_mgmt_kusto 0.18.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (417) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  3. data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  4. data/lib/2019-01-21/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  5. data/lib/2019-05-15/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  6. data/lib/2019-09-07/generated/azure_mgmt_kusto.rb +92 -0
  7. data/lib/2019-09-07/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  8. data/lib/2019-09-07/generated/azure_mgmt_kusto/clusters.rb +1557 -0
  9. data/lib/2019-09-07/generated/azure_mgmt_kusto/data_connections.rb +983 -0
  10. data/lib/2019-09-07/generated/azure_mgmt_kusto/databases.rb +1169 -0
  11. data/lib/2019-09-07/generated/azure_mgmt_kusto/kusto_management_client.rb +149 -0
  12. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  13. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  14. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  15. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  16. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  17. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  18. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_sku.rb +74 -0
  19. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_sku_name.rb +26 -0
  20. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  21. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  22. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  23. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/cluster.rb +263 -0
  24. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  25. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  26. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/cluster_update.rb +250 -0
  27. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  28. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +62 -0
  29. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  30. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  31. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  32. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  33. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_format.rb +26 -0
  34. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database.rb +82 -0
  35. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  36. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  37. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  38. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  39. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  40. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  41. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  42. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  43. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +158 -0
  44. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +165 -0
  45. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  46. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  47. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/identity.rb +95 -0
  48. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/identity_type.rb +16 -0
  49. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  50. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +176 -0
  51. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/key_vault_properties.rb +68 -0
  52. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  53. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  54. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  55. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  56. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  57. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  58. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  59. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  60. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  61. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/read_write_database.rb +135 -0
  62. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  63. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  64. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  65. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  66. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  67. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/state.rb +23 -0
  68. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  69. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  70. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/type.rb +16 -0
  71. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  72. data/lib/2019-09-07/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  73. data/lib/2019-09-07/generated/azure_mgmt_kusto/operations.rb +221 -0
  74. data/lib/2019-11-09/generated/azure_mgmt_kusto.rb +106 -0
  75. data/lib/2019-11-09/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  76. data/lib/2019-11-09/generated/azure_mgmt_kusto/cluster_principal_assignments.rb +656 -0
  77. data/lib/2019-11-09/generated/azure_mgmt_kusto/clusters.rb +1702 -0
  78. data/lib/2019-11-09/generated/azure_mgmt_kusto/data_connections.rb +983 -0
  79. data/lib/2019-11-09/generated/azure_mgmt_kusto/database_principal_assignments.rb +683 -0
  80. data/lib/2019-11-09/generated/azure_mgmt_kusto/databases.rb +1169 -0
  81. data/lib/2019-11-09/generated/azure_mgmt_kusto/kusto_management_client.rb +157 -0
  82. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  83. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  84. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  85. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  86. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  87. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  88. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_sku.rb +74 -0
  89. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_sku_name.rb +26 -0
  90. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  91. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  92. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  93. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster.rb +275 -0
  94. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  95. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  96. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb +147 -0
  97. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb +62 -0
  98. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb +56 -0
  99. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_role.rb +16 -0
  100. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_update.rb +262 -0
  101. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/compression.rb +16 -0
  102. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  103. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +61 -0
  104. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  105. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  106. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  107. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  108. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database.rb +82 -0
  109. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  110. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  111. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb +148 -0
  112. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb +62 -0
  113. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb +56 -0
  114. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  115. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  116. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  117. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  118. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  119. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  120. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb +56 -0
  121. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +158 -0
  122. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/event_grid_data_format.rb +28 -0
  123. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +177 -0
  124. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/event_hub_data_format.rb +28 -0
  125. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  126. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  127. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/identity.rb +95 -0
  128. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/identity_type.rb +16 -0
  129. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  130. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +176 -0
  131. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb +28 -0
  132. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/key_vault_properties.rb +68 -0
  133. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  134. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  135. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  136. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  137. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  138. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/principal_type.rb +17 -0
  139. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  140. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  141. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  142. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  143. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/read_write_database.rb +147 -0
  144. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  145. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  146. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  147. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  148. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  149. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/state.rb +23 -0
  150. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  151. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  152. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/type.rb +16 -0
  153. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  154. data/lib/2019-11-09/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  155. data/lib/2019-11-09/generated/azure_mgmt_kusto/operations.rb +221 -0
  156. data/lib/2020-02-15/generated/azure_mgmt_kusto.rb +109 -0
  157. data/lib/2020-02-15/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  158. data/lib/2020-02-15/generated/azure_mgmt_kusto/cluster_principal_assignments.rb +656 -0
  159. data/lib/2020-02-15/generated/azure_mgmt_kusto/clusters.rb +2087 -0
  160. data/lib/2020-02-15/generated/azure_mgmt_kusto/data_connections.rb +983 -0
  161. data/lib/2020-02-15/generated/azure_mgmt_kusto/database_principal_assignments.rb +683 -0
  162. data/lib/2020-02-15/generated/azure_mgmt_kusto/databases.rb +1169 -0
  163. data/lib/2020-02-15/generated/azure_mgmt_kusto/kusto_management_client.rb +157 -0
  164. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  165. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  166. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  167. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  168. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  169. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  170. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_sku.rb +77 -0
  171. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_sku_name.rb +35 -0
  172. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  173. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  174. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  175. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster.rb +301 -0
  176. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  177. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  178. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb +147 -0
  179. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb +62 -0
  180. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb +56 -0
  181. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_principal_role.rb +16 -0
  182. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_update.rb +288 -0
  183. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/compression.rb +16 -0
  184. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  185. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +61 -0
  186. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  187. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  188. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  189. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  190. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database.rb +82 -0
  191. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  192. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  193. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_assignment.rb +148 -0
  194. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb +62 -0
  195. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb +56 -0
  196. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  197. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  198. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  199. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  200. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  201. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  202. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb +56 -0
  203. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +158 -0
  204. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/event_grid_data_format.rb +28 -0
  205. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +177 -0
  206. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/event_hub_data_format.rb +28 -0
  207. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  208. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  209. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/identity.rb +95 -0
  210. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/identity_type.rb +16 -0
  211. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  212. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +176 -0
  213. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb +28 -0
  214. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/key_vault_properties.rb +68 -0
  215. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/language_extension.rb +47 -0
  216. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/language_extension_name.rb +16 -0
  217. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/language_extensions_list.rb +55 -0
  218. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  219. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  220. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  221. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  222. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  223. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/principal_type.rb +17 -0
  224. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  225. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  226. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  227. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  228. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/read_write_database.rb +147 -0
  229. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  230. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  231. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  232. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  233. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  234. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/state.rb +23 -0
  235. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  236. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  237. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/type.rb +16 -0
  238. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  239. data/lib/2020-02-15/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  240. data/lib/2020-02-15/generated/azure_mgmt_kusto/operations.rb +221 -0
  241. data/lib/2020-06-14/generated/azure_mgmt_kusto.rb +110 -0
  242. data/lib/2020-06-14/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  243. data/lib/2020-06-14/generated/azure_mgmt_kusto/cluster_principal_assignments.rb +656 -0
  244. data/lib/2020-06-14/generated/azure_mgmt_kusto/clusters.rb +2087 -0
  245. data/lib/2020-06-14/generated/azure_mgmt_kusto/data_connections.rb +1033 -0
  246. data/lib/2020-06-14/generated/azure_mgmt_kusto/database_principal_assignments.rb +683 -0
  247. data/lib/2020-06-14/generated/azure_mgmt_kusto/databases.rb +1169 -0
  248. data/lib/2020-06-14/generated/azure_mgmt_kusto/kusto_management_client.rb +157 -0
  249. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  250. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  251. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  252. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  253. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  254. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  255. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku.rb +77 -0
  256. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku_name.rb +35 -0
  257. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  258. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/blob_storage_event_type.rb +16 -0
  259. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  260. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  261. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster.rb +315 -0
  262. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  263. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  264. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb +147 -0
  265. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb +62 -0
  266. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb +56 -0
  267. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_role.rb +16 -0
  268. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_update.rb +302 -0
  269. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/compression.rb +16 -0
  270. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  271. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +61 -0
  272. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  273. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  274. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  275. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  276. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database.rb +82 -0
  277. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  278. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  279. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment.rb +148 -0
  280. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb +62 -0
  281. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb +56 -0
  282. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  283. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  284. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  285. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  286. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  287. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  288. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb +56 -0
  289. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +184 -0
  290. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_grid_data_format.rb +30 -0
  291. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +178 -0
  292. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_hub_data_format.rb +30 -0
  293. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  294. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  295. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity.rb +95 -0
  296. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity_type.rb +16 -0
  297. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  298. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +177 -0
  299. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb +30 -0
  300. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/key_vault_properties.rb +68 -0
  301. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extension.rb +47 -0
  302. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extension_name.rb +16 -0
  303. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extensions_list.rb +55 -0
  304. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  305. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  306. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  307. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  308. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  309. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/principal_type.rb +17 -0
  310. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  311. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  312. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  313. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  314. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/read_write_database.rb +147 -0
  315. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  316. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  317. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  318. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  319. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  320. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/state.rb +23 -0
  321. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  322. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  323. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/type.rb +16 -0
  324. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  325. data/lib/2020-06-14/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  326. data/lib/2020-06-14/generated/azure_mgmt_kusto/operations.rb +221 -0
  327. data/lib/2020-09-18/generated/azure_mgmt_kusto.rb +111 -0
  328. data/lib/2020-09-18/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  329. data/lib/2020-09-18/generated/azure_mgmt_kusto/cluster_principal_assignments.rb +656 -0
  330. data/lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb +2087 -0
  331. data/lib/2020-09-18/generated/azure_mgmt_kusto/data_connections.rb +1033 -0
  332. data/lib/2020-09-18/generated/azure_mgmt_kusto/database_principal_assignments.rb +683 -0
  333. data/lib/2020-09-18/generated/azure_mgmt_kusto/databases.rb +1169 -0
  334. data/lib/2020-09-18/generated/azure_mgmt_kusto/kusto_management_client.rb +157 -0
  335. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  336. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  337. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  338. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  339. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  340. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  341. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/azure_sku.rb +78 -0
  342. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/azure_sku_name.rb +36 -0
  343. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  344. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/blob_storage_event_type.rb +16 -0
  345. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  346. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  347. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/cluster.rb +327 -0
  348. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  349. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  350. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb +147 -0
  351. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb +62 -0
  352. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb +56 -0
  353. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/cluster_principal_role.rb +16 -0
  354. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/cluster_update.rb +314 -0
  355. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/compression.rb +16 -0
  356. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  357. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +61 -0
  358. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  359. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  360. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  361. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  362. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database.rb +82 -0
  363. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  364. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  365. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database_principal_assignment.rb +148 -0
  366. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb +62 -0
  367. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb +56 -0
  368. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  369. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  370. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  371. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  372. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  373. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  374. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb +56 -0
  375. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/engine_type.rb +16 -0
  376. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +198 -0
  377. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/event_grid_data_format.rb +30 -0
  378. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +192 -0
  379. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/event_hub_data_format.rb +30 -0
  380. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  381. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  382. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/identity.rb +97 -0
  383. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/identity_type.rb +18 -0
  384. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  385. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +191 -0
  386. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb +30 -0
  387. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/key_vault_properties.rb +80 -0
  388. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/language_extension.rb +47 -0
  389. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/language_extension_name.rb +16 -0
  390. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/language_extensions_list.rb +55 -0
  391. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  392. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  393. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  394. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  395. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  396. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/principal_type.rb +17 -0
  397. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  398. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  399. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  400. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  401. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/read_write_database.rb +147 -0
  402. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  403. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  404. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  405. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  406. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  407. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/state.rb +23 -0
  408. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  409. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  410. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/type.rb +16 -0
  411. data/lib/2020-09-18/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  412. data/lib/2020-09-18/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  413. data/lib/2020-09-18/generated/azure_mgmt_kusto/operations.rb +221 -0
  414. data/lib/azure_mgmt_kusto.rb +7 -2
  415. data/lib/profiles/latest/modules/kusto_profile_module.rb +248 -126
  416. data/lib/version.rb +1 -1
  417. metadata +413 -5
@@ -0,0 +1,1702 @@
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::Kusto::Mgmt::V2019_11_09
7
+ #
8
+ # The Azure Kusto management API provides a RESTful set of web services that
9
+ # interact with Azure Kusto services to manage your clusters and databases.
10
+ # The API enables you to create, update, and delete clusters and databases.
11
+ #
12
+ class Clusters
13
+ include MsRestAzure
14
+
15
+ #
16
+ # Creates and initializes a new instance of the Clusters class.
17
+ # @param client service class for accessing basic functionality.
18
+ #
19
+ def initialize(client)
20
+ @client = client
21
+ end
22
+
23
+ # @return [KustoManagementClient] reference to the KustoManagementClient
24
+ attr_reader :client
25
+
26
+ #
27
+ # Gets a Kusto cluster.
28
+ #
29
+ # @param resource_group_name [String] The name of the resource group containing
30
+ # the Kusto cluster.
31
+ # @param cluster_name [String] The name of the Kusto cluster.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [Cluster] operation results.
36
+ #
37
+ def get(resource_group_name, cluster_name, custom_headers:nil)
38
+ response = get_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
39
+ response.body unless response.nil?
40
+ end
41
+
42
+ #
43
+ # Gets a Kusto cluster.
44
+ #
45
+ # @param resource_group_name [String] The name of the resource group containing
46
+ # the Kusto cluster.
47
+ # @param cluster_name [String] The name of the Kusto cluster.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def get_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
54
+ get_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Gets a Kusto cluster.
59
+ #
60
+ # @param resource_group_name [String] The name of the resource group containing
61
+ # the Kusto cluster.
62
+ # @param cluster_name [String] The name of the Kusto cluster.
63
+ # @param [Hash{String => String}] A hash of custom headers that will be added
64
+ # to the HTTP request.
65
+ #
66
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
67
+ #
68
+ def get_async(resource_group_name, cluster_name, custom_headers:nil)
69
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
70
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
71
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
72
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
73
+
74
+
75
+ request_headers = {}
76
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
77
+
78
+ # Set Headers
79
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
80
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
81
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}'
82
+
83
+ request_url = @base_url || @client.base_url
84
+
85
+ options = {
86
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
87
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
88
+ query_params: {'api-version' => @client.api_version},
89
+ headers: request_headers.merge(custom_headers || {}),
90
+ base_url: request_url
91
+ }
92
+ promise = @client.make_request_async(:get, path_template, options)
93
+
94
+ promise = promise.then do |result|
95
+ http_response = result.response
96
+ status_code = http_response.status
97
+ response_content = http_response.body
98
+ unless status_code == 200
99
+ error_model = JSON.load(response_content)
100
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
101
+ end
102
+
103
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
104
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
105
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
106
+ # Deserialize Response
107
+ if status_code == 200
108
+ begin
109
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
110
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::Cluster.mapper()
111
+ result.body = @client.deserialize(result_mapper, parsed_response)
112
+ rescue Exception => e
113
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
114
+ end
115
+ end
116
+
117
+ result
118
+ end
119
+
120
+ promise.execute
121
+ end
122
+
123
+ #
124
+ # Create or update a Kusto cluster.
125
+ #
126
+ # @param resource_group_name [String] The name of the resource group containing
127
+ # the Kusto cluster.
128
+ # @param cluster_name [String] The name of the Kusto cluster.
129
+ # @param parameters [Cluster] The Kusto cluster parameters supplied to the
130
+ # CreateOrUpdate operation.
131
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
132
+ # will be added to the HTTP request.
133
+ #
134
+ # @return [Cluster] operation results.
135
+ #
136
+ def create_or_update(resource_group_name, cluster_name, parameters, custom_headers:nil)
137
+ response = create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
138
+ response.body unless response.nil?
139
+ end
140
+
141
+ #
142
+ # @param resource_group_name [String] The name of the resource group containing
143
+ # the Kusto cluster.
144
+ # @param cluster_name [String] The name of the Kusto cluster.
145
+ # @param parameters [Cluster] The Kusto cluster parameters supplied to the
146
+ # CreateOrUpdate operation.
147
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
148
+ # will be added to the HTTP request.
149
+ #
150
+ # @return [Concurrent::Promise] promise which provides async access to http
151
+ # response.
152
+ #
153
+ def create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
154
+ # Send request
155
+ promise = begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers)
156
+
157
+ promise = promise.then do |response|
158
+ # Defining deserialization method.
159
+ deserialize_method = lambda do |parsed_response|
160
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::Cluster.mapper()
161
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
162
+ end
163
+
164
+ # Waiting for response.
165
+ @client.get_long_running_operation_result(response, deserialize_method)
166
+ end
167
+
168
+ promise
169
+ end
170
+
171
+ #
172
+ # Update a Kusto cluster.
173
+ #
174
+ # @param resource_group_name [String] The name of the resource group containing
175
+ # the Kusto cluster.
176
+ # @param cluster_name [String] The name of the Kusto cluster.
177
+ # @param parameters [ClusterUpdate] The Kusto cluster parameters supplied to
178
+ # the Update operation.
179
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
180
+ # will be added to the HTTP request.
181
+ #
182
+ # @return [Cluster] operation results.
183
+ #
184
+ def update(resource_group_name, cluster_name, parameters, custom_headers:nil)
185
+ response = update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
186
+ response.body unless response.nil?
187
+ end
188
+
189
+ #
190
+ # @param resource_group_name [String] The name of the resource group containing
191
+ # the Kusto cluster.
192
+ # @param cluster_name [String] The name of the Kusto cluster.
193
+ # @param parameters [ClusterUpdate] The Kusto cluster parameters supplied to
194
+ # the Update operation.
195
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
196
+ # will be added to the HTTP request.
197
+ #
198
+ # @return [Concurrent::Promise] promise which provides async access to http
199
+ # response.
200
+ #
201
+ def update_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
202
+ # Send request
203
+ promise = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers)
204
+
205
+ promise = promise.then do |response|
206
+ # Defining deserialization method.
207
+ deserialize_method = lambda do |parsed_response|
208
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::Cluster.mapper()
209
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
210
+ end
211
+
212
+ # Waiting for response.
213
+ @client.get_long_running_operation_result(response, deserialize_method)
214
+ end
215
+
216
+ promise
217
+ end
218
+
219
+ #
220
+ # Deletes a Kusto cluster.
221
+ #
222
+ # @param resource_group_name [String] The name of the resource group containing
223
+ # the Kusto cluster.
224
+ # @param cluster_name [String] The name of the Kusto cluster.
225
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
226
+ # will be added to the HTTP request.
227
+ #
228
+ def delete(resource_group_name, cluster_name, custom_headers:nil)
229
+ response = delete_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
230
+ nil
231
+ end
232
+
233
+ #
234
+ # @param resource_group_name [String] The name of the resource group containing
235
+ # the Kusto cluster.
236
+ # @param cluster_name [String] The name of the Kusto cluster.
237
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
238
+ # will be added to the HTTP request.
239
+ #
240
+ # @return [Concurrent::Promise] promise which provides async access to http
241
+ # response.
242
+ #
243
+ def delete_async(resource_group_name, cluster_name, custom_headers:nil)
244
+ # Send request
245
+ promise = begin_delete_async(resource_group_name, cluster_name, custom_headers:custom_headers)
246
+
247
+ promise = promise.then do |response|
248
+ # Defining deserialization method.
249
+ deserialize_method = lambda do |parsed_response|
250
+ end
251
+
252
+ # Waiting for response.
253
+ @client.get_long_running_operation_result(response, deserialize_method)
254
+ end
255
+
256
+ promise
257
+ end
258
+
259
+ #
260
+ # Stops a Kusto cluster.
261
+ #
262
+ # @param resource_group_name [String] The name of the resource group containing
263
+ # the Kusto cluster.
264
+ # @param cluster_name [String] The name of the Kusto cluster.
265
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
266
+ # will be added to the HTTP request.
267
+ #
268
+ def stop(resource_group_name, cluster_name, custom_headers:nil)
269
+ response = stop_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
270
+ nil
271
+ end
272
+
273
+ #
274
+ # @param resource_group_name [String] The name of the resource group containing
275
+ # the Kusto cluster.
276
+ # @param cluster_name [String] The name of the Kusto cluster.
277
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
278
+ # will be added to the HTTP request.
279
+ #
280
+ # @return [Concurrent::Promise] promise which provides async access to http
281
+ # response.
282
+ #
283
+ def stop_async(resource_group_name, cluster_name, custom_headers:nil)
284
+ # Send request
285
+ promise = begin_stop_async(resource_group_name, cluster_name, custom_headers:custom_headers)
286
+
287
+ promise = promise.then do |response|
288
+ # Defining deserialization method.
289
+ deserialize_method = lambda do |parsed_response|
290
+ end
291
+
292
+ # Waiting for response.
293
+ @client.get_long_running_operation_result(response, deserialize_method)
294
+ end
295
+
296
+ promise
297
+ end
298
+
299
+ #
300
+ # Starts a Kusto cluster.
301
+ #
302
+ # @param resource_group_name [String] The name of the resource group containing
303
+ # the Kusto cluster.
304
+ # @param cluster_name [String] The name of the Kusto cluster.
305
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
306
+ # will be added to the HTTP request.
307
+ #
308
+ def start(resource_group_name, cluster_name, custom_headers:nil)
309
+ response = start_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
310
+ nil
311
+ end
312
+
313
+ #
314
+ # @param resource_group_name [String] The name of the resource group containing
315
+ # the Kusto cluster.
316
+ # @param cluster_name [String] The name of the Kusto cluster.
317
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
318
+ # will be added to the HTTP request.
319
+ #
320
+ # @return [Concurrent::Promise] promise which provides async access to http
321
+ # response.
322
+ #
323
+ def start_async(resource_group_name, cluster_name, custom_headers:nil)
324
+ # Send request
325
+ promise = begin_start_async(resource_group_name, cluster_name, custom_headers:custom_headers)
326
+
327
+ promise = promise.then do |response|
328
+ # Defining deserialization method.
329
+ deserialize_method = lambda do |parsed_response|
330
+ end
331
+
332
+ # Waiting for response.
333
+ @client.get_long_running_operation_result(response, deserialize_method)
334
+ end
335
+
336
+ promise
337
+ end
338
+
339
+ #
340
+ # Returns a list of databases that are owned by this cluster and were followed
341
+ # by another cluster.
342
+ #
343
+ # @param resource_group_name [String] The name of the resource group containing
344
+ # the Kusto cluster.
345
+ # @param cluster_name [String] The name of the Kusto cluster.
346
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
347
+ # will be added to the HTTP request.
348
+ #
349
+ # @return [FollowerDatabaseListResult] operation results.
350
+ #
351
+ def list_follower_databases(resource_group_name, cluster_name, custom_headers:nil)
352
+ response = list_follower_databases_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
353
+ response.body unless response.nil?
354
+ end
355
+
356
+ #
357
+ # Returns a list of databases that are owned by this cluster and were followed
358
+ # by another cluster.
359
+ #
360
+ # @param resource_group_name [String] The name of the resource group containing
361
+ # the Kusto cluster.
362
+ # @param cluster_name [String] The name of the Kusto cluster.
363
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
364
+ # will be added to the HTTP request.
365
+ #
366
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
367
+ #
368
+ def list_follower_databases_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
369
+ list_follower_databases_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
370
+ end
371
+
372
+ #
373
+ # Returns a list of databases that are owned by this cluster and were followed
374
+ # by another cluster.
375
+ #
376
+ # @param resource_group_name [String] The name of the resource group containing
377
+ # the Kusto cluster.
378
+ # @param cluster_name [String] The name of the Kusto cluster.
379
+ # @param [Hash{String => String}] A hash of custom headers that will be added
380
+ # to the HTTP request.
381
+ #
382
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
383
+ #
384
+ def list_follower_databases_async(resource_group_name, cluster_name, custom_headers:nil)
385
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
386
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
387
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
388
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
389
+
390
+
391
+ request_headers = {}
392
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
393
+
394
+ # Set Headers
395
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
396
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
397
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases'
398
+
399
+ request_url = @base_url || @client.base_url
400
+
401
+ options = {
402
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
403
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
404
+ query_params: {'api-version' => @client.api_version},
405
+ headers: request_headers.merge(custom_headers || {}),
406
+ base_url: request_url
407
+ }
408
+ promise = @client.make_request_async(:post, path_template, options)
409
+
410
+ promise = promise.then do |result|
411
+ http_response = result.response
412
+ status_code = http_response.status
413
+ response_content = http_response.body
414
+ unless status_code == 200
415
+ error_model = JSON.load(response_content)
416
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
417
+ end
418
+
419
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
420
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
421
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
422
+ # Deserialize Response
423
+ if status_code == 200
424
+ begin
425
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
426
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::FollowerDatabaseListResult.mapper()
427
+ result.body = @client.deserialize(result_mapper, parsed_response)
428
+ rescue Exception => e
429
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
430
+ end
431
+ end
432
+
433
+ result
434
+ end
435
+
436
+ promise.execute
437
+ end
438
+
439
+ #
440
+ # Detaches all followers of a database owned by this cluster.
441
+ #
442
+ # @param resource_group_name [String] The name of the resource group containing
443
+ # the Kusto cluster.
444
+ # @param cluster_name [String] The name of the Kusto cluster.
445
+ # @param follower_database_to_remove [FollowerDatabaseDefinition] The follower
446
+ # databases properties to remove.
447
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
448
+ # will be added to the HTTP request.
449
+ #
450
+ def detach_follower_databases(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:nil)
451
+ response = detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:custom_headers).value!
452
+ nil
453
+ end
454
+
455
+ #
456
+ # @param resource_group_name [String] The name of the resource group containing
457
+ # the Kusto cluster.
458
+ # @param cluster_name [String] The name of the Kusto cluster.
459
+ # @param follower_database_to_remove [FollowerDatabaseDefinition] The follower
460
+ # databases properties to remove.
461
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
462
+ # will be added to the HTTP request.
463
+ #
464
+ # @return [Concurrent::Promise] promise which provides async access to http
465
+ # response.
466
+ #
467
+ def detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:nil)
468
+ # Send request
469
+ promise = begin_detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:custom_headers)
470
+
471
+ promise = promise.then do |response|
472
+ # Defining deserialization method.
473
+ deserialize_method = lambda do |parsed_response|
474
+ end
475
+
476
+ # Waiting for response.
477
+ @client.get_long_running_operation_result(response, deserialize_method)
478
+ end
479
+
480
+ promise
481
+ end
482
+
483
+ #
484
+ # Diagnoses network connectivity status for external resources on which the
485
+ # service is dependent on.
486
+ #
487
+ # @param resource_group_name [String] The name of the resource group containing
488
+ # the Kusto cluster.
489
+ # @param cluster_name [String] The name of the Kusto cluster.
490
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
491
+ # will be added to the HTTP request.
492
+ #
493
+ # @return [DiagnoseVirtualNetworkResult] operation results.
494
+ #
495
+ def diagnose_virtual_network(resource_group_name, cluster_name, custom_headers:nil)
496
+ response = diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
497
+ response.body unless response.nil?
498
+ end
499
+
500
+ #
501
+ # @param resource_group_name [String] The name of the resource group containing
502
+ # the Kusto cluster.
503
+ # @param cluster_name [String] The name of the Kusto cluster.
504
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
505
+ # will be added to the HTTP request.
506
+ #
507
+ # @return [Concurrent::Promise] promise which provides async access to http
508
+ # response.
509
+ #
510
+ def diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:nil)
511
+ # Send request
512
+ promise = begin_diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:custom_headers)
513
+
514
+ promise = promise.then do |response|
515
+ # Defining deserialization method.
516
+ deserialize_method = lambda do |parsed_response|
517
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::DiagnoseVirtualNetworkResult.mapper()
518
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
519
+ end
520
+
521
+ # Waiting for response.
522
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
523
+ end
524
+
525
+ promise
526
+ end
527
+
528
+ #
529
+ # Lists all Kusto clusters within a resource group.
530
+ #
531
+ # @param resource_group_name [String] The name of the resource group containing
532
+ # the Kusto cluster.
533
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
534
+ # will be added to the HTTP request.
535
+ #
536
+ # @return [ClusterListResult] operation results.
537
+ #
538
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
539
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
540
+ response.body unless response.nil?
541
+ end
542
+
543
+ #
544
+ # Lists all Kusto clusters within a resource group.
545
+ #
546
+ # @param resource_group_name [String] The name of the resource group containing
547
+ # the Kusto cluster.
548
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
549
+ # will be added to the HTTP request.
550
+ #
551
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
552
+ #
553
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
554
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
555
+ end
556
+
557
+ #
558
+ # Lists all Kusto clusters within a resource group.
559
+ #
560
+ # @param resource_group_name [String] The name of the resource group containing
561
+ # the Kusto cluster.
562
+ # @param [Hash{String => String}] A hash of custom headers that will be added
563
+ # to the HTTP request.
564
+ #
565
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
566
+ #
567
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
568
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
569
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
570
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
571
+
572
+
573
+ request_headers = {}
574
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
575
+
576
+ # Set Headers
577
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
578
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
579
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters'
580
+
581
+ request_url = @base_url || @client.base_url
582
+
583
+ options = {
584
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
585
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
586
+ query_params: {'api-version' => @client.api_version},
587
+ headers: request_headers.merge(custom_headers || {}),
588
+ base_url: request_url
589
+ }
590
+ promise = @client.make_request_async(:get, path_template, options)
591
+
592
+ promise = promise.then do |result|
593
+ http_response = result.response
594
+ status_code = http_response.status
595
+ response_content = http_response.body
596
+ unless status_code == 200
597
+ error_model = JSON.load(response_content)
598
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
599
+ end
600
+
601
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
602
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
603
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
604
+ # Deserialize Response
605
+ if status_code == 200
606
+ begin
607
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
608
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::ClusterListResult.mapper()
609
+ result.body = @client.deserialize(result_mapper, parsed_response)
610
+ rescue Exception => e
611
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
612
+ end
613
+ end
614
+
615
+ result
616
+ end
617
+
618
+ promise.execute
619
+ end
620
+
621
+ #
622
+ # Lists all Kusto clusters within a subscription.
623
+ #
624
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
625
+ # will be added to the HTTP request.
626
+ #
627
+ # @return [ClusterListResult] operation results.
628
+ #
629
+ def list(custom_headers:nil)
630
+ response = list_async(custom_headers:custom_headers).value!
631
+ response.body unless response.nil?
632
+ end
633
+
634
+ #
635
+ # Lists all Kusto clusters within a subscription.
636
+ #
637
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
638
+ # will be added to the HTTP request.
639
+ #
640
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
641
+ #
642
+ def list_with_http_info(custom_headers:nil)
643
+ list_async(custom_headers:custom_headers).value!
644
+ end
645
+
646
+ #
647
+ # Lists all Kusto clusters within a subscription.
648
+ #
649
+ # @param [Hash{String => String}] A hash of custom headers that will be added
650
+ # to the HTTP request.
651
+ #
652
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
653
+ #
654
+ def list_async(custom_headers:nil)
655
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
656
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
657
+
658
+
659
+ request_headers = {}
660
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
661
+
662
+ # Set Headers
663
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
664
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
665
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters'
666
+
667
+ request_url = @base_url || @client.base_url
668
+
669
+ options = {
670
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
671
+ path_params: {'subscriptionId' => @client.subscription_id},
672
+ query_params: {'api-version' => @client.api_version},
673
+ headers: request_headers.merge(custom_headers || {}),
674
+ base_url: request_url
675
+ }
676
+ promise = @client.make_request_async(:get, path_template, options)
677
+
678
+ promise = promise.then do |result|
679
+ http_response = result.response
680
+ status_code = http_response.status
681
+ response_content = http_response.body
682
+ unless status_code == 200
683
+ error_model = JSON.load(response_content)
684
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
685
+ end
686
+
687
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
688
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
689
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
690
+ # Deserialize Response
691
+ if status_code == 200
692
+ begin
693
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
694
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::ClusterListResult.mapper()
695
+ result.body = @client.deserialize(result_mapper, parsed_response)
696
+ rescue Exception => e
697
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
698
+ end
699
+ end
700
+
701
+ result
702
+ end
703
+
704
+ promise.execute
705
+ end
706
+
707
+ #
708
+ # Lists eligible SKUs for Kusto resource provider.
709
+ #
710
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
711
+ # will be added to the HTTP request.
712
+ #
713
+ # @return [SkuDescriptionList] operation results.
714
+ #
715
+ def list_skus(custom_headers:nil)
716
+ response = list_skus_async(custom_headers:custom_headers).value!
717
+ response.body unless response.nil?
718
+ end
719
+
720
+ #
721
+ # Lists eligible SKUs for Kusto resource provider.
722
+ #
723
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
724
+ # will be added to the HTTP request.
725
+ #
726
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
727
+ #
728
+ def list_skus_with_http_info(custom_headers:nil)
729
+ list_skus_async(custom_headers:custom_headers).value!
730
+ end
731
+
732
+ #
733
+ # Lists eligible SKUs for Kusto resource provider.
734
+ #
735
+ # @param [Hash{String => String}] A hash of custom headers that will be added
736
+ # to the HTTP request.
737
+ #
738
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
739
+ #
740
+ def list_skus_async(custom_headers:nil)
741
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
742
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
743
+
744
+
745
+ request_headers = {}
746
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
747
+
748
+ # Set Headers
749
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
750
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
751
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus'
752
+
753
+ request_url = @base_url || @client.base_url
754
+
755
+ options = {
756
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
757
+ path_params: {'subscriptionId' => @client.subscription_id},
758
+ query_params: {'api-version' => @client.api_version},
759
+ headers: request_headers.merge(custom_headers || {}),
760
+ base_url: request_url
761
+ }
762
+ promise = @client.make_request_async(:get, path_template, options)
763
+
764
+ promise = promise.then do |result|
765
+ http_response = result.response
766
+ status_code = http_response.status
767
+ response_content = http_response.body
768
+ unless status_code == 200
769
+ error_model = JSON.load(response_content)
770
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
771
+ end
772
+
773
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
774
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
775
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
776
+ # Deserialize Response
777
+ if status_code == 200
778
+ begin
779
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
780
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::SkuDescriptionList.mapper()
781
+ result.body = @client.deserialize(result_mapper, parsed_response)
782
+ rescue Exception => e
783
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
784
+ end
785
+ end
786
+
787
+ result
788
+ end
789
+
790
+ promise.execute
791
+ end
792
+
793
+ #
794
+ # Checks that the cluster name is valid and is not already in use.
795
+ #
796
+ # @param location [String] Azure location.
797
+ # @param cluster_name [ClusterCheckNameRequest] The name of the cluster.
798
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
799
+ # will be added to the HTTP request.
800
+ #
801
+ # @return [CheckNameResult] operation results.
802
+ #
803
+ def check_name_availability(location, cluster_name, custom_headers:nil)
804
+ response = check_name_availability_async(location, cluster_name, custom_headers:custom_headers).value!
805
+ response.body unless response.nil?
806
+ end
807
+
808
+ #
809
+ # Checks that the cluster name is valid and is not already in use.
810
+ #
811
+ # @param location [String] Azure location.
812
+ # @param cluster_name [ClusterCheckNameRequest] The name of the cluster.
813
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
814
+ # will be added to the HTTP request.
815
+ #
816
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
817
+ #
818
+ def check_name_availability_with_http_info(location, cluster_name, custom_headers:nil)
819
+ check_name_availability_async(location, cluster_name, custom_headers:custom_headers).value!
820
+ end
821
+
822
+ #
823
+ # Checks that the cluster name is valid and is not already in use.
824
+ #
825
+ # @param location [String] Azure location.
826
+ # @param cluster_name [ClusterCheckNameRequest] The name of the cluster.
827
+ # @param [Hash{String => String}] A hash of custom headers that will be added
828
+ # to the HTTP request.
829
+ #
830
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
831
+ #
832
+ def check_name_availability_async(location, cluster_name, custom_headers:nil)
833
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
834
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
835
+ fail ArgumentError, 'location is nil' if location.nil?
836
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
837
+
838
+
839
+ request_headers = {}
840
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
841
+
842
+ # Set Headers
843
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
844
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
845
+
846
+ # Serialize Request
847
+ request_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::ClusterCheckNameRequest.mapper()
848
+ request_content = @client.serialize(request_mapper, cluster_name)
849
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
850
+
851
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability'
852
+
853
+ request_url = @base_url || @client.base_url
854
+
855
+ options = {
856
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
857
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
858
+ query_params: {'api-version' => @client.api_version},
859
+ body: request_content,
860
+ headers: request_headers.merge(custom_headers || {}),
861
+ base_url: request_url
862
+ }
863
+ promise = @client.make_request_async(:post, path_template, options)
864
+
865
+ promise = promise.then do |result|
866
+ http_response = result.response
867
+ status_code = http_response.status
868
+ response_content = http_response.body
869
+ unless status_code == 200
870
+ error_model = JSON.load(response_content)
871
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
872
+ end
873
+
874
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
875
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
876
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
877
+ # Deserialize Response
878
+ if status_code == 200
879
+ begin
880
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
881
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::CheckNameResult.mapper()
882
+ result.body = @client.deserialize(result_mapper, parsed_response)
883
+ rescue Exception => e
884
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
885
+ end
886
+ end
887
+
888
+ result
889
+ end
890
+
891
+ promise.execute
892
+ end
893
+
894
+ #
895
+ # Returns the SKUs available for the provided resource.
896
+ #
897
+ # @param resource_group_name [String] The name of the resource group containing
898
+ # the Kusto cluster.
899
+ # @param cluster_name [String] The name of the Kusto cluster.
900
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
901
+ # will be added to the HTTP request.
902
+ #
903
+ # @return [ListResourceSkusResult] operation results.
904
+ #
905
+ def list_skus_by_resource(resource_group_name, cluster_name, custom_headers:nil)
906
+ response = list_skus_by_resource_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
907
+ response.body unless response.nil?
908
+ end
909
+
910
+ #
911
+ # Returns the SKUs available for the provided resource.
912
+ #
913
+ # @param resource_group_name [String] The name of the resource group containing
914
+ # the Kusto cluster.
915
+ # @param cluster_name [String] The name of the Kusto cluster.
916
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
917
+ # will be added to the HTTP request.
918
+ #
919
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
920
+ #
921
+ def list_skus_by_resource_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
922
+ list_skus_by_resource_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
923
+ end
924
+
925
+ #
926
+ # Returns the SKUs available for the provided resource.
927
+ #
928
+ # @param resource_group_name [String] The name of the resource group containing
929
+ # the Kusto cluster.
930
+ # @param cluster_name [String] The name of the Kusto cluster.
931
+ # @param [Hash{String => String}] A hash of custom headers that will be added
932
+ # to the HTTP request.
933
+ #
934
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
935
+ #
936
+ def list_skus_by_resource_async(resource_group_name, cluster_name, custom_headers:nil)
937
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
938
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
939
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
940
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
941
+
942
+
943
+ request_headers = {}
944
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
945
+
946
+ # Set Headers
947
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
948
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
949
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus'
950
+
951
+ request_url = @base_url || @client.base_url
952
+
953
+ options = {
954
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
955
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
956
+ query_params: {'api-version' => @client.api_version},
957
+ headers: request_headers.merge(custom_headers || {}),
958
+ base_url: request_url
959
+ }
960
+ promise = @client.make_request_async(:get, path_template, options)
961
+
962
+ promise = promise.then do |result|
963
+ http_response = result.response
964
+ status_code = http_response.status
965
+ response_content = http_response.body
966
+ unless status_code == 200
967
+ error_model = JSON.load(response_content)
968
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
969
+ end
970
+
971
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
972
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
973
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
974
+ # Deserialize Response
975
+ if status_code == 200
976
+ begin
977
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
978
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::ListResourceSkusResult.mapper()
979
+ result.body = @client.deserialize(result_mapper, parsed_response)
980
+ rescue Exception => e
981
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
982
+ end
983
+ end
984
+
985
+ result
986
+ end
987
+
988
+ promise.execute
989
+ end
990
+
991
+ #
992
+ # Create or update a Kusto cluster.
993
+ #
994
+ # @param resource_group_name [String] The name of the resource group containing
995
+ # the Kusto cluster.
996
+ # @param cluster_name [String] The name of the Kusto cluster.
997
+ # @param parameters [Cluster] The Kusto cluster parameters supplied to the
998
+ # CreateOrUpdate operation.
999
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1000
+ # will be added to the HTTP request.
1001
+ #
1002
+ # @return [Cluster] operation results.
1003
+ #
1004
+ def begin_create_or_update(resource_group_name, cluster_name, parameters, custom_headers:nil)
1005
+ response = begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
1006
+ response.body unless response.nil?
1007
+ end
1008
+
1009
+ #
1010
+ # Create or update a Kusto cluster.
1011
+ #
1012
+ # @param resource_group_name [String] The name of the resource group containing
1013
+ # the Kusto cluster.
1014
+ # @param cluster_name [String] The name of the Kusto cluster.
1015
+ # @param parameters [Cluster] The Kusto cluster parameters supplied to the
1016
+ # CreateOrUpdate operation.
1017
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1018
+ # will be added to the HTTP request.
1019
+ #
1020
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1021
+ #
1022
+ def begin_create_or_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil)
1023
+ begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
1024
+ end
1025
+
1026
+ #
1027
+ # Create or update a Kusto cluster.
1028
+ #
1029
+ # @param resource_group_name [String] The name of the resource group containing
1030
+ # the Kusto cluster.
1031
+ # @param cluster_name [String] The name of the Kusto cluster.
1032
+ # @param parameters [Cluster] The Kusto cluster parameters supplied to the
1033
+ # CreateOrUpdate operation.
1034
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1035
+ # to the HTTP request.
1036
+ #
1037
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1038
+ #
1039
+ def begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
1040
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1041
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
1042
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1043
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1044
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1045
+
1046
+
1047
+ request_headers = {}
1048
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1049
+
1050
+ # Set Headers
1051
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1052
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1053
+
1054
+ # Serialize Request
1055
+ request_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::Cluster.mapper()
1056
+ request_content = @client.serialize(request_mapper, parameters)
1057
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1058
+
1059
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}'
1060
+
1061
+ request_url = @base_url || @client.base_url
1062
+
1063
+ options = {
1064
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1065
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
1066
+ query_params: {'api-version' => @client.api_version},
1067
+ body: request_content,
1068
+ headers: request_headers.merge(custom_headers || {}),
1069
+ base_url: request_url
1070
+ }
1071
+ promise = @client.make_request_async(:put, path_template, options)
1072
+
1073
+ promise = promise.then do |result|
1074
+ http_response = result.response
1075
+ status_code = http_response.status
1076
+ response_content = http_response.body
1077
+ unless status_code == 200 || status_code == 201
1078
+ error_model = JSON.load(response_content)
1079
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1080
+ end
1081
+
1082
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1083
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1084
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1085
+ # Deserialize Response
1086
+ if status_code == 200
1087
+ begin
1088
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1089
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::Cluster.mapper()
1090
+ result.body = @client.deserialize(result_mapper, parsed_response)
1091
+ rescue Exception => e
1092
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1093
+ end
1094
+ end
1095
+ # Deserialize Response
1096
+ if status_code == 201
1097
+ begin
1098
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1099
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::Cluster.mapper()
1100
+ result.body = @client.deserialize(result_mapper, parsed_response)
1101
+ rescue Exception => e
1102
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1103
+ end
1104
+ end
1105
+
1106
+ result
1107
+ end
1108
+
1109
+ promise.execute
1110
+ end
1111
+
1112
+ #
1113
+ # Update a Kusto cluster.
1114
+ #
1115
+ # @param resource_group_name [String] The name of the resource group containing
1116
+ # the Kusto cluster.
1117
+ # @param cluster_name [String] The name of the Kusto cluster.
1118
+ # @param parameters [ClusterUpdate] The Kusto cluster parameters supplied to
1119
+ # the Update operation.
1120
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1121
+ # will be added to the HTTP request.
1122
+ #
1123
+ # @return [Cluster] operation results.
1124
+ #
1125
+ def begin_update(resource_group_name, cluster_name, parameters, custom_headers:nil)
1126
+ response = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
1127
+ response.body unless response.nil?
1128
+ end
1129
+
1130
+ #
1131
+ # Update a Kusto cluster.
1132
+ #
1133
+ # @param resource_group_name [String] The name of the resource group containing
1134
+ # the Kusto cluster.
1135
+ # @param cluster_name [String] The name of the Kusto cluster.
1136
+ # @param parameters [ClusterUpdate] The Kusto cluster parameters supplied to
1137
+ # the Update operation.
1138
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1139
+ # will be added to the HTTP request.
1140
+ #
1141
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1142
+ #
1143
+ def begin_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil)
1144
+ begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
1145
+ end
1146
+
1147
+ #
1148
+ # Update a Kusto cluster.
1149
+ #
1150
+ # @param resource_group_name [String] The name of the resource group containing
1151
+ # the Kusto cluster.
1152
+ # @param cluster_name [String] The name of the Kusto cluster.
1153
+ # @param parameters [ClusterUpdate] The Kusto cluster parameters supplied to
1154
+ # the Update operation.
1155
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1156
+ # to the HTTP request.
1157
+ #
1158
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1159
+ #
1160
+ def begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
1161
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1162
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
1163
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1164
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1165
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1166
+
1167
+
1168
+ request_headers = {}
1169
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1170
+
1171
+ # Set Headers
1172
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1173
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1174
+
1175
+ # Serialize Request
1176
+ request_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::ClusterUpdate.mapper()
1177
+ request_content = @client.serialize(request_mapper, parameters)
1178
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1179
+
1180
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}'
1181
+
1182
+ request_url = @base_url || @client.base_url
1183
+
1184
+ options = {
1185
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1186
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
1187
+ query_params: {'api-version' => @client.api_version},
1188
+ body: request_content,
1189
+ headers: request_headers.merge(custom_headers || {}),
1190
+ base_url: request_url
1191
+ }
1192
+ promise = @client.make_request_async(:patch, path_template, options)
1193
+
1194
+ promise = promise.then do |result|
1195
+ http_response = result.response
1196
+ status_code = http_response.status
1197
+ response_content = http_response.body
1198
+ unless status_code == 200 || status_code == 201 || status_code == 202
1199
+ error_model = JSON.load(response_content)
1200
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1201
+ end
1202
+
1203
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1204
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1205
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1206
+ # Deserialize Response
1207
+ if status_code == 200
1208
+ begin
1209
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1210
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::Cluster.mapper()
1211
+ result.body = @client.deserialize(result_mapper, parsed_response)
1212
+ rescue Exception => e
1213
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1214
+ end
1215
+ end
1216
+ # Deserialize Response
1217
+ if status_code == 201
1218
+ begin
1219
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1220
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::Cluster.mapper()
1221
+ result.body = @client.deserialize(result_mapper, parsed_response)
1222
+ rescue Exception => e
1223
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1224
+ end
1225
+ end
1226
+ # Deserialize Response
1227
+ if status_code == 202
1228
+ begin
1229
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1230
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::Cluster.mapper()
1231
+ result.body = @client.deserialize(result_mapper, parsed_response)
1232
+ rescue Exception => e
1233
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1234
+ end
1235
+ end
1236
+
1237
+ result
1238
+ end
1239
+
1240
+ promise.execute
1241
+ end
1242
+
1243
+ #
1244
+ # Deletes a Kusto cluster.
1245
+ #
1246
+ # @param resource_group_name [String] The name of the resource group containing
1247
+ # the Kusto cluster.
1248
+ # @param cluster_name [String] The name of the Kusto cluster.
1249
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1250
+ # will be added to the HTTP request.
1251
+ #
1252
+ #
1253
+ def begin_delete(resource_group_name, cluster_name, custom_headers:nil)
1254
+ response = begin_delete_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
1255
+ nil
1256
+ end
1257
+
1258
+ #
1259
+ # Deletes a Kusto cluster.
1260
+ #
1261
+ # @param resource_group_name [String] The name of the resource group containing
1262
+ # the Kusto cluster.
1263
+ # @param cluster_name [String] The name of the Kusto cluster.
1264
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1265
+ # will be added to the HTTP request.
1266
+ #
1267
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1268
+ #
1269
+ def begin_delete_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
1270
+ begin_delete_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
1271
+ end
1272
+
1273
+ #
1274
+ # Deletes a Kusto cluster.
1275
+ #
1276
+ # @param resource_group_name [String] The name of the resource group containing
1277
+ # the Kusto cluster.
1278
+ # @param cluster_name [String] The name of the Kusto cluster.
1279
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1280
+ # to the HTTP request.
1281
+ #
1282
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1283
+ #
1284
+ def begin_delete_async(resource_group_name, cluster_name, custom_headers:nil)
1285
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1286
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
1287
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1288
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1289
+
1290
+
1291
+ request_headers = {}
1292
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1293
+
1294
+ # Set Headers
1295
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1296
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1297
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}'
1298
+
1299
+ request_url = @base_url || @client.base_url
1300
+
1301
+ options = {
1302
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1303
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
1304
+ query_params: {'api-version' => @client.api_version},
1305
+ headers: request_headers.merge(custom_headers || {}),
1306
+ base_url: request_url
1307
+ }
1308
+ promise = @client.make_request_async(:delete, path_template, options)
1309
+
1310
+ promise = promise.then do |result|
1311
+ http_response = result.response
1312
+ status_code = http_response.status
1313
+ response_content = http_response.body
1314
+ unless status_code == 200 || status_code == 202 || status_code == 204
1315
+ error_model = JSON.load(response_content)
1316
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1317
+ end
1318
+
1319
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1320
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1321
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1322
+
1323
+ result
1324
+ end
1325
+
1326
+ promise.execute
1327
+ end
1328
+
1329
+ #
1330
+ # Stops a Kusto cluster.
1331
+ #
1332
+ # @param resource_group_name [String] The name of the resource group containing
1333
+ # the Kusto cluster.
1334
+ # @param cluster_name [String] The name of the Kusto cluster.
1335
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1336
+ # will be added to the HTTP request.
1337
+ #
1338
+ #
1339
+ def begin_stop(resource_group_name, cluster_name, custom_headers:nil)
1340
+ response = begin_stop_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
1341
+ nil
1342
+ end
1343
+
1344
+ #
1345
+ # Stops a Kusto cluster.
1346
+ #
1347
+ # @param resource_group_name [String] The name of the resource group containing
1348
+ # the Kusto cluster.
1349
+ # @param cluster_name [String] The name of the Kusto cluster.
1350
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1351
+ # will be added to the HTTP request.
1352
+ #
1353
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1354
+ #
1355
+ def begin_stop_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
1356
+ begin_stop_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
1357
+ end
1358
+
1359
+ #
1360
+ # Stops a Kusto cluster.
1361
+ #
1362
+ # @param resource_group_name [String] The name of the resource group containing
1363
+ # the Kusto cluster.
1364
+ # @param cluster_name [String] The name of the Kusto cluster.
1365
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1366
+ # to the HTTP request.
1367
+ #
1368
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1369
+ #
1370
+ def begin_stop_async(resource_group_name, cluster_name, custom_headers:nil)
1371
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1372
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
1373
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1374
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1375
+
1376
+
1377
+ request_headers = {}
1378
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1379
+
1380
+ # Set Headers
1381
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1382
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1383
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop'
1384
+
1385
+ request_url = @base_url || @client.base_url
1386
+
1387
+ options = {
1388
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1389
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
1390
+ query_params: {'api-version' => @client.api_version},
1391
+ headers: request_headers.merge(custom_headers || {}),
1392
+ base_url: request_url
1393
+ }
1394
+ promise = @client.make_request_async(:post, path_template, options)
1395
+
1396
+ promise = promise.then do |result|
1397
+ http_response = result.response
1398
+ status_code = http_response.status
1399
+ response_content = http_response.body
1400
+ unless status_code == 200 || status_code == 202
1401
+ error_model = JSON.load(response_content)
1402
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1403
+ end
1404
+
1405
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1406
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1407
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1408
+
1409
+ result
1410
+ end
1411
+
1412
+ promise.execute
1413
+ end
1414
+
1415
+ #
1416
+ # Starts a Kusto cluster.
1417
+ #
1418
+ # @param resource_group_name [String] The name of the resource group containing
1419
+ # the Kusto cluster.
1420
+ # @param cluster_name [String] The name of the Kusto cluster.
1421
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1422
+ # will be added to the HTTP request.
1423
+ #
1424
+ #
1425
+ def begin_start(resource_group_name, cluster_name, custom_headers:nil)
1426
+ response = begin_start_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
1427
+ nil
1428
+ end
1429
+
1430
+ #
1431
+ # Starts a Kusto cluster.
1432
+ #
1433
+ # @param resource_group_name [String] The name of the resource group containing
1434
+ # the Kusto cluster.
1435
+ # @param cluster_name [String] The name of the Kusto cluster.
1436
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1437
+ # will be added to the HTTP request.
1438
+ #
1439
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1440
+ #
1441
+ def begin_start_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
1442
+ begin_start_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
1443
+ end
1444
+
1445
+ #
1446
+ # Starts a Kusto cluster.
1447
+ #
1448
+ # @param resource_group_name [String] The name of the resource group containing
1449
+ # the Kusto cluster.
1450
+ # @param cluster_name [String] The name of the Kusto cluster.
1451
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1452
+ # to the HTTP request.
1453
+ #
1454
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1455
+ #
1456
+ def begin_start_async(resource_group_name, cluster_name, custom_headers:nil)
1457
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1458
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
1459
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1460
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1461
+
1462
+
1463
+ request_headers = {}
1464
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1465
+
1466
+ # Set Headers
1467
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1468
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1469
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start'
1470
+
1471
+ request_url = @base_url || @client.base_url
1472
+
1473
+ options = {
1474
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1475
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
1476
+ query_params: {'api-version' => @client.api_version},
1477
+ headers: request_headers.merge(custom_headers || {}),
1478
+ base_url: request_url
1479
+ }
1480
+ promise = @client.make_request_async(:post, path_template, options)
1481
+
1482
+ promise = promise.then do |result|
1483
+ http_response = result.response
1484
+ status_code = http_response.status
1485
+ response_content = http_response.body
1486
+ unless status_code == 200 || status_code == 202
1487
+ error_model = JSON.load(response_content)
1488
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1489
+ end
1490
+
1491
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1492
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1493
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1494
+
1495
+ result
1496
+ end
1497
+
1498
+ promise.execute
1499
+ end
1500
+
1501
+ #
1502
+ # Detaches all followers of a database owned by this cluster.
1503
+ #
1504
+ # @param resource_group_name [String] The name of the resource group containing
1505
+ # the Kusto cluster.
1506
+ # @param cluster_name [String] The name of the Kusto cluster.
1507
+ # @param follower_database_to_remove [FollowerDatabaseDefinition] The follower
1508
+ # databases properties to remove.
1509
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1510
+ # will be added to the HTTP request.
1511
+ #
1512
+ #
1513
+ def begin_detach_follower_databases(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:nil)
1514
+ response = begin_detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:custom_headers).value!
1515
+ nil
1516
+ end
1517
+
1518
+ #
1519
+ # Detaches all followers of a database owned by this cluster.
1520
+ #
1521
+ # @param resource_group_name [String] The name of the resource group containing
1522
+ # the Kusto cluster.
1523
+ # @param cluster_name [String] The name of the Kusto cluster.
1524
+ # @param follower_database_to_remove [FollowerDatabaseDefinition] The follower
1525
+ # databases properties to remove.
1526
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1527
+ # will be added to the HTTP request.
1528
+ #
1529
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1530
+ #
1531
+ def begin_detach_follower_databases_with_http_info(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:nil)
1532
+ begin_detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:custom_headers).value!
1533
+ end
1534
+
1535
+ #
1536
+ # Detaches all followers of a database owned by this cluster.
1537
+ #
1538
+ # @param resource_group_name [String] The name of the resource group containing
1539
+ # the Kusto cluster.
1540
+ # @param cluster_name [String] The name of the Kusto cluster.
1541
+ # @param follower_database_to_remove [FollowerDatabaseDefinition] The follower
1542
+ # databases properties to remove.
1543
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1544
+ # to the HTTP request.
1545
+ #
1546
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1547
+ #
1548
+ def begin_detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:nil)
1549
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1550
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
1551
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1552
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1553
+ fail ArgumentError, 'follower_database_to_remove is nil' if follower_database_to_remove.nil?
1554
+
1555
+
1556
+ request_headers = {}
1557
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1558
+
1559
+ # Set Headers
1560
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1561
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1562
+
1563
+ # Serialize Request
1564
+ request_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::FollowerDatabaseDefinition.mapper()
1565
+ request_content = @client.serialize(request_mapper, follower_database_to_remove)
1566
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1567
+
1568
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'
1569
+
1570
+ request_url = @base_url || @client.base_url
1571
+
1572
+ options = {
1573
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1574
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
1575
+ query_params: {'api-version' => @client.api_version},
1576
+ body: request_content,
1577
+ headers: request_headers.merge(custom_headers || {}),
1578
+ base_url: request_url
1579
+ }
1580
+ promise = @client.make_request_async(:post, path_template, options)
1581
+
1582
+ promise = promise.then do |result|
1583
+ http_response = result.response
1584
+ status_code = http_response.status
1585
+ response_content = http_response.body
1586
+ unless status_code == 200 || status_code == 202
1587
+ error_model = JSON.load(response_content)
1588
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1589
+ end
1590
+
1591
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1592
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1593
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1594
+
1595
+ result
1596
+ end
1597
+
1598
+ promise.execute
1599
+ end
1600
+
1601
+ #
1602
+ # Diagnoses network connectivity status for external resources on which the
1603
+ # service is dependent on.
1604
+ #
1605
+ # @param resource_group_name [String] The name of the resource group containing
1606
+ # the Kusto cluster.
1607
+ # @param cluster_name [String] The name of the Kusto cluster.
1608
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1609
+ # will be added to the HTTP request.
1610
+ #
1611
+ # @return [DiagnoseVirtualNetworkResult] operation results.
1612
+ #
1613
+ def begin_diagnose_virtual_network(resource_group_name, cluster_name, custom_headers:nil)
1614
+ response = begin_diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
1615
+ response.body unless response.nil?
1616
+ end
1617
+
1618
+ #
1619
+ # Diagnoses network connectivity status for external resources on which the
1620
+ # service is dependent on.
1621
+ #
1622
+ # @param resource_group_name [String] The name of the resource group containing
1623
+ # the Kusto cluster.
1624
+ # @param cluster_name [String] The name of the Kusto cluster.
1625
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1626
+ # will be added to the HTTP request.
1627
+ #
1628
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1629
+ #
1630
+ def begin_diagnose_virtual_network_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
1631
+ begin_diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
1632
+ end
1633
+
1634
+ #
1635
+ # Diagnoses network connectivity status for external resources on which the
1636
+ # service is dependent on.
1637
+ #
1638
+ # @param resource_group_name [String] The name of the resource group containing
1639
+ # the Kusto cluster.
1640
+ # @param cluster_name [String] The name of the Kusto cluster.
1641
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1642
+ # to the HTTP request.
1643
+ #
1644
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1645
+ #
1646
+ def begin_diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:nil)
1647
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1648
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
1649
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1650
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1651
+
1652
+
1653
+ request_headers = {}
1654
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1655
+
1656
+ # Set Headers
1657
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1658
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1659
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/diagnoseVirtualNetwork'
1660
+
1661
+ request_url = @base_url || @client.base_url
1662
+
1663
+ options = {
1664
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1665
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
1666
+ query_params: {'api-version' => @client.api_version},
1667
+ headers: request_headers.merge(custom_headers || {}),
1668
+ base_url: request_url
1669
+ }
1670
+ promise = @client.make_request_async(:post, path_template, options)
1671
+
1672
+ promise = promise.then do |result|
1673
+ http_response = result.response
1674
+ status_code = http_response.status
1675
+ response_content = http_response.body
1676
+ unless status_code == 200 || status_code == 202
1677
+ error_model = JSON.load(response_content)
1678
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1679
+ end
1680
+
1681
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1682
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1683
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1684
+ # Deserialize Response
1685
+ if status_code == 200
1686
+ begin
1687
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1688
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::DiagnoseVirtualNetworkResult.mapper()
1689
+ result.body = @client.deserialize(result_mapper, parsed_response)
1690
+ rescue Exception => e
1691
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1692
+ end
1693
+ end
1694
+
1695
+ result
1696
+ end
1697
+
1698
+ promise.execute
1699
+ end
1700
+
1701
+ end
1702
+ end