Package com.google.cloud.notebooks.v1beta1 (1.2.0)

The interfaces provided are listed below, along with usage samples.

NotebookServiceClient

Service Description: API v1beta1 service for Cloud AI Platform Notebooks.

Sample for NotebookServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
   GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
   Instance response = notebookServiceClient.getInstance(request);
 }
 

Classes

ContainerImage

Definition of a container image for starting a notebook instance with the environment installed in a container.

Protobuf type google.cloud.notebooks.v1beta1.ContainerImage

ContainerImage.Builder

Definition of a container image for starting a notebook instance with the environment installed in a container.

Protobuf type google.cloud.notebooks.v1beta1.ContainerImage

CreateEnvironmentRequest

Request for creating a notebook environment.

Protobuf type google.cloud.notebooks.v1beta1.CreateEnvironmentRequest

CreateEnvironmentRequest.Builder

Request for creating a notebook environment.

Protobuf type google.cloud.notebooks.v1beta1.CreateEnvironmentRequest

CreateInstanceRequest

Request for creating a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.CreateInstanceRequest

CreateInstanceRequest.Builder

Request for creating a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.CreateInstanceRequest

DeleteEnvironmentRequest

Request for deleting a notebook environment.

Protobuf type google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest

DeleteEnvironmentRequest.Builder

Request for deleting a notebook environment.

Protobuf type google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest

DeleteInstanceRequest

Request for deleting a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.DeleteInstanceRequest

DeleteInstanceRequest.Builder

Request for deleting a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.DeleteInstanceRequest

Environment

Definition of a software environment that is used to start a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.Environment

Environment.Builder

Definition of a software environment that is used to start a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.Environment

EnvironmentProto

GetEnvironmentRequest

Request for getting a notebook environment.

Protobuf type google.cloud.notebooks.v1beta1.GetEnvironmentRequest

GetEnvironmentRequest.Builder

Request for getting a notebook environment.

Protobuf type google.cloud.notebooks.v1beta1.GetEnvironmentRequest

GetInstanceRequest

Request for getting a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.GetInstanceRequest

GetInstanceRequest.Builder

Request for getting a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.GetInstanceRequest

Instance

The definition of a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.Instance

Instance.AcceleratorConfig

Definition of a hardware accelerator. Note that not all combinations of type and core_count are valid. Check GPUs on Compute Engine to find a valid combination. TPUs are not supported.

Protobuf type google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig

Instance.AcceleratorConfig.Builder

Definition of a hardware accelerator. Note that not all combinations of type and core_count are valid. Check GPUs on Compute Engine to find a valid combination. TPUs are not supported.

Protobuf type google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig

Instance.Builder

The definition of a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.Instance

InstanceProto

IsInstanceUpgradeableRequest

Request for checking if a notebook instance is upgradeable.

Protobuf type google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest

IsInstanceUpgradeableRequest.Builder

Request for checking if a notebook instance is upgradeable.

Protobuf type google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest

IsInstanceUpgradeableResponse

Response for checking if a notebook instance is upgradeable.

Protobuf type google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse

IsInstanceUpgradeableResponse.Builder

Response for checking if a notebook instance is upgradeable.

Protobuf type google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse

ListEnvironmentsRequest

Request for listing environments.

Protobuf type google.cloud.notebooks.v1beta1.ListEnvironmentsRequest

ListEnvironmentsRequest.Builder

Request for listing environments.

Protobuf type google.cloud.notebooks.v1beta1.ListEnvironmentsRequest

ListEnvironmentsResponse

Response for listing environments.

Protobuf type google.cloud.notebooks.v1beta1.ListEnvironmentsResponse

ListEnvironmentsResponse.Builder

Response for listing environments.

Protobuf type google.cloud.notebooks.v1beta1.ListEnvironmentsResponse

ListInstancesRequest

Request for listing notebook instances.

Protobuf type google.cloud.notebooks.v1beta1.ListInstancesRequest

ListInstancesRequest.Builder

Request for listing notebook instances.

Protobuf type google.cloud.notebooks.v1beta1.ListInstancesRequest

ListInstancesResponse

Response for listing notebook instances.

Protobuf type google.cloud.notebooks.v1beta1.ListInstancesResponse

ListInstancesResponse.Builder

Response for listing notebook instances.

Protobuf type google.cloud.notebooks.v1beta1.ListInstancesResponse

NotebookServiceClient

Service Description: API v1beta1 service for Cloud AI Platform Notebooks.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
   GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
   Instance response = notebookServiceClient.getInstance(request);
 }
 

