Class: Google::Apis::WorkloadmanagerV1::Resource
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::Resource
- 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
Message represent resource in execution result
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the resource.
-
#service_account ⇒ String
The service account associated with the resource.
-
#type ⇒ String
The type of resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Resource
constructor
A new instance of Resource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Resource
Returns a new instance of Resource.
1199 1200 1201 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1199 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the resource.
Corresponds to the JSON property name
1187 1188 1189 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1187 def name @name end |
#service_account ⇒ String
The service account associated with the resource.
Corresponds to the JSON property serviceAccount
1192 1193 1194 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1192 def service_account @service_account end |
#type ⇒ String
The type of resource.
Corresponds to the JSON property type
1197 1198 1199 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1197 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1204 1205 1206 1207 1208 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1204 def update!(**args) @name = args[:name] if args.key?(:name) @service_account = args[:service_account] if args.key?(:service_account) @type = args[:type] if args.key?(:type) end |