| ArtifactAsset {cometr} | R Documentation |
An Artifact Asset object
Description
The ArtifactAsset represent local or remote asset added to an
Artifact object but not yet uploaded
Methods
Public methods
Method new()
Creates a new ArtifactAsset object with provided parameters.
Usage
ArtifactAsset$new( logical_path, overwrite = FALSE, remote = FALSE, size = 0, link = NULL, local_path = NULL, metadata = NULL, asset_type = NULL )
Arguments
logical_paththe logical file name.
overwriteIf
TRUEwill overwrite all existing assets with the same name.remoteIs the asset a remote asset or not.
sizeThe size if the asset of a non-remote asset.
linkThe remote link if the asset is remote.
local_pathThe local file path if the asset is non-remote.
metadataThe metadata to be associated with the asset.
asset_typeThe type of asset.
Method get_local_path()
Asset local path if the asset is non-remote
Usage
ArtifactAsset$get_local_path()
Method get_logical_path()
Asset logical file name
Usage
ArtifactAsset$get_logical_path()
Method is_remote()
Is the asset a remote asset or not
Usage
ArtifactAsset$is_remote()
Method has_overwrite()
Is the asset will overwrite existing asset with the same name.
Usage
ArtifactAsset$has_overwrite()
Method get_size()
Asset size if the asset is a non-remote asset
Usage
ArtifactAsset$get_size()
Method get_link()
Asset remote link if the asset is remote or NULL
Usage
ArtifactAsset$get_link()
Method get_metadata()
Asset metadata
Usage
ArtifactAsset$get_metadata()
Method get_asset_type()
Asset type
Usage
ArtifactAsset$get_asset_type()