diff --git a/java/src/main/java/com/runforesight/foresight/sdk/ApiClient.java b/java/src/main/java/com/runforesight/foresight/sdk/ApiClient.java index f63aa25..dbf32d7 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/ApiClient.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/ApiClient.java @@ -46,7 +46,7 @@ import com.runforesight.foresight.sdk.auth.HttpBearerAuth; import com.runforesight.foresight.sdk.auth.ApiKeyAuth; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class ApiClient extends JavaTimeFormatter { private Map defaultHeaderMap = new HashMap(); private Map defaultCookieMap = new HashMap(); diff --git a/java/src/main/java/com/runforesight/foresight/sdk/ApiException.java b/java/src/main/java/com/runforesight/foresight/sdk/ApiException.java index 09d1aa4..c7b1c54 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/ApiException.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/ApiException.java @@ -16,7 +16,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/Configuration.java b/java/src/main/java/com/runforesight/foresight/sdk/Configuration.java index f242a38..25bbbc5 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/Configuration.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/Configuration.java @@ -13,7 +13,7 @@ package com.runforesight.foresight.sdk; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/java/src/main/java/com/runforesight/foresight/sdk/JSON.java b/java/src/main/java/com/runforesight/foresight/sdk/JSON.java index 6b8f882..1c7f52a 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/JSON.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/JSON.java @@ -9,7 +9,7 @@ import javax.ws.rs.ext.ContextResolver; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class JSON implements ContextResolver { private ObjectMapper mapper; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/JavaTimeFormatter.java b/java/src/main/java/com/runforesight/foresight/sdk/JavaTimeFormatter.java index 58aa7df..41c28fd 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/JavaTimeFormatter.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/JavaTimeFormatter.java @@ -20,7 +20,7 @@ * Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class. * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class JavaTimeFormatter { private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/Pair.java b/java/src/main/java/com/runforesight/foresight/sdk/Pair.java index 55d9cb9..7f3857b 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/Pair.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/Pair.java @@ -13,7 +13,7 @@ package com.runforesight.foresight.sdk; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/StringUtil.java b/java/src/main/java/com/runforesight/foresight/sdk/StringUtil.java index d13038f..5dceb55 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/StringUtil.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/java/src/main/java/com/runforesight/foresight/sdk/auth/ApiKeyAuth.java b/java/src/main/java/com/runforesight/foresight/sdk/auth/ApiKeyAuth.java index f267058..2a18be3 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/auth/ApiKeyAuth.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/auth/ApiKeyAuth.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/auth/HttpBasicAuth.java b/java/src/main/java/com/runforesight/foresight/sdk/auth/HttpBasicAuth.java index 5a29e6f..6227e6a 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/auth/HttpBasicAuth.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/auth/HttpBasicAuth.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/auth/HttpBearerAuth.java b/java/src/main/java/com/runforesight/foresight/sdk/auth/HttpBearerAuth.java index 2df8fb7..0769d92 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/auth/HttpBearerAuth.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/auth/HttpBearerAuth.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/AttributeDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/AttributeDto.java index 6c748e1..58b4377 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/AttributeDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/AttributeDto.java @@ -36,7 +36,7 @@ AttributeDto.JSON_PROPERTY_OBJECT_VALUE, AttributeDto.JSON_PROPERTY_STRING_VALUE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class AttributeDto { public static final String JSON_PROPERTY_BOOLEAN_VALUE = "booleanValue"; private Boolean booleanValue; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/BadgeControllerApi.java b/java/src/main/java/com/runforesight/foresight/sdk/client/BadgeControllerApi.java index 3a1d1be..aac9f84 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/BadgeControllerApi.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/BadgeControllerApi.java @@ -13,7 +13,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class BadgeControllerApi { private ApiClient apiClient; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/BranchDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/BranchDto.java new file mode 100644 index 0000000..8b97142 --- /dev/null +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/BranchDto.java @@ -0,0 +1,107 @@ +/* + * Foresight Private REST API + * \"Foresight Private REST API for clients\" + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@runforesight.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.runforesight.foresight.sdk.client; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * BranchDto + */ +@JsonPropertyOrder({ + BranchDto.JSON_PROPERTY_BRANCH_NAME +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") +public class BranchDto { + public static final String JSON_PROPERTY_BRANCH_NAME = "branchName"; + private String branchName; + + public BranchDto() { + } + + public BranchDto branchName(String branchName) { + + this.branchName = branchName; + return this; + } + + /** + * Get branchName + * @return branchName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BRANCH_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBranchName() { + return branchName; + } + + + @JsonProperty(JSON_PROPERTY_BRANCH_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBranchName(String branchName) { + this.branchName = branchName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BranchDto branchDto = (BranchDto) o; + return Objects.equals(this.branchName, branchDto.branchName); + } + + @Override + public int hashCode() { + return Objects.hash(branchName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BranchDto {\n"); + sb.append(" branchName: ").append(toIndentedString(branchName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/CPUMetricDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/CPUMetricDto.java index c88839e..3247755 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/CPUMetricDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/CPUMetricDto.java @@ -33,7 +33,7 @@ CPUMetricDto.JSON_PROPERTY_CPU_LOAD_TOTAL, CPUMetricDto.JSON_PROPERTY_CPU_LOAD_USER }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class CPUMetricDto { public static final String JSON_PROPERTY_CPU_LOAD_SYSTEM = "cpuLoadSystem"; private Double cpuLoadSystem; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/CompletableFutureOfVoid.java b/java/src/main/java/com/runforesight/foresight/sdk/client/CompletableFutureOfVoid.java index 26cd092..8586f64 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/CompletableFutureOfVoid.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/CompletableFutureOfVoid.java @@ -34,7 +34,7 @@ CompletableFutureOfVoid.JSON_PROPERTY_DONE, CompletableFutureOfVoid.JSON_PROPERTY_NUMBER_OF_DEPENDENTS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class CompletableFutureOfVoid { public static final String JSON_PROPERTY_CANCELLED = "cancelled"; private Boolean cancelled; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/CreateUpdateProjectDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/CreateUpdateProjectDto.java index 382436a..3539a9b 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/CreateUpdateProjectDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/CreateUpdateProjectDto.java @@ -32,7 +32,7 @@ CreateUpdateProjectDto.JSON_PROPERTY_DESCRIPTION, CreateUpdateProjectDto.JSON_PROPERTY_PROJECT_NAME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class CreateUpdateProjectDto { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/DiskMetricDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/DiskMetricDto.java index 7d45c6c..28a81f2 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/DiskMetricDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/DiskMetricDto.java @@ -32,7 +32,7 @@ DiskMetricDto.JSON_PROPERTY_DISK_I_O_RX_MB, DiskMetricDto.JSON_PROPERTY_DISK_I_O_WX_MB }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class DiskMetricDto { public static final String JSON_PROPERTY_DISK_I_O_RX_MB = "diskIORxMb"; private Long diskIORxMb; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/ErroneousWorkflowDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/ErroneousWorkflowDto.java new file mode 100644 index 0000000..4dd7db8 --- /dev/null +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/ErroneousWorkflowDto.java @@ -0,0 +1,250 @@ +/* + * Foresight Private REST API + * \"Foresight Private REST API for clients\" + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@runforesight.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.runforesight.foresight.sdk.client; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.runforesight.foresight.sdk.client.RepoDto; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ErroneousWorkflowDto + */ +@JsonPropertyOrder({ + ErroneousWorkflowDto.JSON_PROPERTY_ERROR_COUNTS, + ErroneousWorkflowDto.JSON_PROPERTY_ID, + ErroneousWorkflowDto.JSON_PROPERTY_NAME, + ErroneousWorkflowDto.JSON_PROPERTY_REPO, + ErroneousWorkflowDto.JSON_PROPERTY_TOTAL_ERROR_COUNT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") +public class ErroneousWorkflowDto { + public static final String JSON_PROPERTY_ERROR_COUNTS = "errorCounts"; + private Map errorCounts = null; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_REPO = "repo"; + private RepoDto repo; + + public static final String JSON_PROPERTY_TOTAL_ERROR_COUNT = "totalErrorCount"; + private Long totalErrorCount; + + public ErroneousWorkflowDto() { + } + + public ErroneousWorkflowDto errorCounts(Map errorCounts) { + + this.errorCounts = errorCounts; + return this; + } + + public ErroneousWorkflowDto putErrorCountsItem(String key, Long errorCountsItem) { + if (this.errorCounts == null) { + this.errorCounts = new HashMap<>(); + } + this.errorCounts.put(key, errorCountsItem); + return this; + } + + /** + * Get errorCounts + * @return errorCounts + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ERROR_COUNTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Map getErrorCounts() { + return errorCounts; + } + + + @JsonProperty(JSON_PROPERTY_ERROR_COUNTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrorCounts(Map errorCounts) { + this.errorCounts = errorCounts; + } + + + public ErroneousWorkflowDto id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public ErroneousWorkflowDto name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public ErroneousWorkflowDto repo(RepoDto repo) { + + this.repo = repo; + return this; + } + + /** + * Get repo + * @return repo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REPO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RepoDto getRepo() { + return repo; + } + + + @JsonProperty(JSON_PROPERTY_REPO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRepo(RepoDto repo) { + this.repo = repo; + } + + + public ErroneousWorkflowDto totalErrorCount(Long totalErrorCount) { + + this.totalErrorCount = totalErrorCount; + return this; + } + + /** + * Get totalErrorCount + * @return totalErrorCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TOTAL_ERROR_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getTotalErrorCount() { + return totalErrorCount; + } + + + @JsonProperty(JSON_PROPERTY_TOTAL_ERROR_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTotalErrorCount(Long totalErrorCount) { + this.totalErrorCount = totalErrorCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ErroneousWorkflowDto erroneousWorkflowDto = (ErroneousWorkflowDto) o; + return Objects.equals(this.errorCounts, erroneousWorkflowDto.errorCounts) && + Objects.equals(this.id, erroneousWorkflowDto.id) && + Objects.equals(this.name, erroneousWorkflowDto.name) && + Objects.equals(this.repo, erroneousWorkflowDto.repo) && + Objects.equals(this.totalErrorCount, erroneousWorkflowDto.totalErrorCount); + } + + @Override + public int hashCode() { + return Objects.hash(errorCounts, id, name, repo, totalErrorCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ErroneousWorkflowDto {\n"); + sb.append(" errorCounts: ").append(toIndentedString(errorCounts)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" repo: ").append(toIndentedString(repo)).append("\n"); + sb.append(" totalErrorCount: ").append(toIndentedString(totalErrorCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/EventDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/EventDto.java index e8310ab..81539c9 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/EventDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/EventDto.java @@ -32,7 +32,7 @@ EventDto.JSON_PROPERTY_NAME, EventDto.JSON_PROPERTY_TIME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class EventDto { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/MemoryMetricDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/MemoryMetricDto.java index 3078cf1..98271ce 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/MemoryMetricDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/MemoryMetricDto.java @@ -33,7 +33,7 @@ MemoryMetricDto.JSON_PROPERTY_MEMORY_USAGE_AVAILABLE, MemoryMetricDto.JSON_PROPERTY_MEMORY_USAGE_TOTAL }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class MemoryMetricDto { public static final String JSON_PROPERTY_MEMORY_USAGE_ACTIVE = "memoryUsageActive"; private Double memoryUsageActive; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/MetricsApi.java b/java/src/main/java/com/runforesight/foresight/sdk/client/MetricsApi.java index 5da37b6..caba25d 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/MetricsApi.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/MetricsApi.java @@ -17,7 +17,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class MetricsApi { private ApiClient apiClient; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/NetworkMetricDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/NetworkMetricDto.java index c65dc13..da30639 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/NetworkMetricDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/NetworkMetricDto.java @@ -32,7 +32,7 @@ NetworkMetricDto.JSON_PROPERTY_NETWORK_I_O_RX_MB, NetworkMetricDto.JSON_PROPERTY_NETWORK_I_O_TX_MB }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class NetworkMetricDto { public static final String JSON_PROPERTY_NETWORK_I_O_RX_MB = "networkIORxMb"; private Long networkIORxMb; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/ProcessDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/ProcessDto.java index b8a5c0d..5a790ec 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/ProcessDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/ProcessDto.java @@ -44,7 +44,7 @@ ProcessDto.JSON_PROPERTY_TAGS, ProcessDto.JSON_PROPERTY_USER_ID }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class ProcessDto { public static final String JSON_PROPERTY_ARGS = "args"; private List args = null; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/ProcessesApi.java b/java/src/main/java/com/runforesight/foresight/sdk/client/ProcessesApi.java index 1d0bcbf..dc5da53 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/ProcessesApi.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/ProcessesApi.java @@ -15,7 +15,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class ProcessesApi { private ApiClient apiClient; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/ProjectSummaryDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/ProjectSummaryDto.java index 22d1bcc..106072d 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/ProjectSummaryDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/ProjectSummaryDto.java @@ -34,7 +34,7 @@ ProjectSummaryDto.JSON_PROPERTY_ID, ProjectSummaryDto.JSON_PROPERTY_PROJECT_NAME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class ProjectSummaryDto { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private Long createdAt; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/ProjectsApi.java b/java/src/main/java/com/runforesight/foresight/sdk/client/ProjectsApi.java index af2e4ec..d6f16ad 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/ProjectsApi.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/ProjectsApi.java @@ -15,7 +15,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class ProjectsApi { private ApiClient apiClient; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/RepoDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/RepoDto.java new file mode 100644 index 0000000..be6703b --- /dev/null +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/RepoDto.java @@ -0,0 +1,527 @@ +/* + * Foresight Private REST API + * \"Foresight Private REST API for clients\" + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@runforesight.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.runforesight.foresight.sdk.client; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * RepoDto + */ +@JsonPropertyOrder({ + RepoDto.JSON_PROPERTY_ACCOUNT_OWNER_USER_ACCOUNT_ID, + RepoDto.JSON_PROPERTY_CREATED_AT, + RepoDto.JSON_PROPERTY_DEFAULT_BRANCH, + RepoDto.JSON_PROPERTY_FULL_NAME, + RepoDto.JSON_PROPERTY_ID, + RepoDto.JSON_PROPERTY_NAME, + RepoDto.JSON_PROPERTY_OWNER, + RepoDto.JSON_PROPERTY_PROVIDER, + RepoDto.JSON_PROPERTY_PUBLICLY_ACCESSIBLE, + RepoDto.JSON_PROPERTY_REPO_INFORMED_STATUS, + RepoDto.JSON_PROPERTY_USER_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") +public class RepoDto { + public static final String JSON_PROPERTY_ACCOUNT_OWNER_USER_ACCOUNT_ID = "accountOwnerUserAccountId"; + private String accountOwnerUserAccountId; + + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private Long createdAt; + + public static final String JSON_PROPERTY_DEFAULT_BRANCH = "defaultBranch"; + private String defaultBranch; + + public static final String JSON_PROPERTY_FULL_NAME = "fullName"; + private String fullName; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_OWNER = "owner"; + private String owner; + + /** + * Gets or Sets provider + */ + public enum ProviderEnum { + GIT("GIT"), + + GITHUB("GITHUB"), + + GITLAB("GITLAB"), + + BITBUCKET("BITBUCKET"), + + AZURE("AZURE"), + + TRAVISCI("TRAVISCI"), + + CIRCLECI("CIRCLECI"), + + JENKINS("JENKINS"), + + CODEBUILD("CODEBUILD"); + + private String value; + + ProviderEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ProviderEnum fromValue(String value) { + for (ProviderEnum b : ProviderEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_PROVIDER = "provider"; + private ProviderEnum provider; + + public static final String JSON_PROPERTY_PUBLICLY_ACCESSIBLE = "publiclyAccessible"; + private Boolean publiclyAccessible; + + /** + * Gets or Sets repoInformedStatus + */ + public enum RepoInformedStatusEnum { + INITIAL("INITIAL"), + + STARTED("STARTED"), + + COMPLETED("COMPLETED"), + + COMPLETED_WITH_NO_WORKFLOW("COMPLETED_WITH_NO_WORKFLOW"), + + ERROR("ERROR"); + + private String value; + + RepoInformedStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RepoInformedStatusEnum fromValue(String value) { + for (RepoInformedStatusEnum b : RepoInformedStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_REPO_INFORMED_STATUS = "repoInformedStatus"; + private RepoInformedStatusEnum repoInformedStatus; + + public static final String JSON_PROPERTY_USER_ID = "userId"; + private String userId; + + public RepoDto() { + } + + public RepoDto accountOwnerUserAccountId(String accountOwnerUserAccountId) { + + this.accountOwnerUserAccountId = accountOwnerUserAccountId; + return this; + } + + /** + * Get accountOwnerUserAccountId + * @return accountOwnerUserAccountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ACCOUNT_OWNER_USER_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getAccountOwnerUserAccountId() { + return accountOwnerUserAccountId; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT_OWNER_USER_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccountOwnerUserAccountId(String accountOwnerUserAccountId) { + this.accountOwnerUserAccountId = accountOwnerUserAccountId; + } + + + public RepoDto createdAt(Long createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + } + + + public RepoDto defaultBranch(String defaultBranch) { + + this.defaultBranch = defaultBranch; + return this; + } + + /** + * Get defaultBranch + * @return defaultBranch + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DEFAULT_BRANCH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDefaultBranch() { + return defaultBranch; + } + + + @JsonProperty(JSON_PROPERTY_DEFAULT_BRANCH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDefaultBranch(String defaultBranch) { + this.defaultBranch = defaultBranch; + } + + + public RepoDto fullName(String fullName) { + + this.fullName = fullName; + return this; + } + + /** + * Get fullName + * @return fullName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFullName() { + return fullName; + } + + + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFullName(String fullName) { + this.fullName = fullName; + } + + + public RepoDto id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public RepoDto name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public RepoDto owner(String owner) { + + this.owner = owner; + return this; + } + + /** + * Get owner + * @return owner + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OWNER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getOwner() { + return owner; + } + + + @JsonProperty(JSON_PROPERTY_OWNER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOwner(String owner) { + this.owner = owner; + } + + + public RepoDto provider(ProviderEnum provider) { + + this.provider = provider; + return this; + } + + /** + * Get provider + * @return provider + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ProviderEnum getProvider() { + return provider; + } + + + @JsonProperty(JSON_PROPERTY_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProvider(ProviderEnum provider) { + this.provider = provider; + } + + + public RepoDto publiclyAccessible(Boolean publiclyAccessible) { + + this.publiclyAccessible = publiclyAccessible; + return this; + } + + /** + * Get publiclyAccessible + * @return publiclyAccessible + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PUBLICLY_ACCESSIBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPubliclyAccessible() { + return publiclyAccessible; + } + + + @JsonProperty(JSON_PROPERTY_PUBLICLY_ACCESSIBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPubliclyAccessible(Boolean publiclyAccessible) { + this.publiclyAccessible = publiclyAccessible; + } + + + public RepoDto repoInformedStatus(RepoInformedStatusEnum repoInformedStatus) { + + this.repoInformedStatus = repoInformedStatus; + return this; + } + + /** + * Get repoInformedStatus + * @return repoInformedStatus + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REPO_INFORMED_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RepoInformedStatusEnum getRepoInformedStatus() { + return repoInformedStatus; + } + + + @JsonProperty(JSON_PROPERTY_REPO_INFORMED_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRepoInformedStatus(RepoInformedStatusEnum repoInformedStatus) { + this.repoInformedStatus = repoInformedStatus; + } + + + public RepoDto userId(String userId) { + + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUserId() { + return userId; + } + + + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(String userId) { + this.userId = userId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RepoDto repoDto = (RepoDto) o; + return Objects.equals(this.accountOwnerUserAccountId, repoDto.accountOwnerUserAccountId) && + Objects.equals(this.createdAt, repoDto.createdAt) && + Objects.equals(this.defaultBranch, repoDto.defaultBranch) && + Objects.equals(this.fullName, repoDto.fullName) && + Objects.equals(this.id, repoDto.id) && + Objects.equals(this.name, repoDto.name) && + Objects.equals(this.owner, repoDto.owner) && + Objects.equals(this.provider, repoDto.provider) && + Objects.equals(this.publiclyAccessible, repoDto.publiclyAccessible) && + Objects.equals(this.repoInformedStatus, repoDto.repoInformedStatus) && + Objects.equals(this.userId, repoDto.userId); + } + + @Override + public int hashCode() { + return Objects.hash(accountOwnerUserAccountId, createdAt, defaultBranch, fullName, id, name, owner, provider, publiclyAccessible, repoInformedStatus, userId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RepoDto {\n"); + sb.append(" accountOwnerUserAccountId: ").append(toIndentedString(accountOwnerUserAccountId)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" defaultBranch: ").append(toIndentedString(defaultBranch)).append("\n"); + sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); + sb.append(" publiclyAccessible: ").append(toIndentedString(publiclyAccessible)).append("\n"); + sb.append(" repoInformedStatus: ").append(toIndentedString(repoInformedStatus)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/RepoSearchDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/RepoSearchDto.java new file mode 100644 index 0000000..a14ad7f --- /dev/null +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/RepoSearchDto.java @@ -0,0 +1,150 @@ +/* + * Foresight Private REST API + * \"Foresight Private REST API for clients\" + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@runforesight.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.runforesight.foresight.sdk.client; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * RepoSearchDto + */ +@JsonPropertyOrder({ + RepoSearchDto.JSON_PROPERTY_BRANCHES, + RepoSearchDto.JSON_PROPERTY_REPO_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") +public class RepoSearchDto { + public static final String JSON_PROPERTY_BRANCHES = "branches"; + private List branches = null; + + public static final String JSON_PROPERTY_REPO_ID = "repoId"; + private String repoId; + + public RepoSearchDto() { + } + + public RepoSearchDto branches(List branches) { + + this.branches = branches; + return this; + } + + public RepoSearchDto addBranchesItem(String branchesItem) { + if (this.branches == null) { + this.branches = new ArrayList<>(); + } + this.branches.add(branchesItem); + return this; + } + + /** + * Get branches + * @return branches + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BRANCHES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getBranches() { + return branches; + } + + + @JsonProperty(JSON_PROPERTY_BRANCHES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBranches(List branches) { + this.branches = branches; + } + + + public RepoSearchDto repoId(String repoId) { + + this.repoId = repoId; + return this; + } + + /** + * Get repoId + * @return repoId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REPO_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRepoId() { + return repoId; + } + + + @JsonProperty(JSON_PROPERTY_REPO_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRepoId(String repoId) { + this.repoId = repoId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RepoSearchDto repoSearchDto = (RepoSearchDto) o; + return Objects.equals(this.branches, repoSearchDto.branches) && + Objects.equals(this.repoId, repoSearchDto.repoId); + } + + @Override + public int hashCode() { + return Objects.hash(branches, repoId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RepoSearchDto {\n"); + sb.append(" branches: ").append(toIndentedString(branches)).append("\n"); + sb.append(" repoId: ").append(toIndentedString(repoId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/RepoSummaryDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/RepoSummaryDto.java index c5df0ab..eb76df4 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/RepoSummaryDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/RepoSummaryDto.java @@ -34,7 +34,7 @@ RepoSummaryDto.JSON_PROPERTY_NAME, RepoSummaryDto.JSON_PROPERTY_OWNER }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class RepoSummaryDto { public static final String JSON_PROPERTY_DEFAULT_BRANCH = "defaultBranch"; private String defaultBranch; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/ReposApi.java b/java/src/main/java/com/runforesight/foresight/sdk/client/ReposApi.java index 7d9501c..71759cf 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/ReposApi.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/ReposApi.java @@ -16,7 +16,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class ReposApi { private ApiClient apiClient; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/SpanDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/SpanDto.java index 96649f8..1b27b2f 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/SpanDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/SpanDto.java @@ -50,7 +50,7 @@ SpanDto.JSON_PROPERTY_USER_ACCOUNT_ID, SpanDto.JSON_PROPERTY_WORKFLOW_RUN_ID }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class SpanDto { public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private List attributes = null; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/SpanStatus.java b/java/src/main/java/com/runforesight/foresight/sdk/client/SpanStatus.java index 8476c05..c063bb5 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/SpanStatus.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/SpanStatus.java @@ -32,7 +32,7 @@ SpanStatus.JSON_PROPERTY_CODE, SpanStatus.JSON_PROPERTY_MESSAGE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class SpanStatus { public static final String JSON_PROPERTY_CODE = "code"; private Integer code; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/TelemetryApi.java b/java/src/main/java/com/runforesight/foresight/sdk/client/TelemetryApi.java index e7e5148..2d48216 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/TelemetryApi.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/TelemetryApi.java @@ -15,7 +15,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class TelemetryApi { private ApiClient apiClient; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/UnwatchRepoDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/UnwatchRepoDto.java index 09402ce..97cb6d6 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/UnwatchRepoDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/UnwatchRepoDto.java @@ -32,7 +32,7 @@ UnwatchRepoDto.JSON_PROPERTY_PROJECT_ID, UnwatchRepoDto.JSON_PROPERTY_REPO_FULL_NAME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class UnwatchRepoDto { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; private String projectId; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WatchRepoDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WatchRepoDto.java index 38c4376..3de34c4 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/WatchRepoDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WatchRepoDto.java @@ -32,7 +32,7 @@ WatchRepoDto.JSON_PROPERTY_PROJECT_ID, WatchRepoDto.JSON_PROPERTY_REPO_FULL_NAME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class WatchRepoDto { public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; private String projectId; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WatchedRepoFilterDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WatchedRepoFilterDto.java new file mode 100644 index 0000000..45b87e3 --- /dev/null +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WatchedRepoFilterDto.java @@ -0,0 +1,107 @@ +/* + * Foresight Private REST API + * \"Foresight Private REST API for clients\" + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@runforesight.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.runforesight.foresight.sdk.client; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * WatchedRepoFilterDto + */ +@JsonPropertyOrder({ + WatchedRepoFilterDto.JSON_PROPERTY_REPO_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") +public class WatchedRepoFilterDto { + public static final String JSON_PROPERTY_REPO_ID = "repoId"; + private String repoId; + + public WatchedRepoFilterDto() { + } + + public WatchedRepoFilterDto repoId(String repoId) { + + this.repoId = repoId; + return this; + } + + /** + * Get repoId + * @return repoId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REPO_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRepoId() { + return repoId; + } + + + @JsonProperty(JSON_PROPERTY_REPO_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRepoId(String repoId) { + this.repoId = repoId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WatchedRepoFilterDto watchedRepoFilterDto = (WatchedRepoFilterDto) o; + return Objects.equals(this.repoId, watchedRepoFilterDto.repoId); + } + + @Override + public int hashCode() { + return Objects.hash(repoId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WatchedRepoFilterDto {\n"); + sb.append(" repoId: ").append(toIndentedString(repoId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowDto.java new file mode 100644 index 0000000..87bafe1 --- /dev/null +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowDto.java @@ -0,0 +1,140 @@ +/* + * Foresight Private REST API + * \"Foresight Private REST API for clients\" + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@runforesight.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.runforesight.foresight.sdk.client; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * WorkflowDto + */ +@JsonPropertyOrder({ + WorkflowDto.JSON_PROPERTY_ID, + WorkflowDto.JSON_PROPERTY_NAME +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") +public class WorkflowDto { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public WorkflowDto() { + } + + public WorkflowDto id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public WorkflowDto name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WorkflowDto workflowDto = (WorkflowDto) o; + return Objects.equals(this.id, workflowDto.id) && + Objects.equals(this.name, workflowDto.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WorkflowDto {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowHighlightsQueryDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowHighlightsQueryDto.java new file mode 100644 index 0000000..df68182 --- /dev/null +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowHighlightsQueryDto.java @@ -0,0 +1,259 @@ +/* + * Foresight Private REST API + * \"Foresight Private REST API for clients\" + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@runforesight.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.runforesight.foresight.sdk.client; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.runforesight.foresight.sdk.client.BranchDto; +import com.runforesight.foresight.sdk.client.WatchedRepoFilterDto; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * WorkflowHighlightsQueryDto + */ +@JsonPropertyOrder({ + WorkflowHighlightsQueryDto.JSON_PROPERTY_BRANCHES, + WorkflowHighlightsQueryDto.JSON_PROPERTY_PROJECT_ID, + WorkflowHighlightsQueryDto.JSON_PROPERTY_REPOS, + WorkflowHighlightsQueryDto.JSON_PROPERTY_SIZE, + WorkflowHighlightsQueryDto.JSON_PROPERTY_TIME_RANGE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") +public class WorkflowHighlightsQueryDto { + public static final String JSON_PROPERTY_BRANCHES = "branches"; + private List branches = null; + + public static final String JSON_PROPERTY_PROJECT_ID = "projectId"; + private String projectId; + + public static final String JSON_PROPERTY_REPOS = "repos"; + private List repos = null; + + public static final String JSON_PROPERTY_SIZE = "size"; + private Integer size; + + public static final String JSON_PROPERTY_TIME_RANGE = "timeRange"; + private String timeRange; + + public WorkflowHighlightsQueryDto() { + } + + public WorkflowHighlightsQueryDto branches(List branches) { + + this.branches = branches; + return this; + } + + public WorkflowHighlightsQueryDto addBranchesItem(BranchDto branchesItem) { + if (this.branches == null) { + this.branches = new ArrayList<>(); + } + this.branches.add(branchesItem); + return this; + } + + /** + * Get branches + * @return branches + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BRANCHES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getBranches() { + return branches; + } + + + @JsonProperty(JSON_PROPERTY_BRANCHES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBranches(List branches) { + this.branches = branches; + } + + + public WorkflowHighlightsQueryDto projectId(String projectId) { + + this.projectId = projectId; + return this; + } + + /** + * Get projectId + * @return projectId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROJECT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getProjectId() { + return projectId; + } + + + @JsonProperty(JSON_PROPERTY_PROJECT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + + public WorkflowHighlightsQueryDto repos(List repos) { + + this.repos = repos; + return this; + } + + public WorkflowHighlightsQueryDto addReposItem(WatchedRepoFilterDto reposItem) { + if (this.repos == null) { + this.repos = new ArrayList<>(); + } + this.repos.add(reposItem); + return this; + } + + /** + * Get repos + * @return repos + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REPOS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getRepos() { + return repos; + } + + + @JsonProperty(JSON_PROPERTY_REPOS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRepos(List repos) { + this.repos = repos; + } + + + public WorkflowHighlightsQueryDto size(Integer size) { + + this.size = size; + return this; + } + + /** + * Get size + * @return size + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getSize() { + return size; + } + + + @JsonProperty(JSON_PROPERTY_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSize(Integer size) { + this.size = size; + } + + + public WorkflowHighlightsQueryDto timeRange(String timeRange) { + + this.timeRange = timeRange; + return this; + } + + /** + * Get timeRange + * @return timeRange + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TIME_RANGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTimeRange() { + return timeRange; + } + + + @JsonProperty(JSON_PROPERTY_TIME_RANGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTimeRange(String timeRange) { + this.timeRange = timeRange; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WorkflowHighlightsQueryDto workflowHighlightsQueryDto = (WorkflowHighlightsQueryDto) o; + return Objects.equals(this.branches, workflowHighlightsQueryDto.branches) && + Objects.equals(this.projectId, workflowHighlightsQueryDto.projectId) && + Objects.equals(this.repos, workflowHighlightsQueryDto.repos) && + Objects.equals(this.size, workflowHighlightsQueryDto.size) && + Objects.equals(this.timeRange, workflowHighlightsQueryDto.timeRange); + } + + @Override + public int hashCode() { + return Objects.hash(branches, projectId, repos, size, timeRange); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WorkflowHighlightsQueryDto {\n"); + sb.append(" branches: ").append(toIndentedString(branches)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" repos: ").append(toIndentedString(repos)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" timeRange: ").append(toIndentedString(timeRange)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfCPUMetricDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfCPUMetricDto.java index e9146a4..ab1b430 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfCPUMetricDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfCPUMetricDto.java @@ -34,7 +34,7 @@ @JsonPropertyOrder({ WorkflowJobMetricDtoOfCPUMetricDto.JSON_PROPERTY_METRICS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class WorkflowJobMetricDtoOfCPUMetricDto { public static final String JSON_PROPERTY_METRICS = "metrics"; private Map metrics = null; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfDiskMetricDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfDiskMetricDto.java index a3bf82a..7d71412 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfDiskMetricDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfDiskMetricDto.java @@ -34,7 +34,7 @@ @JsonPropertyOrder({ WorkflowJobMetricDtoOfDiskMetricDto.JSON_PROPERTY_METRICS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class WorkflowJobMetricDtoOfDiskMetricDto { public static final String JSON_PROPERTY_METRICS = "metrics"; private Map metrics = null; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfMemoryMetricDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfMemoryMetricDto.java index 70afa9c..15afdb7 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfMemoryMetricDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfMemoryMetricDto.java @@ -34,7 +34,7 @@ @JsonPropertyOrder({ WorkflowJobMetricDtoOfMemoryMetricDto.JSON_PROPERTY_METRICS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class WorkflowJobMetricDtoOfMemoryMetricDto { public static final String JSON_PROPERTY_METRICS = "metrics"; private Map metrics = null; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfNetworkMetricDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfNetworkMetricDto.java index 5eee7c6..c0864ce 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfNetworkMetricDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowJobMetricDtoOfNetworkMetricDto.java @@ -34,7 +34,7 @@ @JsonPropertyOrder({ WorkflowJobMetricDtoOfNetworkMetricDto.JSON_PROPERTY_METRICS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class WorkflowJobMetricDtoOfNetworkMetricDto { public static final String JSON_PROPERTY_METRICS = "metrics"; private Map metrics = null; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowRunSummaryDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowRunSummaryDto.java new file mode 100644 index 0000000..fdae441 --- /dev/null +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowRunSummaryDto.java @@ -0,0 +1,560 @@ +/* + * Foresight Private REST API + * \"Foresight Private REST API for clients\" + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@runforesight.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.runforesight.foresight.sdk.client; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.runforesight.foresight.sdk.client.RepoDto; +import com.runforesight.foresight.sdk.client.WorkflowDto; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * WorkflowRunSummaryDto + */ +@JsonPropertyOrder({ + WorkflowRunSummaryDto.JSON_PROPERTY_CONCLUSION, + WorkflowRunSummaryDto.JSON_PROPERTY_CREATED_AT, + WorkflowRunSummaryDto.JSON_PROPERTY_DURATION, + WorkflowRunSummaryDto.JSON_PROPERTY_ID, + WorkflowRunSummaryDto.JSON_PROPERTY_PROVIDER, + WorkflowRunSummaryDto.JSON_PROPERTY_REPO, + WorkflowRunSummaryDto.JSON_PROPERTY_REPO_ID, + WorkflowRunSummaryDto.JSON_PROPERTY_RUN_ID, + WorkflowRunSummaryDto.JSON_PROPERTY_STATUS, + WorkflowRunSummaryDto.JSON_PROPERTY_USER_ACCOUNT_ID, + WorkflowRunSummaryDto.JSON_PROPERTY_WORKFLOW +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") +public class WorkflowRunSummaryDto { + /** + * Gets or Sets conclusion + */ + public enum ConclusionEnum { + ACTION_REQUIRED("ACTION_REQUIRED"), + + CANCELLED("CANCELLED"), + + FAILURE("FAILURE"), + + NEUTRAL("NEUTRAL"), + + SUCCESS("SUCCESS"), + + SKIPPED("SKIPPED"), + + STALE("STALE"), + + TIMED_OUT("TIMED_OUT"), + + UNKNOWN("UNKNOWN"); + + private String value; + + ConclusionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ConclusionEnum fromValue(String value) { + for (ConclusionEnum b : ConclusionEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CONCLUSION = "conclusion"; + private ConclusionEnum conclusion; + + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private Long createdAt; + + public static final String JSON_PROPERTY_DURATION = "duration"; + private Long duration; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + /** + * Gets or Sets provider + */ + public enum ProviderEnum { + GITHUB("GITHUB"); + + private String value; + + ProviderEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ProviderEnum fromValue(String value) { + for (ProviderEnum b : ProviderEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_PROVIDER = "provider"; + private ProviderEnum provider; + + public static final String JSON_PROPERTY_REPO = "repo"; + private RepoDto repo; + + public static final String JSON_PROPERTY_REPO_ID = "repoId"; + private String repoId; + + public static final String JSON_PROPERTY_RUN_ID = "runId"; + private String runId; + + /** + * Gets or Sets status + */ + public enum StatusEnum { + QUEUED("QUEUED"), + + IN_PROGRESS("IN_PROGRESS"), + + COMPLETED("COMPLETED"), + + UNKNOWN("UNKNOWN"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + 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 final String JSON_PROPERTY_STATUS = "status"; + private StatusEnum status; + + public static final String JSON_PROPERTY_USER_ACCOUNT_ID = "userAccountId"; + private String userAccountId; + + public static final String JSON_PROPERTY_WORKFLOW = "workflow"; + private WorkflowDto workflow; + + public WorkflowRunSummaryDto() { + } + + public WorkflowRunSummaryDto conclusion(ConclusionEnum conclusion) { + + this.conclusion = conclusion; + return this; + } + + /** + * Get conclusion + * @return conclusion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CONCLUSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ConclusionEnum getConclusion() { + return conclusion; + } + + + @JsonProperty(JSON_PROPERTY_CONCLUSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConclusion(ConclusionEnum conclusion) { + this.conclusion = conclusion; + } + + + public WorkflowRunSummaryDto createdAt(Long createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + } + + + public WorkflowRunSummaryDto duration(Long duration) { + + this.duration = duration; + return this; + } + + /** + * Get duration + * @return duration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getDuration() { + return duration; + } + + + @JsonProperty(JSON_PROPERTY_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDuration(Long duration) { + this.duration = duration; + } + + + public WorkflowRunSummaryDto id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public WorkflowRunSummaryDto provider(ProviderEnum provider) { + + this.provider = provider; + return this; + } + + /** + * Get provider + * @return provider + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ProviderEnum getProvider() { + return provider; + } + + + @JsonProperty(JSON_PROPERTY_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProvider(ProviderEnum provider) { + this.provider = provider; + } + + + public WorkflowRunSummaryDto repo(RepoDto repo) { + + this.repo = repo; + return this; + } + + /** + * Get repo + * @return repo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REPO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RepoDto getRepo() { + return repo; + } + + + @JsonProperty(JSON_PROPERTY_REPO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRepo(RepoDto repo) { + this.repo = repo; + } + + + public WorkflowRunSummaryDto repoId(String repoId) { + + this.repoId = repoId; + return this; + } + + /** + * Get repoId + * @return repoId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REPO_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRepoId() { + return repoId; + } + + + @JsonProperty(JSON_PROPERTY_REPO_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRepoId(String repoId) { + this.repoId = repoId; + } + + + public WorkflowRunSummaryDto runId(String runId) { + + this.runId = runId; + return this; + } + + /** + * Get runId + * @return runId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RUN_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRunId() { + return runId; + } + + + @JsonProperty(JSON_PROPERTY_RUN_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRunId(String runId) { + this.runId = runId; + } + + + public WorkflowRunSummaryDto status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StatusEnum getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public WorkflowRunSummaryDto userAccountId(String userAccountId) { + + this.userAccountId = userAccountId; + return this; + } + + /** + * Get userAccountId + * @return userAccountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USER_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUserAccountId() { + return userAccountId; + } + + + @JsonProperty(JSON_PROPERTY_USER_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserAccountId(String userAccountId) { + this.userAccountId = userAccountId; + } + + + public WorkflowRunSummaryDto workflow(WorkflowDto workflow) { + + this.workflow = workflow; + return this; + } + + /** + * Get workflow + * @return workflow + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WORKFLOW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WorkflowDto getWorkflow() { + return workflow; + } + + + @JsonProperty(JSON_PROPERTY_WORKFLOW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWorkflow(WorkflowDto workflow) { + this.workflow = workflow; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WorkflowRunSummaryDto workflowRunSummaryDto = (WorkflowRunSummaryDto) o; + return Objects.equals(this.conclusion, workflowRunSummaryDto.conclusion) && + Objects.equals(this.createdAt, workflowRunSummaryDto.createdAt) && + Objects.equals(this.duration, workflowRunSummaryDto.duration) && + Objects.equals(this.id, workflowRunSummaryDto.id) && + Objects.equals(this.provider, workflowRunSummaryDto.provider) && + Objects.equals(this.repo, workflowRunSummaryDto.repo) && + Objects.equals(this.repoId, workflowRunSummaryDto.repoId) && + Objects.equals(this.runId, workflowRunSummaryDto.runId) && + Objects.equals(this.status, workflowRunSummaryDto.status) && + Objects.equals(this.userAccountId, workflowRunSummaryDto.userAccountId) && + Objects.equals(this.workflow, workflowRunSummaryDto.workflow); + } + + @Override + public int hashCode() { + return Objects.hash(conclusion, createdAt, duration, id, provider, repo, repoId, runId, status, userAccountId, workflow); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WorkflowRunSummaryDto {\n"); + sb.append(" conclusion: ").append(toIndentedString(conclusion)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); + sb.append(" repo: ").append(toIndentedString(repo)).append("\n"); + sb.append(" repoId: ").append(toIndentedString(repoId)).append("\n"); + sb.append(" runId: ").append(toIndentedString(runId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" userAccountId: ").append(toIndentedString(userAccountId)).append("\n"); + sb.append(" workflow: ").append(toIndentedString(workflow)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowSearchDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowSearchDto.java new file mode 100644 index 0000000..099335a --- /dev/null +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowSearchDto.java @@ -0,0 +1,258 @@ +/* + * Foresight Private REST API + * \"Foresight Private REST API for clients\" + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@runforesight.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.runforesight.foresight.sdk.client; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.runforesight.foresight.sdk.client.RepoSearchDto; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * WorkflowSearchDto + */ +@JsonPropertyOrder({ + WorkflowSearchDto.JSON_PROPERTY_END_DATE, + WorkflowSearchDto.JSON_PROPERTY_FILTER_TEXT, + WorkflowSearchDto.JSON_PROPERTY_REPOS, + WorkflowSearchDto.JSON_PROPERTY_START_DATE, + WorkflowSearchDto.JSON_PROPERTY_STATUSES +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") +public class WorkflowSearchDto { + public static final String JSON_PROPERTY_END_DATE = "endDate"; + private Long endDate; + + public static final String JSON_PROPERTY_FILTER_TEXT = "filterText"; + private String filterText; + + public static final String JSON_PROPERTY_REPOS = "repos"; + private List repos = null; + + public static final String JSON_PROPERTY_START_DATE = "startDate"; + private Long startDate; + + public static final String JSON_PROPERTY_STATUSES = "statuses"; + private List statuses = null; + + public WorkflowSearchDto() { + } + + public WorkflowSearchDto endDate(Long endDate) { + + this.endDate = endDate; + return this; + } + + /** + * Get endDate + * @return endDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_END_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getEndDate() { + return endDate; + } + + + @JsonProperty(JSON_PROPERTY_END_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndDate(Long endDate) { + this.endDate = endDate; + } + + + public WorkflowSearchDto filterText(String filterText) { + + this.filterText = filterText; + return this; + } + + /** + * Get filterText + * @return filterText + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILTER_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFilterText() { + return filterText; + } + + + @JsonProperty(JSON_PROPERTY_FILTER_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFilterText(String filterText) { + this.filterText = filterText; + } + + + public WorkflowSearchDto repos(List repos) { + + this.repos = repos; + return this; + } + + public WorkflowSearchDto addReposItem(RepoSearchDto reposItem) { + if (this.repos == null) { + this.repos = new ArrayList<>(); + } + this.repos.add(reposItem); + return this; + } + + /** + * Get repos + * @return repos + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REPOS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getRepos() { + return repos; + } + + + @JsonProperty(JSON_PROPERTY_REPOS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRepos(List repos) { + this.repos = repos; + } + + + public WorkflowSearchDto startDate(Long startDate) { + + this.startDate = startDate; + return this; + } + + /** + * Get startDate + * @return startDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_START_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getStartDate() { + return startDate; + } + + + @JsonProperty(JSON_PROPERTY_START_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStartDate(Long startDate) { + this.startDate = startDate; + } + + + public WorkflowSearchDto statuses(List statuses) { + + this.statuses = statuses; + return this; + } + + public WorkflowSearchDto addStatusesItem(String statusesItem) { + if (this.statuses == null) { + this.statuses = new ArrayList<>(); + } + this.statuses.add(statusesItem); + return this; + } + + /** + * Get statuses + * @return statuses + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUSES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getStatuses() { + return statuses; + } + + + @JsonProperty(JSON_PROPERTY_STATUSES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatuses(List statuses) { + this.statuses = statuses; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WorkflowSearchDto workflowSearchDto = (WorkflowSearchDto) o; + return Objects.equals(this.endDate, workflowSearchDto.endDate) && + Objects.equals(this.filterText, workflowSearchDto.filterText) && + Objects.equals(this.repos, workflowSearchDto.repos) && + Objects.equals(this.startDate, workflowSearchDto.startDate) && + Objects.equals(this.statuses, workflowSearchDto.statuses); + } + + @Override + public int hashCode() { + return Objects.hash(endDate, filterText, repos, startDate, statuses); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WorkflowSearchDto {\n"); + sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); + sb.append(" filterText: ").append(toIndentedString(filterText)).append("\n"); + sb.append(" repos: ").append(toIndentedString(repos)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" statuses: ").append(toIndentedString(statuses)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepDto.java index 23a2810..bd3f421 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepDto.java @@ -38,7 +38,7 @@ WorkflowStepDto.JSON_PROPERTY_STARTED_AT, WorkflowStepDto.JSON_PROPERTY_STATUS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class WorkflowStepDto { public static final String JSON_PROPERTY_COMPLETED_AT = "completedAt"; private Long completedAt; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepHistoryDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepHistoryDto.java index ad13fd6..c49e37b 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepHistoryDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepHistoryDto.java @@ -37,7 +37,7 @@ WorkflowStepHistoryDto.JSON_PROPERTY_STEP_NUMBER, WorkflowStepHistoryDto.JSON_PROPERTY_WORKFLOW_STEP_DTO_LIST }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class WorkflowStepHistoryDto { public static final String JSON_PROPERTY_JOB_NAME = "jobName"; private String jobName; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepHistoryRequestDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepHistoryRequestDto.java index 196f9fe..5a62044 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepHistoryRequestDto.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowStepHistoryRequestDto.java @@ -34,7 +34,7 @@ WorkflowStepHistoryRequestDto.JSON_PROPERTY_SIZE, WorkflowStepHistoryRequestDto.JSON_PROPERTY_START_TIME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class WorkflowStepHistoryRequestDto { public static final String JSON_PROPERTY_END_TIME = "endTime"; private Long endTime; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowTelemetryRequest.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowTelemetryRequest.java index feec68d..631dae1 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowTelemetryRequest.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowTelemetryRequest.java @@ -32,7 +32,7 @@ WorkflowTelemetryRequest.JSON_PROPERTY_META_DATA, WorkflowTelemetryRequest.JSON_PROPERTY_TELEMETRY_DATA }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class WorkflowTelemetryRequest { public static final String JSON_PROPERTY_META_DATA = "metaData"; private Object metaData; diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowViewDto.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowViewDto.java new file mode 100644 index 0000000..894c3a1 --- /dev/null +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowViewDto.java @@ -0,0 +1,581 @@ +/* + * Foresight Private REST API + * \"Foresight Private REST API for clients\" + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@runforesight.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.runforesight.foresight.sdk.client; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.runforesight.foresight.sdk.client.RepoDto; +import com.runforesight.foresight.sdk.client.WorkflowRunSummaryDto; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * WorkflowViewDto + */ +@JsonPropertyOrder({ + WorkflowViewDto.JSON_PROPERTY_AVERAGE_DURATION, + WorkflowViewDto.JSON_PROPERTY_EXECUTION_COUNT, + WorkflowViewDto.JSON_PROPERTY_FAIL_AVERAGE_DURATION, + WorkflowViewDto.JSON_PROPERTY_FAIL_COUNT, + WorkflowViewDto.JSON_PROPERTY_FAIL_MEDIAN_DURATION, + WorkflowViewDto.JSON_PROPERTY_FAIL_P95_DURATION, + WorkflowViewDto.JSON_PROPERTY_ID, + WorkflowViewDto.JSON_PROPERTY_NAME, + WorkflowViewDto.JSON_PROPERTY_OTHER_COUNT, + WorkflowViewDto.JSON_PROPERTY_REPO, + WorkflowViewDto.JSON_PROPERTY_SUCCESS_AVERAGE_DURATION, + WorkflowViewDto.JSON_PROPERTY_SUCCESS_COUNT, + WorkflowViewDto.JSON_PROPERTY_SUCCESS_MEDIAN_DURATION, + WorkflowViewDto.JSON_PROPERTY_SUCCESS_P95_DURATION, + WorkflowViewDto.JSON_PROPERTY_WORKFLOW_RUNS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") +public class WorkflowViewDto { + public static final String JSON_PROPERTY_AVERAGE_DURATION = "averageDuration"; + private Double averageDuration; + + public static final String JSON_PROPERTY_EXECUTION_COUNT = "executionCount"; + private Long executionCount; + + public static final String JSON_PROPERTY_FAIL_AVERAGE_DURATION = "failAverageDuration"; + private Double failAverageDuration; + + public static final String JSON_PROPERTY_FAIL_COUNT = "failCount"; + private Long failCount; + + public static final String JSON_PROPERTY_FAIL_MEDIAN_DURATION = "failMedianDuration"; + private Double failMedianDuration; + + public static final String JSON_PROPERTY_FAIL_P95_DURATION = "failP95Duration"; + private Double failP95Duration; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_OTHER_COUNT = "otherCount"; + private Long otherCount; + + public static final String JSON_PROPERTY_REPO = "repo"; + private RepoDto repo; + + public static final String JSON_PROPERTY_SUCCESS_AVERAGE_DURATION = "successAverageDuration"; + private Double successAverageDuration; + + public static final String JSON_PROPERTY_SUCCESS_COUNT = "successCount"; + private Long successCount; + + public static final String JSON_PROPERTY_SUCCESS_MEDIAN_DURATION = "successMedianDuration"; + private Double successMedianDuration; + + public static final String JSON_PROPERTY_SUCCESS_P95_DURATION = "successP95Duration"; + private Double successP95Duration; + + public static final String JSON_PROPERTY_WORKFLOW_RUNS = "workflowRuns"; + private List workflowRuns = null; + + public WorkflowViewDto() { + } + + public WorkflowViewDto averageDuration(Double averageDuration) { + + this.averageDuration = averageDuration; + return this; + } + + /** + * Get averageDuration + * @return averageDuration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_AVERAGE_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getAverageDuration() { + return averageDuration; + } + + + @JsonProperty(JSON_PROPERTY_AVERAGE_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAverageDuration(Double averageDuration) { + this.averageDuration = averageDuration; + } + + + public WorkflowViewDto executionCount(Long executionCount) { + + this.executionCount = executionCount; + return this; + } + + /** + * Get executionCount + * @return executionCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EXECUTION_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getExecutionCount() { + return executionCount; + } + + + @JsonProperty(JSON_PROPERTY_EXECUTION_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExecutionCount(Long executionCount) { + this.executionCount = executionCount; + } + + + public WorkflowViewDto failAverageDuration(Double failAverageDuration) { + + this.failAverageDuration = failAverageDuration; + return this; + } + + /** + * Get failAverageDuration + * @return failAverageDuration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FAIL_AVERAGE_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getFailAverageDuration() { + return failAverageDuration; + } + + + @JsonProperty(JSON_PROPERTY_FAIL_AVERAGE_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFailAverageDuration(Double failAverageDuration) { + this.failAverageDuration = failAverageDuration; + } + + + public WorkflowViewDto failCount(Long failCount) { + + this.failCount = failCount; + return this; + } + + /** + * Get failCount + * @return failCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FAIL_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getFailCount() { + return failCount; + } + + + @JsonProperty(JSON_PROPERTY_FAIL_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFailCount(Long failCount) { + this.failCount = failCount; + } + + + public WorkflowViewDto failMedianDuration(Double failMedianDuration) { + + this.failMedianDuration = failMedianDuration; + return this; + } + + /** + * Get failMedianDuration + * @return failMedianDuration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FAIL_MEDIAN_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getFailMedianDuration() { + return failMedianDuration; + } + + + @JsonProperty(JSON_PROPERTY_FAIL_MEDIAN_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFailMedianDuration(Double failMedianDuration) { + this.failMedianDuration = failMedianDuration; + } + + + public WorkflowViewDto failP95Duration(Double failP95Duration) { + + this.failP95Duration = failP95Duration; + return this; + } + + /** + * Get failP95Duration + * @return failP95Duration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FAIL_P95_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getFailP95Duration() { + return failP95Duration; + } + + + @JsonProperty(JSON_PROPERTY_FAIL_P95_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFailP95Duration(Double failP95Duration) { + this.failP95Duration = failP95Duration; + } + + + public WorkflowViewDto id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public WorkflowViewDto name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public WorkflowViewDto otherCount(Long otherCount) { + + this.otherCount = otherCount; + return this; + } + + /** + * Get otherCount + * @return otherCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OTHER_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getOtherCount() { + return otherCount; + } + + + @JsonProperty(JSON_PROPERTY_OTHER_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOtherCount(Long otherCount) { + this.otherCount = otherCount; + } + + + public WorkflowViewDto repo(RepoDto repo) { + + this.repo = repo; + return this; + } + + /** + * Get repo + * @return repo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REPO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RepoDto getRepo() { + return repo; + } + + + @JsonProperty(JSON_PROPERTY_REPO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRepo(RepoDto repo) { + this.repo = repo; + } + + + public WorkflowViewDto successAverageDuration(Double successAverageDuration) { + + this.successAverageDuration = successAverageDuration; + return this; + } + + /** + * Get successAverageDuration + * @return successAverageDuration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SUCCESS_AVERAGE_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getSuccessAverageDuration() { + return successAverageDuration; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS_AVERAGE_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSuccessAverageDuration(Double successAverageDuration) { + this.successAverageDuration = successAverageDuration; + } + + + public WorkflowViewDto successCount(Long successCount) { + + this.successCount = successCount; + return this; + } + + /** + * Get successCount + * @return successCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SUCCESS_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getSuccessCount() { + return successCount; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + + public WorkflowViewDto successMedianDuration(Double successMedianDuration) { + + this.successMedianDuration = successMedianDuration; + return this; + } + + /** + * Get successMedianDuration + * @return successMedianDuration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SUCCESS_MEDIAN_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getSuccessMedianDuration() { + return successMedianDuration; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS_MEDIAN_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSuccessMedianDuration(Double successMedianDuration) { + this.successMedianDuration = successMedianDuration; + } + + + public WorkflowViewDto successP95Duration(Double successP95Duration) { + + this.successP95Duration = successP95Duration; + return this; + } + + /** + * Get successP95Duration + * @return successP95Duration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SUCCESS_P95_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getSuccessP95Duration() { + return successP95Duration; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS_P95_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSuccessP95Duration(Double successP95Duration) { + this.successP95Duration = successP95Duration; + } + + + public WorkflowViewDto workflowRuns(List workflowRuns) { + + this.workflowRuns = workflowRuns; + return this; + } + + public WorkflowViewDto addWorkflowRunsItem(WorkflowRunSummaryDto workflowRunsItem) { + if (this.workflowRuns == null) { + this.workflowRuns = new ArrayList<>(); + } + this.workflowRuns.add(workflowRunsItem); + return this; + } + + /** + * Get workflowRuns + * @return workflowRuns + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WORKFLOW_RUNS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getWorkflowRuns() { + return workflowRuns; + } + + + @JsonProperty(JSON_PROPERTY_WORKFLOW_RUNS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWorkflowRuns(List workflowRuns) { + this.workflowRuns = workflowRuns; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WorkflowViewDto workflowViewDto = (WorkflowViewDto) o; + return Objects.equals(this.averageDuration, workflowViewDto.averageDuration) && + Objects.equals(this.executionCount, workflowViewDto.executionCount) && + Objects.equals(this.failAverageDuration, workflowViewDto.failAverageDuration) && + Objects.equals(this.failCount, workflowViewDto.failCount) && + Objects.equals(this.failMedianDuration, workflowViewDto.failMedianDuration) && + Objects.equals(this.failP95Duration, workflowViewDto.failP95Duration) && + Objects.equals(this.id, workflowViewDto.id) && + Objects.equals(this.name, workflowViewDto.name) && + Objects.equals(this.otherCount, workflowViewDto.otherCount) && + Objects.equals(this.repo, workflowViewDto.repo) && + Objects.equals(this.successAverageDuration, workflowViewDto.successAverageDuration) && + Objects.equals(this.successCount, workflowViewDto.successCount) && + Objects.equals(this.successMedianDuration, workflowViewDto.successMedianDuration) && + Objects.equals(this.successP95Duration, workflowViewDto.successP95Duration) && + Objects.equals(this.workflowRuns, workflowViewDto.workflowRuns); + } + + @Override + public int hashCode() { + return Objects.hash(averageDuration, executionCount, failAverageDuration, failCount, failMedianDuration, failP95Duration, id, name, otherCount, repo, successAverageDuration, successCount, successMedianDuration, successP95Duration, workflowRuns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WorkflowViewDto {\n"); + sb.append(" averageDuration: ").append(toIndentedString(averageDuration)).append("\n"); + sb.append(" executionCount: ").append(toIndentedString(executionCount)).append("\n"); + sb.append(" failAverageDuration: ").append(toIndentedString(failAverageDuration)).append("\n"); + sb.append(" failCount: ").append(toIndentedString(failCount)).append("\n"); + sb.append(" failMedianDuration: ").append(toIndentedString(failMedianDuration)).append("\n"); + sb.append(" failP95Duration: ").append(toIndentedString(failP95Duration)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" otherCount: ").append(toIndentedString(otherCount)).append("\n"); + sb.append(" repo: ").append(toIndentedString(repo)).append("\n"); + sb.append(" successAverageDuration: ").append(toIndentedString(successAverageDuration)).append("\n"); + sb.append(" successCount: ").append(toIndentedString(successCount)).append("\n"); + sb.append(" successMedianDuration: ").append(toIndentedString(successMedianDuration)).append("\n"); + sb.append(" successP95Duration: ").append(toIndentedString(successP95Duration)).append("\n"); + sb.append(" workflowRuns: ").append(toIndentedString(workflowRuns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowsApi.java b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowsApi.java index e148605..7a94922 100644 --- a/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowsApi.java +++ b/java/src/main/java/com/runforesight/foresight/sdk/client/WorkflowsApi.java @@ -7,15 +7,19 @@ import javax.ws.rs.core.GenericType; +import com.runforesight.foresight.sdk.client.ErroneousWorkflowDto; +import com.runforesight.foresight.sdk.client.WorkflowHighlightsQueryDto; +import com.runforesight.foresight.sdk.client.WorkflowSearchDto; import com.runforesight.foresight.sdk.client.WorkflowStepHistoryDto; import com.runforesight.foresight.sdk.client.WorkflowStepHistoryRequestDto; +import com.runforesight.foresight.sdk.client.WorkflowViewDto; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-09T13:11:04.618466Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-31T12:24:20.857460Z[Etc/UTC]") public class WorkflowsApi { private ApiClient apiClient; @@ -35,6 +39,49 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } + /** + * getErroneousWorkflow + * + * @param query query (required) + * @return a {@code List} + * @throws ApiException if fails to make API call + */ + public List getErroneousWorkflowUsingPOST(WorkflowHighlightsQueryDto query) throws ApiException { + Object localVarPostBody = query; + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException(400, "Missing the required parameter 'query' when calling getErroneousWorkflowUsingPOST"); + } + + // create path and map variables + String localVarPath = "/api/v1/workflows/erroneous".replaceAll("\\{format\\}","json"); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "ApiKey" }; + + GenericType> localVarReturnType = new GenericType>() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } /** * getWorkflowStepHistories * @@ -85,4 +132,47 @@ public List getWorkflowStepHistoriesUsingPOST(String wor GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } + /** + * getWorkflows + * + * @param dto dto (required) + * @return a {@code List} + * @throws ApiException if fails to make API call + */ + public List getWorkflowsUsingPOST(WorkflowSearchDto dto) throws ApiException { + Object localVarPostBody = dto; + + // verify the required parameter 'dto' is set + if (dto == null) { + throw new ApiException(400, "Missing the required parameter 'dto' when calling getWorkflowsUsingPOST"); + } + + // create path and map variables + String localVarPath = "/api/v1/workflows".replaceAll("\\{format\\}","json"); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "ApiKey" }; + + GenericType> localVarReturnType = new GenericType>() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } }