Skip to content

Commit 4b7afc7

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@7f525630.
1 parent 0abee63 commit 4b7afc7

File tree

3 files changed

+156
-156
lines changed

3 files changed

+156
-156
lines changed

src/main/java/com/segment/publicapi/models/CreateFilterInput.java

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ public class CreateFilterInput {
4141
@SerializedName(SERIALIZED_NAME_ENABLED)
4242
private Boolean enabled;
4343

44-
public static final String SERIALIZED_NAME_DROP = "drop";
45-
46-
@SerializedName(SERIALIZED_NAME_DROP)
47-
private Boolean drop;
48-
4944
public static final String SERIALIZED_NAME_NAME = "name";
5045

5146
@SerializedName(SERIALIZED_NAME_NAME)
@@ -61,10 +56,15 @@ public class CreateFilterInput {
6156
@SerializedName(SERIALIZED_NAME_IF)
6257
private String _if;
6358

64-
public static final String SERIALIZED_NAME_PROPERTY_DROPS = "propertyDrops";
59+
public static final String SERIALIZED_NAME_DROP = "drop";
6560

66-
@SerializedName(SERIALIZED_NAME_PROPERTY_DROPS)
67-
private List<String> propertyDrops;
61+
@SerializedName(SERIALIZED_NAME_DROP)
62+
private Boolean drop;
63+
64+
public static final String SERIALIZED_NAME_DROP_PROPERTIES = "dropProperties";
65+
66+
@SerializedName(SERIALIZED_NAME_DROP_PROPERTIES)
67+
private List<String> dropProperties;
6868

6969
public static final String SERIALIZED_NAME_ALLOW_PROPERTIES = "allowProperties";
7070

@@ -113,26 +113,6 @@ public void setEnabled(Boolean enabled) {
113113
this.enabled = enabled;
114114
}
115115

116-
public CreateFilterInput drop(Boolean drop) {
117-
118-
this.drop = drop;
119-
return this;
120-
}
121-
122-
/**
123-
* Whether the event is dropped.
124-
*
125-
* @return drop
126-
*/
127-
@javax.annotation.Nullable
128-
public Boolean getDrop() {
129-
return drop;
130-
}
131-
132-
public void setDrop(Boolean drop) {
133-
this.drop = drop;
134-
}
135-
136116
public CreateFilterInput name(String name) {
137117

138118
this.name = name;
@@ -193,32 +173,52 @@ public void setIf(String _if) {
193173
this._if = _if;
194174
}
195175

196-
public CreateFilterInput propertyDrops(List<String> propertyDrops) {
176+
public CreateFilterInput drop(Boolean drop) {
197177

198-
this.propertyDrops = propertyDrops;
178+
this.drop = drop;
199179
return this;
200180
}
201181

202-
public CreateFilterInput addPropertyDropsItem(String propertyDropsItem) {
203-
if (this.propertyDrops == null) {
204-
this.propertyDrops = new ArrayList<>();
182+
/**
183+
* Whether the event is dropped.
184+
*
185+
* @return drop
186+
*/
187+
@javax.annotation.Nullable
188+
public Boolean getDrop() {
189+
return drop;
190+
}
191+
192+
public void setDrop(Boolean drop) {
193+
this.drop = drop;
194+
}
195+
196+
public CreateFilterInput dropProperties(List<String> dropProperties) {
197+
198+
this.dropProperties = dropProperties;
199+
return this;
200+
}
201+
202+
public CreateFilterInput addDropPropertiesItem(String dropPropertiesItem) {
203+
if (this.dropProperties == null) {
204+
this.dropProperties = new ArrayList<>();
205205
}
206-
this.propertyDrops.add(propertyDropsItem);
206+
this.dropProperties.add(dropPropertiesItem);
207207
return this;
208208
}
209209

210210
/**
211211
* Describes the properties to be dropped on events that match the \&quot;if\&quot; statement.
212212
*
213-
* @return propertyDrops
213+
* @return dropProperties
214214
*/
215215
@javax.annotation.Nullable
216-
public List<String> getPropertyDrops() {
217-
return propertyDrops;
216+
public List<String> getDropProperties() {
217+
return dropProperties;
218218
}
219219

220-
public void setPropertyDrops(List<String> propertyDrops) {
221-
this.propertyDrops = propertyDrops;
220+
public void setDropProperties(List<String> dropProperties) {
221+
this.dropProperties = dropProperties;
222222
}
223223

224224
public CreateFilterInput allowProperties(List<String> allowProperties) {
@@ -260,11 +260,11 @@ public boolean equals(Object o) {
260260
CreateFilterInput createFilterInput = (CreateFilterInput) o;
261261
return Objects.equals(this.integrationId, createFilterInput.integrationId)
262262
&& Objects.equals(this.enabled, createFilterInput.enabled)
263-
&& Objects.equals(this.drop, createFilterInput.drop)
264263
&& Objects.equals(this.name, createFilterInput.name)
265264
&& Objects.equals(this.description, createFilterInput.description)
266265
&& Objects.equals(this._if, createFilterInput._if)
267-
&& Objects.equals(this.propertyDrops, createFilterInput.propertyDrops)
266+
&& Objects.equals(this.drop, createFilterInput.drop)
267+
&& Objects.equals(this.dropProperties, createFilterInput.dropProperties)
268268
&& Objects.equals(this.allowProperties, createFilterInput.allowProperties);
269269
}
270270

@@ -273,11 +273,11 @@ public int hashCode() {
273273
return Objects.hash(
274274
integrationId,
275275
enabled,
276-
drop,
277276
name,
278277
description,
279278
_if,
280-
propertyDrops,
279+
drop,
280+
dropProperties,
281281
allowProperties);
282282
}
283283

@@ -287,11 +287,11 @@ public String toString() {
287287
sb.append("class CreateFilterInput {\n");
288288
sb.append(" integrationId: ").append(toIndentedString(integrationId)).append("\n");
289289
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
290-
sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
291290
sb.append(" name: ").append(toIndentedString(name)).append("\n");
292291
sb.append(" description: ").append(toIndentedString(description)).append("\n");
293292
sb.append(" _if: ").append(toIndentedString(_if)).append("\n");
294-
sb.append(" propertyDrops: ").append(toIndentedString(propertyDrops)).append("\n");
293+
sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
294+
sb.append(" dropProperties: ").append(toIndentedString(dropProperties)).append("\n");
295295
sb.append(" allowProperties: ").append(toIndentedString(allowProperties)).append("\n");
296296
sb.append("}");
297297
return sb.toString();
@@ -316,11 +316,11 @@ private String toIndentedString(Object o) {
316316
openapiFields = new HashSet<String>();
317317
openapiFields.add("integrationId");
318318
openapiFields.add("enabled");
319-
openapiFields.add("drop");
320319
openapiFields.add("name");
321320
openapiFields.add("description");
322321
openapiFields.add("if");
323-
openapiFields.add("propertyDrops");
322+
openapiFields.add("drop");
323+
openapiFields.add("dropProperties");
324324
openapiFields.add("allowProperties");
325325

326326
// a set of required properties/fields (JSON key names)
@@ -400,14 +400,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
400400
jsonObj.get("if").toString()));
401401
}
402402
// ensure the optional json data is an array if present
403-
if (jsonObj.get("propertyDrops") != null
404-
&& !jsonObj.get("propertyDrops").isJsonNull()
405-
&& !jsonObj.get("propertyDrops").isJsonArray()) {
403+
if (jsonObj.get("dropProperties") != null
404+
&& !jsonObj.get("dropProperties").isJsonNull()
405+
&& !jsonObj.get("dropProperties").isJsonArray()) {
406406
throw new IllegalArgumentException(
407407
String.format(
408-
"Expected the field `propertyDrops` to be an array in the JSON string"
408+
"Expected the field `dropProperties` to be an array in the JSON string"
409409
+ " but got `%s`",
410-
jsonObj.get("propertyDrops").toString()));
410+
jsonObj.get("dropProperties").toString()));
411411
}
412412
// ensure the optional json data is an array if present
413413
if (jsonObj.get("allowProperties") != null

src/main/java/com/segment/publicapi/models/Filter.java

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ public class Filter {
5151
@SerializedName(SERIALIZED_NAME_ENABLED)
5252
private Boolean enabled;
5353

54-
public static final String SERIALIZED_NAME_DROP = "drop";
55-
56-
@SerializedName(SERIALIZED_NAME_DROP)
57-
private Boolean drop;
58-
5954
public static final String SERIALIZED_NAME_NAME = "name";
6055

6156
@SerializedName(SERIALIZED_NAME_NAME)
@@ -71,10 +66,15 @@ public class Filter {
7166
@SerializedName(SERIALIZED_NAME_IF)
7267
private String _if;
7368

74-
public static final String SERIALIZED_NAME_PROPERTY_DROPS = "propertyDrops";
69+
public static final String SERIALIZED_NAME_DROP = "drop";
7570

76-
@SerializedName(SERIALIZED_NAME_PROPERTY_DROPS)
77-
private List<String> propertyDrops;
71+
@SerializedName(SERIALIZED_NAME_DROP)
72+
private Boolean drop;
73+
74+
public static final String SERIALIZED_NAME_DROP_PROPERTIES = "dropProperties";
75+
76+
@SerializedName(SERIALIZED_NAME_DROP_PROPERTIES)
77+
private List<String> dropProperties;
7878

7979
public static final String SERIALIZED_NAME_ALLOW_PROPERTIES = "allowProperties";
8080

@@ -163,26 +163,6 @@ public void setEnabled(Boolean enabled) {
163163
this.enabled = enabled;
164164
}
165165

166-
public Filter drop(Boolean drop) {
167-
168-
this.drop = drop;
169-
return this;
170-
}
171-
172-
/**
173-
* Whether the event is dropped.
174-
*
175-
* @return drop
176-
*/
177-
@javax.annotation.Nullable
178-
public Boolean getDrop() {
179-
return drop;
180-
}
181-
182-
public void setDrop(Boolean drop) {
183-
this.drop = drop;
184-
}
185-
186166
public Filter name(String name) {
187167

188168
this.name = name;
@@ -243,32 +223,52 @@ public void setIf(String _if) {
243223
this._if = _if;
244224
}
245225

246-
public Filter propertyDrops(List<String> propertyDrops) {
226+
public Filter drop(Boolean drop) {
247227

248-
this.propertyDrops = propertyDrops;
228+
this.drop = drop;
249229
return this;
250230
}
251231

252-
public Filter addPropertyDropsItem(String propertyDropsItem) {
253-
if (this.propertyDrops == null) {
254-
this.propertyDrops = new ArrayList<>();
232+
/**
233+
* Whether the event is dropped.
234+
*
235+
* @return drop
236+
*/
237+
@javax.annotation.Nullable
238+
public Boolean getDrop() {
239+
return drop;
240+
}
241+
242+
public void setDrop(Boolean drop) {
243+
this.drop = drop;
244+
}
245+
246+
public Filter dropProperties(List<String> dropProperties) {
247+
248+
this.dropProperties = dropProperties;
249+
return this;
250+
}
251+
252+
public Filter addDropPropertiesItem(String dropPropertiesItem) {
253+
if (this.dropProperties == null) {
254+
this.dropProperties = new ArrayList<>();
255255
}
256-
this.propertyDrops.add(propertyDropsItem);
256+
this.dropProperties.add(dropPropertiesItem);
257257
return this;
258258
}
259259

260260
/**
261261
* Describes the properties to be dropped on events that match the \&quot;if\&quot; statement.
262262
*
263-
* @return propertyDrops
263+
* @return dropProperties
264264
*/
265265
@javax.annotation.Nullable
266-
public List<String> getPropertyDrops() {
267-
return propertyDrops;
266+
public List<String> getDropProperties() {
267+
return dropProperties;
268268
}
269269

270-
public void setPropertyDrops(List<String> propertyDrops) {
271-
this.propertyDrops = propertyDrops;
270+
public void setDropProperties(List<String> dropProperties) {
271+
this.dropProperties = dropProperties;
272272
}
273273

274274
public Filter allowProperties(List<String> allowProperties) {
@@ -312,11 +312,11 @@ public boolean equals(Object o) {
312312
&& Objects.equals(this.workspaceId, filter.workspaceId)
313313
&& Objects.equals(this.integrationId, filter.integrationId)
314314
&& Objects.equals(this.enabled, filter.enabled)
315-
&& Objects.equals(this.drop, filter.drop)
316315
&& Objects.equals(this.name, filter.name)
317316
&& Objects.equals(this.description, filter.description)
318317
&& Objects.equals(this._if, filter._if)
319-
&& Objects.equals(this.propertyDrops, filter.propertyDrops)
318+
&& Objects.equals(this.drop, filter.drop)
319+
&& Objects.equals(this.dropProperties, filter.dropProperties)
320320
&& Objects.equals(this.allowProperties, filter.allowProperties);
321321
}
322322

@@ -327,11 +327,11 @@ public int hashCode() {
327327
workspaceId,
328328
integrationId,
329329
enabled,
330-
drop,
331330
name,
332331
description,
333332
_if,
334-
propertyDrops,
333+
drop,
334+
dropProperties,
335335
allowProperties);
336336
}
337337

@@ -343,11 +343,11 @@ public String toString() {
343343
sb.append(" workspaceId: ").append(toIndentedString(workspaceId)).append("\n");
344344
sb.append(" integrationId: ").append(toIndentedString(integrationId)).append("\n");
345345
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
346-
sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
347346
sb.append(" name: ").append(toIndentedString(name)).append("\n");
348347
sb.append(" description: ").append(toIndentedString(description)).append("\n");
349348
sb.append(" _if: ").append(toIndentedString(_if)).append("\n");
350-
sb.append(" propertyDrops: ").append(toIndentedString(propertyDrops)).append("\n");
349+
sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
350+
sb.append(" dropProperties: ").append(toIndentedString(dropProperties)).append("\n");
351351
sb.append(" allowProperties: ").append(toIndentedString(allowProperties)).append("\n");
352352
sb.append("}");
353353
return sb.toString();
@@ -374,11 +374,11 @@ private String toIndentedString(Object o) {
374374
openapiFields.add("workspaceId");
375375
openapiFields.add("integrationId");
376376
openapiFields.add("enabled");
377-
openapiFields.add("drop");
378377
openapiFields.add("name");
379378
openapiFields.add("description");
380379
openapiFields.add("if");
381-
openapiFields.add("propertyDrops");
380+
openapiFields.add("drop");
381+
openapiFields.add("dropProperties");
382382
openapiFields.add("allowProperties");
383383

384384
// a set of required properties/fields (JSON key names)
@@ -474,14 +474,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
474474
jsonObj.get("if").toString()));
475475
}
476476
// ensure the optional json data is an array if present
477-
if (jsonObj.get("propertyDrops") != null
478-
&& !jsonObj.get("propertyDrops").isJsonNull()
479-
&& !jsonObj.get("propertyDrops").isJsonArray()) {
477+
if (jsonObj.get("dropProperties") != null
478+
&& !jsonObj.get("dropProperties").isJsonNull()
479+
&& !jsonObj.get("dropProperties").isJsonArray()) {
480480
throw new IllegalArgumentException(
481481
String.format(
482-
"Expected the field `propertyDrops` to be an array in the JSON string"
482+
"Expected the field `dropProperties` to be an array in the JSON string"
483483
+ " but got `%s`",
484-
jsonObj.get("propertyDrops").toString()));
484+
jsonObj.get("dropProperties").toString()));
485485
}
486486
// ensure the optional json data is an array if present
487487
if (jsonObj.get("allowProperties") != null

0 commit comments

Comments
 (0)