DaprComponentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ContainerAppsAPIClient's

<xref:dapr_components> attribute.

Inheritance
builtins.object
DaprComponentsOperations

Constructor

DaprComponentsOperations(*args, **kwargs)

Methods

create_or_update

Creates or updates a Dapr Component.

Creates or updates a Dapr Component in a Managed Environment.

delete

Delete a Dapr Component.

Delete a Dapr Component from a Managed Environment.

get

Get a dapr component.

Get a dapr component.

list

Get the Dapr Components for a managed environment.

Get the Dapr Components for a managed environment.

list_secrets

List secrets for a dapr component.

List secrets for a dapr component.

create_or_update

Creates or updates a Dapr Component.

Creates or updates a Dapr Component in a Managed Environment.

create_or_update(resource_group_name: str, environment_name: str, component_name: str, dapr_component_envelope: _models.DaprComponent, *, content_type: str = 'application/json', **kwargs: Any) -> _models.DaprComponent

Parameters

Name Description
resource_group_name
Required
str

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

environment_name
Required
str

Name of the Managed Environment. Required.

component_name
Required
str

Name of the Dapr Component. Required.

dapr_component_envelope
Required

Configuration details of the Dapr Component. Is either a DaprComponent type or a IO[bytes] type. Required.

Returns

Type Description

DaprComponent or the result of cls(response)

Exceptions

Type Description

delete

Delete a Dapr Component.

Delete a Dapr Component from a Managed Environment.

delete(resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

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

environment_name
Required
str

Name of the Managed Environment. Required.

component_name
Required
str

Name of the Dapr Component. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Get a dapr component.

Get a dapr component.

get(resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any) -> DaprComponent

Parameters

Name Description
resource_group_name
Required
str

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

environment_name
Required
str

Name of the Managed Environment. Required.

component_name
Required
str

Name of the Dapr Component. Required.

Returns

Type Description

DaprComponent or the result of cls(response)

Exceptions

Type Description

list

Get the Dapr Components for a managed environment.

Get the Dapr Components for a managed environment.

list(resource_group_name: str, environment_name: str, **kwargs: Any) -> Iterable[DaprComponent]

Parameters

Name Description
resource_group_name
Required
str

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

environment_name
Required
str

Name of the Managed Environment. Required.

Returns

Type Description

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

Exceptions

Type Description

list_secrets

List secrets for a dapr component.

List secrets for a dapr component.

list_secrets(resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any) -> DaprSecretsCollection

Parameters

Name Description
resource_group_name
Required
str

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

environment_name
Required
str

Name of the Managed Environment. Required.

component_name
Required
str

Name of the Dapr Component. Required.

Returns

Type Description

DaprSecretsCollection or the result of cls(response)

Exceptions

Type Description

Attributes

models

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