Skip to content

Commit e4de607

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@27e5e079.
1 parent 7282928 commit e4de607

File tree

12 files changed

+501
-46
lines changed

12 files changed

+501
-46
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: 66.0.0
13+
Latest API and SDK version: 67.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>66.0.0</version>
31+
<version>67.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:66.0.0"
47+
implementation "com.segment.publicapi:segment-publicapi:67.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-66.0.0.jar`
61+
* `target/segment-publicapi-67.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-
66.0.0
1+
67.0.0

docs/AudiencesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ public class Example {
714714
715715
List Audiences
716716

717-
Returns Audiences by spaceId. Supports including audience schedules using &#x60;?include&#x3D;schedules&#x60;. • 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 60 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.
717+
Returns Audiences by spaceId. Supports including audience schedules using &#x60;?include&#x3D;schedules&#x60;. • 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 60 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.
718718

719719
### Example
720720

@@ -775,7 +775,7 @@ public class Example {
775775
### HTTP request headers
776776

777777
- **Content-Type**: Not defined
778-
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
778+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
779779

780780

781781
### 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>66.0.0</version>
8+
<version>67.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 66.0.0 (Java)");
126+
setUserAgent("Public API SDK 67.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 = "66.0.0";
15+
public static final String VERSION = "67.0.0";
1616

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

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,12 +1061,17 @@ private static Class getClassByDiscriminator(
10611061
gsonBuilder.registerTypeAdapterFactory(
10621062
new com.segment.publicapi.models.ListAudiences200Response1
10631063
.CustomTypeAdapterFactory());
1064+
gsonBuilder.registerTypeAdapterFactory(
1065+
new com.segment.publicapi.models.ListAudiences200Response2
1066+
.CustomTypeAdapterFactory());
10641067
gsonBuilder.registerTypeAdapterFactory(
10651068
new com.segment.publicapi.models.ListAudiencesAlphaOutput
10661069
.CustomTypeAdapterFactory());
10671070
gsonBuilder.registerTypeAdapterFactory(
10681071
new com.segment.publicapi.models.ListAudiencesBetaOutput
10691072
.CustomTypeAdapterFactory());
1073+
gsonBuilder.registerTypeAdapterFactory(
1074+
new com.segment.publicapi.models.ListAudiencesOutput.CustomTypeAdapterFactory());
10701075
gsonBuilder.registerTypeAdapterFactory(
10711076
new com.segment.publicapi.models.ListAudiencesPaginationInput
10721077
.CustomTypeAdapterFactory());

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

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,9 +2101,10 @@ public okhttp3.Call listAudiencesCall(
21012101
}
21022102

21032103
final String[] localVarAccepts = {
2104+
"application/vnd.segment.v1+json",
2105+
"application/json",
21042106
"application/vnd.segment.v1beta+json",
2105-
"application/vnd.segment.v1alpha+json",
2106-
"application/json"
2107+
"application/vnd.segment.v1alpha+json"
21072108
};
21082109
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
21092110
if (localVarAccept != null) {
@@ -2151,14 +2152,12 @@ private okhttp3.Call listAudiencesValidateBeforeCall(
21512152

21522153
/**
21532154
* List Audiences Returns Audiences by spaceId. Supports including audience schedules using
2154-
* &#x60;?include&#x3D;schedules&#x60;. • This endpoint is in **Beta** testing. Please submit
2155-
* any feedback by sending an email to friends@segment.com. • In order to successfully call this
2156-
* endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach
2157-
* out to your customer success manager for more information. The rate limit for this endpoint
2158-
* is 60 requests per minute, which is lower than the default due to access pattern
2159-
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
2160-
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
2161-
* information.
2155+
* &#x60;?include&#x3D;schedules&#x60;. • In order to successfully call this endpoint, the
2156+
* specified Workspace needs to have the Audience feature enabled. Please reach out to your
2157+
* customer success manager for more information. The rate limit for this endpoint is 60
2158+
* requests per minute, which is lower than the default due to access pattern restrictions. Once
2159+
* reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
2160+
* limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
21622161
*
21632162
* @param spaceId (required)
21642163
* @param search Optional search criteria This parameter exists in alpha. (optional)
@@ -2192,14 +2191,12 @@ public ListAudiences200Response listAudiences(
21922191

21932192
/**
21942193
* List Audiences Returns Audiences by spaceId. Supports including audience schedules using
2195-
* &#x60;?include&#x3D;schedules&#x60;. • This endpoint is in **Beta** testing. Please submit
2196-
* any feedback by sending an email to friends@segment.com. • In order to successfully call this
2197-
* endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach
2198-
* out to your customer success manager for more information. The rate limit for this endpoint
2199-
* is 60 requests per minute, which is lower than the default due to access pattern
2200-
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
2201-
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
2202-
* information.
2194+
* &#x60;?include&#x3D;schedules&#x60;. • In order to successfully call this endpoint, the
2195+
* specified Workspace needs to have the Audience feature enabled. Please reach out to your
2196+
* customer success manager for more information. The rate limit for this endpoint is 60
2197+
* requests per minute, which is lower than the default due to access pattern restrictions. Once
2198+
* reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
2199+
* limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
22032200
*
22042201
* @param spaceId (required)
22052202
* @param search Optional search criteria This parameter exists in alpha. (optional)
@@ -2234,14 +2231,13 @@ public ApiResponse<ListAudiences200Response> listAudiencesWithHttpInfo(
22342231

22352232
/**
22362233
* List Audiences (asynchronously) Returns Audiences by spaceId. Supports including audience
2237-
* schedules using &#x60;?include&#x3D;schedules&#x60;. • This endpoint is in **Beta** testing.
2238-
* Please submit any feedback by sending an email to friends@segment.com. • In order to
2239-
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
2240-
* enabled. Please reach out to your customer success manager for more information. The rate
2241-
* limit for this endpoint is 60 requests per minute, which is lower than the default due to
2242-
* access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP
2243-
* status code with headers indicating the limit parameters. See [Rate
2244-
* Limiting](/#tag/Rate-Limits) for more information.
2234+
* schedules using &#x60;?include&#x3D;schedules&#x60;. • In order to successfully call this
2235+
* endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach
2236+
* out to your customer success manager for more information. The rate limit for this endpoint
2237+
* is 60 requests per minute, which is lower than the default due to access pattern
2238+
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
2239+
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
2240+
* information.
22452241
*
22462242
* @param spaceId (required)
22472243
* @param search Optional search criteria This parameter exists in alpha. (optional)

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

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

3434
@SerializedName(SERIALIZED_NAME_DATA)
35-
private ListAudiencesBetaOutput data;
35+
private ListAudiencesOutput data;
3636

3737
public ListAudiences200Response() {}
3838

39-
public ListAudiences200Response data(ListAudiencesBetaOutput data) {
39+
public ListAudiences200Response data(ListAudiencesOutput data) {
4040

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

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

@@ -137,7 +137,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
137137
JsonObject jsonObj = jsonElement.getAsJsonObject();
138138
// validate the optional field `data`
139139
if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) {
140-
ListAudiencesBetaOutput.validateJsonElement(jsonObj.get("data"));
140+
ListAudiencesOutput.validateJsonElement(jsonObj.get("data"));
141141
}
142142
}
143143

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

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

3434
@SerializedName(SERIALIZED_NAME_DATA)
35-
private ListAudiencesAlphaOutput data;
35+
private ListAudiencesBetaOutput data;
3636

3737
public ListAudiences200Response1() {}
3838

39-
public ListAudiences200Response1 data(ListAudiencesAlphaOutput data) {
39+
public ListAudiences200Response1 data(ListAudiencesBetaOutput data) {
4040

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

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

@@ -137,7 +137,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
137137
JsonObject jsonObj = jsonElement.getAsJsonObject();
138138
// validate the optional field `data`
139139
if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) {
140-
ListAudiencesAlphaOutput.validateJsonElement(jsonObj.get("data"));
140+
ListAudiencesBetaOutput.validateJsonElement(jsonObj.get("data"));
141141
}
142142
}
143143

0 commit comments

Comments
 (0)