Skip to content

Commit b826fc1

Browse files
algolia-botmillotp
andcommitted
feat(specs): add the owner attributes to ingestion resources (generated)
algolia/api-clients-automation#4616 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 4ab6e31 commit b826fc1

File tree

5 files changed

+85
-4
lines changed

5 files changed

+85
-4
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public class Authentication {
2424
@JsonProperty("platform")
2525
private Platform platform;
2626

27+
@JsonProperty("owner")
28+
private String owner;
29+
2730
@JsonProperty("input")
2831
private AuthInputPartial input;
2932

@@ -77,6 +80,17 @@ public Platform getPlatform() {
7780
return platform;
7881
}
7982

83+
public Authentication setOwner(String owner) {
84+
this.owner = owner;
85+
return this;
86+
}
87+
88+
/** Owner of the resource. */
89+
@javax.annotation.Nullable
90+
public String getOwner() {
91+
return owner;
92+
}
93+
8094
public Authentication setInput(AuthInputPartial input) {
8195
this.input = input;
8296
return this;
@@ -124,6 +138,7 @@ public boolean equals(Object o) {
124138
Objects.equals(this.type, authentication.type) &&
125139
Objects.equals(this.name, authentication.name) &&
126140
Objects.equals(this.platform, authentication.platform) &&
141+
Objects.equals(this.owner, authentication.owner) &&
127142
Objects.equals(this.input, authentication.input) &&
128143
Objects.equals(this.createdAt, authentication.createdAt) &&
129144
Objects.equals(this.updatedAt, authentication.updatedAt)
@@ -132,7 +147,7 @@ public boolean equals(Object o) {
132147

133148
@Override
134149
public int hashCode() {
135-
return Objects.hash(authenticationID, type, name, platform, input, createdAt, updatedAt);
150+
return Objects.hash(authenticationID, type, name, platform, owner, input, createdAt, updatedAt);
136151
}
137152

138153
@Override
@@ -143,6 +158,7 @@ public String toString() {
143158
sb.append(" type: ").append(toIndentedString(type)).append("\n");
144159
sb.append(" name: ").append(toIndentedString(name)).append("\n");
145160
sb.append(" platform: ").append(toIndentedString(platform)).append("\n");
161+
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
146162
sb.append(" input: ").append(toIndentedString(input)).append("\n");
147163
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
148164
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public class Destination {
2121
@JsonProperty("name")
2222
private String name;
2323

24+
@JsonProperty("owner")
25+
private String owner;
26+
2427
@JsonProperty("input")
2528
private DestinationInput input;
2629

@@ -69,6 +72,17 @@ public String getName() {
6972
return name;
7073
}
7174

75+
public Destination setOwner(String owner) {
76+
this.owner = owner;
77+
return this;
78+
}
79+
80+
/** Owner of the resource. */
81+
@javax.annotation.Nullable
82+
public String getOwner() {
83+
return owner;
84+
}
85+
7286
public Destination setInput(DestinationInput input) {
7387
this.input = input;
7488
return this;
@@ -145,6 +159,7 @@ public boolean equals(Object o) {
145159
Objects.equals(this.destinationID, destination.destinationID) &&
146160
Objects.equals(this.type, destination.type) &&
147161
Objects.equals(this.name, destination.name) &&
162+
Objects.equals(this.owner, destination.owner) &&
148163
Objects.equals(this.input, destination.input) &&
149164
Objects.equals(this.createdAt, destination.createdAt) &&
150165
Objects.equals(this.updatedAt, destination.updatedAt) &&
@@ -155,7 +170,7 @@ public boolean equals(Object o) {
155170

156171
@Override
157172
public int hashCode() {
158-
return Objects.hash(destinationID, type, name, input, createdAt, updatedAt, authenticationID, transformationIDs);
173+
return Objects.hash(destinationID, type, name, owner, input, createdAt, updatedAt, authenticationID, transformationIDs);
159174
}
160175

161176
@Override
@@ -165,6 +180,7 @@ public String toString() {
165180
sb.append(" destinationID: ").append(toIndentedString(destinationID)).append("\n");
166181
sb.append(" type: ").append(toIndentedString(type)).append("\n");
167182
sb.append(" name: ").append(toIndentedString(name)).append("\n");
183+
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
168184
sb.append(" input: ").append(toIndentedString(input)).append("\n");
169185
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
170186
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ public class Source {
1919
@JsonProperty("name")
2020
private String name;
2121

22+
@JsonProperty("owner")
23+
private String owner;
24+
2225
@JsonProperty("input")
2326
private SourceInput input;
2427

@@ -64,6 +67,17 @@ public String getName() {
6467
return name;
6568
}
6669

70+
public Source setOwner(String owner) {
71+
this.owner = owner;
72+
return this;
73+
}
74+
75+
/** Owner of the resource. */
76+
@javax.annotation.Nullable
77+
public String getOwner() {
78+
return owner;
79+
}
80+
6781
public Source setInput(SourceInput input) {
6882
this.input = input;
6983
return this;
@@ -121,6 +135,7 @@ public boolean equals(Object o) {
121135
Objects.equals(this.sourceID, source.sourceID) &&
122136
Objects.equals(this.type, source.type) &&
123137
Objects.equals(this.name, source.name) &&
138+
Objects.equals(this.owner, source.owner) &&
124139
Objects.equals(this.input, source.input) &&
125140
Objects.equals(this.authenticationID, source.authenticationID) &&
126141
Objects.equals(this.createdAt, source.createdAt) &&
@@ -130,7 +145,7 @@ public boolean equals(Object o) {
130145

131146
@Override
132147
public int hashCode() {
133-
return Objects.hash(sourceID, type, name, input, authenticationID, createdAt, updatedAt);
148+
return Objects.hash(sourceID, type, name, owner, input, authenticationID, createdAt, updatedAt);
134149
}
135150

136151
@Override
@@ -140,6 +155,7 @@ public String toString() {
140155
sb.append(" sourceID: ").append(toIndentedString(sourceID)).append("\n");
141156
sb.append(" type: ").append(toIndentedString(type)).append("\n");
142157
sb.append(" name: ").append(toIndentedString(name)).append("\n");
158+
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
143159
sb.append(" input: ").append(toIndentedString(input)).append("\n");
144160
sb.append(" authenticationID: ").append(toIndentedString(authenticationID)).append("\n");
145161
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public class Task {
2828
@JsonProperty("nextRun")
2929
private String nextRun;
3030

31+
@JsonProperty("owner")
32+
private String owner;
33+
3134
@JsonProperty("input")
3235
private TaskInput input;
3336

@@ -124,6 +127,17 @@ public String getNextRun() {
124127
return nextRun;
125128
}
126129

130+
public Task setOwner(String owner) {
131+
this.owner = owner;
132+
return this;
133+
}
134+
135+
/** Owner of the resource. */
136+
@javax.annotation.Nullable
137+
public String getOwner() {
138+
return owner;
139+
}
140+
127141
public Task setInput(TaskInput input) {
128142
this.input = input;
129143
return this;
@@ -253,6 +267,7 @@ public boolean equals(Object o) {
253267
Objects.equals(this.cron, task.cron) &&
254268
Objects.equals(this.lastRun, task.lastRun) &&
255269
Objects.equals(this.nextRun, task.nextRun) &&
270+
Objects.equals(this.owner, task.owner) &&
256271
Objects.equals(this.input, task.input) &&
257272
Objects.equals(this.enabled, task.enabled) &&
258273
Objects.equals(this.failureThreshold, task.failureThreshold) &&
@@ -275,6 +290,7 @@ public int hashCode() {
275290
cron,
276291
lastRun,
277292
nextRun,
293+
owner,
278294
input,
279295
enabled,
280296
failureThreshold,
@@ -298,6 +314,7 @@ public String toString() {
298314
sb.append(" cron: ").append(toIndentedString(cron)).append("\n");
299315
sb.append(" lastRun: ").append(toIndentedString(lastRun)).append("\n");
300316
sb.append(" nextRun: ").append(toIndentedString(nextRun)).append("\n");
317+
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
301318
sb.append(" input: ").append(toIndentedString(input)).append("\n");
302319
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
303320
sb.append(" failureThreshold: ").append(toIndentedString(failureThreshold)).append("\n");

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class Transformation {
2727
@JsonProperty("description")
2828
private String description;
2929

30+
@JsonProperty("owner")
31+
private String owner;
32+
3033
@JsonProperty("createdAt")
3134
private String createdAt;
3235

@@ -96,6 +99,17 @@ public String getDescription() {
9699
return description;
97100
}
98101

102+
public Transformation setOwner(String owner) {
103+
this.owner = owner;
104+
return this;
105+
}
106+
107+
/** Owner of the resource. */
108+
@javax.annotation.Nullable
109+
public String getOwner() {
110+
return owner;
111+
}
112+
99113
public Transformation setCreatedAt(String createdAt) {
100114
this.createdAt = createdAt;
101115
return this;
@@ -133,14 +147,15 @@ public boolean equals(Object o) {
133147
Objects.equals(this.code, transformation.code) &&
134148
Objects.equals(this.name, transformation.name) &&
135149
Objects.equals(this.description, transformation.description) &&
150+
Objects.equals(this.owner, transformation.owner) &&
136151
Objects.equals(this.createdAt, transformation.createdAt) &&
137152
Objects.equals(this.updatedAt, transformation.updatedAt)
138153
);
139154
}
140155

141156
@Override
142157
public int hashCode() {
143-
return Objects.hash(transformationID, authenticationIDs, code, name, description, createdAt, updatedAt);
158+
return Objects.hash(transformationID, authenticationIDs, code, name, description, owner, createdAt, updatedAt);
144159
}
145160

146161
@Override
@@ -152,6 +167,7 @@ public String toString() {
152167
sb.append(" code: ").append(toIndentedString(code)).append("\n");
153168
sb.append(" name: ").append(toIndentedString(name)).append("\n");
154169
sb.append(" description: ").append(toIndentedString(description)).append("\n");
170+
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
155171
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
156172
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
157173
sb.append("}");

0 commit comments

Comments
 (0)