Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/notebooks

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/notebooks

Notebooks client for Node.js

  • 3.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Google Cloud Platform logo

AI Platform Notebooks: Node.js Client

release level npm version

Notebooks 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 AI Platform Notebooks 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/notebooks

Using the client library

/**
 * TODO(developer): Uncomment these variables before running the sample.
 */
// const projectId = 'my-project';
// const location = 'global';

// Imports the Google Cloud Some API library
const {NotebookServiceClient} = require('@google-cloud/notebooks');
const client = new NotebookServiceClient();
async function listInstances() {
  const [instances] = await client.listInstances({
    parent: `projects/${projectId}/locations/${location}`,
  });
  for (const instance of instances) {
    console.info(`instance: ${instance.name}`);
  }
}
listInstances();

Samples

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

SampleSource CodeTry it
Managed_notebook_service.create_runtimesource codeOpen in Cloud Shell
Managed_notebook_service.delete_runtimesource codeOpen in Cloud Shell
Managed_notebook_service.diagnose_runtimesource codeOpen in Cloud Shell
Managed_notebook_service.get_runtimesource codeOpen in Cloud Shell
Managed_notebook_service.list_runtimessource codeOpen in Cloud Shell
Managed_notebook_service.refresh_runtime_token_internalsource codeOpen in Cloud Shell
Managed_notebook_service.report_runtime_eventsource codeOpen in Cloud Shell
Managed_notebook_service.reset_runtimesource codeOpen in Cloud Shell
Managed_notebook_service.start_runtimesource codeOpen in Cloud Shell
Managed_notebook_service.stop_runtimesource codeOpen in Cloud Shell
Managed_notebook_service.switch_runtimesource codeOpen in Cloud Shell
Managed_notebook_service.update_runtimesource codeOpen in Cloud Shell
Managed_notebook_service.upgrade_runtimesource codeOpen in Cloud Shell
Notebook_service.create_environmentsource codeOpen in Cloud Shell
Notebook_service.create_executionsource codeOpen in Cloud Shell
Notebook_service.create_instancesource codeOpen in Cloud Shell
Notebook_service.create_schedulesource codeOpen in Cloud Shell
Notebook_service.delete_environmentsource codeOpen in Cloud Shell
Notebook_service.delete_executionsource codeOpen in Cloud Shell
Notebook_service.delete_instancesource codeOpen in Cloud Shell
Notebook_service.delete_schedulesource codeOpen in Cloud Shell
Notebook_service.diagnose_instancesource codeOpen in Cloud Shell
Notebook_service.get_environmentsource codeOpen in Cloud Shell
Notebook_service.get_executionsource codeOpen in Cloud Shell
Notebook_service.get_instancesource codeOpen in Cloud Shell
Notebook_service.get_instance_healthsource codeOpen in Cloud Shell
Notebook_service.get_schedulesource codeOpen in Cloud Shell
Notebook_service.is_instance_upgradeablesource codeOpen in Cloud Shell
Notebook_service.list_environmentssource codeOpen in Cloud Shell
Notebook_service.list_executionssource codeOpen in Cloud Shell
Notebook_service.list_instancessource codeOpen in Cloud Shell
Notebook_service.list_schedulessource codeOpen in Cloud Shell
Notebook_service.register_instancesource codeOpen in Cloud Shell
Notebook_service.report_instance_infosource codeOpen in Cloud Shell
Notebook_service.reset_instancesource codeOpen in Cloud Shell
Notebook_service.rollback_instancesource codeOpen in Cloud Shell
Notebook_service.set_instance_acceleratorsource codeOpen in Cloud Shell
Notebook_service.set_instance_labelssource codeOpen in Cloud Shell
Notebook_service.set_instance_machine_typesource codeOpen in Cloud Shell
Notebook_service.start_instancesource codeOpen in Cloud Shell
Notebook_service.stop_instancesource codeOpen in Cloud Shell
Notebook_service.trigger_schedulesource codeOpen in Cloud Shell
Notebook_service.update_instance_configsource codeOpen in Cloud Shell
Notebook_service.update_instance_metadata_itemssource codeOpen in Cloud Shell
Notebook_service.update_shielded_instance_configsource codeOpen in Cloud Shell
Notebook_service.upgrade_instancesource codeOpen in Cloud Shell
Notebook_service.upgrade_instance_internalsource codeOpen in Cloud Shell
Notebook_service.create_environmentsource codeOpen in Cloud Shell
Notebook_service.create_instancesource codeOpen in Cloud Shell
Notebook_service.delete_environmentsource codeOpen in Cloud Shell
Notebook_service.delete_instancesource codeOpen in Cloud Shell
Notebook_service.get_environmentsource codeOpen in Cloud Shell
Notebook_service.get_instancesource codeOpen in Cloud Shell
Notebook_service.is_instance_upgradeablesource codeOpen in Cloud Shell
Notebook_service.list_environmentssource codeOpen in Cloud Shell
Notebook_service.list_instancessource codeOpen in Cloud Shell
Notebook_service.register_instancesource codeOpen in Cloud Shell
Notebook_service.report_instance_infosource codeOpen in Cloud Shell
Notebook_service.reset_instancesource codeOpen in Cloud Shell
Notebook_service.set_instance_acceleratorsource codeOpen in Cloud Shell
Notebook_service.set_instance_labelssource codeOpen in Cloud Shell
Notebook_service.set_instance_machine_typesource codeOpen in Cloud Shell
Notebook_service.start_instancesource codeOpen in Cloud Shell
Notebook_service.stop_instancesource codeOpen in Cloud Shell
Notebook_service.upgrade_instancesource codeOpen in Cloud Shell
Notebook_service.upgrade_instance_internalsource codeOpen in Cloud Shell
Notebook_service.check_instance_upgradabilitysource codeOpen in Cloud Shell
Notebook_service.create_instancesource codeOpen in Cloud Shell
Notebook_service.delete_instancesource codeOpen in Cloud Shell
Notebook_service.diagnose_instancesource codeOpen in Cloud Shell
Notebook_service.get_instancesource codeOpen in Cloud Shell
Notebook_service.list_instancessource codeOpen in Cloud Shell
Notebook_service.reset_instancesource codeOpen in Cloud Shell
Notebook_service.rollback_instancesource codeOpen in Cloud Shell
Notebook_service.start_instancesource codeOpen in Cloud Shell
Notebook_service.stop_instancesource codeOpen in Cloud Shell
Notebook_service.update_instancesource codeOpen in Cloud Shell
Notebook_service.upgrade_instancesource codeOpen in Cloud Shell
Quickstartsource codeOpen in Cloud Shell

The AI Platform Notebooks Node.js Client API Reference documentation also contains samples.

Supported Node.js Versions

Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js. If you are using an end-of-life version of Node.js, we recommend that you update as soon as possible to an actively supported LTS version.

Google's client libraries support legacy versions of Node.js runtimes on a best-efforts basis with the following warnings:

  • Legacy versions are not tested in continuous integration.
  • Some security patches and features cannot be backported.
  • Dependencies cannot be kept up-to-date.

Client libraries targeting some end-of-life versions of Node.js are available, and can be installed through npm dist-tags. The dist-tags follow the naming convention legacy-(version). For example, npm install @google-cloud/notebooks@legacy-8 installs client libraries for versions compatible with Node.js 8.

Versioning

This library follows Semantic Versioning.

This library is considered to be stable. The code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against stable libraries are addressed with the highest priority.

More Information: Google Cloud Platform Launch Stages

Contributing

Contributions welcome! See the Contributing Guide.

Please note that this README.md, the samples/README.md, and a variety of configuration files in this repository (including .nycrc and tsconfig.json) are generated from a central template. To edit one of these files, make an edit to its templates in directory.

License

Apache Version 2.0

See LICENSE

Keywords

FAQs

Package last updated on 21 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc