You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (#38)
* chore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport
chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java)
PiperOrigin-RevId: 493113566
Source-Link: googleapis/googleapis@758f0d1
Source-Link: googleapis/googleapis-gen@78bd8f0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzhiZDhmMDVlMTI3NjM2M2ViMTRlYWU3MGU5MWZlNGJjMjA3MDNhYiJ9
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: packages/google-cloud-beyondcorp-appgateways/google/cloud/beyondcorp_appgateways_v1/services/app_gateways_service/client.py
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -386,9 +386,6 @@ def __init__(
386
386
transport (Union[str, AppGatewaysServiceTransport]): The
387
387
transport to use. If set to None, a transport is chosen
388
388
automatically.
389
-
NOTE: "rest" transport functionality is currently in a
390
-
beta state (preview). We welcome your feedback via an
391
-
issue in this library's source repository.
392
389
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the
393
390
client. It won't take effect if a ``transport`` instance is provided.
394
391
(1) The ``api_endpoint`` property can be used to override the
Copy file name to clipboardExpand all lines: packages/google-cloud-beyondcorp-appgateways/google/cloud/beyondcorp_appgateways_v1/services/app_gateways_service/transports/rest.py
+46-41Lines changed: 46 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,10 @@
59
59
rest_version=requests_version,
60
60
)
61
61
62
+
# TODO (numeric enums): This file was generated with the option to
63
+
# request that the server respond with enums JSON-encoded as
64
+
# numbers. The code below does not implement that functionality yet.
65
+
62
66
63
67
classAppGatewaysServiceRestInterceptor:
64
68
"""Interceptor for AppGatewaysService.
@@ -440,9 +444,6 @@ class AppGatewaysServiceRestTransport(AppGatewaysServiceTransport):
440
444
441
445
It sends JSON representations of protocol buffers over HTTP/1.1
442
446
443
-
NOTE: This REST transport functionality is currently in a beta
444
-
state (preview). We welcome your feedback via an issue in this
445
-
library's source repository. Thank you!
446
447
"""
447
448
448
449
def__init__(
@@ -462,39 +463,35 @@ def __init__(
462
463
) ->None:
463
464
"""Instantiate the transport.
464
465
465
-
NOTE: This REST transport functionality is currently in a beta
466
-
state (preview). We welcome your feedback via a GitHub issue in
467
-
this library's repository. Thank you!
468
-
469
-
Args:
470
-
host (Optional[str]):
471
-
The hostname to connect to.
472
-
credentials (Optional[google.auth.credentials.Credentials]): The
473
-
authorization credentials to attach to requests. These
474
-
credentials identify the application to the service; if none
475
-
are specified, the client will attempt to ascertain the
476
-
credentials from the environment.
477
-
478
-
credentials_file (Optional[str]): A file with credentials that can
479
-
be loaded with :func:`google.auth.load_credentials_from_file`.
480
-
This argument is ignored if ``channel`` is provided.
481
-
scopes (Optional(Sequence[str])): A list of scopes. This argument is
Copy file name to clipboardExpand all lines: packages/google-cloud-beyondcorp-appgateways/tests/unit/gapic/beyondcorp_appgateways_v1/test_app_gateways_service.py
0 commit comments