pds.api_client.models.pds4_metadata module
PDS Registry Search API
Registry API enabling advanced search on PDS data and metadata. The API provides end-points to search for bundles, collections and any PDS products with advanced search queries. It also enables to browse the archive hierarchically downward (e.g. collection/s products) or upward (e.g. bundles containing a product).
The version of the OpenAPI document: 1.5.0 Contact: pds-operator@jpl.nasa.gov Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
- class pds.api_client.models.pds4_metadata.Pds4Metadata(*, node_name: str | None = None, ops_data_files: List[Pds4MetadataOpsDataFile] | None = None, ops_label_file_info: Pds4MetadataOpsLabelFileInfo | None = None, ops_tracking_meta: Pds4MetadataOpsTrackingMeta | None = None)[source]
Bases:
BaseModel
- classmethod from_dict(obj: Dict[str, Any] | None) Self | None [source]
Create an instance of Pds4Metadata from a dict
- classmethod from_json(json_str: str) Self | None [source]
Create an instance of Pds4Metadata from a JSON string
- 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].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'node_name': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False), 'ops_data_files': FieldInfo(annotation=Union[List[pds.api_client.models.pds4_metadata_ops_data_file.Pds4MetadataOpsDataFile], NoneType], required=False, alias='ops:Data_Files', alias_priority=2), 'ops_label_file_info': FieldInfo(annotation=Union[Pds4MetadataOpsLabelFileInfo, NoneType], required=False, alias='ops:Label_File_Info', alias_priority=2), 'ops_tracking_meta': FieldInfo(annotation=Union[Pds4MetadataOpsTrackingMeta, NoneType], required=False, alias='ops:Tracking_Meta', alias_priority=2)}
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: Any) None
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.
- Args:
self: The BaseModel instance. __context: The context.
- node_name: StrictStr | None
- ops_data_files: List[Pds4MetadataOpsDataFile] | None
- ops_label_file_info: Pds4MetadataOpsLabelFileInfo | None
- ops_tracking_meta: Pds4MetadataOpsTrackingMeta | None
- to_dict() Dict[str, Any] [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.