diff --git a/README.md b/README.md
index 1cf70252..7b4b03a4 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ All endpoints in the API follow REST conventions and use standard HTTP methods.
See the next sections for more information on how to use the Segment Public API Java SDK.
-Latest API and SDK version: 54.3.0
+Latest API and SDK version: 55.0.0
## Requirements
@@ -28,7 +28,7 @@ Add this dependency to your project's POM:
com.segment.publicapi
segment-publicapi
- 54.3.0
+ 55.0.0
compile
```
@@ -44,7 +44,7 @@ Add this dependency to your project's build file:
}
dependencies {
- implementation "com.segment.publicapi:segment-publicapi:54.3.0"
+ implementation "com.segment.publicapi:segment-publicapi:55.0.0"
}
```
@@ -58,7 +58,7 @@ mvn clean package
Then manually install the following JARs:
-* `target/segment-publicapi-54.3.0.jar`
+* `target/segment-publicapi-55.0.0.jar`
* `target/lib/*.jar`
You are now ready to start making calls to Public API!
diff --git a/pom.xml b/pom.xml
index d483c809..63301ac0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
segment-publicapi
jar
segment-publicapi
- 54.3.0
+ 55.0.0
https://segment.com/docs/api/public-api/
Segment Public API
diff --git a/src/main/java/com/segment/publicapi/ApiClient.java b/src/main/java/com/segment/publicapi/ApiClient.java
index 3344eb27..09c49e4a 100644
--- a/src/main/java/com/segment/publicapi/ApiClient.java
+++ b/src/main/java/com/segment/publicapi/ApiClient.java
@@ -123,7 +123,7 @@ private void init() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("Public API SDK 54.3.0 (Java)");
+ setUserAgent("Public API SDK 55.0.0 (Java)");
authentications = new HashMap();
}
diff --git a/src/main/java/com/segment/publicapi/Configuration.java b/src/main/java/com/segment/publicapi/Configuration.java
index ee0b0c2f..987ef005 100644
--- a/src/main/java/com/segment/publicapi/Configuration.java
+++ b/src/main/java/com/segment/publicapi/Configuration.java
@@ -12,7 +12,7 @@
package com.segment.publicapi;
public class Configuration {
- public static final String VERSION = "54.3.0";
+ public static final String VERSION = "55.0.0";
private static ApiClient defaultApiClient = new ApiClient();
diff --git a/src/main/java/com/segment/publicapi/models/CreateTransformationV1Input.java b/src/main/java/com/segment/publicapi/models/CreateTransformationV1Input.java
index 09b1758c..ae2ef47d 100644
--- a/src/main/java/com/segment/publicapi/models/CreateTransformationV1Input.java
+++ b/src/main/java/com/segment/publicapi/models/CreateTransformationV1Input.java
@@ -57,6 +57,11 @@ public class CreateTransformationV1Input {
@SerializedName(SERIALIZED_NAME_IF)
private String _if;
+ public static final String SERIALIZED_NAME_DROP = "drop";
+
+ @SerializedName(SERIALIZED_NAME_DROP)
+ private Boolean drop;
+
public static final String SERIALIZED_NAME_NEW_EVENT_NAME = "newEventName";
@SerializedName(SERIALIZED_NAME_NEW_EVENT_NAME)
@@ -195,6 +200,27 @@ public void setIf(String _if) {
this._if = _if;
}
+ public CreateTransformationV1Input drop(Boolean drop) {
+
+ this.drop = drop;
+ return this;
+ }
+
+ /**
+ * Optional boolean value if the Transformation should drop the event entirely when the if
+ * statement matches, ignores all other transforms.
+ *
+ * @return drop
+ */
+ @javax.annotation.Nullable
+ public Boolean getDrop() {
+ return drop;
+ }
+
+ public void setDrop(Boolean drop) {
+ this.drop = drop;
+ }
+
public CreateTransformationV1Input newEventName(String newEventName) {
this.newEventName = newEventName;
@@ -373,6 +399,7 @@ public boolean equals(Object o) {
createTransformationV1Input.destinationMetadataId)
&& Objects.equals(this.enabled, createTransformationV1Input.enabled)
&& Objects.equals(this._if, createTransformationV1Input._if)
+ && Objects.equals(this.drop, createTransformationV1Input.drop)
&& Objects.equals(this.newEventName, createTransformationV1Input.newEventName)
&& Objects.equals(this.propertyRenames, createTransformationV1Input.propertyRenames)
&& Objects.equals(
@@ -394,6 +421,7 @@ public int hashCode() {
destinationMetadataId,
enabled,
_if,
+ drop,
newEventName,
propertyRenames,
propertyValueTransformations,
@@ -413,6 +441,7 @@ public String toString() {
.append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" _if: ").append(toIndentedString(_if)).append("\n");
+ sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
sb.append(" newEventName: ").append(toIndentedString(newEventName)).append("\n");
sb.append(" propertyRenames: ").append(toIndentedString(propertyRenames)).append("\n");
sb.append(" propertyValueTransformations: ")
@@ -451,6 +480,7 @@ private String toIndentedString(Object o) {
openapiFields.add("destinationMetadataId");
openapiFields.add("enabled");
openapiFields.add("if");
+ openapiFields.add("drop");
openapiFields.add("newEventName");
openapiFields.add("propertyRenames");
openapiFields.add("propertyValueTransformations");
diff --git a/src/main/java/com/segment/publicapi/models/TransformationV1.java b/src/main/java/com/segment/publicapi/models/TransformationV1.java
index 7d9380a7..6bbc7712 100644
--- a/src/main/java/com/segment/publicapi/models/TransformationV1.java
+++ b/src/main/java/com/segment/publicapi/models/TransformationV1.java
@@ -62,6 +62,11 @@ public class TransformationV1 {
@SerializedName(SERIALIZED_NAME_IF)
private String _if;
+ public static final String SERIALIZED_NAME_DROP = "drop";
+
+ @SerializedName(SERIALIZED_NAME_DROP)
+ private Boolean drop;
+
public static final String SERIALIZED_NAME_NEW_EVENT_NAME = "newEventName";
@SerializedName(SERIALIZED_NAME_NEW_EVENT_NAME)
@@ -220,6 +225,27 @@ public void setIf(String _if) {
this._if = _if;
}
+ public TransformationV1 drop(Boolean drop) {
+
+ this.drop = drop;
+ return this;
+ }
+
+ /**
+ * Optional boolean value if the Transformation should drop the event entirely when the if
+ * statement matches, ignores all other transforms.
+ *
+ * @return drop
+ */
+ @javax.annotation.Nullable
+ public Boolean getDrop() {
+ return drop;
+ }
+
+ public void setDrop(Boolean drop) {
+ this.drop = drop;
+ }
+
public TransformationV1 newEventName(String newEventName) {
this.newEventName = newEventName;
@@ -395,6 +421,7 @@ public boolean equals(Object o) {
this.destinationMetadataId, transformationV1.destinationMetadataId)
&& Objects.equals(this.enabled, transformationV1.enabled)
&& Objects.equals(this._if, transformationV1._if)
+ && Objects.equals(this.drop, transformationV1.drop)
&& Objects.equals(this.newEventName, transformationV1.newEventName)
&& Objects.equals(this.propertyRenames, transformationV1.propertyRenames)
&& Objects.equals(
@@ -416,6 +443,7 @@ public int hashCode() {
destinationMetadataId,
enabled,
_if,
+ drop,
newEventName,
propertyRenames,
propertyValueTransformations,
@@ -436,6 +464,7 @@ public String toString() {
.append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" _if: ").append(toIndentedString(_if)).append("\n");
+ sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
sb.append(" newEventName: ").append(toIndentedString(newEventName)).append("\n");
sb.append(" propertyRenames: ").append(toIndentedString(propertyRenames)).append("\n");
sb.append(" propertyValueTransformations: ")
@@ -475,6 +504,7 @@ private String toIndentedString(Object o) {
openapiFields.add("destinationMetadataId");
openapiFields.add("enabled");
openapiFields.add("if");
+ openapiFields.add("drop");
openapiFields.add("newEventName");
openapiFields.add("propertyRenames");
openapiFields.add("propertyValueTransformations");
diff --git a/src/main/java/com/segment/publicapi/models/UpdateTransformationV1Input.java b/src/main/java/com/segment/publicapi/models/UpdateTransformationV1Input.java
index 3e0c1231..ff9bacae 100644
--- a/src/main/java/com/segment/publicapi/models/UpdateTransformationV1Input.java
+++ b/src/main/java/com/segment/publicapi/models/UpdateTransformationV1Input.java
@@ -57,6 +57,11 @@ public class UpdateTransformationV1Input {
@SerializedName(SERIALIZED_NAME_IF)
private String _if;
+ public static final String SERIALIZED_NAME_DROP = "drop";
+
+ @SerializedName(SERIALIZED_NAME_DROP)
+ private Boolean drop;
+
public static final String SERIALIZED_NAME_NEW_EVENT_NAME = "newEventName";
@SerializedName(SERIALIZED_NAME_NEW_EVENT_NAME)
@@ -195,6 +200,27 @@ public void setIf(String _if) {
this._if = _if;
}
+ public UpdateTransformationV1Input drop(Boolean drop) {
+
+ this.drop = drop;
+ return this;
+ }
+
+ /**
+ * Optional boolean value if the Transformation should drop the event entirely when the if
+ * statement matches, ignores all other transforms.
+ *
+ * @return drop
+ */
+ @javax.annotation.Nullable
+ public Boolean getDrop() {
+ return drop;
+ }
+
+ public void setDrop(Boolean drop) {
+ this.drop = drop;
+ }
+
public UpdateTransformationV1Input newEventName(String newEventName) {
this.newEventName = newEventName;
@@ -373,6 +399,7 @@ public boolean equals(Object o) {
updateTransformationV1Input.destinationMetadataId)
&& Objects.equals(this.enabled, updateTransformationV1Input.enabled)
&& Objects.equals(this._if, updateTransformationV1Input._if)
+ && Objects.equals(this.drop, updateTransformationV1Input.drop)
&& Objects.equals(this.newEventName, updateTransformationV1Input.newEventName)
&& Objects.equals(this.propertyRenames, updateTransformationV1Input.propertyRenames)
&& Objects.equals(
@@ -394,6 +421,7 @@ public int hashCode() {
destinationMetadataId,
enabled,
_if,
+ drop,
newEventName,
propertyRenames,
propertyValueTransformations,
@@ -413,6 +441,7 @@ public String toString() {
.append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" _if: ").append(toIndentedString(_if)).append("\n");
+ sb.append(" drop: ").append(toIndentedString(drop)).append("\n");
sb.append(" newEventName: ").append(toIndentedString(newEventName)).append("\n");
sb.append(" propertyRenames: ").append(toIndentedString(propertyRenames)).append("\n");
sb.append(" propertyValueTransformations: ")
@@ -451,6 +480,7 @@ private String toIndentedString(Object o) {
openapiFields.add("destinationMetadataId");
openapiFields.add("enabled");
openapiFields.add("if");
+ openapiFields.add("drop");
openapiFields.add("newEventName");
openapiFields.add("propertyRenames");
openapiFields.add("propertyValueTransformations");