| Import | R Documentation |
R6 Class representing a resource for managing volume import jobs.
sevenbridges2::Item -> Import
URLList of URL endpoints for this resource.
idImport job string identifier.
stateThe state of the import job. Possible values are:
PENDING: the import is queued;
RUNNING: the import is running;
COMPLETED: the import has completed successfully;
FAILED: the import has failed.
overwriteIndicates whether the imported file or folder name was overwritten if another with the same name already existed.
autorenameIndicates whether the imported file or folder name was automatically renamed (by prefixing its name with an underscore and number) if another with the same name already existed.
preserve_folder_structureWhether the imported folder structure was preserved or not.
sourceList containing source volume id and source location of the file/folder is being imported to the platform.
destinationList containing the source volume ID and the source location of the file or folder being imported to the platform.
started_onTime when the import job started.
finished_onTime when the import job ended.
errorIn case of error in the import job, standard API error is returned here.
resultFile object that was imported.
new()Create a new Import object.
Import$new(res = NA, ...)
resResponse containing Import object information.
...Other response arguments.
print()Print method for Import class.
Import$print()
\dontrun{
# x is API response when import is requested
import_object <- Import$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Print import object
import_object$print()
}
reload()Reload Import object information.
Import$reload(...)
...Other arguments that can be passed to core api() function
like 'fields', etc.
Import object.
\dontrun{
# x is API response when import is requested
import_object <- Import$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Reload import object
import_object$reload()
}
clone()The objects of this class are cloneable with this method.
Import$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------
## Method `Import$print`
## ------------------------------------------------
## Not run:
# x is API response when import is requested
import_object <- Import$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Print import object
import_object$print()
## End(Not run)
## ------------------------------------------------
## Method `Import$reload`
## ------------------------------------------------
## Not run:
# x is API response when import is requested
import_object <- Import$new(
res = x,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Reload import object
import_object$reload()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.