-
Notifications
You must be signed in to change notification settings - Fork 0
Cluster, SVM and Aggr Feign Client #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
951d8ea
85da607
c35ebc8
4a42f58
287a8b0
5802f44
0363ab5
a74c021
8de7034
9ceeb10
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file can be shifted to model/response
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As discussed, will create one generic ontap response class |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,8 +21,8 @@ | |
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import com.google.gson.annotations.SerializedName; | ||
| import io.swagger.annotations.ApiModelProperty; | ||
|
|
||
| import java.util.Objects; | ||
|
|
||
| /** | ||
| * Complete cluster information | ||
|
|
@@ -35,7 +35,7 @@ public class Cluster { | |
| private String uuid = null; | ||
|
|
||
| @JsonProperty("version") | ||
| private ClusterVersion version = null; | ||
| private Version version = null; | ||
| @JsonProperty("health") | ||
| private String health = null; | ||
|
|
||
|
|
@@ -45,7 +45,7 @@ public class Cluster { | |
| @JsonProperty("disaggregated") | ||
| private Boolean disaggregated = null; | ||
|
|
||
| @ApiModelProperty(example = "healthy", value = "") | ||
|
|
||
| public String getHealth() { | ||
| return health; | ||
| } | ||
|
|
@@ -59,12 +59,7 @@ public Cluster name(String name) { | |
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Get name | ||
| * | ||
| * @return name | ||
| **/ | ||
| @ApiModelProperty(example = "cluster1", value = "") | ||
|
|
||
| public String getName() { | ||
| return name; | ||
| } | ||
|
|
@@ -73,49 +68,57 @@ public void setName(String name) { | |
| this.name = name; | ||
| } | ||
|
|
||
| /** | ||
| * Get uuid | ||
| * | ||
| * @return uuid | ||
| **/ | ||
| @ApiModelProperty(example = "1cd8a442-86d1-11e0-ae1c-123478563412", value = "") | ||
|
|
||
| public String getUuid() { | ||
| return uuid; | ||
| } | ||
|
|
||
| public Cluster version(ClusterVersion version) { | ||
| public Cluster version(Version version) { | ||
| this.version = version; | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Get version | ||
| * | ||
| * @return version | ||
| **/ | ||
| @ApiModelProperty(value = "") | ||
| public ClusterVersion getVersion() { | ||
| public Version getVersion() { | ||
| return version; | ||
| } | ||
|
|
||
| public void setVersion(ClusterVersion version) { | ||
| public void setVersion(Version version) { | ||
| this.version = version; | ||
| } | ||
| @ApiModelProperty(value = "") | ||
|
|
||
| public Boolean getSanOptimized() { | ||
| return sanOptimized; | ||
| } | ||
|
|
||
| public void setSanOptimized(Boolean sanOptimized) { | ||
| this.sanOptimized = sanOptimized; | ||
| } | ||
| @ApiModelProperty(value = "") | ||
|
|
||
| public Boolean getDisaggregated() { | ||
| return disaggregated; | ||
| } | ||
| public void setDisaggregated(Boolean disaggregated) { | ||
| this.disaggregated = disaggregated; | ||
| } | ||
|
|
||
| @Override | ||
| public int hashCode() { | ||
| return Objects.hash(getName(), getUuid()); | ||
| } | ||
|
|
||
| @Override | ||
| public boolean equals(java.lang.Object o) { | ||
| if (this == o) { | ||
| return true; | ||
| } | ||
| if (o == null || getClass() != o.getClass()) { | ||
| return false; | ||
| } | ||
| Cluster cluster = (Cluster) o; | ||
| return Objects.equals(this.name, cluster.name) && | ||
| Objects.equals(this.uuid, cluster.uuid); | ||
| } | ||
|
|
||
| @Override | ||
| public String toString() { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can add equals and hashcode using only uuid in this class
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done! |
||
| return "Cluster{" + | ||
|
|
@@ -127,3 +130,4 @@ public String toString() { | |
| '}'; | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we reuse this in VolumeRequestDTO, instead of AggregateDTO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, will remove the request DTOs and use the same ontap model with null annotation