azure_mgmt_kusto 0.17.2 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) 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/azure_mgmt_kusto.rb +2 -1
  83. data/lib/profiles/latest/modules/kusto_profile_module.rb +133 -101
  84. data/lib/version.rb +1 -1
  85. metadata +63 -5
@@ -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.17.2"
141
+ sdk_information = "#{sdk_information}/0.18.0"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -88,6 +88,8 @@ module Azure::Kusto::Mgmt::V2018_09_07_preview
88
88
  end
89
89
 
90
90
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
91
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
92
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
91
93
  # Deserialize Response
92
94
  if status_code == 200
93
95
  begin
@@ -176,6 +178,8 @@ module Azure::Kusto::Mgmt::V2018_09_07_preview
176
178
  end
177
179
 
178
180
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
181
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
182
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
179
183
  # Deserialize Response
180
184
  if status_code == 200
181
185
  begin
@@ -27,29 +27,30 @@ module Azure::Kusto::Mgmt::V2019_01_21
27
27
  autoload :KustoManagementClient, '2019-01-21/generated/azure_mgmt_kusto/kusto_management_client.rb'
28
28
 
29
29
  module Models
30
- autoload :DataConnectionValidationResult, '2019-01-21/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb'
31
30
  autoload :DatabasePrincipalListRequest, '2019-01-21/generated/azure_mgmt_kusto/models/database_principal_list_request.rb'
32
- autoload :AzureSku, '2019-01-21/generated/azure_mgmt_kusto/models/azure_sku.rb'
31
+ autoload :TrustedExternalTenant, '2019-01-21/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb'
33
32
  autoload :DataConnectionValidation, '2019-01-21/generated/azure_mgmt_kusto/models/data_connection_validation.rb'
34
- autoload :AzureResourceSku, '2019-01-21/generated/azure_mgmt_kusto/models/azure_resource_sku.rb'
35
- autoload :Resource, '2019-01-21/generated/azure_mgmt_kusto/models/resource.rb'
36
33
  autoload :AzureCapacity, '2019-01-21/generated/azure_mgmt_kusto/models/azure_capacity.rb'
37
- autoload :Operation, '2019-01-21/generated/azure_mgmt_kusto/models/operation.rb'
34
+ autoload :Resource, '2019-01-21/generated/azure_mgmt_kusto/models/resource.rb'
38
35
  autoload :DatabaseStatistics, '2019-01-21/generated/azure_mgmt_kusto/models/database_statistics.rb'
39
- autoload :ListSkusResult, '2019-01-21/generated/azure_mgmt_kusto/models/list_skus_result.rb'
40
- autoload :CheckNameResult, '2019-01-21/generated/azure_mgmt_kusto/models/check_name_result.rb'
41
- autoload :ClusterListResult, '2019-01-21/generated/azure_mgmt_kusto/models/cluster_list_result.rb'
42
36
  autoload :OperationListResult, '2019-01-21/generated/azure_mgmt_kusto/models/operation_list_result.rb'
43
- autoload :DatabasePrincipalListResult, '2019-01-21/generated/azure_mgmt_kusto/models/database_principal_list_result.rb'
44
- autoload :DataConnectionValidationListResult, '2019-01-21/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb'
45
- autoload :TrustedExternalTenant, '2019-01-21/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb'
46
- autoload :DataConnectionListResult, '2019-01-21/generated/azure_mgmt_kusto/models/data_connection_list_result.rb'
37
+ autoload :AzureResourceSku, '2019-01-21/generated/azure_mgmt_kusto/models/azure_resource_sku.rb'
38
+ autoload :Operation, '2019-01-21/generated/azure_mgmt_kusto/models/operation.rb'
39
+ autoload :CheckNameResult, '2019-01-21/generated/azure_mgmt_kusto/models/check_name_result.rb'
47
40
  autoload :DatabasePrincipal, '2019-01-21/generated/azure_mgmt_kusto/models/database_principal.rb'
48
41
  autoload :ListResourceSkusResult, '2019-01-21/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb'
49
42
  autoload :DatabaseListResult, '2019-01-21/generated/azure_mgmt_kusto/models/database_list_result.rb'
