File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/google-cloud-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__(
5050 ):
5151 """Constructor.
5252
53- Example:
53+ Example for US region :
5454 >>> from google.cloud import automl_v1beta1
5555 >>>
5656 >>> from google.oauth2 import service_account
@@ -60,6 +60,17 @@ def __init__(
6060 ... project='my-project', region='us-central1')
6161 ...
6262
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+
6374 Args:
6475 project (Optional[str]): The project ID of the GCP project all
6576 future calls will default to. Most methods take `project` as an
You can’t perform that action at this time.
0 commit comments