azure_mgmt_kusto 0.17.2 → 0.19.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (406) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/clusters.rb +22 -0
  3. data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/databases.rb +18 -0
  4. data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/event_hub_connections.rb +12 -0
  5. data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  6. data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/operations.rb +4 -0
  7. data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/clusters.rb +22 -0
  8. data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/databases.rb +18 -0
  9. data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/event_hub_connections.rb +12 -0
  10. data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  11. data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/operations.rb +4 -0
  12. data/lib/2019-01-21/generated/azure_mgmt_kusto.rb +16 -13
  13. data/lib/2019-01-21/generated/azure_mgmt_kusto/clusters.rb +22 -0
  14. data/lib/2019-01-21/generated/azure_mgmt_kusto/data_connections.rb +127 -0
  15. data/lib/2019-01-21/generated/azure_mgmt_kusto/databases.rb +18 -0
  16. data/lib/2019-01-21/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  17. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_capacity.rb +2 -2
  18. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +1 -1
  19. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_sku.rb +9 -6
  20. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_sku_name.rb +12 -7
  21. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  22. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/check_name_result.rb +12 -0
  23. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/cluster.rb +0 -1
  24. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +62 -0
  25. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  26. data/lib/2019-01-21/generated/azure_mgmt_kusto/operations.rb +4 -0
  27. data/lib/2019-05-15/generated/azure_mgmt_kusto.rb +79 -0
  28. data/lib/2019-05-15/generated/azure_mgmt_kusto/clusters.rb +1303 -0
  29. data/lib/2019-05-15/generated/azure_mgmt_kusto/data_connections.rb +963 -0
  30. data/lib/2019-05-15/generated/azure_mgmt_kusto/databases.rb +1149 -0
  31. data/lib/2019-05-15/generated/azure_mgmt_kusto/kusto_management_client.rb +145 -0
  32. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  33. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  34. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  35. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  36. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/azure_sku.rb +74 -0
  37. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/azure_sku_name.rb +26 -0
  38. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  39. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  40. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/cluster.rb +238 -0
  41. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  42. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  43. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/cluster_update.rb +225 -0
  44. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  45. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +62 -0
  46. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  47. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  48. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  49. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  50. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/data_format.rb +25 -0
  51. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/database.rb +123 -0
  52. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/database_check_name_request.rb +61 -0
  53. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/database_list_result.rb +55 -0
  54. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  55. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  56. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  57. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  58. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  59. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  60. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/database_update.rb +123 -0
  61. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +158 -0
  62. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +165 -0
  63. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +176 -0
  64. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  65. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  66. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  67. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  68. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  69. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  70. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  71. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  72. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  73. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  74. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  75. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  76. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/state.rb +23 -0
  77. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  78. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  79. data/lib/2019-05-15/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  80. data/lib/2019-05-15/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  81. data/lib/2019-05-15/generated/azure_mgmt_kusto/operations.rb +221 -0
  82. data/lib/2019-09-07/generated/azure_mgmt_kusto.rb +92 -0
  83. data/lib/2019-09-07/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  84. data/lib/2019-09-07/generated/azure_mgmt_kusto/clusters.rb +1557 -0
  85. data/lib/2019-09-07/generated/azure_mgmt_kusto/data_connections.rb +983 -0
  86. data/lib/2019-09-07/generated/azure_mgmt_kusto/databases.rb +1169 -0
  87. data/lib/2019-09-07/generated/azure_mgmt_kusto/kusto_management_client.rb +149 -0
  88. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  89. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  90. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  91. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  92. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  93. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  94. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_sku.rb +74 -0
  95. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_sku_name.rb +26 -0
  96. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  97. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  98. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  99. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/cluster.rb +263 -0
  100. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  101. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  102. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/cluster_update.rb +250 -0
  103. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  104. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +62 -0
  105. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  106. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  107. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  108. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  109. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/data_format.rb +26 -0
  110. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database.rb +82 -0
  111. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  112. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  113. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  114. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  115. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  116. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  117. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  118. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  119. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +158 -0
  120. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +165 -0
  121. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  122. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  123. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/identity.rb +95 -0
  124. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/identity_type.rb +16 -0
  125. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  126. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +176 -0
  127. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/key_vault_properties.rb +68 -0
  128. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  129. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  130. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  131. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  132. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  133. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  134. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  135. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  136. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  137. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/read_write_database.rb +135 -0
  138. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  139. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  140. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  141. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  142. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  143. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/state.rb +23 -0
  144. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  145. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  146. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/type.rb +16 -0
  147. data/lib/2019-09-07/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  148. data/lib/2019-09-07/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  149. data/lib/2019-09-07/generated/azure_mgmt_kusto/operations.rb +221 -0
  150. data/lib/2019-11-09/generated/azure_mgmt_kusto.rb +106 -0
  151. data/lib/2019-11-09/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  152. data/lib/2019-11-09/generated/azure_mgmt_kusto/cluster_principal_assignments.rb +656 -0
  153. data/lib/2019-11-09/generated/azure_mgmt_kusto/clusters.rb +1702 -0
  154. data/lib/2019-11-09/generated/azure_mgmt_kusto/data_connections.rb +983 -0
  155. data/lib/2019-11-09/generated/azure_mgmt_kusto/database_principal_assignments.rb +683 -0
  156. data/lib/2019-11-09/generated/azure_mgmt_kusto/databases.rb +1169 -0
  157. data/lib/2019-11-09/generated/azure_mgmt_kusto/kusto_management_client.rb +157 -0
  158. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  159. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  160. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  161. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  162. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  163. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  164. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_sku.rb +74 -0
  165. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_sku_name.rb +26 -0
  166. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  167. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  168. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  169. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster.rb +275 -0
  170. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  171. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  172. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb +147 -0
  173. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb +62 -0
  174. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb +56 -0
  175. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_role.rb +16 -0
  176. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_update.rb +262 -0
  177. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/compression.rb +16 -0
  178. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  179. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +61 -0
  180. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  181. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  182. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  183. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  184. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database.rb +82 -0
  185. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  186. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  187. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb +148 -0
  188. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb +62 -0
  189. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb +56 -0
  190. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  191. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  192. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  193. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  194. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  195. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  196. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb +56 -0
  197. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +158 -0
  198. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/event_grid_data_format.rb +28 -0
  199. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +177 -0
  200. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/event_hub_data_format.rb +28 -0
  201. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  202. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  203. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/identity.rb +95 -0
  204. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/identity_type.rb +16 -0
  205. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  206. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +176 -0
  207. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb +28 -0
  208. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/key_vault_properties.rb +68 -0
  209. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  210. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  211. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  212. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  213. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  214. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/principal_type.rb +17 -0
  215. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  216. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  217. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  218. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  219. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/read_write_database.rb +147 -0
  220. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  221. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  222. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  223. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  224. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  225. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/state.rb +23 -0
  226. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  227. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  228. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/type.rb +16 -0
  229. data/lib/2019-11-09/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  230. data/lib/2019-11-09/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  231. data/lib/2019-11-09/generated/azure_mgmt_kusto/operations.rb +221 -0
  232. data/lib/2020-02-15/generated/azure_mgmt_kusto.rb +109 -0
  233. data/lib/2020-02-15/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  234. data/lib/2020-02-15/generated/azure_mgmt_kusto/cluster_principal_assignments.rb +656 -0
  235. data/lib/2020-02-15/generated/azure_mgmt_kusto/clusters.rb +2087 -0
  236. data/lib/2020-02-15/generated/azure_mgmt_kusto/data_connections.rb +983 -0
  237. data/lib/2020-02-15/generated/azure_mgmt_kusto/database_principal_assignments.rb +683 -0
  238. data/lib/2020-02-15/generated/azure_mgmt_kusto/databases.rb +1169 -0
  239. data/lib/2020-02-15/generated/azure_mgmt_kusto/kusto_management_client.rb +157 -0
  240. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  241. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  242. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  243. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  244. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  245. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  246. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_sku.rb +77 -0
  247. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_sku_name.rb +35 -0
  248. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  249. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  250. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  251. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster.rb +301 -0
  252. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  253. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  254. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb +147 -0
  255. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb +62 -0
  256. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb +56 -0
  257. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_principal_role.rb +16 -0
  258. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/cluster_update.rb +288 -0
  259. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/compression.rb +16 -0
  260. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  261. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +61 -0
  262. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  263. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  264. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  265. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  266. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database.rb +82 -0
  267. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  268. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  269. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_assignment.rb +148 -0
  270. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb +62 -0
  271. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb +56 -0
  272. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  273. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  274. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  275. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  276. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  277. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  278. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb +56 -0
  279. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +158 -0
  280. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/event_grid_data_format.rb +28 -0
  281. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +177 -0
  282. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/event_hub_data_format.rb +28 -0
  283. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  284. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  285. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/identity.rb +95 -0
  286. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/identity_type.rb +16 -0
  287. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  288. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +176 -0
  289. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb +28 -0
  290. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/key_vault_properties.rb +68 -0
  291. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/language_extension.rb +47 -0
  292. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/language_extension_name.rb +16 -0
  293. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/language_extensions_list.rb +55 -0
  294. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  295. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  296. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  297. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  298. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  299. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/principal_type.rb +17 -0
  300. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  301. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  302. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  303. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  304. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/read_write_database.rb +147 -0
  305. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  306. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  307. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  308. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  309. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  310. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/state.rb +23 -0
  311. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  312. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  313. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/type.rb +16 -0
  314. data/lib/2020-02-15/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  315. data/lib/2020-02-15/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  316. data/lib/2020-02-15/generated/azure_mgmt_kusto/operations.rb +221 -0
  317. data/lib/2020-06-14/generated/azure_mgmt_kusto.rb +110 -0
  318. data/lib/2020-06-14/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  319. data/lib/2020-06-14/generated/azure_mgmt_kusto/cluster_principal_assignments.rb +656 -0
  320. data/lib/2020-06-14/generated/azure_mgmt_kusto/clusters.rb +2087 -0
  321. data/lib/2020-06-14/generated/azure_mgmt_kusto/data_connections.rb +1033 -0
  322. data/lib/2020-06-14/generated/azure_mgmt_kusto/database_principal_assignments.rb +683 -0
  323. data/lib/2020-06-14/generated/azure_mgmt_kusto/databases.rb +1169 -0
  324. data/lib/2020-06-14/generated/azure_mgmt_kusto/kusto_management_client.rb +157 -0
  325. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  326. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  327. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  328. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  329. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  330. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  331. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku.rb +77 -0
  332. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku_name.rb +35 -0
  333. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  334. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/blob_storage_event_type.rb +16 -0
  335. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  336. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  337. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster.rb +315 -0
  338. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  339. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  340. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb +147 -0
  341. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb +62 -0
  342. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb +56 -0
  343. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_role.rb +16 -0
  344. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_update.rb +302 -0
  345. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/compression.rb +16 -0
  346. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  347. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +61 -0
  348. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  349. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  350. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  351. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  352. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database.rb +82 -0
  353. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  354. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  355. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment.rb +148 -0
  356. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb +62 -0
  357. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb +56 -0
  358. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  359. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  360. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  361. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  362. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  363. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  364. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb +56 -0
  365. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +184 -0
  366. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_grid_data_format.rb +30 -0
  367. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +178 -0
  368. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_hub_data_format.rb +30 -0
  369. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  370. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  371. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity.rb +95 -0
  372. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity_type.rb +16 -0
  373. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  374. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +177 -0
  375. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb +30 -0
  376. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/key_vault_properties.rb +68 -0
  377. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extension.rb +47 -0
  378. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extension_name.rb +16 -0
  379. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extensions_list.rb +55 -0
  380. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  381. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  382. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  383. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  384. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  385. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/principal_type.rb +17 -0
  386. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  387. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  388. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  389. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  390. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/read_write_database.rb +147 -0
  391. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  392. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  393. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  394. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  395. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  396. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/state.rb +23 -0
  397. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  398. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  399. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/type.rb +16 -0
  400. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  401. data/lib/2020-06-14/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  402. data/lib/2020-06-14/generated/azure_mgmt_kusto/operations.rb +221 -0
  403. data/lib/azure_mgmt_kusto.rb +6 -1
  404. data/lib/profiles/latest/modules/kusto_profile_module.rb +259 -109
  405. data/lib/version.rb +1 -1
  406. metadata +384 -5
