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@597e8eea.
  • Loading branch information
APIs and Common Services team committed Aug 6, 2024
1 parent 9de8cbb commit 4c00299
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 9 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: 50.3.0
Latest API and SDK version: 51.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>50.3.0</version>
<version>51.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:50.3.0"
implementation "com.segment.publicapi:segment-publicapi:51.0.0"
}
```

Expand All @@ -58,7 +58,7 @@ mvn clean package

Then manually install the following JARs:

* `target/segment-publicapi-50.3.0.jar`
* `target/segment-publicapi-51.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>50.3.0</version>
<version>51.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 50.3.0 (Java)");
setUserAgent("Public API SDK 51.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 = "50.3.0";
public static final String VERSION = "51.0.0";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException {
@SerializedName(SERIALIZED_NAME_ALLOW_NULL)
private Boolean allowNull;

public static final String SERIALIZED_NAME_HIDDEN = "hidden";

@SerializedName(SERIALIZED_NAME_HIDDEN)
private Boolean hidden;

public DestinationMetadataActionFieldV1() {}

public DestinationMetadataActionFieldV1 id(String id) {
Expand Down Expand Up @@ -423,6 +428,26 @@ public void setAllowNull(Boolean allowNull) {
this.allowNull = allowNull;
}

public DestinationMetadataActionFieldV1 hidden(Boolean hidden) {

this.hidden = hidden;
return this;
}

/**
* Whether the action field should be hidden or not.
*
* @return hidden
*/
@javax.annotation.Nullable
public Boolean getHidden() {
return hidden;
}

public void setHidden(Boolean hidden) {
this.hidden = hidden;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -445,7 +470,8 @@ public boolean equals(Object o) {
&& Objects.equals(this.multiple, destinationMetadataActionFieldV1.multiple)
&& Objects.equals(this.choices, destinationMetadataActionFieldV1.choices)
&& Objects.equals(this.dynamic, destinationMetadataActionFieldV1.dynamic)
&& Objects.equals(this.allowNull, destinationMetadataActionFieldV1.allowNull);
&& Objects.equals(this.allowNull, destinationMetadataActionFieldV1.allowNull)
&& Objects.equals(this.hidden, destinationMetadataActionFieldV1.hidden);
}

private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
Expand All @@ -472,7 +498,8 @@ public int hashCode() {
multiple,
choices,
dynamic,
allowNull);
allowNull,
hidden);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -499,6 +526,7 @@ public String toString() {
sb.append(" choices: ").append(toIndentedString(choices)).append("\n");
sb.append(" dynamic: ").append(toIndentedString(dynamic)).append("\n");
sb.append(" allowNull: ").append(toIndentedString(allowNull)).append("\n");
sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -533,6 +561,7 @@ private String toIndentedString(Object o) {
openapiFields.add("choices");
openapiFields.add("dynamic");
openapiFields.add("allowNull");
openapiFields.add("hidden");

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
Expand Down

0 comments on commit 4c00299

Please sign in to comment.