Skip to content

Commit 4003951

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@a043a71c.
1 parent 69e536f commit 4003951

700 files changed

Lines changed: 982 additions & 736 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: 64.0.0
15-
- Package version: 64.0.0
14+
- API version: 65.0.0
15+
- Package version: 65.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: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ Name | Type | Description | Notes
801801
802802
Remove Audience from Space
803803

804-
Deletes an Audience by id and spaceId. • 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 Deleted` event in the [audit trail](/tag/Audit-Trail). 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.
804+
Deletes an Audience by id and spaceId. • 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 Deleted` event in the [audit trail](/tag/Audit-Trail). 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.
805805

806806
### Example
807807

@@ -949,11 +949,11 @@ Name | Type | Description | Notes
949949

950950
## Operation: update_audience_for_space
951951

952-
> UpdateAudienceForSpace200Response update_audience_for_space(space_id, id, update_audience_for_space_beta_input)
952+
> UpdateAudienceForSpace200Response update_audience_for_space(space_id, id, update_audience_for_space_input)
953953
954954
Update Audience for Space
955955

956-
Updates the Audience. • This endpoint is in **Alpha** 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 Modified` event in the [audit trail](/tag/Audit-Trail). • Note that when an Audience is updated, the Audience will be locked from future edits until the changes have been incorporated. You can find more information [in the Segment docs](https://segment-docs.netlify.app/docs/engage/audiences/#editing-realtime-audiences-and-traits). Note: The definition for an Audience updated 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.
956+
Updates the 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 Modified` event in the [audit trail](/tag/Audit-Trail). • Note that when an Audience is updated, the Audience will be locked from future edits until the changes have been incorporated. You can find more information [in the Segment docs](https://segment-docs.netlify.app/docs/engage/audiences/#editing-realtime-audiences-and-traits). Note: The definition for an Audience updated 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.
957957

958958
### Example
959959

@@ -963,7 +963,7 @@ import time
963963
import os
964964
import segment_public_api
965965
from segment_public_api.models.update_audience_for_space200_response import UpdateAudienceForSpace200Response
966-
from segment_public_api.models.update_audience_for_space_beta_input import UpdateAudienceForSpaceBetaInput
966+
from segment_public_api.models.update_audience_for_space_input import UpdateAudienceForSpaceInput
967967
from segment_public_api.rest import ApiException
968968
from pprint import pprint
969969

@@ -980,11 +980,11 @@ with segment_public_api.ApiClient(configuration) as api_client:
980980
api_instance = segment_public_api.AudiencesApi(api_client)
981981
space_id = '9aQ1Lj62S4bomZKLF4DPqW' # str |
982982
id = 'aud_0ujsszwN8NRY24YaXiTIE2VWDTS' # str |
983-
update_audience_for_space_beta_input = {"name":"Linked Audience updated","description":"updated description","enabled":true,"definition":{"query":"entity('owned-accounts').count() > 2"},"options":{"filterByExternalIds":["user_id","email"]}} # UpdateAudienceForSpaceBetaInput |
983+
update_audience_for_space_input = {"name":"Profiles Audience V1 Updated","description":"Updated V1 description","enabled":true,"definition":{"query":"event('Purchased').count() >= 3"},"options":{"includeHistoricalData":false,"filterByExternalIds":["user_id","email"]}} # UpdateAudienceForSpaceInput |
984984

985985
try:
986986
# Update Audience for Space
987-
api_response = api_instance.update_audience_for_space(space_id, id, update_audience_for_space_beta_input)
987+
api_response = api_instance.update_audience_for_space(space_id, id, update_audience_for_space_input)
988988
print("The response of AudiencesApi->update_audience_for_space:\n")
989989
pprint(api_response)
990990
except Exception as e:
@@ -999,7 +999,7 @@ Name | Type | Description | Notes
999999
------------- | ------------- | ------------- | -------------
10001000
**space_id** | **str**| |
10011001
**id** | **str**| |
1002-
**update_audience_for_space_beta_input** | [**UpdateAudienceForSpaceBetaInput**](UpdateAudienceForSpaceBetaInput.md)| |
1002+
**update_audience_for_space_input** | [**UpdateAudienceForSpaceInput**](UpdateAudienceForSpaceInput.md)| |
10031003

10041004
### Return type
10051005

@@ -1011,8 +1011,8 @@ Name | Type | Description | Notes
10111011

10121012
### HTTP request headers
10131013

1014-
- **Content-Type**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
1015-
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
1014+
- **Content-Type**: application/json, application/vnd.segment.v1+json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
1015+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
10161016

10171017
### HTTP response details
10181018
| 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: 64.0.0
10+
The version of the OpenAPI document: 65.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__ = "64.0.0"
18+
__version__ = "65.0.0"
1919

2020
# import apis into sdk package
2121
from segment_public_api.api.api_calls_api import APICallsApi
@@ -641,10 +641,13 @@
641641
from segment_public_api.models.update_activation_for_audience_output import UpdateActivationForAudienceOutput
642642
from segment_public_api.models.update_audience_for_space200_response import UpdateAudienceForSpace200Response
643643
from segment_public_api.models.update_audience_for_space200_response1 import UpdateAudienceForSpace200Response1
644+
from segment_public_api.models.update_audience_for_space200_response2 import UpdateAudienceForSpace200Response2
644645
from segment_public_api.models.update_audience_for_space_alpha_input import UpdateAudienceForSpaceAlphaInput
645646
from segment_public_api.models.update_audience_for_space_alpha_output import UpdateAudienceForSpaceAlphaOutput
646647
from segment_public_api.models.update_audience_for_space_beta_input import UpdateAudienceForSpaceBetaInput
647648
from segment_public_api.models.update_audience_for_space_beta_output import UpdateAudienceForSpaceBetaOutput
649+
from segment_public_api.models.update_audience_for_space_input import UpdateAudienceForSpaceInput
650+
from segment_public_api.models.update_audience_for_space_output import UpdateAudienceForSpaceOutput
648651
from segment_public_api.models.update_audience_schedule_for_audience200_response import UpdateAudienceScheduleForAudience200Response
649652
from segment_public_api.models.update_audience_schedule_for_audience_alpha_input import UpdateAudienceScheduleForAudienceAlphaInput
650653
from segment_public_api.models.update_audience_schedule_for_audience_alpha_output import UpdateAudienceScheduleForAudienceAlphaOutput

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

0 commit comments

Comments
 (0)