Skip to content

Commit 573265c

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@6f0b0196.
1 parent d0e19f3 commit 573265c

File tree

688 files changed

+1038
-718
lines changed

Some content is hidden

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

688 files changed

+1038
-718
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.5.0
15-
- Package version: 59.5.0
14+
- API version: 59.6.0
15+
- Package version: 59.6.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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ Name | Type | Description | Notes
795795

796796
## Operation: update_audience_for_space
797797

798-
> UpdateAudienceForSpace200Response update_audience_for_space(space_id, id, update_audience_for_space_alpha_input)
798+
> UpdateAudienceForSpace200Response update_audience_for_space(space_id, id, update_audience_for_space_beta_input)
799799
800800
Update Audience for Space
801801

@@ -809,7 +809,7 @@ import time
809809
import os
810810
import segment_public_api
811811
from segment_public_api.models.update_audience_for_space200_response import UpdateAudienceForSpace200Response
812-
from segment_public_api.models.update_audience_for_space_alpha_input import UpdateAudienceForSpaceAlphaInput
812+
from segment_public_api.models.update_audience_for_space_beta_input import UpdateAudienceForSpaceBetaInput
813813
from segment_public_api.rest import ApiException
814814
from pprint import pprint
815815

@@ -826,11 +826,11 @@ with segment_public_api.ApiClient(configuration) as api_client:
826826
api_instance = segment_public_api.AudiencesApi(api_client)
827827
space_id = '9aQ1Lj62S4bomZKLF4DPqW' # str |
828828
id = 'aud_0ujsszwN8NRY24YaXiTIE2VWDTS' # str |
829-
update_audience_for_space_alpha_input = {"enabled":true} # UpdateAudienceForSpaceAlphaInput |
829+
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 |
830830

831831
try:
832832
# Update Audience for Space
833-
api_response = api_instance.update_audience_for_space(space_id, id, update_audience_for_space_alpha_input)
833+
api_response = api_instance.update_audience_for_space(space_id, id, update_audience_for_space_beta_input)
834834
print("The response of AudiencesApi->update_audience_for_space:\n")
835835
pprint(api_response)
836836
except Exception as e:
@@ -845,7 +845,7 @@ Name | Type | Description | Notes
845845
------------- | ------------- | ------------- | -------------
846846
**space_id** | **str**| |
847847
**id** | **str**| |
848-
**update_audience_for_space_alpha_input** | [**UpdateAudienceForSpaceAlphaInput**](UpdateAudienceForSpaceAlphaInput.md)| |
848+
**update_audience_for_space_beta_input** | [**UpdateAudienceForSpaceBetaInput**](UpdateAudienceForSpaceBetaInput.md)| |
849849

850850
### Return type
851851

@@ -857,8 +857,8 @@ Name | Type | Description | Notes
857857

858858
### HTTP request headers
859859

860-
- **Content-Type**: application/vnd.segment.v1alpha+json
861-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
860+
- **Content-Type**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
861+
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
862862

863863
### HTTP response details
864864
| Status code | Description | Response headers |

segment_public_api/__init__.py

Lines changed: 6 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.5.0
10+
The version of the OpenAPI document: 59.6.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.5.0"
18+
__version__ = "59.6.0"
1919

