Skip to content

Commit bdc4f1f

Browse files
chore(api): update composite API spec
1 parent 2d93866 commit bdc4f1f

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.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-ad0bb4b675e7f18dfbffe7c75086f7185a419f58619c83f0256bce247d8c9eef.yml
3+
openapi_spec_hash: 8f8ce66de94ee28d409821319ce4c384
44
config_hash: ac04197a992afb1d8c3b416fc46e8c8e

load_balancers/pool.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ type Pool struct {
234234
// The ID of the Monitor to use for checking the health of origins within this
235235
// pool.
236236
Monitor string `json:"monitor"`
237+
// The ID of the Monitor Group to use for checking the health of origins within
238+
// this pool.
239+
MonitorGroup string `json:"monitor_group"`
237240
// A short name (tag) for the pool. Only alphanumeric characters, hyphens, and
238241
// underscores are allowed.
239242
Name string `json:"name"`
@@ -271,6 +274,7 @@ type poolJSON struct {
271274
MinimumOrigins apijson.Field
272275
ModifiedOn apijson.Field
273276
Monitor apijson.Field
277+
MonitorGroup apijson.Field
274278
Name apijson.Field
275279
Networks apijson.Field
276280
NotificationEmail apijson.Field
@@ -340,6 +344,9 @@ type PoolNewParams struct {
340344
// The ID of the Monitor to use for checking the health of origins within this
341345
// pool.
342346
Monitor param.Field[string] `json:"monitor"`
347+
// The ID of the Monitor Group to use for checking the health of origins within
348+
// this pool.
349+
MonitorGroup param.Field[string] `json:"monitor_group"`
343350
// This field is now deprecated. It has been moved to Cloudflare's Centralized
344351
// Notification service
345352
// https://developers.cloudflare.com/fundamentals/notifications/. The email address
@@ -434,6 +441,9 @@ type PoolUpdateParams struct {
434441
// The ID of the Monitor to use for checking the health of origins within this
435442
// pool.
436443
Monitor param.Field[string] `json:"monitor"`
444+
// The ID of the Monitor Group to use for checking the health of origins within
445+
// this pool.
446+
MonitorGroup param.Field[string] `json:"monitor_group"`
437447
// This field is now deprecated. It has been moved to Cloudflare's Centralized
438448
// Notification service
439449
// https://developers.cloudflare.com/fundamentals/notifications/. The email address
@@ -616,6 +626,9 @@ type PoolEditParams struct {
616626
// The ID of the Monitor to use for checking the health of origins within this
617627
// pool.
618628
Monitor param.Field[string] `json:"monitor"`
629+
// The ID of the Monitor Group to use for checking the health of origins within
630+
// this pool.
631+
MonitorGroup param.Field[string] `json:"monitor_group"`
619632
// A short name (tag) for the pool. Only alphanumeric characters, hyphens, and
620633
// underscores are allowed.
621634
Name param.Field[string] `json:"name"`

load_balancers/pool_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func TestPoolNewWithOptionalParams(t *testing.T) {
5353
Longitude: cloudflare.F(0.000000),
5454
MinimumOrigins: cloudflare.F(int64(0)),
5555
Monitor: cloudflare.F("monitor"),
56+
MonitorGroup: cloudflare.F("monitor_group"),
5657
NotificationEmail: cloudflare.F("someone@example.com,sometwo@example.com"),
5758
NotificationFilter: cloudflare.F(load_balancers.NotificationFilterParam{
5859
Origin: cloudflare.F(load_balancers.FilterOptionsParam{
@@ -120,6 +121,7 @@ func TestPoolUpdateWithOptionalParams(t *testing.T) {
120121
Longitude: cloudflare.F(0.000000),
121122
MinimumOrigins: cloudflare.F(int64(0)),
122123
Monitor: cloudflare.F("monitor"),
124+
MonitorGroup: cloudflare.F("monitor_group"),
123125
NotificationEmail: cloudflare.F("someone@example.com,sometwo@example.com"),
124126
NotificationFilter: cloudflare.F(load_balancers.NotificationFilterParam{
125127
Origin: cloudflare.F(load_balancers.FilterOptionsParam{
@@ -258,6 +260,7 @@ func TestPoolEditWithOptionalParams(t *testing.T) {
258260
Longitude: cloudflare.F(0.000000),
259261
MinimumOrigins: cloudflare.F(int64(0)),
260262
Monitor: cloudflare.F("monitor"),
263+
MonitorGroup: cloudflare.F("monitor_group"),
261264
Name: cloudflare.F("primary-dc-1"),
262265
NotificationEmail: cloudflare.F("someone@example.com,sometwo@example.com"),
263266
NotificationFilter: cloudflare.F(load_balancers.NotificationFilterParam{

0 commit comments

Comments
 (0)