Skip to content

Commit 76e4de4

Browse files
chore: Refine usage field docstrings in Build and Run models (#739)
This PR updates the auto-generated Pydantic models based on OpenAPI specification changes in [apify-docs PR #2219](apify/apify-docs#2219).
1 parent 3d12bda commit 76e4de4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/apify_client/_models.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,13 @@ class Build(BaseModel):
394394
options: BuildOptions | None = None
395395
usage: BuildUsage | None = None
396396
usage_total_usd: Annotated[float | None, Field(alias='usageTotalUsd', examples=[0.02])] = None
397+
"""
398+
Total cost in USD for this build. Requires authentication token to access.
399+
"""
397400
usage_usd: Annotated[BuildUsage | None, Field(alias='usageUsd')] = None
401+
"""
402+
Platform usage costs breakdown in USD for this build. Requires authentication token to access.
403+
"""
398404
input_schema: Annotated[
399405
str | None, Field(alias='inputSchema', deprecated=True, examples=['{\\n "title": "Schema for ... }'])
400406
] = None
@@ -2877,11 +2883,11 @@ class Run(BaseModel):
28772883
"""
28782884
usage_total_usd: Annotated[float | None, Field(alias='usageTotalUsd', examples=[0.2654])] = None
28792885
"""
2880-
Total cost in USD for this run. Represents what you actually pay. For run owners: includes platform usage (compute units) and/or event costs depending on the Actor's pricing model. For run non-owners: only available for Pay-Per-Event Actors (event costs only). Not available for Pay-Per-Result Actors when you're not the Actor owner.
2886+
Total cost in USD for this run. Represents what you actually pay. For run owners: includes platform usage (compute units) and/or event costs depending on the Actor's pricing model. For run non-owners: only available for Pay-Per-Event Actors (event costs only). Requires authentication token to access.
28812887
"""
28822888
usage_usd: Annotated[RunUsageUsd | None, Field(alias='usageUsd')] = None
28832889
"""
2884-
Platform usage costs breakdown in USD. Only present if you own the run AND are paying for platform usage (Pay-Per-Usage, Rental, or Pay-Per-Event with usage costs like standby Actors). Not available for standard Pay-Per-Event Actors or Pay-Per-Result Actors owned by others.
2890+
Platform usage costs breakdown in USD. Only present if you own the run AND are paying for platform usage (Pay-Per-Usage, Rental, or Pay-Per-Event with usage costs like standby Actors). Not available for standard Pay-Per-Event Actors. Requires authentication token to access.
28852891
"""
28862892
metamorphs: list[Metamorph] | None = None
28872893
"""

0 commit comments

Comments
 (0)