Class: Google::Apis::DataprocV1::TaskResourceRequest
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::TaskResourceRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb
Overview
Resources used per task created by the application.
Instance Attribute Summary collapse
-
#amount ⇒ Float
Corresponds to the JSON property
amount. -
#resource_name ⇒ String
Corresponds to the JSON property
resourceName.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TaskResourceRequest
constructor
A new instance of TaskResourceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TaskResourceRequest
Returns a new instance of TaskResourceRequest.
10924 10925 10926 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10924 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Float
Corresponds to the JSON property amount
10917 10918 10919 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10917 def amount @amount end |
#resource_name ⇒ String
Corresponds to the JSON property resourceName
10922 10923 10924 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10922 def resource_name @resource_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10929 10930 10931 10932 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10929 def update!(**args) @amount = args[:amount] if args.key?(:amount) @resource_name = args[:resource_name] if args.key?(:resource_name) end |