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,51 +4,52 @@ import attr
 | 
			
		||||
 | 
			
		||||
from ..types import UNSET, Unset
 | 
			
		||||
 | 
			
		||||
VI = TypeVar("VI", bound="EntityGetParentId")
 | 
			
		||||
QF = TypeVar("QF", bound="EntityGetParentId")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@attr.s(auto_attribs=True)
 | 
			
		||||
class EntityGetParentId:
 | 
			
		||||
	""" The response from the `EntityGetParentId` command. """ # noqa: E501
 | 
			
		||||
	entity_id: Union[Unset, str] = UNSET
 | 
			
		||||
    """The response from the `EntityGetParentId` command."""  # noqa: E501
 | 
			
		||||
 | 
			
		||||
	additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
 | 
			
		||||
    entity_id: Union[Unset, str] = UNSET
 | 
			
		||||
 | 
			
		||||
	def to_dict(self) -> Dict[str, Any]:
 | 
			
		||||
		entity_id = self.entity_id
 | 
			
		||||
    additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
 | 
			
		||||
 | 
			
		||||
		field_dict: Dict[str, Any] = {}
 | 
			
		||||
		field_dict.update(self.additional_properties)
 | 
			
		||||
		field_dict.update({})
 | 
			
		||||
		if entity_id is not UNSET:
 | 
			
		||||
			field_dict['entity_id'] = entity_id
 | 
			
		||||
    def to_dict(self) -> Dict[str, Any]:
 | 
			
		||||
        entity_id = self.entity_id
 | 
			
		||||
 | 
			
		||||
		return field_dict
 | 
			
		||||
        field_dict: Dict[str, Any] = {}
 | 
			
		||||
        field_dict.update(self.additional_properties)
 | 
			
		||||
        field_dict.update({})
 | 
			
		||||
        if entity_id is not UNSET:
 | 
			
		||||
            field_dict["entity_id"] = entity_id
 | 
			
		||||
 | 
			
		||||
	@classmethod
 | 
			
		||||
	def from_dict(cls: Type[VI], src_dict: Dict[str, Any]) -> VI:
 | 
			
		||||
		d = src_dict.copy()
 | 
			
		||||
		entity_id = d.pop("entity_id", UNSET)
 | 
			
		||||
        return field_dict
 | 
			
		||||
 | 
			
		||||
    @classmethod
 | 
			
		||||
    def from_dict(cls: Type[QF], src_dict: Dict[str, Any]) -> QF:
 | 
			
		||||
        d = src_dict.copy()
 | 
			
		||||
        entity_id = d.pop("entity_id", UNSET)
 | 
			
		||||
 | 
			
		||||
		entity_get_parent_id = cls(
 | 
			
		||||
			entity_id= entity_id,
 | 
			
		||||
		)
 | 
			
		||||
        entity_get_parent_id = cls(
 | 
			
		||||
            entity_id=entity_id,
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
		entity_get_parent_id.additional_properties = d
 | 
			
		||||
		return entity_get_parent_id
 | 
			
		||||
        entity_get_parent_id.additional_properties = d
 | 
			
		||||
        return entity_get_parent_id
 | 
			
		||||
 | 
			
		||||
	@property
 | 
			
		||||
	def additional_keys(self) -> List[str]:
 | 
			
		||||
		return list(self.additional_properties.keys())
 | 
			
		||||
    @property
 | 
			
		||||
    def additional_keys(self) -> List[str]:
 | 
			
		||||
        return list(self.additional_properties.keys())
 | 
			
		||||
 | 
			
		||||
	def __getitem__(self, key: str) -> Any:
 | 
			
		||||
		return self.additional_properties[key]
 | 
			
		||||
    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 __setitem__(self, key: str, value: Any) -> None:
 | 
			
		||||
        self.additional_properties[key] = value
 | 
			
		||||
 | 
			
		||||
	def __delitem__(self, key: str) -> None:
 | 
			
		||||
		del self.additional_properties[key]
 | 
			
		||||
    def __delitem__(self, key: str) -> None:
 | 
			
		||||
        del self.additional_properties[key]
 | 
			
		||||
 | 
			
		||||
	def __contains__(self, key: str) -> bool:
 | 
			
		||||
		return key in self.additional_properties
 | 
			
		||||
    def __contains__(self, key: str) -> bool:
 | 
			
		||||
        return key in self.additional_properties
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user