Compartilhar via


StorageAccountsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

DataLakeAnalyticsAccountManagementClient's

<xref:storage_accounts> attribute.

Inheritance
builtins.object
StorageAccountsOperations

Constructor

StorageAccountsOperations(*args, **kwargs)

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.

async add(resource_group_name: str, account_name: str, storage_account_name: str, parameters: _models.AddStorageAccountParameters, *, content_type: str = 'application/json', **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

storage_account_name
Required
str

The name of the Azure Storage account to add. Required.

parameters
Required

The parameters containing the access key and optional suffix for the Azure Storage Account. Is either a model type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

delete

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

async delete(resource_group_name: str, account_name: str, storage_account_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

storage_account_name
Required
str

The name of the Azure Storage account to remove. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

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

async get(resource_group_name: str, account_name: str, storage_account_name: str, **kwargs: Any) -> StorageAccountInformation

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

storage_account_name
Required
str

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

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

StorageAccountInformation or the result of cls(response)

Exceptions

Type Description

get_storage_container

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

async get_storage_container(resource_group_name: str, account_name: str, storage_account_name: str, container_name: str, **kwargs: Any) -> StorageContainer

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

storage_account_name
Required
str

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

container_name
Required
str

The name of the Azure storage container to retrieve. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

StorageContainer or the result of cls(response)

Exceptions

Type Description

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: str, account_name: str, filter: str | None = None, top: int | None = None, skip: int | None = None, select: str | None = None, orderby: str | None = None, count: bool | None = None, **kwargs: Any) -> AsyncIterable[StorageAccountInformation]

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

filter
Required
str

The OData filter. Optional. Default value is None.

top
Required
int

The number of items to return. Optional. Default value is None.

skip
Required
int

The number of items to skip over before returning elements. Optional. Default value is None.

select
Required
str

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

orderby
Required
str

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. Default value is None.

count
Required

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. Default value is None.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either StorageAccountInformation or the result of cls(response)

Exceptions

Type Description

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: str, account_name: str, storage_account_name: str, container_name: str, **kwargs: Any) -> AsyncIterable[SasTokenInformation]

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

storage_account_name
Required
str

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

container_name
Required
str

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

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either SasTokenInformation or the result of cls(response)

Exceptions

Type Description

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: str, account_name: str, storage_account_name: str, **kwargs: Any) -> AsyncIterable[StorageContainer]

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

storage_account_name
Required
str

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

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either StorageContainer or the result of cls(response)

Exceptions

Type Description

update

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

async update(resource_group_name: str, account_name: str, storage_account_name: str, parameters: _models.UpdateStorageAccountParameters | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

storage_account_name
Required
str

The Azure Storage account to modify. Required.

parameters
Required

The parameters containing the access key and suffix to update the storage account with, if any. Passing nothing results in no change. Is either a model type or a IO type. Default value is None.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

Attributes

models

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