Skip to content

Commit b96c7c7

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@d97d089c.
1 parent 4f25968 commit b96c7c7

File tree

707 files changed

+989
-740
lines changed

Some content is hidden

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

707 files changed

+989
-740
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: 67.0.0
15-
- Package version: 67.0.0
14+
- API version: 68.0.0
15+
- Package version: 68.0.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/AudiencesApi.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ Name | Type | Description | Notes
177177

178178
## Operation: create_audience_preview
179179

180-
> CreateAudiencePreview200Response create_audience_preview(space_id, create_audience_preview_beta_input)
180+
> CreateAudiencePreview200Response create_audience_preview(space_id, create_audience_preview_input)
181181
182182
Create Audience Preview
183183

184-
Previews Audience. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to friends@segment.com. • 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. • When called, this endpoint may generate the `Audience Preview Created` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 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. This endpoint also has a rate limit of 700 requests per month per spaceId, which is lower than the default due to access pattern restrictions.
184+
Previews 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. • When called, this endpoint may generate the `Audience Preview Created` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 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. This endpoint also has a rate limit of 700 requests per month per spaceId, which is lower than the default due to access pattern restrictions.
185185

186186
### Example
187187

@@ -191,7 +191,7 @@ import time
191191
import os
192192
import segment_public_api
193193
from segment_public_api.models.create_audience_preview200_response import CreateAudiencePreview200Response
194-
from segment_public_api.models.create_audience_preview_beta_input import CreateAudiencePreviewBetaInput
194+
from segment_public_api.models.create_audience_preview_input import CreateAudiencePreviewInput
195195
from segment_public_api.rest import ApiException
196196
from pprint import pprint
197197

@@ -207,11 +207,11 @@ with segment_public_api.ApiClient(configuration) as api_client:
207207
# Create an instance of the API class
208208
api_instance = segment_public_api.AudiencesApi(api_client)
209209
space_id = '9aQ1Lj62S4bomZKLF4DPqW' # str |
210-
create_audience_preview_beta_input = {"definition":{"query":"entity('owned-accounts').count() >= 1","targetEntity":"owned-accounts"},"audienceType":"LINKED","options":{"filterByExternalIds":["android.idfa","anonymous_id","email","ios.idfa","user_id"]}} # CreateAudiencePreviewBetaInput |
210+
create_audience_preview_input = {"definition":{"query":"event('Shoes Bought').count() >= 1"},"audienceType":"USERS","options":{"filterByExternalIds":["android.idfa","anonymous_id","email","ios.idfa","user_id"],"backfillEventDataDays":7}} # CreateAudiencePreviewInput |
211211

212212
try:
213213
# Create Audience Preview
214-
api_response = api_instance.create_audience_preview(space_id, create_audience_preview_beta_input)
214+
api_response = api_instance.create_audience_preview(space_id, create_audience_preview_input)
215215
print("The response of AudiencesApi->create_audience_preview:\n")
216216
pprint(api_response)
217217
except Exception as e:
@@ -225,7 +225,7 @@ with segment_public_api.ApiClient(configuration) as api_client:
225225
Name | Type | Description | Notes
226226
------------- | ------------- | ------------- | -------------
227227
**space_id** | **str**| |
228-
**create_audience_preview_beta_input** | [**CreateAudiencePreviewBetaInput**](CreateAudiencePreviewBetaInput.md)| |
228+
**create_audience_preview_input** | [**CreateAudiencePreviewInput**](CreateAudiencePreviewInput.md)| |
229229

230230
### Return type
231231

@@ -237,8 +237,8 @@ Name | Type | Description | Notes
237237

238238
### HTTP request headers
239239

240-
- **Content-Type**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
241-
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
240+
- **Content-Type**: application/json, application/vnd.segment.v1+json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
241+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
242242

243243
### HTTP response details
244244
| Status code | Description | Response headers |

segment_public_api/__init__.py

Lines changed: 5 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: 67.0.0
10+
The version of the OpenAPI document: 68.0.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__ = "67.0.0"
18+
__version__ = "68.0.0"
1919

