Skip to content

Commit bdc305e

Browse files
feat(specs): update try transformation specs for no-code (generated)
algolia/api-clients-automation#4974 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Mehmet Ali Gok <[email protected]>
1 parent 2414515 commit bdc305e

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

algoliasearch/src/main/java/com/algolia/model/ingestion/TransformationCreate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public TransformationCreate setType(TransformationType type) {
6464
}
6565

6666
/** Get type */
67-
@javax.annotation.Nonnull
67+
@javax.annotation.Nullable
6868
public TransformationType getType() {
6969
return type;
7070
}
@@ -75,7 +75,7 @@ public TransformationCreate setInput(TransformationInput input) {
7575
}
7676

7777
/** Get input */
78-
@javax.annotation.Nonnull
78+
@javax.annotation.Nullable
7979
public TransformationInput getInput() {
8080
return input;
8181
}

algoliasearch/src/main/java/com/algolia/model/ingestion/TransformationTry.java

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ public class TransformationTry {
1515
@JsonProperty("code")
1616
private String code;
1717

18+
@JsonProperty("type")
19+
private TransformationType type;
20+
21+
@JsonProperty("input")
22+
private TransformationInput input;
23+
1824
@JsonProperty("sampleRecord")
1925
private Object sampleRecord;
2026

@@ -33,11 +39,33 @@ public TransformationTry setCode(String code) {
3339
* @deprecated
3440
*/
3541
@Deprecated
36-
@javax.annotation.Nonnull
42+
@javax.annotation.Nullable
3743
public String getCode() {
3844
return code;
3945
}
4046

47+
public TransformationTry setType(TransformationType type) {
48+
this.type = type;
49+
return this;
50+
}
51+
52+
/** Get type */
53+
@javax.annotation.Nullable
54+
public TransformationType getType() {
55+
return type;
56+
}
57+
58+
public TransformationTry setInput(TransformationInput input) {
59+
this.input = input;
60+
return this;
61+
}
62+
63+
/** Get input */
64+
@javax.annotation.Nullable
65+
public TransformationInput getInput() {
66+
return input;
67+
}
68+
4169
public TransformationTry setSampleRecord(Object sampleRecord) {
4270
this.sampleRecord = sampleRecord;
4371
return this;
@@ -79,21 +107,25 @@ public boolean equals(Object o) {
79107
TransformationTry transformationTry = (TransformationTry) o;
80108
return (
81109
Objects.equals(this.code, transformationTry.code) &&
110+
Objects.equals(this.type, transformationTry.type) &&
111+
Objects.equals(this.input, transformationTry.input) &&
82112
Objects.equals(this.sampleRecord, transformationTry.sampleRecord) &&
83113
Objects.equals(this.authentications, transformationTry.authentications)
84114
);
85115
}
86116

87117
@Override
88118
public int hashCode() {
89-
return Objects.hash(code, sampleRecord, authentications);
119+
return Objects.hash(code, type, input, sampleRecord, authentications);
90120
}
91121

92122
@Override
93123
public String toString() {
94124
StringBuilder sb = new StringBuilder();
95125
sb.append("class TransformationTry {\n");
96126
sb.append(" code: ").append(toIndentedString(code)).append("\n");
127+
sb.append(" type: ").append(toIndentedString(type)).append("\n");
128+
sb.append(" input: ").append(toIndentedString(input)).append("\n");
97129
sb.append(" sampleRecord: ").append(toIndentedString(sampleRecord)).append("\n");
98130
sb.append(" authentications: ").append(toIndentedString(authentications)).append("\n");
99131
sb.append("}");

0 commit comments

Comments
 (0)