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

Commit 9207193

Browse files
fix: remove client recv msg limit fix: add enums to types/__init__.py (#60)
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 Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
1 parent 9973c3a commit 9207193

File tree

11 files changed

+56
-8
lines changed

11 files changed

+56
-8
lines changed

google/cloud/container_v1/services/cluster_manager/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"] = ClusterManagerGrpcTransport
2929
_transport_registry["grpc_asyncio"] = ClusterManagerGrpcAsyncIOTransport
3030

31-
3231
__all__ = (
3332
"ClusterManagerTransport",
3433
"ClusterManagerGrpcTransport",

google/cloud/container_v1/services/cluster_manager/transports/grpc.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ def __init__(
147147
ssl_credentials=ssl_credentials,
148148
scopes=scopes or self.AUTH_SCOPES,
149149
quota_project_id=quota_project_id,
150+
options=[
151+
("grpc.max_send_message_length", -1),
152+
("grpc.max_receive_message_length", -1),
153+
],
150154
)
151155
self._ssl_channel_credentials = ssl_credentials
152156
else:
@@ -165,6 +169,10 @@ def __init__(
165169
ssl_credentials=ssl_channel_credentials,
166170
scopes=scopes or self.AUTH_SCOPES,
167171
quota_project_id=quota_project_id,
172+
options=[
173+
("grpc.max_send_message_length", -1),
174+
("grpc.max_receive_message_length", -1),
175+
],
168176
)
169177

170178
self._stubs = {} # type: Dict[str, Callable]
@@ -191,7 +199,7 @@ def create_channel(
191199
) -> grpc.Channel:
192200
"""Create and return a gRPC channel object.
193201
Args:
194-
address (Optionsl[str]): The host for the channel to use.
202+
address (Optional[str]): The host for the channel to use.
195203
credentials (Optional[~.Credentials]): The
196204
authorization credentials to attach to requests. These
197205
credentials identify this application to the service. If

google/cloud/container_v1/services/cluster_manager/transports/grpc_asyncio.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ def __init__(
192192
ssl_credentials=ssl_credentials,
193193
scopes=scopes or self.AUTH_SCOPES,
194194
quota_project_id=quota_project_id,
195+
options=[
196+
("grpc.max_send_message_length", -1),
197+
("grpc.max_receive_message_length", -1),
198+
],
195199
)
196200
self._ssl_channel_credentials = ssl_credentials
197201
else:
@@ -210,6 +214,10 @@ def __init__(
210214
ssl_credentials=ssl_channel_credentials,
211215
scopes=scopes or self.AUTH_SCOPES,
212216
quota_project_id=quota_project_id,
217+
options=[
218+
("grpc.max_send_message_length", -1),
219+
("grpc.max_receive_message_length", -1),
220+
],
213221
)
214222

215223
# Run the base constructor.

google/cloud/container_v1/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
ShieldedNodes,
114114
)
115115

116-
117116
__all__ = (
118117
"NodeConfig",
119118
"ShieldedInstanceConfig",

google/cloud/container_v1beta1/services/cluster_manager/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"] = ClusterManagerGrpcTransport
2929
_transport_registry["grpc_asyncio"] = ClusterManagerGrpcAsyncIOTransport
3030

31-
3231
__all__ = (
3332
"ClusterManagerTransport",
3433
"ClusterManagerGrpcTransport",

google/cloud/container_v1beta1/services/cluster_manager/transports/grpc.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ def __init__(
147147
ssl_credentials=ssl_credentials,
148148
scopes=scopes or self.AUTH_SCOPES,
149149
quota_project_id=quota_project_id,
150+
options=[
151+
("grpc.max_send_message_length", -1),
152+
("grpc.max_receive_message_length", -1),
153+
],
150154
)
151155
self._ssl_channel_credentials = ssl_credentials
152156
else:
@@ -165,6 +169,10 @@ def __init__(
165169
ssl_credentials=ssl_channel_credentials,
166170
scopes=scopes or self.AUTH_SCOPES,
167171
quota_project_id=quota_project_id,
172+
options=[
173+
("grpc.max_send_message_length", -1),
174+
("grpc.max_receive_message_length", -1),
175+
],
168176
)
169177

170178
self._stubs = {} # type: Dict[str, Callable]
@@ -191,7 +199,7 @@ def create_channel(
191199
) -> grpc.Channel:
192200
"""Create and return a gRPC channel object.
193201
Args:
194-
address (Optionsl[str]): The host for the channel to use.
202+
address (Optional[str]): The host for the channel to use.
195203
credentials (Optional[~.Credentials]): The
196204
authorization credentials to attach to requests. These
197205
credentials identify this application to the service. If

google/cloud/container_v1beta1/services/cluster_manager/transports/grpc_asyncio.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ def __init__(
192192
ssl_credentials=ssl_credentials,
193193
scopes=scopes or self.AUTH_SCOPES,
194194
quota_project_id=quota_project_id,
195+
options=[
196+
("grpc.max_send_message_length", -1),
197+
("grpc.max_receive_message_length", -1),
198+
],
195199
)
196200
self._ssl_channel_credentials = ssl_credentials
197201
else:
@@ -210,6 +214,10 @@ def __init__(
210214
ssl_credentials=ssl_channel_credentials,
211215
scopes=scopes or self.AUTH_SCOPES,
212216
quota_project_id=quota_project_id,
217+
options=[
218+
("grpc.max_send_message_length", -1),
219+
("grpc.max_receive_message_length", -1),
220+
],
213221
)
214222

215223
# Run the base constructor.

google/cloud/container_v1beta1/types/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@
127127
NotificationConfig,
128128
ConfidentialNodes,
129129
UpgradeEvent,
130+
DatapathProvider,
131+
UpgradeResourceType,
130132
)
131133

132-
133134
__all__ = (
134135
"LinuxNodeConfig",
135136
"NodeKubeletConfig",
@@ -242,4 +243,6 @@
242243
"NotificationConfig",
243244
"ConfidentialNodes",
244245
"UpgradeEvent",
246+
"DatapathProvider",
247+
"UpgradeResourceType",
245248
)

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "df4fd38d040c5c8a0869936205bca13fb64b2cff",
15-
"internalRef": "344443035"
14+
"sha": "dd372aa22ded7a8ba6f0e03a80e06358a3fa0907",
15+
"internalRef": "347055288"
1616
}
1717
},
1818
{

tests/unit/gapic/container_v1/test_cluster_manager.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9181,6 +9181,10 @@ def test_cluster_manager_transport_channel_mtls_with_client_cert_source(
91819181
scopes=("https://www.googleapis.com/auth/cloud-platform",),
91829182
ssl_credentials=mock_ssl_cred,
91839183
quota_project_id=None,
9184+
options=[
9185+
("grpc.max_send_message_length", -1),
9186+
("grpc.max_receive_message_length", -1),
9187+
],
91849188
)
91859189
assert transport.grpc_channel == mock_grpc_channel
91869190
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -9222,6 +9226,10 @@ def test_cluster_manager_transport_channel_mtls_with_adc(transport_class):
92229226
scopes=("https://www.googleapis.com/auth/cloud-platform",),
92239227
ssl_credentials=mock_ssl_cred,
92249228
quota_project_id=None,
9229+
options=[
9230+
("grpc.max_send_message_length", -1),
9231+
("grpc.max_receive_message_length", -1),
9232+
],
92259233
)
92269234
assert transport.grpc_channel == mock_grpc_channel
92279235

tests/unit/gapic/container_v1beta1/test_cluster_manager.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9501,6 +9501,10 @@ def test_cluster_manager_transport_channel_mtls_with_client_cert_source(
95019501
scopes=("https://www.googleapis.com/auth/cloud-platform",),
95029502
ssl_credentials=mock_ssl_cred,
95039503
quota_project_id=None,
9504+
options=[
9505+
("grpc.max_send_message_length", -1),
9506+
("grpc.max_receive_message_length", -1),
9507+
],
95049508
)
95059509
assert transport.grpc_channel == mock_grpc_channel
95069510
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -9542,6 +9546,10 @@ def test_cluster_manager_transport_channel_mtls_with_adc(transport_class):
95429546
scopes=("https://www.googleapis.com/auth/cloud-platform",),
95439547
ssl_credentials=mock_ssl_cred,
95449548
quota_project_id=None,
9549+
options=[
9550+
("grpc.max_send_message_length", -1),
9551+
("grpc.max_receive_message_length", -1),
9552+
],
95459553
)
95469554
assert transport.grpc_channel == mock_grpc_channel
95479555

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy