pds.api_client.api_response module

API response object.

class pds.api_client.api_response.ApiResponse(*, status_code: Annotated[int, Strict(strict=True)], headers: Mapping[str, str] | None = None, data: T, raw_data: Annotated[bytes, Strict(strict=True)])[source]

Bases: BaseModel, Generic[T]

API response object

data: T
headers: Mapping[str, str] | None
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}

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

raw_data: StrictBytes
status_code: StrictInt