azure_mgmt_kusto 0.19.2 → 0.19.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) 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/kusto_management_client.rb +1 -1
  7. data/lib/2019-11-09/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  8. data/lib/2020-02-15/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  9. data/lib/2020-06-14/generated/azure_mgmt_kusto.rb +110 -0
  10. data/lib/2020-06-14/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  11. data/lib/2020-06-14/generated/azure_mgmt_kusto/cluster_principal_assignments.rb +656 -0
  12. data/lib/2020-06-14/generated/azure_mgmt_kusto/clusters.rb +2087 -0
  13. data/lib/2020-06-14/generated/azure_mgmt_kusto/data_connections.rb +1033 -0
  14. data/lib/2020-06-14/generated/azure_mgmt_kusto/database_principal_assignments.rb +683 -0
  15. data/lib/2020-06-14/generated/azure_mgmt_kusto/databases.rb +1169 -0
  16. data/lib/2020-06-14/generated/azure_mgmt_kusto/kusto_management_client.rb +157 -0
  17. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  18. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  19. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  20. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  21. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  22. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  23. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku.rb +77 -0
  24. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku_name.rb +35 -0
  25. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  26. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/blob_storage_event_type.rb +16 -0
  27. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  28. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  29. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster.rb +315 -0
  30. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  31. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  32. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb +147 -0
  33. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb +62 -0
  34. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb +56 -0
  35. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_role.rb +16 -0
  36. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_update.rb +302 -0
  37. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/compression.rb +16 -0
  38. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  39. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +61 -0
  40. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  41. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  42. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  43. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  44. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database.rb +82 -0
  45. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  46. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  47. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment.rb +148 -0
  48. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb +62 -0
  49. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb +56 -0
  50. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  51. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  52. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  53. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  54. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  55. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  56. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb +56 -0
  57. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +184 -0
  58. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_grid_data_format.rb +30 -0
  59. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +178 -0
  60. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_hub_data_format.rb +30 -0
  61. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  62. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  63. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity.rb +95 -0
  64. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity_type.rb +16 -0
  65. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  66. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +177 -0
  67. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb +30 -0
  68. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/key_vault_properties.rb +68 -0
  69. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extension.rb +47 -0
  70. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extension_name.rb +16 -0
  71. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extensions_list.rb +55 -0
  72. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  73. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  74. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  75. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  76. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  77. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/principal_type.rb +17 -0
  78. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  79. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  80. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  81. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  82. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/read_write_database.rb +147 -0
  83. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  84. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  85. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  86. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  87. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  88. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/state.rb +23 -0
  89. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  90. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  91. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/type.rb +16 -0
  92. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  93. data/lib/2020-06-14/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  94. data/lib/2020-06-14/generated/azure_mgmt_kusto/operations.rb +221 -0
  95. data/lib/azure_mgmt_kusto.rb +1 -0
  96. data/lib/profiles/latest/modules/kusto_profile_module.rb +162 -158
  97. data/lib/version.rb +1 -1
  98. metadata +88 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6a81ba3181e800df8fd1641b75d1bdb0bf1feb5f44d0a0673bcf81a067ed0a9
4
- data.tar.gz: f5f79a7ee1bb6015e793edcea83b873f1072118aac1c0aaafdda9eb60d170103
3
+ metadata.gz: b85e25dd1f7c35a60fcc76d97b32d9e8b16d7601619145efc6561d569d475ce5
4
+ data.tar.gz: e1f25921b553cad567021e5cba49bd92a926e757397f2e911b00a161b670f383
5
5
  SHA512:
