Skip to content

Commit d49316b

Browse files
chore: add pyi file for resources_pb2.py
1 parent 68776f3 commit d49316b

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
from typing import ClassVar as _ClassVar
2+
from typing import Optional as _Optional
3+
from typing import Union as _Union
4+
5+
from google.protobuf import descriptor as _descriptor
6+
from google.protobuf import message as _message
7+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
8+
9+
from google.api import field_behavior_pb2 as _field_behavior_pb2
10+
11+
DESCRIPTOR: _descriptor.FileDescriptor
12+
13+
class MetadataExchangeRequest(_message.Message):
14+
__slots__ = ["auth_type", "oauth2_token", "user_agent"]
15+
16+
class AuthType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
17+
__slots__ = []
18+
AUTH_TYPE_FIELD_NUMBER: _ClassVar[int]
19+
AUTH_TYPE_UNSPECIFIED: MetadataExchangeRequest.AuthType
20+
AUTO_IAM: MetadataExchangeRequest.AuthType
21+
DB_NATIVE: MetadataExchangeRequest.AuthType
22+
OAUTH2_TOKEN_FIELD_NUMBER: _ClassVar[int]
23+
USER_AGENT_FIELD_NUMBER: _ClassVar[int]
24+
auth_type: MetadataExchangeRequest.AuthType
25+
oauth2_token: str
26+
user_agent: str
27+
def __init__(
28+
self,
29+
user_agent: _Optional[str] = ...,
30+
auth_type: _Optional[_Union[MetadataExchangeRequest.AuthType, str]] = ...,
31+
oauth2_token: _Optional[str] = ...,
32+
) -> None: ...
33+
34+
class MetadataExchangeResponse(_message.Message):
35+
__slots__ = ["error", "response_code"]
36+
37+
class ResponseCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
38+
__slots__ = []
39+
ERROR: MetadataExchangeResponse.ResponseCode
40+
ERROR_FIELD_NUMBER: _ClassVar[int]
41+
OK: MetadataExchangeResponse.ResponseCode
42+
RESPONSE_CODE_FIELD_NUMBER: _ClassVar[int]
43+
RESPONSE_CODE_UNSPECIFIED: MetadataExchangeResponse.ResponseCode
44+
error: str
45+
response_code: MetadataExchangeResponse.ResponseCode
46+
def __init__(
47+
self,
48+
response_code: _Optional[
49+
_Union[MetadataExchangeResponse.ResponseCode, str]
50+
] = ...,
51+
error: _Optional[str] = ...,
52+
) -> None: ...

tests/unit/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def start_proxy_server(instance: FakeInstance) -> None:
5050
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
5151
# create SSL/TLS context
5252
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
53+
context.minimum_version = ssl.TLSVersion.TLSv1_3
5354
root, intermediate, server = instance.get_pem_certs()
5455
# tmpdir and its contents are automatically deleted after the CA cert
5556
# and cert chain are loaded into the SSLcontext. The values

0 commit comments

Comments
 (0)