10000 feat(api): api update (#2533) · cloudflare/cloudflare-python@d231762 · GitHub
[go: up one dir, main page]

Skip to content

Commit d231762

Browse files
feat(api): api update (#2533)
1 parent 0a45fe8 commit d231762

File tree

14 files changed

+3429
-67
lines changed

14 files changed

+3429
-67
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1610
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0f0082a0942d9f9edb37ef99423f7cdf16d0bfeb57c6ee5728e830b2a9ebff87.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-30da43ea5d0d999bce706d59618514c0c59d657ea27ad2e228663d731023449f.yml

src/cloudflare/resources/email_security/investigate/investigate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def list(
141141
detections_only: bool | NotGiven = NOT_GIVEN,
142142
domain: str | NotGiven = NOT_GIVEN,
143143
end: Union[str, datetime] | NotGiven = NOT_GIVEN,
144-
final_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK"] | NotGiven = NOT_GIVEN,
144+
final_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"] | NotGiven = NOT_GIVEN,
145145
message_action: Literal["PREVIEW", "QUARANTINE_RELEASED", "MOVED"] | NotGiven = NOT_GIVEN,
146146
message_id: str | NotGiven = NOT_GIVEN,
147147
metric: str | NotGiven = NOT_GIVEN,
@@ -351,7 +351,7 @@ def list(
351351
detections_only: bool | NotGiven = NOT_GIVEN,
352352
domain: str | NotGiven = NOT_GIVEN,
353353
end: Union[str, datetime] | NotGiven = NOT_GIVEN,
354-
final_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK"] | NotGiven = NOT_GIVEN,
354+
final_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"] | NotGiven = NOT_GIVEN,
355355
message_action: Literal["PREVIEW", "QUARANTINE_RELEASED", "MOVED"] | NotGiven = NOT_GIVEN,
356356
message_id: str | NotGiven = NOT_GIVEN,
357357
metric: str | NotGiven = NOT_GIVEN,

src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def update(
6868
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
6969
) -> Optional[SecretUpdateResponse]:
7070
"""
71-
Put secrets to a script uploaded to a Workers for Platforms namespace.
71+
Add a secret to a script uploaded to a Workers for Platforms namespace.
7272
7373
Args:
7474
account_id: Identifier
@@ -132,7 +132,7 @@ def list(
132132
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
133133
) -> SyncSinglePage[SecretListResponse]:
134134
"""
135-
List secrets from a script uploaded to a Workers for Platforms namespace.
135+
List secrets bound to a script uploaded to a Workers for Platforms namespace.
136136
137137
Args:
138138
account_id: Identifier
@@ -179,7 +179,8 @@ def get(
179179
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
180180
) -> Optional[SecretGetResponse]:
181181
"""
182-
Get secret from a script uploaded to a Workers for Platforms namespace.
182+
Get a given secret binding (value omitted) on a script uploaded to a Workers for
183+
Platforms namespace.
183184
184185
Args:
185186
account_id: Identifier
@@ -256,7 +257,7 @@ async def update(
256257
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
257258
) -> Optional[SecretUpdateResponse]:
258259
"""
259-
Put secrets to a script uploaded to a Workers for Platforms namespace.
260+
Add a secret to a script uploaded to a Workers for Platforms namespace.
260261
261262
Args:
262263
account_id: Identifier
@@ -320,7 +321,7 @@ def list(
320321
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
321322
) -> AsyncPaginator[SecretListResponse, AsyncSinglePage[SecretListResponse]]:
322323
"""
323-
List secrets from a script uploaded to a Workers for Platforms namespace.
324+
List secrets bound to a script uploaded to a Workers for Platforms namespace.
324325
325326
Args:
326327
account_id: Identifier
@@ -367,7 +368,8 @@ async def get(
367368
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
368369
) -> Optional[SecretGetResponse]:
369370
"""
370-
Get secret from a script uploaded to a Workers for Platforms namespace.
371+
Get a given secret binding (value omitted) on a script uploaded to a Workers for
372+
Platforms namespace.
371373
372374
Args:
373375
account_id: Identifier

src/cloudflare/resources/zero_trust/access/applications/applications.py

Lines changed: 558 additions & 24 deletions
Large diffs are not rendered by default.

src/cloudflare/types/email_security/investigate_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class InvestigateListParams(TypedDict, total=False):
2929
end: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
3030
"""The end of the search date range. Defaults to `now`."""
3131

32-
final_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK"]
32+
final_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"]
3333
"""The dispositions the search filters by."""
3434

3535
message_action: Literal["PREVIEW", "QUARANTINE_RELEASED", "MOVED"]

src/cloudflare/types/email_security/submission_list_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class SubmissionListResponse(BaseModel):
2929
]
3030
] = None
3131

32+
original_edf_hash: Optional[str] = None
33+
3234
outcome: Optional[str] = None
3335

3436
outcome_disposition: Optional[

0 commit comments

Comments
 (0)
0