Skip to content

Commit aa24520

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

11 files changed

Lines changed: 542 additions & 38 deletions

‎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: 73.3.0
13+
Latest API and SDK version: 73.4.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>73.3.0</version>
31+
<version>73.4.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:73.3.0"
47+
implementation "com.segment.publicapi:segment-publicapi:73.4.0"
4848
}
4949
```
5050

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

5959
Then manually install the following JARs:
6060

61-
* `target/segment-publicapi-73.3.0.jar`
61+
* `target/segment-publicapi-73.4.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-
73.3.0
1+
73.4.0

‎docs/AudiencesApi.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ public class Example {
558558
559559
List Audience Consumers from Space And Audience
560560

561-
Returns the list of consumers for the given audience. • This endpoint is in **Alpha** 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 25 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.
561+
Returns the list of consumers for the given audience. • 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 25 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.
562562

563563
### Example
564564

@@ -621,7 +621,7 @@ public class Example {
621621
### HTTP request headers
622622

623623
- **Content-Type**: Not defined
624-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
624+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
625625

626626

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

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

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,10 +1113,17 @@ private static Class getClassByDiscriminator(
11131113
new com.segment.publicapi.models
11141114
.ListAudienceConsumersFromSpaceAndAudience200Response
11151115
.CustomTypeAdapterFactory());
1116+
gsonBuilder.registerTypeAdapterFactory(
1117+
new com.segment.publicapi.models
1118+
.ListAudienceConsumersFromSpaceAndAudience200Response1
1119+
.CustomTypeAdapterFactory());
11161120
gsonBuilder.registerTypeAdapterFactory(
11171121
new com.segment.publicapi.models
11181122
.ListAudienceConsumersFromSpaceAndAudienceAlphaOutput
11191123
.CustomTypeAdapterFactory());
1124+
gsonBuilder.registerTypeAdapterFactory(
1125+
new com.segment.publicapi.models.ListAudienceConsumersFromSpaceAndAudienceOutput
1126+
.CustomTypeAdapterFactory());
11201127
gsonBuilder.registerTypeAdapterFactory(
11211128
new com.segment.publicapi.models.ListAudienceConsumersSortInput
11221129
.CustomTypeAdapterFactory());

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

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,9 @@ public okhttp3.Call listAudienceConsumersFromSpaceAndAudienceCall(
16391639
}
16401640

16411641
final String[] localVarAccepts = {
1642-
"application/vnd.segment.v1alpha+json", "application/json"
1642+
"application/vnd.segment.v1+json",
1643+
"application/json",
1644+
"application/vnd.segment.v1alpha+json"
16431645
};
16441646
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
16451647
if (localVarAccept != null) {
@@ -1697,13 +1699,12 @@ private okhttp3.Call listAudienceConsumersFromSpaceAndAudienceValidateBeforeCall
16971699

16981700
/**
16991701
* List Audience Consumers from Space And Audience Returns the list of consumers for the given
1700-
* audience. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an
1701-
* email to friends@segment.com. • In order to successfully call this endpoint, the specified
1702-
* Workspace needs to have the Audience feature enabled. Please reach out to your customer
1703-
* success manager for more information. The rate limit for this endpoint is 25 requests per
1704-
* minute, which is lower than the default due to access pattern restrictions. Once reached,
1705-
* this endpoint will respond with the 429 HTTP status code with headers indicating the limit
1706-
* parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
1702+
* audience. • In order to successfully call this endpoint, the specified Workspace needs to
1703+
* have the Audience feature enabled. Please reach out to your customer success manager for more
1704+
* information. The rate limit for this endpoint is 25 requests per minute, which is lower than
1705+
* the default due to access pattern restrictions. Once reached, this endpoint will respond with
1706+
* the 429 HTTP status code with headers indicating the limit parameters. See [Rate
1707+
* Limiting](/#tag/Rate-Limits) for more information.
17071708
*
17081709
* @param spaceId (required)
17091710
* @param id (required)
@@ -1740,13 +1741,12 @@ private okhttp3.Call listAudienceConsumersFromSpaceAndAudienceValidateBeforeCall
17401741

17411742
/**
17421743
* List Audience Consumers from Space And Audience Returns the list of consumers for the given
1743-
* audience. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an
1744-
* email to friends@segment.com. • In order to successfully call this endpoint, the specified
1745-
* Workspace needs to have the Audience feature enabled. Please reach out to your customer
1746-
* success manager for more information. The rate limit for this endpoint is 25 requests per
1747-
* minute, which is lower than the default due to access pattern restrictions. Once reached,
1748-
* this endpoint will respond with the 429 HTTP status code with headers indicating the limit
1749-
* parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
1744+
* audience. • In order to successfully call this endpoint, the specified Workspace needs to
1745+
* have the Audience feature enabled. Please reach out to your customer success manager for more
1746+
* information. The rate limit for this endpoint is 25 requests per minute, which is lower than
1747+
* the default due to access pattern restrictions. Once reached, this endpoint will respond with
1748+
* the 429 HTTP status code with headers indicating the limit parameters. See [Rate
1749+
* Limiting](/#tag/Rate-Limits) for more information.
17501750
*
17511751
* @param spaceId (required)
17521752
* @param id (required)
@@ -1785,14 +1785,12 @@ private okhttp3.Call listAudienceConsumersFromSpaceAndAudienceValidateBeforeCall
17851785

17861786
/**
17871787
* List Audience Consumers from Space And Audience (asynchronously) Returns the list of
1788-
* consumers for the given audience. • This endpoint is in **Alpha** testing. Please submit any
1789-
* feedback by sending an email to friends@segment.com. • In order to successfully call this
1790-
* endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach
1791-
* out to your customer success manager for more information. The rate limit for this endpoint
1792-
* is 25 requests per minute, which is lower than the default due to access pattern
1793-
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
1794-
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
1795-
* information.
1788+
* consumers for the given audience. • In order to successfully call this endpoint, the
1789+
* specified Workspace needs to have the Audience feature enabled. Please reach out to your
1790+
* customer success manager for more information. The rate limit for this endpoint is 25
1791+
* requests per minute, which is lower than the default due to access pattern restrictions. Once
1792+
* reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
1793+
* limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
17961794
*
17971795
* @param spaceId (required)
17981796
* @param id (required)

‎src/main/java/com/segment/publicapi/models/ListAudienceConsumersFromSpaceAndAudience200Response.java‎

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

3434
@SerializedName(SERIALIZED_NAME_DATA)
35-
private ListAudienceConsumersFromSpaceAndAudienceAlphaOutput data;
35+
private ListAudienceConsumersFromSpaceAndAudienceOutput data;
3636

3737
public ListAudienceConsumersFromSpaceAndAudience200Response() {}
3838

3939
public ListAudienceConsumersFromSpaceAndAudience200Response data(
40-
ListAudienceConsumersFromSpaceAndAudienceAlphaOutput data) {
40+
ListAudienceConsumersFromSpaceAndAudienceOutput data) {
4141

4242
this.data = data;
4343
return this;
@@ -49,11 +49,11 @@ public ListAudienceConsumersFromSpaceAndAudience200Response data(
4949
* @return data
5050
*/
5151
@javax.annotation.Nullable
52-
public ListAudienceConsumersFromSpaceAndAudienceAlphaOutput getData() {
52+
public ListAudienceConsumersFromSpaceAndAudienceOutput getData() {
5353
return data;
5454
}
5555

56-
public void setData(ListAudienceConsumersFromSpaceAndAudienceAlphaOutput data) {
56+
public void setData(ListAudienceConsumersFromSpaceAndAudienceOutput data) {
5757
this.data = data;
5858
}
5959

@@ -146,7 +146,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
146146
JsonObject jsonObj = jsonElement.getAsJsonObject();
147147
// validate the optional field `data`
148148
if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) {
149-
ListAudienceConsumersFromSpaceAndAudienceAlphaOutput.validateJsonElement(
149+
ListAudienceConsumersFromSpaceAndAudienceOutput.validateJsonElement(
150150
jsonObj.get("data"));
151151
}
152152
}

0 commit comments

Comments
 (0)