43
+ autoload :DataConnectionValidationListResult, '2019-01-21/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb'
44
+ autoload :ListSkusResult, '2019-01-21/generated/azure_mgmt_kusto/models/list_skus_result.rb'
45
+ autoload :DataConnectionListResult, '2019-01-21/generated/azure_mgmt_kusto/models/data_connection_list_result.rb'
46
+ autoload :AzureSku, '2019-01-21/generated/azure_mgmt_kusto/models/azure_sku.rb'
47
+ autoload :ClusterListResult, '2019-01-21/generated/azure_mgmt_kusto/models/cluster_list_result.rb'
48
+ autoload :DataConnectionValidationResult, '2019-01-21/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb'
50
49
  autoload :ClusterCheckNameRequest, '2019-01-21/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb'
51
- autoload :OperationDisplay, '2019-01-21/generated/azure_mgmt_kusto/models/operation_display.rb'
50
+ autoload :DatabasePrincipalListResult, '2019-01-21/generated/azure_mgmt_kusto/models/database_principal_list_result.rb'
52
51
  autoload :DatabaseCheckNameRequest, '2019-01-21/generated/azure_mgmt_kusto/models/database_check_name_request.rb'
52
+ autoload :OperationDisplay, '2019-01-21/generated/azure_mgmt_kusto/models/operation_display.rb'
53
+ autoload :DataConnectionCheckNameRequest, '2019-01-21/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb'
53
54
  autoload :Cluster, '2019-01-21/generated/azure_mgmt_kusto/models/cluster.rb'
54
55
  autoload :ClusterUpdate, '2019-01-21/generated/azure_mgmt_kusto/models/cluster_update.rb'
55
56
  autoload :Database, '2019-01-21/generated/azure_mgmt_kusto/models/database.rb'
@@ -63,9 +64,11 @@ module Azure::Kusto::Mgmt::V2019_01_21
63
64
  autoload :State, '2019-01-21/generated/azure_mgmt_kusto/models/state.rb'
64
65
  autoload :ProvisioningState, '2019-01-21/generated/azure_mgmt_kusto/models/provisioning_state.rb'
65
66
  autoload :AzureSkuName, '2019-01-21/generated/azure_mgmt_kusto/models/azure_sku_name.rb'
67
+ autoload :AzureSkuTier, '2019-01-21/generated/azure_mgmt_kusto/models/azure_sku_tier.rb'
66
68
  autoload :AzureScaleType, '2019-01-21/generated/azure_mgmt_kusto/models/azure_scale_type.rb'
67
69
  autoload :DataFormat, '2019-01-21/generated/azure_mgmt_kusto/models/data_format.rb'
68
70
  autoload :DatabasePrincipalRole, '2019-01-21/generated/azure_mgmt_kusto/models/database_principal_role.rb'
69
71
  autoload :DatabasePrincipalType, '2019-01-21/generated/azure_mgmt_kusto/models/database_principal_type.rb'
72
+ autoload :Reason, '2019-01-21/generated/azure_mgmt_kusto/models/reason.rb'
70
73
  end
71
74
  end
@@ -101,6 +101,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
101
101
  end
102
102
 
103
103
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
104
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
105
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
104
106
  # Deserialize Response
105
107
  if status_code == 200
106
108
  begin
@@ -408,6 +410,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
408
410
  end
409
411
 
410
412
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
413
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
414
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
411
415
  # Deserialize Response
412
416
  if status_code == 200
413
417
  begin
@@ -492,6 +496,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
492
496
  end
493
497
 
494
498
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
499
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
500
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
495
501
  # Deserialize Response
496
502
  if status_code == 200
497
503
  begin
@@ -576,6 +582,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
576
582
  end
577
583
 
578
584
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
585
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
586
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
579
587
  # Deserialize Response
580
588
  if status_code == 200
581
589
  begin
@@ -675,6 +683,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
675
683
  end
676
684
 
677
685
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
686
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
687
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
678
688
  # Deserialize Response
679
689
  if status_code == 200
680
690
  begin
@@ -770,6 +780,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
770
780
  end
771
781
 
772
782
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
783
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
784
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
773
785
  # Deserialize Response
774
786
  if status_code == 200
775
787
  begin
@@ -879,6 +891,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
879
891
  end
880
892
 
881
893
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
894
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
895
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
882
896
  # Deserialize Response
883
897
  if status_code == 200
884
898
  begin
@@ -998,6 +1012,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
998
1012
  end
999
1013
 
