Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class Instance.
A server.
Generated from protobuf message google.cloud.baremetalsolution.v2.Instance
Namespace
Google \ Cloud \ BareMetalSolution \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Immutable. 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}
↳ id
string
Output only. An identifier for the Instance
, generated by the backend.
↳ create_time
↳ update_time
↳ machine_type
↳ state
int
Output only. The state of the server.
↳ hyperthreading_enabled
bool
True if you enable hyperthreading for the server, otherwise false. The default value is false.
↳ labels
↳ luns
↳ volumes
array< Google\Cloud\BareMetalSolution\V2\Volume
>
Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.
↳ networks
array< Google\Cloud\BareMetalSolution\V2\Network
>
Output only. List of networks associated with this server.
↳ interactive_serial_console_enabled
bool
Output only. True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.
↳ os_image
string
The OS image currently installed on the server.
↳ pod
string
Immutable. Pod name. Pod is an independent part of infrastructure. Instance can be connected to the assets (networks, volumes) allocated in the same pod only.
↳ network_template
string
Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc. Generally, the template name follows the syntax of "bond<bond_mode>" or "nic".
↳ logical_interfaces
array< Google\Cloud\BareMetalSolution\V2\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.
↳ login_info
string
Output only. Text field about info for logging in.
↳ workload_profile
int
The workload profile for the instance.
↳ firmware_version
string
Output only. The firmware version for the instance.
getName
Immutable. 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}
string
setName
Immutable. 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}
var
string
$this
getId
Output only. An identifier for the Instance
, generated by the backend.
string
setId
Output only. An identifier for the Instance
, generated by the backend.
var
string
$this
getCreateTime
Output only. Create a time stamp.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Create a time stamp.
$this
getUpdateTime
Output only. Update a time stamp.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Update a time stamp.
$this
getMachineType
Immutable. The server type.
string
setMachineType
Immutable. The server type.
var
string
$this
getState
Output only. The state of the server.
int
setState
Output only. The state of the server.
var
int
$this
getHyperthreadingEnabled
True if you enable hyperthreading for the server, otherwise false.
The default value is false.
bool
setHyperthreadingEnabled
True if you enable hyperthreading for the server, otherwise false.
The default value is false.
var
bool
$this
getLabels
Labels as key value pairs.
setLabels
Labels as key value pairs.
$this
getLuns
Immutable. List of LUNs associated with this server.
setLuns
Immutable. List of LUNs associated with this server.
$this
getVolumes
Input only. List of Volumes to attach to this Instance on creation.
This field won't be populated in Get/List responses.
setVolumes
Input only. List of Volumes to attach to this Instance on creation.
This field won't be populated in Get/List responses.
$this
getNetworks
Output only. List of networks associated with this server.
setNetworks
Output only. List of networks associated with this server.
$this
getInteractiveSerialConsoleEnabled
Output only. True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.
bool
setInteractiveSerialConsoleEnabled
Output only. True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.
var
bool
$this
getOsImage
The OS image currently installed on the server.
string
setOsImage
The OS image currently installed on the server.
var
string
$this
getPod
Immutable. Pod name.
Pod is an independent part of infrastructure. Instance can be connected to the assets (networks, volumes) allocated in the same pod only.
string
setPod
Immutable. Pod name.
Pod is an independent part of infrastructure. Instance can be connected to the assets (networks, volumes) allocated in the same pod only.
var
string
$this
getNetworkTemplate
Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
Generally, the template name follows the syntax of "bond<bond_mode>" or "nic".
string
setNetworkTemplate
Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
Generally, the template name follows the syntax of "bond<bond_mode>" or "nic".
var
string
$this
getLogicalInterfaces
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.
setLogicalInterfaces
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.
$this
getLoginInfo
Output only. Text field about info for logging in.
string
setLoginInfo
Output only. Text field about info for logging in.
var
string
$this
getWorkloadProfile
The workload profile for the instance.
int
setWorkloadProfile
The workload profile for the instance.
var
int
$this
getFirmwareVersion
Output only. The firmware version for the instance.
string
setFirmwareVersion
Output only. The firmware version for the instance.
var
string
$this