Service Client: Google::Cloud::Notebooks::V1::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::V1::Service - Compiled Protocol Buffers messages for google/cloud/notebooks/v1/service.proto
SYNOPSIS
use Google::Cloud::Notebooks::V1::Service;
my $msg = Google::Cloud::Notebooks::V1::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::V1::Service::OperationMetadata->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/notebooks/v1/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::V1::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::V1::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::V1::Service::ListInstancesResponse
Response for listing notebook instances.
Inherits from Protobuf::Message.
Accessors
$msg->instances()/$msg->instances($value)Type:
Message(Google::Cloud::Notebooks::V1::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::V1::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::V1::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::V1::Instance::Instance)Required. The instance to be created.
Google::Cloud::Notebooks::V1::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::V1::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::V1::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::V1::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::V1::Service::UpdateInstanceConfigRequest
Request for updating instance configurations.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
$msg->config()/$msg->config($value)Type:
Message(Google::Cloud::Notebooks::V1::InstanceConfig::InstanceConfig)The instance configurations to be updated.
Google::Cloud::Notebooks::V1::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::V1::Service::SetInstanceLabelsRequest::LabelsEntry)Labels to apply to this instance. These can be later modified by the setLabels method
Google::Cloud::Notebooks::V1::Service::UpdateInstanceMetadataItemsRequest
Request for adding/changing metadata items for an instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
$msg->items()/$msg->items($value)Type:
Message(Google::Cloud::Notebooks::V1::Service::UpdateInstanceMetadataItemsRequest::ItemsEntry)Metadata items to add/update for the instance.
Google::Cloud::Notebooks::V1::Service::UpdateInstanceMetadataItemsResponse
Response for adding/changing metadata items for an instance.
Inherits from Protobuf::Message.
Accessors
$msg->items()/$msg->items($value)Type:
Message(Google::Cloud::Notebooks::V1::Service::UpdateInstanceMetadataItemsResponse::ItemsEntry)Map of items that were added/updated to/in the metadata.
Google::Cloud::Notebooks::V1::Service::UpdateShieldedInstanceConfigRequest
Request for updating the Shielded Instance config for a notebook instance. You can only use this method on a stopped instance
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
$msg->shielded_instance_config()/$msg->shielded_instance_config($value)Type:
Message(Google::Cloud::Notebooks::V1::Instance::Instance::ShieldedInstanceConfig)ShieldedInstance configuration to be updated.
Google::Cloud::Notebooks::V1::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::V1::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::V1::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::V1::Service::ResetInstanceRequest
Request for resetting 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::V1::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::V1::Service::ReportInstanceInfoRequest::MetadataEntry)The metadata reported to Notebooks API. This will be merged to the instance metadata store
Google::Cloud::Notebooks::V1::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}`
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Notebooks::V1::UpgradeType)Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance.
Google::Cloud::Notebooks::V1::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::V1::Service::GetInstanceHealthRequest
Request for checking if a notebook instance is healthy.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
Google::Cloud::Notebooks::V1::Service::GetInstanceHealthResponse
Response for checking if a notebook instance is healthy.
Inherits from Protobuf::Message.
Accessors
$msg->health_state()/$msg->health_state($value)Type:
Enum(Google::Cloud::Notebooks::V1::GetInstanceHealthResponse::HealthState)Output only. Runtime health_state.
$msg->health_info()/$msg->health_info($value)Type:
Message(Google::Cloud::Notebooks::V1::Service::GetInstanceHealthResponse::HealthInfoEntry)Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }
Enum: GetInstanceHealthResponse::HealthState
HEALTH_STATE_UNSPECIFIED=>0HEALTHY=>1UNHEALTHY=>2AGENT_NOT_INSTALLED=>3AGENT_NOT_RUNNING=>4
Google::Cloud::Notebooks::V1::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}`
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Notebooks::V1::UpgradeType)Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance.
Google::Cloud::Notebooks::V1::Service::RollbackInstanceRequest
Request for rollbacking a notebook instance
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
$msg->target_snapshot()/$msg->target_snapshot($value)Type:
StringRequired. The snapshot for rollback. Example: `projects/test-project/global/snapshots/krwlzipynril`.
Google::Cloud::Notebooks::V1::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
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Notebooks::V1::UpgradeType)Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance.
Google::Cloud::Notebooks::V1::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::V1::Service::DiagnoseInstanceRequest
Request for creating a notebook instance diagnostic file.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
$msg->diagnostic_config()/$msg->diagnostic_config($value)Type:
Message(Google::Cloud::Notebooks::V1::DiagnosticConfig::DiagnosticConfig)Required. Defines flags that are used to run the diagnostic tool
Google::Cloud::Notebooks::V1::Service::ListEnvironmentsResponse
Response for listing environments.
Inherits from Protobuf::Message.
Accessors
$msg->environments()/$msg->environments($value)Type:
Message(Google::Cloud::Notebooks::V1::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::V1::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::V1::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::V1::Environment::Environment)Required. The environment to be created.
Google::Cloud::Notebooks::V1::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}`
Google::Cloud::Notebooks::V1::Service::ListSchedulesRequest
Request for listing scheduled notebook job.
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.
$msg->filter()/$msg->filter($value)Type:
StringFilter applied to resulting schedules.
$msg->order_by()/$msg->order_by($value)Type:
StringField to order results by.
Google::Cloud::Notebooks::V1::Service::ListSchedulesResponse
Response for listing scheduled notebook job.
Inherits from Protobuf::Message.
Accessors
$msg->schedules()/$msg->schedules($value)Type:
Message(Google::Cloud::Notebooks::V1::Schedule::Schedule)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:
StringSchedules that could not be reached. For example:
['projects/{project_id}/location/{location}/schedules/monthly_digest', 'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
Google::Cloud::Notebooks::V1::Service::GetScheduleRequest
Request for getting scheduled notebook.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
Google::Cloud::Notebooks::V1::Service::DeleteScheduleRequest
Request for deleting an Schedule
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
Google::Cloud::Notebooks::V1::Service::CreateScheduleRequest
Request for created scheduled notebooks
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Format: `parent=projects/{project_id}/locations/{location}`
$msg->schedule_id()/$msg->schedule_id($value)Type:
StringRequired. User-defined unique ID of this schedule.
$msg->schedule()/$msg->schedule($value)Type:
Message(Google::Cloud::Notebooks::V1::Schedule::Schedule)Required. The schedule to be created.
Google::Cloud::Notebooks::V1::Service::TriggerScheduleRequest
Request for created scheduled notebooks
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
Google::Cloud::Notebooks::V1::Service::ListExecutionsRequest
Request for listing scheduled notebook executions.
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.
$msg->filter()/$msg->filter($value)Type:
StringFilter applied to resulting executions. Currently only supports filtering executions by a specified `schedule_id`. Format: `schedule_id=<Schedule_ID>`
$msg->order_by()/$msg->order_by($value)Type:
StringSort by field.
Google::Cloud::Notebooks::V1::Service::ListExecutionsResponse
Response for listing scheduled notebook executions
Inherits from Protobuf::Message.
Accessors
$msg->executions()/$msg->executions($value)Type:
Message(Google::Cloud::Notebooks::V1::Execution::Execution)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:
StringExecutions IDs that could not be reached. For example:
['projects/{project_id}/location/{location}/executions/imagenet_test1', 'projects/{project_id}/location/{location}/executions/classifier_train1']
Google::Cloud::Notebooks::V1::Service::GetExecutionRequest
Request for getting scheduled notebook execution
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/executions/{execution_id}`
Google::Cloud::Notebooks::V1::Service::DeleteExecutionRequest
Request for deleting a scheduled notebook execution
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/{project_id}/locations/{location}/executions/{execution_id}`
Google::Cloud::Notebooks::V1::Service::CreateExecutionRequest
Request to create notebook execution
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Format: `parent=projects/{project_id}/locations/{location}`
$msg->execution_id()/$msg->execution_id($value)Type:
StringRequired. User-defined unique ID of this execution.
$msg->execution()/$msg->execution($value)Type:
Message(Google::Cloud::Notebooks::V1::Execution::Execution)Required. The execution to be created.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Notebooks::V1::Service::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.