Skip to content

Commit bd56042

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@f3f82ca1.
1 parent 5a97da1 commit bd56042

11 files changed

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

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

docs/DbtApi.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# DbtApi
2+
3+
All URIs are relative to *https://api.segmentapis.com*
4+
5+
| Method | HTTP request | Description |
6+
|------------- | ------------- | -------------|
7+
| [**createDbtModelSyncTrigger**](DbtApi.md#createDbtModelSyncTrigger) | **POST** /dbt-model-syncs/trigger | Create Dbt Model Sync Trigger |
8+
9+
10+
11+
## Operation: createDbtModelSyncTrigger
12+
13+
> CreateDbtModelSyncTrigger200Response createDbtModelSyncTrigger(createDbtModelSyncTriggerInput)
14+
15+
Create Dbt Model Sync Trigger
16+
17+
Creates a trigger for a new dbt model sync for a Source. The rate limit for this endpoint is 10 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.
18+
19+
### Example
20+
21+
```java
22+
// Import classes:
23+
import com.segment.publicapi.ApiClient;
24+
import com.segment.publicapi.ApiException;
25+
import com.segment.publicapi.Configuration;
26+
import com.segment.publicapi.auth.*;
27+
import com.segment.publicapi.models.*;
28+
import com.segment.publicapi.api.DbtApi;
29+
30+
public class Example {
31+
public static void main(String[] args) {
32+
ApiClient defaultClient = Configuration.getDefaultApiClient();
33+
34+
// Configure HTTP bearer authorization: token
35+
HttpBearerAuth token = (HttpBearerAuth) defaultClient.getAuthentication("token");
36+
token.setBearerToken("BEARER TOKEN");
37+
38+
DbtApi apiInstance = new DbtApi(defaultClient);
39+
CreateDbtModelSyncTriggerInput createDbtModelSyncTriggerInput = new CreateDbtModelSyncTriggerInput(); // CreateDbtModelSyncTriggerInput |
40+
try {
41+
CreateDbtModelSyncTrigger200Response result = apiInstance.createDbtModelSyncTrigger(createDbtModelSyncTriggerInput);
42+
System.out.println(result);
43+
} catch (ApiException e) {
44+
System.err.println("Exception when calling DbtApi#createDbtModelSyncTrigger");
45+
System.err.println("Status code: " + e.getCode());
46+
System.err.println("Reason: " + e.getResponseBody());
47+
System.err.println("Response headers: " + e.getResponseHeaders());
48+
e.printStackTrace();
49+
}
50+
}
51+
}
52+
```
53+
54+
### Parameters
55+
56+
57+
| Name | Type | Description | Notes |
58+
|------------- | ------------- | ------------- | -------------|
59+
| **createDbtModelSyncTriggerInput** | [**CreateDbtModelSyncTriggerInput**](CreateDbtModelSyncTriggerInput.md)| | |
60+
61+
### Return type
62+
63+
[**CreateDbtModelSyncTrigger200Response**](CreateDbtModelSyncTrigger200Response.md)
64+
65+
### Authorization
66+
67+
[token](../README.md#token)
68+
69+
### HTTP request headers
70+
71+
- **Content-Type**: application/vnd.segment.v1beta+json
72+
- **Accept**: application/vnd.segment.v1beta+json, application/json
73+
74+
75+
### HTTP response details
76+
| Status code | Description | Response headers |
77+
|-------------|-------------|------------------|
78+
| **200** | OK | - |
79+
| **404** | Resource not found | - |
80+
| **422** | Validation failure | - |
81+
| **429** | Too many requests | - |
82+

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

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

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,15 @@ private static Class getClassByDiscriminator(
232232
gsonBuilder.registerTypeAdapterFactory(
233233
new com.segment.publicapi.models.CreateComputedTraitAlphaOutput
234234
.CustomTypeAdapterFactory());
235+
gsonBuilder.registerTypeAdapterFactory(
236+
new com.segment.publicapi.models.CreateDbtModelSyncTrigger200Response
237+
.CustomTypeAdapterFactory());
238+
gsonBuilder.registerTypeAdapterFactory(
239+
new com.segment.publicapi.models.CreateDbtModelSyncTriggerInput
240+
.CustomTypeAdapterFactory());
241+
gsonBuilder.registerTypeAdapterFactory(
242+
new com.segment.publicapi.models.CreateDbtModelSyncTriggerOutput
243+
.CustomTypeAdapterFactory());
235244
gsonBuilder.registerTypeAdapterFactory(
236245
new com.segment.publicapi.models.CreateDestination200Response
237246
.CustomTypeAdapterFactory());
@@ -427,6 +436,8 @@ private static Class getClassByDiscriminator(
427436
gsonBuilder.registerTypeAdapterFactory(
428437
new com.segment.publicapi.models.CreateWriteKeyForSourceAlphaOutput
429438
.CustomTypeAdapterFactory());
439+
gsonBuilder.registerTypeAdapterFactory(
440+
new com.segment.publicapi.models.DbtModelSyncTrigger.CustomTypeAdapterFactory());
430441
gsonBuilder.registerTypeAdapterFactory(
431442
new com.segment.publicapi.models.DeleteDestination200Response
432443
.CustomTypeAdapterFactory());

0 commit comments

Comments
 (0)