Module: SfCli::Sf::Data::DeleteResume
- Included in:
- Core
- Defined in:
- lib/sf_cli/sf/data/delete_resume.rb
Instance Method Summary collapse
-
#delete_resume(job_id:, wait: nil, target_org: nil, api_version: nil) ⇒ JobInfo, BulkResultV2
Resume a bulk delete job you previously started with Bulk API 2.0 and return a bulk result object.
Instance Method Details
#delete_resume(job_id:, wait: nil, target_org: nil, api_version: nil) ⇒ JobInfo, BulkResultV2
Resume a bulk delete job you previously started with Bulk API 2.0 and return a bulk result object.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/sf_cli/sf/data/delete_resume.rb', line 28 def delete_resume(job_id:, wait: nil, target_org: nil, api_version: nil) flags = { :"job-id" => job_id, :"wait" => wait, :"target-org" => target_org, :"api-version" => api_version, } action = __method__.to_s.tr('_', ' ') json = exec(action, flags: flags, redirection: :null_stderr) job_info = ::SfCli::Sf::Data::JobInfo.new(**json['result']['jobInfo']) return job_info unless json['result']['records'] ::SfCli::Sf::Data::BulkResultV2.new( job_info: job_info, records: ::SfCli::Sf::Data::BulkRecordsV2.new(**json['result']['records']) ) end |