Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::Instance.
A server.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. Create a time stamp.
#firmware_version
def firmware_version() -> ::String
Returns
- (::String) — Output only. The firmware version for the instance.
#hyperthreading_enabled
def hyperthreading_enabled() -> ::Boolean
Returns
- (::Boolean) — True if you enable hyperthreading for the server, otherwise false. The default value is false.
#hyperthreading_enabled=
def hyperthreading_enabled=(value) -> ::Boolean
Parameter
- value (::Boolean) — True if you enable hyperthreading for the server, otherwise false. The default value is false.
Returns
- (::Boolean) — True if you enable hyperthreading for the server, otherwise false. The default value is false.
#id
def id() -> ::String
Returns
-
(::String) — Output only. An identifier for the
Instance
, generated by the backend.
#interactive_serial_console_enabled
def interactive_serial_console_enabled() -> ::Boolean
Returns
- (::Boolean) — Output only. True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Labels as key value pairs.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — Labels as key value pairs.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Labels as key value pairs.
#logical_interfaces
def logical_interfaces() -> ::Array<::Google::Cloud::BareMetalSolution::V2::LogicalInterface>
Returns
- (::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.
#logical_interfaces=
def logical_interfaces=(value) -> ::Array<::Google::Cloud::BareMetalSolution::V2::LogicalInterface>
Parameter
- value (::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.
Returns
- (::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
def login_info() -> ::String
Returns
- (::String) — Output only. Text field about info for logging in.
#luns
def luns() -> ::Array<::Google::Cloud::BareMetalSolution::V2::Lun>
Returns
- (::Array<::Google::Cloud::BareMetalSolution::V2::Lun>) — Immutable. List of LUNs associated with this server.
#luns=
def luns=(value) -> ::Array<::Google::Cloud::BareMetalSolution::V2::Lun>
Parameter
- value (::Array<::Google::Cloud::BareMetalSolution::V2::Lun>) — Immutable. List of LUNs associated with this server.
Returns
- (::Array<::Google::Cloud::BareMetalSolution::V2::Lun>) — Immutable. List of LUNs associated with this server.
#machine_type
def machine_type() -> ::String
Returns
- (::String) — Immutable. The server type. Available server types
#machine_type=
def machine_type=(value) -> ::String
Parameter
- value (::String) — Immutable. The server type. Available server types
Returns
- (::String) — Immutable. The server type. Available server types
#name
def name() -> ::String
Returns
-
(::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}
#name=
def name=(value) -> ::String
Parameter
-
value (::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}
Returns
-
(::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}
#network_template
def network_template() -> ::String
Returns
- (::String) — Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc. Generally, the template name follows the syntax of "bond
#network_template=
def network_template=(value) -> ::String
Parameter
- value (::String) — Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc. Generally, the template name follows the syntax of "bond
Returns
- (::String) — Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc. Generally, the template name follows the syntax of "bond
#networks
def networks() -> ::Array<::Google::Cloud::BareMetalSolution::V2::Network>
Returns
- (::Array<::Google::Cloud::BareMetalSolution::V2::Network>) — Output only. List of networks associated with this server.
#os_image
def os_image() -> ::String
Returns
- (::String) — The OS image currently installed on the server.
#os_image=
def os_image=(value) -> ::String
Parameter
- value (::String) — The OS image currently installed on the server.
Returns
- (::String) — The OS image currently installed on the server.
#pod
def pod() -> ::String
Returns
- (::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.
#pod=
def pod=(value) -> ::String
Parameter
- value (::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.
Returns
- (::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.
#state
def state() -> ::Google::Cloud::BareMetalSolution::V2::Instance::State
Returns
- (::Google::Cloud::BareMetalSolution::V2::Instance::State) — Output only. The state of the server.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. Update a time stamp.
#volumes
def volumes() -> ::Array<::Google::Cloud::BareMetalSolution::V2::Volume>
Returns
- (::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.
#volumes=
def volumes=(value) -> ::Array<::Google::Cloud::BareMetalSolution::V2::Volume>
Parameter
- value (::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.
Returns
- (::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.
#workload_profile
def workload_profile() -> ::Google::Cloud::BareMetalSolution::V2::WorkloadProfile
Returns
- (::Google::Cloud::BareMetalSolution::V2::WorkloadProfile) — The workload profile for the instance.
#workload_profile=
def workload_profile=(value) -> ::Google::Cloud::BareMetalSolution::V2::WorkloadProfile
Parameter
- value (::Google::Cloud::BareMetalSolution::V2::WorkloadProfile) — The workload profile for the instance.
Returns
- (::Google::Cloud::BareMetalSolution::V2::WorkloadProfile) — The workload profile for the instance.