Skip to content

Commit 1555786

Browse files
feat(spec/search): add vault endpoints to spec (APIC-196) (#35)
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent c7fbbab commit 1555786

File tree

16 files changed

+1142
-6
lines changed

16 files changed

+1142
-6
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
package com.algolia.model;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import io.swagger.annotations.ApiModelProperty;
5+
import java.time.OffsetDateTime;
6+
import java.util.Objects;
7+
8+
/** AppendSourceResponse */
9+
public class AppendSourceResponse {
10+
11+
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
12+
13+
@SerializedName(SERIALIZED_NAME_CREATED_AT)
14+
private OffsetDateTime createdAt;
15+
16+
public AppendSourceResponse createdAt(OffsetDateTime createdAt) {
17+
this.createdAt = createdAt;
18+
return this;
19+
}
20+
21+
/**
22+
* Date of creation (ISO-8601 format).
23+
*
24+
* @return createdAt
25+
*/
26+
@javax.annotation.Nonnull
27+
@ApiModelProperty(
28+
required = true,
29+
value = "Date of creation (ISO-8601 format)."
30+
)
31+
public OffsetDateTime getCreatedAt() {
32+
return createdAt;
33+
}
34+
35+
public void setCreatedAt(OffsetDateTime createdAt) {
36+
this.createdAt = createdAt;
37+
}
38+
39+
@Override
40+
public boolean equals(Object o) {
41+
if (this == o) {
42+
return true;
43+
}
44+
if (o == null || getClass() != o.getClass()) {
45+
return false;
46+
}
47+
AppendSourceResponse appendSourceResponse = (AppendSourceResponse) o;
48+
return Objects.equals(this.createdAt, appendSourceResponse.createdAt);
49+
}
50+
51+
@Override
52+
public int hashCode() {
53+
return Objects.hash(createdAt);
54+
}
55+
56+
@Override
57+
public String toString() {
58+
StringBuilder sb = new StringBuilder();
59+
sb.append("class AppendSourceResponse {\n");
60+
sb
61+
.append(" createdAt: ")
62+
.append(toIndentedString(createdAt))
63+
.append("\n");
64+
sb.append("}");
65+
return sb.toString();
66+
}
67+
68+
/**
69+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
70+
*/
71+
private String toIndentedString(Object o) {
72+
if (o == null) {
73+
return "null";
74+
}
75+
return o.toString().replace("\n", "\n ");
76+
}
77+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
package com.algolia.model;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import io.swagger.annotations.ApiModelProperty;
5+
import java.time.OffsetDateTime;
6+
import java.util.Objects;
7+
8+
/** DeleteSourceResponse */
9+
public class DeleteSourceResponse {
10+
11+
public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt";
12+
13+
@SerializedName(SERIALIZED_NAME_DELETED_AT)
14+
private OffsetDateTime deletedAt;
15+
16+
public DeleteSourceResponse deletedAt(OffsetDateTime deletedAt) {
17+
this.deletedAt = deletedAt;
18+
return this;
19+
}
20+
21+
/**
22+
* Date of deletion (ISO-8601 format).
23+
*
24+
* @return deletedAt
25+
*/
26+
@javax.annotation.Nonnull
27+
@ApiModelProperty(
28+
required = true,
29+
value = "Date of deletion (ISO-8601 format)."
30+
)
31+
public OffsetDateTime getDeletedAt() {
32+
return deletedAt;
33+
}
34+
35+
public void setDeletedAt(OffsetDateTime deletedAt) {
36+
this.deletedAt = deletedAt;
37+
}
38+
39+
@Override
40+
public boolean equals(Object o) {
41+
if (this == o) {
42+
return true;
43+
}
44+
if (o == null || getClass() != o.getClass()) {
45+
return false;
46+
}
47+
DeleteSourceResponse deleteSourceResponse = (DeleteSourceResponse) o;
48+
return Objects.equals(this.deletedAt, deleteSourceResponse.deletedAt);
49+
}
50+
51+
@Override
52+
public int hashCode() {
53+
return Objects.hash(deletedAt);
54+
}
55+
56+
@Override
57+
public String toString() {
58+
StringBuilder sb = new StringBuilder();
59+
sb.append("class DeleteSourceResponse {\n");
60+
sb
61+
.append(" deletedAt: ")
62+
.append(toIndentedString(deletedAt))
63+
.append("\n");
64+
sb.append("}");
65+
return sb.toString();
66+
}
67+
68+
/**
69+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
70+
*/
71+
private String toIndentedString(Object o) {
72+
if (o == null) {
73+
return "null";
74+
}
75+
return o.toString().replace("\n", "\n ");
76+
}
77+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
package com.algolia.model;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import io.swagger.annotations.ApiModelProperty;
5+
import java.time.OffsetDateTime;
6+
import java.util.Objects;
7+
8+
/** ReplaceSourceResponse */
9+
public class ReplaceSourceResponse {
10+
11+
public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt";
12+
13+
@SerializedName(SERIALIZED_NAME_UPDATED_AT)
14+
private OffsetDateTime updatedAt;
15+
16+
public ReplaceSourceResponse updatedAt(OffsetDateTime updatedAt) {
17+
this.updatedAt = updatedAt;
18+
return this;
19+
}
20+
21+
/**
22+
* Date of last update (ISO-8601 format).
23+
*
24+
* @return updatedAt
25+
*/
26+
@javax.annotation.Nonnull
27+
@ApiModelProperty(
28+
required = true,
29+
value = "Date of last update (ISO-8601 format)."
30+
)
31+
public OffsetDateTime getUpdatedAt() {
32+
return updatedAt;
33+
}
34+
35+
public void setUpdatedAt(OffsetDateTime updatedAt) {
36+
this.updatedAt = updatedAt;
37+
}
38+
39+
@Override
40+
public boolean equals(Object o) {
41+
if (this == o) {
42+
return true;
43+
}
44+
if (o == null || getClass() != o.getClass()) {
45+
return false;
46+
}
47+
ReplaceSourceResponse replaceSourceResponse = (ReplaceSourceResponse) o;
48+
return Objects.equals(this.updatedAt, replaceSourceResponse.updatedAt);
49+
}
50+
51+
@Override
52+
public int hashCode() {
53+
return Objects.hash(updatedAt);
54+
}
55+
56+
@Override
57+
public String toString() {
58+
StringBuilder sb = new StringBuilder();
59+
sb.append("class ReplaceSourceResponse {\n");
60+
sb
61+
.append(" updatedAt: ")
62+
.append(toIndentedString(updatedAt))
63+
.append("\n");
64+
sb.append("}");
65+
return sb.toString();
66+
}
67+
68+
/**
69+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
70+
*/
71+
private String toIndentedString(Object o) {
72+
if (o == null) {
73+
return "null";
74+
}
75+
return o.toString().replace("\n", "\n ");
76+
}
77+
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
package com.algolia.model;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import io.swagger.annotations.ApiModel;
5+
import io.swagger.annotations.ApiModelProperty;
6+
import java.util.Objects;
7+
8+
/** The source. */
9+
@ApiModel(description = "The source.")
10+
public class Source {
11+
12+
public static final String SERIALIZED_NAME_SOURCE = "source";
13+
14+
@SerializedName(SERIALIZED_NAME_SOURCE)
15+
private String source;
16+
17+
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
18+
19+
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
20+
private String description;
21+
22+
public Source source(String source) {
23+
this.source = source;
24+
return this;
25+
}
26+
27+
/**
28+
* The IP range of the source.
29+
*
30+
* @return source
31+
*/
32+
@javax.annotation.Nonnull
33+
@ApiModelProperty(
34+
example = "10.0.0.1/32",
35+
required = true,
36+
value = "The IP range of the source."
37+
)
38+
public String getSource() {
39+
return source;
40+
}
41+
42+
public void setSource(String source) {
43+
this.source = source;
44+
}
45+
46+
public Source description(String description) {
47+
this.description = description;
48+
return this;
49+
}
50+
51+
/**
52+
* The description of the source.
53+
*
54+
* @return description
55+
*/
56+
@javax.annotation.Nullable
57+
@ApiModelProperty(value = "The description of the source.")
58+
public String getDescription() {
59+
return description;
60+
}
61+
62+
public void setDescription(String description) {
63+
this.description = description;
64+
}
65+
66+
@Override
67+
public boolean equals(Object o) {
68+
if (this == o) {
69+
return true;
70+
}
71+
if (o == null || getClass() != o.getClass()) {
72+
return false;
73+
}
74+
Source source = (Source) o;
75+
return (
76+
Objects.equals(this.source, source.source) &&
77+
Objects.equals(this.description, source.description)
78+
);
79+
}
80+
81+
@Override
82+
public int hashCode() {
83+
return Objects.hash(source, description);
84+
}
85+
86+
@Override
87+
public String toString() {
88+
StringBuilder sb = new StringBuilder();
89+
sb.append("class Source {\n");
90+
sb.append(" source: ").append(toIndentedString(source)).append("\n");
91+
sb
92+
.append(" description: ")
93+
.append(toIndentedString(description))
94+
.append("\n");
95+
sb.append("}");
96+
return sb.toString();
97+
}
98+
99+
/**
100+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
101+
*/
102+
private String toIndentedString(Object o) {
103+
if (o == null) {
104+
return "null";
105+
}
106+
return o.toString().replace("\n", "\n ");
107+
}
108+
}

0 commit comments

Comments
 (0)