StorageAccountsOperations Class

StorageAccountsOperations operations.

Inheritance
builtins.object
StorageAccountsOperations

Constructor

StorageAccountsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

api_version

Client Api Version. Constant value: "2016-11-01".

Methods

add

Updates the specified Data Lake Analytics account to add an Azure Storage account.

delete

Updates the specified Data Lake Analytics account to remove an Azure Storage account.

get

Gets the specified Azure Storage account linked to the given Data Lake Analytics account.

get_storage_container

Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.

list_by_account

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.

list_sas_tokens

Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.

list_storage_containers

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.

update

Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.

add

Updates the specified Data Lake Analytics account to add an Azure Storage account.

add(resource_group_name, account_name, storage_account_name, access_key, suffix=None, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Analytics account.

storage_account_name
str
Required

The name of the Azure Storage account to add

access_key
str
Required

The access key associated with this Azure Storage account that will be used to connect to it.

suffix
str
default value: None

The optional suffix for the storage account.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

None or ClientRawResponse if raw=true

Return type

None,

Exceptions

delete

Updates the specified Data Lake Analytics account to remove an Azure Storage account.

delete(resource_group_name, account_name, storage_account_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Analytics account.

storage_account_name
str
Required

The name of the Azure Storage account to remove

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

None or ClientRawResponse if raw=true

Return type

None,

Exceptions

get

Gets the specified Azure Storage account linked to the given Data Lake Analytics account.

get(resource_group_name, account_name, storage_account_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Analytics account.

storage_account_name
str
Required

The name of the Azure Storage account for which to retrieve the details.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

StorageAccountInformation or ClientRawResponse if raw=true

Return type

Exceptions

get_storage_container

Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.

get_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Analytics account.

storage_account_name
str
Required

The name of the Azure storage account from which to retrieve the blob container.

container_name
str
Required

The name of the Azure storage container to retrieve

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

StorageContainer or ClientRawResponse if raw=true

Return type

Exceptions

list_by_account

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.

list_by_account(resource_group_name, account_name, filter=None, top=None, skip=None, select=None, orderby=None, count=None, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Analytics account.

filter
str
default value: None

The OData filter. Optional.

top
int
default value: None

The number of items to return. Optional.

skip
int
default value: None

The number of items to skip over before returning elements. Optional.

select
str
default value: None

OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional.

orderby
str
default value: None

OrderBy clause. One or more comma-separated 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.

count
bool
default value: None

The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of StorageAccountInformation

Return type

Exceptions

list_sas_tokens

Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.

list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Analytics account.

storage_account_name
str
Required

The name of the Azure storage account for which the SAS token is being requested.

container_name
str
Required

The name of the Azure storage container for which the SAS token is being requested.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of SasTokenInformation

Return type

Exceptions

list_storage_containers

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.

list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Analytics account.

storage_account_name
str
Required

The name of the Azure storage account from which to list blob containers.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of StorageContainer

Return type

Exceptions

update

Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.

update(resource_group_name, account_name, storage_account_name, access_key=None, suffix=None, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the Azure resource group.

account_name
str
Required

The name of the Data Lake Analytics account.

storage_account_name
str
Required

The Azure Storage account to modify

access_key
str
default value: None

The updated access key associated with this Azure Storage account that will be used to connect to it.

suffix
str
default value: None

The optional suffix for the storage account.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

None or ClientRawResponse if raw=true

Return type

None,

Exceptions

Attributes

models

models = <module 'azure.mgmt.datalake.analytics.account.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\datalake\\analytics\\account\\models\\__init__.py'>