Skip to content

Commit 6d3e7ee

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@0753fa4a.
1 parent 415d390 commit 6d3e7ee

17 files changed

+1277
-131
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: 59.0.0
13+
Latest API and SDK version: 59.1.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>59.0.0</version>
31+
<version>59.1.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:59.0.0"
47+
implementation "com.segment.publicapi:segment-publicapi:59.1.0"
4848
}
4949
```
5050

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

5959
Then manually install the following JARs:
6060

61-
* `target/segment-publicapi-59.0.0.jar`
61+
* `target/segment-publicapi-59.1.0.jar`
6262
* `target/lib/*.jar`
6363

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

docs/AudiencesApi.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ public class Example {
9494

9595
## Operation: createAudiencePreview
9696

97-
> CreateAudiencePreview200Response createAudiencePreview(spaceId, createAudiencePreviewAlphaInput)
97+
> CreateAudiencePreview200Response createAudiencePreview(spaceId, createAudiencePreviewBetaInput)
9898
9999
Create Audience Preview
100100

101-
Previews Audience. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to [email protected]. • 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. • When called, this endpoint may generate the &#x60;Audience Preview Created&#x60; event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 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. This endpoint also has a rate limit of 700 requests per month per spaceId, which is lower than the default due to access pattern restrictions.
101+
Previews Audience. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to [email protected]. • 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. • When called, this endpoint may generate the &#x60;Audience Preview Created&#x60; event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 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. This endpoint also has a rate limit of 700 requests per month per spaceId, which is lower than the default due to access pattern restrictions.
102102

103103
### Example
104104

@@ -121,9 +121,9 @@ public class Example {
121121

122122
AudiencesApi apiInstance = new AudiencesApi(defaultClient);
123123
String spaceId = "9aQ1Lj62S4bomZKLF4DPqW"; // String |
124-
CreateAudiencePreviewAlphaInput createAudiencePreviewAlphaInput = new CreateAudiencePreviewAlphaInput(); // CreateAudiencePreviewAlphaInput |
124+
CreateAudiencePreviewBetaInput createAudiencePreviewBetaInput = new CreateAudiencePreviewBetaInput(); // CreateAudiencePreviewBetaInput |
125125
try {
126-
CreateAudiencePreview200Response result = apiInstance.createAudiencePreview(spaceId, createAudiencePreviewAlphaInput);
126+
CreateAudiencePreview200Response result = apiInstance.createAudiencePreview(spaceId, createAudiencePreviewBetaInput);
127127
System.out.println(result);
128128
} catch (ApiException e) {
129129
System.err.println("Exception when calling AudiencesApi#createAudiencePreview");
@@ -142,7 +142,7 @@ public class Example {
142142
| Name | Type | Description | Notes |
143143
|------------- | ------------- | ------------- | -------------|
144144
| **spaceId** | **String**| | |
145-
| **createAudiencePreviewAlphaInput** | [**CreateAudiencePreviewAlphaInput**](CreateAudiencePreviewAlphaInput.md)| | |
145+
| **createAudiencePreviewBetaInput** | [**CreateAudiencePreviewBetaInput**](CreateAudiencePreviewBetaInput.md)| | |
146146

147147
### Return type
148148

@@ -154,8 +154,8 @@ public class Example {
154154

155155
### HTTP request headers
156156

157-
- **Content-Type**: application/vnd.segment.v1alpha+json
158-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
157+
- **Content-Type**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
158+
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
159159

160160

161161
### HTTP response details
@@ -250,7 +250,7 @@ public class Example {
250250
251251
Get Audience Preview
252252

253-
Reads the results of an audience preview. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to [email protected]. • 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.
253+
Reads the results of an audience preview. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to [email protected]. • 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.
254254

255255
### Example
256256

@@ -307,7 +307,7 @@ public class Example {
307307
### HTTP request headers
308308

309309
- **Content-Type**: Not defined
310-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
310+
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
311311

312312

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

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

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,21 @@ private static Class getClassByDiscriminator(
270270
gsonBuilder.registerTypeAdapterFactory(
271271
new com.segment.publicapi.models.CreateAudiencePreview200Response
272272
.CustomTypeAdapterFactory());
273+
gsonBuilder.registerTypeAdapterFactory(
274+
new com.segment.publicapi.models.CreateAudiencePreview200Response1
275+
.CustomTypeAdapterFactory());
273276
gsonBuilder.registerTypeAdapterFactory(
274277
new com.segment.publicapi.models.CreateAudiencePreviewAlphaInput
275278
.CustomTypeAdapterFactory());
276279
gsonBuilder.registerTypeAdapterFactory(
277280
new com.segment.publicapi.models.CreateAudiencePreviewAlphaOutput
278281
.CustomTypeAdapterFactory());
282+
gsonBuilder.registerTypeAdapterFactory(
283+
new com.segment.publicapi.models.CreateAudiencePreviewBetaInput
284+
.CustomTypeAdapterFactory());
285+
gsonBuilder.registerTypeAdapterFactory(
286+
new com.segment.publicapi.models.CreateAudiencePreviewBetaOutput
287+
.CustomTypeAdapterFactory());
279288
gsonBuilder.registerTypeAdapterFactory(
280289
new com.segment.publicapi.models.CreateAudiencePreviewOptions
281290
.CustomTypeAdapterFactory());
@@ -731,9 +740,15 @@ private static Class getClassByDiscriminator(
731740
gsonBuilder.registerTypeAdapterFactory(
732741
new com.segment.publicapi.models.GetAudiencePreview200Response
733742
.CustomTypeAdapterFactory());
743+
gsonBuilder.registerTypeAdapterFactory(
744+
new com.segment.publicapi.models.GetAudiencePreview200Response1
745+
.CustomTypeAdapterFactory());
734746
gsonBuilder.registerTypeAdapterFactory(
735747
new com.segment.publicapi.models.GetAudiencePreviewAlphaOutput
736748
.CustomTypeAdapterFactory());
749+
gsonBuilder.registerTypeAdapterFactory(
750+
new com.segment.publicapi.models.GetAudiencePreviewBetaOutput
751+
.CustomTypeAdapterFactory());
737752
gsonBuilder.registerTypeAdapterFactory(
738753
new com.segment.publicapi.models.GetAudienceScheduleFromSpaceAndAudience200Response
739754
.CustomTypeAdapterFactory());

0 commit comments

Comments
 (0)