Skip to content

Commit

Permalink
chore: add pyi file for resources_pb2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon committed Jan 12, 2024
1 parent 68776f3 commit d49316b
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
52 changes: 52 additions & 0 deletions google/cloud/alloydb_connectors_v1/proto/resources_pb2.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
from typing import ClassVar as _ClassVar
from typing import Optional as _Optional
from typing import Union as _Union

from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper

from google.api import field_behavior_pb2 as _field_behavior_pb2

DESCRIPTOR: _descriptor.FileDescriptor

class MetadataExchangeRequest(_message.Message):
__slots__ = ["auth_type", "oauth2_token", "user_agent"]

class AuthType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = []
AUTH_TYPE_FIELD_NUMBER: _ClassVar[int]
AUTH_TYPE_UNSPECIFIED: MetadataExchangeRequest.AuthType
AUTO_IAM: MetadataExchangeRequest.AuthType
DB_NATIVE: MetadataExchangeRequest.AuthType
OAUTH2_TOKEN_FIELD_NUMBER: _ClassVar[int]
USER_AGENT_FIELD_NUMBER: _ClassVar[int]
auth_type: MetadataExchangeRequest.AuthType
oauth2_token: str
user_agent: str
def __init__(
self,
user_agent: _Optional[str] = ...,
auth_type: _Optional[_Union[MetadataExchangeRequest.AuthType, str]] = ...,
oauth2_token: _Optional[str] = ...,
) -> None: ...

class MetadataExchangeResponse(_message.Message):
__slots__ = ["error", "response_code"]

class ResponseCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = []
ERROR: MetadataExchangeResponse.ResponseCode
ERROR_FIELD_NUMBER: _ClassVar[int]
OK: MetadataExchangeResponse.ResponseCode
RESPONSE_CODE_FIELD_NUMBER: _ClassVar[int]
RESPONSE_CODE_UNSPECIFIED: MetadataExchangeResponse.ResponseCode
error: str
response_code: MetadataExchangeResponse.ResponseCode
def __init__(
self,
response_code: _Optional[
_Union[MetadataExchangeResponse.ResponseCode, str]
] = ...,
error: _Optional[str] = ...,
) -> None: ...
1 change: 1 addition & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def start_proxy_server(instance: FakeInstance) -> None:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
# create SSL/TLS context
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
context.minimum_version = ssl.TLSVersion.TLSv1_3
root, intermediate, server = instance.get_pem_certs()
# tmpdir and its contents are automatically deleted after the CA cert
# and cert chain are loaded into the SSLcontext. The values
Expand Down

0 comments on commit d49316b

Please sign in to comment.