Skip to content

Commit

Permalink
#46: Update swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Aug 1, 2019
1 parent 3c8e64a commit ecbe64c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ public class NotificationEndpointBase {
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;

public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;

/**
* The status of the endpoint.
*/
Expand Down Expand Up @@ -206,24 +202,6 @@ public void setDescription(String description) {
this.description = description;
}

public NotificationEndpointBase name(String name) {
this.name = name;
return this;
}

/**
* Get name
* @return name
**/
@ApiModelProperty(value = "")
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public NotificationEndpointBase status(StatusEnum status) {
this.status = status;
return this;
Expand Down Expand Up @@ -284,14 +262,13 @@ public boolean equals(java.lang.Object o) {
Objects.equals(this.createdAt, notificationEndpointBase.createdAt) &&
Objects.equals(this.updatedAt, notificationEndpointBase.updatedAt) &&
Objects.equals(this.description, notificationEndpointBase.description) &&
Objects.equals(this.name, notificationEndpointBase.name) &&
Objects.equals(this.status, notificationEndpointBase.status) &&
Objects.equals(this.labels, notificationEndpointBase.labels);
}

@Override
public int hashCode() {
return Objects.hash(id, orgID, userID, createdAt, updatedAt, description, name, status, labels);
return Objects.hash(id, orgID, userID, createdAt, updatedAt, description, status, labels);
}


Expand All @@ -305,7 +282,6 @@ public String toString() {
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
sb.append("}");
Expand Down
5 changes: 2 additions & 3 deletions client/src/main/resources/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6141,6 +6141,7 @@ components:
- documents
- notificationRules
- notificationEndpoints
- checks
id:
type: string
nullable: true
Expand Down Expand Up @@ -8909,7 +8910,7 @@ components:
type: string
labels:
$ref: "#/components/schemas/Labels"
required: [name, type, orgID, query]
required: [name, orgID, query]
ThresholdCheck:
allOf:
- $ref: "#/components/schemas/CheckBase"
Expand Down Expand Up @@ -9154,8 +9155,6 @@ components:
description:
description: An optional description of the notification endpoint
type: string
name:
type: string
status:
description: The status of the endpoint.
default: active
Expand Down

0 comments on commit ecbe64c

Please sign in to comment.