Skip to content

Commit 4119bf3

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@d685b232.
1 parent 86398ce commit 4119bf3

File tree

695 files changed

+983
-728
lines changed

Some content is hidden

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

695 files changed

+983
-728
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: 62.0.6
15-
- Package version: 62.0.6
14+
- API version: 63.0.0
15+
- Package version: 63.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
@@ -101,11 +101,11 @@ Name | Type | Description | Notes
101101

102102
## Operation: create_audience
103103

104-
> CreateAudience200Response create_audience(space_id, create_audience_beta_input)
104+
> CreateAudience200Response create_audience(space_id, create_audience_input)
105105
106106
Create Audience
107107

108-
Creates 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 Created` event in the [audit trail](/tag/Audit-Trail). Note: The definition for an Audience created using the API is not editable through the Segment App. The rate limit for this endpoint is 50 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.
108+
Creates 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 Created` event in the [audit trail](/tag/Audit-Trail). Note: The definition for an Audience created using the API is not editable through the Segment App. The rate limit for this endpoint is 50 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.
109109

110110
### Example
111111

@@ -115,7 +115,7 @@ import time
115115
import os
116116
import segment_public_api
117117
from segment_public_api.models.create_audience200_response import CreateAudience200Response
118-
from segment_public_api.models.create_audience_beta_input import CreateAudienceBetaInput
118+
from segment_public_api.models.create_audience_input import CreateAudienceInput
119119
from segment_public_api.rest import ApiException
120120
from pprint import pprint
121121

@@ -131,11 +131,11 @@ with segment_public_api.ApiClient(configuration) as api_client:
131131
# Create an instance of the API class
132132
api_instance = segment_public_api.AudiencesApi(api_client)
133133
space_id = '9aQ1Lj62S4bomZKLF4DPqW' # str |
134-
create_audience_beta_input = {"name":"Linked Audience","description":"Test linked audience example","enabled":true,"audienceType":"LINKED","definition":{"query":"entity('owned-accounts').count() > 1","targetEntity":"owned-accounts"},"options":{"filterByExternalIds":["user_id","email","ios.idfa","android.idfa"]}} # CreateAudienceBetaInput |
134+
create_audience_input = {"name":"Profiles Audience V1","description":"Test profiles audience v1 example","enabled":true,"audienceType":"USERS","definition":{"query":"event('Purchased').count() >= 1"},"options":{"includeHistoricalData":true}} # CreateAudienceInput |
135135

136136
try:
137137
# Create Audience
138-
api_response = api_instance.create_audience(space_id, create_audience_beta_input)
138+
api_response = api_instance.create_audience(space_id, create_audience_input)
139139
print("The response of AudiencesApi->create_audience:\n")
140140
pprint(api_response)
141141
except Exception as e:
@@ -149,7 +149,7 @@ with segment_public_api.ApiClient(configuration) as api_client:
149149
Name | Type | Description | Notes
150150
------------- | ------------- | ------------- | -------------
151151
**space_id** | **str**| |
152-
**create_audience_beta_input** | [**CreateAudienceBetaInput**](CreateAudienceBetaInput.md)| |
152+
**create_audience_input** | [**CreateAudienceInput**](CreateAudienceInput.md)| |
153153

154154
### Return type
155155

@@ -161,8 +161,8 @@ Name | Type | Description | Notes
161161

162162
### HTTP request headers
163163

164-
- **Content-Type**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
165-
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
164+
- **Content-Type**: application/json, application/vnd.segment.v1+json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
165+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
166166

167167
### HTTP response details
168168
| 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: 62.0.6
10+
The version of the OpenAPI document: 63.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__ = "62.0.6"
18+
__version__ = "63.0.0"
1919

