| Export {sevenbridges2} | R Documentation |
R6 Class representing an Export
Description
R6 Class representing a resource for managing volume export jobs.
Super class
sevenbridges2::Item -> Export
Public fields
URLList of URL endpoints for this resource.
idExport job string identifier.
stateThe state of the export job. Possible values are:
-
PENDING: the export is queued; -
RUNNING: the export is running; -
COMPLETED: the export has completed successfully; -
FAILED: the export has failed.
-
sourceList containing source file id that is being exported to the volume.
destinationList containing destination volume id and location (file name) on the volume where the file is being exported.
overwriteWhether the exported file name was overwritten or not, if another one with the same name had already existed on the volume.
started_onTime when the export job started.
finished_onTime when the export job ended.
propertiesList of volume properties set.
errorIn case of error in the export job, standard API error is returned here.
resultFile object that was exported.
Methods
Public methods
Method new()
Create a new Export object.
Usage
Export$new(res = NA, ...)
Arguments
resResponse containing Export job information.
...Other response arguments.
Method print()
Print method for Export class.
Usage
Export$print()
Examples
\dontrun{
# x is API response when export is requested
export_object <- Export$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Print export object
export_object$print()
}
Method reload()
Reload Export object information.
Usage
Export$reload(...)
Arguments
...Other arguments that can be passed to core
api()function like 'fields', etc.
Returns
Export object.
Examples
\dontrun{
# x is API response when export is requested
export_object <- Export$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Reload export object
export_object$reload()
}
Method clone()
The objects of this class are cloneable with this method.
Usage
Export$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
## ------------------------------------------------
## Method `Export$print`
## ------------------------------------------------
## Not run:
# x is API response when export is requested
export_object <- Export$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Print export object
export_object$print()
## End(Not run)
## ------------------------------------------------
## Method `Export$reload`
## ------------------------------------------------
## Not run:
# x is API response when export is requested
export_object <- Export$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Reload export object
export_object$reload()
## End(Not run)