Skip to content

Commit 00edf51

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 d249ce3 commit 00edf51

File tree

598 files changed

+1183
-597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

598 files changed

+1183
-597
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ See the next sections for more information on how to use the Segment Public API.
1111

1212
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1313

14-
- API version: 57.1.0
15-
- Package version: 57.1.0
14+
- API version: 57.2.0
15+
- Package version: 57.2.0
1616
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1717

1818
For more information, please visit [https://docs.segmentapis.com](https://docs.segmentapis.com)

docs/DBTApi.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# segment_public_api.DBTApi
2+
3+
All URIs are relative to *https://api.segmentapis.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**create_dbt_model_sync_trigger**](DBTApi.md#create_dbt_model_sync_trigger) | **POST** /dbt-model-syncs/trigger | Create Dbt Model Sync Trigger
8+
9+
10+
11+
## Operation: create_dbt_model_sync_trigger
12+
13+
> CreateDbtModelSyncTrigger200Response create_dbt_model_sync_trigger(create_dbt_model_sync_trigger_input)
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+
* Bearer Authentication (token):
22+
```python
23+
import time
24+
import os
25+
import segment_public_api
26+
from segment_public_api.models.create_dbt_model_sync_trigger200_response import CreateDbtModelSyncTrigger200Response
27+
from segment_public_api.models.create_dbt_model_sync_trigger_input import CreateDbtModelSyncTriggerInput
28+
from segment_public_api.rest import ApiException
29+
from pprint import pprint
30+
31+
32+
33+
# Configure Bearer authorization: token
34+
configuration = segment_public_api.Configuration(
35+
access_token = os.environ["BEARER_TOKEN"]
36+
)
37+
38+
# Enter a context with an instance of the API client
39+
with segment_public_api.ApiClient(configuration) as api_client:
40+
# Create an instance of the API class
41+
api_instance = segment_public_api.DBTApi(api_client)
42+
create_dbt_model_sync_trigger_input = {"sourceId":"source-id"} # CreateDbtModelSyncTriggerInput |
43+
44+
try:
45+
# Create Dbt Model Sync Trigger
46+
api_response = api_instance.create_dbt_model_sync_trigger(create_dbt_model_sync_trigger_input)
47+
print("The response of DBTApi->create_dbt_model_sync_trigger:\n")
48+
pprint(api_response)
49+
except Exception as e:
50+
print("Exception when calling DBTApi->create_dbt_model_sync_trigger: %s\n" % e)
51+
```
52+
53+
54+
55+
### Parameters
56+
57+
Name | Type | Description | Notes
58+
------------- | ------------- | ------------- | -------------
59+
**create_dbt_model_sync_trigger_input** | [**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+
### HTTP response details
75+
| Status code | Description | Response headers |
76+
|-------------|-------------|------------------|
77+
**200** | OK | - |
78+
**404** | Resource not found | - |
79+
**422** | Validation failure | - |
80+
**429** | Too many requests | - |
81+
82+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
83+

segment_public_api/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,23 @@
77
88
The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
99
10-
The version of the OpenAPI document: 57.1.0
10+
The version of the OpenAPI document: 57.2.0
1111
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313
1414
Do not edit the class manually.
1515
""" # noqa: E501
1616

1717

18-
__version__ = "57.1.0"
18+
__version__ = "57.2.0"
1919

2020
# import apis into sdk package
2121
from segment_public_api.api.api_calls_api import APICallsApi
2222
from segment_public_api.api.audiences_api import AudiencesApi
2323
from segment_public_api.api.audit_trail_api import AuditTrailApi
2424
from segment_public_api.api.catalog_api import CatalogApi
2525
from segment_public_api.api.computed_traits_api import ComputedTraitsApi
26+
from segment_public_api.api.dbt_api import DBTApi
2627
from segment_public_api.api.deletion_and_suppression_api import DeletionAndSuppressionApi
2728
from segment_public_api.api.delivery_overview_api import DeliveryOverviewApi
2829
from segment_public_api.api.destination_filters_api import DestinationFiltersApi
@@ -110,6 +111,9 @@
110111
from segment_public_api.models.create_computed_trait200_response import CreateComputedTrait200Response
111112
from segment_public_api.models.create_computed_trait_alpha_input import CreateComputedTraitAlphaInput
112113
from segment_public_api.models.create_computed_trait_alpha_output import CreateComputedTraitAlphaOutput
114+
from segment_public_api.models.create_dbt_model_sync_trigger200_response import CreateDbtModelSyncTrigger200Response
115+
from segment_public_api.models.create_dbt_model_sync_trigger_input import CreateDbtModelSyncTriggerInput
116+
from segment_public_api.models.create_dbt_model_sync_trigger_output import CreateDbtModelSyncTriggerOutput
113117
from segment_public_api.models.create_destination200_response import CreateDestination200Response
114118
from segment_public_api.models.create_destination_subscription200_response import CreateDestinationSubscription200Response
115119
from segment_public_api.models.create_destination_subscription_alpha_input import CreateDestinationSubscriptionAlphaInput
@@ -179,6 +183,7 @@
179183
from segment_public_api.models.create_workspace_regulation_v1_output import CreateWorkspaceRegulationV1Output
180184
from segment_public_api.models.create_write_key_for_source200_response import CreateWriteKeyForSource200Response
181185
from segment_public_api.models.create_write_key_for_source_alpha_output import CreateWriteKeyForSourceAlphaOutput
186+
from segment_public_api.models.dbt_model_sync_trigger import DbtModelSyncTrigger
182187
from segment_public_api.models.delete_destination200_response import DeleteDestination200Response
183188
from segment_public_api.models.delete_destination_v1_output import DeleteDestinationV1Output
184189
from segment_public_api.models.delete_filter_by_id200_response import DeleteFilterById200Response

segment_public_api/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from segment_public_api.api.audit_trail_api import AuditTrailApi
77
from segment_public_api.api.catalog_api import CatalogApi
88
from segment_public_api.api.computed_traits_api import ComputedTraitsApi
9+
from segment_public_api.api.dbt_api import DBTApi
910
from segment_public_api.api.deletion_and_suppression_api import DeletionAndSuppressionApi
1011
from segment_public_api.api.delivery_overview_api import DeliveryOverviewApi
1112
from segment_public_api.api.destination_filters_api import DestinationFiltersApi

segment_public_api/api/api_calls_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
77
8-
The version of the OpenAPI document: 57.1.0
8+
The version of the OpenAPI document: 57.2.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

segment_public_api/api/audiences_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
77
8-
The version of the OpenAPI document: 57.1.0
8+
The version of the OpenAPI document: 57.2.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

segment_public_api/api/audit_trail_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
77
8-
The version of the OpenAPI document: 57.1.0
8+
The version of the OpenAPI document: 57.2.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

segment_public_api/api/catalog_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
77
8-
The version of the OpenAPI document: 57.1.0
8+
The version of the OpenAPI document: 57.2.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

segment_public_api/api/computed_traits_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
77
8-
The version of the OpenAPI document: 57.1.0
8+
The version of the OpenAPI document: 57.2.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

0 commit comments

Comments
 (0)