Skip to content

Commit

Permalink
Automated SDK update
Browse files Browse the repository at this point in the history
This updates the SDK from internal repo commit segmentio/public-api@95f95e53.
  • Loading branch information
APIs and Common Services team committed Oct 2, 2024
1 parent 1786aaf commit cc32ec2
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -28,7 +28,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.segment.publicapi</groupId>
<artifactId>segment-publicapi</artifactId>
<version>54.3.0</version>
<version>55.0.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -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"
}
```

Expand All @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>segment-publicapi</artifactId>
<packaging>jar</packaging>
<name>segment-publicapi</name>
<version>54.3.0</version>
<version>55.0.0</version>
<url>https://segment.com/docs/api/public-api/</url>
<description>Segment Public API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/segment/publicapi/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/segment/publicapi/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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(
Expand All @@ -394,6 +421,7 @@ public int hashCode() {
destinationMetadataId,
enabled,
_if,
drop,
newEventName,
propertyRenames,
propertyValueTransformations,
Expand All @@ -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: ")
Expand Down Expand Up @@ -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");
Expand Down
30 changes: 30 additions & 0 deletions src/main/java/com/segment/publicapi/models/TransformationV1.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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(
Expand All @@ -416,6 +443,7 @@ public int hashCode() {
destinationMetadataId,
enabled,
_if,
drop,
newEventName,
propertyRenames,
propertyValueTransformations,
Expand All @@ -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: ")
Expand Down Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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(
Expand All @@ -394,6 +421,7 @@ public int hashCode() {
destinationMetadataId,
enabled,
_if,
drop,
newEventName,
propertyRenames,
propertyValueTransformations,
Expand All @@ -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: ")
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit cc32ec2

Please sign in to comment.