6
- metadata.gz: 185353878c2968b5cf1315d19c53d22185ef23aeff57fdbbfc2af26702d6b6fdf15c723609dc76a9ee8bf509361311420023b8f94ad42874a31ff478bf054e42
7
- data.tar.gz: f2a20116d1b9b3d568e568222f73d58875bd8a0545777556ed0199bc9ff38d036ee659c46b493910793144eae4cbc8c1402f211fa2062fff82197ba7ae20f865
6
+ metadata.gz: 59b8d7ae57c7fc0288c3195ddd43f3a134903378f98408e11be1e67ed183815a228158d7dd6d367426b34c2e793fed6bb942a023d220aae72421e3869a00b6b3
7
+ data.tar.gz: d624b11b126006f7520cbc7feb1c7cbbb0994664f701a6d9d82f305c5668eb950e929f9c18d754d70c6f1946a6aebb91fea557d8cc15b124fde9a268e4c5b9e4
@@ -138,7 +138,7 @@ module Azure::Kusto::Mgmt::V2018_09_07_privatepreview
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_kusto'
141
- sdk_information = "#{sdk_information}/0.19.2"
141
+ sdk_information = "#{sdk_information}/0.19.3"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -138,7 +138,7 @@ module Azure::Kusto::Mgmt::V2018_09_07_preview
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_kusto'
141
- sdk_information = "#{sdk_information}/0.19.2"
141
+ sdk_information = "#{sdk_information}/0.19.3"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -138,7 +138,7 @@ module Azure::Kusto::Mgmt::V2019_01_21
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_kusto'
141
- sdk_information = "#{sdk_information}/0.19.2"
141
+ sdk_information = "#{sdk_information}/0.19.3"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -138,7 +138,7 @@ module Azure::Kusto::Mgmt::V2019_05_15
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_kusto'
141
- sdk_information = "#{sdk_information}/0.19.2"
141
+ sdk_information = "#{sdk_information}/0.19.3"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -142,7 +142,7 @@ module Azure::Kusto::Mgmt::V2019_09_07
142
142
  #
143
143
  def add_telemetry
144
144
  sdk_information = 'azure_mgmt_kusto'
145
- sdk_information = "#{sdk_information}/0.19.2"
145
+ sdk_information = "#{sdk_information}/0.19.3"
146
146
  add_user_agent_information(sdk_information)
147
147
  end
148
148
  end
@@ -150,7 +150,7 @@ module Azure::Kusto::Mgmt::V2019_11_09
150
150
  #
151
151
  def add_telemetry
152
152
  sdk_information = 'azure_mgmt_kusto'
153
- sdk_information = "#{sdk_information}/0.19.2"
153
+ sdk_information = "#{sdk_information}/0.19.3"
154
154
  add_user_agent_information(sdk_information)
155
155
  end
156
156
  end
@@ -150,7 +150,7 @@ module Azure::Kusto::Mgmt::V2020_02_15
150
150
  #
151
151
  def add_telemetry
152
152
  sdk_information = 'azure_mgmt_kusto'
153
- sdk_information = "#{sdk_information}/0.19.2"
153
+ sdk_information = "#{sdk_information}/0.19.3"
154
154
  add_user_agent_information(sdk_information)
155
155
  end
156
156
  end
