Skip to content

Commit 2097c5b

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@74853417.
1 parent 022875f commit 2097c5b

25 files changed

+3038
-198
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: 69.0.0
13+
Latest API and SDK version: 70.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>69.0.0</version>
31+
<version>70.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:69.0.0"
47+
implementation "com.segment.publicapi:segment-publicapi:70.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-69.0.0.jar`
61+
* `target/segment-publicapi-70.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-
69.0.0
1+
70.0.0

docs/AudiencesApi.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ All URIs are relative to *https://api.segmentapis.com*
2323

2424
## Operation: addAudienceScheduleToAudience
2525

26-
> AddAudienceScheduleToAudience200Response addAudienceScheduleToAudience(spaceId, id, addAudienceScheduleToAudienceAlphaInput)
26+
> AddAudienceScheduleToAudience200Response addAudienceScheduleToAudience(spaceId, id, addAudienceScheduleToAudienceInput)
2727
2828
Add Audience Schedule to Audience
2929

30-
The ability to configure the run schedule for an Audience is limited to Linked Audiences (audienceType &#x3D; LINKED). Note that if a Linked Audience remains disabled for 90 days Segment will delete the associated schedule and a new schedule will need to be created. • 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 50 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.
30+
The ability to configure the run schedule for an Audience is limited to Linked Audiences (audienceType &#x3D; LINKED). Note that if a Linked Audience remains disabled for 90 days Segment will delete the associated schedule and a new schedule will need to be created. • 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 50 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.
3131

3232
### Example
3333

@@ -51,9 +51,9 @@ public class Example {
5151
AudiencesApi apiInstance = new AudiencesApi(defaultClient);
5252
String spaceId = "9aQ1Lj62S4bomZKLF4DPqW"; // String |
5353
String id = "aud_0ujsszwN8NRY24YaXiTIE2VWDTS"; // String |
54-
AddAudienceScheduleToAudienceAlphaInput addAudienceScheduleToAudienceAlphaInput = new AddAudienceScheduleToAudienceAlphaInput(); // AddAudienceScheduleToAudienceAlphaInput |
54+
AddAudienceScheduleToAudienceInput addAudienceScheduleToAudienceInput = new AddAudienceScheduleToAudienceInput(); // AddAudienceScheduleToAudienceInput |
5555
try {
56-
AddAudienceScheduleToAudience200Response result = apiInstance.addAudienceScheduleToAudience(spaceId, id, addAudienceScheduleToAudienceAlphaInput);
56+
AddAudienceScheduleToAudience200Response result = apiInstance.addAudienceScheduleToAudience(spaceId, id, addAudienceScheduleToAudienceInput);
5757
System.out.println(result);
5858
} catch (ApiException e) {
5959
System.err.println("Exception when calling AudiencesApi#addAudienceScheduleToAudience");
@@ -73,7 +73,7 @@ public class Example {
7373
|------------- | ------------- | ------------- | -------------|
7474
| **spaceId** | **String**| | |
7575
| **id** | **String**| | |
76-
| **addAudienceScheduleToAudienceAlphaInput** | [**AddAudienceScheduleToAudienceAlphaInput**](AddAudienceScheduleToAudienceAlphaInput.md)| | |
76+
| **addAudienceScheduleToAudienceInput** | [**AddAudienceScheduleToAudienceInput**](AddAudienceScheduleToAudienceInput.md)| | |
7777

7878
### Return type
7979

@@ -85,8 +85,8 @@ public class Example {
8585

8686
### HTTP request headers
8787

88-
- **Content-Type**: application/vnd.segment.v1alpha+json
89-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
88+
- **Content-Type**: application/json, application/vnd.segment.v1+json, application/vnd.segment.v1alpha+json
89+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
9090

9191

9292
### HTTP response details
@@ -481,7 +481,7 @@ public class Example {
481481
482482
Get Audience Schedule from Space And Audience
483483

484-
Returns the schedule for the given audience and scheduleId. • 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.
484+
Returns the schedule for the given audience and scheduleId. • 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.
485485

486486
### Example
487487

@@ -540,7 +540,7 @@ public class Example {
540540
### HTTP request headers
541541

542542
- **Content-Type**: Not defined
543-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
543+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
544544

545545

546546
### HTTP response details
@@ -639,7 +639,7 @@ public class Example {
639639
640640
List Audience Schedules from Space And Audience
641641

642-
Returns the list of schedules 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.
642+
Returns the list of schedules 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.
643643

644644
### Example
645645

@@ -696,7 +696,7 @@ public class Example {
696696
### HTTP request headers
697697

698698
- **Content-Type**: Not defined
699-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
699+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
700700

701701

702702
### HTTP response details
@@ -868,7 +868,7 @@ public class Example {
868868
869869
Remove Audience Schedule from Audience
870870

871-
Deletes an audience schedule for a Linked Audience (audienceType &#x3D; LINKED). • 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 50 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.
871+
Deletes an audience schedule for a Linked Audience (audienceType &#x3D; LINKED). • 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 50 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.
872872

873873
### Example
874874

@@ -927,7 +927,7 @@ public class Example {
927927
### HTTP request headers
928928

929929
- **Content-Type**: Not defined
930-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
930+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
931931

932932

933933
### HTTP response details
@@ -1018,11 +1018,11 @@ public class Example {
10181018

10191019
## Operation: updateAudienceScheduleForAudience
10201020

1021-
> UpdateAudienceScheduleForAudience200Response updateAudienceScheduleForAudience(spaceId, id, scheduleId, updateAudienceScheduleForAudienceAlphaInput)
1021+
> UpdateAudienceScheduleForAudience200Response updateAudienceScheduleForAudience(spaceId, id, scheduleId, updateAudienceScheduleForAudienceInput)
10221022
10231023
Update Audience Schedule for Audience
10241024

1025-
Updates an audience schedule for a Linked Audience (audienceType &#x3D; LINKED). • 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 50 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.
1025+
Updates an audience schedule for a Linked Audience (audienceType &#x3D; LINKED). • 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 50 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.
10261026

10271027
### Example
10281028

@@ -1047,9 +1047,9 @@ public class Example {
10471047
String spaceId = "9aQ1Lj62S4bomZKLF4DPqW"; // String |
10481048
String id = "aud_0ujsszwN8NRY24YaXiTIE2VWDTS"; // String |
10491049
String scheduleId = "sch_0ujsszwN8NRY24YaXiTIE2VWDTS"; // String |
1050-
UpdateAudienceScheduleForAudienceAlphaInput updateAudienceScheduleForAudienceAlphaInput = new UpdateAudienceScheduleForAudienceAlphaInput(); // UpdateAudienceScheduleForAudienceAlphaInput |
1050+
UpdateAudienceScheduleForAudienceInput updateAudienceScheduleForAudienceInput = new UpdateAudienceScheduleForAudienceInput(); // UpdateAudienceScheduleForAudienceInput |
10511051
try {
1052-
UpdateAudienceScheduleForAudience200Response result = apiInstance.updateAudienceScheduleForAudience(spaceId, id, scheduleId, updateAudienceScheduleForAudienceAlphaInput);
1052+
UpdateAudienceScheduleForAudience200Response result = apiInstance.updateAudienceScheduleForAudience(spaceId, id, scheduleId, updateAudienceScheduleForAudienceInput);
10531053
System.out.println(result);
10541054
} catch (ApiException e) {
10551055
System.err.println("Exception when calling AudiencesApi#updateAudienceScheduleForAudience");
@@ -1070,7 +1070,7 @@ public class Example {
10701070
| **spaceId** | **String**| | |
10711071
| **id** | **String**| | |
10721072
| **scheduleId** | **String**| | |
1073-
| **updateAudienceScheduleForAudienceAlphaInput** | [**UpdateAudienceScheduleForAudienceAlphaInput**](UpdateAudienceScheduleForAudienceAlphaInput.md)| | |
1073+
| **updateAudienceScheduleForAudienceInput** | [**UpdateAudienceScheduleForAudienceInput**](UpdateAudienceScheduleForAudienceInput.md)| | |
10741074

10751075
### Return type
10761076

@@ -1082,8 +1082,8 @@ public class Example {
10821082

10831083
### HTTP request headers
10841084

1085-
- **Content-Type**: application/vnd.segment.v1alpha+json
1086-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
1085+
- **Content-Type**: application/json, application/vnd.segment.v1+json, application/vnd.segment.v1alpha+json
1086+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
10871087

10881088

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

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

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,21 @@ private static Class getClassByDiscriminator(
109109
gsonBuilder.registerTypeAdapterFactory(
110110
new com.segment.publicapi.models.AddAudienceScheduleToAudience200Response
111111
.CustomTypeAdapterFactory());
112+
gsonBuilder.registerTypeAdapterFactory(
113+
new com.segment.publicapi.models.AddAudienceScheduleToAudience200Response1
114+
.CustomTypeAdapterFactory());
112115
gsonBuilder.registerTypeAdapterFactory(
113116
new com.segment.publicapi.models.AddAudienceScheduleToAudienceAlphaInput
114117
.CustomTypeAdapterFactory());
115118
gsonBuilder.registerTypeAdapterFactory(
116119
new com.segment.publicapi.models.AddAudienceScheduleToAudienceAlphaOutput
117120
.CustomTypeAdapterFactory());
121+
gsonBuilder.registerTypeAdapterFactory(
122+
new com.segment.publicapi.models.AddAudienceScheduleToAudienceInput
123+
.CustomTypeAdapterFactory());
124+
gsonBuilder.registerTypeAdapterFactory(
125+
new com.segment.publicapi.models.AddAudienceScheduleToAudienceOutput
126+
.CustomTypeAdapterFactory());
118127
gsonBuilder.registerTypeAdapterFactory(
119128
new com.segment.publicapi.models.AddConnectionFromSourceToWarehouse201Response
120129
.CustomTypeAdapterFactory());
@@ -796,9 +805,15 @@ private static Class getClassByDiscriminator(
796805
gsonBuilder.registerTypeAdapterFactory(
797806
new com.segment.publicapi.models.GetAudienceScheduleFromSpaceAndAudience200Response
798807
.CustomTypeAdapterFactory());
808+
gsonBuilder.registerTypeAdapterFactory(
809+
new com.segment.publicapi.models.GetAudienceScheduleFromSpaceAndAudience200Response1
810+
.CustomTypeAdapterFactory());
799811
gsonBuilder.registerTypeAdapterFactory(
800812
new com.segment.publicapi.models.GetAudienceScheduleFromSpaceAndAudienceAlphaOutput
801813
.CustomTypeAdapterFactory());
814+
gsonBuilder.registerTypeAdapterFactory(
815+
new com.segment.publicapi.models.GetAudienceScheduleFromSpaceAndAudienceOutput
816+
.CustomTypeAdapterFactory());
802817
gsonBuilder.registerTypeAdapterFactory(
803818
new com.segment.publicapi.models.GetComputedTrait200Response
804819
.CustomTypeAdapterFactory());
@@ -1063,10 +1078,17 @@ private static Class getClassByDiscriminator(
10631078
new com.segment.publicapi.models
10641079
.ListAudienceSchedulesFromSpaceAndAudience200Response
10651080
.CustomTypeAdapterFactory());
1081+
gsonBuilder.registerTypeAdapterFactory(
1082+
new com.segment.publicapi.models
1083+
.ListAudienceSchedulesFromSpaceAndAudience200Response1
1084+
.CustomTypeAdapterFactory());
10661085
gsonBuilder.registerTypeAdapterFactory(
10671086
new com.segment.publicapi.models
10681087
.ListAudienceSchedulesFromSpaceAndAudienceAlphaOutput
10691088
.CustomTypeAdapterFactory());
1089+
gsonBuilder.registerTypeAdapterFactory(
1090+
new com.segment.publicapi.models.ListAudienceSchedulesFromSpaceAndAudienceOutput
1091+
.CustomTypeAdapterFactory());
10701092
gsonBuilder.registerTypeAdapterFactory(
10711093
new com.segment.publicapi.models.ListAudienceSearchInput
10721094
.CustomTypeAdapterFactory());
@@ -1459,9 +1481,15 @@ private static Class getClassByDiscriminator(
14591481
gsonBuilder.registerTypeAdapterFactory(
14601482
new com.segment.publicapi.models.RemoveAudienceScheduleFromAudience200Response
14611483
.CustomTypeAdapterFactory());
1484+
gsonBuilder.registerTypeAdapterFactory(
1485+
new com.segment.publicapi.models.RemoveAudienceScheduleFromAudience200Response1
1486+
.CustomTypeAdapterFactory());
14621487
gsonBuilder.registerTypeAdapterFactory(
14631488
new com.segment.publicapi.models.RemoveAudienceScheduleFromAudienceAlphaOutput
14641489
.CustomTypeAdapterFactory());
1490+
gsonBuilder.registerTypeAdapterFactory(
1491+
new com.segment.publicapi.models.RemoveAudienceScheduleFromAudienceOutput
1492+
.CustomTypeAdapterFactory());
14651493
gsonBuilder.registerTypeAdapterFactory(
14661494
new com.segment.publicapi.models.RemoveComputedTraitFromSpace200Response
14671495
.CustomTypeAdapterFactory());
@@ -1727,12 +1755,21 @@ private static Class getClassByDiscriminator(
17271755
gsonBuilder.registerTypeAdapterFactory(
17281756
new com.segment.publicapi.models.UpdateAudienceScheduleForAudience200Response
17291757
.CustomTypeAdapterFactory());
1758+
gsonBuilder.registerTypeAdapterFactory(
1759+
new com.segment.publicapi.models.UpdateAudienceScheduleForAudience200Response1
1760+
.CustomTypeAdapterFactory());
17301761
gsonBuilder.registerTypeAdapterFactory(
17311762
new com.segment.publicapi.models.UpdateAudienceScheduleForAudienceAlphaInput
17321763
.CustomTypeAdapterFactory());
17331764
gsonBuilder.registerTypeAdapterFactory(
17341765
new com.segment.publicapi.models.UpdateAudienceScheduleForAudienceAlphaOutput
17351766
.CustomTypeAdapterFactory());
1767+
gsonBuilder.registerTypeAdapterFactory(
1768+
new com.segment.publicapi.models.UpdateAudienceScheduleForAudienceInput
1769+
.CustomTypeAdapterFactory());
1770+
gsonBuilder.registerTypeAdapterFactory(
1771+
new com.segment.publicapi.models.UpdateAudienceScheduleForAudienceOutput
1772+
.CustomTypeAdapterFactory());
17361773
gsonBuilder.registerTypeAdapterFactory(
17371774
new com.segment.publicapi.models.UpdateComputedTraitForSpace200Response
17381775
.CustomTypeAdapterFactory());

0 commit comments

Comments
 (0)