Class: Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Accounts
- Inherits:
-
Object
- Object
- Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Accounts
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb
Overview
Creates an Azure Data Lake Analytics account management client.
Instance Attribute Summary collapse
-
#client ⇒ DataLakeAnalyticsAccountManagementClient
readonly
Reference to the DataLakeAnalyticsAccountManagementClient.
Instance Method Summary collapse
-
#begin_create(resource_group_name, account_name, parameters, custom_headers: nil) ⇒ DataLakeAnalyticsAccount
Creates the specified Data Lake Analytics account.
-
#begin_create_async(resource_group_name, account_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Creates the specified Data Lake Analytics account.
-
#begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates the specified Data Lake Analytics account.
-
#begin_delete(resource_group_name, account_name, custom_headers: nil) ⇒ Object
Begins the delete process for the Data Lake Analytics account object specified by the account name.
-
#begin_delete_async(resource_group_name, account_name, custom_headers: nil) ⇒ Concurrent::Promise
Begins the delete process for the Data Lake Analytics account object specified by the account name.
-
#begin_delete_with_http_info(resource_group_name, account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Begins the delete process for the Data Lake Analytics account object specified by the account name.
-
#begin_update(resource_group_name, account_name, parameters: nil, custom_headers: nil) ⇒ DataLakeAnalyticsAccount
Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
-
#begin_update_async(resource_group_name, account_name, parameters: nil, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
-
#begin_update_with_http_info(resource_group_name, account_name, parameters: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
-
#check_name_availability(location, parameters, custom_headers: nil) ⇒ NameAvailabilityInformation
Checks whether the specified account name is available or taken.
-
#check_name_availability_async(location, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Checks whether the specified account name is available or taken.
-
#check_name_availability_with_http_info(location, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Checks whether the specified account name is available or taken.
-
#create(resource_group_name, account_name, parameters, custom_headers: nil) ⇒ DataLakeAnalyticsAccount
Creates the specified Data Lake Analytics account.
-
#create_async(resource_group_name, account_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
supplied to create a new Data Lake Analytics account.
-
#delete(resource_group_name, account_name, custom_headers: nil) ⇒ Object
Begins the delete process for the Data Lake Analytics account object specified by the account name.
-
#delete_async(resource_group_name, account_name, custom_headers: nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
-
#get(resource_group_name, account_name, custom_headers: nil) ⇒ DataLakeAnalyticsAccount
Gets details of the specified Data Lake Analytics account.
-
#get_async(resource_group_name, account_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets details of the specified Data Lake Analytics account.
-
#get_with_http_info(resource_group_name, account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets details of the specified Data Lake Analytics account.
-
#initialize(client) ⇒ Accounts
constructor
Creates and initializes a new instance of the Accounts class.
-
#list(filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Array<DataLakeAnalyticsAccountBasic>
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription.
-
#list_as_lazy(filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription.
-
#list_async(filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription.
-
#list_by_resource_group(resource_group_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Array<DataLakeAnalyticsAccountBasic>
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group.
-
#list_by_resource_group_as_lazy(resource_group_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group.
-
#list_by_resource_group_async(resource_group_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group.
-
#list_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group.
-
#list_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group.
-
#list_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group.
-
#list_by_resource_group_with_http_info(resource_group_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group.
-
#list_next(next_page_link, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription.
-
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription.
-
#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription.
-
#list_with_http_info(filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription.
-
#update(resource_group_name, account_name, parameters: nil, custom_headers: nil) ⇒ DataLakeAnalyticsAccount
Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
-
#update_async(resource_group_name, account_name, parameters: nil, custom_headers: nil) ⇒ Concurrent::Promise
supplied to the update Data Lake Analytics account operation.
Constructor Details
#initialize(client) ⇒ Accounts
Creates and initializes a new instance of the Accounts class.
17 18 19 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 17 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ DataLakeAnalyticsAccountManagementClient (readonly)
Returns reference to the DataLakeAnalyticsAccountManagementClient.
22 23 24 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 22 def client @client end |
Instance Method Details
#begin_create(resource_group_name, account_name, parameters, custom_headers: nil) ⇒ DataLakeAnalyticsAccount
Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads.
supplied to create a new Data Lake Analytics account. will be added to the HTTP request.
630 631 632 633 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 630 def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_async(resource_group_name, account_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads.
supplied to create a new Data Lake Analytics account. to the HTTP request.
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 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 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 665 def begin_create_async(resource_group_name, account_name, parameters, 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, 'account_name is nil' if account_name.nil? fail ArgumentError, 'parameters is nil' if parameters.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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateDataLakeAnalyticsAccountParameters.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.DataLakeAnalytics/accounts/{accountName}' 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,'accountName' => account_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(: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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.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, account_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads.
supplied to create a new Data Lake Analytics account. will be added to the HTTP request.
648 649 650 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 648 def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end |
#begin_delete(resource_group_name, account_name, custom_headers: nil) ⇒ Object
Begins the delete process for the Data Lake Analytics account object specified by the account name.
will be added to the HTTP request.
874 875 876 877 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 874 def begin_delete(resource_group_name, account_name, custom_headers:nil) response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end |
#begin_delete_async(resource_group_name, account_name, custom_headers: nil) ⇒ Concurrent::Promise
Begins the delete process for the Data Lake Analytics account object specified by the account name.
to the HTTP request.
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 941 942 943 944 945 946 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 905 def begin_delete_async(resource_group_name, account_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, 'account_name is nil' if account_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.DataLakeAnalytics/accounts/{accountName}' 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,'accountName' => account_name}, 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 end promise.execute end |
#begin_delete_with_http_info(resource_group_name, account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Begins the delete process for the Data Lake Analytics account object specified by the account name.
will be added to the HTTP request.
890 891 892 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 890 def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil) begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end |
#begin_update(resource_group_name, account_name, parameters: nil, custom_headers: nil) ⇒ DataLakeAnalyticsAccount
Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
supplied to the update Data Lake Analytics account operation. will be added to the HTTP request.
749 750 751 752 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 749 def begin_update(resource_group_name, account_name, parameters:nil, custom_headers:nil) response = begin_update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_update_async(resource_group_name, account_name, parameters: nil, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
supplied to the update Data Lake Analytics account operation. to the HTTP request.
784 785 786 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 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 784 def begin_update_async(resource_group_name, account_name, parameters:nil, 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, 'account_name is nil' if account_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? # Serialize Request request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateDataLakeAnalyticsAccountParameters.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.DataLakeAnalytics/accounts/{accountName}' 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,'accountName' => account_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(: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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.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, account_name, parameters: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
supplied to the update Data Lake Analytics account operation. will be added to the HTTP request.
767 768 769 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 767 def begin_update_with_http_info(resource_group_name, account_name, parameters:nil, custom_headers:nil) begin_update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers).value! end |
#check_name_availability(location, parameters, custom_headers: nil) ⇒ NameAvailabilityInformation
Checks whether the specified account name is available or taken.
check the Data Lake Analytics account name availability. will be added to the HTTP request.
526 527 528 529 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 526 def check_name_availability(location, parameters, custom_headers:nil) response = check_name_availability_async(location, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#check_name_availability_async(location, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Checks whether the specified account name is available or taken.
check the Data Lake Analytics account name availability. to the HTTP request.
557 558 559 560 561 562 563 564 565 566 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 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 557 def check_name_availability_async(location, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'parameters is nil' if parameters.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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters.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}/providers/Microsoft.DataLakeAnalytics/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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::NameAvailabilityInformation.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, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Checks whether the specified account name is available or taken.
check the Data Lake Analytics account name availability. will be added to the HTTP request.
542 543 544 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 542 def check_name_availability_with_http_info(location, parameters, custom_headers:nil) check_name_availability_async(location, parameters, custom_headers:custom_headers).value! end |
#create(resource_group_name, account_name, parameters, custom_headers: nil) ⇒ DataLakeAnalyticsAccount
Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads.
supplied to create a new Data Lake Analytics account. will be added to the HTTP request.
303 304 305 306 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 303 def create(resource_group_name, account_name, parameters, custom_headers:nil) response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_async(resource_group_name, account_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
supplied to create a new Data Lake Analytics account. will be added to the HTTP request.
response.
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 319 def create_async(resource_group_name, account_name, parameters, custom_headers:nil) # Send request promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.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, account_name, custom_headers: nil) ⇒ Object
Begins the delete process for the Data Lake Analytics account object specified by the account name.
will be added to the HTTP request.
485 486 487 488 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 485 def delete(resource_group_name, account_name, custom_headers:nil) response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end |
#delete_async(resource_group_name, account_name, custom_headers: nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 499 def delete_async(resource_group_name, account_name, custom_headers:nil) # Send request promise = begin_delete_async(resource_group_name, account_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 |
#get(resource_group_name, account_name, custom_headers: nil) ⇒ DataLakeAnalyticsAccount
Gets details of the specified Data Lake Analytics account.
will be added to the HTTP request.
347 348 349 350 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 347 def get(resource_group_name, account_name, custom_headers:nil) response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_async(resource_group_name, account_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets details of the specified Data Lake Analytics account.
to the HTTP request.
376 377 378 379 380 381 382 383 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 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 376 def get_async(resource_group_name, account_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, 'account_name is nil' if account_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.DataLakeAnalytics/accounts/{accountName}' 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,'accountName' => account_name}, 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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.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, account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets details of the specified Data Lake Analytics account.
will be added to the HTTP request.
362 363 364 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 362 def get_with_http_info(resource_group_name, account_name, custom_headers:nil) get_async(resource_group_name, account_name, custom_headers:custom_headers).value! end |
#list(filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Array<DataLakeAnalyticsAccountBasic>
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
elements. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. will be added to the HTTP request.
47 48 49 50 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 47 def list(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) first_page = list_as_lazy(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers) first_page.get_all_items end |
#list_as_lazy(filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
elements. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. will be added to the HTTP request.
pages of the response.
1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 1154 def list_as_lazy(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) response = list_async(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_async(filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
elements. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. to the HTTP request.
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 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 102 def list_async(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1 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.DataLakeAnalytics/accounts' 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: {'$filter' => filter,'$top' => top,'$skip' => skip,'$select' => select,'$orderby' => orderby,'$count' => count,'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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListResult.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, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Array<DataLakeAnalyticsAccountBasic>
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.
elements. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. will be added to the HTTP request.
179 180 181 182 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 179 def list_by_resource_group(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers) first_page.get_all_items end |
#list_by_resource_group_as_lazy(resource_group_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.
elements. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. will be added to the HTTP request.
pages of the response.
1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 1190 def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_resource_group_async(resource_group_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.
elements. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. to the HTTP request.
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 236 def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, 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, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1 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.DataLakeAnalytics/accounts' 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}, query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$select' => select,'$orderby' => orderby,'$count' => count,'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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListResult.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_next(next_page_link, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.
to List operation. will be added to the HTTP request.
1050 1051 1052 1053 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 1050 def list_by_resource_group_next(next_page_link, custom_headers:nil) response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.
to List operation. to the HTTP request.
1081 1082 1083 1084 1085 1086 1087 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 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 1081 def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, 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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListResult.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_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.
to List operation. will be added to the HTTP request.
1066 1067 1068 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 1066 def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_resource_group_with_http_info(resource_group_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.
elements. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. will be added to the HTTP request.
208 209 210 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 208 def list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! end |
#list_next(next_page_link, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
to List operation. will be added to the HTTP request.
959 960 961 962 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 959 def list_next(next_page_link, custom_headers:nil) response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
to List operation. to the HTTP request.
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 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 990 def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, 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::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListResult.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_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
to List operation. will be added to the HTTP request.
975 976 977 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 975 def list_next_with_http_info(next_page_link, custom_headers:nil) list_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_with_http_info(filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
elements. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. will be added to the HTTP request.
75 76 77 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 75 def list_with_http_info(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) list_async(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! end |
#update(resource_group_name, account_name, parameters: nil, custom_headers: nil) ⇒ DataLakeAnalyticsAccount
Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
supplied to the update Data Lake Analytics account operation. will be added to the HTTP request.
442 443 444 445 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 442 def update(resource_group_name, account_name, parameters:nil, custom_headers:nil) response = update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_async(resource_group_name, account_name, parameters: nil, custom_headers: nil) ⇒ Concurrent::Promise
supplied to the update Data Lake Analytics account operation. will be added to the HTTP request.
response.
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb', line 458 def update_async(resource_group_name, account_name, parameters:nil, custom_headers:nil) # Send request promise = begin_update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.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 |