(
self,
path_with_query: str,
st: str,
project_id: str,
timeout: Optional[int] = None,
)
| 2300 | return headers |
| 2301 | |
| 2302 | async def _labs_trpc_get_with_st( |
| 2303 | self, |
| 2304 | path_with_query: str, |
| 2305 | st: str, |
| 2306 | project_id: str, |
| 2307 | timeout: Optional[int] = None, |
| 2308 | ) -> Dict[str, Any]: |
| 2309 | page_url = self._build_flow_project_page_url(project_id) |
| 2310 | return await self._make_request( |
| 2311 | method="GET", |
| 2312 | url=f"{self.labs_base_url}/trpc/{path_with_query}", |
| 2313 | headers=self._build_browser_style_control_headers( |
| 2314 | referer=page_url, |
| 2315 | account_id=st[:16], |
| 2316 | content_type="application/json", |
| 2317 | ), |
| 2318 | use_st=True, |
| 2319 | st_token=st, |
| 2320 | timeout=timeout or self._get_control_plane_timeout(), |
| 2321 | apply_default_client_headers=False, |
| 2322 | allow_urllib_fallback=False, |
| 2323 | impersonate=self._resolve_runtime_impersonate(), |
| 2324 | ) |
| 2325 | |
| 2326 | async def _labs_trpc_post_with_st( |
| 2327 | self, |
no test coverage detected