Skip to content

Commit b054354

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@0fe2d191.
1 parent ea5591b commit b054354

10 files changed

+1086
-7
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: 57.0.0
13+
Latest API and SDK version: 57.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>57.0.0</version>
31+
<version>57.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:57.0.0"
47+
implementation "com.segment.publicapi:segment-publicapi:57.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-57.0.0.jar`
61+
* `target/segment-publicapi-57.1.0.jar`
6262
* `target/lib/*.jar`
6363

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

docs/ReverseEtlApi.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All URIs are relative to *https://api.segmentapis.com*
44

55
| Method | HTTP request | Description |
66
|------------- | ------------- | -------------|
7+
| [**cancelReverseETLSyncForModel**](ReverseEtlApi.md#cancelReverseETLSyncForModel) | **POST** /reverse-etl-models/{modelId}/syncs/{syncId}/cancel | Cancel Reverse ETL Sync for Model |
78
| [**createReverseETLManualSync**](ReverseEtlApi.md#createReverseETLManualSync) | **POST** /reverse-etl-syncs | Create Reverse ETL Manual Sync |
89
| [**createReverseEtlModel**](ReverseEtlApi.md#createReverseEtlModel) | **POST** /reverse-etl-models | Create Reverse Etl Model |
910
| [**deleteReverseEtlModel**](ReverseEtlApi.md#deleteReverseEtlModel) | **DELETE** /reverse-etl-models/{modelId} | Delete Reverse Etl Model |
@@ -15,6 +16,83 @@ All URIs are relative to *https://api.segmentapis.com*
1516

1617

1718

19+
## Operation: cancelReverseETLSyncForModel
20+
21+
> CancelReverseETLSyncForModel200Response cancelReverseETLSyncForModel(modelId, syncId, cancelReverseETLSyncForModelInput)
22+
23+
Cancel Reverse ETL Sync for Model
24+
25+
Cancels a sync for a Reverse ETL Connection. It might take a few seconds to completely cancel the sync. Will return an error if the sync is already completed or cancelled.
26+
27+
### Example
28+
29+
```java
30+
// Import classes:
31+
import com.segment.publicapi.ApiClient;
32+
import com.segment.publicapi.ApiException;
33+
import com.segment.publicapi.Configuration;
34+
import com.segment.publicapi.auth.*;
35+
import com.segment.publicapi.models.*;
36+
import com.segment.publicapi.api.ReverseEtlApi;
37+
38+
public class Example {
39+
public static void main(String[] args) {
40+
ApiClient defaultClient = Configuration.getDefaultApiClient();
41+
42+
// Configure HTTP bearer authorization: token
43+
HttpBearerAuth token = (HttpBearerAuth) defaultClient.getAuthentication("token");
44+
token.setBearerToken("BEARER TOKEN");
45+
46+
ReverseEtlApi apiInstance = new ReverseEtlApi(defaultClient);
47+
String modelId = "modelId"; // String |
48+
String syncId = "1"; // String |
49+
CancelReverseETLSyncForModelInput cancelReverseETLSyncForModelInput = new CancelReverseETLSyncForModelInput(); // CancelReverseETLSyncForModelInput |
50+
try {
51+
CancelReverseETLSyncForModel200Response result = apiInstance.cancelReverseETLSyncForModel(modelId, syncId, cancelReverseETLSyncForModelInput);
52+
System.out.println(result);
53+
} catch (ApiException e) {
54+
System.err.println("Exception when calling ReverseEtlApi#cancelReverseETLSyncForModel");
55+
System.err.println("Status code: " + e.getCode());
56+
System.err.println("Reason: " + e.getResponseBody());
57+
System.err.println("Response headers: " + e.getResponseHeaders());
58+
e.printStackTrace();
59+
}
60+
}
61+
}
62+
```
63+
64+
### Parameters
65+
66+
67+
| Name | Type | Description | Notes |
68+
|------------- | ------------- | ------------- | -------------|
69+
| **modelId** | **String**| | |
70+
| **syncId** | **String**| | |
71+
| **cancelReverseETLSyncForModelInput** | [**CancelReverseETLSyncForModelInput**](CancelReverseETLSyncForModelInput.md)| | |
72+
73+
### Return type
74+
75+
[**CancelReverseETLSyncForModel200Response**](CancelReverseETLSyncForModel200Response.md)
76+
77+
### Authorization
78+
79+
[token](../README.md#token)
80+
81+
### HTTP request headers
82+
83+
- **Content-Type**: application/vnd.segment.v1alpha+json
84+
- **Accept**: application/vnd.segment.v1alpha+json, application/json
85+
86+
87+
### HTTP response details
88+
| Status code | Description | Response headers |
89+
|-------------|-------------|------------------|
90+
| **200** | OK | - |
91+
| **404** | Resource not found | - |
92+
| **422** | Validation failure | - |
93+
| **429** | Too many requests | - |
94+
95+
1896
## Operation: createReverseETLManualSync
1997

2098
> CreateReverseETLManualSync200Response createReverseETLManualSync(createReverseETLManualSyncInput)

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>57.0.0</version>
8+
<version>57.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 57.0.0 (Java)");
126+
setUserAgent("Public API SDK 57.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 = "57.0.0";
15+
public static final String VERSION = "57.1.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
@@ -185,6 +185,15 @@ private static Class getClassByDiscriminator(
185185
.CustomTypeAdapterFactory());
186186
gsonBuilder.registerTypeAdapterFactory(
187187
new com.segment.publicapi.models.BreakdownBeta.CustomTypeAdapterFactory());
188+
gsonBuilder.registerTypeAdapterFactory(
189+
new com.segment.publicapi.models.CancelReverseETLSyncForModel200Response
190+
.CustomTypeAdapterFactory());
191+
gsonBuilder.registerTypeAdapterFactory(
192+
new com.segment.publicapi.models.CancelReverseETLSyncForModelInput
193+
.CustomTypeAdapterFactory());
194+
gsonBuilder.registerTypeAdapterFactory(
195+
new com.segment.publicapi.models.CancelReverseETLSyncForModelOutput
196+
.CustomTypeAdapterFactory());
188197
gsonBuilder.registerTypeAdapterFactory(
189198
new com.segment.publicapi.models.CommonSourceSettingsV1.CustomTypeAdapterFactory());
190199
gsonBuilder.registerTypeAdapterFactory(

0 commit comments

Comments
 (0)