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

Class CopilotUserResponseEndpoints

python/copilot/generated/rpc.py:125–152  ·  view source on GitHub ↗

Schema for the `CopilotUserResponseEndpoints` type.

Source from the content-addressed store, hash-verified

123# Experimental: this type is part of an experimental API and may change or be removed.
124@dataclass
125class CopilotUserResponseEndpoints:
126 """Schema for the `CopilotUserResponseEndpoints` type."""
127
128 api: str | None = None
129 origin_tracker: str | None = None
130 proxy: str | None = None
131 telemetry: str | None = None
132
133 @staticmethod
134 def from_dict(obj: Any) -> 'CopilotUserResponseEndpoints':
135 assert isinstance(obj, dict)
136 api = from_union([from_str, from_none], obj.get("api"))
137 origin_tracker = from_union([from_str, from_none], obj.get("origin-tracker"))
138 proxy = from_union([from_str, from_none], obj.get("proxy"))
139 telemetry = from_union([from_str, from_none], obj.get("telemetry"))
140 return CopilotUserResponseEndpoints(api, origin_tracker, proxy, telemetry)
141
142 def to_dict(self) -> dict:
143 result: dict = {}
144 if self.api is not None:
145 result["api"] = from_union([from_str, from_none], self.api)
146 if self.origin_tracker is not None:
147 result["origin-tracker"] = from_union([from_str, from_none], self.origin_tracker)
148 if self.proxy is not None:
149 result["proxy"] = from_union([from_str, from_none], self.proxy)
150 if self.telemetry is not None:
151 result["telemetry"] = from_union([from_str, from_none], self.telemetry)
152 return result
153
154# Experimental: this type is part of an experimental API and may change or be removed.
155class AuthInfoType(Enum):

Callers 2

from_dictMethod · 0.70

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…