Skip to content

Commit 41cb7bc

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@f77d7546.
1 parent 0cae590 commit 41cb7bc

File tree

2 files changed

+77
-3
lines changed

2 files changed

+77
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public CreateFilterForSpaceInput integrationId(String integrationId) {
8080
}
8181

8282
/**
83-
* The Space id to filer on.
83+
* The Space id to filter on.
8484
*
8585
* @return integrationId
8686
*/

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

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ public class Filter {
8181
@SerializedName(SERIALIZED_NAME_ALLOW_PROPERTIES)
8282
private List<String> allowProperties;
8383

84+
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
85+
86+
@SerializedName(SERIALIZED_NAME_CREATED_AT)
87+
private String createdAt;
88+
89+
public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt";
90+
91+
@SerializedName(SERIALIZED_NAME_UPDATED_AT)
92+
private String updatedAt;
93+
8494
public Filter() {}
8595

8696
public Filter id(String id) {
@@ -299,6 +309,46 @@ public void setAllowProperties(List<String> allowProperties) {
299309
this.allowProperties = allowProperties;
300310
}
301311

312+
public Filter createdAt(String createdAt) {
313+
314+
this.createdAt = createdAt;
315+
return this;
316+
}
317+
318+
/**
319+
* The timestamp of this filter&#39;s creation.
320+
*
321+
* @return createdAt
322+
*/
323+
@javax.annotation.Nonnull
324+
public String getCreatedAt() {
325+
return createdAt;
326+
}
327+
328+
public void setCreatedAt(String createdAt) {
329+
this.createdAt = createdAt;
330+
}
331+
332+
public Filter updatedAt(String updatedAt) {
333+
334+
this.updatedAt = updatedAt;
335+
return this;
336+
}
337+
338+
/**
339+
* The timestamp of this filter&#39;s last change.
340+
*
341+
* @return updatedAt
342+
*/
343+
@javax.annotation.Nonnull
344+
public String getUpdatedAt() {
345+
return updatedAt;
346+
}
347+
348+
public void setUpdatedAt(String updatedAt) {
349+
this.updatedAt = updatedAt;
350+
}
351+
302352
@Override
303353
public boolean equals(Object o) {
304354
if (this == o) {
@@ -317,7 +367,9 @@ public boolean equals(Object o) {
317367
&& Objects.equals(this._if, filter._if)
318368
&& Objects.equals(this.drop, filter.drop)
319369
&& Objects.equals(this.dropProperties, filter.dropProperties)
320-
&& Objects.equals(this.allowProperties, filter.allowProperties);
370+
&& Objects.equals(this.allowProperties, filter.allowProperties)
371+
&& Objects.equals(this.createdAt, filter.createdAt)
372+
&& Objects.equals(this.updatedAt, filter.updatedAt);
321373
}
322374

323375
@Override
@@ -332,7 +384,9 @@ public int hashCode() {
332384
_if,
333385
drop,
334386
dropProperties,
335-
allowProperties);
387+
allowProperties,
388+
createdAt,
389+
updatedAt);
336390
}
337391

338392
@Override
@@ -349,6 +403,8 @@ public String toString() {
349403
sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
350404
sb.append(" dropProperties: ").append(toIndentedString(dropProperties)).append("\n");
351405
sb.append(" allowProperties: ").append(toIndentedString(allowProperties)).append("\n");
406+
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
407+
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
352408
sb.append("}");
353409
return sb.toString();
354410
}
@@ -380,12 +436,16 @@ private String toIndentedString(Object o) {
380436
openapiFields.add("drop");
381437
openapiFields.add("dropProperties");
382438
openapiFields.add("allowProperties");
439+
openapiFields.add("createdAt");
440+
openapiFields.add("updatedAt");
383441

384442
// a set of required properties/fields (JSON key names)
385443
openapiRequiredFields = new HashSet<String>();
386444
openapiRequiredFields.add("id");
387445
openapiRequiredFields.add("workspaceId");
388446
openapiRequiredFields.add("integrationId");
447+
openapiRequiredFields.add("createdAt");
448+
openapiRequiredFields.add("updatedAt");
389449
}
390450

391451
/**
@@ -493,6 +553,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
493553
+ " but got `%s`",
494554
jsonObj.get("allowProperties").toString()));
495555
}
556+
if (!jsonObj.get("createdAt").isJsonPrimitive()) {
557+
throw new IllegalArgumentException(
558+
String.format(
559+
"Expected the field `createdAt` to be a primitive type in the JSON"
560+
+ " string but got `%s`",
561+
jsonObj.get("createdAt").toString()));
562+
}
563+
if (!jsonObj.get("updatedAt").isJsonPrimitive()) {
564+
throw new IllegalArgumentException(
565+
String.format(
566+
"Expected the field `updatedAt` to be a primitive type in the JSON"
567+
+ " string but got `%s`",
568+
jsonObj.get("updatedAt").toString()));
569+
}
496570
}
497571

498572
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)