-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-generate client with new swagger json (#944)
* re-generate client with new swagger json * use right l4_sample version
- Loading branch information
Showing
16 changed files
with
1,047 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
webknossos/webknossos/client/_generated/models/annotation_private_link_params.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union | ||
|
||
import attr | ||
|
||
from ..types import UNSET, Unset | ||
|
||
if TYPE_CHECKING: | ||
from ..models.instant import Instant | ||
|
||
|
||
T = TypeVar("T", bound="AnnotationPrivateLinkParams") | ||
|
||
|
||
@attr.s(auto_attribs=True) | ||
class AnnotationPrivateLinkParams: | ||
""" | ||
Attributes: | ||
annotation (str): | ||
expiration_date_time (Union[Unset, Instant]): | ||
""" | ||
|
||
annotation: str | ||
expiration_date_time: Union[Unset, "Instant"] = UNSET | ||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) | ||
|
||
def to_dict(self) -> Dict[str, Any]: | ||
annotation = self.annotation | ||
expiration_date_time: Union[Unset, Dict[str, Any]] = UNSET | ||
if not isinstance(self.expiration_date_time, Unset): | ||
expiration_date_time = self.expiration_date_time.to_dict() | ||
|
||
field_dict: Dict[str, Any] = {} | ||
field_dict.update(self.additional_properties) | ||
field_dict.update( | ||
{ | ||
"annotation": annotation, | ||
} | ||
) | ||
if expiration_date_time is not UNSET: | ||
field_dict["expirationDateTime"] = expiration_date_time | ||
|
||
return field_dict | ||
|
||
@classmethod | ||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: | ||
from ..models.instant import Instant | ||
|
||
d = src_dict.copy() | ||
annotation = d.pop("annotation") | ||
|
||
_expiration_date_time = d.pop("expirationDateTime", UNSET) | ||
expiration_date_time: Union[Unset, Instant] | ||
if isinstance(_expiration_date_time, Unset): | ||
expiration_date_time = UNSET | ||
else: | ||
expiration_date_time = Instant.from_dict(_expiration_date_time) | ||
|
||
annotation_private_link_params = cls( | ||
annotation=annotation, | ||
expiration_date_time=expiration_date_time, | ||
) | ||
|
||
annotation_private_link_params.additional_properties = d | ||
return annotation_private_link_params | ||
|
||
@property | ||
def additional_keys(self) -> List[str]: | ||
return list(self.additional_properties.keys()) | ||
|
||
def __getitem__(self, key: str) -> Any: | ||
return self.additional_properties[key] | ||
|
||
def __setitem__(self, key: str, value: Any) -> None: | ||
self.additional_properties[key] = value | ||
|
||
def __delitem__(self, key: str) -> None: | ||
del self.additional_properties[key] | ||
|
||
def __contains__(self, key: str) -> bool: | ||
return key in self.additional_properties |
57 changes: 57 additions & 0 deletions
57
webknossos/webknossos/client/_generated/models/cancel_upload_information.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
from typing import Any, Dict, List, Type, TypeVar | ||
|
||
import attr | ||
|
||
T = TypeVar("T", bound="CancelUploadInformation") | ||
|
||
|
||
@attr.s(auto_attribs=True) | ||
class CancelUploadInformation: | ||
""" | ||
Attributes: | ||
upload_id (str): | ||
""" | ||
|
||
upload_id: str | ||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) | ||
|
||
def to_dict(self) -> Dict[str, Any]: | ||
upload_id = self.upload_id | ||
|
||
field_dict: Dict[str, Any] = {} | ||
field_dict.update(self.additional_properties) | ||
field_dict.update( | ||
{ | ||
"uploadId": upload_id, | ||
} | ||
) | ||
|
||
return field_dict | ||
|
||
@classmethod | ||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: | ||
d = src_dict.copy() | ||
upload_id = d.pop("uploadId") | ||
|
||
cancel_upload_information = cls( | ||
upload_id=upload_id, | ||
) | ||
|
||
cancel_upload_information.additional_properties = d | ||
return cancel_upload_information | ||
|
||
@property | ||
def additional_keys(self) -> List[str]: | ||
return list(self.additional_properties.keys()) | ||
|
||
def __getitem__(self, key: str) -> Any: | ||
return self.additional_properties[key] | ||
|
||
def __setitem__(self, key: str, value: Any) -> None: | ||
self.additional_properties[key] = value | ||
|
||
def __delitem__(self, key: str) -> None: | ||
del self.additional_properties[key] | ||
|
||
def __contains__(self, key: str) -> bool: | ||
return key in self.additional_properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
from typing import Any, Dict, List, Type, TypeVar | ||
|
||
import attr | ||
|
||
T = TypeVar("T", bound="Instant") | ||
|
||
|
||
@attr.s(auto_attribs=True) | ||
class Instant: | ||
""" | ||
Attributes: | ||
epoch_millis (int): | ||
past (bool): | ||
""" | ||
|
||
epoch_millis: int | ||
past: bool | ||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) | ||
|
||
def to_dict(self) -> Dict[str, Any]: | ||
epoch_millis = self.epoch_millis | ||
past = self.past | ||
|
||
field_dict: Dict[str, Any] = {} | ||
field_dict.update(self.additional_properties) | ||
field_dict.update( | ||
{ | ||
"epochMillis": epoch_millis, | ||
"past": past, | ||
} | ||
) | ||
|
||
return field_dict | ||
|
||
@classmethod | ||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: | ||
d = src_dict.copy() | ||
epoch_millis = d.pop("epochMillis") | ||
|
||
past = d.pop("past") | ||
|
||
instant = cls( | ||
epoch_millis=epoch_millis, | ||
past=past, | ||
) | ||
|
||
instant.additional_properties = d | ||
return instant | ||
|
||
@property | ||
def additional_keys(self) -> List[str]: | ||
return list(self.additional_properties.keys()) | ||
|
||
def __getitem__(self, key: str) -> Any: | ||
return self.additional_properties[key] | ||
|
||
def __setitem__(self, key: str, value: Any) -> None: | ||
self.additional_properties[key] = value | ||
|
||
def __delitem__(self, key: str) -> None: | ||
del self.additional_properties[key] | ||
|
||
def __contains__(self, key: str) -> bool: | ||
return key in self.additional_properties |
92 changes: 92 additions & 0 deletions
92
webknossos/webknossos/client/_generated/models/js_object.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar | ||
|
||
import attr | ||
|
||
if TYPE_CHECKING: | ||
from ..models.js_object_underlying import JsObjectUnderlying | ||
from ..models.js_object_value import JsObjectValue | ||
from ..models.tuple_2_string_js_value import Tuple2StringJsValue | ||
|
||
|
||
T = TypeVar("T", bound="JsObject") | ||
|
||
|
||
@attr.s(auto_attribs=True) | ||
class JsObject: | ||
""" | ||
Attributes: | ||
underlying (JsObjectUnderlying): | ||
fields (List['Tuple2StringJsValue']): | ||
value (JsObjectValue): | ||
""" | ||
|
||
underlying: "JsObjectUnderlying" | ||
fields: List["Tuple2StringJsValue"] | ||
value: "JsObjectValue" | ||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) | ||
|
||
def to_dict(self) -> Dict[str, Any]: | ||
underlying = self.underlying.to_dict() | ||
|
||
fields = [] | ||
for fields_item_data in self.fields: | ||
fields_item = fields_item_data.to_dict() | ||
|
||
fields.append(fields_item) | ||
|
||
value = self.value.to_dict() | ||
|
||
field_dict: Dict[str, Any] = {} | ||
field_dict.update(self.additional_properties) | ||
field_dict.update( | ||
{ | ||
"underlying": underlying, | ||
"fields": fields, | ||
"value": value, | ||
} | ||
) | ||
|
||
return field_dict | ||
|
||
@classmethod | ||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: | ||
from ..models.js_object_underlying import JsObjectUnderlying | ||
from ..models.js_object_value import JsObjectValue | ||
from ..models.tuple_2_string_js_value import Tuple2StringJsValue | ||
|
||
d = src_dict.copy() | ||
underlying = JsObjectUnderlying.from_dict(d.pop("underlying")) | ||
|
||
fields = [] | ||
_fields = d.pop("fields") | ||
for fields_item_data in _fields: | ||
fields_item = Tuple2StringJsValue.from_dict(fields_item_data) | ||
|
||
fields.append(fields_item) | ||
|
||
value = JsObjectValue.from_dict(d.pop("value")) | ||
|
||
js_object = cls( | ||
underlying=underlying, | ||
fields=fields, | ||
value=value, | ||
) | ||
|
||
js_object.additional_properties = d | ||
return js_object | ||
|
||
@property | ||
def additional_keys(self) -> List[str]: | ||
return list(self.additional_properties.keys()) | ||
|
||
def __getitem__(self, key: str) -> Any: | ||
return self.additional_properties[key] | ||
|
||
def __setitem__(self, key: str, value: Any) -> None: | ||
self.additional_properties[key] = value | ||
|
||
def __delitem__(self, key: str) -> None: | ||
del self.additional_properties[key] | ||
|
||
def __contains__(self, key: str) -> bool: | ||
return key in self.additional_properties |
Oops, something went wrong.