Skip to content

Commit f77aff1

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@3083836d.
1 parent c13c5b8 commit f77aff1

11 files changed

+911
-59
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: 53.1.0
13+
Latest API and SDK version: 53.2.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>53.1.0</version>
31+
<version>53.2.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:53.1.0"
47+
implementation "com.segment.publicapi:segment-publicapi:53.2.0"
4848
}
4949
```
5050

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

5959
Then manually install the following JARs:
6060

61-
* `target/segment-publicapi-53.1.0.jar`
61+
* `target/segment-publicapi-53.2.0.jar`
6262
* `target/lib/*.jar`
6363

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

docs/ReverseEtlApi.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ All URIs are relative to *https://api.segmentapis.com*
99
| [**deleteReverseEtlModel**](ReverseEtlApi.md#deleteReverseEtlModel) | **DELETE** /reverse-etl-models/{modelId} | Delete Reverse Etl Model |
1010
| [**getReverseETLSyncStatus**](ReverseEtlApi.md#getReverseETLSyncStatus) | **GET** /reverse-etl-models/{modelId}/syncs/{syncId} | Get Reverse ETL Sync Status |
1111
| [**getReverseEtlModel**](ReverseEtlApi.md#getReverseEtlModel) | **GET** /reverse-etl-models/{modelId} | Get Reverse Etl Model |
12+
| [**listReverseETLSyncStatusesFromModelAndSubscriptionId**](ReverseEtlApi.md#listReverseETLSyncStatusesFromModelAndSubscriptionId) | **GET** /reverse-etl-models/{modelId}/subscriptionId/{subscriptionId}/syncs | List Reverse ETL Sync Statuses from Model And Subscription Id |
1213
| [**listReverseEtlModels**](ReverseEtlApi.md#listReverseEtlModels) | **GET** /reverse-etl-models | List Reverse Etl Models |
1314
| [**updateReverseEtlModel**](ReverseEtlApi.md#updateReverseEtlModel) | **PATCH** /reverse-etl-models/{modelId} | Update Reverse Etl Model |
1415

@@ -381,6 +382,85 @@ public class Example {
381382
| **429** | Too many requests | - |
382383

383384

385+
## Operation: listReverseETLSyncStatusesFromModelAndSubscriptionId
386+
387+
> ListReverseETLSyncStatusesFromModelAndSubscriptionId200Response listReverseETLSyncStatusesFromModelAndSubscriptionId(modelId, subscriptionId, count, cursor)
388+
389+
List Reverse ETL Sync Statuses from Model And Subscription Id
390+
391+
Get the sync statuses for a Reverse ETL mapping subscription. The sync status includes all detailed information about the sync - sync status, duration, details about the extract and load phase if applicable, etc. The default page count is 10, and then the next page can be fetched by passing the &#x60;cursor&#x60; query parameter.
392+
393+
### Example
394+
395+
```java
396+
// Import classes:
397+
import com.segment.publicapi.ApiClient;
398+
import com.segment.publicapi.ApiException;
399+
import com.segment.publicapi.Configuration;
400+
import com.segment.publicapi.auth.*;
401+
import com.segment.publicapi.models.*;
402+
import com.segment.publicapi.api.ReverseEtlApi;
403+
404+
public class Example {
405+
public static void main(String[] args) {
406+
ApiClient defaultClient = Configuration.getDefaultApiClient();
407+
408+
// Configure HTTP bearer authorization: token
409+
HttpBearerAuth token = (HttpBearerAuth) defaultClient.getAuthentication("token");
410+
token.setBearerToken("BEARER TOKEN");
411+
412+
ReverseEtlApi apiInstance = new ReverseEtlApi(defaultClient);
413+
String modelId = "modelId"; // String |
414+
String subscriptionId = "subscriptionId"; // String |
415+
BigDecimal count = new BigDecimal(78); // BigDecimal | The number of items to retrieve in a page, between 1 and 100. Default is 10 This parameter exists in alpha.
416+
String cursor = "cursor_example"; // String | The page to request. Acceptable values to use are from the `current`, `next`, and `previous` keys. This parameter exists in alpha.
417+
try {
418+
ListReverseETLSyncStatusesFromModelAndSubscriptionId200Response result = apiInstance.listReverseETLSyncStatusesFromModelAndSubscriptionId(modelId, subscriptionId, count, cursor);
419+
System.out.println(result);
420+
} catch (ApiException e) {
421+
System.err.println("Exception when calling ReverseEtlApi#listReverseETLSyncStatusesFromModelAndSubscriptionId");
422+
System.err.println("Status code: " + e.getCode());
423+
System.err.println("Reason: " + e.getResponseBody());
424+
System.err.println("Response headers: " + e.getResponseHeaders());
425+
e.printStackTrace();
426+
}
427+
}
428+
}
429+
```
430+
431+
### Parameters
432+
433+
434+
| Name | Type | Description | Notes |
435+
|------------- | ------------- | ------------- | -------------|
436+
| **modelId** | **String**| | |
437+
| **subscriptionId** | **String**| | |
438+
| **count** | **BigDecimal**| The number of items to retrieve in a page, between 1 and 100. Default is 10 This parameter exists in alpha. | [optional] |
439+
| **cursor** | **String**| The page to request. Acceptable values to use are from the &#x60;current&#x60;, &#x60;next&#x60;, and &#x60;previous&#x60; keys. This parameter exists in alpha. | [optional] |
440+
441+
### Return type
442+
443+
[**ListReverseETLSyncStatusesFromModelAndSubscriptionId200Response**](ListReverseETLSyncStatusesFromModelAndSubscriptionId200Response.md)
444+
445+
### Authorization
446+
447+
[token](../README.md#token)
448+
449+
### HTTP request headers
450+
451+
- **Content-Type**: Not defined
452+
- **Accept**: application/vnd.segment.v1alpha+json, application/json
453+
454+
455+
### HTTP response details
456+
| Status code | Description | Response headers |
457+
|-------------|-------------|------------------|
458+
| **200** | OK | - |
459+
| **404** | Resource not found | - |
460+
| **422** | Validation failure | - |
461+
| **429** | Too many requests | - |
462+
463+
384464
## Operation: listReverseEtlModels
385465

386466
> ListReverseEtlModels200Response listReverseEtlModels(pagination)

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>53.1.0</version>
8+
<version>53.2.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 53.1.0 (Java)");
126+
setUserAgent("Public API SDK 53.2.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 = "53.1.0";
15+
public static final String VERSION = "53.2.0";
1616

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

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,14 @@ private static Class getClassByDiscriminator(
949949
gsonBuilder.registerTypeAdapterFactory(
950950
new com.segment.publicapi.models.ListRegulationsFromSourceV1Output
951951
.CustomTypeAdapterFactory());
952+
gsonBuilder.registerTypeAdapterFactory(
953+
new com.segment.publicapi.models
954+
.ListReverseETLSyncStatusesFromModelAndSubscriptionId200Response
955+
.CustomTypeAdapterFactory());
956+
gsonBuilder.registerTypeAdapterFactory(
957+
new com.segment.publicapi.models
958+
.ListReverseETLSyncStatusesFromModelAndSubscriptionIdOutput
959+
.CustomTypeAdapterFactory());
952960
gsonBuilder.registerTypeAdapterFactory(
953961
new com.segment.publicapi.models.ListReverseEtlModels200Response
954962
.CustomTypeAdapterFactory());
@@ -1286,7 +1294,7 @@ private static Class getClassByDiscriminator(
12861294
new com.segment.publicapi.models.ReverseETLManualSyncJobOutput
12871295
.CustomTypeAdapterFactory());
12881296
gsonBuilder.registerTypeAdapterFactory(
1289-
new com.segment.publicapi.models.ReverseETLSyncOutput.CustomTypeAdapterFactory());
1297+
new com.segment.publicapi.models.ReverseETLSyncStatus.CustomTypeAdapterFactory());
12901298
gsonBuilder.registerTypeAdapterFactory(
12911299
new com.segment.publicapi.models.ReverseEtlModel.CustomTypeAdapterFactory());
12921300
gsonBuilder.registerTypeAdapterFactory(

0 commit comments

Comments
 (0)