你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DaprComponent Class

Dapr Component.

Variables are only populated by the server, and will be ignored when sending a request.

Constructor

DaprComponent(*, component_type: str | None = None, version: str | None = None, ignore_errors: bool = False, init_timeout: str | None = None, secrets: List[_models.Secret] | None = None, secret_store_component: str | None = None, metadata: List[_models.DaprMetadata] | None = None, scopes: List[str] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
component_type
str

Component type.

version
str

Component version.

ignore_errors

Boolean describing if the component errors are ignores.

init_timeout
str

Initialization timeout.

secrets

Collection of secrets used by a Dapr component.

secret_store_component
str

Name of a Dapr component to retrieve component secrets from.

metadata

Component metadata.

scopes

Names of container apps that can use this Dapr component.

Variables

Name Description
id
str

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long

name
str

The name of the resource.

type
str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

system_data

Azure Resource Manager metadata containing createdBy and modifiedBy information.

component_type
str

Component type.

version
str

Component version.

ignore_errors

Boolean describing if the component errors are ignores.

init_timeout
str

Initialization timeout.

secrets

Collection of secrets used by a Dapr component.

secret_store_component
str

Name of a Dapr component to retrieve component secrets from.

metadata

Component metadata.

scopes

Names of container apps that can use this Dapr component.