API Connection Model
Smarter API Connection Manifest Constants
Smarter API Manifest - ApiConnection.spec
- class smarter.apps.connection.manifest.models.api_connection.spec.ApiConnection(*, baseUrl: str, apiKey: str | None = None, authMethod: str = 'none', timeout: Annotated[int, Ge(ge=1)] = 30, proxyProtocol: str | None = None, proxyHost: str | None = None, proxyPort: int | None = None, proxyUsername: str | None = None, proxyPassword: 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.
- class smarter.apps.connection.manifest.models.api_connection.spec.SAMApiConnectionSpec(*, connection: ApiConnection)[source]
Bases:
AbstractSAMSpecBaseSmarter API Api Connection Manifest ApiConnection.spec
- connection: ApiConnection
Smarter Connection Manifest
- class smarter.apps.connection.manifest.models.api_connection.model.SAMApiConnection(*, apiVersion: str, kind: str, metadata: SAMConnectionCommonMetadata, spec: SAMApiConnectionSpec, status: SAMConnectionCommonStatus | None = None)[source]
Bases:
SAMConnectionCommonSmarter API Connection Manifest - ApiConnection Model
- 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: SAMApiConnectionSpec