2020
# import apis into sdk package
2121
from segment_public_api.api.api_calls_api import APICallsApi
@@ -139,11 +139,14 @@
139139
from segment_public_api.models.create_audience_output import CreateAudienceOutput
140140
from segment_public_api.models.create_audience_preview200_response import CreateAudiencePreview200Response
141141
from segment_public_api.models.create_audience_preview200_response1 import CreateAudiencePreview200Response1
142+
from segment_public_api.models.create_audience_preview200_response2 import CreateAudiencePreview200Response2
142143
from segment_public_api.models.create_audience_preview_alpha_input import CreateAudiencePreviewAlphaInput
143144
from segment_public_api.models.create_audience_preview_alpha_output import CreateAudiencePreviewAlphaOutput
144145
from segment_public_api.models.create_audience_preview_beta_input import CreateAudiencePreviewBetaInput
145146
from segment_public_api.models.create_audience_preview_beta_output import CreateAudiencePreviewBetaOutput
147+
from segment_public_api.models.create_audience_preview_input import CreateAudiencePreviewInput
146148
from segment_public_api.models.create_audience_preview_options import CreateAudiencePreviewOptions
149+
from segment_public_api.models.create_audience_preview_output import CreateAudiencePreviewOutput
147150
from segment_public_api.models.create_cloud_source_regulation200_response import CreateCloudSourceRegulation200Response
148151
from segment_public_api.models.create_cloud_source_regulation_v1_input import CreateCloudSourceRegulationV1Input
149152
from segment_public_api.models.create_cloud_source_regulation_v1_output import CreateCloudSourceRegulationV1Output

segment_public_api/api/activations_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: 67.0.0
8+
The version of the OpenAPI document: 68.0.0
99
Contact: friends@segment.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

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: 67.0.0
8+
The version of the OpenAPI document: 68.0.0
99
Contact: friends@segment.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

segment_public_api/api/audiences_api.py

Lines changed: 18 additions & 18 deletions
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: 67.0.0
8+
The version of the OpenAPI document: 68.0.0
99
Contact: friends@segment.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -29,7 +29,7 @@
2929
from segment_public_api.models.create_audience200_response import CreateAudience200Response
3030
from segment_public_api.models.create_audience_input import CreateAudienceInput
3131
from segment_public_api.models.create_audience_preview200_response import CreateAudiencePreview200Response
32-
from segment_public_api.models.create_audience_preview_beta_input import CreateAudiencePreviewBetaInput
32+
from segment_public_api.models.create_audience_preview_input import CreateAudiencePreviewInput
3333
from segment_public_api.models.force_execute_audience_run200_response import ForceExecuteAudienceRun200Response
3434
from segment_public_api.models.get_audience200_response import GetAudience200Response
3535
from segment_public_api.models.get_audience_preview200_response import GetAudiencePreview200Response
@@ -393,20 +393,20 @@ def create_audience_with_http_info(self, space_id : constr(strict=True), create_
393393
_request_auth=_params.get('_request_auth'))
394394

