Skip to content

Commit

Permalink
feat(api): api update (#3687)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 28, 2024
1 parent de419a4 commit 7299dbf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1451
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c5682a28c312411d32f5a8447e4c50880eabf7d71415128758e7924dc434c4da.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8c1088ba96368f5f19f6d33654ae76942cfd4f0e3b7f418add2c67b01a6085dc.yml
2 changes: 2 additions & 0 deletions ai_gateway/aigateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ type AIGatewayListParams struct {
OrderByDirection param.Field[AIGatewayListParamsOrderByDirection] `query:"order_by_direction"`
Page param.Field[int64] `query:"page"`
PerPage param.Field[int64] `query:"per_page"`
// Search by id
Search param.Field[string] `query:"search"`
}

// URLQuery serializes [AIGatewayListParams]'s query parameters as `url.Values`.
Expand Down
1 change: 1 addition & 0 deletions ai_gateway/aigateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func TestAIGatewayListWithOptionalParams(t *testing.T) {
OrderByDirection: cloudflare.F(ai_gateway.AIGatewayListParamsOrderByDirectionAsc),
Page: cloudflare.F(int64(1)),
PerPage: cloudflare.F(int64(1)),
Search: cloudflare.F("search"),
})
if err != nil {
var apierr *cloudflare.Error
Expand Down
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ Response Types:

Methods:

- <code title="delete /zones/{zone_id}/dnssec">client.DNSSEC.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec#DNSSECService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec">dnssec</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec#DNSSECDeleteParams">DNSSECDeleteParams</a>) (interface{}, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/dnssec">client.DNSSEC.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec#DNSSECService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec">dnssec</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec#DNSSECDeleteParams">DNSSECDeleteParams</a>) (<a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/dnssec">client.DNSSEC.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec#DNSSECService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec">dnssec</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec#DNSSECEditParams">DNSSECEditParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec">dnssec</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec#DNSSEC">DNSSEC</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/dnssec">client.DNSSEC.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec#DNSSECService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec">dnssec</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec#DNSSECGetParams">DNSSECGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec">dnssec</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dnssec#DNSSEC">DNSSEC</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

Expand Down
4 changes: 2 additions & 2 deletions dnssec/dnssec.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func NewDNSSECService(opts ...option.RequestOption) (r *DNSSECService) {
}

// Delete DNSSEC.
func (r *DNSSECService) Delete(ctx context.Context, body DNSSECDeleteParams, opts ...option.RequestOption) (res *interface{}, err error) {
func (r *DNSSECService) Delete(ctx context.Context, body DNSSECDeleteParams, opts ...option.RequestOption) (res *string, err error) {
var env DNSSECDeleteResponseEnvelope
opts = append(r.Options[:], opts...)
if body.ZoneID.Value == "" {
Expand Down Expand Up @@ -185,7 +185,7 @@ type DNSSECDeleteResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success DNSSECDeleteResponseEnvelopeSuccess `json:"success,required"`
Result interface{} `json:"result"`
Result string `json:"result"`
JSON dnssecDeleteResponseEnvelopeJSON `json:"-"`
}

Expand Down

0 comments on commit 7299dbf

Please sign in to comment.