Skip to content

Commit 2ca1d5d

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@0de9da02.
1 parent 4d1ee48 commit 2ca1d5d

File tree

11 files changed

+446
-32
lines changed

11 files changed

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

docs/AudiencesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public class Example {
254254
255255
Force Execute Audience Run
256256

257-
The ability to force execute a run for an Audience is limited to Linked Audiences (audienceType &#x3D; &#x60;LINKED&#x60;). • 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 Run Forced&#x60; event in the [audit trail](/tag/Audit-Trail).
257+
The ability to force execute a run for an Audience is limited to Linked Audiences (audienceType &#x3D; &#x60;LINKED&#x60;). • 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 Run Forced&#x60; event in the [audit trail](/tag/Audit-Trail).
258258

259259
### Example
260260

@@ -311,7 +311,7 @@ public class Example {
311311
### HTTP request headers
312312

313313
- **Content-Type**: Not defined
314-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
314+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
315315

316316

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

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,9 +749,15 @@ private static Class getClassByDiscriminator(
749749
gsonBuilder.registerTypeAdapterFactory(
750750
new com.segment.publicapi.models.ForceExecuteAudienceRun200Response
751751
.CustomTypeAdapterFactory());
752+
gsonBuilder.registerTypeAdapterFactory(
753+
new com.segment.publicapi.models.ForceExecuteAudienceRun200Response1
754+
.CustomTypeAdapterFactory());
752755
gsonBuilder.registerTypeAdapterFactory(
753756
new com.segment.publicapi.models.ForceExecuteAudienceRunAlphaOutput
754757
.CustomTypeAdapterFactory());
758+
gsonBuilder.registerTypeAdapterFactory(
759+
new com.segment.publicapi.models.ForceExecuteAudienceRunOutput
760+
.CustomTypeAdapterFactory());
755761
gsonBuilder.registerTypeAdapterFactory(
756762
new com.segment.publicapi.models.FunctionDeployment.CustomTypeAdapterFactory());
757763
gsonBuilder.registerTypeAdapterFactory(

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

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,9 @@ public okhttp3.Call forceExecuteAudienceRunCall(
807807
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
808808

809809
final String[] localVarAccepts = {
810-
"application/vnd.segment.v1alpha+json", "application/json"
810+
"application/vnd.segment.v1+json",
811+
"application/json",
812+
"application/vnd.segment.v1alpha+json"
811813
};
812814
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
813815
if (localVarAccept != null) {
@@ -858,11 +860,10 @@ private okhttp3.Call forceExecuteAudienceRunValidateBeforeCall(
858860

859861
/**
860862
* Force Execute Audience Run The ability to force execute a run for an Audience is limited to
861-
* Linked Audiences (audienceType &#x3D; &#x60;LINKED&#x60;). • This endpoint is in **Alpha**
862-
* testing. Please submit any feedback by sending an email to friends@segment.com. • In order to
863-
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
864-
* enabled. Please reach out to your customer success manager for more information. • When
865-
* called, this endpoint may generate the &#x60;Audience Run Forced&#x60; event in the [audit
863+
* Linked Audiences (audienceType &#x3D; &#x60;LINKED&#x60;). • In order to successfully call
864+
* this endpoint, the specified Workspace needs to have the Audience feature enabled. Please
865+
* reach out to your customer success manager for more information. • When called, this endpoint
866+
* may generate the &#x60;Audience Run Forced&#x60; event in the [audit
866867
* trail](/tag/Audit-Trail).
867868
*
868869
* @param spaceId (required)
@@ -888,11 +889,10 @@ public ForceExecuteAudienceRun200Response forceExecuteAudienceRun(
888889

889890
/**
890891
* Force Execute Audience Run The ability to force execute a run for an Audience is limited to
891-
* Linked Audiences (audienceType &#x3D; &#x60;LINKED&#x60;). • This endpoint is in **Alpha**
892-
* testing. Please submit any feedback by sending an email to friends@segment.com. • In order to
893-
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
894-
* enabled. Please reach out to your customer success manager for more information. • When
895-
* called, this endpoint may generate the &#x60;Audience Run Forced&#x60; event in the [audit
892+
* Linked Audiences (audienceType &#x3D; &#x60;LINKED&#x60;). • In order to successfully call
893+
* this endpoint, the specified Workspace needs to have the Audience feature enabled. Please
894+
* reach out to your customer success manager for more information. • When called, this endpoint
895+
* may generate the &#x60;Audience Run Forced&#x60; event in the [audit
896896
* trail](/tag/Audit-Trail).
897897
*
898898
* @param spaceId (required)
@@ -919,12 +919,11 @@ public ApiResponse<ForceExecuteAudienceRun200Response> forceExecuteAudienceRunWi
919919

920920
/**
921921
* Force Execute Audience Run (asynchronously) The ability to force execute a run for an
922-
* Audience is limited to Linked Audiences (audienceType &#x3D; &#x60;LINKED&#x60;). • This
923-
* endpoint is in **Alpha** testing. Please submit any feedback by sending an email to
924-
* friends@segment.com. • In order to successfully call this endpoint, the specified Workspace
925-
* needs to have the Audience feature enabled. Please reach out to your customer success manager
926-
* for more information. • When called, this endpoint may generate the &#x60;Audience Run
927-
* Forced&#x60; event in the [audit trail](/tag/Audit-Trail).
922+
* Audience is limited to Linked Audiences (audienceType &#x3D; &#x60;LINKED&#x60;). • In order
923+
* to successfully call this endpoint, the specified Workspace needs to have the Audience
924+
* feature enabled. Please reach out to your customer success manager for more information. •
925+
* When called, this endpoint may generate the &#x60;Audience Run Forced&#x60; event in the
926+
* [audit trail](/tag/Audit-Trail).
928927
*
929928
* @param spaceId (required)
930929
* @param audienceId (required)

src/main/java/com/segment/publicapi/models/ForceExecuteAudienceRun200Response.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ public class ForceExecuteAudienceRun200Response {
3232
public static final String SERIALIZED_NAME_DATA = "data";
3333

3434
@SerializedName(SERIALIZED_NAME_DATA)
35-
private ForceExecuteAudienceRunAlphaOutput data;
35+
private ForceExecuteAudienceRunOutput data;
3636

3737
public ForceExecuteAudienceRun200Response() {}
3838

39-
public ForceExecuteAudienceRun200Response data(ForceExecuteAudienceRunAlphaOutput data) {
39+
public ForceExecuteAudienceRun200Response data(ForceExecuteAudienceRunOutput data) {
4040

4141
this.data = data;
4242
return this;
@@ -48,11 +48,11 @@ public ForceExecuteAudienceRun200Response data(ForceExecuteAudienceRunAlphaOutpu
4848
* @return data
4949
*/
5050
@javax.annotation.Nullable
51-
public ForceExecuteAudienceRunAlphaOutput getData() {
51+
public ForceExecuteAudienceRunOutput getData() {
5252
return data;
5353
}
5454

55-
public void setData(ForceExecuteAudienceRunAlphaOutput data) {
55+
public void setData(ForceExecuteAudienceRunOutput data) {
5656
this.data = data;
5757
}
5858

@@ -140,7 +140,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
140140
JsonObject jsonObj = jsonElement.getAsJsonObject();
141141
// validate the optional field `data`
142142
if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) {
143-
ForceExecuteAudienceRunAlphaOutput.validateJsonElement(jsonObj.get("data"));
143+
ForceExecuteAudienceRunOutput.validateJsonElement(jsonObj.get("data"));
144144
}
145145
}
146146

0 commit comments

Comments
 (0)