AsyncJob | R Documentation |
R6 Class representing a resource for managing asynchronous jobs.
sevenbridges2::Item
-> AsyncJob
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.
new()
Create a new AsyncJob object.
AsyncJob$new(res = NA, ...)
res
Response 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)
deep
Whether 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.