Secret
Smarter API Secret Manifest Constants.
Smarter API Manifest - Secret.metadata
- class smarter.apps.secret.manifest.models.secret.metadata.SAMSecretMetadata(*, name, description, version, tags=<factory>, annotations=<factory>)[source]
Bases:
AbstractSAMMetadataBaseSmarter API Secret Manifest - Metadata class.
- model_config = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
Smarter API Manifest - Secret.spec.
- class smarter.apps.secret.manifest.models.secret.spec.SAMSecretSpec(*, config)[source]
Bases:
AbstractSAMSpecBaseSmarter API Secret Manifest Secret.spec.
- config: SAMSecretSpecConfig
- model_config = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- class smarter.apps.secret.manifest.models.secret.spec.SAMSecretSpecConfig(*, value, expiration_date=None)[source]
Bases:
AbstractSAMSpecBaseSmarter API Secret Manifest Secret.spec.config.
- classmethod ensure_utc(v)[source]
Treat a naive
expiration_dateas UTC.- Parameters:
v – The expiration date, or None.
- Returns:
The date, with UTC as its time zone if it had none, or None.
- Raises:
ValueError – when it is not a datetime.
- mask_value(v)[source]
Mask the secret value when the spec is serialized, so that it is never shown.
- model_config = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
Smarter API Manifest - User.status
- class smarter.apps.secret.manifest.models.secret.status.SAMSecretStatus(*, recordLocator, created, modified, dependencies=None, accountNumber, username, last_accessed=None)[source]
Bases:
AbstractSAMStatusBaseSmarter API Secret Manifest - Status class (read-only, like Kubernetes status attributes).
- model_config = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
Smarter API Secret Manifest
- class smarter.apps.secret.manifest.models.secret.model.SAMSecret(*, apiVersion, kind, metadata, spec, status=None)[source]
Bases:
AbstractSAMBaseSmarter API Manifest - Secret
- metadata: SAMSecretMetadata
- model_config = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- spec: SAMSecretSpec
- status: SAMSecretStatus | None