Skip to content

Commit cc32ec2

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@95f95e53.
1 parent 1786aaf commit cc32ec2

File tree

7 files changed

+97
-7
lines changed

7 files changed

+97
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ All endpoints in the API follow REST conventions and use standard HTTP methods.
1010

1111
See the next sections for more information on how to use the Segment Public API Java SDK.
1212

13-
Latest API and SDK version: 54.3.0
13+
Latest API and SDK version: 55.0.0
1414

1515
## Requirements
1616

@@ -28,7 +28,7 @@ Add this dependency to your project's POM:
2828
<dependency>
2929
<groupId>com.segment.publicapi</groupId>
3030
<artifactId>segment-publicapi</artifactId>
31-
<version>54.3.0</version>
31+
<version>55.0.0</version>
3232
<scope>compile</scope>
3333
</dependency>
3434
```
@@ -44,7 +44,7 @@ Add this dependency to your project's build file:
4444
}
4545
4646
dependencies {
47-
implementation "com.segment.publicapi:segment-publicapi:54.3.0"
47+
implementation "com.segment.publicapi:segment-publicapi:55.0.0"
4848
}
4949
```
5050

@@ -58,7 +58,7 @@ mvn clean package
5858

5959
Then manually install the following JARs:
6060

61-
* `target/segment-publicapi-54.3.0.jar`
61+
* `target/segment-publicapi-55.0.0.jar`
6262
* `target/lib/*.jar`
6363

6464
You are now ready to start making calls to Public API!

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>segment-publicapi</artifactId>
66
<packaging>jar</packaging>
77
<name>segment-publicapi</name>
8-
<version>54.3.0</version>
8+
<version>55.0.0</version>
99
<url>https://segment.com/docs/api/public-api/</url>
1010
<description>Segment Public API</description>
1111
<scm>

src/main/java/com/segment/publicapi/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private void init() {
123123
json = new JSON();
124124

125125
// Set default User-Agent.
126-
setUserAgent("Public API SDK 54.3.0 (Java)");
126+
setUserAgent("Public API SDK 55.0.0 (Java)");
127127

128128
authentications = new HashMap<String, Authentication>();
129129
}

src/main/java/com/segment/publicapi/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
package com.segment.publicapi;
1313

