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.
1208 1209 1210 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1208 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
1201 1202 1203 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1201 def memory_mb @memory_mb end |
#vcores ⇒ Fixnum
Required. The number of vCPUs the driver is requesting.
Corresponds to the JSON property vcores
1206 1207 1208 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1206 def vcores @vcores end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1213 1214 1215 1216 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1213 def update!(**args) @memory_mb = args[:memory_mb] if args.key?(:memory_mb) @vcores = args[:vcores] if args.key?(:vcores) end |