The automl package has the following named exports:
PredictionServiceClient- Reference to v1beta1.PredictionServiceClientAutoMlClient- Reference to v1beta1.AutoMlClientv1beta1- This is used for selecting or pinning a particular backend service version. It exports:PredictionServiceClient- Reference to v1beta1.PredictionServiceClientAutoMlClient- Reference to v1beta1.AutoMlClient
Examples
Install the client library with npm:
npm install --save automl
Import the client library:
const automl = require('@google-cloud/automl');
Create a client that uses Application Default Credentials (ADC):
const client = new automl.PredictionServiceClient();
Create a client with explicit credentials:
const client = new automl.PredictionServiceClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Members
(static) v1beta1 :object
Properties:
| Name | Type | Description |
|---|---|---|
PredictionServiceClient |
constructor |
Reference to v1beta1.PredictionServiceClient |
AutoMlClient |
constructor |
Reference to v1beta1.AutoMlClient |