| AsyncJob | R Documentation |
R6 Class representing a resource for managing asynchronous jobs.
sevenbridges2::Item -> AsyncJob
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.
new()Create a new AsyncJob object.
AsyncJob$new(res = NA, ...)
resResponse containing AsyncJob object information.
...Other response arguments.
A new AsyncJob object.
print()Print method for AsyncJob class.
AsyncJob$print()
\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()
}
reload()Reloads AsyncJob object information.
AsyncJob$reload(...)
...Other arguments that can be passed to core api() function
like 'fields', etc.
AsyncJob object.
\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()
}
clone()The objects of this class are cloneable with this method.
AsyncJob$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------
## Method `AsyncJob$print`
## ------------------------------------------------
## Not run:
# 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()
## End(Not run)
## ------------------------------------------------
## Method `AsyncJob$reload`
## ------------------------------------------------
## Not run:
# 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()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.