R6 Class representing a resource for managing asynchronous jobs.
Super class
sevenbridges2::Item -> AsyncJob
Public fields
idAsynchronous job ID.
typeThe type of job. Can be one of: COPY, DELETE, MOVE.
stateThe following states are available: SUBMITTED, RESOLVING, RUNNING and FINISHED.
resultThe result of the job.
total_filesThe total number of files that were processed for the job.
completed_filesThe number of files that were successfully completed.
failed_filesThe number of files that failed.
started_onThe time and date the job started.
finished_onThe 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()
} # }