-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This updates the SDK from internal repo commit segmentio/public-api@f3f82ca1.
- Loading branch information
APIs and Common Services team
committed
Dec 9, 2024
1 parent
5a97da1
commit bd56042
Showing
11 changed files
with
1,252 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# DbtApi | ||
|
||
All URIs are relative to *https://api.segmentapis.com* | ||
|
||
| Method | HTTP request | Description | | ||
|------------- | ------------- | -------------| | ||
| [**createDbtModelSyncTrigger**](DbtApi.md#createDbtModelSyncTrigger) | **POST** /dbt-model-syncs/trigger | Create Dbt Model Sync Trigger | | ||
|
||
|
||
|
||
## Operation: createDbtModelSyncTrigger | ||
|
||
> CreateDbtModelSyncTrigger200Response createDbtModelSyncTrigger(createDbtModelSyncTriggerInput) | ||
Create Dbt Model Sync Trigger | ||
|
||
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. | ||
|
||
### Example | ||
|
||
```java | ||
// Import classes: | ||
import com.segment.publicapi.ApiClient; | ||
import com.segment.publicapi.ApiException; | ||
import com.segment.publicapi.Configuration; | ||
import com.segment.publicapi.auth.*; | ||
import com.segment.publicapi.models.*; | ||
import com.segment.publicapi.api.DbtApi; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ApiClient defaultClient = Configuration.getDefaultApiClient(); | ||
|
||
// Configure HTTP bearer authorization: token | ||
HttpBearerAuth token = (HttpBearerAuth) defaultClient.getAuthentication("token"); | ||
token.setBearerToken("BEARER TOKEN"); | ||
|
||
DbtApi apiInstance = new DbtApi(defaultClient); | ||
CreateDbtModelSyncTriggerInput createDbtModelSyncTriggerInput = new CreateDbtModelSyncTriggerInput(); // CreateDbtModelSyncTriggerInput | | ||
try { | ||
CreateDbtModelSyncTrigger200Response result = apiInstance.createDbtModelSyncTrigger(createDbtModelSyncTriggerInput); | ||
System.out.println(result); | ||
} catch (ApiException e) { | ||
System.err.println("Exception when calling DbtApi#createDbtModelSyncTrigger"); | ||
System.err.println("Status code: " + e.getCode()); | ||
System.err.println("Reason: " + e.getResponseBody()); | ||
System.err.println("Response headers: " + e.getResponseHeaders()); | ||
e.printStackTrace(); | ||
} | ||
} | ||
} | ||
``` | ||
|
||
### Parameters | ||
|
||
|
||
| Name | Type | Description | Notes | | ||
|------------- | ------------- | ------------- | -------------| | ||
| **createDbtModelSyncTriggerInput** | [**CreateDbtModelSyncTriggerInput**](CreateDbtModelSyncTriggerInput.md)| | | | ||
|
||
### Return type | ||
|
||
[**CreateDbtModelSyncTrigger200Response**](CreateDbtModelSyncTrigger200Response.md) | ||
|
||
### Authorization | ||
|
||
[token](../README.md#token) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/vnd.segment.v1beta+json | ||
- **Accept**: application/vnd.segment.v1beta+json, application/json | ||
|
||
|
||
### HTTP response details | ||
| Status code | Description | Response headers | | ||
|-------------|-------------|------------------| | ||
| **200** | OK | - | | ||
| **404** | Resource not found | - | | ||
| **422** | Validation failure | - | | ||
| **429** | Too many requests | - | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.