Skip to content

Commit a0659a9

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@0753fa4a.
1 parent 960f126 commit a0659a9

File tree

668 files changed

+1125
-720
lines changed

Some content is hidden

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

668 files changed

+1125
-720
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: 59.0.0
15-
- Package version: 59.0.0
14+
- API version: 59.1.0
15+
- Package version: 59.1.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: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ Name | Type | Description | Notes
9595

9696
## Operation: create_audience_preview
9797

98-
> CreateAudiencePreview200Response create_audience_preview(space_id, create_audience_preview_alpha_input)
98+
> CreateAudiencePreview200Response create_audience_preview(space_id, create_audience_preview_beta_input)
9999
100100
Create Audience Preview
101101

102-
Previews Audience. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to [email protected]. • 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.
102+
Previews Audience. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to [email protected]. • 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.
103103

104104
### Example
105105

@@ -109,7 +109,7 @@ import time
109109
import os
110110
import segment_public_api
111111
from segment_public_api.models.create_audience_preview200_response import CreateAudiencePreview200Response
112-
from segment_public_api.models.create_audience_preview_alpha_input import CreateAudiencePreviewAlphaInput
112+
from segment_public_api.models.create_audience_preview_beta_input import CreateAudiencePreviewBetaInput
113113
from segment_public_api.rest import ApiException
114114
from pprint import pprint
115115

@@ -125,11 +125,11 @@ with segment_public_api.ApiClient(configuration) as api_client:
125125
# Create an instance of the API class
126126
api_instance = segment_public_api.AudiencesApi(api_client)
127127
space_id = '9aQ1Lj62S4bomZKLF4DPqW' # str |
128-
create_audience_preview_alpha_input = {"definition":{"query":"entity('owned-accounts').count() >= 1","targetEntity":"owned-accounts"},"audienceType":"LINKED","options":{"filterByExternalIds":["android.idfa","anonymous_id","email","ios.idfa","user_id"]}} # CreateAudiencePreviewAlphaInput |
128+
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 |
129129

130130
try:
131131
# Create Audience Preview
132-
api_response = api_instance.create_audience_preview(space_id, create_audience_preview_alpha_input)
132+
api_response = api_instance.create_audience_preview(space_id, create_audience_preview_beta_input)
133133
print("The response of AudiencesApi->create_audience_preview:\n")
134134
pprint(api_response)
135135
except Exception as e:
@@ -143,7 +143,7 @@ with segment_public_api.ApiClient(configuration) as api_client:
143143
Name | Type | Description | Notes
144144
------------- | ------------- | ------------- | -------------
145145
**space_id** | **str**| |
146-
**create_audience_preview_alpha_input** | [**CreateAudiencePreviewAlphaInput**](CreateAudiencePreviewAlphaInput.md)| |
146+
**create_audience_preview_beta_input** | [**CreateAudiencePreviewBetaInput**](CreateAudiencePreviewBetaInput.md)| |
147147

148148
### Return type
149149

@@ -155,8 +155,8 @@ Name | Type | Description | Notes
155155

156156
### HTTP request headers
157157

158-
- **Content-Type**: application/vnd.segment.v1alpha+json
159-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
158+
- **Content-Type**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
159+
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
160160

161161
### HTTP response details
162162
| Status code | Description | Response headers |
@@ -252,7 +252,7 @@ Name | Type | Description | Notes
252252
253253
Get Audience Preview
254254

255-
Reads the results of an audience preview. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to [email protected]. • 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 100 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.
255+
Reads the results of an audience preview. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to [email protected]. • 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 100 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.
256256

257257
### Example
258258

@@ -308,7 +308,7 @@ Name | Type | Description | Notes
308308
### HTTP request headers
309309

310310
- **Content-Type**: Not defined
311-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
311+
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
312312

313313
### HTTP response details
314314
| Status code | Description | Response headers |

segment_public_api/__init__.py

Lines changed: 7 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: 59.0.0
10+
The version of the OpenAPI document: 59.1.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__ = "59.0.0"
18+
__version__ = "59.1.0"
1919

2020
# import apis into sdk package
2121
from segment_public_api.api.api_calls_api import APICallsApi
@@ -128,8 +128,11 @@
128128
from segment_public_api.models.create_audience_alpha_input import CreateAudienceAlphaInput
129129
from segment_public_api.models.create_audience_alpha_output import CreateAudienceAlphaOutput
130130
from segment_public_api.models.create_audience_preview200_response import CreateAudiencePreview200Response
131+
from segment_public_api.models.create_audience_preview200_response1 import CreateAudiencePreview200Response1
131132
from segment_public_api.models.create_audience_preview_alpha_input import CreateAudiencePreviewAlphaInput
132133
from segment_public_api.models.create_audience_preview_alpha_output import CreateAudiencePreviewAlphaOutput
134+
from segment_public_api.models.create_audience_preview_beta_input import CreateAudiencePreviewBetaInput
135+
from segment_public_api.models.create_audience_preview_beta_output import CreateAudiencePreviewBetaOutput
133136
from segment_public_api.models.create_audience_preview_options import CreateAudiencePreviewOptions
134137
from segment_public_api.models.create_cloud_source_regulation200_response import CreateCloudSourceRegulation200Response
135138
from segment_public_api.models.create_cloud_source_regulation_v1_input import CreateCloudSourceRegulationV1Input
@@ -296,7 +299,9 @@
296299
from segment_public_api.models.get_audience_alpha_output import GetAudienceAlphaOutput
297300
from segment_public_api.models.get_audience_beta_output import GetAudienceBetaOutput
298301
from segment_public_api.models.get_audience_preview200_response import GetAudiencePreview200Response
302+
from segment_public_api.models.get_audience_preview200_response1 import GetAudiencePreview200Response1
299303
from segment_public_api.models.get_audience_preview_alpha_output import GetAudiencePreviewAlphaOutput
304+
from segment_public_api.models.get_audience_preview_beta_output import GetAudiencePreviewBetaOutput
300305
from segment_public_api.models.get_audience_schedule_from_space_and_audience200_response import GetAudienceScheduleFromSpaceAndAudience200Response
301306
from segment_public_api.models.get_audience_schedule_from_space_and_audience_alpha_output import GetAudienceScheduleFromSpaceAndAudienceAlphaOutput
302307
from segment_public_api.models.get_computed_trait200_response import GetComputedTrait200Response

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: 59.0.0
8+
The version of the OpenAPI document: 59.1.0
99
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: 59.0.0
8+
The version of the OpenAPI document: 59.1.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

0 commit comments

Comments
 (0)