Class: Azure::AnalysisServices::Mgmt::V2017_08_01::Servers
- Inherits:
-
Object
- Object
- Azure::AnalysisServices::Mgmt::V2017_08_01::Servers
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb
Overview
The Azure Analysis Services Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Analysis Services servers
Instance Attribute Summary collapse
-
#client ⇒ AnalysisServicesManagementClient
readonly
Reference to the AnalysisServicesManagementClient.
Instance Method Summary collapse
-
#begin_create(resource_group_name, server_name, server_parameters, custom_headers: nil) ⇒ AnalysisServicesServer
Provisions the specified Analysis Services server based on the configuration specified in the request.
-
#begin_create_async(resource_group_name, server_name, server_parameters, custom_headers: nil) ⇒ Concurrent::Promise
Provisions the specified Analysis Services server based on the configuration specified in the request.
-
#begin_create_with_http_info(resource_group_name, server_name, server_parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Provisions the specified Analysis Services server based on the configuration specified in the request.
-
#begin_delete(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Deletes the specified Analysis Services server.
-
#begin_delete_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the specified Analysis Services server.
-
#begin_delete_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the specified Analysis Services server.
-
#begin_resume(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Resumes operation of the specified Analysis Services server instance.
-
#begin_resume_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Resumes operation of the specified Analysis Services server instance.
-
#begin_resume_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resumes operation of the specified Analysis Services server instance.
-
#begin_suspend(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Supends operation of the specified Analysis Services server instance.
-
#begin_suspend_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Supends operation of the specified Analysis Services server instance.
-
#begin_suspend_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Supends operation of the specified Analysis Services server instance.
-
#begin_update(resource_group_name, server_name, server_update_parameters, custom_headers: nil) ⇒ AnalysisServicesServer
Updates the current state of the specified Analysis Services server.
-
#begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers: nil) ⇒ Concurrent::Promise
Updates the current state of the specified Analysis Services server.
-
#begin_update_with_http_info(resource_group_name, server_name, server_update_parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the current state of the specified Analysis Services server.
-
#check_name_availability(location, server_parameters, custom_headers: nil) ⇒ CheckServerNameAvailabilityResult
Check the name availability in the target location.
-
#check_name_availability_async(location, server_parameters, custom_headers: nil) ⇒ Concurrent::Promise
Check the name availability in the target location.
-
#check_name_availability_with_http_info(location, server_parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Check the name availability in the target location.
-
#create(resource_group_name, server_name, server_parameters, custom_headers: nil) ⇒ AnalysisServicesServer
Provisions the specified Analysis Services server based on the configuration specified in the request.
-
#create_async(resource_group_name, server_name, server_parameters, custom_headers: nil) ⇒ Concurrent::Promise
which a given Analysis Services server is part.
-
#delete(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Deletes the specified Analysis Services server.
-
#delete_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
which a given Analysis Services server is part.
-
#dissociate_gateway(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Dissociates a Unified Gateway associated with the server.
-
#dissociate_gateway_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Dissociates a Unified Gateway associated with the server.
-
#dissociate_gateway_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Dissociates a Unified Gateway associated with the server.
-
#get_details(resource_group_name, server_name, custom_headers: nil) ⇒ AnalysisServicesServer
Gets details about the specified Analysis Services server.
-
#get_details_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets details about the specified Analysis Services server.
-
#get_details_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets details about the specified Analysis Services server.
-
#initialize(client) ⇒ Servers
constructor
Creates and initializes a new instance of the Servers class.
-
#list(custom_headers: nil) ⇒ AnalysisServicesServers
Lists all the Analysis Services servers for the given subscription.
-
#list_async(custom_headers: nil) ⇒ Concurrent::Promise
Lists all the Analysis Services servers for the given subscription.
-
#list_by_resource_group(resource_group_name, custom_headers: nil) ⇒ AnalysisServicesServers
Gets all the Analysis Services servers for the given resource group.
-
#list_by_resource_group_async(resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets all the Analysis Services servers for the given resource group.
-
#list_by_resource_group_with_http_info(resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all the Analysis Services servers for the given resource group.
-
#list_gateway_status(resource_group_name, server_name, custom_headers: nil) ⇒ GatewayListStatusLive
Return the gateway status of the specified Analysis Services server instance.
-
#list_gateway_status_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Return the gateway status of the specified Analysis Services server instance.
-
#list_gateway_status_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Return the gateway status of the specified Analysis Services server instance.
-
#list_operation_results(location, operation_id, custom_headers: nil) ⇒ Object
List the result of the specified operation.
-
#list_operation_results_async(location, operation_id, custom_headers: nil) ⇒ Concurrent::Promise
List the result of the specified operation.
-
#list_operation_results_with_http_info(location, operation_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the result of the specified operation.
-
#list_operation_statuses(location, operation_id, custom_headers: nil) ⇒ OperationStatus
List the status of operation.
-
#list_operation_statuses_async(location, operation_id, custom_headers: nil) ⇒ Concurrent::Promise
List the status of operation.
-
#list_operation_statuses_with_http_info(location, operation_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the status of operation.
-
#list_skus_for_existing(resource_group_name, server_name, custom_headers: nil) ⇒ SkuEnumerationForExistingResourceResult
Lists eligible SKUs for an Analysis Services resource.
-
#list_skus_for_existing_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Lists eligible SKUs for an Analysis Services resource.
-
#list_skus_for_existing_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists eligible SKUs for an Analysis Services resource.
-
#list_skus_for_new(custom_headers: nil) ⇒ SkuEnumerationForNewResourceResult
Lists eligible SKUs for Analysis Services resource provider.
-
#list_skus_for_new_async(custom_headers: nil) ⇒ Concurrent::Promise
Lists eligible SKUs for Analysis Services resource provider.
-
#list_skus_for_new_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists eligible SKUs for Analysis Services resource provider.
-
#list_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists all the Analysis Services servers for the given subscription.
-
#resume(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Resumes operation of the specified Analysis Services server instance.
-
#resume_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
which a given Analysis Services server is part.
-
#suspend(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Supends operation of the specified Analysis Services server instance.
-
#suspend_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
which a given Analysis Services server is part.
-
#update(resource_group_name, server_name, server_update_parameters, custom_headers: nil) ⇒ AnalysisServicesServer
Updates the current state of the specified Analysis Services server.
-
#update_async(resource_group_name, server_name, server_update_parameters, custom_headers: nil) ⇒ Concurrent::Promise
which a given Analysis Services server is part.
Constructor Details
#initialize(client) ⇒ Servers
Creates and initializes a new instance of the Servers class.
19 20 21 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 19 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ AnalysisServicesManagementClient (readonly)
Returns reference to the AnalysisServicesManagementClient.
24 25 26 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 24 def client @client end |
Instance Method Details
#begin_create(resource_group_name, server_name, server_parameters, custom_headers: nil) ⇒ AnalysisServicesServer
Provisions the specified Analysis Services server based on the configuration specified in the request.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be a minimum of 3 characters, and a maximum of 63. used to provision the Analysis Services server. will be added to the HTTP request.
1252 1253 1254 1255 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1252 def begin_create(resource_group_name, server_name, server_parameters, custom_headers:nil) response = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_async(resource_group_name, server_name, server_parameters, custom_headers: nil) ⇒ Concurrent::Promise
Provisions the specified Analysis Services server based on the configuration specified in the request.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be a minimum of 3 characters, and a maximum of 63. used to provision the Analysis Services server. to the HTTP request.
1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1293 def begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil? fail ArgumentError, 'server_parameters is nil' if server_parameters.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? # Serialize Request request_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer.mapper() request_content = @client.serialize(request_mapper, server_parameters) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer.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::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer.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_with_http_info(resource_group_name, server_name, server_parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Provisions the specified Analysis Services server based on the configuration specified in the request.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be a minimum of 3 characters, and a maximum of 63. used to provision the Analysis Services server. will be added to the HTTP request.
1273 1274 1275 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1273 def begin_create_with_http_info(resource_group_name, server_name, server_parameters, custom_headers:nil) begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers).value! end |
#begin_delete(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Deletes the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
1382 1383 1384 1385 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1382 def begin_delete(resource_group_name, server_name, custom_headers:nil) response = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end |
#begin_delete_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. to the HTTP request.
1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1417 def begin_delete_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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.AnalysisServices/servers/{serverName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_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 == 204 || 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 end promise.execute end |
#begin_delete_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
1400 1401 1402 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1400 def begin_delete_with_http_info(resource_group_name, server_name, custom_headers:nil) begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! end |
#begin_resume(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Resumes operation of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
1705 1706 1707 1708 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1705 def begin_resume(resource_group_name, server_name, custom_headers:nil) response = begin_resume_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end |
#begin_resume_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Resumes operation of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. to the HTTP request.
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 1785 1786 1787 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1740 def begin_resume_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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.AnalysisServices/servers/{serverName}/resume' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_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 end promise.execute end |
#begin_resume_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resumes operation of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
1723 1724 1725 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1723 def begin_resume_with_http_info(resource_group_name, server_name, custom_headers:nil) begin_resume_async(resource_group_name, server_name, custom_headers:custom_headers).value! end |
#begin_suspend(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Supends operation of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
1609 1610 1611 1612 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1609 def begin_suspend(resource_group_name, server_name, custom_headers:nil) response = begin_suspend_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end |
#begin_suspend_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Supends operation of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. to the HTTP request.
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 1685 1686 1687 1688 1689 1690 1691 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1644 def begin_suspend_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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.AnalysisServices/servers/{serverName}/suspend' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_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 end promise.execute end |
#begin_suspend_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Supends operation of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
1627 1628 1629 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1627 def begin_suspend_with_http_info(resource_group_name, server_name, custom_headers:nil) begin_suspend_async(resource_group_name, server_name, custom_headers:custom_headers).value! end |
#begin_update(resource_group_name, server_name, server_update_parameters, custom_headers: nil) ⇒ AnalysisServicesServer
Updates the current state of the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. Request object that contains the updated information for the server. will be added to the HTTP request.
1481 1482 1483 1484 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1481 def begin_update(resource_group_name, server_name, server_update_parameters, custom_headers:nil) response = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers: nil) ⇒ Concurrent::Promise
Updates the current state of the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. Request object that contains the updated information for the server. to the HTTP request.
1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 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 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1520 def begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil? fail ArgumentError, 'server_update_parameters is nil' if server_update_parameters.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? # Serialize Request request_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServerUpdateParameters.mapper() request_content = @client.serialize(request_mapper, server_update_parameters) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_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 == 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer.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::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer.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, server_name, server_update_parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the current state of the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. Request object that contains the updated information for the server. will be added to the HTTP request.
1501 1502 1503 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1501 def begin_update_with_http_info(resource_group_name, server_name, server_update_parameters, custom_headers:nil) begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers).value! end |
#check_name_availability(location, server_parameters, custom_headers: nil) ⇒ CheckServerNameAvailabilityResult
Check the name availability in the target location.
into. information used to provision the Analysis Services server. will be added to the HTTP request.
954 955 956 957 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 954 def check_name_availability(location, server_parameters, custom_headers:nil) response = check_name_availability_async(location, server_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#check_name_availability_async(location, server_parameters, custom_headers: nil) ⇒ Concurrent::Promise
Check the name availability in the target location.
into. information used to provision the Analysis Services server. to the HTTP request.
987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 987 def check_name_availability_async(location, server_parameters, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'server_parameters is nil' if server_parameters.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? # Serialize Request request_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::CheckServerNameAvailabilityParameters.mapper() request_content = @client.serialize(request_mapper, server_parameters) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/checkNameAvailability' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'location' => location,'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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::CheckServerNameAvailabilityResult.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, server_parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Check the name availability in the target location.
into. information used to provision the Analysis Services server. will be added to the HTTP request.
971 972 973 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 971 def check_name_availability_with_http_info(location, server_parameters, custom_headers:nil) check_name_availability_async(location, server_parameters, custom_headers:custom_headers).value! end |
#create(resource_group_name, server_name, server_parameters, custom_headers: nil) ⇒ AnalysisServicesServer
Provisions the specified Analysis Services server based on the configuration specified in the request.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be a minimum of 3 characters, and a maximum of 63. used to provision the Analysis Services server. will be added to the HTTP request.
149 150 151 152 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 149 def create(resource_group_name, server_name, server_parameters, custom_headers:nil) response = create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_async(resource_group_name, server_name, server_parameters, custom_headers: nil) ⇒ Concurrent::Promise
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be a minimum of 3 characters, and a maximum of 63. used to provision the Analysis Services server. will be added to the HTTP request.
response.
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 168 def create_async(resource_group_name, server_name, server_parameters, custom_headers:nil) # Send request promise = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer.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, server_name, custom_headers: nil) ⇒ Object
Deletes the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
197 198 199 200 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 197 def delete(resource_group_name, server_name, custom_headers:nil) response = delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end |
#delete_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
response.
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 214 def delete_async(resource_group_name, server_name, custom_headers:nil) # Send request promise = begin_delete_async(resource_group_name, server_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 |
#dissociate_gateway(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Dissociates a Unified Gateway associated with the server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
858 859 860 861 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 858 def dissociate_gateway(resource_group_name, server_name, custom_headers:nil) response = dissociate_gateway_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end |
#dissociate_gateway_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Dissociates a Unified Gateway associated with the server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. to the HTTP request.
893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 893 def dissociate_gateway_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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.AnalysisServices/servers/{serverName}/dissociateGateway' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_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 end promise.execute end |
#dissociate_gateway_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Dissociates a Unified Gateway associated with the server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
876 877 878 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 876 def dissociate_gateway_with_http_info(resource_group_name, server_name, custom_headers:nil) dissociate_gateway_async(resource_group_name, server_name, custom_headers:custom_headers).value! end |
#get_details(resource_group_name, server_name, custom_headers: nil) ⇒ AnalysisServicesServer
Gets details about the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be a minimum of 3 characters, and a maximum of 63. will be added to the HTTP request.
39 40 41 42 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 39 def get_details(resource_group_name, server_name, custom_headers:nil) response = get_details_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_details_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets details about the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be a minimum of 3 characters, and a maximum of 63. to the HTTP request.
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 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 74 def get_details_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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.AnalysisServices/servers/{serverName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer.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_details_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets details about the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be a minimum of 3 characters, and a maximum of 63. will be added to the HTTP request.
57 58 59 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 57 def get_details_with_http_info(resource_group_name, server_name, custom_headers:nil) get_details_async(resource_group_name, server_name, custom_headers:custom_headers).value! end |
#list(custom_headers: nil) ⇒ AnalysisServicesServers
Lists all the Analysis Services servers for the given subscription.
will be added to the HTTP request.
475 476 477 478 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 475 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 the Analysis Services servers for the given subscription.
to the HTTP request.
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 500 def list_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.AnalysisServices/servers' 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServers.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) ⇒ AnalysisServicesServers
Gets all the Analysis Services servers for the given resource group.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. will be added to the HTTP request.
381 382 383 384 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 381 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
Gets all the Analysis Services servers for the given resource group.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. to the HTTP request.
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 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 412 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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).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.AnalysisServices/servers' 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServers.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
Gets all the Analysis Services servers for the given resource group.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. will be added to the HTTP request.
397 398 399 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 397 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_gateway_status(resource_group_name, server_name, custom_headers: nil) ⇒ GatewayListStatusLive
Return the gateway status of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. will be added to the HTTP request.
754 755 756 757 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 754 def list_gateway_status(resource_group_name, server_name, custom_headers:nil) response = list_gateway_status_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_gateway_status_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Return the gateway status of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. to the HTTP request.
787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 787 def list_gateway_status_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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.AnalysisServices/servers/{serverName}/listGatewayStatus' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_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 MsRest::HttpOperationError.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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayListStatusLive.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_gateway_status_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Return the gateway status of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. will be added to the HTTP request.
771 772 773 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 771 def list_gateway_status_with_http_info(resource_group_name, server_name, custom_headers:nil) list_gateway_status_async(resource_group_name, server_name, custom_headers:custom_headers).value! end |
#list_operation_results(location, operation_id, custom_headers: nil) ⇒ Object
List the result of the specified operation.
into. will be added to the HTTP request.
1057 1058 1059 1060 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1057 def list_operation_results(location, operation_id, custom_headers:nil) response = list_operation_results_async(location, operation_id, custom_headers:custom_headers).value! nil end |
#list_operation_results_async(location, operation_id, custom_headers: nil) ⇒ Concurrent::Promise
List the result of the specified operation.
into. to the HTTP request.
1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1088 def list_operation_results_async(location, operation_id, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'operation_id is nil' if operation_id.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.AnalysisServices/locations/{location}/operationresults/{operationId}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'location' => location,'operationId' => operation_id,'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 || 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 end promise.execute end |
#list_operation_results_with_http_info(location, operation_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the result of the specified operation.
into. will be added to the HTTP request.
1073 1074 1075 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1073 def list_operation_results_with_http_info(location, operation_id, custom_headers:nil) list_operation_results_async(location, operation_id, custom_headers:custom_headers).value! end |
#list_operation_statuses(location, operation_id, custom_headers: nil) ⇒ OperationStatus
List the status of operation.
into. will be added to the HTTP request.
1142 1143 1144 1145 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1142 def list_operation_statuses(location, operation_id, custom_headers:nil) response = list_operation_statuses_async(location, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_operation_statuses_async(location, operation_id, custom_headers: nil) ⇒ Concurrent::Promise
List the status of operation.
into. to the HTTP request.
1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1173 def list_operation_statuses_async(location, operation_id, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'operation_id is nil' if operation_id.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.AnalysisServices/locations/{location}/operationstatuses/{operationId}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'location' => location,'operationId' => operation_id,'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 || 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationStatus.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::AnalysisServices::Mgmt::V2017_08_01::Models::OperationStatus.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_operation_statuses_with_http_info(location, operation_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the status of operation.
into. will be added to the HTTP request.
1158 1159 1160 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 1158 def list_operation_statuses_with_http_info(location, operation_id, custom_headers:nil) list_operation_statuses_async(location, operation_id, custom_headers:custom_headers).value! end |
#list_skus_for_existing(resource_group_name, server_name, custom_headers: nil) ⇒ SkuEnumerationForExistingResourceResult
Lists eligible SKUs for an Analysis Services resource.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
648 649 650 651 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 648 def list_skus_for_existing(resource_group_name, server_name, custom_headers:nil) response = list_skus_for_existing_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_skus_for_existing_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
Lists eligible SKUs for an Analysis Services resource.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. to the HTTP request.
683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 683 def list_skus_for_existing_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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.AnalysisServices/servers/{serverName}/skus' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuEnumerationForExistingResourceResult.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_for_existing_with_http_info(resource_group_name, server_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists eligible SKUs for an Analysis Services resource.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
666 667 668 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 666 def list_skus_for_existing_with_http_info(resource_group_name, server_name, custom_headers:nil) list_skus_for_existing_async(resource_group_name, server_name, custom_headers:custom_headers).value! end |
#list_skus_for_new(custom_headers: nil) ⇒ SkuEnumerationForNewResourceResult
Lists eligible SKUs for Analysis Services resource provider.
will be added to the HTTP request.
559 560 561 562 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 559 def list_skus_for_new(custom_headers:nil) response = list_skus_for_new_async(custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_skus_for_new_async(custom_headers: nil) ⇒ Concurrent::Promise
Lists eligible SKUs for Analysis Services resource provider.
to the HTTP request.
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 620 621 622 623 624 625 626 627 628 629 630 631 632 633 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 584 def list_skus_for_new_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.AnalysisServices/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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuEnumerationForNewResourceResult.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_for_new_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists eligible SKUs for Analysis Services resource provider.
will be added to the HTTP request.
572 573 574 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 572 def list_skus_for_new_with_http_info(custom_headers:nil) list_skus_for_new_async(custom_headers:custom_headers).value! end |
#list_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists all the Analysis Services servers for the given subscription.
will be added to the HTTP request.
488 489 490 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 488 def list_with_http_info(custom_headers:nil) list_async(custom_headers:custom_headers).value! end |
#resume(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Resumes operation of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
337 338 339 340 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 337 def resume(resource_group_name, server_name, custom_headers:nil) response = resume_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end |
#resume_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
response.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 354 def resume_async(resource_group_name, server_name, custom_headers:nil) # Send request promise = begin_resume_async(resource_group_name, server_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 |
#suspend(resource_group_name, server_name, custom_headers: nil) ⇒ Object
Supends operation of the specified Analysis Services server instance.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
293 294 295 296 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 293 def suspend(resource_group_name, server_name, custom_headers:nil) response = suspend_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end |
#suspend_async(resource_group_name, server_name, custom_headers: nil) ⇒ Concurrent::Promise
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. will be added to the HTTP request.
response.
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 310 def suspend_async(resource_group_name, server_name, custom_headers:nil) # Send request promise = begin_suspend_async(resource_group_name, server_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, server_name, server_update_parameters, custom_headers: nil) ⇒ AnalysisServicesServer
Updates the current state of the specified Analysis Services server.
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. Request object that contains the updated information for the server. will be added to the HTTP request.
245 246 247 248 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 245 def update(resource_group_name, server_name, server_update_parameters, custom_headers:nil) response = update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_async(resource_group_name, server_name, server_update_parameters, custom_headers: nil) ⇒ Concurrent::Promise
which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90. be at least 3 characters in length, and no more than 63. Request object that contains the updated information for the server. will be added to the HTTP request.
response.
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 |
# File 'lib/2017-08-01/generated/azure_mgmt_analysis_services/servers.rb', line 264 def update_async(resource_group_name, server_name, server_update_parameters, custom_headers:nil) # Send request promise = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer.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 |