diff --git a/docs/api/wwt_api_client.constellations.data.SceneAstroPix.rst b/docs/api/wwt_api_client.constellations.data.SceneAstroPix.rst new file mode 100644 index 0000000..a84077b --- /dev/null +++ b/docs/api/wwt_api_client.constellations.data.SceneAstroPix.rst @@ -0,0 +1,35 @@ +SceneAstroPix +============= + +.. currentmodule:: wwt_api_client.constellations.data + +.. autoclass:: SceneAstroPix + :show-inheritance: + + .. rubric:: Attributes Summary + + .. autosummary:: + + ~SceneAstroPix.dataclass_json_config + + .. rubric:: Methods Summary + + .. autosummary:: + + ~SceneAstroPix.from_dict + ~SceneAstroPix.from_json + ~SceneAstroPix.schema + ~SceneAstroPix.to_dict + ~SceneAstroPix.to_json + + .. rubric:: Attributes Documentation + + .. autoattribute:: dataclass_json_config + + .. rubric:: Methods Documentation + + .. automethod:: from_dict + .. automethod:: from_json + .. automethod:: schema + .. automethod:: to_dict + .. automethod:: to_json diff --git a/wwt_api_client/constellations/data.py b/wwt_api_client/constellations/data.py index c99feef..6f0efd6 100644 --- a/wwt_api_client/constellations/data.py +++ b/wwt_api_client/constellations/data.py @@ -33,6 +33,7 @@ ImageStorage ImageSummary ImageUpdate ImageWwt +SceneAstroPix SceneContent SceneContentHydrated SceneContentUpdate @@ -271,6 +272,16 @@ class ScenePreviews: thumbnail: Optional[str] = None +@dataclass_json(undefined="EXCLUDE") +@dataclass +class SceneAstroPix: + """Information about an association between a Constellations scene and an + AstroPix image.""" + + publisher_id: str + image_id: str + + @dataclass_json(undefined="EXCLUDE") @dataclass class SceneHydrated: @@ -288,6 +299,7 @@ class SceneHydrated: text: str previews: ScenePreviews published: bool + astropix: Optional[SceneAstroPix] = None @dataclass_json(undefined="EXCLUDE")