Schema for the `AccountAllUsers` type. List of all authenticated users
| 166 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 167 | @dataclass |
| 168 | class AccountAllUsers: |
| 169 | """Schema for the `AccountAllUsers` type. |
| 170 | |
| 171 | List of all authenticated users |
| 172 | """ |
| 173 | auth_info: AuthInfo |
| 174 | """Authentication information for this user""" |
| 175 | |
| 176 | token: str | None = None |
| 177 | """Associated token, if available""" |
| 178 | |
| 179 | @staticmethod |
| 180 | def from_dict(obj: Any) -> 'AccountAllUsers': |
| 181 | assert isinstance(obj, dict) |
| 182 | auth_info = _load_AuthInfo(obj.get("authInfo")) |
| 183 | token = from_union([from_str, from_none], obj.get("token")) |
| 184 | return AccountAllUsers(auth_info, token) |
| 185 | |
| 186 | def to_dict(self) -> dict: |
| 187 | result: dict = {} |
| 188 | result["authInfo"] = (self.auth_info).to_dict() |
| 189 | if self.token is not None: |
| 190 | result["token"] = from_union([from_str, from_none], self.token) |
| 191 | return result |
| 192 | |
| 193 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 194 | @dataclass |
no outgoing calls
no test coverage detected
searching dependent graphs…