DaprComponentResiliencyPoliciesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:dapr_component_resiliency_policies> attribute.
Constructor
DaprComponentResiliencyPoliciesOperations(*args, **kwargs)
Methods
| create_or_update |
Creates or updates a Dapr component resiliency policy. Creates or updates a resiliency policy for a Dapr component. |
| delete |
Delete a Dapr component resiliency policy. Delete a resiliency policy for a Dapr component. |
| get |
Get a Dapr component resiliency policy. Gets the details of a resiliency policy for a Dapr component. |
| list |
Get the resiliency policies for a Dapr component. Lists the resiliency policies configured for a Dapr component. |
create_or_update
Creates or updates a Dapr component resiliency policy.
Creates or updates a resiliency policy for a Dapr component.
create_or_update(resource_group_name: str, environment_name: str, component_name: str, name: str, dapr_component_resiliency_policy_envelope: _models.DaprComponentResiliencyPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> _models.DaprComponentResiliencyPolicy
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
environment_name
Required
|
Name of the managed environment. Required. |
|
component_name
Required
|
Name of the Dapr Component. Required. |
|
name
Required
|
Name of the Dapr Component Resiliency Policy. Required. |
|
dapr_component_resiliency_policy_envelope
Required
|
Configuration details of the Dapr Component Resiliency Policy. Is either a DaprComponentResiliencyPolicy type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
delete
Delete a Dapr component resiliency policy.
Delete a resiliency policy for a Dapr component.
delete(resource_group_name: str, environment_name: str, component_name: str, name: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
environment_name
Required
|
Name of the managed environment. Required. |
|
component_name
Required
|
Name of the Dapr Component. Required. |
|
name
Required
|
Name of the Dapr Component Resiliency Policy. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
get
Get a Dapr component resiliency policy.
Gets the details of a resiliency policy for a Dapr component.
get(resource_group_name: str, environment_name: str, component_name: str, name: str, **kwargs: Any) -> DaprComponentResiliencyPolicy
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
environment_name
Required
|
Name of the managed environment. Required. |
|
component_name
Required
|
Name of the Dapr Component. Required. |
|
name
Required
|
Name of the Dapr Component Resiliency Policy. Required. |
Returns
| Type | Description |
|---|---|
|
DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
Get the resiliency policies for a Dapr component.
Lists the resiliency policies configured for a Dapr component.
list(resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any) -> ItemPaged[DaprComponentResiliencyPolicy]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
environment_name
Required
|
Name of the managed environment. Required. |
|
component_name
Required
|
Name of the Dapr Component. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of DaprComponentResiliencyPolicy |
Exceptions
| Type | Description |
|---|---|