Class: Google::Apis::WorkloadmanagerV1::Instance
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::Instance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
a vm instance
Instance Attribute Summary collapse
-
#name ⇒ String
Output only.
-
#region ⇒ String
Output only.
-
#status ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Instance
constructor
A new instance of Instance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Instance
Returns a new instance of Instance.
592 593 594 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 592 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. name of the VM
Corresponds to the JSON property name
580 581 582 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 580 def name @name end |
#region ⇒ String
Output only. The location of the VM
Corresponds to the JSON property region
585 586 587 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 585 def region @region end |
#status ⇒ String
Output only. The state of the VM
Corresponds to the JSON property status
590 591 592 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 590 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
597 598 599 600 601 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 597 def update!(**args) @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @status = args[:status] if args.key?(:status) end |