wallaroo.wallaroo_ml_ops_api_client.models.plateau_get_pipeline_topic_name_json_body
1from typing import Any, Dict, List, Type, TypeVar, Union 2 3import attr 4 5from ..types import UNSET, Unset 6 7T = TypeVar("T", bound="PlateauGetPipelineTopicNameJsonBody") 8 9@attr.s(auto_attribs=True) 10class PlateauGetPipelineTopicNameJsonBody: 11 """ Request for pipeline topic name. 12 13 Attributes: 14 pipeline_name (str): Pipeline name. 15 workspace_id (Union[Unset, None, int]): Optional workspace identifier. 16 """ 17 18 pipeline_name: str 19 workspace_id: Union[Unset, None, int] = UNSET 20 additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) 21 22 23 def to_dict(self) -> Dict[str, Any]: 24 pipeline_name = self.pipeline_name 25 workspace_id = self.workspace_id 26 27 field_dict: Dict[str, Any] = {} 28 field_dict.update(self.additional_properties) 29 field_dict.update({ 30 "pipeline_name": pipeline_name, 31 }) 32 if workspace_id is not UNSET: 33 field_dict["workspace_id"] = workspace_id 34 35 return field_dict 36 37 38 39 @classmethod 40 def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: 41 d = src_dict.copy() 42 pipeline_name = d.pop("pipeline_name") 43 44 workspace_id = d.pop("workspace_id", UNSET) 45 46 plateau_get_pipeline_topic_name_json_body = cls( 47 pipeline_name=pipeline_name, 48 workspace_id=workspace_id, 49 ) 50 51 plateau_get_pipeline_topic_name_json_body.additional_properties = d 52 return plateau_get_pipeline_topic_name_json_body 53 54 @property 55 def additional_keys(self) -> List[str]: 56 return list(self.additional_properties.keys()) 57 58 def __getitem__(self, key: str) -> Any: 59 return self.additional_properties[key] 60 61 def __setitem__(self, key: str, value: Any) -> None: 62 self.additional_properties[key] = value 63 64 def __delitem__(self, key: str) -> None: 65 del self.additional_properties[key] 66 67 def __contains__(self, key: str) -> bool: 68 return key in self.additional_properties
@attr.s(auto_attribs=True)
class
PlateauGetPipelineTopicNameJsonBody:
10@attr.s(auto_attribs=True) 11class PlateauGetPipelineTopicNameJsonBody: 12 """ Request for pipeline topic name. 13 14 Attributes: 15 pipeline_name (str): Pipeline name. 16 workspace_id (Union[Unset, None, int]): Optional workspace identifier. 17 """ 18 19 pipeline_name: str 20 workspace_id: Union[Unset, None, int] = UNSET 21 additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) 22 23 24 def to_dict(self) -> Dict[str, Any]: 25 pipeline_name = self.pipeline_name 26 workspace_id = self.workspace_id 27 28 field_dict: Dict[str, Any] = {} 29 field_dict.update(self.additional_properties) 30 field_dict.update({ 31 "pipeline_name": pipeline_name, 32 }) 33 if workspace_id is not UNSET: 34 field_dict["workspace_id"] = workspace_id 35 36 return field_dict 37 38 39 40 @classmethod 41 def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: 42 d = src_dict.copy() 43 pipeline_name = d.pop("pipeline_name") 44 45 workspace_id = d.pop("workspace_id", UNSET) 46 47 plateau_get_pipeline_topic_name_json_body = cls( 48 pipeline_name=pipeline_name, 49 workspace_id=workspace_id, 50 ) 51 52 plateau_get_pipeline_topic_name_json_body.additional_properties = d 53 return plateau_get_pipeline_topic_name_json_body 54 55 @property 56 def additional_keys(self) -> List[str]: 57 return list(self.additional_properties.keys()) 58 59 def __getitem__(self, key: str) -> Any: 60 return self.additional_properties[key] 61 62 def __setitem__(self, key: str, value: Any) -> None: 63 self.additional_properties[key] = value 64 65 def __delitem__(self, key: str) -> None: 66 del self.additional_properties[key] 67 68 def __contains__(self, key: str) -> bool: 69 return key in self.additional_properties
Request for pipeline topic name.
Attributes: pipeline_name (str): Pipeline name. workspace_id (Union[Unset, None, int]): Optional workspace identifier.
PlateauGetPipelineTopicNameJsonBody( pipeline_name: str, workspace_id: Union[wallaroo.wallaroo_ml_ops_api_client.types.Unset, NoneType, int] = <wallaroo.wallaroo_ml_ops_api_client.types.Unset object>)
2def __init__(self, pipeline_name, workspace_id=attr_dict['workspace_id'].default): 3 self.pipeline_name = pipeline_name 4 self.workspace_id = workspace_id 5 self.additional_properties = __attr_factory_additional_properties()
Method generated by attrs for class PlateauGetPipelineTopicNameJsonBody.
def
to_dict(self) -> Dict[str, Any]:
24 def to_dict(self) -> Dict[str, Any]: 25 pipeline_name = self.pipeline_name 26 workspace_id = self.workspace_id 27 28 field_dict: Dict[str, Any] = {} 29 field_dict.update(self.additional_properties) 30 field_dict.update({ 31 "pipeline_name": pipeline_name, 32 }) 33 if workspace_id is not UNSET: 34 field_dict["workspace_id"] = workspace_id 35 36 return field_dict
@classmethod
def
from_dict(cls: Type[~T], src_dict: Dict[str, Any]) -> ~T:
40 @classmethod 41 def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: 42 d = src_dict.copy() 43 pipeline_name = d.pop("pipeline_name") 44 45 workspace_id = d.pop("workspace_id", UNSET) 46 47 plateau_get_pipeline_topic_name_json_body = cls( 48 pipeline_name=pipeline_name, 49 workspace_id=workspace_id, 50 ) 51 52 plateau_get_pipeline_topic_name_json_body.additional_properties = d 53 return plateau_get_pipeline_topic_name_json_body