@@ -54,7 +54,7 @@ def __init__(self, dataset_name: str) -> None:
5454 self .__dataset_name = dataset_name
5555
5656 @classmethod
57- def from_response (cls , response : geoengine_openapi_client .CreateDatasetHandler200Response ) -> DatasetName :
57+ def from_response (cls , response : geoengine_openapi_client .DatasetNameResponse ) -> DatasetName :
5858 '''Parse a http response to an `DatasetName`'''
5959 return DatasetName (response .dataset_name )
6060
@@ -71,8 +71,8 @@ def __eq__(self, other) -> bool:
7171
7272 return self .__dataset_name == other .__dataset_name # pylint: disable=protected-access
7373
74- def to_api_dict (self ) -> geoengine_openapi_client .CreateDatasetHandler200Response :
75- return geoengine_openapi_client .CreateDatasetHandler200Response (
74+ def to_api_dict (self ) -> geoengine_openapi_client .DatasetNameResponse :
75+ return geoengine_openapi_client .DatasetNameResponse (
7676 dataset_name = str (self .__dataset_name )
7777 )
7878
@@ -86,7 +86,7 @@ def __init__(self, upload_id: UUID) -> None:
8686 self .__upload_id = upload_id
8787
8888 @classmethod
89- def from_response (cls , response : geoengine_openapi_client .AddCollection200Response ) -> UploadId :
89+ def from_response (cls , response : geoengine_openapi_client .IdResponse ) -> UploadId :
9090 '''Parse a http response to an `UploadId`'''
9191 return UploadId (UUID (response .id ))
9292
@@ -103,9 +103,9 @@ def __eq__(self, other) -> bool:
103103
104104 return self .__upload_id == other .__upload_id # pylint: disable=protected-access
105105
106- def to_api_dict (self ) -> geoengine_openapi_client .AddCollection200Response :
106+ def to_api_dict (self ) -> geoengine_openapi_client .IdResponse :
107107 '''Converts the upload id to a dict for the api'''
108- return geoengine_openapi_client .AddCollection200Response (
108+ return geoengine_openapi_client .IdResponse (
109109 id = str (self .__upload_id )
110110 )
111111
0 commit comments