1000
1014
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1015
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1016
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1001
1017
  # Deserialize Response
1002
1018
  if status_code == 200
1003
1019
  begin
@@ -1102,6 +1118,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
1102
1118
  end
1103
1119
 
1104
1120
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1121
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1122
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1105
1123
 
1106
1124
  result
1107
1125
  end
@@ -1186,6 +1204,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
1186
1204
  end
1187
1205
 
1188
1206
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1207
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1208
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1189
1209
 
1190
1210
  result
1191
1211
  end
@@ -1270,6 +1290,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
1270
1290
  end
1271
1291
 
1272
1292
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1293
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1294
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1273
1295
 
1274
1296
  result
1275
1297
  end
@@ -105,6 +105,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
105
105
  end
106
106
 
107
107
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
108
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
109
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
108
110
  # Deserialize Response
109
111
  if status_code == 200
110
112
  begin
@@ -218,6 +220,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
218
220
  end
219
221
 
220
222
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
223
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
224
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
221
225
  # Deserialize Response
222
226
  if status_code == 200
223
227
  begin
@@ -235,6 +239,121 @@ module Azure::Kusto::Mgmt::V2019_01_21
235
239
  promise.execute
236
240
  end
237
241
 
242
+ #
243
+ # Checks that the data connection name is valid and is not already in use.
244
+ #
245
+ # @param resource_group_name [String] The name of the resource group containing
246
+ # the Kusto cluster.
247
+ # @param cluster_name [String] The name of the Kusto cluster.
248
+ # @param database_name [String] The name of the database in the Kusto cluster.
249
+ # @param data_connection_name [DataConnectionCheckNameRequest] The name of the
250
+ # data connection.
251
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
252
+ # will be added to the HTTP request.
253
+ #
254
+ # @return [CheckNameResult] operation results.
255
+ #
256
+ def check_name_availability(resource_group_name, cluster_name, database_name, data_connection_name, custom_headers:nil)
257
+ response = check_name_availability_async(resource_group_name, cluster_name, database_name, data_connection_name, custom_headers:custom_headers).value!
258
+ response.body unless response.nil?
259
+ end
260
+
261
+ #
262
+ # Checks that the data connection name is valid and is not already in use.
263
+ #
264
+ # @param resource_group_name [String] The name of the resource group containing
265
+ # the Kusto cluster.
266
+ # @param cluster_name [String] The name of the Kusto cluster.
267
+ # @param database_name [String] The name of the database in the Kusto cluster.
268
+ # @param data_connection_name [DataConnectionCheckNameRequest] The name of the
269
+ # data connection.
270
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
271
+ # will be added to the HTTP request.
272
+ #
273
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
274
+ #
275
+ def check_name_availability_with_http_info(resource_group_name, cluster_name, database_name, data_connection_name, custom_headers:nil)
276
+ check_name_availability_async(resource_group_name, cluster_name, database_name, data_connection_name, custom_headers:custom_headers).value!
277
+ end
278
+
279
+ #
280
+ # Checks that the data connection name is valid and is not already in use.
281
+ #
282
+ # @param resource_group_name [String] The name of the resource group containing
283
+ # the Kusto cluster.
284
+ # @param cluster_name [String] The name of the Kusto cluster.
285
+ # @param database_name [String] The name of the database in the Kusto cluster.
286
+ # @param data_connection_name [DataConnectionCheckNameRequest] The name of the
287
+ # data connection.
288
+ # @param [Hash{String => String}] A hash of custom headers that will be added
289
+ # to the HTTP request.
290
+ #
291
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
292
+ #
293
+ def check_name_availability_async(resource_group_name, cluster_name, database_name, data_connection_name, custom_headers:nil)
294
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
295
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
296
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
297
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
298
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
299
+ fail ArgumentError, 'data_connection_name is nil' if data_connection_name.nil?
300
+
301
+
302
+ request_headers = {}
303
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
304
+
305
+ # Set Headers
306
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
307
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
308
+
309
+ # Serialize Request
310
+ request_mapper = Azure::Kusto::Mgmt::V2019_01_21::Models::DataConnectionCheckNameRequest.mapper()
311
+ request_content = @client.serialize(request_mapper, data_connection_name)
312
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
313
+
314
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability'
315
+
316
+ request_url = @base_url || @client.base_url
317
+
318
+ options = {
319
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
320
+ path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
321
+ query_params: {'api-version' => @client.api_version},
322
+ body: request_content,
323
+ headers: request_headers.merge(custom_headers || {}),
324
+ base_url: request_url
325
+ }
326
+ promise = @client.make_request_async(:post, path_template, options)
327
+
328
+ promise = promise.then do |result|
329
+ http_response = result.response
330
+ status_code = http_response.status
331
+ response_content = http_response.body
332
+ unless status_code == 200
333
+ error_model = JSON.load(response_content)
334
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
335
+ end
336
+
337
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
338
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
339
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
340
+ # Deserialize Response
341
+ if status_code == 200
342
+ begin
343
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
344
+ result_mapper = Azure::Kusto::Mgmt::V2019_01_21::Models::CheckNameResult.mapper()
345
+ result.body = @client.deserialize(result_mapper, parsed_response)
346
+ rescue Exception => e
347
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
348
+ end
349
+ end
350
+
351
+ result
352
+ end
353
+
354
+ promise.execute
355
+ end
356
+
238
357
  #
