3.20.0 • Published 1 day ago

@google-cloud/aiplatform v3.20.0

Weekly downloads
33
License
Apache-2.0
Repository
github
Last release
1 day ago

Vertex AI: Node.js Client

release level npm version

Vertex AI client for Node.js

A comprehensive list of changes in each version may be found in the CHANGELOG.

Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.

Table of contents:

Quickstart

Before you begin

  1. Select or create a Cloud Platform project.
  2. Enable billing for your project.
  3. Enable the Vertex AI API.
  4. Set up authentication with a service account so you can access the API from your local workstation.

Installing the client library

npm install @google-cloud/aiplatform

Using the client library

/**
 * TODO(developer): Uncomment these variables before running the sample.
 */
// const projectId = 'YOUR_PROJECT_ID';
// const location = 'YOUR_PROJECT_LOCATION';

const {EndpointServiceClient} = require('@google-cloud/aiplatform');

// Specifies the location of the api endpoint
const clientOptions = {
  apiEndpoint: 'us-central1-aiplatform.googleapis.com',
};
const client = new EndpointServiceClient(clientOptions);

async function listEndpoints() {
  // Configure the parent resource
  const parent = `projects/${projectId}/locations/${location}`;
  const request = {
    parent,
  };

  // Get and print out a list of all the endpoints for this resource
  const [result] = await client.listEndpoints(request);
  for (const endpoint of result) {
    console.log(`\nEndpoint name: ${endpoint.name}`);
    console.log(`Display name: ${endpoint.displayName}`);
    if (endpoint.deployedModels[0]) {
      console.log(
        `First deployed model: ${endpoint.deployedModels[0].model}`
      );
    }
  }
}
listEndpoints();

Samples

Samples are in the samples/ directory. Each sample's README.md has instructions for running its sample.

