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.



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

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

Instance Attribute Details

#instance_propertiesGoogle::Apis::WorkloadmanagerV1::InstanceProperties

Instance Properties. Corresponds to the JSON property instanceProperties



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

def instance_properties
  @instance_properties
end

#kindString

Output only. Corresponds to the JSON property kind

Returns:

  • (String)


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

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)


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

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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