Service Client: Google::Cloud::Notebooks::V1beta1::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::V1beta1::Service - Compiled Protocol Buffers messages for google/cloud/notebooks/v1beta1/service.proto
SYNOPSIS
use Google::Cloud::Notebooks::V1beta1::Service;
my $msg = Google::Cloud::Notebooks::V1beta1::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::V1beta1::Service::OperationMetadata->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/notebooks/v1beta1/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::V1beta1::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:
StringServer-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringName of the verb executed by the operation.
$msg->status_message()/$msg->status_message($value)Type:
StringHuman-readable status of the operation, if any.
$msg->requested_cancellation()/$msg->requested_cancellation($value)Type:
BoolIdentifies 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:
StringAPI version used to start the operation.
$msg->endpoint()/$msg->endpoint($value)Type:
StringAPI endpoint name of this operation.
Google::Cloud::Notebooks::V1beta1::Service::ListInstancesRequest
Request for listing notebook instances.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Format: `parent=projects/{project_id}/locations/{location}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum return size of the list call.
$msg->page_token()/$msg->page_token($value)Type:
StringA previous returned page token that can be used to continue listing from the last result.
Google::Cloud::Notebooks::V1beta1::Service::ListInstancesResponse
Response for listing notebook instances.
Inherits from Protobuf::Message.
Accessors
$msg->instances()/$msg->instances($value)Type:
Message(Google::Cloud::Notebooks::V1beta1::Instance::Instance)A list of returned instances.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPage token that can be used to continue listing from the last result in the next list call.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations 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::V1beta1::Service::GetInstanceRequest
Request for getting a notebook instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
Google::Cloud::Notebooks::V1beta1::Service::CreateInstanceRequest
Request for creating a notebook instance.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Format: `parent=projects/{project_id}/locations/{location}`
$msg->instance_id()/$msg->instance_id($value)Type:
StringRequired. User-defined unique ID of this instance.
$msg->instance()/$msg->instance($value)Type:
Message(Google::Cloud::Notebooks::V1beta1::Instance::Instance)Required. The instance to be created.
Google::Cloud::Notebooks::V1beta1::Service::RegisterInstanceRequest
Request for registering a notebook instance.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Format: `parent=projects/{project_id}/locations/{location}`
$msg->instance_id()/$msg->instance_id($value)Type:
StringRequired. User defined unique ID of this instance. The `instance_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.
Google::Cloud::Notebooks::V1beta1::Service::SetInstanceAcceleratorRequest
Request for setting instance accelerator.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Notebooks::V1beta1::Instance::AcceleratorType)Required. Type of this accelerator.
$msg->core_count()/$msg->core_count($value)Type:
Int64Required. Count of cores of this accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported.
Google::Cloud::Notebooks::V1beta1::Service::SetInstanceMachineTypeRequest
Request for setting instance machine type.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
$msg->machine_type()/$msg->machine_type($value)Type:
StringRequired. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types).
Google::Cloud::Notebooks::V1beta1::Service::SetInstanceLabelsRequest
Request for setting instance labels.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Notebooks::V1beta1::Service::SetInstanceLabelsRequest::LabelsEntry)Labels to apply to this instance. These can be later modified by the setLabels method
Google::Cloud::Notebooks::V1beta1::Service::DeleteInstanceRequest
Request for deleting a notebook instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
Google::Cloud::Notebooks::V1beta1::Service::StartInstanceRequest
Request for starting a notebook instance
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
Google::Cloud::Notebooks::V1beta1::Service::StopInstanceRequest
Request for stopping a notebook instance
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
Google::Cloud::Notebooks::V1beta1::Service::ResetInstanceRequest
Request for reseting a notebook instance
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
Google::Cloud::Notebooks::V1beta1::Service::ReportInstanceInfoRequest
Request for notebook instances to report information to Notebooks API.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
$msg->vm_id()/$msg->vm_id($value)Type:
StringRequired. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Notebooks::V1beta1::Service::ReportInstanceInfoRequest::MetadataEntry)The metadata reported to Notebooks API. This will be merged to the instance metadata store
Google::Cloud::Notebooks::V1beta1::Service::IsInstanceUpgradeableRequest
Request for checking if a notebook instance is upgradeable.
Inherits from Protobuf::Message.
Accessors
$msg->notebook_instance()/$msg->notebook_instance($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
Google::Cloud::Notebooks::V1beta1::Service::IsInstanceUpgradeableResponse
Response for checking if a notebook instance is upgradeable.
Inherits from Protobuf::Message.
Accessors
$msg->upgradeable()/$msg->upgradeable($value)Type:
BoolIf an instance is upgradeable.
$msg->upgrade_version()/$msg->upgrade_version($value)Type:
StringThe 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:
StringAdditional information about upgrade.
$msg->upgrade_image()/$msg->upgrade_image($value)Type:
StringThe 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::V1beta1::Service::UpgradeInstanceRequest
Request for upgrading a notebook instance
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
Google::Cloud::Notebooks::V1beta1::Service::UpgradeInstanceInternalRequest
Request for upgrading a notebook instance from within the VM
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
$msg->vm_id()/$msg->vm_id($value)Type:
StringRequired. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
Google::Cloud::Notebooks::V1beta1::Service::ListEnvironmentsRequest
Request for listing environments.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum return size of the list call.
$msg->page_token()/$msg->page_token($value)Type:
StringA previous returned page token that can be used to continue listing from the last result.
Google::Cloud::Notebooks::V1beta1::Service::ListEnvironmentsResponse
Response for listing environments.
Inherits from Protobuf::Message.
Accessors
$msg->environments()/$msg->environments($value)Type:
Message(Google::Cloud::Notebooks::V1beta1::Environment::Environment)A list of returned environments.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA page token that can be used to continue listing from the last result in the next list call.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Notebooks::V1beta1::Service::GetEnvironmentRequest
Request for getting a notebook environment.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`
Google::Cloud::Notebooks::V1beta1::Service::CreateEnvironmentRequest
Request for creating a notebook environment.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}`
$msg->environment_id()/$msg->environment_id($value)Type:
StringRequired. User-defined unique ID of this environment. The `environment_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.
$msg->environment()/$msg->environment($value)Type:
Message(Google::Cloud::Notebooks::V1beta1::Environment::Environment)Required. The environment to be created.
Google::Cloud::Notebooks::V1beta1::Service::DeleteEnvironmentRequest
Request for deleting a notebook environment.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Notebooks::V1beta1::Service::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.