SourceDetail¶
- class openapi_client.models.source_detail.SourceDetail(**data)[source]¶
Bases:
BaseModelDetails of a data source linked to a knowledge base.
- source_name: Optional[StrictStr]¶
- source_id: Optional[StrictStr]¶
- source_type: Optional[StrictStr]¶
- source_status: Optional[StrictStr]¶
- description: Optional[StrictStr]¶
- chunking_configuration: Optional[Dict[str, Any]]¶
- parsing_configuration: Optional[ResourceAdditionRequestParsingConfiguration]¶
- resource_type: Optional[StrictStr]¶
- resource_name: Optional[StrictStr]¶
- resource_key: Optional[StrictStr]¶
- last_modified_time: Optional[datetime]¶
- last_modified_by: Optional[StrictStr]¶
- model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- classmethod from_json(json_str)[source]¶
Create an instance of SourceDetail from a JSON string
- Return type:
Optional[Self]
- to_dict()[source]¶
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic’s self.model_dump(by_alias=True):
None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.
- Return type:
Dict[str,Any]
- classmethod from_dict(obj)[source]¶
Create an instance of SourceDetail from a dict
- Return type:
Optional[Self]
- model_fields: ClassVar[dict[str, FieldInfo]] = {'chunking_configuration': FieldInfo(annotation=Union[Dict[str, Any], NoneType], required=False, alias='ChunkingConfiguration', alias_priority=2, description='Configuration for chunking strategy.'), 'description': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Description', alias_priority=2, description='The description of the data source.'), 'last_modified_by': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='LastModifiedBy', alias_priority=2, description='The ID of the user who last modified the data source.'), 'last_modified_time': FieldInfo(annotation=Union[datetime, NoneType], required=False, alias='LastModifiedTime', alias_priority=2, description='Timestamp when the data source was last modified.'), 'parsing_configuration': FieldInfo(annotation=Union[ResourceAdditionRequestParsingConfiguration, NoneType], required=False, alias='ParsingConfiguration', alias_priority=2), 'resource_key': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ResourceKey', alias_priority=2, description='The unique key or identifier of the resource.'), 'resource_name': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ResourceName', alias_priority=2, description='The name of the resource.'), 'resource_type': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ResourceType', alias_priority=2, description="The type of resource represented by this data source (e.g., 'domain', 'dataset')."), 'source_id': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='SourceId', alias_priority=2, description='The unique identifier of the data source.'), 'source_name': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='SourceName', alias_priority=2, description='The name of the data source.'), 'source_status': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='SourceStatus', alias_priority=2, description='The current status of the data source.'), 'source_type': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='SourceType', alias_priority=2, description="The type of the data source (e.g., 'S3').")}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- model_post_init(__context)¶
This function is meant to behave like a BaseModel method to initialise 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