MCPcopy Index your code
hub / github.com/github/copilot-sdk / AccountLoginRequest

Class AccountLoginRequest

python/copilot/generated/rpc.py:296–321  ·  view source on GitHub ↗

Credentials to store after successful authentication

Source from the content-addressed store, hash-verified

294# Experimental: this type is part of an experimental API and may change or be removed.
295@dataclass
296class 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

Callers 1

from_dictMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…