module
artifact.py
class
ArtifactPath
ArtifactPath(src, dest)
class
ArtifactVersion
property
artifact_fqnGet fqn of the artifact
property
created_atGet the time at which artifact was created
property
created_byGet the information about who created the artifact
property
descriptionGet description of the artifact
property
fqnGet fqn of the current artifact version
property
metadataGet metadata for the current artifact
property
nameGet the name of the artifact
property
stepGet the step in which artifact was created
property
updated_atGet the information about the when the artifact was updated
property
versionGet version information of the artifact
function
delete
Deletes the current instance of the ArtifactVersion hence deleting the current version.
Returns:
True if artifact was deleted successfully
Examples:
function
download
Download an artifact file or directory to a local directory if applicable, and return a local path for it.
Args:
path
(str): Absolute path of the local filesystem destination directory to which to download the specified artifacts. This directory must already exist. If unspecified, the artifacts will either be downloaded to a new uniquely-named directory on the local filesystem or will be returned directly in the case of the Local ArtifactRepository.overwrite
(bool): If True it will overwrite the file if it is already present in the download directory else it will throw an errorReturns:
path
: Absolute path of the local filesystem location containing the desired artifacts.Examples:
classmethod
from_fqn
Get the version of an Artifact to download contents or load them in memory
Args:
fqn
(str): Fully qualified name of the artifact version.Returns:
ArtifactVersion
: An ArtifactVersion instance of the artifactExamples:
function
raw_download
Download an artifact file or directory to a local directory if applicable, and return a local path for it.
Args:
path
(str): Absolute path of the local filesystem destination directory to which to download the specified artifacts. This directory must already exist. If unspecified, the artifacts will either be downloaded to a new uniquely-named directory on the local filesystem.overwrite
(bool): If True it will overwrite the file if it is already present in the download directory else it will throw an errorReturns:
path
: Absolute path of the local filesystem location containing the desired artifacts.Examples:
function
update
Updates the current instance of the ArtifactVersion hence updating the current version.
Examples:
class
ArtifactVersionDownloadInfo
class
ArtifactVersionInternalMetadata
module
artifact.py
class
ArtifactPath
ArtifactPath(src, dest)
class
ArtifactVersion
property
artifact_fqnGet fqn of the artifact
property
created_atGet the time at which artifact was created
property
created_byGet the information about who created the artifact
property
descriptionGet description of the artifact
property
fqnGet fqn of the current artifact version
property
metadataGet metadata for the current artifact
property
nameGet the name of the artifact
property
stepGet the step in which artifact was created
property
updated_atGet the information about the when the artifact was updated
property
versionGet version information of the artifact
function
delete
Deletes the current instance of the ArtifactVersion hence deleting the current version.
Returns:
True if artifact was deleted successfully
Examples:
function
download
Download an artifact file or directory to a local directory if applicable, and return a local path for it.
Args:
path
(str): Absolute path of the local filesystem destination directory to which to download the specified artifacts. This directory must already exist. If unspecified, the artifacts will either be downloaded to a new uniquely-named directory on the local filesystem or will be returned directly in the case of the Local ArtifactRepository.overwrite
(bool): If True it will overwrite the file if it is already present in the download directory else it will throw an errorReturns:
path
: Absolute path of the local filesystem location containing the desired artifacts.Examples:
classmethod
from_fqn
Get the version of an Artifact to download contents or load them in memory
Args:
fqn
(str): Fully qualified name of the artifact version.Returns:
ArtifactVersion
: An ArtifactVersion instance of the artifactExamples:
function
raw_download
Download an artifact file or directory to a local directory if applicable, and return a local path for it.
Args:
path
(str): Absolute path of the local filesystem destination directory to which to download the specified artifacts. This directory must already exist. If unspecified, the artifacts will either be downloaded to a new uniquely-named directory on the local filesystem.overwrite
(bool): If True it will overwrite the file if it is already present in the download directory else it will throw an errorReturns:
path
: Absolute path of the local filesystem location containing the desired artifacts.Examples:
function
update
Updates the current instance of the ArtifactVersion hence updating the current version.
Examples:
class
ArtifactVersionDownloadInfo
class
ArtifactVersionInternalMetadata