Class TaskGraph


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2023-10-02T12:25:58.319138+03:00[Europe/Athens]")
    public class TaskGraph
    extends java.lang.Object
    Information about a task graph.
    • Field Detail

      • SERIALIZED_NAME_UUID

        public static final java.lang.String SERIALIZED_NAME_UUID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_NAMESPACE

        public static final java.lang.String SERIALIZED_NAME_NAMESPACE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_CREATED_BY

        public static final java.lang.String SERIALIZED_NAME_CREATED_BY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_NAME

        public static final java.lang.String SERIALIZED_NAME_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_CREATED_AT

        public static final java.lang.String SERIALIZED_NAME_CREATED_AT
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_NODES

        public static final java.lang.String SERIALIZED_NAME_NODES
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_PARALLELISM

        public static final java.lang.String SERIALIZED_NAME_PARALLELISM
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_RETRY_STRATEGY

        public static final java.lang.String SERIALIZED_NAME_RETRY_STRATEGY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_DEADLINE

        public static final java.lang.String SERIALIZED_NAME_DEADLINE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_TASK_GRAPH_TYPE

        public static final java.lang.String SERIALIZED_NAME_TASK_GRAPH_TYPE
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • TaskGraph

        public TaskGraph()
      • TaskGraph

        public TaskGraph​(java.lang.String uuid,
                         java.lang.String createdBy,
                         java.time.OffsetDateTime createdAt)
    • Method Detail

      • getUuid

        @Nullable
        public java.lang.String getUuid()
        The server-generated UUID of the task graph.
        Returns:
        uuid
      • namespace

        public TaskGraph namespace​(java.lang.String namespace)
      • getNamespace

        @Nullable
        public java.lang.String getNamespace()
        The namespace that owns this task graph. When creating a task graph log, this is used as the namespace to create the log in; thereafter it is read-only.
        Returns:
        namespace
      • setNamespace

        public void setNamespace​(java.lang.String namespace)
      • getCreatedBy

        @Nullable
        public java.lang.String getCreatedBy()
        The name of the user who created this task graph log.
        Returns:
        createdBy
      • name

        public TaskGraph name​(java.lang.String name)
      • getName

        @Nullable
        public java.lang.String getName()
        A name for this task graph, displayed in the UI. Does not need to be unique.
        Returns:
        name
      • setName

        public void setName​(java.lang.String name)
      • getCreatedAt

        @Nullable
        public java.time.OffsetDateTime getCreatedAt()
        The date/time when this task graph was originally created.
        Returns:
        createdAt
      • getNodes

        @Nullable
        public java.util.List<TaskGraphNode> getNodes()
        The structure of the graph. This is provided by the client when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon.
        Returns:
        nodes
      • setNodes

        public void setNodes​(java.util.List<TaskGraphNode> nodes)
      • parallelism

        public TaskGraph parallelism​(java.lang.Long parallelism)
      • getParallelism

        @Nullable
        public java.lang.Long getParallelism()
        Parallelism limits the max total parallel pods that can execute at the same time in a workflow.
        Returns:
        parallelism
      • setParallelism

        public void setParallelism​(java.lang.Long parallelism)
      • getRetryStrategy

        @Nullable
        public RetryStrategy getRetryStrategy()
        Get retryStrategy
        Returns:
        retryStrategy
      • setRetryStrategy

        public void setRetryStrategy​(RetryStrategy retryStrategy)
      • deadline

        public TaskGraph deadline​(java.lang.Long deadline)
      • getDeadline

        @Nullable
        public java.lang.Long getDeadline()
        Duration in seconds relative to the workflow start time which the workflow is allowed to run before it gets terminated.
        Returns:
        deadline
      • setDeadline

        public void setDeadline​(java.lang.Long deadline)
      • getTaskGraphType

        @Nullable
        public TaskGraphType getTaskGraphType()
        Get taskGraphType
        Returns:
        taskGraphType
      • setTaskGraphType

        public void setTaskGraphType​(TaskGraphType taskGraphType)
      • putAdditionalProperty

        public TaskGraph putAdditionalProperty​(java.lang.String key,
                                               java.lang.Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws java.io.IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        java.io.IOException - if the JSON Object is invalid with respect to TaskGraph
      • fromJson

        public static TaskGraph fromJson​(java.lang.String jsonString)
                                  throws java.io.IOException
        Create an instance of TaskGraph given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of TaskGraph
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to TaskGraph
      • toJson

        public java.lang.String toJson()
        Convert an instance of TaskGraph to an JSON string
        Returns:
        JSON string