Update api spec (#162)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -4,70 +4,74 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
US = TypeVar("US", bound="CodeOutput")
|
||||
FH = TypeVar("FH", bound="CodeOutput")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class CodeOutput:
|
||||
""" Output of the code being executed. """ # noqa: E501
|
||||
from ..models.output_file import OutputFile
|
||||
output_files: Union[Unset, List[OutputFile]] = UNSET
|
||||
stderr: Union[Unset, str] = UNSET
|
||||
stdout: Union[Unset, str] = UNSET
|
||||
"""Output of the code being executed.""" # noqa: E501
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
from ..models.output_file import OutputFile
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models.output_file import OutputFile
|
||||
output_files: Union[Unset, List[OutputFile]] = UNSET
|
||||
if not isinstance(self.output_files, Unset):
|
||||
output_files = self.output_files
|
||||
stderr = self.stderr
|
||||
stdout = self.stdout
|
||||
output_files: Union[Unset, List[OutputFile]] = UNSET
|
||||
stderr: Union[Unset, str] = UNSET
|
||||
stdout: Union[Unset, str] = UNSET
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if output_files is not UNSET:
|
||||
field_dict['output_files'] = output_files
|
||||
if stderr is not UNSET:
|
||||
field_dict['stderr'] = stderr
|
||||
if stdout is not UNSET:
|
||||
field_dict['stdout'] = stdout
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
return field_dict
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models.output_file import OutputFile
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[US], src_dict: Dict[str, Any]) -> US:
|
||||
d = src_dict.copy()
|
||||
from ..models.output_file import OutputFile
|
||||
output_files = cast(List[OutputFile], d.pop("output_files", UNSET))
|
||||
output_files: Union[Unset, List[OutputFile]] = UNSET
|
||||
if not isinstance(self.output_files, Unset):
|
||||
output_files = self.output_files
|
||||
stderr = self.stderr
|
||||
stdout = self.stdout
|
||||
|
||||
stderr = d.pop("stderr", UNSET)
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if output_files is not UNSET:
|
||||
field_dict["output_files"] = output_files
|
||||
if stderr is not UNSET:
|
||||
field_dict["stderr"] = stderr
|
||||
if stdout is not UNSET:
|
||||
field_dict["stdout"] = stdout
|
||||
|
||||
stdout = d.pop("stdout", UNSET)
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FH], src_dict: Dict[str, Any]) -> FH:
|
||||
d = src_dict.copy()
|
||||
from ..models.output_file import OutputFile
|
||||
|
||||
code_output = cls(
|
||||
output_files= output_files,
|
||||
stderr= stderr,
|
||||
stdout= stdout,
|
||||
)
|
||||
output_files = cast(List[OutputFile], d.pop("output_files", UNSET))
|
||||
|
||||
code_output.additional_properties = d
|
||||
return code_output
|
||||
stderr = d.pop("stderr", UNSET)
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
stdout = d.pop("stdout", UNSET)
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
code_output = cls(
|
||||
output_files=output_files,
|
||||
stderr=stderr,
|
||||
stdout=stdout,
|
||||
)
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
code_output.additional_properties = d
|
||||
return code_output
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
||||
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
|
||||
|
Reference in New Issue
Block a user