Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgoDAGTask" /> class.
 /// </summary>
 /// <param name="arguments">Arguments are the parameter and artifact arguments to the template.</param>
 /// <param name="continueOn">ContinueOn makes argo to proceed with the following step even if this step fails. Errors and Failed states can be specified.</param>
 /// <param name="dependencies">Dependencies are name of other targets which this depends on.</param>
 /// <param name="name">Name is the name of the target (required).</param>
 /// <param name="template">Name of template to execute (required).</param>
 /// <param name="templateRef">TemplateRef is the reference to the template resource to execute..</param>
 /// <param name="when">When is an expression in which the task should conditionally execute.</param>
 /// <param name="withItems">WithItems expands a task into multiple parallel tasks from the items in the list.</param>
 /// <param name="withParam">WithParam expands a task into multiple parallel tasks from the value in the parameter, which is expected to be a JSON list..</param>
 /// <param name="withSequence">WithSequence expands a task into a numeric sequence.</param>
 public ArgoDAGTask(ArgoArguments arguments = default(ArgoArguments), ArgoContinueOn continueOn = default(ArgoContinueOn), List <string> dependencies = default(List <string>), string name = default(string), string template = default(string), ArgoTemplateRef templateRef = default(ArgoTemplateRef), string when = default(string), List <ArgoItem> withItems = default(List <ArgoItem>), string withParam = default(string), ArgoSequence withSequence = default(ArgoSequence))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for ArgoDAGTask and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "template" is required (not null)
     if (template == null)
     {
         throw new InvalidDataException("template is a required property for ArgoDAGTask and cannot be null");
     }
     else
     {
         this.Template = template;
     }
     this.Arguments    = arguments;
     this.ContinueOn   = continueOn;
     this.Dependencies = dependencies;
     this.TemplateRef  = templateRef;
     this.When         = when;
     this.WithItems    = withItems;
     this.WithParam    = withParam;
     this.WithSequence = withSequence;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgoWorkflowStep" /> class.
 /// </summary>
 /// <param name="arguments">Arguments hold arguments to the template.</param>
 /// <param name="continueOn">ContinueOn makes argo to proceed with the following step even if this step fails. Errors and Failed states can be specified.</param>
 /// <param name="name">Name of the step.</param>
 /// <param name="template">Template is the name of the template to execute as the step.</param>
 /// <param name="templateRef">TemplateRef is the reference to the template resource to execute as the step..</param>
 /// <param name="when">When is an expression in which the step should conditionally execute.</param>
 /// <param name="withItems">WithItems expands a step into multiple parallel steps from the items in the list.</param>
 /// <param name="withParam">WithParam expands a step into multiple parallel steps from the value in the parameter, which is expected to be a JSON list..</param>
 /// <param name="withSequence">WithSequence expands a step into a numeric sequence.</param>
 public ArgoWorkflowStep(ArgoArguments arguments = default(ArgoArguments), ArgoContinueOn continueOn = default(ArgoContinueOn), string name = default(string), string template = default(string), ArgoTemplateRef templateRef = default(ArgoTemplateRef), string when = default(string), List <ArgoItem> withItems = default(List <ArgoItem>), string withParam = default(string), ArgoSequence withSequence = default(ArgoSequence))
 {
     this.Arguments    = arguments;
     this.ContinueOn   = continueOn;
     this.Name         = name;
     this.Template     = template;
     this.TemplateRef  = templateRef;
     this.When         = when;
     this.WithItems    = withItems;
     this.WithParam    = withParam;
     this.WithSequence = withSequence;
 }