2020
# import apis into sdk package
2121
from segment_public_api.api.api_calls_api import APICallsApi
@@ -130,10 +130,13 @@
130130
from segment_public_api.models.contact import Contact
131131
from segment_public_api.models.create_audience200_response import CreateAudience200Response
132132
from segment_public_api.models.create_audience200_response1 import CreateAudience200Response1
133+
from segment_public_api.models.create_audience200_response2 import CreateAudience200Response2
133134
from segment_public_api.models.create_audience_alpha_input import CreateAudienceAlphaInput
134135
from segment_public_api.models.create_audience_alpha_output import CreateAudienceAlphaOutput
135136
from segment_public_api.models.create_audience_beta_input import CreateAudienceBetaInput
136137
from segment_public_api.models.create_audience_beta_output import CreateAudienceBetaOutput
138+
from segment_public_api.models.create_audience_input import CreateAudienceInput
139+
from segment_public_api.models.create_audience_output import CreateAudienceOutput
137140
from segment_public_api.models.create_audience_preview200_response import CreateAudiencePreview200Response
138141
from segment_public_api.models.create_audience_preview200_response1 import CreateAudiencePreview200Response1
139142
from segment_public_api.models.create_audience_preview_alpha_input import CreateAudiencePreviewAlphaInput

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: 62.0.6
8+
The version of the OpenAPI document: 63.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: 62.0.6
8+
The version of the OpenAPI document: 63.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: 62.0.6
8+
The version of the OpenAPI document: 63.0.0
99
Contact: friends@segment.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -27,7 +27,7 @@
2727
from segment_public_api.models.add_audience_schedule_to_audience200_response import AddAudienceScheduleToAudience200Response
2828
from segment_public_api.models.add_audience_schedule_to_audience_alpha_input import AddAudienceScheduleToAudienceAlphaInput
2929
from segment_public_api.models.create_audience200_response import CreateAudience200Response
30-
from segment_public_api.models.create_audience_beta_input import CreateAudienceBetaInput
30+
from segment_public_api.models.create_audience_input import CreateAudienceInput
3131
from segment_public_api.models.create_audience_preview200_response import CreateAudiencePreview200Response
3232
from segment_public_api.models.create_audience_preview_beta_input import CreateAudiencePreviewBetaInput
3333
from segment_public_api.models.force_execute_audience_run200_response import ForceExecuteAudienceRun200Response
@@ -235,20 +235,20 @@ def add_audience_schedule_to_audience_with_http_info(self, space_id : constr(str
235235
_request_auth=_params.get('_request_auth'))
236236

237237
@validate_arguments
238-
def create_audience(self, space_id : constr(strict=True), create_audience_beta_input : CreateAudienceBetaInput, **kwargs) -> CreateAudience200Response: # noqa: E501
238+
def create_audience(self, space_id : constr(strict=True), create_audience_input : CreateAudienceInput, **kwargs) -> CreateAudience200Response: # noqa: E501
239239
"""Create Audience # noqa: E501
240240
241-
Creates 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 Created` event in the [audit trail](/tag/Audit-Trail). Note: The definition for an Audience created using the API is not editable through the Segment App. The rate limit for this endpoint is 50 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. # noqa: E501
241+
Creates 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 Created` event in the [audit trail](/tag/Audit-Trail). Note: The definition for an Audience created using the API is not editable through the Segment App. The rate limit for this endpoint is 50 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. # noqa: E501
242242
This method makes a synchronous HTTP request by default. To make an
243243
asynchronous HTTP request, please pass async_req=True
244244
245-
>>> thread = api.create_audience(space_id, create_audience_beta_input, async_req=True)
245+
>>> thread = api.create_audience(space_id, create_audience_input, async_req=True)
246246
>>> result = thread.get()
247247
248248
:param space_id: (required)
249249
:type space_id: str
250-
:param create_audience_beta_input: (required)
251-
:type create_audience_beta_input: CreateAudienceBetaInput
250+
:param create_audience_input: (required)
251+
:type create_audience_input: CreateAudienceInput
252252
:param async_req: Whether to execute the request asynchronously.
253253
:type async_req: bool, optional
254254
:param _request_timeout: timeout setting for this request.
@@ -264,23 +264,23 @@ def create_audience(self, space_id : constr(strict=True), create_audience_beta_i
264264
if '_preload_content' in kwargs:
265265
message = "Error! Please call the create_audience_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
266266
raise ValueError(message)
267-
return self.create_audience_with_http_info(space_id, create_audience_beta_input, **kwargs) # noqa: E501
267+
return self.create_audience_with_http_info(space_id, create_audience_input, **kwargs) # noqa: E501
268268

269269
@validate_arguments
270-
def create_audience_with_http_info(self, space_id : constr(strict=True), create_audience_beta_input : CreateAudienceBetaInput, **kwargs) -> ApiResponse: # noqa: E501
270+
def create_audience_with_http_info(self, space_id : constr(strict=True), create_audience_input : CreateAudienceInput, **kwargs) -> ApiResponse: # noqa: E501
271271
"""Create Audience # noqa: E501
272272
273-
Creates 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 Created` event in the [audit trail](/tag/Audit-Trail). Note: The definition for an Audience created using the API is not editable through the Segment App. The rate limit for this endpoint is 50 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. # noqa: E501
273+
Creates 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 Created` event in the [audit trail](/tag/Audit-Trail). Note: The definition for an Audience created using the API is not editable through the Segment App. The rate limit for this endpoint is 50 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. # noqa: E501
274274
This method makes a synchronous HTTP request by default. To make an
275275
asynchronous HTTP request, please pass async_req=True
276276
277-
>>> thread = api.create_audience_with_http_info(space_id, create_audience_beta_input, async_req=True)
277+
>>> thread = api.create_audience_with_http_info(space_id, create_audience_input, async_req=True)
278278
>>> result = thread.get()
279279
280280
:param space_id: (required)
281281
:type space_id: str
282-
:param create_audience_beta_input: (required)
283-
:type create_audience_beta_input: CreateAudienceBetaInput
282+
:param create_audience_input: (required)
283+
:type create_audience_input: CreateAudienceInput
284284
:param async_req: Whether to execute the request asynchronously.
285285
:type async_req: bool, optional
286286
:param _preload_content: if False, the ApiResponse.data will
@@ -310,7 +310,7 @@ def create_audience_with_http_info(self, space_id : constr(strict=True), create_
310310

311311
_all_params = [
312312
'space_id',
313-
'create_audience_beta_input'
313+
'create_audience_input'
314314
]
315315
_all_params.extend(
316316
[
@@ -351,17 +351,17 @@ def create_audience_with_http_info(self, space_id : constr(strict=True), create_
351351
_files = {}
352352
# process the body parameter
353353
_body_params = None
354-
if _params['create_audience_beta_input'] is not None:
355-
_body_params = _params['create_audience_beta_input']
354+
if _params['create_audience_input'] is not None:
355+
_body_params = _params['create_audience_input']
356356

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

361361
# set the HTTP header `Content-Type`
362362
_content_types_list = _params.get('_content_type',
363363
self.api_client.select_header_content_type(
364-
['application/vnd.segment.v1beta+json', 'application/vnd.segment.v1alpha+json']))
364+
['application/json', 'application/vnd.segment.v1+json', 'application/vnd.segment.v1beta+json', 'application/vnd.segment.v1alpha+json']))
365365
if _content_types_list:
366366
_header_params['Content-Type'] = _content_types_list
367367

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

0 commit comments

Comments
 (0)