Class: Google::Apis::ComputeBeta::Host

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb

Overview

Represents a host resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Host

Returns a new instance of Host.



20726
20727
20728
# File 'lib/google/apis/compute_beta/classes.rb', line 20726

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

Output only. All aliases for this resource. e.g. projects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1 Corresponds to the JSON property aliasLinks

Returns:

  • (Array<String>)


20673
20674
20675
# File 'lib/google/apis/compute_beta/classes.rb', line 20673

def alias_links
  @alias_links
end

#creation_timestampString

Output only. The creation timestamp, formatted asRFC3339 text. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


20678
20679
20680
# File 'lib/google/apis/compute_beta/classes.rb', line 20678

def creation_timestamp
  @creation_timestamp
end

#descriptionString

An optional description of this resource. Corresponds to the JSON property description

Returns:

  • (String)


20683
20684
20685
# File 'lib/google/apis/compute_beta/classes.rb', line 20683

def description
  @description
end

#idFixnum

Output only. The unique identifier for this resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


20689
20690
20691
# File 'lib/google/apis/compute_beta/classes.rb', line 20689

def id
  @id
end

#kindString

Output only. The type of resource. Alwayscompute#host for hosts. Corresponds to the JSON property kind

Returns:

  • (String)


20694
20695
20696
# File 'lib/google/apis/compute_beta/classes.rb', line 20694

def kind
  @kind
end

#nameString

Output only. The name of the host. Corresponds to the JSON property name

Returns:

  • (String)


20699
20700
20701
# File 'lib/google/apis/compute_beta/classes.rb', line 20699

def name
  @name
end

Output only. The self link of the host. Corresponds to the JSON property selfLink

Returns:

  • (String)


20704
20705
20706
# File 'lib/google/apis/compute_beta/classes.rb', line 20704

def self_link
  @self_link
end

Output only. The self link with id of the host. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)


20709
20710
20711
# File 'lib/google/apis/compute_beta/classes.rb', line 20709

def self_link_with_id
  @self_link_with_id
end

#stateString

Output only. The state of the host. Corresponds to the JSON property state

Returns:

  • (String)


20714
20715
20716
# File 'lib/google/apis/compute_beta/classes.rb', line 20714

def state
  @state
end

#statusGoogle::Apis::ComputeBeta::HostStatus

Output only. The status of the host Corresponds to the JSON property status



20719
20720
20721
# File 'lib/google/apis/compute_beta/classes.rb', line 20719

def status
  @status
end

#zoneString

Output only. The zone in which the host resides. Corresponds to the JSON property zone

Returns:

  • (String)


20724
20725
20726
# File 'lib/google/apis/compute_beta/classes.rb', line 20724

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
# File 'lib/google/apis/compute_beta/classes.rb', line 20731

def update!(**args)
  @alias_links = args[:alias_links] if args.key?(:alias_links)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
  @state = args[:state] if args.key?(:state)
  @status = args[:status] if args.key?(:status)
  @zone = args[:zone] if args.key?(:zone)
end