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