Skip to content

Commit 3c686aa

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@f9cd868c.
1 parent 4e01b38 commit 3c686aa

15 files changed

+1681
-37
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.2.0
13+
Latest API and SDK version: 58.3.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.2.0</version>
31+
<version>58.3.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.2.0"
47+
implementation "com.segment.publicapi:segment-publicapi:58.3.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.2.0.jar`
61+
* `target/segment-publicapi-58.3.0.jar`
6262
* `target/lib/*.jar`
6363

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

docs/AudiencesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public class Example {
273273

274274
AudiencesApi apiInstance = new AudiencesApi(defaultClient);
275275
String spaceId = "spaceId"; // String |
276-
PaginationInput pagination = new PaginationInput(); // PaginationInput | Information about the pagination of this response. [See pagination](https://docs.segmentapis.com/tag/Pagination/#section/Pagination-parameters) for more info. This parameter exists in alpha.
276+
ListAudiencesPaginationInput pagination = new ListAudiencesPaginationInput(); // ListAudiencesPaginationInput | Information about the pagination of this response. [See pagination](https://docs.segmentapis.com/tag/Pagination/#section/Pagination-parameters) for more info. This parameter exists in alpha.
277277
try {
278278
ListAudiences200Response result = apiInstance.listAudiences(spaceId, pagination);
279279
System.out.println(result);
@@ -294,7 +294,7 @@ public class Example {
294294
| Name | Type | Description | Notes |
295295
|------------- | ------------- | ------------- | -------------|
296296
| **spaceId** | **String**| | |
297-
| **pagination** | [**PaginationInput**](.md)| Information about the pagination of this response. [See pagination](https://docs.segmentapis.com/tag/Pagination/#section/Pagination-parameters) for more info. This parameter exists in alpha. | [optional] |
297+
| **pagination** | [**ListAudiencesPaginationInput**](.md)| Information about the pagination of this response. [See pagination](https://docs.segmentapis.com/tag/Pagination/#section/Pagination-parameters) for more info. This parameter exists in alpha. | [optional] |
298298

299299
### Return type
300300

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

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

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,20 @@ private static Class getClassByDiscriminator(
163163
.CustomTypeAdapterFactory());
164164
gsonBuilder.registerTypeAdapterFactory(
165165
new com.segment.publicapi.models.AllowedLabelBeta.CustomTypeAdapterFactory());
166+
gsonBuilder.registerTypeAdapterFactory(
167+
new com.segment.publicapi.models.AudienceComputeCadence.CustomTypeAdapterFactory());
166168
gsonBuilder.registerTypeAdapterFactory(
167169
new com.segment.publicapi.models.AudienceDefinition.CustomTypeAdapterFactory());
168170
gsonBuilder.registerTypeAdapterFactory(
169171
new com.segment.publicapi.models.AudienceOptions.CustomTypeAdapterFactory());
172+
gsonBuilder.registerTypeAdapterFactory(
173+
new com.segment.publicapi.models.AudienceOptionsWithLookback
174+
.CustomTypeAdapterFactory());
170175
gsonBuilder.registerTypeAdapterFactory(
171176
new com.segment.publicapi.models.AudienceSummary.CustomTypeAdapterFactory());
177+
gsonBuilder.registerTypeAdapterFactory(
178+
new com.segment.publicapi.models.AudienceSummaryWithAudienceTypeAndLookback
179+
.CustomTypeAdapterFactory());
172180
gsonBuilder.registerTypeAdapterFactory(
173181
new com.segment.publicapi.models.AuditEventV1.CustomTypeAdapterFactory());
174182
gsonBuilder.registerTypeAdapterFactory(
@@ -896,6 +904,9 @@ private static Class getClassByDiscriminator(
896904
gsonBuilder.registerTypeAdapterFactory(
897905
new com.segment.publicapi.models.ListAudiencesBetaOutput
898906
.CustomTypeAdapterFactory());
907+
gsonBuilder.registerTypeAdapterFactory(
908+
new com.segment.publicapi.models.ListAudiencesPaginationInput
909+
.CustomTypeAdapterFactory());
899910
gsonBuilder.registerTypeAdapterFactory(
900911
new com.segment.publicapi.models.ListAuditEvents200Response
901912
.CustomTypeAdapterFactory());

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.segment.publicapi.models.ListAudienceConsumersSearchInput;
2626
import com.segment.publicapi.models.ListAudienceConsumersSortInput;
2727
import com.segment.publicapi.models.ListAudiences200Response;
28+
import com.segment.publicapi.models.ListAudiencesPaginationInput;
2829
import com.segment.publicapi.models.PaginationInput;
2930
import com.segment.publicapi.models.RemoveAudienceFromSpace200Response;
3031
import com.segment.publicapi.models.UpdateAudienceForSpace200Response;
@@ -759,7 +760,7 @@ public okhttp3.Call listAudienceConsumersFromSpaceAndAudienceAsync(
759760
* </table>
760761
*/
761762
public okhttp3.Call listAudiencesCall(
762-
String spaceId, PaginationInput pagination, final ApiCallback _callback)
763+
String spaceId, ListAudiencesPaginationInput pagination, final ApiCallback _callback)
763764
throws ApiException {
764765
String basePath = null;
765766
// Operation Servers
@@ -827,7 +828,7 @@ public okhttp3.Call listAudiencesCall(
827828

828829
@SuppressWarnings("rawtypes")
829830
private okhttp3.Call listAudiencesValidateBeforeCall(
830-
String spaceId, PaginationInput pagination, final ApiCallback _callback)
831+
String spaceId, ListAudiencesPaginationInput pagination, final ApiCallback _callback)
831832
throws ApiException {
832833
// verify the required parameter 'spaceId' is set
833834
if (spaceId == null) {
@@ -864,8 +865,8 @@ private okhttp3.Call listAudiencesValidateBeforeCall(
864865
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
865866
* </table>
866867
*/
867-
public ListAudiences200Response listAudiences(String spaceId, PaginationInput pagination)
868-
throws ApiException {
868+
public ListAudiences200Response listAudiences(
869+
String spaceId, ListAudiencesPaginationInput pagination) throws ApiException {
869870
ApiResponse<ListAudiences200Response> localVarResp =
870871
listAudiencesWithHttpInfo(spaceId, pagination);
871872
return localVarResp.getData();
@@ -898,7 +899,7 @@ public ListAudiences200Response listAudiences(String spaceId, PaginationInput pa
898899
* </table>
899900
*/
900901
public ApiResponse<ListAudiences200Response> listAudiencesWithHttpInfo(
901-
String spaceId, PaginationInput pagination) throws ApiException {
902+
String spaceId, ListAudiencesPaginationInput pagination) throws ApiException {
902903
okhttp3.Call localVarCall = listAudiencesValidateBeforeCall(spaceId, pagination, null);
903904
Type localVarReturnType = new TypeToken<ListAudiences200Response>() {}.getType();
904905
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -933,7 +934,7 @@ public ApiResponse<ListAudiences200Response> listAudiencesWithHttpInfo(
933934
*/
934935
public okhttp3.Call listAudiencesAsync(
935936
String spaceId,
936-
PaginationInput pagination,
937+
ListAudiencesPaginationInput pagination,
937938
final ApiCallback<ListAudiences200Response> _callback)
938939
throws ApiException {
939940

0 commit comments

Comments
 (0)