SAM Model

The Pydantic model of a SmarterAuthToken manifest.

class smarter.lib.drf.manifest.models.auth_token.model.SAMSmarterAuthToken(*, apiVersion, kind, metadata, spec, status=None)[source]

Bases: AbstractSAMBase

Smarter API Manifest - SmarterAuthToken.

class_identifier: ClassVar[str] = 'SmarterAuthToken'
metadata: SAMSmarterAuthTokenMetadata
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.

Parameters:
  • self (BaseModel) – The BaseModel instance.

  • context (Any) – The context.

Return type:

None

spec: SAMSmarterAuthTokenSpec
status: SAMSmarterAuthTokenStatus | None