2020
# import apis into sdk package
2121
from segment_public_api.api.api_calls_api import APICallsApi
@@ -99,6 +99,7 @@
9999
from segment_public_api.models.allowed_label_beta import AllowedLabelBeta
100100
from segment_public_api.models.audience_compute_cadence import AudienceComputeCadence
101101
from segment_public_api.models.audience_definition import AudienceDefinition
102+
from segment_public_api.models.audience_definition_without_target_entity import AudienceDefinitionWithoutTargetEntity
102103
from segment_public_api.models.audience_options import AudienceOptions
103104
from segment_public_api.models.audience_options_with_lookback import AudienceOptionsWithLookback
104105
from segment_public_api.models.audience_preview import AudiencePreview
@@ -630,8 +631,11 @@
630631
from segment_public_api.models.update_activation_for_audience_alpha_input import UpdateActivationForAudienceAlphaInput
631632
from segment_public_api.models.update_activation_for_audience_output import UpdateActivationForAudienceOutput
632633
from segment_public_api.models.update_audience_for_space200_response import UpdateAudienceForSpace200Response
634+
from segment_public_api.models.update_audience_for_space200_response1 import UpdateAudienceForSpace200Response1
633635
from segment_public_api.models.update_audience_for_space_alpha_input import UpdateAudienceForSpaceAlphaInput
634636
from segment_public_api.models.update_audience_for_space_alpha_output import UpdateAudienceForSpaceAlphaOutput
637+
from segment_public_api.models.update_audience_for_space_beta_input import UpdateAudienceForSpaceBetaInput
638+
from segment_public_api.models.update_audience_for_space_beta_output import UpdateAudienceForSpaceBetaOutput
635639
from segment_public_api.models.update_audience_schedule_for_audience200_response import UpdateAudienceScheduleForAudience200Response
636640
from segment_public_api.models.update_audience_schedule_for_audience_alpha_input import UpdateAudienceScheduleForAudienceAlphaInput
637641
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: 59.5.0
8+
The version of the OpenAPI document: 59.6.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.5.0
8+
The version of the OpenAPI document: 59.6.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

segment_public_api/api/audiences_api.py

Lines changed: 16 additions & 16 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: 59.5.0
8+
The version of the OpenAPI document: 59.6.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -42,7 +42,7 @@
4242
from segment_public_api.models.pagination_input import PaginationInput
4343
from segment_public_api.models.remove_audience_from_space200_response import RemoveAudienceFromSpace200Response
4444
from segment_public_api.models.update_audience_for_space200_response import UpdateAudienceForSpace200Response
45-
from segment_public_api.models.update_audience_for_space_alpha_input import UpdateAudienceForSpaceAlphaInput
45+
from segment_public_api.models.update_audience_for_space_beta_input import UpdateAudienceForSpaceBetaInput
4646
from segment_public_api.models.update_audience_schedule_for_audience200_response import UpdateAudienceScheduleForAudience200Response
4747
from segment_public_api.models.update_audience_schedule_for_audience_alpha_input import UpdateAudienceScheduleForAudienceAlphaInput
4848

