Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::Host (v4.0.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::Host.

Represents a host resource.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

def alias_links() -> ::Array<::String>
Returns
  • (::Array<::String>) — Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
def alias_links=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1
Returns
  • (::Array<::String>) — Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1

#creation_timestamp

def creation_timestamp() -> ::String
Returns
  • (::String) — Output only. The creation timestamp, formatted asRFC3339 text.

#creation_timestamp=

def creation_timestamp=(value) -> ::String
Parameter
  • value (::String) — Output only. The creation timestamp, formatted asRFC3339 text.
Returns
  • (::String) — Output only. The creation timestamp, formatted asRFC3339 text.

#description

def description() -> ::String
Returns
  • (::String) — An optional description of this resource.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — An optional description of this resource.
Returns
  • (::String) — An optional description of this resource.

#id

def id() -> ::Integer
Returns
  • (::Integer) — Output only. The unique identifier for this resource. This identifier is defined by the server.

#id=

def id=(value) -> ::Integer
Parameter
  • value (::Integer) — Output only. The unique identifier for this resource. This identifier is defined by the server.
Returns
  • (::Integer) — Output only. The unique identifier for this resource. This identifier is defined by the server.

#kind

def kind() -> ::String
Returns
  • (::String) — Output only. The type of resource. Alwayscompute#host for hosts.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — Output only. The type of resource. Alwayscompute#host for hosts.
Returns
  • (::String) — Output only. The type of resource. Alwayscompute#host for hosts.

#name

def name() -> ::String
Returns
  • (::String) — Output only. The name of the host.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Output only. The name of the host.
Returns
  • (::String) — Output only. The name of the host.
def self_link() -> ::String
Returns
  • (::String) — Output only. The self link of the host.
def self_link=(value) -> ::String
Parameter
  • value (::String) — Output only. The self link of the host.
Returns
  • (::String) — Output only. The self link of the host.
def self_link_with_id() -> ::String
Returns
  • (::String) — Output only. The self link with id of the host.
def self_link_with_id=(value) -> ::String
Parameter
  • value (::String) — Output only. The self link with id of the host.
Returns
  • (::String) — Output only. The self link with id of the host.

#state

def state() -> ::String
Returns
  • (::String) — Output only. The state of the host. Check the State enum for the list of possible values.

#state=

def state=(value) -> ::String
Parameter
  • value (::String) — Output only. The state of the host. Check the State enum for the list of possible values.
Returns
  • (::String) — Output only. The state of the host. Check the State enum for the list of possible values.

#status

def status() -> ::Google::Cloud::Compute::V1::HostStatus
Returns

#status=

def status=(value) -> ::Google::Cloud::Compute::V1::HostStatus
Parameter
Returns

#zone

def zone() -> ::String
Returns
  • (::String) — Output only. The zone in which the host resides.

#zone=

def zone=(value) -> ::String
Parameter
  • value (::String) — Output only. The zone in which the host resides.
Returns
  • (::String) — Output only. The zone in which the host resides.