Class: Azure::DataLakeAnalytics::Mgmt::V2016_11_01::StorageAccounts
- Inherits:
-
Object
- Object
- Azure::DataLakeAnalytics::Mgmt::V2016_11_01::StorageAccounts
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_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
-
#add(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ Object
Updates the specified Data Lake Analytics account to add an Azure Storage account.
-
#add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Updates the specified Data Lake Analytics account to add an Azure Storage account.
-
#add_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the specified Data Lake Analytics account to add an Azure Storage account.
-
#delete(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Object
Updates the specified Data Lake Analytics account to remove an Azure Storage account.
-
#delete_async(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Concurrent::Promise
Updates the specified Data Lake Analytics account to remove an Azure Storage account.
-
#delete_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the specified Data Lake Analytics account to remove an Azure Storage account.
-
#get(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ StorageAccountInformation
Gets the specified Azure Storage account linked to the given Data Lake Analytics account.
-
#get_async(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the specified Azure Storage account linked to the given Data Lake Analytics account.
-
#get_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ StorageContainer
Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.
-
#get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.
-
#get_storage_container_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.
-
#get_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the specified Azure Storage account linked to the given Data Lake Analytics account.
-
#initialize(client) ⇒ StorageAccounts
constructor
Creates and initializes a new instance of the StorageAccounts class.
-
#list_by_account(resource_group_name, account_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Array<StorageAccountInformation>
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account.
-
#list_by_account_as_lazy(resource_group_name, account_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ StorageAccountInformationListResult
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account.
-
#list_by_account_async(resource_group_name, account_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account.
-
#list_by_account_next(next_page_link, custom_headers: nil) ⇒ StorageAccountInformationListResult
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account.
-
#list_by_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account.
-
#list_by_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account.
-
#list_by_account_with_http_info(resource_group_name, account_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account.
-
#list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ Array<SasTokenInformation>
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
-
#list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ SasTokenInformationListResult
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
-
#list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
-
#list_sas_tokens_next(next_page_link, custom_headers: nil) ⇒ SasTokenInformationListResult
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
-
#list_sas_tokens_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
-
#list_sas_tokens_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
-
#list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
-
#list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Array<StorageContainer>
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination.
-
#list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ StorageContainerListResult
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination.
-
#list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Concurrent::Promise
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination.
-
#list_storage_containers_next(next_page_link, custom_headers: nil) ⇒ StorageContainerListResult
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination.
-
#list_storage_containers_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination.
-
#list_storage_containers_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination.
-
#list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination.
-
#update(resource_group_name, account_name, storage_account_name, parameters: nil, custom_headers: nil) ⇒ Object
Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
-
#update_async(resource_group_name, account_name, storage_account_name, parameters: nil, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
-
#update_with_http_info(resource_group_name, account_name, storage_account_name, parameters: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
Constructor Details
#initialize(client) ⇒ StorageAccounts
Creates and initializes a new instance of the StorageAccounts class.
17 18 19 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_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/storage_accounts.rb', line 22 def client @client end |
Instance Method Details
#add(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ Object
Updates the specified Data Lake Analytics account to add an Azure Storage account.
add access key and optional suffix for the Azure Storage Account. will be added to the HTTP request.
180 181 182 183 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 180 def add(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) response = add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value! nil end |
#add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Updates the specified Data Lake Analytics account to add an Azure Storage account.
add access key and optional suffix for the Azure Storage Account. to the HTTP request.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 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 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 219 def add_async(resource_group_name, account_name, storage_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, 'storage_account_name is nil' if storage_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::AddStorageAccountParameters.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}/storageAccounts/{storageAccountName}' 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,'storageAccountName' => storage_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 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 |
#add_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the specified Data Lake Analytics account to add an Azure Storage account.
add access key and optional suffix for the Azure Storage Account. will be added to the HTTP request.
200 201 202 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 200 def add_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value! end |
#delete(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Object
Updates the specified Data Lake Analytics account to remove an Azure Storage account.
remove will be added to the HTTP request.
489 490 491 492 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 489 def delete(resource_group_name, account_name, storage_account_name, custom_headers:nil) response = delete_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! nil end |
#delete_async(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Concurrent::Promise
Updates the specified Data Lake Analytics account to remove an Azure Storage account.
remove to the HTTP request.
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 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 524 def delete_async(resource_group_name, account_name, storage_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, 'storage_account_name is nil' if storage_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}/storageAccounts/{storageAccountName}' 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,'storageAccountName' => storage_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 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 |
#delete_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the specified Data Lake Analytics account to remove an Azure Storage account.
remove will be added to the HTTP request.
507 508 509 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 507 def delete_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) delete_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end |
#get(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ StorageAccountInformation
Gets the specified Azure Storage account linked to the given Data Lake Analytics account.
for which to retrieve the details. will be added to the HTTP request.
284 285 286 287 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 284 def get(resource_group_name, account_name, storage_account_name, custom_headers:nil) response = get_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_async(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the specified Azure Storage account linked to the given Data Lake Analytics account.
for which to retrieve the details. to the HTTP request.
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 319 def get_async(resource_group_name, account_name, storage_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, 'storage_account_name is nil' if storage_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}/storageAccounts/{storageAccountName}' 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,'storageAccountName' => storage_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::StorageAccountInformation.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_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ StorageContainer
Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.
from which to retrieve the blob container. retrieve will be added to the HTTP request.
688 689 690 691 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 688 def get_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) response = get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.
from which to retrieve the blob container. retrieve to the HTTP request.
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 727 def get_storage_container_async(resource_group_name, account_name, storage_account_name, container_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, 'storage_account_name is nil' if storage_account_name.nil? fail ArgumentError, 'container_name is nil' if container_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}/storageAccounts/{storageAccountName}/containers/{containerName}' 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,'storageAccountName' => storage_account_name,'containerName' => container_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::StorageContainer.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_storage_container_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.
from which to retrieve the blob container. retrieve will be added to the HTTP request.
708 709 710 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 708 def get_storage_container_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! end |
#get_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the specified Azure Storage account linked to the given Data Lake Analytics account.
for which to retrieve the details. will be added to the HTTP request.
302 303 304 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 302 def get_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) get_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end |
#list_by_account(resource_group_name, account_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Array<StorageAccountInformation>
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response 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.
50 51 52 53 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 50 def list_by_account(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) first_page = list_by_account_as_lazy(resource_group_name, account_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_account_as_lazy(resource_group_name, account_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ StorageAccountInformationListResult
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response 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.
1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 1197 def list_by_account_as_lazy(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) response = list_by_account_async(resource_group_name, account_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_account_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_account_async(resource_group_name, account_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response 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.
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 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 111 def list_by_account_async(resource_group_name, account_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, 'account_name is nil' if account_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/{accountName}/storageAccounts' 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: {'$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::StorageAccountInformationListResult.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_account_next(next_page_link, custom_headers: nil) ⇒ StorageAccountInformationListResult
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.
to List operation. will be added to the HTTP request.
903 904 905 906 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 903 def list_by_account_next(next_page_link, custom_headers:nil) response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.
to List operation. to the HTTP request.
936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 936 def list_by_account_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::StorageAccountInformationListResult.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_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.
to List operation. will be added to the HTTP request.
920 921 922 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 920 def list_by_account_next_with_http_info(next_page_link, custom_headers:nil) list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_account_with_http_info(resource_group_name, account_name, filter: nil, top: nil, skip: nil, select: nil, orderby: nil, count: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response 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.
81 82 83 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 81 def list_by_account_with_http_info(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) list_by_account_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! end |
#list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ Array<SasTokenInformation>
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
for which the SAS token is being requested. which the SAS token is being requested. will be added to the HTTP request.
797 798 799 800 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 797 def list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) first_page = list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ SasTokenInformationListResult
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
for which the SAS token is being requested. which the SAS token is being requested. will be added to the HTTP request.
the response.
1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 1250 def list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) response = list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
for which the SAS token is being requested. which the SAS token is being requested. to the HTTP request.
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 836 def list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_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, 'storage_account_name is nil' if storage_account_name.nil? fail ArgumentError, 'container_name is nil' if container_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}/storageAccounts/{storageAccountName}/containers/{containerName}/listSasTokens' 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,'storageAccountName' => storage_account_name,'containerName' => container_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # 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::SasTokenInformationListResult.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_sas_tokens_next(next_page_link, custom_headers: nil) ⇒ SasTokenInformationListResult
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
to List operation. will be added to the HTTP request.
1090 1091 1092 1093 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 1090 def list_sas_tokens_next(next_page_link, custom_headers:nil) response = list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_sas_tokens_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
to List operation. to the HTTP request.
1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 1121 def list_sas_tokens_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(: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::SasTokenInformationListResult.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_sas_tokens_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
to List operation. will be added to the HTTP request.
1106 1107 1108 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 1106 def list_sas_tokens_next_with_http_info(next_page_link, custom_headers:nil) list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
for which the SAS token is being requested. which the SAS token is being requested. will be added to the HTTP request.
817 818 819 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 817 def list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! end |
#list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Array<StorageContainer>
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.
from which to list blob containers. will be added to the HTTP request.
582 583 584 585 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 582 def list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers:nil) first_page = list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ StorageContainerListResult
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.
from which to list blob containers. will be added to the HTTP request.
the response.
1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 1223 def list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers:nil) response = list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_storage_containers_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Concurrent::Promise
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.
from which to list blob containers. to the HTTP request.
619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 619 def list_storage_containers_async(resource_group_name, account_name, storage_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, 'storage_account_name is nil' if storage_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}/storageAccounts/{storageAccountName}/containers' 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,'storageAccountName' => storage_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::StorageContainerListResult.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_storage_containers_next(next_page_link, custom_headers: nil) ⇒ StorageContainerListResult
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.
to List operation. will be added to the HTTP request.
997 998 999 1000 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 997 def list_storage_containers_next(next_page_link, custom_headers:nil) response = list_storage_containers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_storage_containers_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.
to List operation. to the HTTP request.
1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 1030 def list_storage_containers_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::StorageContainerListResult.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_storage_containers_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.
to List operation. will be added to the HTTP request.
1014 1015 1016 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 1014 def list_storage_containers_next_with_http_info(next_page_link, custom_headers:nil) list_storage_containers_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.
from which to list blob containers. will be added to the HTTP request.
601 602 603 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 601 def list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end |
#update(resource_group_name, account_name, storage_account_name, parameters: nil, custom_headers: nil) ⇒ Object
Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
the access key and suffix to update the storage account with, if any. Passing nothing results in no change. will be added to the HTTP request.
387 388 389 390 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 387 def update(resource_group_name, account_name, storage_account_name, parameters:nil, custom_headers:nil) response = update_async(resource_group_name, account_name, storage_account_name, parameters:parameters, custom_headers:custom_headers).value! nil end |
#update_async(resource_group_name, account_name, storage_account_name, parameters: nil, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
the access key and suffix to update the storage account with, if any. Passing nothing results in no change. to the HTTP request.
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 466 467 468 469 470 471 472 473 474 475 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 426 def update_async(resource_group_name, account_name, storage_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, 'storage_account_name is nil' if storage_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::UpdateStorageAccountParameters.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}/storageAccounts/{storageAccountName}' 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,'storageAccountName' => storage_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 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 |
#update_with_http_info(resource_group_name, account_name, storage_account_name, parameters: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
the access key and suffix to update the storage account with, if any. Passing nothing results in no change. will be added to the HTTP request.
407 408 409 |
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb', line 407 def update_with_http_info(resource_group_name, account_name, storage_account_name, parameters:nil, custom_headers:nil) update_async(resource_group_name, account_name, storage_account_name, parameters:parameters, custom_headers:custom_headers).value! end |