-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdiscovery.pyi
More file actions
67 lines (59 loc) · 1.73 KB
/
discovery.pyi
File metadata and controls
67 lines (59 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import types
from email.generator import BytesGenerator
from typing import Any, Protocol, TypeVar, overload
import google.auth.credentials
import httplib2
import oauth2client # type: ignore[import-not-found]
from _typeshed import Incomplete
from google.api_core.client_options import ClientOptions
from typing_extensions import Literal
from googleapiclient.discovery_cache.base import Cache
from googleapiclient.http import HttpMock, HttpRequest
from googleapiclient.model import Model
_T = TypeVar("_T")
class _BytesGenerator(BytesGenerator): ...
def fix_method_name(name): ...
def key2param(key): ...
class ResourceMethodParameters:
argmap: Incomplete
required_params: Incomplete
repeated_params: Incomplete
pattern_params: Incomplete
query_params: Incomplete
path_params: Incomplete
param_types: Incomplete
enum_params: Incomplete
def __init__(self, method_desc) -> None: ...
def set_parameters(self, method_desc) -> None: ...
class Resource:
def __init__(
self,
http,
baseUrl,
model,
requestBuilder,
developerKey,
resourceDesc,
rootDesc,
schema,
) -> None: ...
def __enter__(self: _T) -> _T: ...
def __exit__(
self,
exc_type: type[BaseException] | None,
exc: BaseException | None,
exc_tb: types.TracebackType | None,
) -> None: ...
def close(self) -> None: ...
class _RequestBuilder(Protocol):
def __call__(
self,
http,
postproc,
uri,
method: str = ...,
body: Incomplete | None = ...,
headers: Incomplete | None = ...,
methodId: Incomplete | None = ...,
resumable: Incomplete | None = ...,
) -> HttpRequest: ...