Skip to content

Commit b75fefe

Browse files
chore(api): update composite API spec
1 parent 0bdb2c1 commit b75fefe

7 files changed

Lines changed: 62 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1802
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c5f32492775124389bdbfdaef3cc5e8b9a461534808ae9a6f392810aaa3f76f5.yml
3-
openapi_spec_hash: 08a2a40332d7e013bf4275ce693c3c63
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd93f537a4c74ad787ab638437cffdf462f373a40e4bf6c58e88b4a2506eb97a.yml
3+
openapi_spec_hash: 455470da367dffe6c0708f8240a5ce3e
44
config_hash: ac04197a992afb1d8c3b416fc46e8c8e

src/cloudflare/resources/load_balancers/pools/pools.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def create(
9595
longitude: float | NotGiven = NOT_GIVEN,
9696
minimum_origins: int | NotGiven = NOT_GIVEN,
9797
monitor: str | NotGiven = NOT_GIVEN,
98+
monitor_group: str | NotGiven = NOT_GIVEN,
9899
notification_email: str | NotGiven = NOT_GIVEN,
99100
notification_filter: Optional[NotificationFilterParam] | NotGiven = NOT_GIVEN,
100101
origin_steering: OriginSteeringParam | NotGiven = NOT_GIVEN,
@@ -138,6 +139,9 @@ def create(
138139
monitor: The ID of the Monitor to use for checking the health of origins within this
139140
pool.
140141
142+
monitor_group: The ID of the Monitor Group to use for checking the health of origins within
143+
this pool.
144+
141145
notification_email: This field is now deprecated. It has been moved to Cloudflare's Centralized
142146
Notification service
143147
https://developers.cloudflare.com/fundamentals/notifications/. The email address
@@ -173,6 +177,7 @@ def create(
173177
"longitude": longitude,
174178
"minimum_origins": minimum_origins,
175179
"monitor": monitor,
180+
"monitor_group": monitor_group,
176181
"notification_email": notification_email,
177182
"notification_filter": notification_filter,
178183
"origin_steering": origin_steering,
@@ -204,6 +209,7 @@ def update(
204209
longitude: float | NotGiven = NOT_GIVEN,
205210
minimum_origins: int | NotGiven = NOT_GIVEN,
206211
monitor: str | NotGiven = NOT_GIVEN,
212+
monitor_group: str | NotGiven = NOT_GIVEN,
207213
notification_email: str | NotGiven = NOT_GIVEN,
208214
notification_filter: Optional[NotificationFilterParam] | NotGiven = NOT_GIVEN,
209215
origin_steering: OriginSteeringParam | NotGiven = NOT_GIVEN,
@@ -250,6 +256,9 @@ def update(
250256
monitor: The ID of the Monitor to use for checking the health of origins within this
251257
pool.
252258
259+
monitor_group: The ID of the Monitor Group to use for checking the health of origins within
260+
this pool.
261+
253262
notification_email: This field is now deprecated. It has been moved to Cloudflare's Centralized
254263
Notification service
255264
https://developers.cloudflare.com/fundamentals/notifications/. The email address
@@ -288,6 +297,7 @@ def update(
288297
"longitude": longitude,
289298
"minimum_origins": minimum_origins,
290299
"monitor": monitor,
300+
"monitor_group": monitor_group,
291301
"notification_email": notification_email,
292302
"notification_filter": notification_filter,
293303
"origin_steering": origin_steering,
@@ -450,6 +460,7 @@ def edit(
450460
longitude: float | NotGiven = NOT_GIVEN,
451461
minimum_origins: int | NotGiven = NOT_GIVEN,
452462
monitor: str | NotGiven = NOT_GIVEN,
463+
monitor_group: str | NotGiven = NOT_GIVEN,
453464
name: str | NotGiven = NOT_GIVEN,
454465
notification_email: str | NotGiven = NOT_GIVEN,
455466
notification_filter: Optional[NotificationFilterParam] | NotGiven = NOT_GIVEN,
@@ -492,6 +503,9 @@ def edit(
492503
monitor: The ID of the Monitor to use for checking the health of origins within this
493504
pool.
494505
506+
monitor_group: The ID of the Monitor Group to use for checking the health of origins within
507+
this pool.
508+
495509
name: A short name (tag) for the pool. Only alphanumeric characters, hyphens, and
496510
underscores are allowed.
497511
@@ -534,6 +548,7 @@ def edit(
534548
"longitude": longitude,
535549
"minimum_origins": minimum_origins,
536550
"monitor": monitor,
551+
"monitor_group": monitor_group,
537552
"name": name,
538553
"notification_email": notification_email,
539554
"notification_filter": notification_filter,
@@ -636,6 +651,7 @@ async def create(
636651
longitude: float | NotGiven = NOT_GIVEN,
637652
minimum_origins: int | NotGiven = NOT_GIVEN,
638653
monitor: str | NotGiven = NOT_GIVEN,
654+
monitor_group: str | NotGiven = NOT_GIVEN,
639655
notification_email: str | NotGiven = NOT_GIVEN,
640656
notification_filter: Optional[NotificationFilterParam] | NotGiven = NOT_GIVEN,
641657
origin_steering: OriginSteeringParam | NotGiven = NOT_GIVEN,
@@ -679,6 +695,9 @@ async def create(
679695
monitor: The ID of the Monitor to use for checking the health of origins within this
680696
pool.
681697
698+
monitor_group: The ID of the Monitor Group to use for checking the health of origins within
699+
this pool.
700+
682701
notification_email: This field is now deprecated. It has been moved to Cloudflare's Centralized
683702
Notification service
684703
https://developers.cloudflare.com/fundamentals/notifications/. The email address
@@ -714,6 +733,7 @@ async def create(
714733
"longitude": longitude,
715734
"minimum_origins": minimum_origins,
716735
"monitor": monitor,
736+
"monitor_group": monitor_group,
717737
"notification_email": notification_email,
718738
"notification_filter": notification_filter,
719739
"origin_steering": origin_steering,
@@ -745,6 +765,7 @@ async def update(
745765
longitude: float | NotGiven = NOT_GIVEN,
746766
minimum_origins: int | NotGiven = NOT_GIVEN,
747767
monitor: str | NotGiven = NOT_GIVEN,
768+
monitor_group: str | NotGiven = NOT_GIVEN,
748769
notification_email: str | NotGiven = NOT_GIVEN,
749770
notification_filter: Optional[NotificationFilterParam] | NotGiven = NOT_GIVEN,
750771
origin_steering: OriginSteeringParam | NotGiven = NOT_GIVEN,
@@ -791,6 +812,9 @@ async def update(
791812
monitor: The ID of the Monitor to use for checking the health of origins within this
792813
pool.
793814
815+
monitor_group: The ID of the Monitor Group to use for checking the health of origins within
816+
this pool.
817+
794818
notification_email: This field is now deprecated. It has been moved to Cloudflare's Centralized
795819
Notification service
796820
https://developers.cloudflare.com/fundamentals/notifications/. The email address
@@ -829,6 +853,7 @@ async def update(
829853
"longitude": longitude,
830854
"minimum_origins": minimum_origins,
831855
"monitor": monitor,
856+
"monitor_group": monitor_group,
832857
"notification_email": notification_email,
833858
"notification_filter": notification_filter,
834859
"origin_steering": origin_steering,
@@ -991,6 +1016,7 @@ async def edit(
9911016
longitude: float | NotGiven = NOT_GIVEN,
9921017
minimum_origins: int | NotGiven = NOT_GIVEN,
9931018
monitor: str | NotGiven = NOT_GIVEN,
1019+
monitor_group: str | NotGiven = NOT_GIVEN,
9941020
name: str | NotGiven = NOT_GIVEN,
9951021
notification_email: str | NotGiven = NOT_GIVEN,
9961022
notification_filter: Optional[NotificationFilterParam] | NotGiven = NOT_GIVEN,
@@ -1033,6 +1059,9 @@ async def edit(
10331059
monitor: The ID of the Monitor to use for checking the health of origins within this
10341060
pool.
10351061
1062+
monitor_group: The ID of the Monitor Group to use for checking the health of origins within
1063+
this pool.
1064+
10361065
name: A short name (tag) for the pool. Only alphanumeric characters, hyphens, and
10371066
underscores are allowed.
10381067
@@ -1075,6 +1104,7 @@ async def edit(
10751104
"longitude": longitude,
10761105
"minimum_origins": minimum_origins,
10771106
"monitor": monitor,
1107+
"monitor_group": monitor_group,
10781108
"name": name,
10791109
"notification_email": notification_email,
10801110
"notification_filter": notification_filter,

src/cloudflare/types/load_balancers/pool.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ class Pool(BaseModel):
7171
pool.
7272
"""
7373

74+
monitor_group: Optional[str] = None
75+
"""
76+
The ID of the Monitor Group to use for checking the health of origins within
77+
this pool.
78+
"""
79+
7480
name: Optional[str] = None
7581
"""A short name (tag) for the pool.
7682

src/cloudflare/types/load_balancers/pool_create_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ class PoolCreateParams(TypedDict, total=False):
6969
pool.
7070
"""
7171

72+
monitor_group: str
73+
"""
74+
The ID of the Monitor Group to use for checking the health of origins within
75+
this pool.
76+
"""
77+
7278
notification_email: str
7379
"""This field is now deprecated.
7480

src/cloudflare/types/load_balancers/pool_edit_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ class PoolEditParams(TypedDict, total=False):
6363
pool.
6464
"""
6565

66+
monitor_group: str
67+
"""
68+
The ID of the Monitor Group to use for checking the health of origins within
69+
this pool.
70+
"""
71+
6672
name: str
6773
"""A short name (tag) for the pool.
6874

src/cloudflare/types/load_balancers/pool_update_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ class PoolUpdateParams(TypedDict, total=False):
7676
pool.
7777
"""
7878

79+
monitor_group: str
80+
"""
81+
The ID of the Monitor Group to use for checking the health of origins within
82+
this pool.
83+
"""
84+
7985
notification_email: str
8086
"""This field is now deprecated.
8187

tests/api_resources/load_balancers/test_pools.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
5858
longitude=0,
5959
minimum_origins=0,
6060
monitor="monitor",
61+
monitor_group="monitor_group",
6162
notification_email="someone@example.com,sometwo@example.com",
6263
notification_filter={
6364
"origin": {
@@ -150,6 +151,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
150151
longitude=0,
151152
minimum_origins=0,
152153
monitor="monitor",
154+
monitor_group="monitor_group",
153155
notification_email="someone@example.com,sometwo@example.com",
154156
notification_filter={
155157
"origin": {
@@ -384,6 +386,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
384386
longitude=0,
385387
minimum_origins=0,
386388
monitor="monitor",
389+
monitor_group="monitor_group",
387390
name="primary-dc-1",
388391
notification_email="someone@example.com,sometwo@example.com",
389392
notification_filter={
@@ -542,6 +545,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
542545
longitude=0,
543546
minimum_origins=0,
544547
monitor="monitor",
548+
monitor_group="monitor_group",
545549
notification_email="someone@example.com,sometwo@example.com",
546550
notification_filter={
547551
"origin": {
@@ -634,6 +638,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
634638
longitude=0,
635639
minimum_origins=0,
636640
monitor="monitor",
641+
monitor_group="monitor_group",
637642
notification_email="someone@example.com,sometwo@example.com",
638643
notification_filter={
639644
"origin": {
@@ -868,6 +873,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
868873
longitude=0,
869874
minimum_origins=0,
870875
monitor="monitor",
876+
monitor_group="monitor_group",
871877
name="primary-dc-1",
872878
notification_email="someone@example.com,sometwo@example.com",
873879
notification_filter={

0 commit comments

Comments
 (0)