Class: Databricks::Resources::Job
- Inherits:
-
Databricks::Resource
- Object
- Databricks::Resource
- Databricks::Resources::Job
- Defined in:
- lib/databricks/resources/job.rb
Instance Attribute Summary
Attributes inherited from Databricks::Resource
Instance Method Summary collapse
-
#delete ⇒ Object
Delete this job.
-
#reset(**properties) ⇒ Object
Reset properties of this job.
Methods inherited from Databricks::Resource
#add_properties, #initialize, #inspect, #new_resource, #sub_resource, sub_resources
Constructor Details
This class inherits a constructor from Databricks::Resource
Instance Method Details
#delete ⇒ Object
Delete this job
24 25 26 |
# File 'lib/databricks/resources/job.rb', line 24 def delete post_json('jobs/delete', { job_id: job_id }) end |
#reset(**properties) ⇒ Object
Reset properties of this job.
- Parameters
-
properties (Hash<Symbol,Object>): New job’s properties
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/databricks/resources/job.rb', line 11 def reset(**properties) # Make sure we don't change its ID post_json( 'jobs/reset', { job_id: job_id, new_settings: properties } ) add_properties(properties.merge(job_id: job_id), replace: true) end |