@@ -1662,22 +1662,22 @@ def remove_audience_from_space_with_http_info(self, space_id : constr(strict=Tru
16621662
_request_auth=_params.get('_request_auth'))
16631663

16641664
@validate_arguments
1665-
def update_audience_for_space(self, space_id : constr(strict=True), id : constr(strict=True), update_audience_for_space_alpha_input : UpdateAudienceForSpaceAlphaInput, **kwargs) -> UpdateAudienceForSpace200Response: # noqa: E501
1665+
def update_audience_for_space(self, space_id : constr(strict=True), id : constr(strict=True), update_audience_for_space_beta_input : UpdateAudienceForSpaceBetaInput, **kwargs) -> UpdateAudienceForSpace200Response: # noqa: E501
16661666
"""Update Audience for Space # noqa: E501
16671667
16681668
Updates the 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 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 10 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
16691669
This method makes a synchronous HTTP request by default. To make an
16701670
asynchronous HTTP request, please pass async_req=True
16711671
1672-
>>> thread = api.update_audience_for_space(space_id, id, update_audience_for_space_alpha_input, async_req=True)
1672+
>>> thread = api.update_audience_for_space(space_id, id, update_audience_for_space_beta_input, async_req=True)
16731673
>>> result = thread.get()
16741674
16751675
:param space_id: (required)
16761676
:type space_id: str
16771677
:param id: (required)
16781678
:type id: str
1679-
:param update_audience_for_space_alpha_input: (required)
1680-
:type update_audience_for_space_alpha_input: UpdateAudienceForSpaceAlphaInput
1679+
:param update_audience_for_space_beta_input: (required)
1680+
:type update_audience_for_space_beta_input: UpdateAudienceForSpaceBetaInput
16811681
:param async_req: Whether to execute the request asynchronously.
16821682
:type async_req: bool, optional
16831683
:param _request_timeout: timeout setting for this request.
@@ -1693,25 +1693,25 @@ def update_audience_for_space(self, space_id : constr(strict=True), id : constr(
16931693
if '_preload_content' in kwargs:
16941694
message = "Error! Please call the update_audience_for_space_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
16951695
raise ValueError(message)
1696-
return self.update_audience_for_space_with_http_info(space_id, id, update_audience_for_space_alpha_input, **kwargs) # noqa: E501
1696+
return self.update_audience_for_space_with_http_info(space_id, id, update_audience_for_space_beta_input, **kwargs) # noqa: E501
16971697

16981698
@validate_arguments
1699-
def update_audience_for_space_with_http_info(self, space_id : constr(strict=True), id : constr(strict=True), update_audience_for_space_alpha_input : UpdateAudienceForSpaceAlphaInput, **kwargs) -> ApiResponse: # noqa: E501
1699+
def update_audience_for_space_with_http_info(self, space_id : constr(strict=True), id : constr(strict=True), update_audience_for_space_beta_input : UpdateAudienceForSpaceBetaInput, **kwargs) -> ApiResponse: # noqa: E501
17001700
"""Update Audience for Space # noqa: E501
17011701
17021702
Updates the 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 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 10 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
17031703
This method makes a synchronous HTTP request by default. To make an
17041704
asynchronous HTTP request, please pass async_req=True
17051705
1706-
>>> thread = api.update_audience_for_space_with_http_info(space_id, id, update_audience_for_space_alpha_input, async_req=True)
1706+
>>> thread = api.update_audience_for_space_with_http_info(space_id, id, update_audience_for_space_beta_input, async_req=True)
17071707
>>> result = thread.get()
17081708
17091709
:param space_id: (required)
17101710
:type space_id: str
17111711
:param id: (required)
17121712
:type id: str
1713-
:param update_audience_for_space_alpha_input: (required)
1714-
:type update_audience_for_space_alpha_input: UpdateAudienceForSpaceAlphaInput
1713+
:param update_audience_for_space_beta_input: (required)
1714+
:type update_audience_for_space_beta_input: UpdateAudienceForSpaceBetaInput
17151715
:param async_req: Whether to execute the request asynchronously.
17161716
:type async_req: bool, optional
17171717
:param _preload_content: if False, the ApiResponse.data will
@@ -1742,7 +1742,7 @@ def update_audience_for_space_with_http_info(self, space_id : constr(strict=True
17421742
_all_params = [
17431743
'space_id',
17441744
'id',
1745-
'update_audience_for_space_alpha_input'
1745+
'update_audience_for_space_beta_input'
17461746
]
17471747
_all_params.extend(
17481748
[
@@ -1786,17 +1786,17 @@ def update_audience_for_space_with_http_info(self, space_id : constr(strict=True
17861786
_files = {}
17871787
# process the body parameter
17881788
_body_params = None
1789-
if _params['update_audience_for_space_alpha_input'] is not None:
1790-
_body_params = _params['update_audience_for_space_alpha_input']
1789+
if _params['update_audience_for_space_beta_input'] is not None:
1790+
_body_params = _params['update_audience_for_space_beta_input']
17911791

17921792
# set the HTTP header `Accept`
17931793
_header_params['Accept'] = self.api_client.select_header_accept(
1794-
['application/vnd.segment.v1alpha+json', 'application/json']) # noqa: E501
1794+
['application/vnd.segment.v1beta+json', 'application/vnd.segment.v1alpha+json', 'application/json']) # noqa: E501
17951795

17961796
# set the HTTP header `Content-Type`
17971797
_content_types_list = _params.get('_content_type',
17981798
self.api_client.select_header_content_type(
1799-
['application/vnd.segment.v1alpha+json']))
1799+
['application/vnd.segment.v1beta+json', 'application/vnd.segment.v1alpha+json']))
18001800
if _content_types_list:
18011801
_header_params['Content-Type'] = _content_types_list
18021802

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

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

0 commit comments

Comments
 (0)