module
@google-cloud/automl
Source: index.
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 <a href="https://www.npmjs.com/">npm</a>:
npm install --save automl
Import the client library:
const automl = require('@google-cloud/automl');
Create a client that uses <a href="https://goo.gl/64dyYX">Application Default Credentials (ADC)</a>:
const client = new automl.PredictionServiceClient();
Create a client with <a href="https://goo.gl/RXp6VL">explicit credentials</a>:
const client = new automl.PredictionServiceClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Property
Exports
require("@google-cloud/automl") unknown
Properties
| Name | Type | Optional | Description |
|---|---|---|---|
|
PredictionServiceClient |
|
|
Reference to v1beta1.PredictionServiceClient |
|
AutoMlClient |
|
|
Reference to v1beta1.AutoMlClient |
Property
static
v1beta1 object
Properties
| Name | Type | Optional | Description |
|---|---|---|---|
|
PredictionServiceClient |
constructor |
|
Reference to v1beta1.PredictionServiceClient |
|
AutoMlClient |
constructor |
|
Reference to v1beta1.AutoMlClient |