Class: Google::Apis::WorkstationsV1beta::GceInstanceHost
- Inherits:
-
Object
- Object
- Google::Apis::WorkstationsV1beta::GceInstanceHost
- 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
-
#id ⇒ String
Optional.
-
#name ⇒ String
Optional.
-
#zone ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GceInstanceHost
constructor
A new instance of GceInstanceHost.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GceInstanceHost
Returns a new instance of GceInstanceHost.
706 707 708 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 706 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Optional. Output only. The ID of the Compute Engine instance.
Corresponds to the JSON property id
694 695 696 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 694 def id @id end |
#name ⇒ String
Optional. Output only. The name of the Compute Engine instance.
Corresponds to the JSON property name
699 700 701 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 699 def name @name end |
#zone ⇒ String
Optional. Output only. The zone of the Compute Engine instance.
Corresponds to the JSON property zone
704 705 706 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 704 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
711 712 713 714 715 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 711 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 |