Common Connection Models

Smarter API Manifest - Connection.metadata

class smarter.apps.connection.manifest.models.common.connection.metadata.SAMConnectionCommonMetadata(*, name, description, version, tags=<factory>, annotations=<factory>)[source]

Bases: AbstractSAMMetadataBase

Smarter API Connection Manifest - common 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.

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

  • context (Any) – The context.

Return type:

None

Smarter API Manifest - Connection.status

class smarter.apps.connection.manifest.models.common.connection.status.SAMConnectionCommonStatus(*, recordLocator, created, modified, dependencies=None, account_number, username)[source]

Bases: AbstractSAMStatusBase

Smarter API Connection Manifest - Status class.

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

username: str

Smarter API Connection Manifest.

class smarter.apps.connection.manifest.models.common.connection.model.SAMConnectionCommon(*, apiVersion, kind, metadata, spec, status=None)[source]

Bases: AbstractSAMBase

Smarter API Manifest - Common Connection Base Model.

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

status: SAMConnectionCommonStatus | None