Note: close() needs to be called on the NotebookServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of NotebookServiceSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 NotebookServiceSettings notebookServiceSettings =
     NotebookServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 NotebookServiceClient notebookServiceClient =
     NotebookServiceClient.create(notebookServiceSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 NotebookServiceSettings notebookServiceSettings =
     NotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 NotebookServiceClient notebookServiceClient =
     NotebookServiceClient.create(notebookServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

NotebookServiceClient.ListEnvironmentsFixedSizeCollection

NotebookServiceClient.ListEnvironmentsPage

NotebookServiceClient.ListEnvironmentsPagedResponse

NotebookServiceClient.ListInstancesFixedSizeCollection

NotebookServiceClient.ListInstancesPage

NotebookServiceClient.ListInstancesPagedResponse

NotebookServiceGrpc

API v1beta1 service for Cloud AI Platform Notebooks.

NotebookServiceGrpc.NotebookServiceBlockingStub

API v1beta1 service for Cloud AI Platform Notebooks.

NotebookServiceGrpc.NotebookServiceFutureStub

API v1beta1 service for Cloud AI Platform Notebooks.

NotebookServiceGrpc.NotebookServiceImplBase

API v1beta1 service for Cloud AI Platform Notebooks.

NotebookServiceGrpc.NotebookServiceStub

API v1beta1 service for Cloud AI Platform Notebooks.

NotebookServiceSettings

Settings class to configure an instance of NotebookServiceClient.

The default instance has everything set to sensible defaults:

  • The default service address (notebooks.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of getInstance to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 NotebookServiceSettings.Builder notebookServiceSettingsBuilder =
     NotebookServiceSettings.newBuilder();
 notebookServiceSettingsBuilder
     .getInstanceSettings()
     .setRetrySettings(
         notebookServiceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 NotebookServiceSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();
 

NotebookServiceSettings.Builder

Builder for NotebookServiceSettings.

NotebooksProto

OperationMetadata

Represents the metadata of the long-running operation.

Protobuf type google.cloud.notebooks.v1beta1.OperationMetadata

OperationMetadata.Builder

Represents the metadata of the long-running operation.

Protobuf type google.cloud.notebooks.v1beta1.OperationMetadata

RegisterInstanceRequest

Request for registering a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.RegisterInstanceRequest

RegisterInstanceRequest.Builder

Request for registering a notebook instance.

Protobuf type google.cloud.notebooks.v1beta1.RegisterInstanceRequest

ReportInstanceInfoRequest

Request for notebook instances to report information to Notebooks API.

Protobuf type google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest

ReportInstanceInfoRequest.Builder

Request for notebook instances to report information to Notebooks API.

Protobuf type google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest

ResetInstanceRequest

Request for reseting a notebook instance

Protobuf type google.cloud.notebooks.v1beta1.ResetInstanceRequest

ResetInstanceRequest.Builder

Request for reseting a notebook instance

Protobuf type google.cloud.notebooks.v1beta1.ResetInstanceRequest

SetInstanceAcceleratorRequest

Request for setting instance accelerator.

Protobuf type google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest

SetInstanceAcceleratorRequest.Builder

Request for setting instance accelerator.

Protobuf type google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest

SetInstanceLabelsRequest

Request for setting instance labels.

Protobuf type google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest

SetInstanceLabelsRequest.Builder

Request for setting instance labels.

Protobuf type google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest

SetInstanceMachineTypeRequest

Request for setting instance machine type.

Protobuf type google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest

SetInstanceMachineTypeRequest.Builder

Request for setting instance machine type.

Protobuf type google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest

StartInstanceRequest

Request for starting a notebook instance

Protobuf type google.cloud.notebooks.v1beta1.StartInstanceRequest

StartInstanceRequest.Builder

Request for starting a notebook instance

Protobuf type google.cloud.notebooks.v1beta1.StartInstanceRequest

StopInstanceRequest

Request for stopping a notebook instance

Protobuf type google.cloud.notebooks.v1beta1.StopInstanceRequest

StopInstanceRequest.Builder

Request for stopping a notebook instance

Protobuf type google.cloud.notebooks.v1beta1.StopInstanceRequest

UpgradeInstanceInternalRequest

Request for upgrading a notebook instance from within the VM

Protobuf type google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest

UpgradeInstanceInternalRequest.Builder

Request for upgrading a notebook instance from within the VM

Protobuf type google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest

UpgradeInstanceRequest

Request for upgrading a notebook instance

Protobuf type google.cloud.notebooks.v1beta1.UpgradeInstanceRequest

UpgradeInstanceRequest.Builder

Request for upgrading a notebook instance

Protobuf type google.cloud.notebooks.v1beta1.UpgradeInstanceRequest

VmImage

Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.

Protobuf type google.cloud.notebooks.v1beta1.VmImage

VmImage.Builder

Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.

Protobuf type google.cloud.notebooks.v1beta1.VmImage

Interfaces

ContainerImageOrBuilder

CreateEnvironmentRequestOrBuilder

CreateInstanceRequestOrBuilder

DeleteEnvironmentRequestOrBuilder

DeleteInstanceRequestOrBuilder

EnvironmentOrBuilder

GetEnvironmentRequestOrBuilder

GetInstanceRequestOrBuilder

Instance.AcceleratorConfigOrBuilder

InstanceOrBuilder

IsInstanceUpgradeableRequestOrBuilder

IsInstanceUpgradeableResponseOrBuilder

ListEnvironmentsRequestOrBuilder

ListEnvironmentsResponseOrBuilder

ListInstancesRequestOrBuilder

ListInstancesResponseOrBuilder

OperationMetadataOrBuilder

RegisterInstanceRequestOrBuilder

ReportInstanceInfoRequestOrBuilder

ResetInstanceRequestOrBuilder

SetInstanceAcceleratorRequestOrBuilder

SetInstanceLabelsRequestOrBuilder

SetInstanceMachineTypeRequestOrBuilder

StartInstanceRequestOrBuilder

StopInstanceRequestOrBuilder

UpgradeInstanceInternalRequestOrBuilder

UpgradeInstanceRequestOrBuilder

VmImageOrBuilder

Enums

Environment.ImageTypeCase

Instance.AcceleratorType

Definition of the types of hardware accelerators that can be used on this instance.

Protobuf enum google.cloud.notebooks.v1beta1.Instance.AcceleratorType

Instance.DiskEncryption

Definition of the disk encryption options.

Protobuf enum google.cloud.notebooks.v1beta1.Instance.DiskEncryption

Instance.DiskType

Possible disk types for notebook instances.

Protobuf enum google.cloud.notebooks.v1beta1.Instance.DiskType

Instance.EnvironmentCase

Instance.State

The definition of the states of this instance.

Protobuf enum google.cloud.notebooks.v1beta1.Instance.State

VmImage.ImageCase