Credentials to store after successful authentication
| 294 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 295 | @dataclass |
| 296 | class AccountLoginRequest: |
| 297 | """Credentials to store after successful authentication""" |
| 298 | |
| 299 | host: str |
| 300 | """GitHub host URL""" |
| 301 | |
| 302 | login: str |
| 303 | """User login/username""" |
| 304 | |
| 305 | token: str |
| 306 | """GitHub authentication token""" |
| 307 | |
| 308 | @staticmethod |
| 309 | def from_dict(obj: Any) -> 'AccountLoginRequest': |
| 310 | assert isinstance(obj, dict) |
| 311 | host = from_str(obj.get("host")) |
| 312 | login = from_str(obj.get("login")) |
| 313 | token = from_str(obj.get("token")) |
| 314 | return AccountLoginRequest(host, login, token) |
| 315 | |
| 316 | def to_dict(self) -> dict: |
| 317 | result: dict = {} |
| 318 | result["host"] = from_str(self.host) |
| 319 | result["login"] = from_str(self.login) |
| 320 | result["token"] = from_str(self.token) |
| 321 | return result |
| 322 | |
| 323 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 324 | @dataclass |
no outgoing calls
no test coverage detected
searching dependent graphs…