Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Add generated SDK files
Browse files Browse the repository at this point in the history
Signed-off-by: Moti Asayag <[email protected]>
  • Loading branch information
masayag authored and openshift-merge-robot committed May 8, 2023
1 parent 797b799 commit 390e10e
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 230 deletions.
8 changes: 7 additions & 1 deletion workflow-service-sdk/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1075,9 +1075,15 @@ components:
type: TASK
status: FAILED
workFlowExecutionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
status: status
status: FAILED
properties:
status:
enum:
- FAILED
- COMPLETED
- IN_PROGRESS
- REJECTED
- PENDING
type: string
workFlowExecutionId:
format: uuid
Expand Down
14 changes: 13 additions & 1 deletion workflow-service-sdk/docs/GetStatusByProjectId200Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**status** | **String** | | [optional] |
|**status** | [**StatusEnum**](#StatusEnum) | | [optional] |
|**workFlowExecutionId** | **UUID** | | [optional] |
|**workFlowName** | **String** | | [optional] |
|**works** | [**List&lt;WorkStatusResponseDTO&gt;**](WorkStatusResponseDTO.md) | | [optional] |



## Enum: StatusEnum

| Name | Value |
|---- | -----|
| FAILED | &quot;FAILED&quot; |
| COMPLETED | &quot;COMPLETED&quot; |
| IN_PROGRESS | &quot;IN_PROGRESS&quot; |
| REJECTED | &quot;REJECTED&quot; |
| PENDING | &quot;PENDING&quot; |



14 changes: 13 additions & 1 deletion workflow-service-sdk/docs/WorkFlowStatusResponseDTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**status** | **String** | | [optional] |
|**status** | [**StatusEnum**](#StatusEnum) | | [optional] |
|**workFlowExecutionId** | **UUID** | | [optional] |
|**workFlowName** | **String** | | [optional] |
|**works** | [**List&lt;WorkStatusResponseDTO&gt;**](WorkStatusResponseDTO.md) | | [optional] |



## Enum: StatusEnum

| Name | Value |
|---- | -----|
| FAILED | &quot;FAILED&quot; |
| COMPLETED | &quot;COMPLETED&quot; |
| IN_PROGRESS | &quot;IN_PROGRESS&quot; |
| REJECTED | &quot;REJECTED&quot; |
| PENDING | &quot;PENDING&quot; |



Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.google.gson.JsonObject;
import com.google.gson.TypeAdapter;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
Expand All @@ -39,10 +40,67 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class GetStatusByProjectId200Response {

/**
* Gets or Sets status
*/
@JsonAdapter(StatusEnum.Adapter.class)
public enum StatusEnum {

FAILED("FAILED"),

COMPLETED("COMPLETED"),

IN_PROGRESS("IN_PROGRESS"),

REJECTED("REJECTED"),

PENDING("PENDING");

private String value;

StatusEnum(String value) {
this.value = value;
}

public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}

public static class Adapter extends TypeAdapter<StatusEnum> {

@Override
public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}

@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}

}

}

public static final String SERIALIZED_NAME_STATUS = "status";

@SerializedName(SERIALIZED_NAME_STATUS)
private String status;
private StatusEnum status;

public static final String SERIALIZED_NAME_WORK_FLOW_EXECUTION_ID = "workFlowExecutionId";

Expand All @@ -62,7 +120,7 @@ public class GetStatusByProjectId200Response {
public GetStatusByProjectId200Response() {
}

public GetStatusByProjectId200Response status(String status) {
public GetStatusByProjectId200Response status(StatusEnum status) {

this.status = status;
return this;
Expand All @@ -74,11 +132,11 @@ public GetStatusByProjectId200Response status(String status) {
**/
@javax.annotation.Nullable

public String getStatus() {
public StatusEnum getStatus() {
return status;
}

public void setStatus(String status) {
public void setStatus(StatusEnum status) {
this.status = status;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.google.gson.JsonObject;
import com.google.gson.TypeAdapter;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
Expand All @@ -39,10 +40,67 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class WorkFlowStatusResponseDTO {

/**
* Gets or Sets status
*/
@JsonAdapter(StatusEnum.Adapter.class)
public enum StatusEnum {

FAILED("FAILED"),

COMPLETED("COMPLETED"),

IN_PROGRESS("IN_PROGRESS"),

REJECTED("REJECTED"),

PENDING("PENDING");

private String value;

StatusEnum(String value) {
this.value = value;
}

public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}

public static class Adapter extends TypeAdapter<StatusEnum> {

@Override
public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}

@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}

}

}

public static final String SERIALIZED_NAME_STATUS = "status";

@SerializedName(SERIALIZED_NAME_STATUS)
private String status;
private StatusEnum status;

public static final String SERIALIZED_NAME_WORK_FLOW_EXECUTION_ID = "workFlowExecutionId";

Expand All @@ -62,7 +120,7 @@ public class WorkFlowStatusResponseDTO {
public WorkFlowStatusResponseDTO() {
}

public WorkFlowStatusResponseDTO status(String status) {
public WorkFlowStatusResponseDTO status(StatusEnum status) {

this.status = status;
return this;
Expand All @@ -74,11 +132,11 @@ public WorkFlowStatusResponseDTO status(String status) {
**/
@javax.annotation.Nullable

public String getStatus() {
public StatusEnum getStatus() {
return status;
}

public void setStatus(String status) {
public void setStatus(StatusEnum status) {
this.status = status;
}

Expand Down

This file was deleted.

Loading

0 comments on commit 390e10e

Please sign in to comment.