User
Smarter API User Manifest Constants.
Smarter API Manifest - User.metadata
- class smarter.apps.account.manifest.models.user.metadata.SAMUserMetadata(*, name, description, version, tags=<factory>, annotations=<factory>, username)[source]
Bases:
AbstractSAMMetadataBaseSmarter API User 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 - User.spec.
- class smarter.apps.account.manifest.models.user.spec.SAMUserAccountMembership(*, accountNumber, isAccountAdmin=False)[source]
Bases:
AbstractSAMSpecBaseSmarter API User Manifest User.spec.accounts[]: the user’s membership of one account.
- 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.account.manifest.models.user.spec.SAMUserSpec(*, config, accounts=None)[source]
Bases:
AbstractSAMSpecBaseSmarter API User Manifest User.spec.
- accounts: list[SAMUserAccountMembership] | None
- config: SAMUserSpecConfig
- 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.account.manifest.models.user.spec.SAMUserSpecConfig(*, firstName=None, lastName=None, email, isStaff=False, isActive, passwordSecret=None)[source]
Bases:
AbstractSAMSpecBaseSmarter API User Manifest User.spec.config.
- 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.account.manifest.models.user.status.SAMUserStatus(*, recordLocator, created, modified, dependencies=None, account_number, username)[source]
Bases:
AbstractSAMStatusBaseSmarter API User Manifest - Status 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 User Manifest
- class smarter.apps.account.manifest.models.user.model.SAMUser(*, apiVersion, kind, metadata, spec, status=None)[source]
Bases:
AbstractSAMBaseSmarter API Manifest - User
- metadata: SAMUserMetadata
- 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: SAMUserSpec
- status: SAMUserStatus | None