Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): api update #2163

Merged
merged 1 commit into from
Nov 15, 2024
Merged
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
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1417
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b414602f316e30c6870beeb57670a6c2360a68b7b0b5e349d748700b7516ba29.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-53e6a4695205673e20c0dbbcda08991b451276b3681c9d776f98b85ddacf564a.yml
60 changes: 30 additions & 30 deletions src/cloudflare/resources/load_balancers/monitors/monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ def create(
self,
*,
account_id: str,
expected_codes: str,
allow_insecure: bool | NotGiven = NOT_GIVEN,
consecutive_down: int | NotGiven = NOT_GIVEN,
consecutive_up: int | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
expected_body: str | NotGiven = NOT_GIVEN,
expected_codes: str | NotGiven = NOT_GIVEN,
follow_redirects: bool | NotGiven = NOT_GIVEN,
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
interval: int | NotGiven = NOT_GIVEN,
Expand All @@ -107,9 +107,6 @@ def create(
Args:
account_id: Identifier

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
currently only valid for HTTP and HTTPS monitors.

Expand All @@ -125,6 +122,9 @@ def create(
is not found, the origin will be marked as unhealthy. This parameter is only
valid for HTTP and HTTPS monitors.

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
HTTP and HTTPS monitors.

Expand Down Expand Up @@ -170,12 +170,12 @@ def create(
f"/accounts/{account_id}/load_balancers/monitors",
body=maybe_transform(
{
"expected_codes": expected_codes,
"allow_insecure": allow_insecure,
"consecutive_down": consecutive_down,
"consecutive_up": consecutive_up,
"description": description,
"expected_body": expected_body,
"expected_codes": expected_codes,
"follow_redirects": follow_redirects,
"header": header,
"interval": interval,
Expand Down Expand Up @@ -204,12 +204,12 @@ def update(
monitor_id: str,
*,
account_id: str,
expected_codes: str,
allow_insecure: bool | NotGiven = NOT_GIVEN,
consecutive_down: int | NotGiven = NOT_GIVEN,
consecutive_up: int | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
expected_body: str | NotGiven = NOT_GIVEN,
expected_codes: str | NotGiven = NOT_GIVEN,
follow_redirects: bool | NotGiven = NOT_GIVEN,
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
interval: int | NotGiven = NOT_GIVEN,
Expand All @@ -233,9 +233,6 @@ def update(
Args:
account_id: Identifier

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
currently only valid for HTTP and HTTPS monitors.

Expand All @@ -251,6 +248,9 @@ def update(
is not found, the origin will be marked as unhealthy. This parameter is only
valid for HTTP and HTTPS monitors.

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
HTTP and HTTPS monitors.

Expand Down Expand Up @@ -298,12 +298,12 @@ def update(
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}",
body=maybe_transform(
{
"expected_codes": expected_codes,
"allow_insecure": allow_insecure,
"consecutive_down": consecutive_down,
"consecutive_up": consecutive_up,
"description": description,
"expected_body": expected_body,
"expected_codes": expected_codes,
"follow_redirects": follow_redirects,
"header": header,
"interval": interval,
Expand Down Expand Up @@ -410,12 +410,12 @@ def edit(
monitor_id: str,
*,
account_id: str,
expected_codes: str,
allow_insecure: bool | NotGiven = NOT_GIVEN,
consecutive_down: int | NotGiven = NOT_GIVEN,
consecutive_up: int | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
expected_body: str | NotGiven = NOT_GIVEN,
expected_codes: str | NotGiven = NOT_GIVEN,
follow_redirects: bool | NotGiven = NOT_GIVEN,
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
interval: int | NotGiven = NOT_GIVEN,
Expand All @@ -439,9 +439,6 @@ def edit(
Args:
account_id: Identifier

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
currently only valid for HTTP and HTTPS monitors.

Expand All @@ -457,6 +454,9 @@ def edit(
is not found, the origin will be marked as unhealthy. This parameter is only
valid for HTTP and HTTPS monitors.

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
HTTP and HTTPS monitors.

Expand Down Expand Up @@ -504,12 +504,12 @@ def edit(
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}",
body=maybe_transform(
{
"expected_codes": expected_codes,
"allow_insecure": allow_insecure,
"consecutive_down": consecutive_down,
"consecutive_up": consecutive_up,
"description": description,
"expected_body": expected_body,
"expected_codes": expected_codes,
"follow_redirects": follow_redirects,
"header": header,
"interval": interval,
Expand Down Expand Up @@ -608,12 +608,12 @@ async def create(
self,
*,
account_id: str,
expected_codes: str,
allow_insecure: bool | NotGiven = NOT_GIVEN,
consecutive_down: int | NotGiven = NOT_GIVEN,
consecutive_up: int | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
expected_body: str | NotGiven = NOT_GIVEN,
expected_codes: str | NotGiven = NOT_GIVEN,
follow_redirects: bool | NotGiven = NOT_GIVEN,
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
interval: int | NotGiven = NOT_GIVEN,
Expand All @@ -637,9 +637,6 @@ async def create(
Args:
account_id: Identifier

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
currently only valid for HTTP and HTTPS monitors.

Expand All @@ -655,6 +652,9 @@ async def create(
is not found, the origin will be marked as unhealthy. This parameter is only
valid for HTTP and HTTPS monitors.

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
HTTP and HTTPS monitors.

Expand Down Expand Up @@ -700,12 +700,12 @@ async def create(
f"/accounts/{account_id}/load_balancers/monitors",
body=await async_maybe_transform(
{
"expected_codes": expected_codes,
"allow_insecure": allow_insecure,
"consecutive_down": consecutive_down,
"consecutive_up": consecutive_up,
"description": description,
"expected_body": expected_body,
"expected_codes": expected_codes,
"follow_redirects": follow_redirects,
"header": header,
"interval": interval,
Expand Down Expand Up @@ -734,12 +734,12 @@ async def update(
monitor_id: str,
*,
account_id: str,
expected_codes: str,
allow_insecure: bool | NotGiven = NOT_GIVEN,
consecutive_down: int | NotGiven = NOT_GIVEN,
consecutive_up: int | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
expected_body: str | NotGiven = NOT_GIVEN,
expected_codes: str | NotGiven = NOT_GIVEN,
follow_redirects: bool | NotGiven = NOT_GIVEN,
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
interval: int | NotGiven = NOT_GIVEN,
Expand All @@ -763,9 +763,6 @@ async def update(
Args:
account_id: Identifier

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
currently only valid for HTTP and HTTPS monitors.

Expand All @@ -781,6 +778,9 @@ async def update(
is not found, the origin will be marked as unhealthy. This parameter is only
valid for HTTP and HTTPS monitors.

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
HTTP and HTTPS monitors.

Expand Down Expand Up @@ -828,12 +828,12 @@ async def update(
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}",
body=await async_maybe_transform(
{
"expected_codes": expected_codes,
"allow_insecure": allow_insecure,
"consecutive_down": consecutive_down,
"consecutive_up": consecutive_up,
"description": description,
"expected_body": expected_body,
"expected_codes": expected_codes,
"follow_redirects": follow_redirects,
"header": header,
"interval": interval,
Expand Down Expand Up @@ -940,12 +940,12 @@ async def edit(
monitor_id: str,
*,
account_id: str,
expected_codes: str,
allow_insecure: bool | NotGiven = NOT_GIVEN,
consecutive_down: int | NotGiven = NOT_GIVEN,
consecutive_up: int | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
expected_body: str | NotGiven = NOT_GIVEN,
expected_codes: str | NotGiven = NOT_GIVEN,
follow_redirects: bool | NotGiven = NOT_GIVEN,
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
interval: int | NotGiven = NOT_GIVEN,
Expand All @@ -969,9 +969,6 @@ async def edit(
Args:
account_id: Identifier

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
currently only valid for HTTP and HTTPS monitors.

Expand All @@ -987,6 +984,9 @@ async def edit(
is not found, the origin will be marked as unhealthy. This parameter is only
valid for HTTP and HTTPS monitors.

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
HTTP and HTTPS monitors.

Expand Down Expand Up @@ -1034,12 +1034,12 @@ async def edit(
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}",
body=await async_maybe_transform(
{
"expected_codes": expected_codes,
"allow_insecure": allow_insecure,
"consecutive_down": consecutive_down,
"consecutive_up": consecutive_up,
"description": description,
"expected_body": expected_body,
"expected_codes": expected_codes,
"follow_redirects": follow_redirects,
"header": header,
"interval": interval,
Expand Down
20 changes: 10 additions & 10 deletions src/cloudflare/resources/load_balancers/monitors/previews.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ def create(
monitor_id: str,
*,
account_id: str,
expected_codes: str,
allow_insecure: bool | NotGiven = NOT_GIVEN,
consecutive_down: int | NotGiven = NOT_GIVEN,
consecutive_up: int | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
expected_body: str | NotGiven = NOT_GIVEN,
expected_codes: str | NotGiven = NOT_GIVEN,
follow_redirects: bool | NotGiven = NOT_GIVEN,
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
interval: int | NotGiven = NOT_GIVEN,
Expand All @@ -84,9 +84,6 @@ def create(
Args:
account_id: Identifier

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
currently only valid for HTTP and HTTPS monitors.

Expand All @@ -102,6 +99,9 @@ def create(
is not found, the origin will be marked as unhealthy. This parameter is only
valid for HTTP and HTTPS monitors.

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
HTTP and HTTPS monitors.

Expand Down Expand Up @@ -149,12 +149,12 @@ def create(
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}/preview",
body=maybe_transform(
{
"expected_codes": expected_codes,
"allow_insecure": allow_insecure,
"consecutive_down": consecutive_down,
"consecutive_up": consecutive_up,
"description": description,
"expected_body": expected_body,
"expected_codes": expected_codes,
"follow_redirects": follow_redirects,
"header": header,
"interval": interval,
Expand Down Expand Up @@ -204,12 +204,12 @@ async def create(
monitor_id: str,
*,
account_id: str,
expected_codes: str,
allow_insecure: bool | NotGiven = NOT_GIVEN,
consecutive_down: int | NotGiven = NOT_GIVEN,
consecutive_up: int | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
expected_body: str | NotGiven = NOT_GIVEN,
expected_codes: str | NotGiven = NOT_GIVEN,
follow_redirects: bool | NotGiven = NOT_GIVEN,
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
interval: int | NotGiven = NOT_GIVEN,
Expand All @@ -235,9 +235,6 @@ async def create(
Args:
account_id: Identifier

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
currently only valid for HTTP and HTTPS monitors.

Expand All @@ -253,6 +250,9 @@ async def create(
is not found, the origin will be marked as unhealthy. This parameter is only
valid for HTTP and HTTPS monitors.

expected_codes: The expected HTTP response code or code range of the health check. This
parameter is only valid for HTTP and HTTPS monitors.

follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
HTTP and HTTPS monitors.

Expand Down Expand Up @@ -300,12 +300,12 @@ async def create(
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}/preview",
body=await async_maybe_transform(
{
"expected_codes": expected_codes,
"allow_insecure": allow_insecure,
"consecutive_down": consecutive_down,
"consecutive_up": consecutive_up,
"description": description,
"expected_body": expected_body,
"expected_codes": expected_codes,
"follow_redirects": follow_redirects,
"header": header,
"interval": interval,
Expand Down
Loading