| 219 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 220 | @dataclass |
| 221 | class AccountGetQuotaRequest: |
| 222 | git_hub_token: str | None = None |
| 223 | """GitHub token for per-user quota lookup. When provided, resolves this token to determine |
| 224 | the user's quota instead of using the global auth. |
| 225 | """ |
| 226 | |
| 227 | @staticmethod |
| 228 | def from_dict(obj: Any) -> 'AccountGetQuotaRequest': |
| 229 | assert isinstance(obj, dict) |
| 230 | git_hub_token = from_union([from_str, from_none], obj.get("gitHubToken")) |
| 231 | return AccountGetQuotaRequest(git_hub_token) |
| 232 | |
| 233 | def to_dict(self) -> dict: |
| 234 | result: dict = {} |
| 235 | if self.git_hub_token is not None: |
| 236 | result["gitHubToken"] = from_union([from_str, from_none], self.git_hub_token) |
| 237 | return result |
| 238 | |
| 239 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 240 | @dataclass |
no outgoing calls
searching dependent graphs…