Skip to content
This repository was archived by the owner on Oct 16, 2023. It is now read-only.

Commit 8f5023d

Browse files
fix: remove client recv msg limit fix: add enums to types/__init__.py (#43)
PiperOrigin-RevId: 347055288 Source-Author: Google APIs <noreply@google.com> Source-Date: Fri Dec 11 12:44:37 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: dd372aa22ded7a8ba6f0e03a80e06358a3fa0907 Source-Link: googleapis/googleapis@dd372aa
1 parent 6abd096 commit 8f5023d

File tree

6 files changed

+28
-6
lines changed

6 files changed

+28
-6
lines changed

google/cloud/iam_credentials_v1/services/iam_credentials/transports/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
_transport_registry["grpc"] = IAMCredentialsGrpcTransport
2929
_transport_registry["grpc_asyncio"] = IAMCredentialsGrpcAsyncIOTransport
3030

31-
3231
__all__ = (
3332
"IAMCredentialsTransport",
3433
"IAMCredentialsGrpcTransport",

google/cloud/iam_credentials_v1/services/iam_credentials/transports/grpc.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ def __init__(
155155
ssl_credentials=ssl_credentials,
156156
scopes=scopes or self.AUTH_SCOPES,
157157
quota_project_id=quota_project_id,
158+
options=[
159+
("grpc.max_send_message_length", -1),
160+
("grpc.max_receive_message_length", -1),
161+
],
158162
)
159163
self._ssl_channel_credentials = ssl_credentials
160164
else:
@@ -173,6 +177,10 @@ def __init__(
173177
ssl_credentials=ssl_channel_credentials,
174178
scopes=scopes or self.AUTH_SCOPES,
175179
quota_project_id=quota_project_id,
180+
options=[
181+
("grpc.max_send_message_length", -1),
182+
("grpc.max_receive_message_length", -1),
183+
],
176184
)
177185

178186
self._stubs = {} # type: Dict[str, Callable]
@@ -199,7 +207,7 @@ def create_channel(
199207
) -> grpc.Channel:
200208
"""Create and return a gRPC channel object.
201209
Args:
202-
address (Optionsl[str]): The host for the channel to use.
210+
address (Optional[str]): The host for the channel to use.
203211
credentials (Optional[~.Credentials]): The
204212
authorization credentials to attach to requests. These
205213
credentials identify this application to the service. If

google/cloud/iam_credentials_v1/services/iam_credentials/transports/grpc_asyncio.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ def __init__(
200200
ssl_credentials=ssl_credentials,
201201
scopes=scopes or self.AUTH_SCOPES,
202202
quota_project_id=quota_project_id,
203+
options=[
204+
("grpc.max_send_message_length", -1),
205+
("grpc.max_receive_message_length", -1),
206+
],
203207
)
204208
self._ssl_channel_credentials = ssl_credentials
205209
else:
@@ -218,6 +222,10 @@ def __init__(
218222
ssl_credentials=ssl_channel_credentials,
219223
scopes=scopes or self.AUTH_SCOPES,
220224
quota_project_id=quota_project_id,
225+
options=[
226+
("grpc.max_send_message_length", -1),
227+
("grpc.max_receive_message_length", -1),
228+
],
221229
)
222230

223231
# Run the base constructor.

google/cloud/iam_credentials_v1/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
GenerateIdTokenResponse,
2727
)
2828

29-
3029
__all__ = (
3130
"GenerateAccessTokenRequest",
3231
"GenerateAccessTokenResponse",

synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/python-iam.git",
7-
"sha": "a81a4ff45af6fb129bea9068de25741a8ee974f7"
7+
"sha": "6abd0965b93c377d37158991215c7d963b90deb7"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "14adde91e90011702483e943edf1044549252bd9",
15-
"internalRef": "344906237"
14+
"sha": "dd372aa22ded7a8ba6f0e03a80e06358a3fa0907",
15+
"internalRef": "347055288"
1616
}
1717
},
1818
{

tests/unit/gapic/credentials_v1/test_iam_credentials.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,6 +1593,10 @@ def test_iam_credentials_transport_channel_mtls_with_client_cert_source(
15931593
scopes=("https://www.googleapis.com/auth/cloud-platform",),
15941594
ssl_credentials=mock_ssl_cred,
15951595
quota_project_id=None,
1596+
options=[
1597+
("grpc.max_send_message_length", -1),
1598+
("grpc.max_receive_message_length", -1),
1599+
],
15961600
)
15971601
assert transport.grpc_channel == mock_grpc_channel
15981602
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -1634,6 +1638,10 @@ def test_iam_credentials_transport_channel_mtls_with_adc(transport_class):
16341638
scopes=("https://www.googleapis.com/auth/cloud-platform",),
16351639
ssl_credentials=mock_ssl_cred,
16361640
quota_project_id=None,
1641+
options=[
1642+
("grpc.max_send_message_length", -1),
1643+
("grpc.max_receive_message_length", -1),
1644+
],
16371645
)
16381646
assert transport.grpc_channel == mock_grpc_channel
16391647

0 commit comments

Comments
 (0)