Skip to content

Commit 1bb1322

Browse files
authored
feat(specs): search advanced endpoints APIC-197 (#40)
* add .idea/ to .gitignore * specs: Get logs endpoint * specs: Get task endpoint * yarn generate
1 parent 18fa5fa commit 1bb1322

File tree

16 files changed

+1626
-11
lines changed

16 files changed

+1626
-11
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ yarn-error.log
1010
!.yarn/releases
1111
!.yarn/plugins
1212

13-
**/node_modules
14-
**/dist
13+
.vscode/
14+
.idea/
1515

16-
.vscode
1716
target
18-
1917
**/.DS_Store
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.util.ArrayList;
6+
import java.util.List;
7+
import java.util.Objects;
8+
9+
/** GetLogsResponse */
10+
public class GetLogsResponse {
11+
12+
public static final String SERIALIZED_NAME_LOGS = "logs";
13+
14+
@SerializedName(SERIALIZED_NAME_LOGS)
15+
private List<GetLogsResponseLogs> logs = new ArrayList<>();
16+
17+
public GetLogsResponse logs(List<GetLogsResponseLogs> logs) {
18+
this.logs = logs;
19+
return this;
20+
}
21+
22+
public GetLogsResponse addLogsItem(GetLogsResponseLogs logsItem) {
23+
this.logs.add(logsItem);
24+
return this;
25+
}
26+
27+
/**
28+
* Get logs
29+
*
30+
* @return logs
31+
*/
32+
@javax.annotation.Nonnull
33+
@ApiModelProperty(required = true, value = "")
34+
public List<GetLogsResponseLogs> getLogs() {
35+
return logs;
36+
}
37+
38+
public void setLogs(List<GetLogsResponseLogs> logs) {
39+
this.logs = logs;
40+
}
41+
42+
@Override
43+
public boolean equals(Object o) {
44+
if (this == o) {
45+
return true;
46+
}
47+
if (o == null || getClass() != o.getClass()) {
48+
return false;
49+
}
50+
GetLogsResponse getLogsResponse = (GetLogsResponse) o;
51+
return Objects.equals(this.logs, getLogsResponse.logs);
52+
}
53+
54+
@Override
55+
public int hashCode() {
56+
return Objects.hash(logs);
57+
}
58+
59+
@Override
60+
public String toString() {
61+
StringBuilder sb = new StringBuilder();
62+
sb.append("class GetLogsResponse {\n");
63+
sb.append(" logs: ").append(toIndentedString(logs)).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: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
package com.algolia.model;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import io.swagger.annotations.ApiModelProperty;
5+
import java.util.Objects;
6+
7+
/** GetLogsResponseInnerQueries */
8+
public class GetLogsResponseInnerQueries {
9+
10+
public static final String SERIALIZED_NAME_INDEX_NAME = "index_name";
11+
12+
@SerializedName(SERIALIZED_NAME_INDEX_NAME)
13+
private String indexName;
14+
15+
public static final String SERIALIZED_NAME_USER_TOKEN = "user_token";
16+
17+
@SerializedName(SERIALIZED_NAME_USER_TOKEN)
18+
private String userToken;
19+
20+
public static final String SERIALIZED_NAME_QUERY_ID = "query_id";
21+
22+
@SerializedName(SERIALIZED_NAME_QUERY_ID)
23+
private String queryId;
24+
25+
public GetLogsResponseInnerQueries indexName(String indexName) {
26+
this.indexName = indexName;
27+
return this;
28+
}
29+
30+
/**
31+
* Index targeted by the query.
32+
*
33+
* @return indexName
34+
*/
35+
@javax.annotation.Nullable
36+
@ApiModelProperty(value = "Index targeted by the query.")
37+
public String getIndexName() {
38+
return indexName;
39+
}
40+
41+
public void setIndexName(String indexName) {
42+
this.indexName = indexName;
43+
}
44+
45+
public GetLogsResponseInnerQueries userToken(String userToken) {
46+
this.userToken = userToken;
47+
return this;
48+
}
49+
50+
/**
51+
* User identifier.
52+
*
53+
* @return userToken
54+
*/
55+
@javax.annotation.Nullable
56+
@ApiModelProperty(value = "User identifier.")
57+
public String getUserToken() {
58+
return userToken;
59+
}
60+
61+
public void setUserToken(String userToken) {
62+
this.userToken = userToken;
63+
}
64+
65+
public GetLogsResponseInnerQueries queryId(String queryId) {
66+
this.queryId = queryId;
67+
return this;
68+
}
69+
70+
/**
71+
* QueryID for the given query.
72+
*
73+
* @return queryId
74+
*/
75+
@javax.annotation.Nullable
76+
@ApiModelProperty(value = "QueryID for the given query.")
77+
public String getQueryId() {
78+
return queryId;
79+
}
80+
81+
public void setQueryId(String queryId) {
82+
this.queryId = queryId;
83+
}
84+
85+
@Override
86+
public boolean equals(Object o) {
87+
if (this == o) {
88+
return true;
89+
}
90+
if (o == null || getClass() != o.getClass()) {
91+
return false;
92+
}
93+
GetLogsResponseInnerQueries getLogsResponseInnerQueries = (GetLogsResponseInnerQueries) o;
94+
return (
95+
Objects.equals(this.indexName, getLogsResponseInnerQueries.indexName) &&
96+
Objects.equals(this.userToken, getLogsResponseInnerQueries.userToken) &&
97+
Objects.equals(this.queryId, getLogsResponseInnerQueries.queryId)
98+
);
99+
}
100+
101+
@Override
102+
public int hashCode() {
103+
return Objects.hash(indexName, userToken, queryId);
104+
}
105+
106+
@Override
107+
public String toString() {
108+
StringBuilder sb = new StringBuilder();
109+
sb.append("class GetLogsResponseInnerQueries {\n");
110+
sb
111+
.append(" indexName: ")
112+
.append(toIndentedString(indexName))
113+
.append("\n");
114+
sb
115+
.append(" userToken: ")
116+
.append(toIndentedString(userToken))
117+
.append("\n");
118+
sb.append(" queryId: ").append(toIndentedString(queryId)).append("\n");
119+
sb.append("}");
120+
return sb.toString();
121+
}
122+
123+
/**
124+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
125+
*/
126+
private String toIndentedString(Object o) {
127+
if (o == null) {
128+
return "null";
129+
}
130+
return o.toString().replace("\n", "\n ");
131+
}
132+
}

0 commit comments

Comments
 (0)