Service Client: Google::Cloud::Notebooks::V2::Service::NotebookServiceClient

Client stub representing the remote NotebookService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to notebooks.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Notebooks::V2::Service - Compiled Protocol Buffers messages for google/cloud/notebooks/v2/service.proto

SYNOPSIS

use Google::Cloud::Notebooks::V2::Service;

my $msg = Google::Cloud::Notebooks::V2::Service::OperationMetadata->new({
    create_time => $create_time,
    end_time => $end_time,
    target => $target,
    verb => $verb,
});

# Read or update a field
my $val = $msg->create_time();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Notebooks::V2::Service::OperationMetadata->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/notebooks/v2/service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Notebooks::V2::Service::OperationMetadata

Represents the metadata of the long-running operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time the operation was created.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time the operation finished running.

  • $msg->target() / $msg->target($value)

    Type: String

    Server-defined resource path for the target of the operation.

  • $msg->verb() / $msg->verb($value)

    Type: String

    Name of the verb executed by the operation.

  • $msg->status_message() / $msg->status_message($value)

    Type: String

    Human-readable status of the operation, if any.

  • $msg->requested_cancellation() / $msg->requested_cancellation($value)

    Type: Bool

    Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.

  • $msg->api_version() / $msg->api_version($value)

    Type: String

    API version used to start the operation.

  • $msg->endpoint() / $msg->endpoint($value)

    Type: String

    API endpoint name of this operation.

Google::Cloud::Notebooks::V2::Service::ListInstancesRequest

Request for listing notebook instances.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Format: `parent=projects/{project_id}/locations/{location}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. Maximum return size of the list call.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A previous returned page token that can be used to continue listing from the last result.

  • $msg->order_by() / $msg->order_by($value)

    Type: String

    Optional. Sort results. Supported values are "name", "name desc" or "" (unsorted).

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. List filter.

Google::Cloud::Notebooks::V2::Service::ListInstancesResponse

Response for listing notebook instances.

Inherits from Protobuf::Message.

Accessors

  • $msg->instances() / $msg->instances($value)

    Type: Message (Google::Cloud::Notebooks::V2::Instance::Instance)

    A list of returned instances.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Page token that can be used to continue listing from the last result in the next list call.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Locations that could not be reached. For example, ['us-west1-a', 'us-central1-b']. A ListInstancesResponse will only contain either instances or unreachables,

Google::Cloud::Notebooks::V2::Service::GetInstanceRequest

Request for getting a notebook instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V2::Service::CreateInstanceRequest

Request for creating a notebook instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Format: `parent=projects/{project_id}/locations/{location}`

  • $msg->instance_id() / $msg->instance_id($value)

    Type: String

    Required. User-defined unique ID of this instance.

  • $msg->instance() / $msg->instance($value)

    Type: Message (Google::Cloud::Notebooks::V2::Instance::Instance)

    Required. The instance to be created.

  • $msg->request_id() / $msg->request_id($value)

    Type: String

    Optional. Idempotent request UUID.

Google::Cloud::Notebooks::V2::Service::UpdateInstanceRequest

Request for updating a notebook instance.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Notebooks::V2::Service::DeleteInstanceRequest

Request for deleting a notebook instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

  • $msg->request_id() / $msg->request_id($value)

    Type: String

    Optional. Idempotent request UUID.

Google::Cloud::Notebooks::V2::Service::StartInstanceRequest

Request for starting a notebook instance

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V2::Service::StopInstanceRequest

Request for stopping a notebook instance

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V2::Service::ResetInstanceRequest

Request for resetting a notebook instance

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V2::Service::CheckInstanceUpgradabilityRequest

Request for checking if a notebook instance is upgradeable.

Inherits from Protobuf::Message.

Accessors

  • $msg->notebook_instance() / $msg->notebook_instance($value)

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V2::Service::CheckInstanceUpgradabilityResponse

Response for checking if a notebook instance is upgradeable.

Inherits from Protobuf::Message.

Accessors

  • $msg->upgradeable() / $msg->upgradeable($value)

    Type: Bool

    If an instance is upgradeable.

  • $msg->upgrade_version() / $msg->upgrade_version($value)

    Type: String

    The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

  • $msg->upgrade_info() / $msg->upgrade_info($value)

    Type: String

    Additional information about upgrade.

  • $msg->upgrade_image() / $msg->upgrade_image($value)

    Type: String

    The new image self link this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

Google::Cloud::Notebooks::V2::Service::UpgradeInstanceRequest

Request for upgrading a notebook instance

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V2::Service::RollbackInstanceRequest

Request for rollbacking a notebook instance

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

  • $msg->target_snapshot() / $msg->target_snapshot($value)

    Type: String

    Required. The snapshot for rollback. Example: "projects/test-project/global/snapshots/krwlzipynril".

  • $msg->revision_id() / $msg->revision_id($value)

    Type: String

    Required. Output only. Revision Id

Google::Cloud::Notebooks::V2::Service::DiagnoseInstanceRequest

Request for creating a notebook instance diagnostic file.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

  • $msg->diagnostic_config() / $msg->diagnostic_config($value)

    Type: Message (Google::Cloud::Notebooks::V2::DiagnosticConfig::DiagnosticConfig)

    Required. Defines flags that are used to run the diagnostic tool

  • $msg->timeout_minutes() / $msg->timeout_minutes($value)

    Type: Int32

    Optional. Maxmium amount of time in minutes before the operation times out.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Notebooks::V2::Service::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.