Skip to content

Commit c02c4f7

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@abd727aa.
1 parent 94d36ce commit c02c4f7

File tree

12 files changed

+451
-45
lines changed

12 files changed

+451
-45
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: 68.0.0
13+
Latest API and SDK version: 69.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>68.0.0</version>
31+
<version>69.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:68.0.0"
47+
implementation "com.segment.publicapi:segment-publicapi:69.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-68.0.0.jar`
61+
* `target/segment-publicapi-69.0.0.jar`
6262
* `target/lib/*.jar`
6363

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

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
68.0.0
1+
69.0.0

docs/AudiencesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ public class Example {
406406
407407
Get Audience Preview
408408

409-
Reads the results of an audience preview. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information. The rate limit for this endpoint is 300 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
409+
Reads the results of an audience preview. • In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information. The rate limit for this endpoint is 300 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
410410

411411
### Example
412412

@@ -463,7 +463,7 @@ public class Example {
463463
### HTTP request headers
464464

465465
- **Content-Type**: Not defined
466-
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
466+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
467467

468468

469469
### HTTP response details

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>68.0.0</version>
8+
<version>69.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 68.0.0 (Java)");
126+
setUserAgent("Public API SDK 69.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 = "68.0.0";
15+
public static final String VERSION = "69.0.0";
1616

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,12 +781,18 @@ private static Class getClassByDiscriminator(
781781
gsonBuilder.registerTypeAdapterFactory(
782782
new com.segment.publicapi.models.GetAudiencePreview200Response1
783783
.CustomTypeAdapterFactory());
784+
gsonBuilder.registerTypeAdapterFactory(
785+
new com.segment.publicapi.models.GetAudiencePreview200Response2
786+
.CustomTypeAdapterFactory());
784787
gsonBuilder.registerTypeAdapterFactory(
785788
new com.segment.publicapi.models.GetAudiencePreviewAlphaOutput
786789
.CustomTypeAdapterFactory());
787790
gsonBuilder.registerTypeAdapterFactory(
788791
new com.segment.publicapi.models.GetAudiencePreviewBetaOutput
789792
.CustomTypeAdapterFactory());
793+
gsonBuilder.registerTypeAdapterFactory(
794+
new com.segment.publicapi.models.GetAudiencePreviewOutput
795+
.CustomTypeAdapterFactory());
790796
gsonBuilder.registerTypeAdapterFactory(
791797
new com.segment.publicapi.models.GetAudienceScheduleFromSpaceAndAudience200Response
792798
.CustomTypeAdapterFactory());

src/main/java/com/segment/publicapi/api/AudiencesApi.java

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,9 +1212,10 @@ public okhttp3.Call getAudiencePreviewCall(
12121212
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
12131213

12141214
final String[] localVarAccepts = {
1215+
"application/vnd.segment.v1+json",
1216+
"application/json",
12151217
"application/vnd.segment.v1beta+json",
1216-
"application/vnd.segment.v1alpha+json",
1217-
"application/json"
1218+
"application/vnd.segment.v1alpha+json"
12181219
};
12191220
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
12201221
if (localVarAccept != null) {
@@ -1263,14 +1264,13 @@ private okhttp3.Call getAudiencePreviewValidateBeforeCall(
12631264
}
12641265

12651266
/**
1266-
* Get Audience Preview Reads the results of an audience preview. • This endpoint is in **Beta**
1267-
* testing. Please submit any feedback by sending an email to friends@segment.com. • In order to
1268-
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
1269-
* enabled. Please reach out to your customer success manager for more information. The rate
1270-
* limit for this endpoint is 300 requests per minute, which is lower than the default due to
1271-
* access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP
1272-
* status code with headers indicating the limit parameters. See [Rate
1273-
* Limiting](/#tag/Rate-Limits) for more information.
1267+
* Get Audience Preview Reads the results of an audience preview. • In order to successfully
1268+
* call this endpoint, the specified Workspace needs to have the Audience feature enabled.
1269+
* Please reach out to your customer success manager for more information. The rate limit for
1270+
* this endpoint is 300 requests per minute, which is lower than the default due to access
1271+
* pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code
1272+
* with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
1273+
* information.
12741274
*
12751275
* @param spaceId (required)
12761276
* @param id (required)
@@ -1294,14 +1294,13 @@ public GetAudiencePreview200Response getAudiencePreview(String spaceId, String i
12941294
}
12951295

12961296
/**
1297-
* Get Audience Preview Reads the results of an audience preview. • This endpoint is in **Beta**
1298-
* testing. Please submit any feedback by sending an email to friends@segment.com. • In order to
1299-
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
1300-
* enabled. Please reach out to your customer success manager for more information. The rate
1301-
* limit for this endpoint is 300 requests per minute, which is lower than the default due to
1302-
* access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP
1303-
* status code with headers indicating the limit parameters. See [Rate
1304-
* Limiting](/#tag/Rate-Limits) for more information.
1297+
* Get Audience Preview Reads the results of an audience preview. • In order to successfully
1298+
* call this endpoint, the specified Workspace needs to have the Audience feature enabled.
1299+
* Please reach out to your customer success manager for more information. The rate limit for
1300+
* this endpoint is 300 requests per minute, which is lower than the default due to access
1301+
* pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code
1302+
* with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
1303+
* information.
13051304
*
13061305
* @param spaceId (required)
13071306
* @param id (required)
@@ -1325,13 +1324,12 @@ public ApiResponse<GetAudiencePreview200Response> getAudiencePreviewWithHttpInfo
13251324
}
13261325

13271326
/**
1328-
* Get Audience Preview (asynchronously) Reads the results of an audience preview. • This
1329-
* endpoint is in **Beta** testing. Please submit any feedback by sending an email to
1330-
* friends@segment.com. • In order to successfully call this endpoint, the specified Workspace
1331-
* needs to have the Audience feature enabled. Please reach out to your customer success manager
1332-
* for more information. The rate limit for this endpoint is 300 requests per minute, which is
1333-
* lower than the default due to access pattern restrictions. Once reached, this endpoint will
1334-
* respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate
1327+
* Get Audience Preview (asynchronously) Reads the results of an audience preview. • In order to
1328+
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
1329+
* enabled. Please reach out to your customer success manager for more information. The rate
1330+
* limit for this endpoint is 300 requests per minute, which is lower than the default due to
1331+
* access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP
1332+
* status code with headers indicating the limit parameters. See [Rate
13351333
* Limiting](/#tag/Rate-Limits) for more information.
13361334
*
13371335
* @param spaceId (required)

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ public class GetAudiencePreview200Response {
3232
public static final String SERIALIZED_NAME_DATA = "data";
3333

3434
@SerializedName(SERIALIZED_NAME_DATA)
35-
private GetAudiencePreviewBetaOutput data;
35+
private GetAudiencePreviewOutput data;
3636

3737
public GetAudiencePreview200Response() {}
3838

39-
public GetAudiencePreview200Response data(GetAudiencePreviewBetaOutput data) {
39+
public GetAudiencePreview200Response data(GetAudiencePreviewOutput data) {
4040

4141
this.data = data;
4242
return this;
@@ -48,11 +48,11 @@ public GetAudiencePreview200Response data(GetAudiencePreviewBetaOutput data) {
4848
* @return data
4949
*/
5050
@javax.annotation.Nullable
51-
public GetAudiencePreviewBetaOutput getData() {
51+
public GetAudiencePreviewOutput getData() {
5252
return data;
5353
}
5454

55-
public void setData(GetAudiencePreviewBetaOutput data) {
55+
public void setData(GetAudiencePreviewOutput data) {
5656
this.data = data;
5757
}
5858

@@ -139,7 +139,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
139139
JsonObject jsonObj = jsonElement.getAsJsonObject();
140140
// validate the optional field `data`
141141
if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) {
142-
GetAudiencePreviewBetaOutput.validateJsonElement(jsonObj.get("data"));
142+
GetAudiencePreviewOutput.validateJsonElement(jsonObj.get("data"));
143143
}
144144
}
145145

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ public class GetAudiencePreview200Response1 {
3232
public static final String SERIALIZED_NAME_DATA = "data";
3333

3434
@SerializedName(SERIALIZED_NAME_DATA)
35-
private GetAudiencePreviewAlphaOutput data;
35+
private GetAudiencePreviewBetaOutput data;
3636

3737
public GetAudiencePreview200Response1() {}
3838

39-
public GetAudiencePreview200Response1 data(GetAudiencePreviewAlphaOutput data) {
39+
public GetAudiencePreview200Response1 data(GetAudiencePreviewBetaOutput data) {
4040

4141
this.data = data;
4242
return this;
@@ -48,11 +48,11 @@ public GetAudiencePreview200Response1 data(GetAudiencePreviewAlphaOutput data) {
4848
* @return data
4949
*/
5050
@javax.annotation.Nullable
51-
public GetAudiencePreviewAlphaOutput getData() {
51+
public GetAudiencePreviewBetaOutput getData() {
5252
return data;
5353
}
5454

55-
public void setData(GetAudiencePreviewAlphaOutput data) {
55+
public void setData(GetAudiencePreviewBetaOutput data) {
5656
this.data = data;
5757
}
5858

@@ -139,7 +139,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
139139
JsonObject jsonObj = jsonElement.getAsJsonObject();
140140
// validate the optional field `data`
141141
if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) {
142-
GetAudiencePreviewAlphaOutput.validateJsonElement(jsonObj.get("data"));
142+
GetAudiencePreviewBetaOutput.validateJsonElement(jsonObj.get("data"));
143143
}
144144
}
145145

0 commit comments

Comments
 (0)