Skip to content

Commit 2ce1e96

Browse files
docs: Updated tables_client docstring (#289)
* Updated tables_client docstring * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Addressed review feedback * 🦉 Updates from OwlBot 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>
1 parent df85f3f commit 2ce1e96

File tree

1 file changed

+9
-8
lines changed
  • packages/google-cloud-automl/google/cloud/automl_v1beta1/services/tables

1 file changed

+9
-8
lines changed

packages/google-cloud-automl/google/cloud/automl_v1beta1/services/tables/tables_client.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
def to_proto_value(value):
3939
"""translates a Python value to a google.protobuf.Value.
4040
41-
Args:
42-
value: The Python value to be translated.
41+
Args:
42+
value: The Python value to be translated.
4343
44-
Returns:
45-
Tuple of the translated google.protobuf.Value and error if any.
46-
"""
44+
Returns:
45+
Tuple of the translated google.protobuf.Value and error if any.
46+
"""
4747
# possible Python types (this is a Python3 module):
4848
# https://simplejson.readthedocs.io/en/latest/#encoders-and-decoders
4949
# JSON Python 2 Python 3
@@ -158,8 +158,8 @@ def __init__(
158158
to use for requests.
159159
client_options (Union[dict, google.api_core.client_options.ClientOptions]):
160160
Custom options for the client.
161-
client_info (google.api_core.gapic_v1.client_info.ClientInfo):
162-
The client info used to send a user-agent string along with
161+
client_info (google.api_core.gapic_v1.client_info.ClientInfo):
162+
The client info used to send a user-agent string along with
163163
API requests.
164164
"""
165165
version = _GAPIC_LIBRARY_VERSION
@@ -1247,7 +1247,8 @@ def update_column_spec(
12471247
... project='my-project', region='us-central1')
12481248
...
12491249
>>> client.update_column_spec(dataset_display_name='my_dataset',
1250-
... column_spec_display_name='Outcome', type_code='CATEGORY')
1250+
... column_spec_display_name='Outcome',
1251+
... type_code=automl_v1beta1.TypeCode.CATEGORY)
12511252
...
12521253
12531254
Args:

0 commit comments

Comments
 (0)