395395
@validate_arguments
396-
def create_audience_preview(self, space_id : constr(strict=True), create_audience_preview_beta_input : CreateAudiencePreviewBetaInput, **kwargs) -> CreateAudiencePreview200Response: # noqa: E501
396+
def create_audience_preview(self, space_id : constr(strict=True), create_audience_preview_input : CreateAudiencePreviewInput, **kwargs) -> CreateAudiencePreview200Response: # noqa: E501
397397
"""Create Audience Preview # noqa: E501
398398
399-
Previews Audience. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to friends@segment.com. • 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. • When called, this endpoint may generate the `Audience Preview Created` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 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. This endpoint also has a rate limit of 700 requests per month per spaceId, which is lower than the default due to access pattern restrictions. # noqa: E501
399+
Previews 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. • When called, this endpoint may generate the `Audience Preview Created` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 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. This endpoint also has a rate limit of 700 requests per month per spaceId, which is lower than the default due to access pattern restrictions. # noqa: E501
400400
This method makes a synchronous HTTP request by default. To make an
401401
asynchronous HTTP request, please pass async_req=True
402402
403-
>>> thread = api.create_audience_preview(space_id, create_audience_preview_beta_input, async_req=True)
403+
>>> thread = api.create_audience_preview(space_id, create_audience_preview_input, async_req=True)
404404
>>> result = thread.get()
405405
406406
:param space_id: (required)
407407
:type space_id: str
408-
:param create_audience_preview_beta_input: (required)
409-
:type create_audience_preview_beta_input: CreateAudiencePreviewBetaInput
408+
:param create_audience_preview_input: (required)
409+
:type create_audience_preview_input: CreateAudiencePreviewInput
410410
:param async_req: Whether to execute the request asynchronously.
411411
:type async_req: bool, optional
412412
:param _request_timeout: timeout setting for this request.
@@ -422,23 +422,23 @@ def create_audience_preview(self, space_id : constr(strict=True), create_audienc
422422
if '_preload_content' in kwargs:
423423
message = "Error! Please call the create_audience_preview_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
424424
raise ValueError(message)
425-
return self.create_audience_preview_with_http_info(space_id, create_audience_preview_beta_input, **kwargs) # noqa: E501
425+
return self.create_audience_preview_with_http_info(space_id, create_audience_preview_input, **kwargs) # noqa: E501
426426

427427
@validate_arguments
428-
def create_audience_preview_with_http_info(self, space_id : constr(strict=True), create_audience_preview_beta_input : CreateAudiencePreviewBetaInput, **kwargs) -> ApiResponse: # noqa: E501
428+
def create_audience_preview_with_http_info(self, space_id : constr(strict=True), create_audience_preview_input : CreateAudiencePreviewInput, **kwargs) -> ApiResponse: # noqa: E501
429429
"""Create Audience Preview # noqa: E501
430430
431-
Previews Audience. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to friends@segment.com. • 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. • When called, this endpoint may generate the `Audience Preview Created` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 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. This endpoint also has a rate limit of 700 requests per month per spaceId, which is lower than the default due to access pattern restrictions. # noqa: E501
431+
Previews 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. • When called, this endpoint may generate the `Audience Preview Created` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 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. This endpoint also has a rate limit of 700 requests per month per spaceId, which is lower than the default due to access pattern restrictions. # noqa: E501
432432
This method makes a synchronous HTTP request by default. To make an
433433
asynchronous HTTP request, please pass async_req=True
434434
435-
>>> thread = api.create_audience_preview_with_http_info(space_id, create_audience_preview_beta_input, async_req=True)
435+
>>> thread = api.create_audience_preview_with_http_info(space_id, create_audience_preview_input, async_req=True)
436436
>>> result = thread.get()
437437
438438
:param space_id: (required)
439439
:type space_id: str
440-
:param create_audience_preview_beta_input: (required)
441-
:type create_audience_preview_beta_input: CreateAudiencePreviewBetaInput
440+
:param create_audience_preview_input: (required)
441+
:type create_audience_preview_input: CreateAudiencePreviewInput
442442
:param async_req: Whether to execute the request asynchronously.
443443
:type async_req: bool, optional
444444
:param _preload_content: if False, the ApiResponse.data will
@@ -468,7 +468,7 @@ def create_audience_preview_with_http_info(self, space_id : constr(strict=True),
468468

469469
_all_params = [
470470
'space_id',
471-
'create_audience_preview_beta_input'
471+
'create_audience_preview_input'
472472
]
473473
_all_params.extend(
474474
[
@@ -509,17 +509,17 @@ def create_audience_preview_with_http_info(self, space_id : constr(strict=True),
509509
_files = {}
510510
# process the body parameter
511511
_body_params = None
512-
if _params['create_audience_preview_beta_input'] is not None:
513-
_body_params = _params['create_audience_preview_beta_input']
512+
if _params['create_audience_preview_input'] is not None:
513+
_body_params = _params['create_audience_preview_input']
514514

515515
# set the HTTP header `Accept`
516516
_header_params['Accept'] = self.api_client.select_header_accept(
517-
['application/vnd.segment.v1beta+json', 'application/vnd.segment.v1alpha+json', 'application/json']) # noqa: E501
517+
['application/vnd.segment.v1+json', 'application/json', 'application/vnd.segment.v1beta+json', 'application/vnd.segment.v1alpha+json']) # noqa: E501
518518

519519
# set the HTTP header `Content-Type`
520520
_content_types_list = _params.get('_content_type',
521521
self.api_client.select_header_content_type(
522-
['application/vnd.segment.v1beta+json', 'application/vnd.segment.v1alpha+json']))
522+
['application/json', 'application/vnd.segment.v1+json', 'application/vnd.segment.v1beta+json', 'application/vnd.segment.v1alpha+json']))
523523
if _content_types_list:
524524
_header_params['Content-Type'] = _content_types_list
525525

0 commit comments

Comments
 (0)