Class: Google::Apis::DataprocV1::NodeInitializationAction
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::NodeInitializationAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/representations.rb
Overview
Specifies an executable to run on a fully configured node and a timeout period for executable completion.
Instance Attribute Summary collapse
-
#executable_file ⇒ String
Required Google Cloud Storage URI of executable file.
-
#execution_timeout ⇒ String
Optional Amount of time executable has to complete.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeInitializationAction
constructor
A new instance of NodeInitializationAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NodeInitializationAction
Returns a new instance of NodeInitializationAction
279 280 281 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 279 def initialize(**args) update!(**args) end |
Instance Attribute Details
#executable_file ⇒ String
Required Google Cloud Storage URI of executable file.
Corresponds to the JSON property executableFile
277 278 279 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 277 def executable_file @executable_file end |
#execution_timeout ⇒ String
Optional Amount of time executable has to complete. Default is 10 minutes.
Cluster creation fails with an explanatory error message (the name of the
executable that caused the error and the exceeded timeout period) if the
executable is not completed at end of the timeout period.
Corresponds to the JSON property executionTimeout
272 273 274 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 272 def execution_timeout @execution_timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
284 285 286 287 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 284 def update!(**args) @execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout) @executable_file = args[:executable_file] if args.key?(:executable_file) end |