Pydantic Models
Smarter API PluginData Sql Connection Manifest Constants
Smarter API Manifest - User.metadata
- class smarter.apps.provider.manifest.models.provider.metadata.SAMProviderMetadata(*, 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:
AbstractSAMMetadataBaseSmarter API Provider Manifest - Metadata class.
Smarter API Manifest - Plugin.spec
- class smarter.apps.provider.manifest.models.provider.spec.SAMProviderSpec(*, provider: SAMProviderSpecProvider)[source]
Bases:
AbstractSAMSpecBaseSmarter API Api Connection Manifest ApiConnection.spec
- 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:
- Parameters:
self – The BaseModel instance.
context – The context.
- provider: SAMProviderSpecProvider
- class smarter.apps.provider.manifest.models.provider.spec.SAMProviderSpecProvider(*, name: str, description: str | None = None, base_url: str | None = None, api_key: str | None = None, connectivity_test_path: str | None = '', logo: str | None = None, website_url: str | None = None, contact_email: EmailStr | None = None, support_email: EmailStr | None = None, terms_of_service_url: str | None = None, docs_url: str | None = None, privacy_policy_url: str | None = None)[source]
Bases:
SmarterBasePydanticModelSmarter API - generic API Connection class.
- 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:
- Parameters:
self – The BaseModel instance.
context – The context.
- smarter.apps.provider.manifest.models.provider.spec.should_log(level)[source]
Check if logging should be done based on the waffle switch.
Smarter API Manifest - Account.status
- class smarter.apps.provider.manifest.models.provider.status.SAMProviderStatus(*, recordLocator: str, created: datetime, modified: datetime, is_active: bool, is_flagged: bool, is_deprecated: bool, is_suspended: bool, is_verified: bool, ownership_requested: EmailStr | None = None, contact_email_verified: datetime | None = None, support_email_verified: datetime | None = None, tos_accepted_at: datetime | None = None, tos_accepted_by: EmailStr | None = None, can_activate: bool = True)[source]
Bases:
AbstractSAMStatusBaseSmarter API Provider Manifest - Status class.
- 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:
- Parameters:
self – The BaseModel instance.
context – The context.
Smarter API Account Manifest
- class smarter.apps.provider.manifest.models.provider.model.SAMProvider(*, apiVersion: str, kind: str, metadata: SAMProviderMetadata, spec: SAMProviderSpec, status: SAMProviderStatus | None = None)[source]
Bases:
AbstractSAMBaseSmarter API Manifest - Account
- metadata: SAMProviderMetadata
- 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:
- Parameters:
self – The BaseModel instance.
context – The context.
- spec: SAMProviderSpec
- status: SAMProviderStatus | None