Class: Google::Apis::DataprocV1::DriverSchedulingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::DriverSchedulingConfig
- 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
-
#memory_mb ⇒ Fixnum
Required.
-
#vcores ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DriverSchedulingConfig
constructor
A new instance of DriverSchedulingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_mb ⇒ Fixnum
Required. The amount of memory in MB the driver is requesting.
Corresponds to the JSON property memoryMb
2008 2009 2010 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2008 def memory_mb @memory_mb end |
#vcores ⇒ Fixnum
Required. The number of vCPUs the driver is requesting.
Corresponds to the JSON property vcores
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 |