R6 Class representing a resource for managing asynchronous jobs.
Super class
sevenbridges2::Item
-> AsyncJob
Public fields
id
Asynchronous job ID.
type
The type of job. Can be one of: COPY, DELETE, MOVE.
state
The following states are available: SUBMITTED, RESOLVING, RUNNING and FINISHED.
result
The result of the job.
total_files
The total number of files that were processed for the job.
completed_files
The number of files that were successfully completed.
failed_files
The number of files that failed.
started_on
The time and date the job started.
finished_on
The time and date the job finished.
Methods
Method print()
Print method for AsyncJob class.
Method reload()
Reloads AsyncJob object information.
Arguments
...
Other arguments that can be passed to core
api()
function like 'fields', etc.
Examples
## ------------------------------------------------
## Method `AsyncJob$print`
## ------------------------------------------------
if (FALSE) { # \dontrun{
# x is API response when app is requested
asyncjob_object <- AsyncJob$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
asyncjob_object$print()
} # }
## ------------------------------------------------
## Method `AsyncJob$reload`
## ------------------------------------------------
if (FALSE) { # \dontrun{
# x is API response when AsyncJob is requested
asyncjob_object <- AsyncJob$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
asyncjob_object$reload()
} # }