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.



189
190
191
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 189

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

Instance Attribute Details

#kindString

Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. Corresponds to the JSON property kind

Returns:

  • (String)


182
183
184
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 182

def kind
  @kind
end

#nameString

Output only. resource name Corresponds to the JSON property name

Returns:

  • (String)


187
188
189
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 187

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



194
195
196
197
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 194

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