Artifact
The hera.workflows.artifact module provides the base Artifact class, along with the various types of artifacts as subclasses.
Artifact
Base artifact representation.
Source code in src/hera/workflows/artifact.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | |
archive
archive: Optional[
Union[ArchiveStrategy, ArchiveStrategy]
] = None
artifact archiving configuration
dumpb
used to specify a dumper function to serialise the Artifact value as bytes for Annotated Artifact function parameters
dumps
used to specify a dumper function to serialise the Artifact value as a string for Annotated Artifact function parameters
from_expression
an expression that dictates where to obtain the artifact from
loadb
used to specify a loader function to deserialise from bytes for Annotated Artifact function parameters
loader
loader: Optional[ArtifactLoader] = None
used for input Artifact annotations for determining how to load the data.
Note: A loader value of ‘None’ must be used with an underlying type of ‘str’ or Path-like class.
loads
used to specify a loader function to deserialise a string representation of an object for Annotated Artifact function parameters
mode
mode bits to use on the artifact, must be a value between 0 and 0777 set when loading input artifacts.
optional
whether the Artifact is optional. For an input Artifact, this means it may possibly not exist at the specified path during the template’s runtime. For an output Artifact, it may possibly not be generated during the step/task and available as an output to subsequent steps/tasks.
recurse_mode
recursion mode when applying the permissions of the artifact if it is an artifact folder
sub_path
allows the specification of an artifact from a subpath within the main source.
with_name
Returns a copy of the current artifact, renamed using the specified name.
ArtifactLoader
Enum for artifact loader options.
Source code in src/hera/workflows/artifact.py
ArtifactoryArtifact
An artifact sourced from Artifactory.
Source code in src/hera/workflows/artifact.py
archive
archive: Optional[
Union[ArchiveStrategy, ArchiveStrategy]
] = None
artifact archiving configuration
dumpb
used to specify a dumper function to serialise the Artifact value as bytes for Annotated Artifact function parameters
dumps
used to specify a dumper function to serialise the Artifact value as a string for Annotated Artifact function parameters
from_expression
an expression that dictates where to obtain the artifact from
loadb
used to specify a loader function to deserialise from bytes for Annotated Artifact function parameters
loader
loader: Optional[ArtifactLoader] = None
used for input Artifact annotations for determining how to load the data.
Note: A loader value of ‘None’ must be used with an underlying type of ‘str’ or Path-like class.
loads
used to specify a loader function to deserialise a string representation of an object for Annotated Artifact function parameters
mode
mode bits to use on the artifact, must be a value between 0 and 0777 set when loading input artifacts.
optional
whether the Artifact is optional. For an input Artifact, this means it may possibly not exist at the specified path during the template’s runtime. For an output Artifact, it may possibly not be generated during the step/task and available as an output to subsequent steps/tasks.
recurse_mode
recursion mode when applying the permissions of the artifact if it is an artifact folder
sub_path
allows the specification of an artifact from a subpath within the main source.
with_name
Returns a copy of the current artifact, renamed using the specified name.
AzureArtifact
An artifact sourced from Microsoft Azure.
Source code in src/hera/workflows/artifact.py
archive
archive: Optional[
Union[ArchiveStrategy, ArchiveStrategy]
] = None
artifact archiving configuration
dumpb
used to specify a dumper function to serialise the Artifact value as bytes for Annotated Artifact function parameters
dumps
used to specify a dumper function to serialise the Artifact value as a string for Annotated Artifact function parameters
from_expression
an expression that dictates where to obtain the artifact from
loadb
used to specify a loader function to deserialise from bytes for Annotated Artifact function parameters
loader
loader: Optional[ArtifactLoader] = None
used for input Artifact annotations for determining how to load the data.
Note: A loader value of ‘None’ must be used with an underlying type of ‘str’ or Path-like class.
loads
used to specify a loader function to deserialise a string representation of an object for Annotated Artifact function parameters
mode
mode bits to use on the artifact, must be a value between 0 and 0777 set when loading input artifacts.
optional
whether the Artifact is optional. For an input Artifact, this means it may possibly not exist at the specified path during the template’s runtime. For an output Artifact, it may possibly not be generated during the step/task and available as an output to subsequent steps/tasks.
recurse_mode
recursion mode when applying the permissions of the artifact if it is an artifact folder
sub_path
allows the specification of an artifact from a subpath within the main source.
with_name
Returns a copy of the current artifact, renamed using the specified name.
GCSArtifact
An artifact sourced from Google Cloud Storage.
Source code in src/hera/workflows/artifact.py
archive
archive: Optional[
Union[ArchiveStrategy, ArchiveStrategy]
] = None
artifact archiving configuration
dumpb
used to specify a dumper function to serialise the Artifact value as bytes for Annotated Artifact function parameters
dumps
used to specify a dumper function to serialise the Artifact value as a string for Annotated Artifact function parameters
from_expression
an expression that dictates where to obtain the artifact from
loadb
used to specify a loader function to deserialise from bytes for Annotated Artifact function parameters
loader
loader: Optional[ArtifactLoader] = None
used for input Artifact annotations for determining how to load the data.
Note: A loader value of ‘None’ must be used with an underlying type of ‘str’ or Path-like class.
loads
used to specify a loader function to deserialise a string representation of an object for Annotated Artifact function parameters
mode
mode bits to use on the artifact, must be a value between 0 and 0777 set when loading input artifacts.
optional
whether the Artifact is optional. For an input Artifact, this means it may possibly not exist at the specified path during the template’s runtime. For an output Artifact, it may possibly not be generated during the step/task and available as an output to subsequent steps/tasks.
recurse_mode
recursion mode when applying the permissions of the artifact if it is an artifact folder
sub_path
allows the specification of an artifact from a subpath within the main source.
with_name
Returns a copy of the current artifact, renamed using the specified name.
GitArtifact
An artifact sourced from GitHub.
Source code in src/hera/workflows/artifact.py
archive
archive: Optional[
Union[ArchiveStrategy, ArchiveStrategy]
] = None
artifact archiving configuration
dumpb
used to specify a dumper function to serialise the Artifact value as bytes for Annotated Artifact function parameters
dumps
used to specify a dumper function to serialise the Artifact value as a string for Annotated Artifact function parameters
from_expression
an expression that dictates where to obtain the artifact from
loadb
used to specify a loader function to deserialise from bytes for Annotated Artifact function parameters
loader
loader: Optional[ArtifactLoader] = None
used for input Artifact annotations for determining how to load the data.
Note: A loader value of ‘None’ must be used with an underlying type of ‘str’ or Path-like class.
loads
used to specify a loader function to deserialise a string representation of an object for Annotated Artifact function parameters
mode
mode bits to use on the artifact, must be a value between 0 and 0777 set when loading input artifacts.
optional
whether the Artifact is optional. For an input Artifact, this means it may possibly not exist at the specified path during the template’s runtime. For an output Artifact, it may possibly not be generated during the step/task and available as an output to subsequent steps/tasks.
recurse_mode
recursion mode when applying the permissions of the artifact if it is an artifact folder
sub_path
allows the specification of an artifact from a subpath within the main source.
with_name
Returns a copy of the current artifact, renamed using the specified name.
HDFSArtifact
A Hadoop File System artifact.
Note that we redefine the HDFS path to hdfs_path to differentiate between the
parent Artifact class path and the child class path.
Source code in src/hera/workflows/artifact.py
archive
archive: Optional[
Union[ArchiveStrategy, ArchiveStrategy]
] = None
artifact archiving configuration
dumpb
used to specify a dumper function to serialise the Artifact value as bytes for Annotated Artifact function parameters
dumps
used to specify a dumper function to serialise the Artifact value as a string for Annotated Artifact function parameters
from_expression
an expression that dictates where to obtain the artifact from
loadb
used to specify a loader function to deserialise from bytes for Annotated Artifact function parameters
loader
loader: Optional[ArtifactLoader] = None
used for input Artifact annotations for determining how to load the data.
Note: A loader value of ‘None’ must be used with an underlying type of ‘str’ or Path-like class.
loads
used to specify a loader function to deserialise a string representation of an object for Annotated Artifact function parameters
mode
mode bits to use on the artifact, must be a value between 0 and 0777 set when loading input artifacts.
optional
whether the Artifact is optional. For an input Artifact, this means it may possibly not exist at the specified path during the template’s runtime. For an output Artifact, it may possibly not be generated during the step/task and available as an output to subsequent steps/tasks.
recurse_mode
recursion mode when applying the permissions of the artifact if it is an artifact folder
sub_path
allows the specification of an artifact from a subpath within the main source.
with_name
Returns a copy of the current artifact, renamed using the specified name.
HTTPArtifact
An artifact sourced from an HTTP URL.
Source code in src/hera/workflows/artifact.py
archive
archive: Optional[
Union[ArchiveStrategy, ArchiveStrategy]
] = None
artifact archiving configuration
dumpb
used to specify a dumper function to serialise the Artifact value as bytes for Annotated Artifact function parameters
dumps
used to specify a dumper function to serialise the Artifact value as a string for Annotated Artifact function parameters
from_expression
an expression that dictates where to obtain the artifact from
loadb
used to specify a loader function to deserialise from bytes for Annotated Artifact function parameters
loader
loader: Optional[ArtifactLoader] = None
used for input Artifact annotations for determining how to load the data.
Note: A loader value of ‘None’ must be used with an underlying type of ‘str’ or Path-like class.
loads
used to specify a loader function to deserialise a string representation of an object for Annotated Artifact function parameters
mode
mode bits to use on the artifact, must be a value between 0 and 0777 set when loading input artifacts.
optional
whether the Artifact is optional. For an input Artifact, this means it may possibly not exist at the specified path during the template’s runtime. For an output Artifact, it may possibly not be generated during the step/task and available as an output to subsequent steps/tasks.
recurse_mode
recursion mode when applying the permissions of the artifact if it is an artifact folder
sub_path
allows the specification of an artifact from a subpath within the main source.
with_name
Returns a copy of the current artifact, renamed using the specified name.
OSSArtifact
An artifact sourced from OSS.
Source code in src/hera/workflows/artifact.py
archive
archive: Optional[
Union[ArchiveStrategy, ArchiveStrategy]
] = None
artifact archiving configuration
dumpb
used to specify a dumper function to serialise the Artifact value as bytes for Annotated Artifact function parameters
dumps
used to specify a dumper function to serialise the Artifact value as a string for Annotated Artifact function parameters
from_expression
an expression that dictates where to obtain the artifact from
loadb
used to specify a loader function to deserialise from bytes for Annotated Artifact function parameters
loader
loader: Optional[ArtifactLoader] = None
used for input Artifact annotations for determining how to load the data.
Note: A loader value of ‘None’ must be used with an underlying type of ‘str’ or Path-like class.
loads
used to specify a loader function to deserialise a string representation of an object for Annotated Artifact function parameters
mode
mode bits to use on the artifact, must be a value between 0 and 0777 set when loading input artifacts.
optional
whether the Artifact is optional. For an input Artifact, this means it may possibly not exist at the specified path during the template’s runtime. For an output Artifact, it may possibly not be generated during the step/task and available as an output to subsequent steps/tasks.
recurse_mode
recursion mode when applying the permissions of the artifact if it is an artifact folder
sub_path
allows the specification of an artifact from a subpath within the main source.
with_name
Returns a copy of the current artifact, renamed using the specified name.
RawArtifact
A raw bytes artifact representation.
Source code in src/hera/workflows/artifact.py
archive
archive: Optional[
Union[ArchiveStrategy, ArchiveStrategy]
] = None
artifact archiving configuration
dumpb
used to specify a dumper function to serialise the Artifact value as bytes for Annotated Artifact function parameters
dumps
used to specify a dumper function to serialise the Artifact value as a string for Annotated Artifact function parameters
from_expression
an expression that dictates where to obtain the artifact from
loadb
used to specify a loader function to deserialise from bytes for Annotated Artifact function parameters
loader
loader: Optional[ArtifactLoader] = None
used for input Artifact annotations for determining how to load the data.
Note: A loader value of ‘None’ must be used with an underlying type of ‘str’ or Path-like class.
loads
used to specify a loader function to deserialise a string representation of an object for Annotated Artifact function parameters
mode
mode bits to use on the artifact, must be a value between 0 and 0777 set when loading input artifacts.
optional
whether the Artifact is optional. For an input Artifact, this means it may possibly not exist at the specified path during the template’s runtime. For an output Artifact, it may possibly not be generated during the step/task and available as an output to subsequent steps/tasks.
recurse_mode
recursion mode when applying the permissions of the artifact if it is an artifact folder
sub_path
allows the specification of an artifact from a subpath within the main source.
with_name
Returns a copy of the current artifact, renamed using the specified name.
S3Artifact
An artifact sourced from AWS S3.
Source code in src/hera/workflows/artifact.py
archive
archive: Optional[
Union[ArchiveStrategy, ArchiveStrategy]
] = None
artifact archiving configuration
dumpb
used to specify a dumper function to serialise the Artifact value as bytes for Annotated Artifact function parameters
dumps
used to specify a dumper function to serialise the Artifact value as a string for Annotated Artifact function parameters
from_expression
an expression that dictates where to obtain the artifact from
loadb
used to specify a loader function to deserialise from bytes for Annotated Artifact function parameters
loader
loader: Optional[ArtifactLoader] = None
used for input Artifact annotations for determining how to load the data.
Note: A loader value of ‘None’ must be used with an underlying type of ‘str’ or Path-like class.
loads
used to specify a loader function to deserialise a string representation of an object for Annotated Artifact function parameters
mode
mode bits to use on the artifact, must be a value between 0 and 0777 set when loading input artifacts.
optional
whether the Artifact is optional. For an input Artifact, this means it may possibly not exist at the specified path during the template’s runtime. For an output Artifact, it may possibly not be generated during the step/task and available as an output to subsequent steps/tasks.
recurse_mode
recursion mode when applying the permissions of the artifact if it is an artifact folder
sub_path
allows the specification of an artifact from a subpath within the main source.
with_name
Returns a copy of the current artifact, renamed using the specified name.