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 Corresponds to the JSON property
name. -
#service_account ⇒ String
the service account accosiate with resource Corresponds to the JSON property
serviceAccount. -
#type ⇒ String
the type of reresource Corresponds to the JSON property
type.
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.
720 721 722 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 720 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
the name of the resource
Corresponds to the JSON property name
708 709 710 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 708 def name @name end |
#service_account ⇒ String
the service account accosiate with resource
Corresponds to the JSON property serviceAccount
713 714 715 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 713 def service_account @service_account end |
#type ⇒ String
the type of reresource
Corresponds to the JSON property type
718 719 720 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 718 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
725 726 727 728 729 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 725 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 |