NAME
Google::Cloud::Baremetalsolution::V2::Instance - Compiled Protocol Buffers messages for google/cloud/baremetalsolution/v2/instance.proto
SYNOPSIS
use Google::Cloud::Baremetalsolution::V2::Instance;
my $msg = Google::Cloud::Baremetalsolution::V2::Instance::Instance->new({
name => $name,
id => $id,
create_time => $create_time,
update_time => $update_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Baremetalsolution::V2::Instance::Instance->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/baremetalsolution/v2/instance.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::Baremetalsolution::V2::Instance::Instance
A server.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringImmutable. The resource name of this `Instance`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/instances/{instance}`
$msg->id()/$msg->id($value)Type:
StringOutput only. An identifier for the `Instance`, generated by the backend.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Create a time stamp.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Update a time stamp.
$msg->machine_type()/$msg->machine_type($value)Type:
StringImmutable. The server type. [Available server types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Baremetalsolution::V2::Instance::State)Output only. The state of the server.
$msg->hyperthreading_enabled()/$msg->hyperthreading_enabled($value)Type:
BoolTrue if you enable hyperthreading for the server, otherwise false. The default value is false.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Instance::Instance::LabelsEntry)Labels as key value pairs.
$msg->luns()/$msg->luns($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Lun::Lun)Immutable. List of LUNs associated with this server.
$msg->volumes()/$msg->volumes($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Volume::Volume)Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.
$msg->networks()/$msg->networks($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Network::Network)Output only. List of networks associated with this server.
$msg->interactive_serial_console_enabled()/$msg->interactive_serial_console_enabled($value)Type:
BoolOutput only. True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.
$msg->os_image()/$msg->os_image($value)Type:
StringThe OS image currently installed on the server.
$msg->pod()/$msg->pod($value)Type:
StringImmutable. Pod name. Pod is an independent part of infrastructure. Instance can be connected to the assets (networks, volumes) allocated in the same pod only.
$msg->network_template()/$msg->network_template($value)Type:
StringInstance network template name. For eg, bondaa-bondaa, bondab-nic, etc. Generally, the template name follows the syntax of "bond<bond_mode>" or "nic".
$msg->logical_interfaces()/$msg->logical_interfaces($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Network::LogicalInterface)List of logical interfaces for the instance. The number of logical interfaces will be the same as number of hardware bond/nic on the chosen network template. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.
$msg->login_info()/$msg->login_info($value)Type:
StringOutput only. Text field about info for logging in.
$msg->workload_profile()/$msg->workload_profile($value)Type:
Enum(Google::Cloud::Baremetalsolution::V2::WorkloadProfile)The workload profile for the instance.
$msg->firmware_version()/$msg->firmware_version($value)Type:
StringOutput only. The firmware version for the instance.
Enum: Instance::State
STATE_UNSPECIFIED=>0PROVISIONING=>1RUNNING=>2DELETED=>3UPDATING=>4STARTING=>5STOPPING=>6SHUTDOWN=>7
Google::Cloud::Baremetalsolution::V2::Instance::GetInstanceRequest
Message for requesting server information.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
Google::Cloud::Baremetalsolution::V2::Instance::ListInstancesRequest
Message for requesting the list of servers.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent value for ListInstancesRequest.
$msg->page_size()/$msg->page_size($value)Type:
Int32Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
$msg->page_token()/$msg->page_token($value)Type:
StringA token identifying a page of results from the server.
$msg->filter()/$msg->filter($value)Type:
StringList filter.
Google::Cloud::Baremetalsolution::V2::Instance::ListInstancesResponse
Response message for the list of servers.
Inherits from Protobuf::Message.
Accessors
$msg->instances()/$msg->instances($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Instance::Instance)The list of servers.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results from the server.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Baremetalsolution::V2::Instance::UpdateInstanceRequest
Message requesting to updating a server.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Instance::Instance)Required. The server to update.
The `name` field is used to identify the instance to update. Format: projects/{project}/locations/{location}/instances/{instance}
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to update. The currently supported fields are: `labels` `hyperthreading_enabled` `os_image`
Google::Cloud::Baremetalsolution::V2::Instance::RenameInstanceRequest
Message requesting rename of a server.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The `name` field is used to identify the instance. Format: projects/{project}/locations/{location}/instances/{instance}
$msg->new_instance_id()/$msg->new_instance_id($value)Type:
StringRequired. The new `id` of the instance.
Google::Cloud::Baremetalsolution::V2::Instance::ResetInstanceRequest
Message requesting to reset a server.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
Google::Cloud::Baremetalsolution::V2::Instance::StartInstanceRequest
Message requesting to start a server.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
Google::Cloud::Baremetalsolution::V2::Instance::StartInstanceResponse
Response message from starting a server.
Inherits from Protobuf::Message.
Google::Cloud::Baremetalsolution::V2::Instance::StopInstanceRequest
Message requesting to stop a server.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
Google::Cloud::Baremetalsolution::V2::Instance::StopInstanceResponse
Response message from stopping a server.
Inherits from Protobuf::Message.
Google::Cloud::Baremetalsolution::V2::Instance::EnableInteractiveSerialConsoleRequest
Message for enabling the interactive serial console on an instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
Google::Cloud::Baremetalsolution::V2::Instance::EnableInteractiveSerialConsoleResponse
Message for response of EnableInteractiveSerialConsole.
Inherits from Protobuf::Message.
Google::Cloud::Baremetalsolution::V2::Instance::DisableInteractiveSerialConsoleRequest
Message for disabling the interactive serial console on an instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
Google::Cloud::Baremetalsolution::V2::Instance::DisableInteractiveSerialConsoleResponse
Message for response of DisableInteractiveSerialConsole.
Inherits from Protobuf::Message.
Google::Cloud::Baremetalsolution::V2::Instance::DetachLunRequest
Message for detach specific LUN from an Instance.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Name of the instance.
$msg->lun()/$msg->lun($value)Type:
StringRequired. Name of the Lun to detach.
$msg->skip_reboot()/$msg->skip_reboot($value)Type:
BoolIf true, performs lun unmapping without instance reboot.
Google::Cloud::Baremetalsolution::V2::Instance::ServerNetworkTemplate
Network template.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Template's unique name. The full resource name follows the pattern: `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}` Generally, the {server_network_template} follows the syntax of "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
$msg->applicable_instance_types()/$msg->applicable_instance_types($value)Type:
StringInstance types this template is applicable to.
$msg->logical_interfaces()/$msg->logical_interfaces($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Instance::ServerNetworkTemplate::LogicalInterface)Logical interfaces.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Baremetalsolution::V2::Instance::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.