wallaroo.wallaroo_ml_ops_api_client.models.v1_task_get_by_id_response_200_task_attempt_output_item_error_data
1from typing import Any, Dict, List, Type, TypeVar 2 3import attr 4 5T = TypeVar("T", bound="V1TaskGetByIdResponse200TaskAttemptOutputItemErrorData") 6 7@attr.s(auto_attribs=True) 8class V1TaskGetByIdResponse200TaskAttemptOutputItemErrorData: 9 """ 10 """ 11 12 additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) 13 14 15 def to_dict(self) -> Dict[str, Any]: 16 17 field_dict: Dict[str, Any] = {} 18 field_dict.update(self.additional_properties) 19 field_dict.update({ 20 }) 21 22 return field_dict 23 24 25 26 @classmethod 27 def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: 28 d = src_dict.copy() 29 v1_task_get_by_id_response_200_task_attempt_output_item_error_data = cls( 30 ) 31 32 v1_task_get_by_id_response_200_task_attempt_output_item_error_data.additional_properties = d 33 return v1_task_get_by_id_response_200_task_attempt_output_item_error_data 34 35 @property 36 def additional_keys(self) -> List[str]: 37 return list(self.additional_properties.keys()) 38 39 def __getitem__(self, key: str) -> Any: 40 return self.additional_properties[key] 41 42 def __setitem__(self, key: str, value: Any) -> None: 43 self.additional_properties[key] = value 44 45 def __delitem__(self, key: str) -> None: 46 del self.additional_properties[key] 47 48 def __contains__(self, key: str) -> bool: 49 return key in self.additional_properties
@attr.s(auto_attribs=True)
class
V1TaskGetByIdResponse200TaskAttemptOutputItemErrorData:
8@attr.s(auto_attribs=True) 9class V1TaskGetByIdResponse200TaskAttemptOutputItemErrorData: 10 """ 11 """ 12 13 additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) 14 15 16 def to_dict(self) -> Dict[str, Any]: 17 18 field_dict: Dict[str, Any] = {} 19 field_dict.update(self.additional_properties) 20 field_dict.update({ 21 }) 22 23 return field_dict 24 25 26 27 @classmethod 28 def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: 29 d = src_dict.copy() 30 v1_task_get_by_id_response_200_task_attempt_output_item_error_data = cls( 31 ) 32 33 v1_task_get_by_id_response_200_task_attempt_output_item_error_data.additional_properties = d 34 return v1_task_get_by_id_response_200_task_attempt_output_item_error_data 35 36 @property 37 def additional_keys(self) -> List[str]: 38 return list(self.additional_properties.keys()) 39 40 def __getitem__(self, key: str) -> Any: 41 return self.additional_properties[key] 42 43 def __setitem__(self, key: str, value: Any) -> None: 44 self.additional_properties[key] = value 45 46 def __delitem__(self, key: str) -> None: 47 del self.additional_properties[key] 48 49 def __contains__(self, key: str) -> bool: 50 return key in self.additional_properties
V1TaskGetByIdResponse200TaskAttemptOutputItemErrorData()
Method generated by attrs for class V1TaskGetByIdResponse200TaskAttemptOutputItemErrorData.
@classmethod
def
from_dict(cls: Type[~T], src_dict: Dict[str, Any]) -> ~T:
27 @classmethod 28 def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: 29 d = src_dict.copy() 30 v1_task_get_by_id_response_200_task_attempt_output_item_error_data = cls( 31 ) 32 33 v1_task_get_by_id_response_200_task_attempt_output_item_error_data.additional_properties = d 34 return v1_task_get_by_id_response_200_task_attempt_output_item_error_data