File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11configured_endpoints : 2412
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-b0af4cb139f9df7339b8fb329dd6adddc6205c60257d25a13988e168af0ac607 .yml
3- openapi_spec_hash : 0cc3334f547b32a53fbfff7feedc3d3b
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-874436f83bd9c383144c69da47c4b767bb9c6f4f2bb4945af58cf3b6015f0f62 .yml
3+ openapi_spec_hash : beaf9a654991bf65d642e05c03460e4c
44config_hash : 2f529580a17438fc62cd0b47db41b6f1
Original file line number Diff line number Diff line change @@ -284,6 +284,12 @@ type DomainGetParams struct {
284284 Domain param.Field [string ] `query:"domain"`
285285 // Skip DNS resolution lookups for faster response.
286286 SkipDNS param.Field [bool ] `query:"skip_dns"`
287+ // Skip the domain ranking lookup for faster responses. Defaults to `false`
288+ // (ranking is included). Set to `true` to opt out — primarily used by callers like
289+ // Cloudflare Radar that need to avoid a circular dependency when building the
290+ // domain details page. Note: the bulk endpoint (`/intel/domain/bulk`) uses
291+ // opposite defaults — see `include_ranking` there.
292+ SkipRanking param.Field [bool ] `query:"skip_ranking"`
287293}
288294
289295// URLQuery serializes [DomainGetParams]'s query parameters as `url.Values`.
Original file line number Diff line number Diff line change @@ -29,9 +29,10 @@ func TestDomainGetWithOptionalParams(t *testing.T) {
2929 option .WithAPIEmail ("user@example.com" ),
3030 )
3131 _ , err := client .Intel .Domains .Get (context .TODO (), intel.DomainGetParams {
32- AccountID : cloudflare .F ("023e105f4ecef8ad9ca31a8372d0c353" ),
33- Domain : cloudflare .F ("domain" ),
34- SkipDNS : cloudflare .F (true ),
32+ AccountID : cloudflare .F ("023e105f4ecef8ad9ca31a8372d0c353" ),
33+ Domain : cloudflare .F ("domain" ),
34+ SkipDNS : cloudflare .F (true ),
35+ SkipRanking : cloudflare .F (true ),
3536 })
3637 if err != nil {
3738 var apierr * cloudflare.Error
You can’t perform that action at this time.
0 commit comments