示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgoArtifact" /> class.
 /// </summary>
 /// <param name="archive">Archive controls how the artifact will be saved to the artifact repository..</param>
 /// <param name="archiveLogs">ArchiveLogs indicates if the container logs should be archived.</param>
 /// <param name="artifactory">Artifactory contains artifactory artifact location details.</param>
 /// <param name="from">From allows an artifact to reference an artifact from a previous step.</param>
 /// <param name="git">Git contains git artifact location details.</param>
 /// <param name="globalName">GlobalName exports an output artifact to the global scope, making it available as &#39;{{workflow.outputs.artifacts.XXXX}} and in workflow.status.outputs.artifacts.</param>
 /// <param name="hdfs">HDFS contains HDFS artifact location details.</param>
 /// <param name="http">HTTP contains HTTP artifact location details.</param>
 /// <param name="mode">mode bits to use on this file, must be a value between 0 and 0777 set when loading input artifacts..</param>
 /// <param name="name">name of the artifact. must be unique within a template&#39;s inputs/outputs. (required).</param>
 /// <param name="optional">Make Artifacts optional, if Artifacts doesn&#39;t generate or exist.</param>
 /// <param name="path">Path is the container path to the artifact.</param>
 /// <param name="raw">Raw contains raw artifact location details.</param>
 /// <param name="s3">S3 contains S3 artifact location details.</param>
 public ArgoArtifact(ArgoArchiveStrategy archive = default(ArgoArchiveStrategy), bool?archiveLogs = default(bool?), ArgoArtifactoryArtifact artifactory = default(ArgoArtifactoryArtifact), string from = default(string), ArgoGitArtifact git = default(ArgoGitArtifact), string globalName = default(string), ArgoHDFSArtifact hdfs = default(ArgoHDFSArtifact), ArgoHTTPArtifact http = default(ArgoHTTPArtifact), int?mode = default(int?), string name = default(string), bool?optional = default(bool?), string path = default(string), ArgoRawArtifact raw = default(ArgoRawArtifact), ArgoS3Artifact s3 = default(ArgoS3Artifact))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for ArgoArtifact and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     this.Archive     = archive;
     this.ArchiveLogs = archiveLogs;
     this.Artifactory = artifactory;
     this.From        = from;
     this.Git         = git;
     this.GlobalName  = globalName;
     this.Hdfs        = hdfs;
     this.Http        = http;
     this.Mode        = mode;
     this.Optional    = optional;
     this.Path        = path;
     this.Raw         = raw;
     this.S3          = s3;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgoArtifactLocation" /> class.
 /// </summary>
 /// <param name="archiveLogs">ArchiveLogs indicates if the container logs should be archived.</param>
 /// <param name="artifactory">Artifactory contains artifactory artifact location details.</param>
 /// <param name="git">Git contains git artifact location details.</param>
 /// <param name="hdfs">HDFS contains HDFS artifact location details.</param>
 /// <param name="http">HTTP contains HTTP artifact location details.</param>
 /// <param name="raw">Raw contains raw artifact location details.</param>
 /// <param name="s3">S3 contains S3 artifact location details.</param>
 public ArgoArtifactLocation(bool?archiveLogs = default(bool?), ArgoArtifactoryArtifact artifactory = default(ArgoArtifactoryArtifact), ArgoGitArtifact git = default(ArgoGitArtifact), ArgoHDFSArtifact hdfs = default(ArgoHDFSArtifact), ArgoHTTPArtifact http = default(ArgoHTTPArtifact), ArgoRawArtifact raw = default(ArgoRawArtifact), ArgoS3Artifact s3 = default(ArgoS3Artifact))
 {
     this.ArchiveLogs = archiveLogs;
     this.Artifactory = artifactory;
     this.Git         = git;
     this.Hdfs        = hdfs;
     this.Http        = http;
     this.Raw         = raw;
     this.S3          = s3;
 }