File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
automl/google/cloud/automl_v1beta1/tables Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def __init__(
50
50
):
51
51
"""Constructor.
52
52
53
- Example:
53
+ Example for US region :
54
54
>>> from google.cloud import automl_v1beta1
55
55
>>>
56
56
>>> from google.oauth2 import service_account
@@ -60,6 +60,17 @@ def __init__(
60
60
... project='my-project', region='us-central1')
61
61
...
62
62
63
+ Example for EU region:
64
+ >>> from google.cloud import automl_v1beta1
65
+ >>>
66
+ >>> from google.oauth2 import service_account
67
+ >>>
68
+ >>> client_options = {'api_endpoint': 'eu-automl.googleapis.com:443'}
69
+ >>> client = automl_v1beta1.TablesClient(
70
+ ... credentials=service_account.Credentials.from_service_account_file('~/.gcp/account.json'),
71
+ ... project='my-project', region='eu', client_options=client_options)
72
+ ...
73
+
63
74
Args:
64
75
project (Optional[str]): The project ID of the GCP project all
65
76
future calls will default to. Most methods take `project` as an
You can’t perform that action at this time.
0 commit comments