Skip to content

Commit

Permalink
EPMRPP-91776 copy generated models (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
grabsefx authored Jul 9, 2024
1 parent df2369b commit a6b1156
Show file tree
Hide file tree
Showing 88 changed files with 9,992 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package com.epam.reportportal.api.model;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
import org.springframework.validation.annotation.Validated;

/**
* #TODO
*/
@Schema(description = "#TODO")
@Validated



public class AllOfOrganizationNotifyRuleDefinitionActions extends SendEmail {

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}

@Override
public int hashCode() {
return Objects.hash(super.hashCode());
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AllOfOrganizationNotifyRuleDefinitionActions {\n");
sb.append(" ").append(toIndentedString(super.toString())).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 ");
}
}
106 changes: 106 additions & 0 deletions src/main/java/com/epam/reportportal/api/model/EventStatus.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
package com.epam.reportportal.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.springframework.validation.annotation.Validated;

/**
* Event status object used to represent the status of a request item in bulk operations.
*/
@Schema(description = "Event status object used to represent the status of a request item in bulk operations.")
@Validated



public class EventStatus {
@JsonProperty("href")
private String href = null;

@JsonProperty("status")
private EventStatusStatus status = null;

public EventStatus href(String href) {
this.href = href;
return this;
}

/**
* Identifier of a request item.
* @return href
**/
@Schema(required = true, description = "Identifier of a request item.")
@NotNull

public String getHref() {
return href;
}

public void setHref(String href) {
this.href = href;
}

public EventStatus status(EventStatusStatus status) {
this.status = status;
return this;
}

/**
* Get status
* @return status
**/
@Schema(required = true, description = "")
@NotNull

@Valid
public EventStatusStatus getStatus() {
return status;
}

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


@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EventStatus eventStatus = (EventStatus) o;
return Objects.equals(this.href, eventStatus.href) &&
Objects.equals(this.status, eventStatus.status);
}

@Override
public int hashCode() {
return Objects.hash(href, status);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EventStatus {\n");

sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}
108 changes: 108 additions & 0 deletions src/main/java/com/epam/reportportal/api/model/EventStatusStatus.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
package com.epam.reportportal.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import org.springframework.validation.annotation.Validated;

/**
* Object indicating the execution status of the request item.
*/
@Schema(description = "Object indicating the execution status of the request item.")
@Validated



public class EventStatusStatus {
@JsonProperty("code")
private Integer code = null;

@JsonProperty("description")
private String description = null;

public EventStatusStatus code(Integer code) {
this.code = code;
return this;
}

/**
* HTTP status code indicating the resource's status.
* minimum: 100
* maximum: 600
* @return code
**/
@Schema(description = "HTTP status code indicating the resource's status.")
@NotNull

@Min(100) @Max(600) public Integer getCode() {
return code;
}

public void setCode(Integer code) {
this.code = code;
}

public EventStatusStatus description(String description) {
this.description = description;
return this;
}

/**
* Human readable status description and containing additional context information about failures etc.
* @return description
**/
@Schema(description = "Human readable status description and containing additional context information about failures etc.")
@NotNull

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}


@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EventStatusStatus eventStatusStatus = (EventStatusStatus) o;
return Objects.equals(this.code, eventStatusStatus.code) &&
Objects.equals(this.description, eventStatusStatus.description);
}

@Override
public int hashCode() {
return Objects.hash(code, description);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EventStatusStatus {\n");

sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).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 ");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
package com.epam.reportportal.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import org.springframework.validation.annotation.Validated;

/**
* InlineResponse200
*/
@Validated



public class InlineResponse200 {
@JsonProperty("message")
private String message = "The organization update was completed successfully.";

public InlineResponse200 message(String message) {
this.message = message;
return this;
}

/**
* Get message
* @return message
**/
@Schema(description = "")
@NotNull

public String getMessage() {
return message;
}

public void setMessage(String message) {
this.message = message;
}


@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InlineResponse200 inlineResponse200 = (InlineResponse200) o;
return Objects.equals(this.message, inlineResponse200.message);
}

@Override
public int hashCode() {
return Objects.hash(message);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InlineResponse200 {\n");

sb.append(" message: ").append(toIndentedString(message)).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 ");
}
}
Loading

0 comments on commit a6b1156

Please sign in to comment.