Skip to content

Commit c2770ee

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#2163)
1 parent 5244425 commit c2770ee

File tree

12 files changed

+91
-139
lines changed

12 files changed

+91
-139
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1417
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b414602f316e30c6870beeb57670a6c2360a68b7b0b5e349d748700b7516ba29.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-53e6a4695205673e20c0dbbcda08991b451276b3681c9d776f98b85ddacf564a.yml

src/cloudflare/resources/load_balancers/monitors/monitors.py

+30-30
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ def create(
7878
self,
7979
*,
8080
account_id: str,
81-
expected_codes: str,
8281
allow_insecure: bool | NotGiven = NOT_GIVEN,
8382
consecutive_down: int | NotGiven = NOT_GIVEN,
8483
consecutive_up: int | NotGiven = NOT_GIVEN,
8584
description: str | NotGiven = NOT_GIVEN,
8685
expected_body: str | NotGiven = NOT_GIVEN,
86+
expected_codes: str | NotGiven = NOT_GIVEN,
8787
follow_redirects: bool | NotGiven = NOT_GIVEN,
8888
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
8989
interval: int | NotGiven = NOT_GIVEN,
@@ -107,9 +107,6 @@ def create(
107107
Args:
108108
account_id: Identifier
109109
110-
expected_codes: The expected HTTP response code or code range of the health check. This
111-
parameter is only valid for HTTP and HTTPS monitors.
112-
113110
allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
114111
currently only valid for HTTP and HTTPS monitors.
115112
@@ -125,6 +122,9 @@ def create(
125122
is not found, the origin will be marked as unhealthy. This parameter is only
126123
valid for HTTP and HTTPS monitors.
127124
125+
expected_codes: The expected HTTP response code or code range of the health check. This
126+
parameter is only valid for HTTP and HTTPS monitors.
127+
128128
follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
129129
HTTP and HTTPS monitors.
130130
@@ -170,12 +170,12 @@ def create(
170170
f"/accounts/{account_id}/load_balancers/monitors",
171171
body=maybe_transform(
172172
{
173-
"expected_codes": expected_codes,
174173
"allow_insecure": allow_insecure,
175174
"consecutive_down": consecutive_down,
176175
"consecutive_up": consecutive_up,
177176
"description": description,
178177
"expected_body": expected_body,
178+
"expected_codes": expected_codes,
179179
"follow_redirects": follow_redirects,
180180
"header": header,
181181
"interval": interval,
@@ -204,12 +204,12 @@ def update(
204204
monitor_id: str,
205205
*,
206206
account_id: str,
207-
expected_codes: str,
208207
allow_insecure: bool | NotGiven = NOT_GIVEN,
209208
consecutive_down: int | NotGiven = NOT_GIVEN,
210209
consecutive_up: int | NotGiven = NOT_GIVEN,
211210
description: str | NotGiven = NOT_GIVEN,
212211
expected_body: str | NotGiven = NOT_GIVEN,
212+
expected_codes: str | NotGiven = NOT_GIVEN,
213213
follow_redirects: bool | NotGiven = NOT_GIVEN,
214214
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
215215
interval: int | NotGiven = NOT_GIVEN,
@@ -233,9 +233,6 @@ def update(
233233
Args:
234234
account_id: Identifier
235235
236-
expected_codes: The expected HTTP response code or code range of the health check. This
237-
parameter is only valid for HTTP and HTTPS monitors.
238-
239236
allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
240237
currently only valid for HTTP and HTTPS monitors.
241238
@@ -251,6 +248,9 @@ def update(
251248
is not found, the origin will be marked as unhealthy. This parameter is only
252249
valid for HTTP and HTTPS monitors.
253250
251+
expected_codes: The expected HTTP response code or code range of the health check. This
252+
parameter is only valid for HTTP and HTTPS monitors.
253+
254254
follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
255255
HTTP and HTTPS monitors.
256256
@@ -298,12 +298,12 @@ def update(
298298
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}",
299299
body=maybe_transform(
300300
{
301-
"expected_codes": expected_codes,
302301
"allow_insecure": allow_insecure,
303302
"consecutive_down": consecutive_down,
304303
"consecutive_up": consecutive_up,
305304
"description": description,
306305
"expected_body": expected_body,
306+
"expected_codes": expected_codes,
307307
"follow_redirects": follow_redirects,
308308
"header": header,
309309
"interval": interval,
@@ -410,12 +410,12 @@ def edit(
410410
monitor_id: str,
411411
*,
412412
account_id: str,
413-
expected_codes: str,
414413
allow_insecure: bool | NotGiven = NOT_GIVEN,
415414
consecutive_down: int | NotGiven = NOT_GIVEN,
416415
consecutive_up: int | NotGiven = NOT_GIVEN,
417416
description: str | NotGiven = NOT_GIVEN,
418417
expected_body: str | NotGiven = NOT_GIVEN,
418+
expected_codes: str | NotGiven = NOT_GIVEN,
419419
follow_redirects: bool | NotGiven = NOT_GIVEN,
420420
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
421421
interval: int | NotGiven = NOT_GIVEN,
@@ -439,9 +439,6 @@ def edit(
439439
Args:
440440
account_id: Identifier
441441
442-
expected_codes: The expected HTTP response code or code range of the health check. This
443-
parameter is only valid for HTTP and HTTPS monitors.
444-
445442
allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
446443
currently only valid for HTTP and HTTPS monitors.
447444
@@ -457,6 +454,9 @@ def edit(
457454
is not found, the origin will be marked as unhealthy. This parameter is only
458455
valid for HTTP and HTTPS monitors.
459456
457+
expected_codes: The expected HTTP response code or code range of the health check. This
458+
parameter is only valid for HTTP and HTTPS monitors.
459+
460460
follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
461461
HTTP and HTTPS monitors.
462462
@@ -504,12 +504,12 @@ def edit(
504504
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}",
505505
body=maybe_transform(
506506
{
507-
"expected_codes": expected_codes,
508507
"allow_insecure": allow_insecure,
509508
"consecutive_down": consecutive_down,
510509
"consecutive_up": consecutive_up,
511510
"description": description,
512511
"expected_body": expected_body,
512+
"expected_codes": expected_codes,
513513
"follow_redirects": follow_redirects,
514514
"header": header,
515515
"interval": interval,
@@ -608,12 +608,12 @@ async def create(
608608
self,
609609
*,
610610
account_id: str,
611-
expected_codes: str,
612611
allow_insecure: bool | NotGiven = NOT_GIVEN,
613612
consecutive_down: int | NotGiven = NOT_GIVEN,
614613
consecutive_up: int | NotGiven = NOT_GIVEN,
615614
description: str | NotGiven = NOT_GIVEN,
616615
expected_body: str | NotGiven = NOT_GIVEN,
616+
expected_codes: str | NotGiven = NOT_GIVEN,
617617
follow_redirects: bool | NotGiven = NOT_GIVEN,
618618
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
619619
interval: int | NotGiven = NOT_GIVEN,
@@ -637,9 +637,6 @@ async def create(
637637
Args:
638638
account_id: Identifier
639639
640-
expected_codes: The expected HTTP response code or code range of the health check. This
641-
parameter is only valid for HTTP and HTTPS monitors.
642-
643640
allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
644641
currently only valid for HTTP and HTTPS monitors.
645642
@@ -655,6 +652,9 @@ async def create(
655652
is not found, the origin will be marked as unhealthy. This parameter is only
656653
valid for HTTP and HTTPS monitors.
657654
655+
expected_codes: The expected HTTP response code or code range of the health check. This
656+
parameter is only valid for HTTP and HTTPS monitors.
657+
658658
follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
659659
HTTP and HTTPS monitors.
660660
@@ -700,12 +700,12 @@ async def create(
700700
f"/accounts/{account_id}/load_balancers/monitors",
701701
body=await async_maybe_transform(
702702
{
703-
"expected_codes": expected_codes,
704703
"allow_insecure": allow_insecure,
705704
"consecutive_down": consecutive_down,
706705
"consecutive_up": consecutive_up,
707706
"description": description,
708707
"expected_body": expected_body,
708+
"expected_codes": expected_codes,
709709
"follow_redirects": follow_redirects,
710710
"header": header,
711711
"interval": interval,
@@ -734,12 +734,12 @@ async def update(
734734
monitor_id: str,
735735
*,
736736
account_id: str,
737-
expected_codes: str,
738737
allow_insecure: bool | NotGiven = NOT_GIVEN,
739738
consecutive_down: int | NotGiven = NOT_GIVEN,
740739
consecutive_up: int | NotGiven = NOT_GIVEN,
741740
description: str | NotGiven = NOT_GIVEN,
742741
expected_body: str | NotGiven = NOT_GIVEN,
742+
expected_codes: str | NotGiven = NOT_GIVEN,
743743
follow_redirects: bool | NotGiven = NOT_GIVEN,
744744
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
745745
interval: int | NotGiven = NOT_GIVEN,
@@ -763,9 +763,6 @@ async def update(
763763
Args:
764764
account_id: Identifier
765765
766-
expected_codes: The expected HTTP response code or code range of the health check. This
767-
parameter is only valid for HTTP and HTTPS monitors.
768-
769766
allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
770767
currently only valid for HTTP and HTTPS monitors.
771768
@@ -781,6 +778,9 @@ async def update(
781778
is not found, the origin will be marked as unhealthy. This parameter is only
782779
valid for HTTP and HTTPS monitors.
783780
781+
expected_codes: The expected HTTP response code or code range of the health check. This
782+
parameter is only valid for HTTP and HTTPS monitors.
783+
784784
follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
785785
HTTP and HTTPS monitors.
786786
@@ -828,12 +828,12 @@ async def update(
828828
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}",
829829
body=await async_maybe_transform(
830830
{
831-
"expected_codes": expected_codes,
832831
"allow_insecure": allow_insecure,
833832
"consecutive_down": consecutive_down,
834833
"consecutive_up": consecutive_up,
835834
"description": description,
836835
"expected_body": expected_body,
836+
"expected_codes": expected_codes,
837837
"follow_redirects": follow_redirects,
838838
"header": header,
839839
"interval": interval,
@@ -940,12 +940,12 @@ async def edit(
940940
monitor_id: str,
941941
*,
942942
account_id: str,
943-
expected_codes: str,
944943
allow_insecure: bool | NotGiven = NOT_GIVEN,
945944
consecutive_down: int | NotGiven = NOT_GIVEN,
946945
consecutive_up: int | NotGiven = NOT_GIVEN,
947946
description: str | NotGiven = NOT_GIVEN,
948947
expected_body: str | NotGiven = NOT_GIVEN,
948+
expected_codes: str | NotGiven = NOT_GIVEN,
949949
follow_redirects: bool | NotGiven = NOT_GIVEN,
950950
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
951951
interval: int | NotGiven = NOT_GIVEN,
@@ -969,9 +969,6 @@ async def edit(
969969
Args:
970970
account_id: Identifier
971971
972-
expected_codes: The expected HTTP response code or code range of the health check. This
973-
parameter is only valid for HTTP and HTTPS monitors.
974-
975972
allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
976973
currently only valid for HTTP and HTTPS monitors.
977974
@@ -987,6 +984,9 @@ async def edit(
987984
is not found, the origin will be marked as unhealthy. This parameter is only
988985
valid for HTTP and HTTPS monitors.
989986
987+
expected_codes: The expected HTTP response code or code range of the health check. This
988+
parameter is only valid for HTTP and HTTPS monitors.
989+
990990
follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
991991
HTTP and HTTPS monitors.
992992
@@ -1034,12 +1034,12 @@ async def edit(
10341034
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}",
10351035
body=await async_maybe_transform(
10361036
{
1037-
"expected_codes": expected_codes,
10381037
"allow_insecure": allow_insecure,
10391038
"consecutive_down": consecutive_down,
10401039
"consecutive_up": consecutive_up,
10411040
"description": description,
10421041
"expected_body": expected_body,
1042+
"expected_codes": expected_codes,
10431043
"follow_redirects": follow_redirects,
10441044
"header": header,
10451045
"interval": interval,

src/cloudflare/resources/load_balancers/monitors/previews.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ def create(
5353
monitor_id: str,
5454
*,
5555
account_id: str,
56-
expected_codes: str,
5756
allow_insecure: bool | NotGiven = NOT_GIVEN,
5857
consecutive_down: int | NotGiven = NOT_GIVEN,
5958
consecutive_up: int | NotGiven = NOT_GIVEN,
6059
description: str | NotGiven = NOT_GIVEN,
6160
expected_body: str | NotGiven = NOT_GIVEN,
61+
expected_codes: str | NotGiven = NOT_GIVEN,
6262
follow_redirects: bool | NotGiven = NOT_GIVEN,
6363
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
6464
interval: int | NotGiven = NOT_GIVEN,
@@ -84,9 +84,6 @@ def create(
8484
Args:
8585
account_id: Identifier
8686
87-
expected_codes: The expected HTTP response code or code range of the health check. This
88-
parameter is only valid for HTTP and HTTPS monitors.
89-
9087
allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
9188
currently only valid for HTTP and HTTPS monitors.
9289
@@ -102,6 +99,9 @@ def create(
10299
is not found, the origin will be marked as unhealthy. This parameter is only
103100
valid for HTTP and HTTPS monitors.
104101
102+
expected_codes: The expected HTTP response code or code range of the health check. This
103+
parameter is only valid for HTTP and HTTPS monitors.
104+
105105
follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
106106
HTTP and HTTPS monitors.
107107
@@ -149,12 +149,12 @@ def create(
149149
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}/preview",
150150
body=maybe_transform(
151151
{
152-
"expected_codes": expected_codes,
153152
"allow_insecure": allow_insecure,
154153
"consecutive_down": consecutive_down,
155154
"consecutive_up": consecutive_up,
156155
"description": description,
157156
"expected_body": expected_body,
157+
"expected_codes": expected_codes,
158158
"follow_redirects": follow_redirects,
159159
"header": header,
160160
"interval": interval,
@@ -204,12 +204,12 @@ async def create(
204204
monitor_id: str,
205205
*,
206206
account_id: str,
207-
expected_codes: str,
208207
allow_insecure: bool | NotGiven = NOT_GIVEN,
209208
consecutive_down: int | NotGiven = NOT_GIVEN,
210209
consecutive_up: int | NotGiven = NOT_GIVEN,
211210
description: str | NotGiven = NOT_GIVEN,
212211
expected_body: str | NotGiven = NOT_GIVEN,
212+
expected_codes: str | NotGiven = NOT_GIVEN,
213213
follow_redirects: bool | NotGiven = NOT_GIVEN,
214214
header: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
215215
interval: int | NotGiven = NOT_GIVEN,
@@ -235,9 +235,6 @@ async def create(
235235
Args:
236236
account_id: Identifier
237237
238-
expected_codes: The expected HTTP response code or code range of the health check. This
239-
parameter is only valid for HTTP and HTTPS monitors.
240-
241238
allow_insecure: Do not validate the certificate when monitor use HTTPS. This parameter is
242239
currently only valid for HTTP and HTTPS monitors.
243240
@@ -253,6 +250,9 @@ async def create(
253250
is not found, the origin will be marked as unhealthy. This parameter is only
254251
valid for HTTP and HTTPS monitors.
255252
253+
expected_codes: The expected HTTP response code or code range of the health check. This
254+
parameter is only valid for HTTP and HTTPS monitors.
255+
256256
follow_redirects: Follow redirects if returned by the origin. This parameter is only valid for
257257
HTTP and HTTPS monitors.
258258
@@ -300,12 +300,12 @@ async def create(
300300
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}/preview",
301301
body=await async_maybe_transform(
302302
{
303-
"expected_codes": expected_codes,
304303
"allow_insecure": allow_insecure,
305304
"consecutive_down": consecutive_down,
306305
"consecutive_up": consecutive_up,
307306
"description": description,
308307
"expected_body": expected_body,
308+
"expected_codes": expected_codes,
309309
"follow_redirects": follow_redirects,
310310
"header": header,
311311
"interval": interval,

0 commit comments

Comments
 (0)