@@ -0,0 +1,106 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2019-11-09/generated/azure_mgmt_kusto/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Kusto::Mgmt::V2019_11_09
23
+ autoload :Clusters, '2019-11-09/generated/azure_mgmt_kusto/clusters.rb'
24
+ autoload :ClusterPrincipalAssignments, '2019-11-09/generated/azure_mgmt_kusto/cluster_principal_assignments.rb'
25
+ autoload :Databases, '2019-11-09/generated/azure_mgmt_kusto/databases.rb'
26
+ autoload :DatabasePrincipalAssignments, '2019-11-09/generated/azure_mgmt_kusto/database_principal_assignments.rb'
27
+ autoload :AttachedDatabaseConfigurations, '2019-11-09/generated/azure_mgmt_kusto/attached_database_configurations.rb'
28
+ autoload :DataConnections, '2019-11-09/generated/azure_mgmt_kusto/data_connections.rb'
29
+ autoload :Operations, '2019-11-09/generated/azure_mgmt_kusto/operations.rb'
30
+ autoload :KustoManagementClient, '2019-11-09/generated/azure_mgmt_kusto/kusto_management_client.rb'
31
+
32
+ module Models
33
+ autoload :DatabasePrincipalListResult, '2019-11-09/generated/azure_mgmt_kusto/models/database_principal_list_result.rb'
34
+ autoload :FollowerDatabaseDefinition, '2019-11-09/generated/azure_mgmt_kusto/models/follower_database_definition.rb'
35
+ autoload :OptimizedAutoscale, '2019-11-09/generated/azure_mgmt_kusto/models/optimized_autoscale.rb'
36
+ autoload :FollowerDatabaseListResult, '2019-11-09/generated/azure_mgmt_kusto/models/follower_database_list_result.rb'
37
+ autoload :KeyVaultProperties, '2019-11-09/generated/azure_mgmt_kusto/models/key_vault_properties.rb'
38
+ autoload :TrustedExternalTenant, '2019-11-09/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb'
39
+ autoload :AzureCapacity, '2019-11-09/generated/azure_mgmt_kusto/models/azure_capacity.rb'
40
+ autoload :VirtualNetworkConfiguration, '2019-11-09/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb'
41
+ autoload :SkuLocationInfoItem, '2019-11-09/generated/azure_mgmt_kusto/models/sku_location_info_item.rb'
42
+ autoload :AzureSku, '2019-11-09/generated/azure_mgmt_kusto/models/azure_sku.rb'
43
+ autoload :SkuDescriptionList, '2019-11-09/generated/azure_mgmt_kusto/models/sku_description_list.rb'
44
+ autoload :AzureResourceSku, '2019-11-09/generated/azure_mgmt_kusto/models/azure_resource_sku.rb'
45
+ autoload :SkuDescription, '2019-11-09/generated/azure_mgmt_kusto/models/sku_description.rb'
46
+ autoload :Identity, '2019-11-09/generated/azure_mgmt_kusto/models/identity.rb'
47
+ autoload :DatabaseStatistics, '2019-11-09/generated/azure_mgmt_kusto/models/database_statistics.rb'
48
+ autoload :IdentityUserAssignedIdentitiesValue, '2019-11-09/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb'
49
+ autoload :AttachedDatabaseConfigurationListResult, '2019-11-09/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb'
50
+ autoload :ClusterCheckNameRequest, '2019-11-09/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb'
51
+ autoload :ClusterPrincipalAssignmentCheckNameRequest, '2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb'
52
+ autoload :DataConnectionCheckNameRequest, '2019-11-09/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb'
53
+ autoload :DatabasePrincipal, '2019-11-09/generated/azure_mgmt_kusto/models/database_principal.rb'
54
+ autoload :DataConnectionValidationResult, '2019-11-09/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb'
55
+ autoload :DatabasePrincipalAssignmentCheckNameRequest, '2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb'
56
+ autoload :DatabasePrincipalListRequest, '2019-11-09/generated/azure_mgmt_kusto/models/database_principal_list_request.rb'
57
+ autoload :DatabaseListResult, '2019-11-09/generated/azure_mgmt_kusto/models/database_list_result.rb'
58
+ autoload :DiagnoseVirtualNetworkResult, '2019-11-09/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb'
59
+ autoload :ClusterPrincipalAssignmentListResult, '2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb'
60
+ autoload :DataConnectionValidation, '2019-11-09/generated/azure_mgmt_kusto/models/data_connection_validation.rb'
61
+ autoload :ListResourceSkusResult, '2019-11-09/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb'
62
+ autoload :Resource, '2019-11-09/generated/azure_mgmt_kusto/models/resource.rb'
63
+ autoload :CheckNameResult, '2019-11-09/generated/azure_mgmt_kusto/models/check_name_result.rb'
64
+ autoload :OperationListResult, '2019-11-09/generated/azure_mgmt_kusto/models/operation_list_result.rb'
65
+ autoload :DatabasePrincipalAssignmentListResult, '2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb'
66
+ autoload :Operation, '2019-11-09/generated/azure_mgmt_kusto/models/operation.rb'
67
+ autoload :CheckNameRequest, '2019-11-09/generated/azure_mgmt_kusto/models/check_name_request.rb'
68
+ autoload :DataConnectionValidationListResult, '2019-11-09/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb'
69
+ autoload :OperationDisplay, '2019-11-09/generated/azure_mgmt_kusto/models/operation_display.rb'
70
+ autoload :DataConnectionListResult, '2019-11-09/generated/azure_mgmt_kusto/models/data_connection_list_result.rb'
71
+ autoload :ClusterListResult, '2019-11-09/generated/azure_mgmt_kusto/models/cluster_list_result.rb'
72
+ autoload :Cluster, '2019-11-09/generated/azure_mgmt_kusto/models/cluster.rb'
73
+ autoload :ClusterUpdate, '2019-11-09/generated/azure_mgmt_kusto/models/cluster_update.rb'
74
+ autoload :ReadWriteDatabase, '2019-11-09/generated/azure_mgmt_kusto/models/read_write_database.rb'
75
+ autoload :ReadOnlyFollowingDatabase, '2019-11-09/generated/azure_mgmt_kusto/models/read_only_following_database.rb'
76
+ autoload :ProxyResource, '2019-11-09/generated/azure_mgmt_kusto/models/proxy_resource.rb'
77
+ autoload :AttachedDatabaseConfiguration, '2019-11-09/generated/azure_mgmt_kusto/models/attached_database_configuration.rb'
78
+ autoload :Database, '2019-11-09/generated/azure_mgmt_kusto/models/database.rb'
79
+ autoload :DatabasePrincipalAssignment, '2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb'
80
+ autoload :ClusterPrincipalAssignment, '2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb'
81
+ autoload :DataConnection, '2019-11-09/generated/azure_mgmt_kusto/models/data_connection.rb'
82
+ autoload :EventHubDataConnection, '2019-11-09/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb'
83
+ autoload :IotHubDataConnection, '2019-11-09/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb'
84
+ autoload :EventGridDataConnection, '2019-11-09/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb'
85
+ autoload :TrackedResource, '2019-11-09/generated/azure_mgmt_kusto/models/tracked_resource.rb'
86
+ autoload :AzureEntityResource, '2019-11-09/generated/azure_mgmt_kusto/models/azure_entity_resource.rb'
87
+ autoload :State, '2019-11-09/generated/azure_mgmt_kusto/models/state.rb'
88
+ autoload :ProvisioningState, '2019-11-09/generated/azure_mgmt_kusto/models/provisioning_state.rb'
89
+ autoload :AzureSkuName, '2019-11-09/generated/azure_mgmt_kusto/models/azure_sku_name.rb'
90
+ autoload :AzureSkuTier, '2019-11-09/generated/azure_mgmt_kusto/models/azure_sku_tier.rb'
91
+ autoload :AzureScaleType, '2019-11-09/generated/azure_mgmt_kusto/models/azure_scale_type.rb'
92
+ autoload :DefaultPrincipalsModificationKind, '2019-11-09/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb'
93
+ autoload :PrincipalsModificationKind, '2019-11-09/generated/azure_mgmt_kusto/models/principals_modification_kind.rb'
94
+ autoload :EventHubDataFormat, '2019-11-09/generated/azure_mgmt_kusto/models/event_hub_data_format.rb'
95
+ autoload :Compression, '2019-11-09/generated/azure_mgmt_kusto/models/compression.rb'
96
+ autoload :IotHubDataFormat, '2019-11-09/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb'
97
+ autoload :EventGridDataFormat, '2019-11-09/generated/azure_mgmt_kusto/models/event_grid_data_format.rb'
98
+ autoload :IdentityType, '2019-11-09/generated/azure_mgmt_kusto/models/identity_type.rb'
99
+ autoload :DatabasePrincipalRole, '2019-11-09/generated/azure_mgmt_kusto/models/database_principal_role.rb'
100
+ autoload :DatabasePrincipalType, '2019-11-09/generated/azure_mgmt_kusto/models/database_principal_type.rb'
101
+ autoload :PrincipalType, '2019-11-09/generated/azure_mgmt_kusto/models/principal_type.rb'
102
+ autoload :ClusterPrincipalRole, '2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_role.rb'
103
+ autoload :Type, '2019-11-09/generated/azure_mgmt_kusto/models/type.rb'
104
+ autoload :Reason, '2019-11-09/generated/azure_mgmt_kusto/models/reason.rb'
105
+ end
106
+ end
@@ -0,0 +1,558 @@
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 AttachedDatabaseConfigurations
13
+ include MsRestAzure
14
+
15
+ #
16
+ # Creates and initializes a new instance of the AttachedDatabaseConfigurations 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
+ # Returns the list of attached database configurations of the given Kusto
28
+ # cluster.
29
+ #
30
+ # @param resource_group_name [String] The name of the resource group containing
31
+ # the Kusto cluster.
32
+ # @param cluster_name [String] The name of the Kusto cluster.
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ # @return [AttachedDatabaseConfigurationListResult] operation results.
37
+ #
38
+ def list_by_cluster(resource_group_name, cluster_name, custom_headers:nil)
39
+ response = list_by_cluster_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
40
+ response.body unless response.nil?
41
+ end
42
+
43
+ #
44
+ # Returns the list of attached database configurations of the given Kusto
45
+ # cluster.
46
+ #
47
+ # @param resource_group_name [String] The name of the resource group containing
48
+ # the Kusto cluster.
49
+ # @param cluster_name [String] The name of the Kusto cluster.
50
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
+ # will be added to the HTTP request.
52
+ #
53
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
+ #
55
+ def list_by_cluster_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
56
+ list_by_cluster_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
57
+ end
58
+
59
+ #
60
+ # Returns the list of attached database configurations of the given Kusto
61
+ # cluster.
62
+ #
63
+ # @param resource_group_name [String] The name of the resource group containing
64
+ # the Kusto cluster.
65
+ # @param cluster_name [String] The name of the Kusto cluster.
66
+ # @param [Hash{String => String}] A hash of custom headers that will be added
67
+ # to the HTTP request.
68
+ #
69
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
70
+ #
71
+ def list_by_cluster_async(resource_group_name, cluster_name, custom_headers:nil)
72
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
73
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
74
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
76
+
77
+
78
+ request_headers = {}
79
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
80
+
81
+ # Set Headers
82
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
83
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
84
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations'
85
+
86
+ request_url = @base_url || @client.base_url
87
+
88
+ options = {
89
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
90
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id},
91
+ query_params: {'api-version' => @client.api_version},
92
+ headers: request_headers.merge(custom_headers || {}),
93
+ base_url: request_url
94
+ }
95
+ promise = @client.make_request_async(:get, path_template, options)
96
+
97
+ promise = promise.then do |result|
98
+ http_response = result.response
99
+ status_code = http_response.status
100
+ response_content = http_response.body
101
+ unless status_code == 200
102
+ error_model = JSON.load(response_content)
103
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
104
+ end
105
+
106
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
107
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
108
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
109
+ # Deserialize Response
110
+ if status_code == 200
111
+ begin
112
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
113
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::AttachedDatabaseConfigurationListResult.mapper()
114
+ result.body = @client.deserialize(result_mapper, parsed_response)
115
+ rescue Exception => e
116
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
117
+ end
118
+ end
119
+
120
+ result
121
+ end
122
+
123
+ promise.execute
124
+ end
125
+
126
+ #
127
+ # Returns an attached database configuration.
128
+ #
129
+ # @param resource_group_name [String] The name of the resource group containing
130
+ # the Kusto cluster.
131
+ # @param cluster_name [String] The name of the Kusto cluster.
132
+ # @param attached_database_configuration_name [String] The name of the attached
133
+ # database configuration.
134
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
135
+ # will be added to the HTTP request.
136
+ #
137
+ # @return [AttachedDatabaseConfiguration] operation results.
138
+ #
139
+ def get(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:nil)
140
+ response = get_async(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:custom_headers).value!
141
+ response.body unless response.nil?
142
+ end
143
+
144
+ #
145
+ # Returns an attached database configuration.
146
+ #
147
+ # @param resource_group_name [String] The name of the resource group containing
148
+ # the Kusto cluster.
149
+ # @param cluster_name [String] The name of the Kusto cluster.
150
+ # @param attached_database_configuration_name [String] The name of the attached
151
+ # database configuration.
152
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
153
+ # will be added to the HTTP request.
154
+ #
155
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
156
+ #
157
+ def get_with_http_info(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:nil)
158
+ get_async(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:custom_headers).value!
159
+ end
160
+
161
+ #
162
+ # Returns an attached database configuration.
163
+ #
164
+ # @param resource_group_name [String] The name of the resource group containing
165
+ # the Kusto cluster.
166
+ # @param cluster_name [String] The name of the Kusto cluster.
167
+ # @param attached_database_configuration_name [String] The name of the attached
168
+ # database configuration.
169
+ # @param [Hash{String => String}] A hash of custom headers that will be added
170
+ # to the HTTP request.
171
+ #
172
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
173
+ #
174
+ def get_async(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:nil)
175
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
176
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
177
+ fail ArgumentError, 'attached_database_configuration_name is nil' if attached_database_configuration_name.nil?
178
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
179
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
180
+
181
+
182
+ request_headers = {}
183
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
184
+
185
+ # Set Headers
186
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
187
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
188
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'
189
+
190
+ request_url = @base_url || @client.base_url
191
+
192
+ options = {
193
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
194
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'attachedDatabaseConfigurationName' => attached_database_configuration_name,'subscriptionId' => @client.subscription_id},
195
+ query_params: {'api-version' => @client.api_version},
196
+ headers: request_headers.merge(custom_headers || {}),
197
+ base_url: request_url
198
+ }
199
+ promise = @client.make_request_async(:get, path_template, options)
200
+
201
+ promise = promise.then do |result|
202
+ http_response = result.response
203
+ status_code = http_response.status
204
+ response_content = http_response.body
205
+ unless status_code == 200
206
+ error_model = JSON.load(response_content)
207
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
208
+ end
209
+
210
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
211
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
212
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
213
+ # Deserialize Response
214
+ if status_code == 200
215
+ begin
216
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
217
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::AttachedDatabaseConfiguration.mapper()
218
+ result.body = @client.deserialize(result_mapper, parsed_response)
219
+ rescue Exception => e
220
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
221
+ end
222
+ end
223
+
224
+ result
225
+ end
226
+
227
+ promise.execute
228
+ end
229
+
230
+ #
231
+ # Creates or updates an attached database configuration.
232
+ #
233
+ # @param resource_group_name [String] The name of the resource group containing
234
+ # the Kusto cluster.
235
+ # @param cluster_name [String] The name of the Kusto cluster.
236
+ # @param attached_database_configuration_name [String] The name of the attached
237
+ # database configuration.
238
+ # @param parameters [AttachedDatabaseConfiguration] The database parameters
239
+ # supplied to the CreateOrUpdate operation.
240
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
241
+ # will be added to the HTTP request.
242
+ #
243
+ # @return [AttachedDatabaseConfiguration] operation results.
244
+ #
245
+ def create_or_update(resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers:nil)
246
+ response = create_or_update_async(resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers:custom_headers).value!
247
+ response.body unless response.nil?
248
+ end
249
+
250
+ #
251
+ # @param resource_group_name [String] The name of the resource group containing
252
+ # the Kusto cluster.
253
+ # @param cluster_name [String] The name of the Kusto cluster.
254
+ # @param attached_database_configuration_name [String] The name of the attached
255
+ # database configuration.
256
+ # @param parameters [AttachedDatabaseConfiguration] The database parameters
257
+ # supplied to the CreateOrUpdate operation.
258
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
259
+ # will be added to the HTTP request.
260
+ #
261
+ # @return [Concurrent::Promise] promise which provides async access to http
262
+ # response.
263
+ #
264
+ def create_or_update_async(resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers:nil)
265
+ # Send request
266
+ promise = begin_create_or_update_async(resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers:custom_headers)
267
+
268
+ promise = promise.then do |response|
269
+ # Defining deserialization method.
270
+ deserialize_method = lambda do |parsed_response|
271
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::AttachedDatabaseConfiguration.mapper()
272
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
273
+ end
274
+
275
+ # Waiting for response.
276
+ @client.get_long_running_operation_result(response, deserialize_method)
277
+ end
278
+
279
+ promise
280
+ end
281
+
282
+ #
283
+ # Deletes the attached database configuration with the given name.
284
+ #
285
+ # @param resource_group_name [String] The name of the resource group containing
286
+ # the Kusto cluster.
287
+ # @param cluster_name [String] The name of the Kusto cluster.
288
+ # @param attached_database_configuration_name [String] The name of the attached
289
+ # database configuration.
290
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
291
+ # will be added to the HTTP request.
292
+ #
293
+ def delete(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:nil)
294
+ response = delete_async(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:custom_headers).value!
295
+ nil
296
+ end
297
+
298
+ #
299
+ # @param resource_group_name [String] The name of the resource group containing
300
+ # the Kusto cluster.
301
+ # @param cluster_name [String] The name of the Kusto cluster.
302
+ # @param attached_database_configuration_name [String] The name of the attached
303
+ # database configuration.
304
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
305
+ # will be added to the HTTP request.
306
+ #
307
+ # @return [Concurrent::Promise] promise which provides async access to http
308
+ # response.
309
+ #
310
+ def delete_async(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:nil)
311
+ # Send request
312
+ promise = begin_delete_async(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:custom_headers)
313
+
314
+ promise = promise.then do |response|
315
+ # Defining deserialization method.
316
+ deserialize_method = lambda do |parsed_response|
317
+ end
318
+
319
+ # Waiting for response.
320
+ @client.get_long_running_operation_result(response, deserialize_method)
321
+ end
322
+
323
+ promise
324
+ end
325
+
326
+ #
327
+ # Creates or updates an attached database configuration.
328
+ #
329
+ # @param resource_group_name [String] The name of the resource group containing
330
+ # the Kusto cluster.
331
+ # @param cluster_name [String] The name of the Kusto cluster.
332
+ # @param attached_database_configuration_name [String] The name of the attached
333
+ # database configuration.
334
+ # @param parameters [AttachedDatabaseConfiguration] The database parameters
335
+ # supplied to the CreateOrUpdate operation.
336
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
337
+ # will be added to the HTTP request.
338
+ #
339
+ # @return [AttachedDatabaseConfiguration] operation results.
340
+ #
341
+ def begin_create_or_update(resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers:nil)
342
+ response = begin_create_or_update_async(resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers:custom_headers).value!
343
+ response.body unless response.nil?
344
+ end
345
+
346
+ #
347
+ # Creates or updates an attached database configuration.
348
+ #
349
+ # @param resource_group_name [String] The name of the resource group containing
350
+ # the Kusto cluster.
351
+ # @param cluster_name [String] The name of the Kusto cluster.
352
+ # @param attached_database_configuration_name [String] The name of the attached
353
+ # database configuration.
354
+ # @param parameters [AttachedDatabaseConfiguration] The database parameters
355
+ # supplied to the CreateOrUpdate operation.
356
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
357
+ # will be added to the HTTP request.
358
+ #
359
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
360
+ #
361
+ def begin_create_or_update_with_http_info(resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers:nil)
362
+ begin_create_or_update_async(resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers:custom_headers).value!
363
+ end
364
+
365
+ #
366
+ # Creates or updates an attached database configuration.
367
+ #
368
+ # @param resource_group_name [String] The name of the resource group containing
369
+ # the Kusto cluster.
370
+ # @param cluster_name [String] The name of the Kusto cluster.
371
+ # @param attached_database_configuration_name [String] The name of the attached
372
+ # database configuration.
373
+ # @param parameters [AttachedDatabaseConfiguration] The database parameters
374
+ # supplied to the CreateOrUpdate operation.
375
+ # @param [Hash{String => String}] A hash of custom headers that will be added
376
+ # to the HTTP request.
377
+ #
378
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
379
+ #
380
+ def begin_create_or_update_async(resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers:nil)
381
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
382
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
383
+ fail ArgumentError, 'attached_database_configuration_name is nil' if attached_database_configuration_name.nil?
384
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
385
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
386
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
387
+
388
+
389
+ request_headers = {}
390
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
391
+
392
+ # Set Headers
393
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
394
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
395
+
396
+ # Serialize Request
397
+ request_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::AttachedDatabaseConfiguration.mapper()
398
+ request_content = @client.serialize(request_mapper, parameters)
399
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
400
+
401
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'
402
+
403
+ request_url = @base_url || @client.base_url
404
+
405
+ options = {
406
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
407
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'attachedDatabaseConfigurationName' => attached_database_configuration_name,'subscriptionId' => @client.subscription_id},
408
+ query_params: {'api-version' => @client.api_version},
409
+ body: request_content,
410
+ headers: request_headers.merge(custom_headers || {}),
411
+ base_url: request_url
412
+ }
413
+ promise = @client.make_request_async(:put, path_template, options)
414
+
415
+ promise = promise.then do |result|
416
+ http_response = result.response
417
+ status_code = http_response.status
418
+ response_content = http_response.body
419
+ unless status_code == 200 || status_code == 201 || status_code == 202
420
+ error_model = JSON.load(response_content)
421
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
422
+ end
423
+
424
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
425
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
426
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
427
+ # Deserialize Response
428
+ if status_code == 200
429
+ begin
430
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
431
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::AttachedDatabaseConfiguration.mapper()
432
+ result.body = @client.deserialize(result_mapper, parsed_response)
433
+ rescue Exception => e
434
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
435
+ end
436
+ end
437
+ # Deserialize Response
438
+ if status_code == 201
439
+ begin
440
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
441
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::AttachedDatabaseConfiguration.mapper()
442
+ result.body = @client.deserialize(result_mapper, parsed_response)
443
+ rescue Exception => e
444
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
445
+ end
446
+ end
447
+ # Deserialize Response
448
+ if status_code == 202
449
+ begin
450
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
451
+ result_mapper = Azure::Kusto::Mgmt::V2019_11_09::Models::AttachedDatabaseConfiguration.mapper()
452
+ result.body = @client.deserialize(result_mapper, parsed_response)
453
+ rescue Exception => e
454
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
455
+ end
456
+ end
457
+
458
+ result
459
+ end
460
+
461
+ promise.execute
462
+ end
463
+
464
+ #
465
+ # Deletes the attached database configuration with the given name.
466
+ #
467
+ # @param resource_group_name [String] The name of the resource group containing
468
+ # the Kusto cluster.
469
+ # @param cluster_name [String] The name of the Kusto cluster.
470
+ # @param attached_database_configuration_name [String] The name of the attached
471
+ # database configuration.
472
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
473
+ # will be added to the HTTP request.
474
+ #
475
+ #
476
+ def begin_delete(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:nil)
477
+ response = begin_delete_async(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:custom_headers).value!
478
+ nil
479
+ end
480
+
481
+ #
482
+ # Deletes the attached database configuration with the given name.
483
+ #
484
+ # @param resource_group_name [String] The name of the resource group containing
485
+ # the Kusto cluster.
486
+ # @param cluster_name [String] The name of the Kusto cluster.
487
+ # @param attached_database_configuration_name [String] The name of the attached
488
+ # database configuration.
489
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
490
+ # will be added to the HTTP request.
491
+ #
492
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
493
+ #
494
+ def begin_delete_with_http_info(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:nil)
495
+ begin_delete_async(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:custom_headers).value!
496
+ end
497
+
498
+ #
499
+ # Deletes the attached database configuration with the given name.
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 attached_database_configuration_name [String] The name of the attached
505
+ # database configuration.
506
+ # @param [Hash{String => String}] A hash of custom headers that will be added
507
+ # to the HTTP request.
508
+ #
509
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
510
+ #
511
+ def begin_delete_async(resource_group_name, cluster_name, attached_database_configuration_name, custom_headers:nil)
512
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
513
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
514
+ fail ArgumentError, 'attached_database_configuration_name is nil' if attached_database_configuration_name.nil?
515
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
516
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
517
+
518
+
519
+ request_headers = {}
520
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
521
+
522
+ # Set Headers
523
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
524
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
525
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'
526
+
527
+ request_url = @base_url || @client.base_url
528
+
529
+ options = {
530
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
531
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'attachedDatabaseConfigurationName' => attached_database_configuration_name,'subscriptionId' => @client.subscription_id},
532
+ query_params: {'api-version' => @client.api_version},
533
+ headers: request_headers.merge(custom_headers || {}),
534
+ base_url: request_url
535
+ }
536
+ promise = @client.make_request_async(:delete, path_template, options)
537
+
538
+ promise = promise.then do |result|
539
+ http_response = result.response
540
+ status_code = http_response.status
541
+ response_content = http_response.body
542
+ unless status_code == 200 || status_code == 202 || status_code == 204
543
+ error_model = JSON.load(response_content)
544
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
545
+ end
546
+
547
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
548
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
549
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
550
+
551
+ result
552
+ end
553
+
554
+ promise.execute
555
+ end
556
+
557
+ end
558
+ end