Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): api update #3597

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1365
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4593529df2c582c5e4de92308af748d9f8abbca6c92fff7e99e08bd463b7271e.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eafbd03fd73e3a55e352ee0c79c070b09d59559f24c33911a864654a501c778f.yml
2 changes: 1 addition & 1 deletion brand_protection/brandprotection.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (r *BrandProtectionService) Submit(ctx context.Context, params BrandProtect
return
}

// Get results for a URL scan
// Gets phishing details about a URL.
func (r *BrandProtectionService) URLInfo(ctx context.Context, params BrandProtectionURLInfoParams, opts ...option.RequestOption) (res *Info, err error) {
var env BrandProtectionURLInfoResponseEnvelope
opts = append(r.Options[:], opts...)
Expand Down
3 changes: 2 additions & 1 deletion intel/asn.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ func NewASNService(opts ...option.RequestOption) (r *ASNService) {
return
}

// Get ASN Overview
// Gets an overview of the Autonomous System Number (ASN) and a list of subnets for
// it.
func (r *ASNService) Get(ctx context.Context, asn shared.ASNParam, query ASNGetParams, opts ...option.RequestOption) (res *shared.ASN, err error) {
var env ASNGetResponseEnvelope
opts = append(r.Options[:], opts...)
Expand Down
4 changes: 2 additions & 2 deletions intel/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewDNSService(opts ...option.RequestOption) (r *DNSService) {
return
}

// Get Passive DNS by IP
// Gets a list of all the domains that have resolved to a specific IP address.
func (r *DNSService) List(ctx context.Context, params DNSListParams, opts ...option.RequestOption) (res *pagination.V4PagePagination[DNSListResponse], err error) {
var raw *http.Response
opts = append(r.Options[:], opts...)
Expand All @@ -60,7 +60,7 @@ func (r *DNSService) List(ctx context.Context, params DNSListParams, opts ...opt
return res, nil
}

// Get Passive DNS by IP
// Gets a list of all the domains that have resolved to a specific IP address.
func (r *DNSService) ListAutoPaging(ctx context.Context, params DNSListParams, opts ...option.RequestOption) *pagination.V4PagePaginationAutoPager[DNSListResponse] {
return pagination.NewV4PagePaginationAutoPager(r.List(ctx, params, opts...))
}
Expand Down
2 changes: 1 addition & 1 deletion intel/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewDomainService(opts ...option.RequestOption) (r *DomainService) {
return
}

// Get Domain Details
// Gets security details and statistics about a domain.
func (r *DomainService) Get(ctx context.Context, params DomainGetParams, opts ...option.RequestOption) (res *Domain, err error) {
var env DomainGetResponseEnvelope
opts = append(r.Options[:], opts...)
Expand Down
3 changes: 2 additions & 1 deletion intel/domainhistory.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ func NewDomainHistoryService(opts ...option.RequestOption) (r *DomainHistoryServ
return
}

// Get Domain History
// Gets historical security threat and content categories currently and previously
// assigned to a domain.
func (r *DomainHistoryService) Get(ctx context.Context, params DomainHistoryGetParams, opts ...option.RequestOption) (res *[]DomainHistory, err error) {
var env DomainHistoryGetResponseEnvelope
opts = append(r.Options[:], opts...)
Expand Down
3 changes: 2 additions & 1 deletion intel/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ func NewIPService(opts ...option.RequestOption) (r *IPService) {
return
}

// Same as summary
// Gets the geolocation, ASN, infrastructure type of the ASN, and any security
// threat categories of an IP address.
func (r *IPService) Get(ctx context.Context, params IPGetParams, opts ...option.RequestOption) (res *[]IP, err error) {
var env IPGetResponseEnvelope
opts = append(r.Options[:], opts...)
Expand Down
2 changes: 1 addition & 1 deletion intel/miscategorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func NewMiscategorizationService(opts ...option.RequestOption) (r *Miscategoriza
return
}

// Create Miscategorization
// Allows you to submit requests to change a domain’s category.
func (r *MiscategorizationService) New(ctx context.Context, params MiscategorizationNewParams, opts ...option.RequestOption) (res *MiscategorizationNewResponse, err error) {
opts = append(r.Options[:], opts...)
if params.AccountID.Value == "" {
Expand Down