Class: Azure::Kusto::Mgmt::V2020_09_18::Clusters
- Inherits:
-
Object
- Object
- Azure::Kusto::Mgmt::V2020_09_18::Clusters
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb
Overview
The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases.
Instance Attribute Summary collapse
-
#client ⇒ KustoManagementClient
readonly
Reference to the KustoManagementClient.
Instance Method Summary collapse
-
#add_language_extensions(resource_group_name, cluster_name, language_extensions_to_add, custom_headers: nil) ⇒ Object
Add a list of language extensions that can run within KQL queries.
-
#add_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_add, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster.
-
#begin_add_language_extensions(resource_group_name, cluster_name, language_extensions_to_add, custom_headers: nil) ⇒ Object
Add a list of language extensions that can run within KQL queries.
-
#begin_add_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_add, custom_headers: nil) ⇒ Concurrent::Promise
Add a list of language extensions that can run within KQL queries.
-
#begin_add_language_extensions_with_http_info(resource_group_name, cluster_name, language_extensions_to_add, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Add a list of language extensions that can run within KQL queries.
-
#begin_create_or_update(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Cluster
Create or update a Kusto cluster.
-
#begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Create or update a Kusto cluster.
-
#begin_create_or_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a Kusto cluster.
-
#begin_delete(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Deletes a Kusto cluster.
-
#begin_delete_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a Kusto cluster.
-
#begin_delete_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a Kusto cluster.
-
#begin_detach_follower_databases(resource_group_name, cluster_name, follower_database_to_remove, custom_headers: nil) ⇒ Object
Detaches all followers of a database owned by this cluster.
-
#begin_detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers: nil) ⇒ Concurrent::Promise
Detaches all followers of a database owned by this cluster.
-
#begin_detach_follower_databases_with_http_info(resource_group_name, cluster_name, follower_database_to_remove, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Detaches all followers of a database owned by this cluster.
-
#begin_diagnose_virtual_network(resource_group_name, cluster_name, custom_headers: nil) ⇒ DiagnoseVirtualNetworkResult
Diagnoses network connectivity status for external resources on which the service is dependent on.
-
#begin_diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Diagnoses network connectivity status for external resources on which the service is dependent on.
-
#begin_diagnose_virtual_network_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Diagnoses network connectivity status for external resources on which the service is dependent on.
-
#begin_remove_language_extensions(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers: nil) ⇒ Object
Remove a list of language extensions that can run within KQL queries.
-
#begin_remove_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers: nil) ⇒ Concurrent::Promise
Remove a list of language extensions that can run within KQL queries.
-
#begin_remove_language_extensions_with_http_info(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Remove a list of language extensions that can run within KQL queries.
-
#begin_start(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Starts a Kusto cluster.
-
#begin_start_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Starts a Kusto cluster.
-
#begin_start_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Starts a Kusto cluster.
-
#begin_stop(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Stops a Kusto cluster.
-
#begin_stop_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Stops a Kusto cluster.
-
#begin_stop_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stops a Kusto cluster.
-
#begin_update(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Cluster
Update a Kusto cluster.
-
#begin_update_async(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Update a Kusto cluster.
-
#begin_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Update a Kusto cluster.
-
#check_name_availability(location, cluster_name, custom_headers: nil) ⇒ CheckNameResult
Checks that the cluster name is valid and is not already in use.
-
#check_name_availability_async(location, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Checks that the cluster name is valid and is not already in use.
-
#check_name_availability_with_http_info(location, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Checks that the cluster name is valid and is not already in use.
-
#create_or_update(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Cluster
Create or update a Kusto cluster.
-
#create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster.
-
#delete(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Deletes a Kusto cluster.
-
#delete_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster.
-
#detach_follower_databases(resource_group_name, cluster_name, follower_database_to_remove, custom_headers: nil) ⇒ Object
Detaches all followers of a database owned by this cluster.
-
#detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster.
-
#diagnose_virtual_network(resource_group_name, cluster_name, custom_headers: nil) ⇒ DiagnoseVirtualNetworkResult
Diagnoses network connectivity status for external resources on which the service is dependent on.
-
#diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster.
-
#get(resource_group_name, cluster_name, custom_headers: nil) ⇒ Cluster
Gets a Kusto cluster.
-
#get_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a Kusto cluster.
-
#get_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a Kusto cluster.
-
#initialize(client) ⇒ Clusters
constructor
Creates and initializes a new instance of the Clusters class.
-
#list(custom_headers: nil) ⇒ ClusterListResult
Lists all Kusto clusters within a subscription.
-
#list_async(custom_headers: nil) ⇒ Concurrent::Promise
Lists all Kusto clusters within a subscription.
-
#list_by_resource_group(resource_group_name, custom_headers: nil) ⇒ ClusterListResult
Lists all Kusto clusters within a resource group.
-
#list_by_resource_group_async(resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Lists all Kusto clusters within a resource group.
-
#list_by_resource_group_with_http_info(resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists all Kusto clusters within a resource group.
-
#list_follower_databases(resource_group_name, cluster_name, custom_headers: nil) ⇒ FollowerDatabaseListResult
Returns a list of databases that are owned by this cluster and were followed by another cluster.
-
#list_follower_databases_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Returns a list of databases that are owned by this cluster and were followed by another cluster.
-
#list_follower_databases_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns a list of databases that are owned by this cluster and were followed by another cluster.
-
#list_language_extensions(resource_group_name, cluster_name, custom_headers: nil) ⇒ LanguageExtensionsList
Returns a list of language extensions that can run within KQL queries.
-
#list_language_extensions_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Returns a list of language extensions that can run within KQL queries.
-
#list_language_extensions_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns a list of language extensions that can run within KQL queries.
-
#list_skus(custom_headers: nil) ⇒ SkuDescriptionList
Lists eligible SKUs for Kusto resource provider.
-
#list_skus_async(custom_headers: nil) ⇒ Concurrent::Promise
Lists eligible SKUs for Kusto resource provider.
-
#list_skus_by_resource(resource_group_name, cluster_name, custom_headers: nil) ⇒ ListResourceSkusResult
Returns the SKUs available for the provided resource.
-
#list_skus_by_resource_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Returns the SKUs available for the provided resource.
-
#list_skus_by_resource_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns the SKUs available for the provided resource.
-
#list_skus_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists eligible SKUs for Kusto resource provider.
-
#list_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists all Kusto clusters within a subscription.
-
#remove_language_extensions(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers: nil) ⇒ Object
Remove a list of language extensions that can run within KQL queries.
-
#remove_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster.
-
#start(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Starts a Kusto cluster.
-
#start_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster.
-
#stop(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Stops a Kusto cluster.
-
#stop_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster.
-
#update(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Cluster
Update a Kusto cluster.
-
#update_async(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster.
Constructor Details
#initialize(client) ⇒ Clusters
Creates and initializes a new instance of the Clusters class.
19 20 21 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 19 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ KustoManagementClient (readonly)
Returns reference to the KustoManagementClient.
24 25 26 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 24 def client @client end |
Instance Method Details
#add_language_extensions(resource_group_name, cluster_name, language_extensions_to_add, custom_headers: nil) ⇒ Object
Add a list of language extensions that can run within KQL queries.
the Kusto cluster. extensions to add. will be added to the HTTP request.
1099 1100 1101 1102 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1099 def add_language_extensions(resource_group_name, cluster_name, language_extensions_to_add, custom_headers:nil) response = add_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_add, custom_headers:custom_headers).value! nil end |
#add_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_add, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster. extensions to add. will be added to the HTTP request.
response.
1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1116 def add_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_add, custom_headers:nil) # Send request promise = begin_add_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_add, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#begin_add_language_extensions(resource_group_name, cluster_name, language_extensions_to_add, custom_headers: nil) ⇒ Object
Add a list of language extensions that can run within KQL queries.
the Kusto cluster. extensions to add. will be added to the HTTP request.
1898 1899 1900 1901 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1898 def begin_add_language_extensions(resource_group_name, cluster_name, language_extensions_to_add, custom_headers:nil) response = begin_add_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_add, custom_headers:custom_headers).value! nil end |
#begin_add_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_add, custom_headers: nil) ⇒ Concurrent::Promise
Add a list of language extensions that can run within KQL queries.
the Kusto cluster. extensions to add. to the HTTP request.
1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1933 def begin_add_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_add, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'language_extensions_to_add is nil' if language_extensions_to_add.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::LanguageExtensionsList.mapper() request_content = @client.serialize(request_mapper, language_extensions_to_add) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#begin_add_language_extensions_with_http_info(resource_group_name, cluster_name, language_extensions_to_add, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Add a list of language extensions that can run within KQL queries.
the Kusto cluster. extensions to add. will be added to the HTTP request.
1916 1917 1918 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1916 def begin_add_language_extensions_with_http_info(resource_group_name, cluster_name, language_extensions_to_add, custom_headers:nil) begin_add_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_add, custom_headers:custom_headers).value! end |
#begin_create_or_update(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Cluster
Create or update a Kusto cluster.
the Kusto cluster. CreateOrUpdate operation. will be added to the HTTP request.
1189 1190 1191 1192 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1189 def begin_create_or_update(resource_group_name, cluster_name, parameters, custom_headers:nil) response = begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Create or update a Kusto cluster.
the Kusto cluster. CreateOrUpdate operation. to the HTTP request.
1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1224 def begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::Cluster.mapper() request_content = @client.serialize(request_mapper, parameters) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:put, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 201 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::Cluster.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::Cluster.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_create_or_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a Kusto cluster.
the Kusto cluster. CreateOrUpdate operation. will be added to the HTTP request.
1207 1208 1209 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1207 def begin_create_or_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil) begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! end |
#begin_delete(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Deletes a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
1438 1439 1440 1441 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1438 def begin_delete(resource_group_name, cluster_name, custom_headers:nil) response = begin_delete_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! nil end |
#begin_delete_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a Kusto cluster.
the Kusto cluster. to the HTTP request.
1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1469 def begin_delete_async(resource_group_name, cluster_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:delete, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#begin_delete_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
1454 1455 1456 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1454 def begin_delete_with_http_info(resource_group_name, cluster_name, custom_headers:nil) begin_delete_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! end |
#begin_detach_follower_databases(resource_group_name, cluster_name, follower_database_to_remove, custom_headers: nil) ⇒ Object
Detaches all followers of a database owned by this cluster.
the Kusto cluster. databases properties to remove. will be added to the HTTP request.
1698 1699 1700 1701 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1698 def begin_detach_follower_databases(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:nil) response = begin_detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:custom_headers).value! nil end |
#begin_detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers: nil) ⇒ Concurrent::Promise
Detaches all followers of a database owned by this cluster.
the Kusto cluster. databases properties to remove. to the HTTP request.
1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1733 def begin_detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'follower_database_to_remove is nil' if follower_database_to_remove.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::FollowerDatabaseDefinition.mapper() request_content = @client.serialize(request_mapper, follower_database_to_remove) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#begin_detach_follower_databases_with_http_info(resource_group_name, cluster_name, follower_database_to_remove, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Detaches all followers of a database owned by this cluster.
the Kusto cluster. databases properties to remove. will be added to the HTTP request.
1716 1717 1718 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1716 def begin_detach_follower_databases_with_http_info(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:nil) begin_detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:custom_headers).value! end |
#begin_diagnose_virtual_network(resource_group_name, cluster_name, custom_headers: nil) ⇒ DiagnoseVirtualNetworkResult
Diagnoses network connectivity status for external resources on which the service is dependent on.
the Kusto cluster. will be added to the HTTP request.
1798 1799 1800 1801 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1798 def begin_diagnose_virtual_network(resource_group_name, cluster_name, custom_headers:nil) response = begin_diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Diagnoses network connectivity status for external resources on which the service is dependent on.
the Kusto cluster. to the HTTP request.
1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1831 def begin_diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/diagnoseVirtualNetwork' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::DiagnoseVirtualNetworkResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_diagnose_virtual_network_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Diagnoses network connectivity status for external resources on which the service is dependent on.
the Kusto cluster. will be added to the HTTP request.
1815 1816 1817 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1815 def begin_diagnose_virtual_network_with_http_info(resource_group_name, cluster_name, custom_headers:nil) begin_diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! end |
#begin_remove_language_extensions(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers: nil) ⇒ Object
Remove a list of language extensions that can run within KQL queries.
the Kusto cluster. extensions to remove. will be added to the HTTP request.
1998 1999 2000 2001 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1998 def begin_remove_language_extensions(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers:nil) response = begin_remove_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers:custom_headers).value! nil end |
#begin_remove_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers: nil) ⇒ Concurrent::Promise
Remove a list of language extensions that can run within KQL queries.
the Kusto cluster. extensions to remove. to the HTTP request.
2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 2033 def begin_remove_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'language_extensions_to_remove is nil' if language_extensions_to_remove.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::LanguageExtensionsList.mapper() request_content = @client.serialize(request_mapper, language_extensions_to_remove) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#begin_remove_language_extensions_with_http_info(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Remove a list of language extensions that can run within KQL queries.
the Kusto cluster. extensions to remove. will be added to the HTTP request.
2016 2017 2018 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 2016 def begin_remove_language_extensions_with_http_info(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers:nil) begin_remove_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers:custom_headers).value! end |
#begin_start(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Starts a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
1610 1611 1612 1613 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1610 def begin_start(resource_group_name, cluster_name, custom_headers:nil) response = begin_start_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! nil end |
#begin_start_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Starts a Kusto cluster.
the Kusto cluster. to the HTTP request.
1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1641 def begin_start_async(resource_group_name, cluster_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#begin_start_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Starts a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
1626 1627 1628 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1626 def begin_start_with_http_info(resource_group_name, cluster_name, custom_headers:nil) begin_start_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! end |
#begin_stop(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Stops a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
1524 1525 1526 1527 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1524 def begin_stop(resource_group_name, cluster_name, custom_headers:nil) response = begin_stop_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! nil end |
#begin_stop_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Stops a Kusto cluster.
the Kusto cluster. to the HTTP request.
1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1555 def begin_stop_async(resource_group_name, cluster_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#begin_stop_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stops a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
1540 1541 1542 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1540 def begin_stop_with_http_info(resource_group_name, cluster_name, custom_headers:nil) begin_stop_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! end |
#begin_update(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Cluster
Update a Kusto cluster.
the Kusto cluster. the Update operation. will be added to the HTTP request.
1310 1311 1312 1313 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1310 def begin_update(resource_group_name, cluster_name, parameters, custom_headers:nil) response = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_update_async(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Update a Kusto cluster.
the Kusto cluster. the Update operation. to the HTTP request.
1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1345 def begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::ClusterUpdate.mapper() request_content = @client.serialize(request_mapper, parameters) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:patch, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 201 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::Cluster.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::Cluster.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 202 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::Cluster.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Update a Kusto cluster.
the Kusto cluster. the Update operation. will be added to the HTTP request.
1328 1329 1330 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1328 def begin_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil) begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! end |
#check_name_availability(location, cluster_name, custom_headers: nil) ⇒ CheckNameResult
Checks that the cluster name is valid and is not already in use.
will be added to the HTTP request.
803 804 805 806 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 803 def check_name_availability(location, cluster_name, custom_headers:nil) response = check_name_availability_async(location, cluster_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#check_name_availability_async(location, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Checks that the cluster name is valid and is not already in use.
to the HTTP request.
832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 832 def check_name_availability_async(location, cluster_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::ClusterCheckNameRequest.mapper() request_content = @client.serialize(request_mapper, cluster_name) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'location' => location}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::CheckNameResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#check_name_availability_with_http_info(location, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Checks that the cluster name is valid and is not already in use.
will be added to the HTTP request.
818 819 820 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 818 def check_name_availability_with_http_info(location, cluster_name, custom_headers:nil) check_name_availability_async(location, cluster_name, custom_headers:custom_headers).value! end |
#create_or_update(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Cluster
Create or update a Kusto cluster.
the Kusto cluster. CreateOrUpdate operation. will be added to the HTTP request.
136 137 138 139 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 136 def create_or_update(resource_group_name, cluster_name, parameters, custom_headers:nil) response = create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster. CreateOrUpdate operation. will be added to the HTTP request.
response.
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 153 def create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil) # Send request promise = begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::Cluster.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#delete(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Deletes a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
228 229 230 231 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 228 def delete(resource_group_name, cluster_name, custom_headers:nil) response = delete_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! nil end |
#delete_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster. will be added to the HTTP request.
response.
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 243 def delete_async(resource_group_name, cluster_name, custom_headers:nil) # Send request promise = begin_delete_async(resource_group_name, cluster_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#detach_follower_databases(resource_group_name, cluster_name, follower_database_to_remove, custom_headers: nil) ⇒ Object
Detaches all followers of a database owned by this cluster.
the Kusto cluster. databases properties to remove. will be added to the HTTP request.
450 451 452 453 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 450 def detach_follower_databases(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:nil) response = detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:custom_headers).value! nil end |
#detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster. databases properties to remove. will be added to the HTTP request.
response.
467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 467 def detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:nil) # Send request promise = begin_detach_follower_databases_async(resource_group_name, cluster_name, follower_database_to_remove, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#diagnose_virtual_network(resource_group_name, cluster_name, custom_headers: nil) ⇒ DiagnoseVirtualNetworkResult
Diagnoses network connectivity status for external resources on which the service is dependent on.
the Kusto cluster. will be added to the HTTP request.
495 496 497 498 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 495 def diagnose_virtual_network(resource_group_name, cluster_name, custom_headers:nil) response = diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster. will be added to the HTTP request.
response.
510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 510 def diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:nil) # Send request promise = begin_diagnose_virtual_network_async(resource_group_name, cluster_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::DiagnoseVirtualNetworkResult.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION) end promise end |
#get(resource_group_name, cluster_name, custom_headers: nil) ⇒ Cluster
Gets a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
37 38 39 40 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 37 def get(resource_group_name, cluster_name, custom_headers:nil) response = get_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a Kusto cluster.
the Kusto cluster. to the HTTP request.
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 68 def get_async(resource_group_name, cluster_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::Cluster.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
53 54 55 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 53 def get_with_http_info(resource_group_name, cluster_name, custom_headers:nil) get_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! end |
#list(custom_headers: nil) ⇒ ClusterListResult
Lists all Kusto clusters within a subscription.
will be added to the HTTP request.
629 630 631 632 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 629 def list(custom_headers:nil) response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_async(custom_headers: nil) ⇒ Concurrent::Promise
Lists all Kusto clusters within a subscription.
to the HTTP request.
654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 654 def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::ClusterListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_resource_group(resource_group_name, custom_headers: nil) ⇒ ClusterListResult
Lists all Kusto clusters within a resource group.
the Kusto cluster. will be added to the HTTP request.
538 539 540 541 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 538 def list_by_resource_group(resource_group_name, custom_headers:nil) response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_resource_group_async(resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Lists all Kusto clusters within a resource group.
the Kusto cluster. to the HTTP request.
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 567 def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::ClusterListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_resource_group_with_http_info(resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists all Kusto clusters within a resource group.
the Kusto cluster. will be added to the HTTP request.
553 554 555 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 553 def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end |
#list_follower_databases(resource_group_name, cluster_name, custom_headers: nil) ⇒ FollowerDatabaseListResult
Returns a list of databases that are owned by this cluster and were followed by another cluster.
the Kusto cluster. will be added to the HTTP request.
351 352 353 354 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 351 def list_follower_databases(resource_group_name, cluster_name, custom_headers:nil) response = list_follower_databases_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_follower_databases_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Returns a list of databases that are owned by this cluster and were followed by another cluster.
the Kusto cluster. to the HTTP request.
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 384 def list_follower_databases_async(resource_group_name, cluster_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::FollowerDatabaseListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_follower_databases_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns a list of databases that are owned by this cluster and were followed by another cluster.
the Kusto cluster. will be added to the HTTP request.
368 369 370 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 368 def list_follower_databases_with_http_info(resource_group_name, cluster_name, custom_headers:nil) list_follower_databases_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! end |
#list_language_extensions(resource_group_name, cluster_name, custom_headers: nil) ⇒ LanguageExtensionsList
Returns a list of language extensions that can run within KQL queries.
the Kusto cluster. will be added to the HTTP request.
1002 1003 1004 1005 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1002 def list_language_extensions(resource_group_name, cluster_name, custom_headers:nil) response = list_language_extensions_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_language_extensions_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Returns a list of language extensions that can run within KQL queries.
the Kusto cluster. to the HTTP request.
1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1033 def list_language_extensions_async(resource_group_name, cluster_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listLanguageExtensions' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::LanguageExtensionsList.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_language_extensions_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns a list of language extensions that can run within KQL queries.
the Kusto cluster. will be added to the HTTP request.
1018 1019 1020 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1018 def list_language_extensions_with_http_info(resource_group_name, cluster_name, custom_headers:nil) list_language_extensions_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! end |
#list_skus(custom_headers: nil) ⇒ SkuDescriptionList
Lists eligible SKUs for Kusto resource provider.
will be added to the HTTP request.
715 716 717 718 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 715 def list_skus(custom_headers:nil) response = list_skus_async(custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_skus_async(custom_headers: nil) ⇒ Concurrent::Promise
Lists eligible SKUs for Kusto resource provider.
to the HTTP request.
740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 740 def list_skus_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::SkuDescriptionList.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_skus_by_resource(resource_group_name, cluster_name, custom_headers: nil) ⇒ ListResourceSkusResult
Returns the SKUs available for the provided resource.
the Kusto cluster. will be added to the HTTP request.
905 906 907 908 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 905 def list_skus_by_resource(resource_group_name, cluster_name, custom_headers:nil) response = list_skus_by_resource_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_skus_by_resource_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
Returns the SKUs available for the provided resource.
the Kusto cluster. to the HTTP request.
936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 936 def list_skus_by_resource_async(resource_group_name, cluster_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::ListResourceSkusResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_skus_by_resource_with_http_info(resource_group_name, cluster_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns the SKUs available for the provided resource.
the Kusto cluster. will be added to the HTTP request.
921 922 923 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 921 def list_skus_by_resource_with_http_info(resource_group_name, cluster_name, custom_headers:nil) list_skus_by_resource_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! end |
#list_skus_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists eligible SKUs for Kusto resource provider.
will be added to the HTTP request.
728 729 730 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 728 def list_skus_with_http_info(custom_headers:nil) list_skus_async(custom_headers:custom_headers).value! end |
#list_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists all Kusto clusters within a subscription.
will be added to the HTTP request.
642 643 644 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 642 def list_with_http_info(custom_headers:nil) list_async(custom_headers:custom_headers).value! end |
#remove_language_extensions(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers: nil) ⇒ Object
Remove a list of language extensions that can run within KQL queries.
the Kusto cluster. extensions to remove. will be added to the HTTP request.
1143 1144 1145 1146 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1143 def remove_language_extensions(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers:nil) response = remove_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers:custom_headers).value! nil end |
#remove_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster. extensions to remove. will be added to the HTTP request.
response.
1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 1160 def remove_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers:nil) # Send request promise = begin_remove_language_extensions_async(resource_group_name, cluster_name, language_extensions_to_remove, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#start(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Starts a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
308 309 310 311 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 308 def start(resource_group_name, cluster_name, custom_headers:nil) response = start_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! nil end |
#start_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster. will be added to the HTTP request.
response.
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 323 def start_async(resource_group_name, cluster_name, custom_headers:nil) # Send request promise = begin_start_async(resource_group_name, cluster_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#stop(resource_group_name, cluster_name, custom_headers: nil) ⇒ Object
Stops a Kusto cluster.
the Kusto cluster. will be added to the HTTP request.
268 269 270 271 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 268 def stop(resource_group_name, cluster_name, custom_headers:nil) response = stop_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! nil end |
#stop_async(resource_group_name, cluster_name, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster. will be added to the HTTP request.
response.
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 283 def stop_async(resource_group_name, cluster_name, custom_headers:nil) # Send request promise = begin_stop_async(resource_group_name, cluster_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#update(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Cluster
Update a Kusto cluster.
the Kusto cluster. the Update operation. will be added to the HTTP request.
184 185 186 187 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 184 def update(resource_group_name, cluster_name, parameters, custom_headers:nil) response = update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_async(resource_group_name, cluster_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
the Kusto cluster. the Update operation. will be added to the HTTP request.
response.
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/2020-09-18/generated/azure_mgmt_kusto/clusters.rb', line 201 def update_async(resource_group_name, cluster_name, parameters, custom_headers:nil) # Send request promise = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Kusto::Mgmt::V2020_09_18::Models::Cluster.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |