Result of a successful login; throws on failure
| 323 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 324 | @dataclass |
| 325 | class AccountLoginResult: |
| 326 | """Result of a successful login; throws on failure""" |
| 327 | |
| 328 | stored_in_vault: bool |
| 329 | """Whether the credential was persisted to a secure store (system keychain, or the config |
| 330 | file when plaintext storage is enabled). False when no secure store was available and the |
| 331 | token was not saved, so the consumer can decide how to proceed. |
| 332 | """ |
| 333 | |
| 334 | @staticmethod |
| 335 | def from_dict(obj: Any) -> 'AccountLoginResult': |
| 336 | assert isinstance(obj, dict) |
| 337 | stored_in_vault = from_bool(obj.get("storedInVault")) |
| 338 | return AccountLoginResult(stored_in_vault) |
| 339 | |
| 340 | def to_dict(self) -> dict: |
| 341 | result: dict = {} |
| 342 | result["storedInVault"] = from_bool(self.stored_in_vault) |
| 343 | return result |
| 344 | |
| 345 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 346 | @dataclass |
no outgoing calls
no test coverage detected
searching dependent graphs…