Current authentication state
| 193 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 194 | @dataclass |
| 195 | class AccountGetCurrentAuthResult: |
| 196 | """Current authentication state""" |
| 197 | |
| 198 | auth_errors: list[str] | None = None |
| 199 | """Authentication errors from the last auth attempt, if any""" |
| 200 | |
| 201 | auth_info: AuthInfo | None = None |
| 202 | """Current authentication information, if authenticated""" |
| 203 | |
| 204 | @staticmethod |
| 205 | def from_dict(obj: Any) -> 'AccountGetCurrentAuthResult': |
| 206 | assert isinstance(obj, dict) |
| 207 | auth_errors = from_union([lambda x: from_list(from_str, x), from_none], obj.get("authErrors")) |
| 208 | auth_info = from_union([_load_AuthInfo, from_none], obj.get("authInfo")) |
| 209 | return AccountGetCurrentAuthResult(auth_errors, auth_info) |
| 210 | |
| 211 | def to_dict(self) -> dict: |
| 212 | result: dict = {} |
| 213 | if self.auth_errors is not None: |
| 214 | result["authErrors"] = from_union([lambda x: from_list(from_str, x), from_none], self.auth_errors) |
| 215 | if self.auth_info is not None: |
| 216 | result["authInfo"] = from_union([lambda x: (x).to_dict(), from_none], self.auth_info) |
| 217 | return result |
| 218 | |
| 219 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 220 | @dataclass |
no outgoing calls
no test coverage detected
searching dependent graphs…