ImageClient¶
- class wwt_api_client.constellations.images.ImageClient(client: CxClient, id: str)[source]¶
Bases:
object
A client for the WWT Constellations APIs calls related to a specific image.
- Parameters:
- client
CxClient
The parent client for making API calls.
- id: str
The ID of the image of interest.
- client
Methods Summary
get
()Get information about this image.
Get a WWT WTML Folder object containing this image as an imageset.
Get a WWT WTML ImageSet object representing this image.
Get a URL that will yield a WTML folder containing this image as an imageset.
Get information about the logged-in user's permissions with regards to this image.
update
(updates)Update various attributes of this image.
Methods Documentation
- get() ImageInfo [source]¶
Get information about this image.
This method corresponds to the GET /image/:id API endpoint.
- imageset_folder() Folder [source]¶
Get a WWT WTML Folder object containing this image as an imageset.
- Returns:
See also
- imageset_object() ImageSet [source]¶
Get a WWT WTML ImageSet object representing this image.
- Returns:
See also
- imageset_wtml_url() str [source]¶
Get a URL that will yield a WTML folder containing this image as an imageset.
- Returns:
- The WTML URL.
See also
- permissions() ImageApiPermissions [source]¶
Get information about the logged-in user’s permissions with regards to this image.
This method corresponds to the GET /image/:id/permissions API endpoint. See that documentation for important guidance about when and how to use this API. In most cases you should not use it, and just go ahead and attempt whatever operation wish to perform.
- update(updates: ImageUpdate)[source]¶
Update various attributes of this image.
This method corresponds to the PATCH /image/:id API endpoint.