LinkedStorageAccountsOperations Class

LinkedStorageAccountsOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
LinkedStorageAccountsOperations

Constructor

LinkedStorageAccountsOperations(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

models

Alias to model classes used in this operation group.

Methods

create_or_update

Create or Update a link relation between current workspace and a group of storage accounts of a specific data source type.

delete

Deletes all linked storage accounts of a specific data source type associated with the specified workspace.

get

Gets all linked storage account of a specific data source type associated with the specified workspace.

list_by_workspace

Gets all linked storage accounts associated with the specified workspace, storage accounts will be sorted by their data source type.

create_or_update

Create or Update a link relation between current workspace and a group of storage accounts of a specific data source type.

async create_or_update(resource_group_name: str, workspace_name: str, data_source_type: Union[str, azure.mgmt.loganalytics.models._log_analytics_management_client_enums.DataSourceType], parameters: azure.mgmt.loganalytics.models._models_py3.LinkedStorageAccountsResource, **kwargs: Any) -> azure.mgmt.loganalytics.models._models_py3.LinkedStorageAccountsResource

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

workspace_name
str
Required

The name of the workspace.

data_source_type
str or DataSourceType
Required

Linked storage accounts type.

parameters
LinkedStorageAccountsResource
Required

The parameters required to create or update linked storage accounts.

cls
callable

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

Returns

LinkedStorageAccountsResource, or the result of cls(response)

Return type

Exceptions

delete

Deletes all linked storage accounts of a specific data source type associated with the specified workspace.

async delete(resource_group_name: str, workspace_name: str, data_source_type: Union[str, azure.mgmt.loganalytics.models._log_analytics_management_client_enums.DataSourceType], **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

workspace_name
str
Required

The name of the workspace.

data_source_type
str or DataSourceType
Required

Linked storage accounts type.

cls
callable

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

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Gets all linked storage account of a specific data source type associated with the specified workspace.

async get(resource_group_name: str, workspace_name: str, data_source_type: Union[str, azure.mgmt.loganalytics.models._log_analytics_management_client_enums.DataSourceType], **kwargs: Any) -> azure.mgmt.loganalytics.models._models_py3.LinkedStorageAccountsResource

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

workspace_name
str
Required

The name of the workspace.

data_source_type
str or DataSourceType
Required

Linked storage accounts type.

cls
callable

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

Returns

LinkedStorageAccountsResource, or the result of cls(response)

Return type

Exceptions

list_by_workspace

Gets all linked storage accounts associated with the specified workspace, storage accounts will be sorted by their data source type.

list_by_workspace(resource_group_name: str, workspace_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.loganalytics.models._models_py3.LinkedStorageAccountsListResult]

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

workspace_name
str
Required

The name of the workspace.

cls
callable

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

Returns

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

Return type

Exceptions

Attributes

models

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