Skip to content
Closed

TODO #976

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/apify_client/_literals.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
'cannot-metamorph-to-pay-per-result-actor',
'cannot-modify-actor-pricing-too-frequently',
'cannot-modify-actor-pricing-with-immediate-effect',
'cannot-monetize-without-payout-billing-info',
'cannot-override-paid-actor-trial',
'cannot-permanently-delete-subscription',
'cannot-publish-actor',
Expand Down
26 changes: 16 additions & 10 deletions src/apify_client/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ class BuildStats(BaseModel):
)
duration_millis: Annotated[int | None, Field(examples=[1000])] = None
run_time_secs: Annotated[float | None, Field(examples=[45.718])] = None
compute_units: Annotated[float, Field(examples=[0.0126994444444444])]
compute_units: Annotated[float | None, Field(examples=[0.0126994444444444])] = None
image_size_bytes: Annotated[int | None, Field(examples=[975770223])] = None


Expand Down Expand Up @@ -875,7 +875,7 @@ class Dataset(BaseModel):
),
] = None
"""
Defines the schema of items in your dataset, the full specification can be found in [Apify docs](https://docs.apify.com/actors/development/actor-definition/dataset-schema)
Defines the schema of items in your dataset, the full specification can be found in [Apify docs](https://docs.apify.com/storage/dataset-schema)
"""
console_url: Annotated[AnyUrl, Field(examples=['https://console.apify.com/storage/datasets/27TmTznX9YPeAYhkC'])]
items_public_url: Annotated[
Expand Down Expand Up @@ -1477,8 +1477,8 @@ class KeyValueStoreStats(BaseModel):
populate_by_name=True,
alias_generator=to_camel,
)
read_count: Annotated[int, Field(examples=[9])]
write_count: Annotated[int, Field(examples=[3])]
read_count: Annotated[int | None, Field(examples=[9])] = None
write_count: Annotated[int | None, Field(examples=[3])] = None
delete_count: Annotated[int | None, Field(examples=[6])] = None
list_count: Annotated[int | None, Field(examples=[2])] = None
s3_storage_bytes: Annotated[int | None, Field(examples=[18])] = None
Expand Down Expand Up @@ -2933,8 +2933,8 @@ class RunStats(BaseModel):
input_body_len: Annotated[int | None, Field(examples=[240], ge=0)] = None
migration_count: Annotated[int | None, Field(examples=[0], ge=0)] = None
reboot_count: Annotated[int | None, Field(examples=[0], ge=0)] = None
restart_count: Annotated[int, Field(examples=[0], ge=0)]
resurrect_count: Annotated[int, Field(examples=[2], ge=0)]
restart_count: Annotated[int | None, Field(examples=[0], ge=0)] = None
resurrect_count: Annotated[int | None, Field(examples=[2], ge=0)] = None
mem_avg_bytes: Annotated[float | None, Field(examples=[267874071.9])] = None
mem_max_bytes: Annotated[int | None, Field(examples=[404713472], ge=0)] = None
mem_current_bytes: Annotated[int | None, Field(examples=[0], ge=0)] = None
Expand All @@ -2946,7 +2946,7 @@ class RunStats(BaseModel):
duration_millis: Annotated[int | None, Field(examples=[248472], ge=0)] = None
run_time_secs: Annotated[float | None, Field(examples=[248.472], ge=0.0)] = None
metamorph: Annotated[int | None, Field(examples=[0], ge=0)] = None
compute_units: Annotated[float, Field(examples=[0.13804], ge=0.0)]
compute_units: Annotated[float | None, Field(examples=[0.13804], ge=0.0)] = None


@docs_group('Models')
Expand Down Expand Up @@ -3335,7 +3335,7 @@ class TaggedBuildInfo(BaseModel):
str | None, Field(examples=['0.0.2'], pattern='^([0-9]|[1-9][0-9])\\.([0-9]|[1-9][0-9])(\\.[1-9][0-9]{0,4})$')
] = None
"""
The build number/version string.
The build number/version string. Can be `null` for legacy builds that lack a valid build number.
"""
build_number_int: Annotated[int | None, Field(examples=[42])] = None
"""
Expand Down Expand Up @@ -3831,7 +3831,10 @@ class Webhook(BaseModel):
condition: WebhookCondition
ignore_ssl_errors: Annotated[bool, Field(examples=[False])]
do_not_retry: Annotated[bool | None, Field(examples=[False])] = None
request_url: Annotated[AnyUrl | None, Field(examples=['http://example.com/'])]
request_url: Annotated[AnyUrl | None, Field(examples=['http://example.com/'])] = None
"""
URL of the HTTP request sent by the webhook. It is omitted or `null` for hook actions other than the conventional HTTP case (e.g. Slack or email notifications).
"""
payload_template: Annotated[str | None, Field(examples=['{\\n "userId": {{userId}}...'])] = None
headers_template: Annotated[str | None, Field(examples=['{\\n "Authorization": "Bearer ..."}'])] = None
description: Annotated[str | None, Field(examples=['this is webhook description'])] = None
Expand Down Expand Up @@ -3906,6 +3909,9 @@ class WebhookDispatchWebhookSummary(BaseModel):
action_type: Annotated[str | None, Field(examples=['HTTP_REQUEST'])] = None
condition: WebhookCondition | None = None
request_url: Annotated[AnyUrl | None, Field(examples=['https://example.com/webhook'])] = None
"""
URL of the HTTP request sent by the webhook. It is `null` for hook actions other than the conventional HTTP case (e.g. Slack or email notifications).
"""
is_ad_hoc: Annotated[bool | None, Field(examples=[False])] = None


Expand Down Expand Up @@ -3997,7 +4003,7 @@ class WebhookStats(BaseModel):
populate_by_name=True,
alias_generator=to_camel,
)
total_dispatches: Annotated[int, Field(examples=[1])]
total_dispatches: Annotated[int | None, Field(examples=[1])] = None


@docs_group('Models')
Expand Down
Loading