Skip to content

Commit

Permalink
feat(api): api update (#3562)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 4, 2024
1 parent 1e4a82b commit 6bf2f2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 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: 1397
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fe729b42d8f4cdf418646a3db49b6486b2e5f33f7acb74f0c48f4c43e16b1c52.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dc0ea8b1d39a240dde258e432da1b6e2f044da9d646023352946c4a9d586b25f.yml
7 changes: 4 additions & 3 deletions email_security/settingdomain.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,10 @@ func (r settingDomainDeleteResponseEnvelopeJSON) RawJSON() string {

type SettingDomainEditParams struct {
// Account Identifier
AccountID param.Field[string] `path:"account_id,required"`
Domain param.Field[string] `json:"domain"`
LookbackHops param.Field[int64] `json:"lookback_hops"`
AccountID param.Field[string] `path:"account_id,required"`
Domain param.Field[string] `json:"domain"`
IntegrationID param.Field[string] `json:"integration_id" format:"uuid"`
LookbackHops param.Field[int64] `json:"lookback_hops"`
}

func (r SettingDomainEditParams) MarshalJSON() (data []byte, err error) {
Expand Down
7 changes: 4 additions & 3 deletions email_security/settingdomain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ func TestSettingDomainEditWithOptionalParams(t *testing.T) {
context.TODO(),
int64(2400),
email_security.SettingDomainEditParams{
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
Domain: cloudflare.F("domain"),
LookbackHops: cloudflare.F(int64(1)),
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
Domain: cloudflare.F("domain"),
IntegrationID: cloudflare.F("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
LookbackHops: cloudflare.F(int64(1)),
},
)
if err != nil {
Expand Down

0 comments on commit 6bf2f2f

Please sign in to comment.