239
358
  # Returns a data connection.
240
359
  #
@@ -321,6 +440,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
321
440
  end
322
441
 
323
442
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
443
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
444
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
324
445
  # Deserialize Response
325
446
  if status_code == 200
326
447
  begin
@@ -586,6 +707,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
586
707
  end
587
708
 
588
709
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
710
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
711
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
589
712
  # Deserialize Response
590
713
  if status_code == 200
591
714
  begin
@@ -713,6 +836,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
713
836
  end
714
837
 
715
838
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
839
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
840
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
716
841
  # Deserialize Response
717
842
  if status_code == 200
718
843
  begin
@@ -825,6 +950,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
825
950
  end
826
951
 
827
952
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
953
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
954
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
828
955
 
829
956
  result
830
957
  end
@@ -112,6 +112,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
112
112
  end
113
113
 
114
114
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
115
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
116
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
115
117
  # Deserialize Response
116
118
  if status_code == 200
117
119
  begin
@@ -207,6 +209,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
207
209
  end
208
210
 
209
211
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
212
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
213
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
210
214
  # Deserialize Response
211
215
  if status_code == 200
212
216
  begin
@@ -306,6 +310,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
306
310
  end
307
311
 
308
312
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
313
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
314
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
309
315
  # Deserialize Response
310
316
  if status_code == 200
311
317
  begin
@@ -550,6 +556,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
550
556
  end
551
557
 
552
558
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
559
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
560
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
553
561
  # Deserialize Response
554
562
  if status_code == 200
555
563
  begin
@@ -663,6 +671,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
663
671
  end
664
672
 
665
673
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
674
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
675
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
666
676
  # Deserialize Response
667
677
  if status_code == 200
668
678
  begin
@@ -776,6 +786,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
776
786
  end
777
787
 
778
788
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
789
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
790
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
779
791
  # Deserialize Response
780
792
  if status_code == 200
781
793
  begin
@@ -889,6 +901,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
889
901
  end
890
902
 
891
903
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
904
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
905
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
892
906
  # Deserialize Response
893
907
  if status_code == 200
894
908
  begin
@@ -1012,6 +1026,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
1012
1026
  end
1013
1027
 
1014
1028
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1029
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1030
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1015
1031
  # Deserialize Response
1016
1032
  if status_code == 200
1017
1033
  begin
@@ -1120,6 +1136,8 @@ module Azure::Kusto::Mgmt::V2019_01_21
1120
1136
  end
1121
1137
 
1122
1138
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1139
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1140
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1123
1141
 
1124
1142
  result
1125
1143
  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.17.2"
141
+ sdk_information = "#{sdk_information}/0.18.0"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -16,10 +16,10 @@ module Azure::Kusto::Mgmt::V2019_01_21
16
16
  # 'automatic', 'manual', 'none'
17
17
  attr_accessor :scale_type
18
18
 
19
- # @return [Integer] Minimum allowed capacity.
19
+ # @return [Integer] Minimum allowed instances count.
20
20
  attr_accessor :minimum
21
21
 
22
- # @return [Integer] Maximum allowed capacity.
22
+ # @return [Integer] Maximum allowed instances count.
23
23
  attr_accessor :maximum
24
24
 
25
25
  # @return [Integer] The default capacity that would be used.