1414
public class Configuration {
15-
public static final String VERSION = "54.3.0";
15+
public static final String VERSION = "55.0.0";
1616

1717
private static ApiClient defaultApiClient = new ApiClient();
1818

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ public class CreateTransformationV1Input {
5757
@SerializedName(SERIALIZED_NAME_IF)
5858
private String _if;
5959

60+
public static final String SERIALIZED_NAME_DROP = "drop";
61+
62+
@SerializedName(SERIALIZED_NAME_DROP)
63+
private Boolean drop;
64+
6065
public static final String SERIALIZED_NAME_NEW_EVENT_NAME = "newEventName";
6166

6267
@SerializedName(SERIALIZED_NAME_NEW_EVENT_NAME)
@@ -195,6 +200,27 @@ public void setIf(String _if) {
195200
this._if = _if;
196201
}
197202

203+
public CreateTransformationV1Input drop(Boolean drop) {
204+
205+
this.drop = drop;
206+
return this;
207+
}
208+
209+
/**
210+
* Optional boolean value if the Transformation should drop the event entirely when the if
211+
* statement matches, ignores all other transforms.
212+
*
213+
* @return drop
214+
*/
215+
@javax.annotation.Nullable
216+
public Boolean getDrop() {
217+
return drop;
218+
}
219+
220+
public void setDrop(Boolean drop) {
221+
this.drop = drop;
222+
}
223+
198224
public CreateTransformationV1Input newEventName(String newEventName) {
199225

200226
this.newEventName = newEventName;
@@ -373,6 +399,7 @@ public boolean equals(Object o) {
373399
createTransformationV1Input.destinationMetadataId)
374400
&& Objects.equals(this.enabled, createTransformationV1Input.enabled)
375401
&& Objects.equals(this._if, createTransformationV1Input._if)
402+
&& Objects.equals(this.drop, createTransformationV1Input.drop)
376403
&& Objects.equals(this.newEventName, createTransformationV1Input.newEventName)
377404
&& Objects.equals(this.propertyRenames, createTransformationV1Input.propertyRenames)
378405
&& Objects.equals(
@@ -394,6 +421,7 @@ public int hashCode() {
394421
destinationMetadataId,
395422
enabled,
396423
_if,
424+
drop,
397425
newEventName,
398426
propertyRenames,
399427
propertyValueTransformations,
@@ -413,6 +441,7 @@ public String toString() {
413441
.append("\n");
414442
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
415443
sb.append(" _if: ").append(toIndentedString(_if)).append("\n");
444+
sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
416445
sb.append(" newEventName: ").append(toIndentedString(newEventName)).append("\n");
417446
sb.append(" propertyRenames: ").append(toIndentedString(propertyRenames)).append("\n");
418447
sb.append(" propertyValueTransformations: ")
@@ -451,6 +480,7 @@ private String toIndentedString(Object o) {
451480
openapiFields.add("destinationMetadataId");
452481
openapiFields.add("enabled");
453482
openapiFields.add("if");
483+
openapiFields.add("drop");
454484
openapiFields.add("newEventName");
455485
openapiFields.add("propertyRenames");
456486
openapiFields.add("propertyValueTransformations");

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ public class TransformationV1 {
6262
@SerializedName(SERIALIZED_NAME_IF)
6363
private String _if;
6464

65+
public static final String SERIALIZED_NAME_DROP = "drop";
66+
67+
@SerializedName(SERIALIZED_NAME_DROP)
68+
private Boolean drop;
69+
6570
public static final String SERIALIZED_NAME_NEW_EVENT_NAME = "newEventName";
6671

6772
@SerializedName(SERIALIZED_NAME_NEW_EVENT_NAME)
@@ -220,6 +225,27 @@ public void setIf(String _if) {
220225
this._if = _if;
221226
}
222227

228+
public TransformationV1 drop(Boolean drop) {
229+
230+
this.drop = drop;
231+
return this;
232+
}
233+
234+
/**
235+
* Optional boolean value if the Transformation should drop the event entirely when the if
236+
* statement matches, ignores all other transforms.
237+
*
238+
* @return drop
239+
*/
240+
@javax.annotation.Nullable
241+
public Boolean getDrop() {
242+
return drop;
243+
}
244+
245+
public void setDrop(Boolean drop) {
246+
this.drop = drop;
247+
}
248+
223249
public TransformationV1 newEventName(String newEventName) {
224250

225251
this.newEventName = newEventName;
@@ -395,6 +421,7 @@ public boolean equals(Object o) {
395421
this.destinationMetadataId, transformationV1.destinationMetadataId)
396422
&& Objects.equals(this.enabled, transformationV1.enabled)
397423
&& Objects.equals(this._if, transformationV1._if)
424+
&& Objects.equals(this.drop, transformationV1.drop)
398425
&& Objects.equals(this.newEventName, transformationV1.newEventName)
399426
&& Objects.equals(this.propertyRenames, transformationV1.propertyRenames)
400427
&& Objects.equals(
@@ -416,6 +443,7 @@ public int hashCode() {
416443
destinationMetadataId,
417444
enabled,
418445
_if,
446+
drop,
419447
newEventName,
420448
propertyRenames,
421449
propertyValueTransformations,
@@ -436,6 +464,7 @@ public String toString() {
436464
.append("\n");
437465
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
438466
sb.append(" _if: ").append(toIndentedString(_if)).append("\n");
467+
sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
439468
sb.append(" newEventName: ").append(toIndentedString(newEventName)).append("\n");
440469
sb.append(" propertyRenames: ").append(toIndentedString(propertyRenames)).append("\n");
441470
sb.append(" propertyValueTransformations: ")
@@ -475,6 +504,7 @@ private String toIndentedString(Object o) {
475504
openapiFields.add("destinationMetadataId");
476505
openapiFields.add("enabled");
477506
openapiFields.add("if");
507+
openapiFields.add("drop");
478508
openapiFields.add("newEventName");
479509
openapiFields.add("propertyRenames");
480510
openapiFields.add("propertyValueTransformations");

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ public class UpdateTransformationV1Input {
5757
@SerializedName(SERIALIZED_NAME_IF)
5858
private String _if;
5959

60+
public static final String SERIALIZED_NAME_DROP = "drop";
61+
62+
@SerializedName(SERIALIZED_NAME_DROP)
63+
private Boolean drop;
64+
6065
public static final String SERIALIZED_NAME_NEW_EVENT_NAME = "newEventName";
6166

6267
@SerializedName(SERIALIZED_NAME_NEW_EVENT_NAME)
@@ -195,6 +200,27 @@ public void setIf(String _if) {
195200
this._if = _if;
196201
}
197202

203+
public UpdateTransformationV1Input drop(Boolean drop) {
204+
205+
this.drop = drop;
206+
return this;
207+
}
208+
209+
/**
210+
* Optional boolean value if the Transformation should drop the event entirely when the if
211+
* statement matches, ignores all other transforms.
212+
*
213+
* @return drop
214+
*/
215+
@javax.annotation.Nullable
216+
public Boolean getDrop() {
217+
return drop;
218+
}
219+
220+
public void setDrop(Boolean drop) {
221+
this.drop = drop;
222+
}
223+
198224
public UpdateTransformationV1Input newEventName(String newEventName) {
199225

200226
this.newEventName = newEventName;
@@ -373,6 +399,7 @@ public boolean equals(Object o) {
373399
updateTransformationV1Input.destinationMetadataId)
374400
&& Objects.equals(this.enabled, updateTransformationV1Input.enabled)
375401
&& Objects.equals(this._if, updateTransformationV1Input._if)
402+
&& Objects.equals(this.drop, updateTransformationV1Input.drop)
376403
&& Objects.equals(this.newEventName, updateTransformationV1Input.newEventName)
377404
&& Objects.equals(this.propertyRenames, updateTransformationV1Input.propertyRenames)
378405
&& Objects.equals(
@@ -394,6 +421,7 @@ public int hashCode() {
394421
destinationMetadataId,
395422
enabled,
396423
_if,
424+
drop,
397425
newEventName,
398426
propertyRenames,
399427
propertyValueTransformations,
@@ -413,6 +441,7 @@ public String toString() {
413441
.append("\n");
414442
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
415443
sb.append(" _if: ").append(toIndentedString(_if)).append("\n");
444+
sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
416445
sb.append(" newEventName: ").append(toIndentedString(newEventName)).append("\n");
417446
sb.append(" propertyRenames: ").append(toIndentedString(propertyRenames)).append("\n");
418447
sb.append(" propertyValueTransformations: ")
@@ -451,6 +480,7 @@ private String toIndentedString(Object o) {
451480
openapiFields.add("destinationMetadataId");
452481
openapiFields.add("enabled");
453482
openapiFields.add("if");
483+
openapiFields.add("drop");
454484
openapiFields.add("newEventName");
455485
openapiFields.add("propertyRenames");
456486
openapiFields.add("propertyValueTransformations");

0 commit comments

Comments
 (0)