Class: Google::Apis::WorkloadmanagerV1::CloudResource
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::CloudResource
- 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
-
#kind ⇒ String
Output only.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudResource
constructor
A new instance of CloudResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#kind ⇒ String
Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.
Corresponds to the JSON property kind
182 183 184 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 182 def kind @kind end |
#name ⇒ String
Output only. resource name
Corresponds to the JSON property name
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 |