Package io.tiledb.cloud.rest_api.model
Class TaskGraph
- java.lang.Object
-
- io.tiledb.cloud.rest_api.model.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TaskGraph.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>
openapiFields
static java.util.HashSet<java.lang.String>
openapiRequiredFields
static java.lang.String
SERIALIZED_NAME_CREATED_AT
static java.lang.String
SERIALIZED_NAME_CREATED_BY
static java.lang.String
SERIALIZED_NAME_DEADLINE
static java.lang.String
SERIALIZED_NAME_NAME
static java.lang.String
SERIALIZED_NAME_NAMESPACE
static java.lang.String
SERIALIZED_NAME_NODES
static java.lang.String
SERIALIZED_NAME_PARALLELISM
static java.lang.String
SERIALIZED_NAME_RETRY_STRATEGY
static java.lang.String
SERIALIZED_NAME_TASK_GRAPH_TYPE
static java.lang.String
SERIALIZED_NAME_UUID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskGraph
addNodesItem(TaskGraphNode nodesItem)
TaskGraph
deadline(java.lang.Long deadline)
boolean
equals(java.lang.Object o)
static TaskGraph
fromJson(java.lang.String jsonString)
Create an instance of TaskGraph given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>
getAdditionalProperties()
Return the additional (undeclared) property.java.lang.Object
getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.java.time.OffsetDateTime
getCreatedAt()
The date/time when this task graph was originally created.java.lang.String
getCreatedBy()
The name of the user who created this task graph log.java.lang.Long
getDeadline()
Duration in seconds relative to the workflow start time which the workflow is allowed to run before it gets terminated.java.lang.String
getName()
A name for this task graph, displayed in the UI.java.lang.String
getNamespace()
The namespace that owns this task graph.java.util.List<TaskGraphNode>
getNodes()
The structure of the graph.java.lang.Long
getParallelism()
Parallelism limits the max total parallel pods that can execute at the same time in a workflow.RetryStrategy
getRetryStrategy()
Get retryStrategyTaskGraphType
getTaskGraphType()
Get taskGraphTypejava.lang.String
getUuid()
The server-generated UUID of the task graph.int
hashCode()
TaskGraph
name(java.lang.String name)
TaskGraph
namespace(java.lang.String namespace)
TaskGraph
nodes(java.util.List<TaskGraphNode> nodes)
TaskGraph
parallelism(java.lang.Long parallelism)
TaskGraph
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.TaskGraph
retryStrategy(RetryStrategy retryStrategy)
void
setDeadline(java.lang.Long deadline)
void
setName(java.lang.String name)
void
setNamespace(java.lang.String namespace)
void
setNodes(java.util.List<TaskGraphNode> nodes)
void
setParallelism(java.lang.Long parallelism)
void
setRetryStrategy(RetryStrategy retryStrategy)
void
setTaskGraphType(TaskGraphType taskGraphType)
TaskGraph
taskGraphType(TaskGraphType taskGraphType)
java.lang.String
toJson()
Convert an instance of TaskGraph to an JSON stringjava.lang.String
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
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
-
-
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
-
nodes
public TaskGraph nodes(java.util.List<TaskGraphNode> nodes)
-
addNodesItem
public TaskGraph addNodesItem(TaskGraphNode nodesItem)
-
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)
-
retryStrategy
public TaskGraph retryStrategy(RetryStrategy retryStrategy)
-
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)
-
taskGraphType
public TaskGraph taskGraphType(TaskGraphType taskGraphType)
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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
-
-