Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Commit 774660a

Browse files
fix: remove client recv msg limit fix: add enums to types/__init__.py (#37)
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 8e00d80 commit 774660a

6 files changed

Lines changed: 30 additions & 6 deletions

File tree

google/cloud/monitoring_dashboard_v1/services/dashboards_service/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"] = DashboardsServiceGrpcTransport
2929
_transport_registry["grpc_asyncio"] = DashboardsServiceGrpcAsyncIOTransport
3030

31-
3231
__all__ = (
3332
"DashboardsServiceTransport",
3433
"DashboardsServiceGrpcTransport",

google/cloud/monitoring_dashboard_v1/services/dashboards_service/transports/grpc.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ def __init__(
149149
ssl_credentials=ssl_credentials,
150150
scopes=scopes or self.AUTH_SCOPES,
151151
quota_project_id=quota_project_id,
152+
options=[
153+
("grpc.max_send_message_length", -1),
154+
("grpc.max_receive_message_length", -1),
155+
],
152156
)
153157
self._ssl_channel_credentials = ssl_credentials
154158
else:
@@ -167,6 +171,10 @@ def __init__(
167171
ssl_credentials=ssl_channel_credentials,
168172
scopes=scopes or self.AUTH_SCOPES,
169173
quota_project_id=quota_project_id,
174+
options=[
175+
("grpc.max_send_message_length", -1),
176+
("grpc.max_receive_message_length", -1),
177+
],
170178
)
171179

172180
self._stubs = {} # type: Dict[str, Callable]
@@ -193,7 +201,7 @@ def create_channel(
193201
) -> grpc.Channel:
194202
"""Create and return a gRPC channel object.
195203
Args:
196-
address (Optionsl[str]): The host for the channel to use.
204+
address (Optional[str]): The host for the channel to use.
197205
credentials (Optional[~.Credentials]): The
198206
authorization credentials to attach to requests. These
199207
credentials identify this application to the service. If

google/cloud/monitoring_dashboard_v1/services/dashboards_service/transports/grpc_asyncio.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ def __init__(
194194
ssl_credentials=ssl_credentials,
195195
scopes=scopes or self.AUTH_SCOPES,
196196
quota_project_id=quota_project_id,
197+
options=[
198+
("grpc.max_send_message_length", -1),
199+
("grpc.max_receive_message_length", -1),
200+
],
197201
)
198202
self._ssl_channel_credentials = ssl_credentials
199203
else:
@@ -212,6 +216,10 @@ def __init__(
212216
ssl_credentials=ssl_channel_credentials,
213217
scopes=scopes or self.AUTH_SCOPES,
214218
quota_project_id=quota_project_id,
219+
options=[
220+
("grpc.max_send_message_length", -1),
221+
("grpc.max_receive_message_length", -1),
222+
],
215223
)
216224

217225
# Run the base constructor.

google/cloud/monitoring_dashboard_v1/types/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
TimeSeriesFilter,
2626
TimeSeriesFilterRatio,
2727
Threshold,
28+
SparkChartType,
2829
)
2930
from .scorecard import Scorecard
3031
from .text import Text
@@ -48,7 +49,6 @@
4849
UpdateDashboardRequest,
4950
)
5051

51-
5252
__all__ = (
5353
"Aggregation",
5454
"PickTimeSeriesFilter",
@@ -57,6 +57,7 @@
5757
"TimeSeriesFilter",
5858
"TimeSeriesFilterRatio",
5959
"Threshold",
60+
"SparkChartType",
6061
"Scorecard",
6162
"Text",
6263
"XyChart",

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-monitoring-dashboards.git",
7-
"sha": "cb6a89f29579af6e03c34e9594d3d15d2439c716"
7+
"sha": "8e00d80b19618d42e79833cff20e2f62c08fcede"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "07d41a7e5cade45aba6f0d277c89722b48f2c956",
15-
"internalRef": "339292950"
14+
"sha": "dd372aa22ded7a8ba6f0e03a80e06358a3fa0907",
15+
"internalRef": "347055288"
1616
}
1717
},
1818
{

tests/unit/gapic/dashboard_v1/test_dashboards_service.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,10 @@ def test_dashboards_service_transport_channel_mtls_with_client_cert_source(
15491549
),
15501550
ssl_credentials=mock_ssl_cred,
15511551
quota_project_id=None,
1552+
options=[
1553+
("grpc.max_send_message_length", -1),
1554+
("grpc.max_receive_message_length", -1),
1555+
],
15521556
)
15531557
assert transport.grpc_channel == mock_grpc_channel
15541558
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -1595,6 +1599,10 @@ def test_dashboards_service_transport_channel_mtls_with_adc(transport_class):
15951599
),
15961600
ssl_credentials=mock_ssl_cred,
15971601
quota_project_id=None,
1602+
options=[
1603+
("grpc.max_send_message_length", -1),
1604+
("grpc.max_receive_message_length", -1),
1605+
],
15981606
)
15991607
assert transport.grpc_channel == mock_grpc_channel
16001608

0 commit comments

Comments
 (0)