Skip to content

Commit 7df656c

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

13 files changed

+807
-74
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: 67.0.0
13+
Latest API and SDK version: 68.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>67.0.0</version>
31+
<version>68.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:67.0.0"
47+
implementation "com.segment.publicapi:segment-publicapi:68.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-67.0.0.jar`
61+
* `target/segment-publicapi-68.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-
67.0.0
1+
68.0.0

docs/AudiencesApi.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ public class Example {
175175

176176
## Operation: createAudiencePreview
177177

178-
> CreateAudiencePreview200Response createAudiencePreview(spaceId, createAudiencePreviewBetaInput)
178+
> CreateAudiencePreview200Response createAudiencePreview(spaceId, createAudiencePreviewInput)
179179
180180
Create Audience Preview
181181

182-
Previews Audience. • 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. • 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.
182+
Previews 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. • 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.
183183

184184
### Example
185185

@@ -202,9 +202,9 @@ public class Example {
202202

203203
AudiencesApi apiInstance = new AudiencesApi(defaultClient);
204204
String spaceId = "9aQ1Lj62S4bomZKLF4DPqW"; // String |
205-
CreateAudiencePreviewBetaInput createAudiencePreviewBetaInput = new CreateAudiencePreviewBetaInput(); // CreateAudiencePreviewBetaInput |
205+
CreateAudiencePreviewInput createAudiencePreviewInput = new CreateAudiencePreviewInput(); // CreateAudiencePreviewInput |
206206
try {
207-
CreateAudiencePreview200Response result = apiInstance.createAudiencePreview(spaceId, createAudiencePreviewBetaInput);
207+
CreateAudiencePreview200Response result = apiInstance.createAudiencePreview(spaceId, createAudiencePreviewInput);
208208
System.out.println(result);
209209
} catch (ApiException e) {
210210
System.err.println("Exception when calling AudiencesApi#createAudiencePreview");
@@ -223,7 +223,7 @@ public class Example {
223223
| Name | Type | Description | Notes |
224224
|------------- | ------------- | ------------- | -------------|
225225
| **spaceId** | **String**| | |
226-
| **createAudiencePreviewBetaInput** | [**CreateAudiencePreviewBetaInput**](CreateAudiencePreviewBetaInput.md)| | |
226+
| **createAudiencePreviewInput** | [**CreateAudiencePreviewInput**](CreateAudiencePreviewInput.md)| | |
227227

228228
### Return type
229229

@@ -235,8 +235,8 @@ public class Example {
235235

236236
### HTTP request headers
237237

238-
- **Content-Type**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
239-
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
238+
- **Content-Type**: application/json, application/vnd.segment.v1+json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
239+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
240240

241241

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

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

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ private static Class getClassByDiscriminator(
299299
gsonBuilder.registerTypeAdapterFactory(
300300
new com.segment.publicapi.models.CreateAudiencePreview200Response1
301301
.CustomTypeAdapterFactory());
302+
gsonBuilder.registerTypeAdapterFactory(
303+
new com.segment.publicapi.models.CreateAudiencePreview200Response2
304+
.CustomTypeAdapterFactory());
302305
gsonBuilder.registerTypeAdapterFactory(
303306
new com.segment.publicapi.models.CreateAudiencePreviewAlphaInput
304307
.CustomTypeAdapterFactory());
@@ -311,9 +314,15 @@ private static Class getClassByDiscriminator(
311314
gsonBuilder.registerTypeAdapterFactory(
312315
new com.segment.publicapi.models.CreateAudiencePreviewBetaOutput
313316
.CustomTypeAdapterFactory());
317+
gsonBuilder.registerTypeAdapterFactory(
318+
new com.segment.publicapi.models.CreateAudiencePreviewInput
319+
.CustomTypeAdapterFactory());
314320
gsonBuilder.registerTypeAdapterFactory(
315321
new com.segment.publicapi.models.CreateAudiencePreviewOptions
316322
.CustomTypeAdapterFactory());
323+
gsonBuilder.registerTypeAdapterFactory(
324+
new com.segment.publicapi.models.CreateAudiencePreviewOutput
325+
.CustomTypeAdapterFactory());
317326
gsonBuilder.registerTypeAdapterFactory(
318327
new com.segment.publicapi.models.CreateCloudSourceRegulation200Response
319328
.CustomTypeAdapterFactory());

0 commit comments

Comments
 (0)