Class: Google::Apis::ComputeAlpha::Host

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/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.



23243
23244
23245
# File 'lib/google/apis/compute_alpha/classes.rb', line 23243

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>)


23190
23191
23192
# File 'lib/google/apis/compute_alpha/classes.rb', line 23190

def alias_links
  @alias_links
end

#creation_timestampString

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

Returns:

  • (String)


23195
23196
23197
# File 'lib/google/apis/compute_alpha/classes.rb', line 23195

def creation_timestamp
  @creation_timestamp
end

#descriptionString

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

Returns:

  • (String)


23200
23201
23202
# File 'lib/google/apis/compute_alpha/classes.rb', line 23200

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)


23206
23207
23208
# File 'lib/google/apis/compute_alpha/classes.rb', line 23206

def id
  @id
end

#kindString

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

Returns:

  • (String)


23211
23212
23213
# File 'lib/google/apis/compute_alpha/classes.rb', line 23211

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


23216
23217
23218
# File 'lib/google/apis/compute_alpha/classes.rb', line 23216

def name
  @name
end

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

Returns:

  • (String)


23221
23222
23223
# File 'lib/google/apis/compute_alpha/classes.rb', line 23221

def self_link
  @self_link
end

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

Returns:

  • (String)


23226
23227
23228
# File 'lib/google/apis/compute_alpha/classes.rb', line 23226

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)


23231
23232
23233
# File 'lib/google/apis/compute_alpha/classes.rb', line 23231

def state
  @state
end

#statusGoogle::Apis::ComputeAlpha::HostStatus

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



23236
23237
23238
# File 'lib/google/apis/compute_alpha/classes.rb', line 23236

def status
  @status
end

#zoneString

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

Returns:

  • (String)


23241
23242
23243
# File 'lib/google/apis/compute_alpha/classes.rb', line 23241

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
# File 'lib/google/apis/compute_alpha/classes.rb', line 23248

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