Class: Google::Apis::WorkloadmanagerV1::Instance

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameString

Output only. name of the VM Corresponds to the JSON property name

Returns:

  • (String)


580
581
582
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 580

def name
  @name
end

#regionString

Output only. The location of the VM Corresponds to the JSON property region

Returns:

  • (String)


585
586
587
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 585

def region
  @region
end

#statusString

Output only. The state of the VM Corresponds to the JSON property status

Returns:

  • (String)


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