Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
transport (Union[str, {{ service.name }}Transport]): The
transport to use. If set to None, a transport is chosen
automatically.
{% if 'rest' in opts.transport and not opts.rest_numeric_enums %}
NOTE: "rest" transport functionality is currently in a
beta state (preview). We welcome your feedback via an
issue in this library's source repository.
{% endif %}
client_options (google.api_core.client_options.ClientOptions): Custom options for the
client. It won't take effect if a ``transport`` instance is provided.
(1) The ``api_endpoint`` property can be used to override the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ class {{service.name}}RestTransport({{service.name}}Transport):
and call it.

It sends JSON representations of protocol buffers over HTTP/1.1

{% if not opts.rest_numeric_enums %}
NOTE: This REST transport functionality is currently in a beta
state (preview). We welcome your feedback via an issue in this
library's source repository. Thank you!
{% endif %}
"""


Expand All @@ -147,6 +153,12 @@ class {{service.name}}RestTransport({{service.name}}Transport):
) -> None:
"""Instantiate the transport.

{% if not opts.rest_numeric_enums %}
NOTE: This REST transport functionality is currently in a beta
state (preview). We welcome your feedback via a GitHub issue in
this library's repository. Thank you!
{% endif %}

Args:
host ({% if service.host %}Optional[str]{% else %}str{% endif %}):
{{ ' ' }}The hostname to connect to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
transport (Union[str, {{ service.name }}Transport]): The
transport to use. If set to None, a transport is chosen
automatically.
{% if 'rest' in opts.transport and not opts.rest_numeric_enums %}
NOTE: "rest" transport functionality is currently in a
beta state (preview). We welcome your feedback via an
issue in this library's source repository.
{% endif %}
client_options (google.api_core.client_options.ClientOptions): Custom options for the
client. It won't take effect if a ``transport`` instance is provided.
(1) The ``api_endpoint`` property can be used to override the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ class {{service.name}}RestTransport({{service.name}}Transport):
and call it.

It sends JSON representations of protocol buffers over HTTP/1.1

{% if not opts.rest_numeric_enums %}
NOTE: This REST transport functionality is currently in a beta
state (preview). We welcome your feedback via an issue in this
library's source repository. Thank you!
{% endif %}
"""


Expand All @@ -154,6 +160,12 @@ class {{service.name}}RestTransport({{service.name}}Transport):
) -> None:
"""Instantiate the transport.

{% if not opts.rest_numeric_enums %}
NOTE: This REST transport functionality is currently in a beta
state (preview). We welcome your feedback via a GitHub issue in
this library's repository. Thank you!
{% endif %}

Args:
host ({% if service.host %}Optional[str]{% else %}str{% endif %}):
{{ ' ' }}The hostname to connect to.
Expand Down