Class: Google::Apis::DataprocV1::DriverSchedulingConfig

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

Driver scheduling configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DriverSchedulingConfig

Returns a new instance of DriverSchedulingConfig.



2182
2183
2184
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2182

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

Instance Attribute Details

#memory_mbFixnum

Required. The amount of memory in MB the driver is requesting. Corresponds to the JSON property memoryMb

Returns:

  • (Fixnum)


2175
2176
2177
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2175

def memory_mb
  @memory_mb
end

#vcoresFixnum

Required. The number of vCPUs the driver is requesting. Corresponds to the JSON property vcores

Returns:

  • (Fixnum)


2180
2181
2182
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2180

def vcores
  @vcores
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2187
2188
2189
2190
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2187

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