Skip to content

Commit 798a901

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@8d766bec.
1 parent 083776a commit 798a901

File tree

5 files changed

+40
-7
lines changed

5 files changed

+40
-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: 58.9.0
13+
Latest API and SDK version: 58.10.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>58.9.0</version>
31+
<version>58.10.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:58.9.0"
47+
implementation "com.segment.publicapi:segment-publicapi:58.10.0"
4848
}
4949
```
5050

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

5959
Then manually install the following JARs:
6060

61-
* `target/segment-publicapi-58.9.0.jar`
61+
* `target/segment-publicapi-58.10.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>58.9.0</version>
8+
<version>58.10.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 58.9.0 (Java)");
126+
setUserAgent("Public API SDK 58.10.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 = "58.9.0";
15+
public static final String VERSION = "58.10.0";
1616

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

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ public AudienceTypeEnum read(final JsonReader jsonReader) throws IOException {
9191
@SerializedName(SERIALIZED_NAME_COMPUTE_CADENCE)
9292
private AudienceComputeCadence computeCadence;
9393

94+
public static final String SERIALIZED_NAME_SIZE = "size";
95+
96+
@SerializedName(SERIALIZED_NAME_SIZE)
97+
private AudienceSize size;
98+
9499
public static final String SERIALIZED_NAME_OPTIONS = "options";
95100

96101
@SerializedName(SERIALIZED_NAME_OPTIONS)
@@ -204,6 +209,26 @@ public void setComputeCadence(AudienceComputeCadence computeCadence) {
204209
this.computeCadence = computeCadence;
205210
}
206211

212+
public AudienceSummaryWithAudienceTypeAndLookback size(AudienceSize size) {
213+
214+
this.size = size;
215+
return this;
216+
}
217+
218+
/**
219+
* Get size
220+
*
221+
* @return size
222+
*/
223+
@javax.annotation.Nullable
224+
public AudienceSize getSize() {
225+
return size;
226+
}
227+
228+
public void setSize(AudienceSize size) {
229+
this.size = size;
230+
}
231+
207232
public AudienceSummaryWithAudienceTypeAndLookback options(AudienceOptionsWithLookback options) {
208233

209234
this.options = options;
@@ -509,6 +534,7 @@ public boolean equals(Object o) {
509534
&& Objects.equals(
510535
this.computeCadence,
511536
audienceSummaryWithAudienceTypeAndLookback.computeCadence)
537+
&& Objects.equals(this.size, audienceSummaryWithAudienceTypeAndLookback.size)
512538
&& Objects.equals(this.options, audienceSummaryWithAudienceTypeAndLookback.options)
513539
&& Objects.equals(
514540
this.schedules, audienceSummaryWithAudienceTypeAndLookback.schedules)
@@ -537,6 +563,7 @@ public int hashCode() {
537563
return Objects.hash(
538564
audienceType,
539565
computeCadence,
566+
size,
540567
options,
541568
schedules,
542569
id,
@@ -559,6 +586,7 @@ public String toString() {
559586
sb.append("class AudienceSummaryWithAudienceTypeAndLookback {\n");
560587
sb.append(" audienceType: ").append(toIndentedString(audienceType)).append("\n");
561588
sb.append(" computeCadence: ").append(toIndentedString(computeCadence)).append("\n");
589+
sb.append(" size: ").append(toIndentedString(size)).append("\n");
562590
sb.append(" options: ").append(toIndentedString(options)).append("\n");
563591
sb.append(" schedules: ").append(toIndentedString(schedules)).append("\n");
564592
sb.append(" id: ").append(toIndentedString(id)).append("\n");
@@ -596,6 +624,7 @@ private String toIndentedString(Object o) {
596624
openapiFields = new HashSet<String>();
597625
openapiFields.add("audienceType");
598626
openapiFields.add("computeCadence");
627+
openapiFields.add("size");
599628
openapiFields.add("options");
600629
openapiFields.add("schedules");
601630
openapiFields.add("id");
@@ -682,6 +711,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
682711
}
683712
// validate the required field `computeCadence`
684713
AudienceComputeCadence.validateJsonElement(jsonObj.get("computeCadence"));
714+
// validate the optional field `size`
715+
if (jsonObj.get("size") != null && !jsonObj.get("size").isJsonNull()) {
716+
AudienceSize.validateJsonElement(jsonObj.get("size"));
717+
}
685718
// validate the optional field `options`
686719
if (jsonObj.get("options") != null && !jsonObj.get("options").isJsonNull()) {
687720
AudienceOptionsWithLookback.validateJsonElement(jsonObj.get("options"));

0 commit comments

Comments
 (0)