Secret

Smarter API Secret Manifest Constants

Smarter API Manifest - Secret.metadata

class smarter.apps.secret.manifest.models.secret.metadata.SAMSecretMetadata(*, name: str, description: str | None, version: str | None, tags: List[str] | None = <factory>, annotations: List[dict[str, str | int | float | bool | ~datetime.date | ~datetime.datetime | ~decimal.Decimal | ~uuid.UUID | bytes | list | dict]] | None=<factory>)[source]

Bases: AbstractSAMMetadataBase

Smarter API Secret Manifest - Metadata class.

class_identifier: ClassVar[str] = 'Secret.metadata'
model_config: ClassVar[ConfigDict] = {'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.

Return type:

None

Parameters:
  • self – The BaseModel instance.

  • context – The context.

name: str

Smarter API Manifest - Secret.spec

class smarter.apps.secret.manifest.models.secret.spec.SAMSecretSpec(*, config: SAMSecretSpecConfig)[source]

Bases: AbstractSAMSpecBase

Smarter API Secret Manifest Secret.spec

class_identifier: ClassVar[str] = 'Secret.spec'
config: SAMSecretSpecConfig
model_config: ClassVar[ConfigDict] = {'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.

Return type:

None

Parameters:
  • self – The BaseModel instance.

  • context – The context.

class smarter.apps.secret.manifest.models.secret.spec.SAMSecretSpecConfig(*, value: str, expiration_date: datetime | None = None)[source]

Bases: AbstractSAMSpecBase

Smarter API Secret Manifest Secret.spec.config

class_identifier: ClassVar[str] = 'Secret.spec.configuration'
classmethod ensure_utc(v)[source]
expiration_date: datetime | None
mask_value(v)[source]
Return type:

str

model_config: ClassVar[ConfigDict] = {'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.

Return type:

None

Parameters:
  • self – The BaseModel instance.

  • context – The context.

value: str

Smarter API Manifest - User.status

class smarter.apps.secret.manifest.models.secret.status.SAMSecretStatus(*, recordLocator: str, created: datetime, modified: datetime, accountNumber: str, username: str, last_accessed: datetime | None = None)[source]

Bases: AbstractSAMStatusBase

Smarter API Secret Manifest - Status class (read-only, like Kubernetes status attributes).

class Config[source]

Bases: object

frozen = True
accountNumber: str
class_identifier: ClassVar[str] = 'Secret.status'
last_accessed: datetime | None
model_config: ClassVar[ConfigDict] = {'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.

Return type:

None

Parameters:
  • self – The BaseModel instance.

  • context – The context.

username: str

Smarter API Secret Manifest

class smarter.apps.secret.manifest.models.secret.model.SAMSecret(*, apiVersion: str, kind: str, metadata: SAMSecretMetadata, spec: SAMSecretSpec, status: SAMSecretStatus | None = None)[source]

Bases: AbstractSAMBase

Smarter API Manifest - Secret

class_identifier: ClassVar[str] = 'Secret'
metadata: SAMSecretMetadata
model_config: ClassVar[ConfigDict] = {'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.

Return type:

None

Parameters:
  • self – The BaseModel instance.

  • context – The context.

spec: SAMSecretSpec
status: SAMSecretStatus | None