SAM Model

Smarter API SmarterAuthToken Manifest

class smarter.lib.drf.manifest.models.auth_token.model.SAMSmarterAuthToken(*, apiVersion: str, kind: str, metadata: SAMSmarterAuthTokenMetadata, spec: SAMSmarterAuthTokenSpec, status: SAMSmarterAuthTokenStatus | None = 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.

Return type:

None

Parameters:
  • self – The BaseModel instance.

  • context – The context.

spec: SAMSmarterAuthTokenSpec
status: SAMSmarterAuthTokenStatus | None