Set up your Service Account for Google AutoML
-
Go to https://console.cloud.google.com/projectselector2/iam-admin/serviceaccounts
-
Choose a particular Google user (if required):
-
Select a project:
-
If you already have service accounts for this project, then you will see them here. To create a new Service Account, click on CREATE SERVICE ACCOUNT:
-
Fill in the form and click Create:
-
Add roles:
- AutoML Viewer (list custom models)
- AutoML Predictor (translate with custom models)
- Cloud Translation API User (use glossaries)
- Storage Object Viewer (use glossaries)
If you plan to create glossaries you'd need the following roles:
- AutoML Viewer (list custom models)
- AutoML Predictor (translate with custom models)
- Cloud Translation API Editor (use and create glossaries)
- Storage Object Viewer (use glossaries)
- Storage Object Creator (create glossaries)
If you need full control over the glossaries you'd need the following roles:
- AutoML Viewer (view custom models)
- AutoML Predictor (translate with custom models)
- Cloud Translation API Editor (use, create, update and delete glossaries)
- Storage Object Admin (use, create, update and delete glossaries)
-
Click Continue:
-
Create a key:
-
Select JSON format and click CREATE:
- You will get it as a text file:
Add Service Account Key to the Intento Connected Accounts
-
Choose Google Cloud Advanced Translation API or Google Cloud AutoML Translation API
-
Click CONNECT YOUR OWN ACCOUNT
-
Enter your own credential id and copy Service Account Key (you get as a text file from Google) and click CHECK AND CONNECT
Enable Cloud Resource Manager API to use your models
Until you enable the Cloud Resource Manager API, you will not be able to see your models and glossaries in your plugin.
Go to https://console.cloud.google.com/apis/library/cloudresourcemanager.googleapis.com?q=Resource%20manager and enable Cloud Resource Manager API
Using glossaries
If you want to use your project glossary while translating via Google Cloud Advanced Translation API:
- Upload a glossary file (csv, tmx, tsv) to your Google Storage and enable glossary via Google API v3 - detailed instruction from Google is here https://cloud.google.com/translate/docs/glossary
- Add Cloud Translation API Editor role to your project
- If all steps were taken properly, you would see a list of glossaries in the plugin.
How to get another Google service account key
In Google, there is no way to view your previously generated key. If you lost the key or it became insecure, you need to replace it by generating a new key.
- Go to https://console.cloud.google.com/projectselector2/iam-admin/iam
- Choose proper Google account and project
- Check current access rights. You need to have the following rights:
- AutoML Predictor
- AutoML Viewer
- Cloud Translation API User
If you need to add access rights, click on the pencil icon:
-
Add the required roles and click SAVE: