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 (#55)
* 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-apigee-registry/google/cloud/apigee_registry_v1/services/provisioning/transports/rest.py
+43-40Lines changed: 43 additions & 40 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
classProvisioningRestInterceptor:
64
68
"""Interceptor for Provisioning.
@@ -398,9 +402,6 @@ class ProvisioningRestTransport(ProvisioningTransport):
398
402
399
403
It sends JSON representations of protocol buffers over HTTP/1.1
400
404
401
-
NOTE: This REST transport functionality is currently in a beta
402
-
state (preview). We welcome your feedback via an issue in this
403
-
library's source repository. Thank you!
404
405
"""
405
406
406
407
def__init__(
@@ -420,39 +421,35 @@ def __init__(
420
421
) ->None:
421
422
"""Instantiate the transport.
422
423
423
-
NOTE: This REST transport functionality is currently in a beta
424
-
state (preview). We welcome your feedback via a GitHub issue in
425
-
this library's repository. Thank you!
426
-
427
-
Args:
428
-
host (Optional[str]):
429
-
The hostname to connect to.
430
-
credentials (Optional[google.auth.credentials.Credentials]): The
431
-
authorization credentials to attach to requests. These
432
-
credentials identify the application to the service; if none
433
-
are specified, the client will attempt to ascertain the
434
-
credentials from the environment.
435
-
436
-
credentials_file (Optional[str]): A file with credentials that can
437
-
be loaded with :func:`google.auth.load_credentials_from_file`.
438
-
This argument is ignored if ``channel`` is provided.
439
-
scopes (Optional(Sequence[str])): A list of scopes. This argument is
0 commit comments