Class: Google::Apis::WorkloadmanagerV1::CloudResource

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

The resource on GCP

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudResource

Returns a new instance of CloudResource.



698
699
700
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 698

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

Instance Attribute Details

#instance_propertiesGoogle::Apis::WorkloadmanagerV1::InstanceProperties

Instance Properties. Corresponds to the JSON property instanceProperties



685
686
687
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 685

def instance_properties
  @instance_properties
end

#kindString

Output only. Corresponds to the JSON property kind

Returns:

  • (String)


690
691
692
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 690

def kind
  @kind
end

#nameString

Output only. resource name Example: compute.googleapis.com/projects/wlm-obs- dev/zones/us-central1-a/instances/sap-pri Corresponds to the JSON property name

Returns:

  • (String)


696
697
698
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 696

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



703
704
705
706
707
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 703

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