Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0659a9

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 parent960f126 commita0659a9

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 tofriends@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.
102+
Previews Audience. • This endpoint is in**Beta** testing. Please submit any feedback by sending an email tofriends@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.
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_responseimport CreateAudiencePreview200Response
112-
from segment_public_api.models.create_audience_preview_alpha_inputimportCreateAudiencePreviewAlphaInput
112+
from segment_public_api.models.create_audience_preview_beta_inputimportCreateAudiencePreviewBetaInput
113113
from segment_public_api.restimport ApiException
114114
from pprintimport 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
exceptExceptionas 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 tofriends@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. 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 tofriends@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. 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
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__="59.0.0"
18+
__version__="59.1.0"
1919

2020
# import apis into sdk package
2121
fromsegment_public_api.api.api_calls_apiimportAPICallsApi
@@ -128,8 +128,11 @@
128128
fromsegment_public_api.models.create_audience_alpha_inputimportCreateAudienceAlphaInput
129129
fromsegment_public_api.models.create_audience_alpha_outputimportCreateAudienceAlphaOutput
130130
fromsegment_public_api.models.create_audience_preview200_responseimportCreateAudiencePreview200Response
131+
fromsegment_public_api.models.create_audience_preview200_response1importCreateAudiencePreview200Response1
131132
fromsegment_public_api.models.create_audience_preview_alpha_inputimportCreateAudiencePreviewAlphaInput
132133
fromsegment_public_api.models.create_audience_preview_alpha_outputimportCreateAudiencePreviewAlphaOutput
134+
fromsegment_public_api.models.create_audience_preview_beta_inputimportCreateAudiencePreviewBetaInput
135+
fromsegment_public_api.models.create_audience_preview_beta_outputimportCreateAudiencePreviewBetaOutput
133136
fromsegment_public_api.models.create_audience_preview_optionsimportCreateAudiencePreviewOptions
134137
fromsegment_public_api.models.create_cloud_source_regulation200_responseimportCreateCloudSourceRegulation200Response
135138
fromsegment_public_api.models.create_cloud_source_regulation_v1_inputimportCreateCloudSourceRegulationV1Input
@@ -296,7 +299,9 @@
296299
fromsegment_public_api.models.get_audience_alpha_outputimportGetAudienceAlphaOutput
297300
fromsegment_public_api.models.get_audience_beta_outputimportGetAudienceBetaOutput
298301
fromsegment_public_api.models.get_audience_preview200_responseimportGetAudiencePreview200Response
302+
fromsegment_public_api.models.get_audience_preview200_response1importGetAudiencePreview200Response1
299303
fromsegment_public_api.models.get_audience_preview_alpha_outputimportGetAudiencePreviewAlphaOutput
304+
fromsegment_public_api.models.get_audience_preview_beta_outputimportGetAudiencePreviewBetaOutput
300305
fromsegment_public_api.models.get_audience_schedule_from_space_and_audience200_responseimportGetAudienceScheduleFromSpaceAndAudience200Response
301306
fromsegment_public_api.models.get_audience_schedule_from_space_and_audience_alpha_outputimportGetAudienceScheduleFromSpaceAndAudienceAlphaOutput
302307
fromsegment_public_api.models.get_computed_trait200_responseimportGetComputedTrait200Response

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp