Class: Google::Apis::DataprocV1::TaskResourceRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskResourceRequest

Returns a new instance of TaskResourceRequest.



11225
11226
11227
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11225

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

Instance Attribute Details

#amountFloat

Corresponds to the JSON property amount

Returns:

  • (Float)


11218
11219
11220
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11218

def amount
  @amount
end

#resource_nameString

Corresponds to the JSON property resourceName

Returns:

  • (String)


11223
11224
11225
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11223

def resource_name
  @resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11230
11231
11232
11233
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11230

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