Skip to content

Commit 4f31fa9

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@74853417.
1 parent 8843fba commit 4f31fa9

721 files changed

Lines changed: 1765 additions & 794 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: 69.0.0
15-
- Package version: 69.0.0
14+
- API version: 70.0.0
15+
- Package version: 70.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: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Method | HTTP request | Description
2323

2424
## Operation: add_audience_schedule_to_audience
2525

26-
> AddAudienceScheduleToAudience200Response add_audience_schedule_to_audience(space_id, id, add_audience_schedule_to_audience_alpha_input)
26+
> AddAudienceScheduleToAudience200Response add_audience_schedule_to_audience(space_id, id, add_audience_schedule_to_audience_input)
2727
2828
Add Audience Schedule to Audience
2929

30-
The ability to configure the run schedule for an Audience is limited to Linked Audiences (audienceType = LINKED). Note that if a Linked Audience remains disabled for 90 days Segment will delete the associated schedule and a new schedule will need to be created. • 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. 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.
30+
The ability to configure the run schedule for an Audience is limited to Linked Audiences (audienceType = LINKED). Note that if a Linked Audience remains disabled for 90 days Segment will delete the associated schedule and a new schedule will need to be created. • 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 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.
3131

3232
### Example
3333

@@ -37,7 +37,7 @@ import time
3737
import os
3838
import segment_public_api
3939
from segment_public_api.models.add_audience_schedule_to_audience200_response import AddAudienceScheduleToAudience200Response
40-
from segment_public_api.models.add_audience_schedule_to_audience_alpha_input import AddAudienceScheduleToAudienceAlphaInput
40+
from segment_public_api.models.add_audience_schedule_to_audience_input import AddAudienceScheduleToAudienceInput
4141
from segment_public_api.rest import ApiException
4242
from pprint import pprint
4343

@@ -54,11 +54,11 @@ with segment_public_api.ApiClient(configuration) as api_client:
5454
api_instance = segment_public_api.AudiencesApi(api_client)
5555
space_id = '9aQ1Lj62S4bomZKLF4DPqW' # str |
5656
id = 'aud_0ujsszwN8NRY24YaXiTIE2VWDTS' # str |
57-
add_audience_schedule_to_audience_alpha_input = {"strategy":"SPECIFIC_DAYS","config":{"days":[1,3,5],"hours":[9,17],"timezone":"America/New_York"}} # AddAudienceScheduleToAudienceAlphaInput |
57+
add_audience_schedule_to_audience_input = {"strategy":"SPECIFIC_DAYS","config":{"days":[1,3,5],"hours":[9,17],"timezone":"America/New_York"}} # AddAudienceScheduleToAudienceInput |
5858

5959
try:
6060
# Add Audience Schedule to Audience
61-
api_response = api_instance.add_audience_schedule_to_audience(space_id, id, add_audience_schedule_to_audience_alpha_input)
61+
api_response = api_instance.add_audience_schedule_to_audience(space_id, id, add_audience_schedule_to_audience_input)
6262
print("The response of AudiencesApi->add_audience_schedule_to_audience:\n")
6363
pprint(api_response)
6464
except Exception as e:
@@ -73,7 +73,7 @@ Name | Type | Description | Notes
7373
------------- | ------------- | ------------- | -------------
7474
**space_id** | **str**| |
7575
**id** | **str**| |
76-
**add_audience_schedule_to_audience_alpha_input** | [**AddAudienceScheduleToAudienceAlphaInput**](AddAudienceScheduleToAudienceAlphaInput.md)| |
76+
**add_audience_schedule_to_audience_input** | [**AddAudienceScheduleToAudienceInput**](AddAudienceScheduleToAudienceInput.md)| |
7777

7878
### Return type
7979

@@ -85,8 +85,8 @@ Name | Type | Description | Notes
8585

8686
### HTTP request headers
8787

88-
- **Content-Type**: application/vnd.segment.v1alpha+json
89-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
88+
- **Content-Type**: application/json, application/vnd.segment.v1+json, application/vnd.segment.v1alpha+json
89+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
9090

9191
### HTTP response details
9292
| Status code | Description | Response headers |
@@ -484,7 +484,7 @@ Name | Type | Description | Notes
484484
485485
Get Audience Schedule from Space And Audience
486486

487-
Returns the schedule for the given audience and scheduleId. • 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.
487+
Returns the schedule for the given audience and scheduleId. • 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.
488488

489489
### Example
490490

@@ -542,7 +542,7 @@ Name | Type | Description | Notes
542542
### HTTP request headers
543543

544544
- **Content-Type**: Not defined
545-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
545+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
546546

547547
### HTTP response details
548548
| Status code | Description | Response headers |
@@ -645,7 +645,7 @@ Name | Type | Description | Notes
645645
646646
List Audience Schedules from Space And Audience
647647

648-
Returns the list of schedules for the given 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.
648+
Returns the list of schedules for the given 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.
649649