SampleSource CodeTry it
Dataset_service.create_datasetsource codeOpen in Cloud Shell
Dataset_service.create_dataset_versionsource codeOpen in Cloud Shell
Dataset_service.delete_datasetsource codeOpen in Cloud Shell
Dataset_service.delete_dataset_versionsource codeOpen in Cloud Shell
Dataset_service.delete_saved_querysource codeOpen in Cloud Shell
Dataset_service.export_datasource codeOpen in Cloud Shell
Dataset_service.get_annotation_specsource codeOpen in Cloud Shell
Dataset_service.get_datasetsource codeOpen in Cloud Shell
Dataset_service.get_dataset_versionsource codeOpen in Cloud Shell
Dataset_service.import_datasource codeOpen in Cloud Shell
Dataset_service.list_annotationssource codeOpen in Cloud Shell
Dataset_service.list_data_itemssource codeOpen in Cloud Shell
Dataset_service.list_dataset_versionssource codeOpen in Cloud Shell
Dataset_service.list_datasetssource codeOpen in Cloud Shell
Dataset_service.list_saved_queriessource codeOpen in Cloud Shell
Dataset_service.restore_dataset_versionsource codeOpen in Cloud Shell
Dataset_service.search_data_itemssource codeOpen in Cloud Shell
Dataset_service.update_datasetsource codeOpen in Cloud Shell
Deployment_resource_pool_service.create_deployment_resource_poolsource codeOpen in Cloud Shell
Deployment_resource_pool_service.delete_deployment_resource_poolsource codeOpen in Cloud Shell
Deployment_resource_pool_service.get_deployment_resource_poolsource codeOpen in Cloud Shell
Deployment_resource_pool_service.list_deployment_resource_poolssource codeOpen in Cloud Shell
Deployment_resource_pool_service.query_deployed_modelssource codeOpen in Cloud Shell
Endpoint_service.create_endpointsource codeOpen in Cloud Shell
Endpoint_service.delete_endpointsource codeOpen in Cloud Shell
Endpoint_service.deploy_modelsource codeOpen in Cloud Shell
Endpoint_service.get_endpointsource codeOpen in Cloud Shell
Endpoint_service.list_endpointssource codeOpen in Cloud Shell
Endpoint_service.mutate_deployed_modelsource codeOpen in Cloud Shell
Endpoint_service.undeploy_modelsource codeOpen in Cloud Shell
Endpoint_service.update_endpointsource codeOpen in Cloud Shell
Feature_online_store_admin_service.create_feature_online_storesource codeOpen in Cloud Shell
Feature_online_store_admin_service.create_feature_viewsource codeOpen in Cloud Shell
Feature_online_store_admin_service.delete_feature_online_storesource codeOpen in Cloud Shell
Feature_online_store_admin_service.delete_feature_viewsource codeOpen in Cloud Shell
Feature_online_store_admin_service.get_feature_online_storesource codeOpen in Cloud Shell
Feature_online_store_admin_service.get_feature_viewsource codeOpen in Cloud Shell
Feature_online_store_admin_service.get_feature_view_syncsource codeOpen in Cloud Shell
Feature_online_store_admin_service.list_feature_online_storessource codeOpen in Cloud Shell
Feature_online_store_admin_service.list_feature_view_syncssource codeOpen in Cloud Shell
Feature_online_store_admin_service.list_feature_viewssource codeOpen in Cloud Shell
Feature_online_store_admin_service.sync_feature_viewsource codeOpen in Cloud Shell
Feature_online_store_admin_service.update_feature_online_storesource codeOpen in Cloud Shell
Feature_online_store_admin_service.update_feature_viewsource codeOpen in Cloud Shell
Feature_online_store_service.fetch_feature_valuessource codeOpen in Cloud Shell
Feature_online_store_service.search_nearest_entitiessource codeOpen in Cloud Shell
Feature_registry_service.create_featuresource codeOpen in Cloud Shell
Feature_registry_service.create_feature_groupsource codeOpen in Cloud Shell
Feature_registry_service.delete_featuresource codeOpen in Cloud Shell
Feature_registry_service.delete_feature_groupsource codeOpen in Cloud Shell
Feature_registry_service.get_featuresource codeOpen in Cloud Shell
Feature_registry_service.get_feature_groupsource codeOpen in Cloud Shell
Feature_registry_service.list_feature_groupssource codeOpen in Cloud Shell
Feature_registry_service.list_featuressource codeOpen in Cloud Shell
Feature_registry_service.update_featuresource codeOpen in Cloud Shell
Feature_registry_service.update_feature_groupsource codeOpen in Cloud Shell
Featurestore_online_serving_service.read_feature_valuessource codeOpen in Cloud Shell
Featurestore_online_serving_service.streaming_read_feature_valuessource codeOpen in Cloud Shell
Featurestore_online_serving_service.write_feature_valuessource codeOpen in Cloud Shell
Featurestore_service.batch_create_featuressource codeOpen in Cloud Shell
Featurestore_service.batch_read_feature_valuessource codeOpen in Cloud Shell
Featurestore_service.create_entity_typesource codeOpen in Cloud Shell
Featurestore_service.create_featuresource codeOpen in Cloud Shell
Featurestore_service.create_featurestoresource codeOpen in Cloud Shell
Featurestore_service.delete_entity_typesource codeOpen in Cloud Shell
Featurestore_service.delete_featuresource codeOpen in Cloud Shell
Featurestore_service.delete_feature_valuessource codeOpen in Cloud Shell
Featurestore_service.delete_featurestoresource codeOpen in Cloud Shell
Featurestore_service.export_feature_valuessource codeOpen in Cloud Shell
Featurestore_service.get_entity_typesource codeOpen in Cloud Shell
Featurestore_service.get_featuresource codeOpen in Cloud Shell
Featurestore_service.get_featurestoresource codeOpen in Cloud Shell
Featurestore_service.import_feature_valuessource codeOpen in Cloud Shell
Featurestore_service.list_entity_typessource codeOpen in Cloud Shell
Featurestore_service.list_featuressource codeOpen in Cloud Shell
Featurestore_service.list_featurestoressource codeOpen in Cloud Shell
Featurestore_service.search_featuressource codeOpen in Cloud Shell
Featurestore_service.update_entity_typesource codeOpen in Cloud Shell
Featurestore_service.update_featuresource codeOpen in Cloud Shell
Featurestore_service.update_featurestoresource codeOpen in Cloud Shell
Gen_ai_tuning_service.cancel_tuning_jobsource codeOpen in Cloud Shell
Gen_ai_tuning_service.create_tuning_jobsource codeOpen in Cloud Shell
Gen_ai_tuning_service.get_tuning_jobsource codeOpen in Cloud Shell
Gen_ai_tuning_service.list_tuning_jobssource codeOpen in Cloud Shell
Index_endpoint_service.create_index_endpointsource codeOpen in Cloud Shell
Index_endpoint_service.delete_index_endpointsource codeOpen in Cloud Shell
Index_endpoint_service.deploy_indexsource codeOpen in Cloud Shell
Index_endpoint_service.get_index_endpointsource codeOpen in Cloud Shell
Index_endpoint_service.list_index_endpointssource codeOpen in Cloud Shell
Index_endpoint_service.mutate_deployed_indexsource codeOpen in Cloud Shell
Index_endpoint_service.undeploy_indexsource codeOpen in Cloud Shell
Index_endpoint_service.update_index_endpointsource codeOpen in Cloud Shell
Index_service.create_indexsource codeOpen in Cloud Shell
Index_service.delete_indexsource codeOpen in Cloud Shell
Index_service.get_indexsource codeOpen in Cloud Shell
Index_service.list_indexessource codeOpen in Cloud Shell
Index_service.remove_datapointssource codeOpen in Cloud Shell
Index_service.update_indexsource codeOpen in Cloud Shell
Index_service.upsert_datapointssource codeOpen in Cloud Shell
Job_service.cancel_batch_prediction_jobsource codeOpen in Cloud Shell
Job_service.cancel_custom_jobsource codeOpen in Cloud Shell
Job_service.cancel_data_labeling_jobsource codeOpen in Cloud Shell
Job_service.cancel_hyperparameter_tuning_jobsource codeOpen in Cloud Shell
Job_service.cancel_nas_jobsource codeOpen in Cloud Shell
Job_service.create_batch_prediction_jobsource codeOpen in Cloud Shell
Job_service.create_custom_jobsource codeOpen in Cloud Shell
Job_service.create_data_labeling_jobsource codeOpen in Cloud Shell
Job_service.create_hyperparameter_tuning_jobsource codeOpen in Cloud Shell
Job_service.create_model_deployment_monitoring_jobsource codeOpen in Cloud Shell
Job_service.create_nas_jobsource codeOpen in Cloud Shell
Job_service.delete_batch_prediction_jobsource codeOpen in Cloud Shell
Job_service.delete_custom_jobsource codeOpen in Cloud Shell
Job_service.delete_data_labeling_jobsource codeOpen in Cloud Shell
Job_service.delete_hyperparameter_tuning_jobsource codeOpen in Cloud Shell
Job_service.delete_model_deployment_monitoring_jobsource code[Open in Cloud Shell](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/goog
3.20.0

1 day ago

3.19.1

9 days ago

3.19.0

15 days ago

3.18.0

24 days ago

3.17.0

1 month ago

3.16.0

1 month ago

3.15.0

2 months ago

3.14.0

2 months ago

3.13.0

2 months ago

3.12.0

3 months ago

3.11.0

3 months ago

3.10.1

3 months ago

3.10.0

4 months ago

3.9.0

5 months ago

3.4.0

6 months ago

3.2.0

8 months ago

3.8.0

5 months ago

3.6.0

6 months ago

2.17.0

9 months ago

3.0.0

9 months ago

3.3.0

7 months ago

3.1.0

8 months ago

3.7.0

6 months ago

3.5.0

6 months ago

2.16.0

10 months ago

2.15.0

11 months ago

2.11.0

1 year ago

2.12.0

1 year ago

2.10.0

1 year ago

2.13.0

12 months ago

2.14.0

12 months ago

2.9.0

1 year ago

2.8.1

1 year ago

2.8.0

1 year ago

2.7.0

1 year ago

2.6.1

1 year ago

2.5.0

1 year ago

2.4.0

1 year ago

2.6.0

1 year ago

2.3.0

2 years ago

2.1.0

2 years ago

1.19.0

2 years ago

1.18.0

2 years ago

1.17.0

2 years ago

1.15.0

2 years ago

1.14.1

2 years ago

1.16.0

2 years ago

1.14.0

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.11.0

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.4

3 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago