wallaroo.wallaroo_ml_ops_api_client.models.users_activate_response_200

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

Successful response to updating a user.

UsersActivateResponse200()
2def __init__(self, ):
3    self.additional_properties = __attr_factory_additional_properties()

Method generated by attrs for class UsersActivateResponse200.

def to_dict(self) -> Dict[str, Any]:
17    def to_dict(self) -> Dict[str, Any]:
18        
19        field_dict: Dict[str, Any] = {}
20        field_dict.update(self.additional_properties)
21        field_dict.update({
22        })
23
24        return field_dict
@classmethod
def from_dict(cls: Type[~T], src_dict: Dict[str, Any]) -> ~T:
28    @classmethod
29    def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
30        d = src_dict.copy()
31        users_activate_response_200 = cls(
32        )
33
34        users_activate_response_200.additional_properties = d
35        return users_activate_response_200
additional_keys: List[str]