Skip to content

Commit b8a0614

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@96bc189d.
1 parent 76bf773 commit b8a0614

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/CustomerInsightsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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","startTime":"2006-01-02T15:04:05.000Z"} # CreateDownloadAlphaInput |
42+
create_download_alpha_input = {"collectionId":"2wmpXTGB69A8BwGJ4hD5XvQ03aD","workspaceId":"9y433Y71snvrWKfchyBbu9","hour":"2006-01-02T15:04:05.000Z"} # CreateDownloadAlphaInput |
4343

4444
try:
4545
# Create Download

segment_public_api/models/create_download_alpha_input.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class CreateDownloadAlphaInput(BaseModel):
2828
"""
2929
collection_id: StrictStr = Field(..., alias="collectionId", description="The collection's unique id.")
3030
workspace_id: StrictStr = Field(..., alias="workspaceId", description="The Workspace id for the collection.")
31-
start_time: StrictStr = Field(..., alias="startTime", description="The ISO8601 formatted timestamp corresponding to the beginning of the time range. Currently, there is a month of data retained.")
32-
__properties = ["collectionId", "workspaceId", "startTime"]
31+
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"]
3333

3434
class Config:
3535
"""Pydantic configuration"""
@@ -69,7 +69,7 @@ def from_dict(cls, obj: dict) -> CreateDownloadAlphaInput:
6969
_obj = CreateDownloadAlphaInput.parse_obj({
7070
"collection_id": obj.get("collectionId"),
7171
"workspace_id": obj.get("workspaceId"),
72-
"start_time": obj.get("startTime")
72+
"hour": obj.get("hour")
7373
})
7474
return _obj
7575

0 commit comments

Comments
 (0)