pds.api_client.models.reference 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.3.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.reference.Reference(*, description: str | None = None, href: str | None = None, id: str, title: str | None = None, type: str | None = None)[source]

Bases: BaseModel

object describing a reference to a different product. TODO The properties should be defined by a standard (xlink, json-ld) to be chosen

description: StrictStr | None
classmethod from_dict(obj: Dict) Self[source]

Create an instance of Reference from a dict

classmethod from_json(json_str: str) Self[source]

Create an instance of Reference from a JSON string

href: StrictStr | None
id: StrictStr
model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'description': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, description='longer description for the external reference, can be displayed in a tooltip'), 'href': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, description='external reference url of the current reference resolvable by the current API server, http://pds.nasa.gov/api/products/urn:nasa...'), 'id': FieldInfo(annotation=str, required=True, description='external reference, here lidvid urn', metadata=[Strict(strict=True)]), 'title': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, description='name to display for the external reference'), 'type': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, description='type of the external reference, can be displayed as an icon for example')}

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.

title: StrictStr | 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.

to_json() str[source]

Returns the JSON representation of the model using alias

to_str() str[source]

Returns the string representation of the model using alias

type: StrictStr | None