azure.mgmt.applicationinsights.v2020_03_01_preview.operations module

class azure.mgmt.applicationinsights.v2020_03_01_preview.operations.ComponentLinkedStorageAccountsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ApplicationInsightsManagementClient’s component_linked_storage_accounts attribute.

create_and_update(resource_group_name: str, resource_name: str, storage_type: str | StorageType, linked_storage_accounts_properties: ComponentLinkedStorageAccounts | IO[bytes], **kwargs: Any) ComponentLinkedStorageAccounts[source]

Replace current linked storage account for an Application Insights component.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • resource_name (str) – The name of the Application Insights component resource. Required.

  • storage_type (str or StorageType) – The type of the Application Insights component data source for the linked storage account. “ServiceProfiler” Required.

  • linked_storage_accounts_properties (ComponentLinkedStorageAccounts or IO[bytes]) – Properties that need to be specified to update linked storage accounts for an Application Insights component. Is either a ComponentLinkedStorageAccounts type or a IO[bytes] type. Required.

Returns:

ComponentLinkedStorageAccounts or the result of cls(response)

Return type:

ComponentLinkedStorageAccounts

Raises:

HttpResponseError

delete(resource_group_name: str, resource_name: str, storage_type: str | StorageType, **kwargs: Any) None[source]

Delete linked storage accounts for an Application Insights component.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • resource_name (str) – The name of the Application Insights component resource. Required.

  • storage_type (str or StorageType) – The type of the Application Insights component data source for the linked storage account. “ServiceProfiler” Required.

Returns:

None or the result of cls(response)

Return type:

None

Raises:

HttpResponseError

get(resource_group_name: str, resource_name: str, storage_type: str | StorageType, **kwargs: Any) ComponentLinkedStorageAccounts[source]

Returns the current linked storage settings for an Application Insights component.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • resource_name (str) – The name of the Application Insights component resource. Required.

  • storage_type (str or StorageType) – The type of the Application Insights component data source for the linked storage account. “ServiceProfiler” Required.

Returns:

ComponentLinkedStorageAccounts or the result of cls(response)

Return type:

ComponentLinkedStorageAccounts

Raises:

HttpResponseError

update(resource_group_name: str, resource_name: str, storage_type: str | StorageType, linked_storage_accounts_properties: ComponentLinkedStorageAccountsPatch | IO[bytes], **kwargs: Any) ComponentLinkedStorageAccounts[source]

Update linked storage accounts for an Application Insights component.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • resource_name (str) – The name of the Application Insights component resource. Required.

  • storage_type (str or StorageType) – The type of the Application Insights component data source for the linked storage account. “ServiceProfiler” Required.

  • linked_storage_accounts_properties (ComponentLinkedStorageAccountsPatch or IO[bytes]) – Properties that need to be specified to update a linked storage accounts for an Application Insights component. Is either a ComponentLinkedStorageAccountsPatch type or a IO[bytes] type. Required.

Returns:

ComponentLinkedStorageAccounts or the result of cls(response)

Return type:

ComponentLinkedStorageAccounts

Raises:

HttpResponseError

models = <module 'azure.mgmt.applicationinsights.v2020_03_01_preview.models' from '/mnt/vss/_work/1/s/sdk/applicationinsights/azure-mgmt-applicationinsights/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/applicationinsights/v2020_03_01_preview/models/__init__.py'>