Class: Google::Apis::WorkstationsV1beta::GceInstanceHost

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

Overview

The Compute Engine instance host.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GceInstanceHost

Returns a new instance of GceInstanceHost.



818
819
820
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 818

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

Instance Attribute Details

#idString

Optional. Output only. The ID of the Compute Engine instance. Corresponds to the JSON property id

Returns:

  • (String)


806
807
808
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 806

def id
  @id
end

#nameString

Optional. Output only. The name of the Compute Engine instance. Corresponds to the JSON property name

Returns:

  • (String)


811
812
813
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 811

def name
  @name
end

#zoneString

Optional. Output only. The zone of the Compute Engine instance. Corresponds to the JSON property zone

Returns:

  • (String)


816
817
818
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 816

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



823
824
825
826
827
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 823

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @zone = args[:zone] if args.key?(:zone)
end