Skip to content

Commit 09e55e3

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@a043a71c.
1 parent 45fcc97 commit 09e55e3

13 files changed

+831
-95
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: 64.0.0
13+
Latest API and SDK version: 65.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>64.0.0</version>
31+
<version>65.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:64.0.0"
47+
implementation "com.segment.publicapi:segment-publicapi:65.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-64.0.0.jar`
61+
* `target/segment-publicapi-65.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-
64.0.0
1+
65.0.0

docs/AudiencesApi.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ public class Example {
793793
794794
Remove Audience from Space
795795

796-
Deletes an Audience by id and spaceId. • 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 Deleted&#x60; event in the [audit trail](/tag/Audit-Trail). 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.
796+
Deletes an Audience by id and spaceId. • 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 Deleted&#x60; event in the [audit trail](/tag/Audit-Trail). 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.
797797

798798
### Example
799799

@@ -941,11 +941,11 @@ public class Example {
941941

942942
## Operation: updateAudienceForSpace
943943

944-
> UpdateAudienceForSpace200Response updateAudienceForSpace(spaceId, id, updateAudienceForSpaceBetaInput)
944+
> UpdateAudienceForSpace200Response updateAudienceForSpace(spaceId, id, updateAudienceForSpaceInput)
945945
946946
Update Audience for Space
947947

948-
Updates the 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. • When called, this endpoint may generate the &#x60;Audience Modified&#x60; event in the [audit trail](/tag/Audit-Trail). • Note that when an Audience is updated, the Audience will be locked from future edits until the changes have been incorporated. You can find more information [in the Segment docs](https://segment-docs.netlify.app/docs/engage/audiences/#editing-realtime-audiences-and-traits). Note: The definition for an Audience updated using the API is not editable through the Segment App. 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.
948+
Updates the 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 Modified&#x60; event in the [audit trail](/tag/Audit-Trail). • Note that when an Audience is updated, the Audience will be locked from future edits until the changes have been incorporated. You can find more information [in the Segment docs](https://segment-docs.netlify.app/docs/engage/audiences/#editing-realtime-audiences-and-traits). Note: The definition for an Audience updated using the API is not editable through the Segment App. 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.
949949

950950
### Example
951951

@@ -969,9 +969,9 @@ public class Example {
969969
AudiencesApi apiInstance = new AudiencesApi(defaultClient);
970970
String spaceId = "9aQ1Lj62S4bomZKLF4DPqW"; // String |
971971
String id = "aud_0ujsszwN8NRY24YaXiTIE2VWDTS"; // String |
972-
UpdateAudienceForSpaceBetaInput updateAudienceForSpaceBetaInput = new UpdateAudienceForSpaceBetaInput(); // UpdateAudienceForSpaceBetaInput |
972+
UpdateAudienceForSpaceInput updateAudienceForSpaceInput = new UpdateAudienceForSpaceInput(); // UpdateAudienceForSpaceInput |
973973
try {
974-
UpdateAudienceForSpace200Response result = apiInstance.updateAudienceForSpace(spaceId, id, updateAudienceForSpaceBetaInput);
974+
UpdateAudienceForSpace200Response result = apiInstance.updateAudienceForSpace(spaceId, id, updateAudienceForSpaceInput);
975975
System.out.println(result);
976976
} catch (ApiException e) {
977977
System.err.println("Exception when calling AudiencesApi#updateAudienceForSpace");
@@ -991,7 +991,7 @@ public class Example {
991991
|------------- | ------------- | ------------- | -------------|
992992
| **spaceId** | **String**| | |
993993
| **id** | **String**| | |
994-
| **updateAudienceForSpaceBetaInput** | [**UpdateAudienceForSpaceBetaInput**](UpdateAudienceForSpaceBetaInput.md)| | |
994+
| **updateAudienceForSpaceInput** | [**UpdateAudienceForSpaceInput**](UpdateAudienceForSpaceInput.md)| | |
995995

996996
### Return type
997997

@@ -1003,8 +1003,8 @@ public class Example {
10031003

10041004
### HTTP request headers
10051005

1006-
- **Content-Type**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
1007-
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
1006+
- **Content-Type**: application/json, application/vnd.segment.v1+json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
1007+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
10081008

10091009

10101010
### 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>64.0.0</version>
8+
<version>65.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 64.0.0 (Java)");
126+
setUserAgent("Public API SDK 65.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 = "64.0.0";
15+
public static final String VERSION = "65.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
@@ -1678,6 +1678,9 @@ private static Class getClassByDiscriminator(
16781678
gsonBuilder.registerTypeAdapterFactory(
16791679
new com.segment.publicapi.models.UpdateAudienceForSpace200Response1
16801680
.CustomTypeAdapterFactory());
1681+
gsonBuilder.registerTypeAdapterFactory(
1682+
new com.segment.publicapi.models.UpdateAudienceForSpace200Response2
1683+
.CustomTypeAdapterFactory());
16811684
gsonBuilder.registerTypeAdapterFactory(
16821685
new com.segment.publicapi.models.UpdateAudienceForSpaceAlphaInput
16831686
.CustomTypeAdapterFactory());
@@ -1690,6 +1693,12 @@ private static Class getClassByDiscriminator(
16901693
gsonBuilder.registerTypeAdapterFactory(
16911694
new com.segment.publicapi.models.UpdateAudienceForSpaceBetaOutput
16921695
.CustomTypeAdapterFactory());
1696+
gsonBuilder.registerTypeAdapterFactory(
1697+
new com.segment.publicapi.models.UpdateAudienceForSpaceInput
1698+
.CustomTypeAdapterFactory());
1699+
gsonBuilder.registerTypeAdapterFactory(
1700+
new com.segment.publicapi.models.UpdateAudienceForSpaceOutput
1701+
.CustomTypeAdapterFactory());
16931702
gsonBuilder.registerTypeAdapterFactory(
16941703
new com.segment.publicapi.models.UpdateAudienceScheduleForAudience200Response
16951704
.CustomTypeAdapterFactory());

0 commit comments

Comments
 (0)