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.



2015
2016
2017
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2015

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)


2008
2009
2010
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2008

def memory_mb
  @memory_mb
end

#vcoresFixnum

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

Returns:

  • (Fixnum)


2013
2014
2015
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2013

def vcores
  @vcores
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2020
2021
2022
2023
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2020

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