Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent c4160d3 commit d0005c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
5 changes: 0 additions & 5 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1072,13 +1072,8 @@ Methods:

## Regions

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/load_balancers">load_balancers</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/load_balancers#RegionIDParam">RegionIDParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/load_balancers">load_balancers</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/load_balancers#RegionID">RegionID</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/load_balancers">load_balancers</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/load_balancers#RegionListResponseUnion">RegionListResponseUnion</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/load_balancers">load_balancers</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/load_balancers#RegionGetResponseUnion">RegionGetResponseUnion</a>

Expand Down
8 changes: 4 additions & 4 deletions load_balancers/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ type Pool struct {
ID string `json:"id"`
// A list of regions from which to run health checks. Null means every Cloudflare
// data center.
CheckRegions RegionID `json:"check_regions,nullable"`
CreatedOn time.Time `json:"created_on" format:"date-time"`
CheckRegions []CheckRegion `json:"check_regions,nullable"`
CreatedOn time.Time `json:"created_on" format:"date-time"`
// A human-readable description of the pool.
Description string `json:"description"`
// This field shows up only if the pool is disabled. This field is set with the
Expand Down Expand Up @@ -333,7 +333,7 @@ type PoolUpdateParams struct {
Origins param.Field[[]OriginParam] `json:"origins,required"`
// A list of regions from which to run health checks. Null means every Cloudflare
// data center.
CheckRegions param.Field[RegionIDParam] `json:"check_regions"`
CheckRegions param.Field[[]CheckRegion] `json:"check_regions"`
// A human-readable description of the pool.
Description param.Field[string] `json:"description"`
// Whether to enable (the default) or disable this pool. Disabled pools will not
Expand Down Expand Up @@ -485,7 +485,7 @@ type PoolEditParams struct {
AccountID param.Field[string] `path:"account_id,required"`
// A list of regions from which to run health checks. Null means every Cloudflare
// data center.
CheckRegions param.Field[RegionIDParam] `json:"check_regions"`
CheckRegions param.Field[[]CheckRegion] `json:"check_regions"`
// A human-readable description of the pool.
Description param.Field[string] `json:"description"`
// Whether to enable (the default) or disable this pool. Disabled pools will not
Expand Down
4 changes: 0 additions & 4 deletions load_balancers/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ func (r *RegionService) Get(ctx context.Context, regionID RegionGetParamsRegionI
return
}

type RegionID []CheckRegion

type RegionIDParam []CheckRegion

// Union satisfied by [load_balancers.RegionListResponseUnknown] or
// [shared.UnionString].
type RegionListResponseUnion interface {
Expand Down

0 comments on commit d0005c2

Please sign in to comment.