@@ -0,0 +1,110 @@
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 '2020-06-14/generated/azure_mgmt_kusto/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Kusto::Mgmt::V2020_06_14
23
+ autoload :Clusters, '2020-06-14/generated/azure_mgmt_kusto/clusters.rb'
24
+ autoload :ClusterPrincipalAssignments, '2020-06-14/generated/azure_mgmt_kusto/cluster_principal_assignments.rb'
25
+ autoload :Databases, '2020-06-14/generated/azure_mgmt_kusto/databases.rb'
26
+ autoload :DatabasePrincipalAssignments, '2020-06-14/generated/azure_mgmt_kusto/database_principal_assignments.rb'
27
+ autoload :AttachedDatabaseConfigurations, '2020-06-14/generated/azure_mgmt_kusto/attached_database_configurations.rb'
28
+ autoload :DataConnections, '2020-06-14/generated/azure_mgmt_kusto/data_connections.rb'
29
+ autoload :Operations, '2020-06-14/generated/azure_mgmt_kusto/operations.rb'
30
+ autoload :KustoManagementClient, '2020-06-14/generated/azure_mgmt_kusto/kusto_management_client.rb'
31
+
32
+ module Models
33
+ autoload :ClusterPrincipalAssignmentListResult, '2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb'
34
+ autoload :DatabasePrincipalListResult, '2020-06-14/generated/azure_mgmt_kusto/models/database_principal_list_result.rb'
35
+ autoload :OptimizedAutoscale, '2020-06-14/generated/azure_mgmt_kusto/models/optimized_autoscale.rb'
36
+ autoload :FollowerDatabaseDefinition, '2020-06-14/generated/azure_mgmt_kusto/models/follower_database_definition.rb'
37
+ autoload :KeyVaultProperties, '2020-06-14/generated/azure_mgmt_kusto/models/key_vault_properties.rb'
38
+ autoload :FollowerDatabaseListResult, '2020-06-14/generated/azure_mgmt_kusto/models/follower_database_list_result.rb'
39
+ autoload :LanguageExtensionsList, '2020-06-14/generated/azure_mgmt_kusto/models/language_extensions_list.rb'
40
+ autoload :VirtualNetworkConfiguration, '2020-06-14/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb'
41
+ autoload :AzureCapacity, '2020-06-14/generated/azure_mgmt_kusto/models/azure_capacity.rb'
42
+ autoload :LanguageExtension, '2020-06-14/generated/azure_mgmt_kusto/models/language_extension.rb'
43
+ autoload :SkuLocationInfoItem, '2020-06-14/generated/azure_mgmt_kusto/models/sku_location_info_item.rb'
44
+ autoload :AzureSku, '2020-06-14/generated/azure_mgmt_kusto/models/azure_sku.rb'
45
+ autoload :SkuDescriptionList, '2020-06-14/generated/azure_mgmt_kusto/models/sku_description_list.rb'
46
+ autoload :AzureResourceSku, '2020-06-14/generated/azure_mgmt_kusto/models/azure_resource_sku.rb'
47
+ autoload :SkuDescription, '2020-06-14/generated/azure_mgmt_kusto/models/sku_description.rb'
48
+ autoload :Identity, '2020-06-14/generated/azure_mgmt_kusto/models/identity.rb'
49
+ autoload :DatabaseStatistics, '2020-06-14/generated/azure_mgmt_kusto/models/database_statistics.rb'
50
+ autoload :IdentityUserAssignedIdentitiesValue, '2020-06-14/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb'
51
+ autoload :AttachedDatabaseConfigurationListResult, '2020-06-14/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb'
52
+ autoload :ClusterCheckNameRequest, '2020-06-14/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb'
53
+ autoload :ClusterPrincipalAssignmentCheckNameRequest, '2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb'
54
+ autoload :DataConnectionCheckNameRequest, '2020-06-14/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb'
55
+ autoload :DatabasePrincipal, '2020-06-14/generated/azure_mgmt_kusto/models/database_principal.rb'
56
+ autoload :DataConnectionValidationResult, '2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb'
57
+ autoload :DatabasePrincipalAssignmentCheckNameRequest, '2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb'
58
+ autoload :DatabasePrincipalListRequest, '2020-06-14/generated/azure_mgmt_kusto/models/database_principal_list_request.rb'
59
+ autoload :DatabaseListResult, '2020-06-14/generated/azure_mgmt_kusto/models/database_list_result.rb'
60
+ autoload :DiagnoseVirtualNetworkResult, '2020-06-14/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb'
61
+ autoload :TrustedExternalTenant, '2020-06-14/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb'
62
+ autoload :DataConnectionValidation, '2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation.rb'
63
+ autoload :ListResourceSkusResult, '2020-06-14/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb'
64
+ autoload :Resource, '2020-06-14/generated/azure_mgmt_kusto/models/resource.rb'
65
+ autoload :CheckNameResult, '2020-06-14/generated/azure_mgmt_kusto/models/check_name_result.rb'
66
+ autoload :OperationListResult, '2020-06-14/generated/azure_mgmt_kusto/models/operation_list_result.rb'
67
+ autoload :DatabasePrincipalAssignmentListResult, '2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb'
68
+ autoload :Operation, '2020-06-14/generated/azure_mgmt_kusto/models/operation.rb'
69
+ autoload :CheckNameRequest, '2020-06-14/generated/azure_mgmt_kusto/models/check_name_request.rb'
70
+ autoload :DataConnectionValidationListResult, '2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb'
71
+ autoload :OperationDisplay, '2020-06-14/generated/azure_mgmt_kusto/models/operation_display.rb'
72
+ autoload :DataConnectionListResult, '2020-06-14/generated/azure_mgmt_kusto/models/data_connection_list_result.rb'
73
+ autoload :ClusterListResult, '2020-06-14/generated/azure_mgmt_kusto/models/cluster_list_result.rb'
74
+ autoload :Cluster, '2020-06-14/generated/azure_mgmt_kusto/models/cluster.rb'
75
+ autoload :ClusterUpdate, '2020-06-14/generated/azure_mgmt_kusto/models/cluster_update.rb'
76
+ autoload :ReadWriteDatabase, '2020-06-14/generated/azure_mgmt_kusto/models/read_write_database.rb'
77
+ autoload :ReadOnlyFollowingDatabase, '2020-06-14/generated/azure_mgmt_kusto/models/read_only_following_database.rb'
78
+ autoload :ProxyResource, '2020-06-14/generated/azure_mgmt_kusto/models/proxy_resource.rb'
79
+ autoload :AttachedDatabaseConfiguration, '2020-06-14/generated/azure_mgmt_kusto/models/attached_database_configuration.rb'
80
+ autoload :Database, '2020-06-14/generated/azure_mgmt_kusto/models/database.rb'
81
+ autoload :DatabasePrincipalAssignment, '2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment.rb'
82
+ autoload :ClusterPrincipalAssignment, '2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb'
83
+ autoload :DataConnection, '2020-06-14/generated/azure_mgmt_kusto/models/data_connection.rb'
84
+ autoload :EventHubDataConnection, '2020-06-14/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb'
85
+ autoload :IotHubDataConnection, '2020-06-14/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb'
86
+ autoload :EventGridDataConnection, '2020-06-14/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb'
87
+ autoload :TrackedResource, '2020-06-14/generated/azure_mgmt_kusto/models/tracked_resource.rb'
88
+ autoload :AzureEntityResource, '2020-06-14/generated/azure_mgmt_kusto/models/azure_entity_resource.rb'
89
+ autoload :State, '2020-06-14/generated/azure_mgmt_kusto/models/state.rb'
90
+ autoload :ProvisioningState, '2020-06-14/generated/azure_mgmt_kusto/models/provisioning_state.rb'
91
+ autoload :LanguageExtensionName, '2020-06-14/generated/azure_mgmt_kusto/models/language_extension_name.rb'
92
+ autoload :AzureSkuName, '2020-06-14/generated/azure_mgmt_kusto/models/azure_sku_name.rb'
93
+ autoload :AzureSkuTier, '2020-06-14/generated/azure_mgmt_kusto/models/azure_sku_tier.rb'
94
+ autoload :AzureScaleType, '2020-06-14/generated/azure_mgmt_kusto/models/azure_scale_type.rb'
95
+ autoload :DefaultPrincipalsModificationKind, '2020-06-14/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb'
96
+ autoload :PrincipalsModificationKind, '2020-06-14/generated/azure_mgmt_kusto/models/principals_modification_kind.rb'
97
+ autoload :EventHubDataFormat, '2020-06-14/generated/azure_mgmt_kusto/models/event_hub_data_format.rb'
98
+ autoload :Compression, '2020-06-14/generated/azure_mgmt_kusto/models/compression.rb'
99
+ autoload :IotHubDataFormat, '2020-06-14/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb'
100
+ autoload :EventGridDataFormat, '2020-06-14/generated/azure_mgmt_kusto/models/event_grid_data_format.rb'
101
+ autoload :BlobStorageEventType, '2020-06-14/generated/azure_mgmt_kusto/models/blob_storage_event_type.rb'
102
+ autoload :IdentityType, '2020-06-14/generated/azure_mgmt_kusto/models/identity_type.rb'
103
+ autoload :DatabasePrincipalRole, '2020-06-14/generated/azure_mgmt_kusto/models/database_principal_role.rb'
104
+ autoload :DatabasePrincipalType, '2020-06-14/generated/azure_mgmt_kusto/models/database_principal_type.rb'
105
+ autoload :PrincipalType, '2020-06-14/generated/azure_mgmt_kusto/models/principal_type.rb'
106
+ autoload :ClusterPrincipalRole, '2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_role.rb'
107
+ autoload :Type, '2020-06-14/generated/azure_mgmt_kusto/models/type.rb'
108
+ autoload :Reason, '2020-06-14/generated/azure_mgmt_kusto/models/reason.rb'
109
+ end
110
+ 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::V2020_06_14
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::V2020_06_14::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::V2020_06_14::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::V2020_06_14::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::V2020_06_14::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::V2020_06_14::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::V2020_06_14::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::V2020_06_14::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