650650
### Example
651651

@@ -701,7 +701,7 @@ Name | Type | Description | Notes
701701
### HTTP request headers
702702

703703
- **Content-Type**: Not defined
704-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
704+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
705705

706706
### HTTP response details
707707
| Status code | Description | Response headers |
@@ -876,7 +876,7 @@ Name | Type | Description | Notes
876876
877877
Remove Audience Schedule from Audience
878878

879-
Deletes an audience schedule for a Linked Audience (audienceType = LINKED). • 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. 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.
879+
Deletes an audience schedule for a Linked Audience (audienceType = LINKED). • 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 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.
880880

881881
### Example
882882

@@ -934,7 +934,7 @@ Name | Type | Description | Notes
934934
### HTTP request headers
935935

936936
- **Content-Type**: Not defined
937-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
937+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
938938

939939
### HTTP response details
940940
| Status code | Description | Response headers |
@@ -1027,11 +1027,11 @@ Name | Type | Description | Notes
10271027

10281028
## Operation: update_audience_schedule_for_audience
10291029

1030-
> UpdateAudienceScheduleForAudience200Response update_audience_schedule_for_audience(space_id, id, schedule_id, update_audience_schedule_for_audience_alpha_input)
1030+
> UpdateAudienceScheduleForAudience200Response update_audience_schedule_for_audience(space_id, id, schedule_id, update_audience_schedule_for_audience_input)
10311031
10321032
Update Audience Schedule for Audience
10331033

1034-
Updates an audience schedule for a Linked Audience (audienceType = LINKED). • 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. 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.
1034+
Updates an audience schedule for a Linked Audience (audienceType = LINKED). • 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 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.
10351035

10361036
### Example
10371037

@@ -1041,7 +1041,7 @@ import time
10411041
import os
10421042
import segment_public_api
10431043
from segment_public_api.models.update_audience_schedule_for_audience200_response import UpdateAudienceScheduleForAudience200Response
1044-
from segment_public_api.models.update_audience_schedule_for_audience_alpha_input import UpdateAudienceScheduleForAudienceAlphaInput
1044+
from segment_public_api.models.update_audience_schedule_for_audience_input import UpdateAudienceScheduleForAudienceInput
10451045
from segment_public_api.rest import ApiException
10461046
from pprint import pprint
10471047

@@ -1059,11 +1059,11 @@ with segment_public_api.ApiClient(configuration) as api_client:
10591059
space_id = '9aQ1Lj62S4bomZKLF4DPqW' # str |
10601060
id = 'aud_0ujsszwN8NRY24YaXiTIE2VWDTS' # str |
10611061
schedule_id = 'sch_0ujsszwN8NRY24YaXiTIE2VWDTS' # str |
1062-
update_audience_schedule_for_audience_alpha_input = {"strategy":"SPECIFIC_DAYS","config":{"days":[1,3,4],"hours":[9,16],"timezone":"America/New_York"}} # UpdateAudienceScheduleForAudienceAlphaInput |
1062+
update_audience_schedule_for_audience_input = {"strategy":"SPECIFIC_DAYS","config":{"days":[1,3,4],"hours":[9,16],"timezone":"America/New_York"}} # UpdateAudienceScheduleForAudienceInput |
10631063

10641064
try:
10651065
# Update Audience Schedule for Audience
1066-
api_response = api_instance.update_audience_schedule_for_audience(space_id, id, schedule_id, update_audience_schedule_for_audience_alpha_input)
1066+
api_response = api_instance.update_audience_schedule_for_audience(space_id, id, schedule_id, update_audience_schedule_for_audience_input)
10671067
print("The response of AudiencesApi->update_audience_schedule_for_audience:\n")
10681068
pprint(api_response)
10691069
except Exception as e:
@@ -1079,7 +1079,7 @@ Name | Type | Description | Notes
10791079
**space_id** | **str**| |
10801080
**id** | **str**| |
10811081
**schedule_id** | **str**| |
1082-
**update_audience_schedule_for_audience_alpha_input** | [**UpdateAudienceScheduleForAudienceAlphaInput**](UpdateAudienceScheduleForAudienceAlphaInput.md)| |
1082+
**update_audience_schedule_for_audience_input** | [**UpdateAudienceScheduleForAudienceInput**](UpdateAudienceScheduleForAudienceInput.md)| |
10831083

10841084
### Return type
10851085

@@ -1091,8 +1091,8 @@ Name | Type | Description | Notes
10911091

10921092
### HTTP request headers
10931093

1094-
- **Content-Type**: application/vnd.segment.v1alpha+json
1095-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
1094+
- **Content-Type**: application/json, application/vnd.segment.v1+json, application/vnd.segment.v1alpha+json
1095+
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1alpha+json
10961096

10971097
### HTTP response details
10981098
| Status code | Description | Response headers |

0 commit comments

Comments
 (0)