Common Connection Models

Smarter API Manifest - Connection.metadata

class smarter.apps.connection.manifest.models.common.connection.metadata.SAMConnectionCommonMetadata(*, 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 Connection Manifest - common Metadata 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:

None

Parameters:
  • self – The BaseModel instance.

  • context – The context.

Smarter API Manifest - Connection.status

class smarter.apps.connection.manifest.models.common.connection.status.SAMConnectionCommonStatus(*, recordLocator: str, created: datetime, modified: datetime, account_number: str, username: str)[source]

Bases: AbstractSAMStatusBase

Smarter API Connection Manifest - Status class.

account_number: str
class_identifier: ClassVar[str] = 'Connection.status'
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 Connection Manifest

class smarter.apps.connection.manifest.models.common.connection.model.SAMConnectionCommon(*, apiVersion: str, kind: str, metadata: SAMConnectionCommonMetadata, spec: AbstractSAMSpecBase = <property object>, status: SAMConnectionCommonStatus | None = None)[source]

Bases: AbstractSAMBase

Smarter API Manifest - Common Connection Base Model

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

status: SAMConnectionCommonStatus | None