Skip to content

Commit 1dda0af

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

File tree

12 files changed

+443
-46
lines changed

12 files changed

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

docs/AudiencesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public class Example {
329329
330330
Get Audience
331331

332-
Returns the Audience by id and 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 100 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.
332+
Returns the Audience by id and 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 100 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.
333333

334334
### Example
335335

@@ -388,7 +388,7 @@ public class Example {
388388
### HTTP request headers
389389

390390
- **Content-Type**: Not defined
391-
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
391+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
392392

393393

394394
### 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>65.0.0</version>
8+
<version>66.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 65.0.0 (Java)");
126+
setUserAgent("Public API SDK 66.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 = "65.0.0";
15+
public static final String VERSION = "66.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
@@ -757,10 +757,15 @@ private static Class getClassByDiscriminator(
757757
gsonBuilder.registerTypeAdapterFactory(
758758
new com.segment.publicapi.models.GetAudience200Response1
759759
.CustomTypeAdapterFactory());
760+
gsonBuilder.registerTypeAdapterFactory(
761+
new com.segment.publicapi.models.GetAudience200Response2
762+
.CustomTypeAdapterFactory());
760763
gsonBuilder.registerTypeAdapterFactory(
761764
new com.segment.publicapi.models.GetAudienceAlphaOutput.CustomTypeAdapterFactory());
762765
gsonBuilder.registerTypeAdapterFactory(
763766
new com.segment.publicapi.models.GetAudienceBetaOutput.CustomTypeAdapterFactory());
767+
gsonBuilder.registerTypeAdapterFactory(
768+
new com.segment.publicapi.models.GetAudienceOutput.CustomTypeAdapterFactory());
764769
gsonBuilder.registerTypeAdapterFactory(
765770
new com.segment.publicapi.models.GetAudiencePreview200Response
766771
.CustomTypeAdapterFactory());

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

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,9 +1008,10 @@ public okhttp3.Call getAudienceCall(
10081008
}
10091009

10101010
final String[] localVarAccepts = {
1011+
"application/vnd.segment.v1+json",
1012+
"application/json",
10111013
"application/vnd.segment.v1beta+json",
1012-
"application/vnd.segment.v1alpha+json",
1013-
"application/json"
1014+
"application/vnd.segment.v1alpha+json"
10141015
};
10151016
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
10161017
if (localVarAccept != null) {
@@ -1060,14 +1061,12 @@ private okhttp3.Call getAudienceValidateBeforeCall(
10601061

10611062
/**
10621063
* Get Audience Returns the Audience by id and spaceId. Supports including audience schedules
1063-
* using &#x60;?include&#x3D;schedules&#x60;. • This endpoint is in **Beta** testing. Please
1064-
* submit any feedback by sending an email to friends@segment.com. • In order to successfully
1065-
* call this endpoint, the specified Workspace needs to have the Audience feature enabled.
1066-
* Please reach out to your customer success manager for more information. The rate limit for
1067-
* this endpoint is 100 requests per minute, which is lower than the default due to access
1068-
* pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code
1069-
* with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
1070-
* information.
1064+
* using &#x60;?include&#x3D;schedules&#x60;. • In order to successfully call this endpoint, the
1065+
* specified Workspace needs to have the Audience feature enabled. Please reach out to your
1066+
* customer success manager for more information. The rate limit for this endpoint is 100
1067+
* requests per minute, which is lower than the default due to access pattern restrictions. Once
1068+
* reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
1069+
* limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
10711070
*
10721071
* @param spaceId (required)
10731072
* @param id (required)
@@ -1094,14 +1093,12 @@ public GetAudience200Response getAudience(String spaceId, String id, String incl
10941093

10951094
/**
10961095
* Get Audience Returns the Audience by id and spaceId. Supports including audience schedules
1097-
* using &#x60;?include&#x3D;schedules&#x60;. • This endpoint is in **Beta** testing. Please
1098-
* submit any feedback by sending an email to friends@segment.com. • In order to successfully
1099-
* call this endpoint, the specified Workspace needs to have the Audience feature enabled.
1100-
* Please reach out to your customer success manager for more information. The rate limit for
1101-
* this endpoint is 100 requests per minute, which is lower than the default due to access
1102-
* pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code
1103-
* with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
1104-
* information.
1096+
* using &#x60;?include&#x3D;schedules&#x60;. • In order to successfully call this endpoint, the
1097+
* specified Workspace needs to have the Audience feature enabled. Please reach out to your
1098+
* customer success manager for more information. The rate limit for this endpoint is 100
1099+
* requests per minute, which is lower than the default due to access pattern restrictions. Once
1100+
* reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
1101+
* limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
11051102
*
11061103
* @param spaceId (required)
11071104
* @param id (required)
@@ -1128,14 +1125,13 @@ public ApiResponse<GetAudience200Response> getAudienceWithHttpInfo(
11281125

11291126
/**
11301127
* Get Audience (asynchronously) Returns the Audience by id and spaceId. Supports including
1131-
* audience schedules using &#x60;?include&#x3D;schedules&#x60;. • This endpoint is in **Beta**
1132-
* testing. Please submit any feedback by sending an email to friends@segment.com. • In order to
1133-
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
1134-
* enabled. Please reach out to your customer success manager for more information. The rate
1135-
* limit for this endpoint is 100 requests per minute, which is lower than the default due to
1136-
* access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP
1137-
* status code with headers indicating the limit parameters. See [Rate
1138-
* Limiting](/#tag/Rate-Limits) for more information.
1128+
* audience schedules using &#x60;?include&#x3D;schedules&#x60;. • In order to successfully call
1129+
* this endpoint, the specified Workspace needs to have the Audience feature enabled. Please
1130+
* reach out to your customer success manager for more information. The rate limit for this
1131+
* endpoint is 100 requests per minute, which is lower than the default due to access pattern
1132+
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
1133+
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
1134+
* information.
11391135
*
11401136
* @param spaceId (required)
11411137
* @param id (required)

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

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

3434
@SerializedName(SERIALIZED_NAME_DATA)
35-
private GetAudienceBetaOutput data;
35+
private GetAudienceOutput data;
3636

3737
public GetAudience200Response() {}
3838

39-
public GetAudience200Response data(GetAudienceBetaOutput data) {
39+
public GetAudience200Response data(GetAudienceOutput data) {
4040

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

55-
public void setData(GetAudienceBetaOutput data) {
55+
public void setData(GetAudienceOutput 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-
GetAudienceBetaOutput.validateJsonElement(jsonObj.get("data"));
140+
GetAudienceOutput.validateJsonElement(jsonObj.get("data"));
141141
}
142142
}
143143

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

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

3434
@SerializedName(SERIALIZED_NAME_DATA)
35-
private GetAudienceAlphaOutput data;
35+
private GetAudienceBetaOutput data;
3636

3737
public GetAudience200Response1() {}
3838

39-
public GetAudience200Response1 data(GetAudienceAlphaOutput data) {
39+
public GetAudience200Response1 data(GetAudienceBetaOutput data) {
4040

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

55-
public void setData(GetAudienceAlphaOutput data) {
55+
public void setData(GetAudienceBetaOutput 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-
GetAudienceAlphaOutput.validateJsonElement(jsonObj.get("data"));
140+
GetAudienceBetaOutput.validateJsonElement(jsonObj.get("data"));
141141
}
142142
}
143143

0 commit comments

Comments
 (0)