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

Method get_quota

python/copilot/generated/rpc.py:25113–25116  ·  view source on GitHub ↗

Gets Copilot quota usage for the authenticated user or supplied GitHub token.\n\nArgs:\n params: Optional GitHub token used to look up quota for a specific user instead of the global auth context.\n\nReturns:\n Quota usage snapshots for the resolved user, keyed by quota type.

(self, params: AccountGetQuotaRequest, *, timeout: float | None = None)

Source from the content-addressed store, hash-verified

25111 self._client = client
25112
25113 async def get_quota(self, params: AccountGetQuotaRequest, *, timeout: float | None = None) -> AccountGetQuotaResult:
25114 "Gets Copilot quota usage for the authenticated user or supplied GitHub token.\n\nArgs:\n params: Optional GitHub token used to look up quota for a specific user instead of the global auth context.\n\nReturns:\n Quota usage snapshots for the resolved user, keyed by quota type."
25115 params_dict = {k: v for k, v in params.to_dict().items() if v is not None}
25116 return AccountGetQuotaResult.from_dict(await self._client.request("account.getQuota", params_dict, **_timeout_kwargs(timeout)))
25117
25118 async def get_current_auth(self, *, timeout: float | None = None) -> AccountGetCurrentAuthResult:
25119 "Gets the currently active authentication credentials from the global auth manager.\n\nReturns:\n Current authentication state"

Calls 4

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
from_dictMethod · 0.45
requestMethod · 0.45