Skip to content

Commit e06e85e

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@f389aa89.
1 parent 511d002 commit e06e85e

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

docs/CustomerInsightsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Method | HTTP request | Description
1414
1515
Create Download
1616

17-
Create Customer Insights Presigned URLs The rate limit for this endpoint is 1 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.
17+
Create Customer Insights Presigned URLsThe rate limit for this endpoint is 30 requests per day per workspaceId, 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.
1818

1919
### Example
2020

@@ -39,7 +39,7 @@ configuration = segment_public_api.Configuration(
3939
with segment_public_api.ApiClient(configuration) as api_client:
4040
# Create an instance of the API class
4141
api_instance = segment_public_api.CustomerInsightsApi(api_client)
42-
create_download_alpha_input = {"collectionId":"2wmpXTGB69A8BwGJ4hD5XvQ03aD","workspaceId":"9y433Y71snvrWKfchyBbu9","hour":"2006-01-02T15:04:05.000Z"} # CreateDownloadAlphaInput |
42+
create_download_alpha_input = {"collectionId":"2wmpXTGB69A8BwGJ4hD5XvQ03aD","hour":"2006-01-02T15:04:05.000Z"} # CreateDownloadAlphaInput |
4343

4444
try:
4545
# Create Download

segment_public_api/api/customer_insights_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(self, api_client=None) -> None:
4646
def create_download(self, create_download_alpha_input : CreateDownloadAlphaInput, **kwargs) -> CreateDownload200Response: # noqa: E501
4747
"""Create Download # noqa: E501
4848
49-
Create Customer Insights Presigned URLs The rate limit for this endpoint is 1 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
49+
Create Customer Insights Presigned URLsThe rate limit for this endpoint is 30 requests per day per workspaceId, 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
5050
This method makes a synchronous HTTP request by default. To make an
5151
asynchronous HTTP request, please pass async_req=True
5252
@@ -76,7 +76,7 @@ def create_download(self, create_download_alpha_input : CreateDownloadAlphaInput
7676
def create_download_with_http_info(self, create_download_alpha_input : CreateDownloadAlphaInput, **kwargs) -> ApiResponse: # noqa: E501
7777
"""Create Download # noqa: E501
7878
79-
Create Customer Insights Presigned URLs The rate limit for this endpoint is 1 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
79+
Create Customer Insights Presigned URLsThe rate limit for this endpoint is 30 requests per day per workspaceId, 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
8080
This method makes a synchronous HTTP request by default. To make an
8181
asynchronous HTTP request, please pass async_req=True
8282

segment_public_api/models/create_download_alpha_input.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ class CreateDownloadAlphaInput(BaseModel):
2727
Input to create presigned URLs for Granular Observability Collection logs. # noqa: E501
2828
"""
2929
collection_id: StrictStr = Field(..., alias="collectionId", description="The collection's unique id.")
30-
workspace_id: StrictStr = Field(..., alias="workspaceId", description="The Workspace id for the collection.")
3130
hour: StrictStr = Field(..., description="The ISO8601 formatted timestamp corresponding to a specific hour and day to retrieve data for. E.g.: 2025-05-07T23:00:00Z Objects are bucketed by hour and a month of data is retained.")
32-
__properties = ["collectionId", "workspaceId", "hour"]
31+
__properties = ["collectionId", "hour"]
3332

3433
class Config:
3534
"""Pydantic configuration"""
@@ -68,7 +67,6 @@ def from_dict(cls, obj: dict) -> CreateDownloadAlphaInput:
6867

6968
_obj = CreateDownloadAlphaInput.parse_obj({
7069
"collection_id": obj.get("collectionId"),
71-
"workspace_id": obj.get("workspaceId"),
7270
"hour": obj.get("hour")
7371
})
7472
return _obj

0 commit comments

Comments
 (0)