SecretStubConfig
Header or query-parameter injection configuration for a secret stub.
Shared
SecretStubConfig declaration
Section titled “SecretStubConfig declaration”class SecretStubConfig:SecretStubConfig construction
Section titled “SecretStubConfig construction”SecretStubConfig(credential: str, header: str | None = None, value: str | None = None, param: str | None = None)SecretStubConfig attributes
Section titled “SecretStubConfig attributes”| Name | Type or value | Description |
|---|---|---|
credential | str | Stored secret name to inject. |
header | str | None | HTTP header that receives the credential. |
value | str | None | Template used for the injected header value. |
param | str | None | Query parameter that receives the credential. |
SecretStubConfig methods
Section titled “SecretStubConfig methods”to_config()
Section titled “to_config()”Convert this secret-stub configuration to the API wire format.
def to_config() -> dict[str, Any]Returns
Section titled “Returns”dict[str, Any]