Skip to content

Commit 1d9e83a

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@e89c1ed7.
1 parent 3432e88 commit 1d9e83a

775 files changed

Lines changed: 1556 additions & 776 deletions

File tree

Some content is hidden

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

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: 73.2.0
15-
- Package version: 73.2.0
14+
- API version: 73.3.0
15+
- Package version: 73.3.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/ActivationsApi.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**add_activation_to_audience**](ActivationsApi.md#add_activation_to_audience) | **POST** /spaces/{spaceId}/audiences/{audienceId}/destination-connections/{connectionId}/activations | Add Activation to Audience
88
[**add_destination_to_audience**](ActivationsApi.md#add_destination_to_audience) | **POST** /spaces/{spaceId}/audiences/{audienceId}/destination-connections | Add Destination to Audience
9+
[**batch_query_activations_for_space**](ActivationsApi.md#batch_query_activations_for_space) | **POST** /spaces/{spaceId}/activations/batch | Batch Query Activations for Space
910
[**get_activation_from_audience**](ActivationsApi.md#get_activation_from_audience) | **GET** /spaces/{spaceId}/audiences/{audienceId}/activations/{id} | Get Activation from Audience
1011
[**list_activations_from_audience**](ActivationsApi.md#list_activations_from_audience) | **GET** /spaces/{spaceId}/audiences/{audienceId}/activations | List Activations from Audience
1112
[**list_destinations_from_audience**](ActivationsApi.md#list_destinations_from_audience) | **GET** /spaces/{spaceId}/audiences/{audienceId}/destination-connections | List Destinations from Audience
@@ -171,6 +172,80 @@ Name | Type | Description | Notes
171172
[[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)
172173

173174

175+
## Operation: batch_query_activations_for_space
176+
177+
> BatchQueryActivationsForSpace200Response batch_query_activations_for_space(space_id, batch_query_activations_for_space_alpha_input)
178+
179+
Batch Query Activations for Space
180+
181+
Lists Activations in bulk across many Audiences in one call. Intended for bulk reads, for example pulling activation metadata for hundreds of audiences on a schedule, so callers don't need one `listActivationsFromAudience` call per audience. • In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information. The rate limit for this endpoint is 60 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.
182+
183+
### Example
184+
185+
* Bearer Authentication (token):
186+
```python
187+
import time
188+
import os
189+
import segment_public_api
190+
from segment_public_api.models.batch_query_activations_for_space200_response import BatchQueryActivationsForSpace200Response
191+
from segment_public_api.models.batch_query_activations_for_space_alpha_input import BatchQueryActivationsForSpaceAlphaInput
192+
from segment_public_api.rest import ApiException
193+
from pprint import pprint
194+
195+
196+
197+
# Configure Bearer authorization: token
198+
configuration = segment_public_api.Configuration(
199+
access_token = os.environ["BEARER_TOKEN"]
200+
)
201+
# Enter a context with an instance of the API client
202+
with segment_public_api.ApiClient(configuration) as api_client:
203+
# Create an instance of the API class
204+
api_instance = segment_public_api.ActivationsApi(api_client)
205+
space_id = 'spa_9aQ1Lj62S4bomZKLF4DPqW' # str |
206+
batch_query_activations_for_space_alpha_input = {"audienceIds":["aud_0ujsszwN8NRY24YaXiTIE2VWDTS"],"pagination":{"count":50}} # BatchQueryActivationsForSpaceAlphaInput |
207+
208+
try:
209+
# Batch Query Activations for Space
210+
api_response = api_instance.batch_query_activations_for_space(space_id, batch_query_activations_for_space_alpha_input)
211+
print("The response of ActivationsApi->batch_query_activations_for_space:\n")
212+
pprint(api_response)
213+
except Exception as e:
214+
print("Exception when calling ActivationsApi->batch_query_activations_for_space: %s\n" % e)
215+
```
216+
217+
218+
### Parameters
219+
220+
Name | Type | Description | Notes
221+
------------- | ------------- | ------------- | -------------
222+
**space_id** | **str**| |
223+
**batch_query_activations_for_space_alpha_input** | [**BatchQueryActivationsForSpaceAlphaInput**](BatchQueryActivationsForSpaceAlphaInput.md)| |
224+
225+
### Return type
226+
227+
[**BatchQueryActivationsForSpace200Response**](BatchQueryActivationsForSpace200Response.md)
228+
229+
### Authorization
230+
231+
[token](../README.md#token)
232+
233+
### HTTP request headers
234+
235+
- **Content-Type**: application/vnd.segment.v1alpha+json
236+
- **Accept**: application/vnd.segment.v1alpha+json, application/json
237+
238+
### HTTP response details
239+
| Status code | Description | Response headers |
240+
|-------------|-------------|------------------|
241+
**200** | OK | - |
242+
**404** | Resource not found | - |
243+
**422** | Validation failure | - |
244+
**429** | Too many requests | * Retry-After - Number of whole seconds to wait before retrying. Sent when the request was rejected because the authentication token is rate limited. Prefer this over your own backoff schedule when present. <br> |
245+
246+
[[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)
247+
248+
174249
## Operation: get_activation_from_audience
175250

176251
> GetActivationFromAudience200Response get_activation_from_audience(space_id, audience_id, id)

segment_public_api/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
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: 73.2.0
10+
The version of the OpenAPI document: 73.3.0
1111
Contact: friends@segment.com
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313
1414
Do not edit the class manually.
1515
""" # noqa: E501
1616

1717

18-
__version__ = "73.2.0"
18+
__version__ = "73.3.0"
1919

2020
# Define package exports
2121
__all__ = [
@@ -116,6 +116,9 @@
116116
"AudienceSummary",
117117
"AudienceSummaryWithAudienceTypeAndLookback",
118118
"AuditEventV1",
119+
"BatchQueryActivationsForSpace200Response",
120+
"BatchQueryActivationsForSpaceAlphaInput",
121+
"BatchQueryActivationsForSpaceAlphaOutput",
119122
"BatchQueryMessagingSubscriptionsForSpace200Response",
120123
"BatchQueryMessagingSubscriptionsForSpaceAlphaInput",
121124
"BatchQueryMessagingSubscriptionsForSpaceAlphaOutput",
@@ -303,6 +306,7 @@
303306
"EntityDetails",
304307
"EntityPathAlpha",
305308
"EntityPropertyAlpha",
309+
"ErrorsInner",
306310
"EventAlpha",
307311
"EventPropertyAlpha",
308312
"EventPropertyType",
@@ -894,6 +898,9 @@
894898
from segment_public_api.models.audience_summary import AudienceSummary as AudienceSummary
895899
from segment_public_api.models.audience_summary_with_audience_type_and_lookback import AudienceSummaryWithAudienceTypeAndLookback as AudienceSummaryWithAudienceTypeAndLookback
896900
from segment_public_api.models.audit_event_v1 import AuditEventV1 as AuditEventV1
901+
from segment_public_api.models.batch_query_activations_for_space200_response import BatchQueryActivationsForSpace200Response as BatchQueryActivationsForSpace200Response
902+
from segment_public_api.models.batch_query_activations_for_space_alpha_input import BatchQueryActivationsForSpaceAlphaInput as BatchQueryActivationsForSpaceAlphaInput
903+
from segment_public_api.models.batch_query_activations_for_space_alpha_output import BatchQueryActivationsForSpaceAlphaOutput as BatchQueryActivationsForSpaceAlphaOutput
897904
from segment_public_api.models.batch_query_messaging_subscriptions_for_space200_response import BatchQueryMessagingSubscriptionsForSpace200Response as BatchQueryMessagingSubscriptionsForSpace200Response
898905
from segment_public_api.models.batch_query_messaging_subscriptions_for_space_alpha_input import BatchQueryMessagingSubscriptionsForSpaceAlphaInput as BatchQueryMessagingSubscriptionsForSpaceAlphaInput
899906
from segment_public_api.models.batch_query_messaging_subscriptions_for_space_alpha_output import BatchQueryMessagingSubscriptionsForSpaceAlphaOutput as BatchQueryMessagingSubscriptionsForSpaceAlphaOutput
@@ -1081,6 +1088,7 @@
10811088
from segment_public_api.models.entity_details import EntityDetails as EntityDetails
10821089
from segment_public_api.models.entity_path_alpha import EntityPathAlpha as EntityPathAlpha
10831090
from segment_public_api.models.entity_property_alpha import EntityPropertyAlpha as EntityPropertyAlpha
1091+
from segment_public_api.models.errors_inner import ErrorsInner as ErrorsInner
10841092
from segment_public_api.models.event_alpha import EventAlpha as EventAlpha
10851093
from segment_public_api.models.event_property_alpha import EventPropertyAlpha as EventPropertyAlpha
10861094
from segment_public_api.models.event_property_type import EventPropertyType as EventPropertyType

0 commit comments

Comments
 (0)