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
feat: Note that "rest" transport support is beta. (#1403)
This beta notice is triggered by having numeric enum support disabled (the default), since numeric enum support is currently the only blocker to supporting REST transport fully.
This condition can be changed if further blockers arise to a GA release of REST transport.
This logic and notice can be removed entirely once we are satisfied that REST transport works with or without numeric enums.
Copy file name to clipboardExpand all lines: packages/gapic-generator/gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/client.py.j2
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -233,6 +233,11 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
233
233
transport (Union[str, {{ service.name }}Transport]): The
234
234
transport to use. If set to None, a transport is chosen
Copy file name to clipboardExpand all lines: packages/gapic-generator/gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/transports/rest.py.j2
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,12 @@ class {{service.name}}RestTransport({{service.name}}Transport):
128
128
and call it.
129
129
130
130
It sends JSON representations of protocol buffers over HTTP/1.1
131
+
132
+
{%ifnotopts.rest_numeric_enums%}
133
+
NOTE: This REST transport functionality is currently in a beta
134
+
state (preview). We welcome your feedback via an issue in this
135
+
library's source repository. Thank you!
136
+
{%endif%}
131
137
"""
132
138
133
139
@@ -147,6 +153,12 @@ class {{service.name}}RestTransport({{service.name}}Transport):
147
153
) -> None:
148
154
"""Instantiate the transport.
149
155
156
+
{%ifnotopts.rest_numeric_enums%}
157
+
NOTE: This REST transport functionality is currently in a beta
158
+
state (preview). We welcome your feedback via a GitHub issue in
Copy file name to clipboardExpand all lines: packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,12 @@ class {{service.name}}RestTransport({{service.name}}Transport):
134
134
and call it.
135
135
136
136
It sends JSON representations of protocol buffers over HTTP/1.1
137
+
138
+
{%ifnotopts.rest_numeric_enums%}
139
+
NOTE: This REST transport functionality is currently in a beta
140
+
state (preview). We welcome your feedback via an issue in this
141
+
library's source repository. Thank you!
142
+
{%endif%}
137
143
"""
138
144
139
145
@@ -154,6 +160,12 @@ class {{service.name}}RestTransport({{service.name}}Transport):
154
160
) -> None:
155
161
"""Instantiate the transport.
156
162
163
+
{%ifnotopts.rest_numeric_enums%}
164
+
NOTE: This REST transport functionality is currently in a beta
165
+
state (preview). We welcome your feedback via a GitHub issue in
0 commit comments