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