ddos_protection

package
v7.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin

This is an alias to an internal value.

View Source
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare

This is an alias to an internal value.

View Source
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser

This is an alias to an internal value.

View Source
const CertificateCADigicert = shared.CertificateCADigicert

This is an alias to an internal value.

View Source
const CertificateCAGoogle = shared.CertificateCAGoogle

This is an alias to an internal value.

View Source
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt

This is an alias to an internal value.

View Source
const CertificateCASSLCom = shared.CertificateCASSLCom

This is an alias to an internal value.

View Source
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcCloudflare = shared.CloudflareTunnelConfigSrcCloudflare

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcLocal = shared.CloudflareTunnelConfigSrcLocal

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector

This is an alias to an internal value.

View Source
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow

This is an alias to an internal value.

View Source
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny

This is an alias to an internal value.

View Source
const MemberStatusAccepted = shared.MemberStatusAccepted

This is an alias to an internal value.

View Source
const MemberStatusPending = shared.MemberStatusPending

This is an alias to an internal value.

View Source
const RatePlanIDBusiness = shared.RatePlanIDBusiness

This is an alias to an internal value.

View Source
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDFree = shared.RatePlanIDFree

This is an alias to an internal value.

View Source
const RatePlanIDLite = shared.RatePlanIDLite

This is an alias to an internal value.

View Source
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness

This is an alias to an internal value.

View Source
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree

This is an alias to an internal value.

View Source
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro

This is an alias to an internal value.

View Source
const RatePlanIDPro = shared.RatePlanIDPro

This is an alias to an internal value.

View Source
const RatePlanIDProPlus = shared.RatePlanIDProPlus

This is an alias to an internal value.

View Source
const SortDirectionAsc = shared.SortDirectionAsc

This is an alias to an internal value.

View Source
const SortDirectionDesc = shared.SortDirectionDesc

This is an alias to an internal value.

View Source
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly

This is an alias to an internal value.

View Source
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment

This is an alias to an internal value.

View Source
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled

This is an alias to an internal value.

View Source
const SubscriptionStateExpired = shared.SubscriptionStateExpired

This is an alias to an internal value.

View Source
const SubscriptionStateFailed = shared.SubscriptionStateFailed

This is an alias to an internal value.

View Source
const SubscriptionStatePaid = shared.SubscriptionStatePaid

This is an alias to an internal value.

View Source
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned

This is an alias to an internal value.

View Source
const SubscriptionStateTrial = shared.SubscriptionStateTrial

This is an alias to an internal value.

View Source
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow

This is an alias to an internal value.

View Source
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny

This is an alias to an internal value.

View Source
const TokenStatusActive = shared.TokenStatusActive

This is an alias to an internal value.

View Source
const TokenStatusDisabled = shared.TokenStatusDisabled

This is an alias to an internal value.

View Source
const TokenStatusExpired = shared.TokenStatusExpired

This is an alias to an internal value.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASN

type ASN = shared.ASN

This is an alias to an internal type.

type ASNParam

type ASNParam = shared.ASNParam

This is an alias to an internal type.

type AdvancedTCPProtectionAllowlistBulkDeleteParams

type AdvancedTCPProtectionAllowlistBulkDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionAllowlistBulkDeleteResponse

type AdvancedTCPProtectionAllowlistBulkDeleteResponse struct {
	Errors   []AdvancedTCPProtectionAllowlistBulkDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionAllowlistBulkDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionAllowlistBulkDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistBulkDeleteResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistBulkDeleteResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistBulkDeleteResponseError

type AdvancedTCPProtectionAllowlistBulkDeleteResponseError struct {
	Code             int64                                                        `json:"code" api:"required"`
	Message          string                                                       `json:"message" api:"required"`
	DocumentationURL string                                                       `json:"documentation_url"`
	Source           AdvancedTCPProtectionAllowlistBulkDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionAllowlistBulkDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistBulkDeleteResponseError) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistBulkDeleteResponseError) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistBulkDeleteResponseErrorsSource

type AdvancedTCPProtectionAllowlistBulkDeleteResponseErrorsSource struct {
	Pointer string                                                           `json:"pointer"`
	JSON    advancedTCPProtectionAllowlistBulkDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistBulkDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionAllowlistBulkDeleteResponseMessage

type AdvancedTCPProtectionAllowlistBulkDeleteResponseMessage struct {
	Code             int64                                                          `json:"code" api:"required"`
	Message          string                                                         `json:"message" api:"required"`
	DocumentationURL string                                                         `json:"documentation_url"`
	Source           AdvancedTCPProtectionAllowlistBulkDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionAllowlistBulkDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistBulkDeleteResponseMessage) UnmarshalJSON

type AdvancedTCPProtectionAllowlistBulkDeleteResponseMessagesSource

type AdvancedTCPProtectionAllowlistBulkDeleteResponseMessagesSource struct {
	Pointer string                                                             `json:"pointer"`
	JSON    advancedTCPProtectionAllowlistBulkDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistBulkDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess

type AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccessTrue AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionAllowlistBulkDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionAllowlistItemDeleteParams

type AdvancedTCPProtectionAllowlistItemDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionAllowlistItemDeleteResponse

type AdvancedTCPProtectionAllowlistItemDeleteResponse struct {
	Errors   []AdvancedTCPProtectionAllowlistItemDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionAllowlistItemDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionAllowlistItemDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemDeleteResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistItemDeleteResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistItemDeleteResponseError

type AdvancedTCPProtectionAllowlistItemDeleteResponseError struct {
	Code             int64                                                        `json:"code" api:"required"`
	Message          string                                                       `json:"message" api:"required"`
	DocumentationURL string                                                       `json:"documentation_url"`
	Source           AdvancedTCPProtectionAllowlistItemDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionAllowlistItemDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemDeleteResponseError) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistItemDeleteResponseError) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistItemDeleteResponseErrorsSource

type AdvancedTCPProtectionAllowlistItemDeleteResponseErrorsSource struct {
	Pointer string                                                           `json:"pointer"`
	JSON    advancedTCPProtectionAllowlistItemDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemDeleteResponseMessage

type AdvancedTCPProtectionAllowlistItemDeleteResponseMessage struct {
	Code             int64                                                          `json:"code" api:"required"`
	Message          string                                                         `json:"message" api:"required"`
	DocumentationURL string                                                         `json:"documentation_url"`
	Source           AdvancedTCPProtectionAllowlistItemDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionAllowlistItemDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemDeleteResponseMessage) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemDeleteResponseMessagesSource

type AdvancedTCPProtectionAllowlistItemDeleteResponseMessagesSource struct {
	Pointer string                                                             `json:"pointer"`
	JSON    advancedTCPProtectionAllowlistItemDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess

type AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionAllowlistItemDeleteResponseSuccessTrue AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionAllowlistItemDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionAllowlistItemEditParams

type AdvancedTCPProtectionAllowlistItemEditParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// A comment describing the allowlist prefix. Optional.
	Comment param.Field[string] `json:"comment"`
	// Whether to enable the allowlist prefix into effect. Optional.
	Enabled param.Field[bool] `json:"enabled"`
}

func (AdvancedTCPProtectionAllowlistItemEditParams) MarshalJSON

func (r AdvancedTCPProtectionAllowlistItemEditParams) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionAllowlistItemEditResponse

type AdvancedTCPProtectionAllowlistItemEditResponse struct {
	// The unique ID of the allowlist prefix.
	ID string `json:"id" api:"required"`
	// An optional comment describing the allowlist prefix.
	Comment string `json:"comment" api:"required"`
	// The creation timestamp of the allowlist prefix.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// Whether to enable the allowlist prefix into effect. Defaults to false.
	Enabled bool `json:"enabled" api:"required"`
	// The last modification timestamp of the allowlist prefix.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The allowlist prefix in CIDR format.
	Prefix string                                             `json:"prefix" api:"required"`
	JSON   advancedTCPProtectionAllowlistItemEditResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemEditResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistItemEditResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelope

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionAllowlistItemEditResponse                `json:"result"`
	JSON    advancedTCPProtectionAllowlistItemEditResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemEditResponseEnvelope) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistItemEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrors

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrors struct {
	Code             int64                                                              `json:"code" api:"required"`
	Message          string                                                             `json:"message" api:"required"`
	DocumentationURL string                                                             `json:"documentation_url"`
	Source           AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSource

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSource struct {
	Pointer string                                                                 `json:"pointer"`
	JSON    advancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessages

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessages struct {
	Code             int64                                                                `json:"code" api:"required"`
	Message          string                                                               `json:"message" api:"required"`
	DocumentationURL string                                                               `json:"documentation_url"`
	Source           AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSource

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSource struct {
	Pointer string                                                                   `json:"pointer"`
	JSON    advancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess

type AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionAllowlistItemEditResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionAllowlistItemGetParams

type AdvancedTCPProtectionAllowlistItemGetParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionAllowlistItemGetResponse

type AdvancedTCPProtectionAllowlistItemGetResponse struct {
	// The unique ID of the allowlist prefix.
	ID string `json:"id" api:"required"`
	// An optional comment describing the allowlist prefix.
	Comment string `json:"comment" api:"required"`
	// The creation timestamp of the allowlist prefix.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// Whether to enable the allowlist prefix into effect. Defaults to false.
	Enabled bool `json:"enabled" api:"required"`
	// The last modification timestamp of the allowlist prefix.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The allowlist prefix in CIDR format.
	Prefix string                                            `json:"prefix" api:"required"`
	JSON   advancedTCPProtectionAllowlistItemGetResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemGetResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistItemGetResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelope

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionAllowlistItemGetResponse                `json:"result"`
	JSON    advancedTCPProtectionAllowlistItemGetResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemGetResponseEnvelope) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistItemGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrors

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrors struct {
	Code             int64                                                             `json:"code" api:"required"`
	Message          string                                                            `json:"message" api:"required"`
	DocumentationURL string                                                            `json:"documentation_url"`
	Source           AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSource

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSource struct {
	Pointer string                                                                `json:"pointer"`
	JSON    advancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessages

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessages struct {
	Code             int64                                                               `json:"code" api:"required"`
	Message          string                                                              `json:"message" api:"required"`
	DocumentationURL string                                                              `json:"documentation_url"`
	Source           AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSource

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                                  `json:"pointer"`
	JSON    advancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess

type AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionAllowlistItemGetResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionAllowlistItemService

type AdvancedTCPProtectionAllowlistItemService struct {
	Options []option.RequestOption
}

AdvancedTCPProtectionAllowlistItemService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionAllowlistItemService method instead.

func NewAdvancedTCPProtectionAllowlistItemService

func NewAdvancedTCPProtectionAllowlistItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionAllowlistItemService)

NewAdvancedTCPProtectionAllowlistItemService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionAllowlistItemService) Delete

Delete the allowlist prefix for an account given a UUID.

func (*AdvancedTCPProtectionAllowlistItemService) Edit

Update an allowlist prefix specified by the given UUID.

func (*AdvancedTCPProtectionAllowlistItemService) Get

Get an allowlist prefix specified by the given UUID.

type AdvancedTCPProtectionAllowlistListParams

type AdvancedTCPProtectionAllowlistListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
	Direction param.Field[string] `query:"direction"`
	// The field to order by. Defaults to 'prefix'.
	Order param.Field[string] `query:"order"`
	// The page number for pagination. Defaults to 1.
	Page param.Field[int64] `query:"page"`
	// The number of items per page. Must be between 10 and 1000. Defaults to 25.
	PerPage param.Field[int64] `query:"per_page"`
}

func (AdvancedTCPProtectionAllowlistListParams) URLQuery

URLQuery serializes AdvancedTCPProtectionAllowlistListParams's query parameters as `url.Values`.

type AdvancedTCPProtectionAllowlistListResponse

type AdvancedTCPProtectionAllowlistListResponse struct {
	// The unique ID of the allowlist prefix.
	ID string `json:"id" api:"required"`
	// An optional comment describing the allowlist prefix.
	Comment string `json:"comment" api:"required"`
	// The creation timestamp of the allowlist prefix.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// Whether to enable the allowlist prefix into effect. Defaults to false.
	Enabled bool `json:"enabled" api:"required"`
	// The last modification timestamp of the allowlist prefix.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The allowlist prefix in CIDR format.
	Prefix string                                         `json:"prefix" api:"required"`
	JSON   advancedTCPProtectionAllowlistListResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistListResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistListResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistNewParams

type AdvancedTCPProtectionAllowlistNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// An comment describing the allowlist prefix.
	Comment param.Field[string] `json:"comment" api:"required"`
	// Whether to enable the allowlist prefix into effect.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// The allowlist prefix to add in CIDR format.
	Prefix param.Field[string] `json:"prefix" api:"required"`
}

func (AdvancedTCPProtectionAllowlistNewParams) MarshalJSON

func (r AdvancedTCPProtectionAllowlistNewParams) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionAllowlistNewResponse

type AdvancedTCPProtectionAllowlistNewResponse struct {
	// The unique ID of the allowlist prefix.
	ID string `json:"id" api:"required"`
	// An optional comment describing the allowlist prefix.
	Comment string `json:"comment" api:"required"`
	// The creation timestamp of the allowlist prefix.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// Whether to enable the allowlist prefix into effect. Defaults to false.
	Enabled bool `json:"enabled" api:"required"`
	// The last modification timestamp of the allowlist prefix.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The allowlist prefix in CIDR format.
	Prefix string                                        `json:"prefix" api:"required"`
	JSON   advancedTCPProtectionAllowlistNewResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistNewResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistNewResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistNewResponseEnvelope

type AdvancedTCPProtectionAllowlistNewResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionAllowlistNewResponse                `json:"result"`
	JSON    advancedTCPProtectionAllowlistNewResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistNewResponseEnvelope) UnmarshalJSON

func (r *AdvancedTCPProtectionAllowlistNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrors

type AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrors struct {
	Code             int64                                                         `json:"code" api:"required"`
	Message          string                                                        `json:"message" api:"required"`
	DocumentationURL string                                                        `json:"documentation_url"`
	Source           AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionAllowlistNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSource

type AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSource struct {
	Pointer string                                                            `json:"pointer"`
	JSON    advancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistNewResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessages

type AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessages struct {
	Code             int64                                                           `json:"code" api:"required"`
	Message          string                                                          `json:"message" api:"required"`
	DocumentationURL string                                                          `json:"documentation_url"`
	Source           AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionAllowlistNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSource

type AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSource struct {
	Pointer string                                                              `json:"pointer"`
	JSON    advancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionAllowlistNewResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess

type AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionAllowlistNewResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionAllowlistService

type AdvancedTCPProtectionAllowlistService struct {
	Options []option.RequestOption
	Items   *AdvancedTCPProtectionAllowlistItemService
}

AdvancedTCPProtectionAllowlistService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionAllowlistService method instead.

func NewAdvancedTCPProtectionAllowlistService

func NewAdvancedTCPProtectionAllowlistService(opts ...option.RequestOption) (r *AdvancedTCPProtectionAllowlistService)

NewAdvancedTCPProtectionAllowlistService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionAllowlistService) BulkDelete

Delete all allowlist prefixes for an account.

func (*AdvancedTCPProtectionAllowlistService) List

List all allowlist prefixes for an account.

func (*AdvancedTCPProtectionAllowlistService) ListAutoPaging

List all allowlist prefixes for an account.

func (*AdvancedTCPProtectionAllowlistService) New

Create an allowlist prefix for an account.

type AdvancedTCPProtectionPrefixBulkDeleteParams

type AdvancedTCPProtectionPrefixBulkDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionPrefixBulkDeleteResponse

type AdvancedTCPProtectionPrefixBulkDeleteResponse struct {
	Errors   []AdvancedTCPProtectionPrefixBulkDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionPrefixBulkDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionPrefixBulkDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionPrefixBulkDeleteResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixBulkDeleteResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixBulkDeleteResponseError

type AdvancedTCPProtectionPrefixBulkDeleteResponseError struct {
	Code             int64                                                     `json:"code" api:"required"`
	Message          string                                                    `json:"message" api:"required"`
	DocumentationURL string                                                    `json:"documentation_url"`
	Source           AdvancedTCPProtectionPrefixBulkDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionPrefixBulkDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionPrefixBulkDeleteResponseError) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixBulkDeleteResponseError) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixBulkDeleteResponseErrorsSource

type AdvancedTCPProtectionPrefixBulkDeleteResponseErrorsSource struct {
	Pointer string                                                        `json:"pointer"`
	JSON    advancedTCPProtectionPrefixBulkDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixBulkDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionPrefixBulkDeleteResponseMessage

type AdvancedTCPProtectionPrefixBulkDeleteResponseMessage struct {
	Code             int64                                                       `json:"code" api:"required"`
	Message          string                                                      `json:"message" api:"required"`
	DocumentationURL string                                                      `json:"documentation_url"`
	Source           AdvancedTCPProtectionPrefixBulkDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionPrefixBulkDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionPrefixBulkDeleteResponseMessage) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixBulkDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixBulkDeleteResponseMessagesSource

type AdvancedTCPProtectionPrefixBulkDeleteResponseMessagesSource struct {
	Pointer string                                                          `json:"pointer"`
	JSON    advancedTCPProtectionPrefixBulkDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixBulkDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess

type AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionPrefixBulkDeleteResponseSuccessTrue AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionPrefixBulkDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionPrefixBulkNewParams

type AdvancedTCPProtectionPrefixBulkNewParams struct {
	// Identifier.
	AccountID param.Field[string]                            `path:"account_id" api:"required"`
	Body      []AdvancedTCPProtectionPrefixBulkNewParamsBody `json:"body" api:"required"`
}

func (AdvancedTCPProtectionPrefixBulkNewParams) MarshalJSON

func (r AdvancedTCPProtectionPrefixBulkNewParams) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionPrefixBulkNewParamsBody

type AdvancedTCPProtectionPrefixBulkNewParamsBody struct {
	// A comment describing the prefix.
	Comment param.Field[string] `json:"comment" api:"required"`
	// Whether to exclude the prefix from protection.
	Excluded param.Field[bool] `json:"excluded" api:"required"`
	// The prefix to add in CIDR format.
	Prefix param.Field[string] `json:"prefix" api:"required"`
}

func (AdvancedTCPProtectionPrefixBulkNewParamsBody) MarshalJSON

func (r AdvancedTCPProtectionPrefixBulkNewParamsBody) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionPrefixBulkNewResponse

type AdvancedTCPProtectionPrefixBulkNewResponse struct {
	// The unique ID of the prefix.
	ID string `json:"id" api:"required"`
	// A comment describing the prefix.
	Comment string `json:"comment" api:"required"`
	// The creation timestamp of the prefix.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// Whether to exclude the prefix from protection.
	Excluded bool `json:"excluded" api:"required"`
	// The last modification timestamp of the prefix.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The prefix in CIDR format.
	Prefix string                                         `json:"prefix" api:"required"`
	JSON   advancedTCPProtectionPrefixBulkNewResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixBulkNewResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixBulkNewResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixItemDeleteParams

type AdvancedTCPProtectionPrefixItemDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionPrefixItemDeleteResponse

type AdvancedTCPProtectionPrefixItemDeleteResponse struct {
	Errors   []AdvancedTCPProtectionPrefixItemDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionPrefixItemDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionPrefixItemDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionPrefixItemDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemDeleteResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixItemDeleteResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixItemDeleteResponseError

type AdvancedTCPProtectionPrefixItemDeleteResponseError struct {
	Code             int64                                                     `json:"code" api:"required"`
	Message          string                                                    `json:"message" api:"required"`
	DocumentationURL string                                                    `json:"documentation_url"`
	Source           AdvancedTCPProtectionPrefixItemDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionPrefixItemDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemDeleteResponseError) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixItemDeleteResponseError) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixItemDeleteResponseErrorsSource

type AdvancedTCPProtectionPrefixItemDeleteResponseErrorsSource struct {
	Pointer string                                                        `json:"pointer"`
	JSON    advancedTCPProtectionPrefixItemDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionPrefixItemDeleteResponseMessage

type AdvancedTCPProtectionPrefixItemDeleteResponseMessage struct {
	Code             int64                                                       `json:"code" api:"required"`
	Message          string                                                      `json:"message" api:"required"`
	DocumentationURL string                                                      `json:"documentation_url"`
	Source           AdvancedTCPProtectionPrefixItemDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionPrefixItemDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemDeleteResponseMessage) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixItemDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixItemDeleteResponseMessagesSource

type AdvancedTCPProtectionPrefixItemDeleteResponseMessagesSource struct {
	Pointer string                                                          `json:"pointer"`
	JSON    advancedTCPProtectionPrefixItemDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionPrefixItemDeleteResponseSuccess

type AdvancedTCPProtectionPrefixItemDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionPrefixItemDeleteResponseSuccessTrue AdvancedTCPProtectionPrefixItemDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionPrefixItemDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionPrefixItemEditParams

type AdvancedTCPProtectionPrefixItemEditParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// A new comment for the prefix. Optional.
	Comment param.Field[string] `json:"comment"`
	// Whether to exclude the prefix from protection. Optional.
	Excluded param.Field[bool] `json:"excluded"`
}

func (AdvancedTCPProtectionPrefixItemEditParams) MarshalJSON

func (r AdvancedTCPProtectionPrefixItemEditParams) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionPrefixItemEditResponse

type AdvancedTCPProtectionPrefixItemEditResponse struct {
	// The unique ID of the prefix.
	ID string `json:"id" api:"required"`
	// A comment describing the prefix.
	Comment string `json:"comment" api:"required"`
	// The creation timestamp of the prefix.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// Whether to exclude the prefix from protection.
	Excluded bool `json:"excluded" api:"required"`
	// The last modification timestamp of the prefix.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The prefix in CIDR format.
	Prefix string                                          `json:"prefix" api:"required"`
	JSON   advancedTCPProtectionPrefixItemEditResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemEditResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixItemEditResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixItemEditResponseEnvelope

type AdvancedTCPProtectionPrefixItemEditResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionPrefixItemEditResponse                `json:"result"`
	JSON    advancedTCPProtectionPrefixItemEditResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemEditResponseEnvelope) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixItemEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrors

type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrors struct {
	Code             int64                                                           `json:"code" api:"required"`
	Message          string                                                          `json:"message" api:"required"`
	DocumentationURL string                                                          `json:"documentation_url"`
	Source           AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSource

type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSource struct {
	Pointer string                                                              `json:"pointer"`
	JSON    advancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemEditResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessages

type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessages struct {
	Code             int64                                                             `json:"code" api:"required"`
	Message          string                                                            `json:"message" api:"required"`
	DocumentationURL string                                                            `json:"documentation_url"`
	Source           AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSource

type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSource struct {
	Pointer string                                                                `json:"pointer"`
	JSON    advancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemEditResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess

type AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionPrefixItemEditResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionPrefixItemGetParams

type AdvancedTCPProtectionPrefixItemGetParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionPrefixItemGetResponse

type AdvancedTCPProtectionPrefixItemGetResponse struct {
	// The unique ID of the prefix.
	ID string `json:"id" api:"required"`
	// A comment describing the prefix.
	Comment string `json:"comment" api:"required"`
	// The creation timestamp of the prefix.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// Whether to exclude the prefix from protection.
	Excluded bool `json:"excluded" api:"required"`
	// The last modification timestamp of the prefix.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The prefix in CIDR format.
	Prefix string                                         `json:"prefix" api:"required"`
	JSON   advancedTCPProtectionPrefixItemGetResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemGetResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixItemGetResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixItemGetResponseEnvelope

type AdvancedTCPProtectionPrefixItemGetResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionPrefixItemGetResponse                `json:"result"`
	JSON    advancedTCPProtectionPrefixItemGetResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemGetResponseEnvelope) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixItemGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrors

type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrors struct {
	Code             int64                                                          `json:"code" api:"required"`
	Message          string                                                         `json:"message" api:"required"`
	DocumentationURL string                                                         `json:"documentation_url"`
	Source           AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSource

type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSource struct {
	Pointer string                                                             `json:"pointer"`
	JSON    advancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemGetResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessages

type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessages struct {
	Code             int64                                                            `json:"code" api:"required"`
	Message          string                                                           `json:"message" api:"required"`
	DocumentationURL string                                                           `json:"documentation_url"`
	Source           AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSource

type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                               `json:"pointer"`
	JSON    advancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixItemGetResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess

type AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionPrefixItemGetResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionPrefixItemService

type AdvancedTCPProtectionPrefixItemService struct {
	Options []option.RequestOption
}

AdvancedTCPProtectionPrefixItemService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionPrefixItemService method instead.

func NewAdvancedTCPProtectionPrefixItemService

func NewAdvancedTCPProtectionPrefixItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionPrefixItemService)

NewAdvancedTCPProtectionPrefixItemService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionPrefixItemService) Delete

Delete the prefix for an account given a UUID.

func (*AdvancedTCPProtectionPrefixItemService) Edit

Update a prefix specified by the given UUID.

func (*AdvancedTCPProtectionPrefixItemService) Get

Get a prefix specified by the given UUID.

type AdvancedTCPProtectionPrefixListParams

type AdvancedTCPProtectionPrefixListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
	Direction param.Field[string] `query:"direction"`
	// The field to order by. Defaults to 'prefix'.
	Order param.Field[string] `query:"order"`
	// The page number for pagination. Defaults to 1.
	Page param.Field[int64] `query:"page"`
	// The number of items per page. Must be between 10 and 1000. Defaults to 25.
	PerPage param.Field[int64] `query:"per_page"`
}

func (AdvancedTCPProtectionPrefixListParams) URLQuery

URLQuery serializes AdvancedTCPProtectionPrefixListParams's query parameters as `url.Values`.

type AdvancedTCPProtectionPrefixListResponse

type AdvancedTCPProtectionPrefixListResponse struct {
	// The unique ID of the prefix.
	ID string `json:"id" api:"required"`
	// A comment describing the prefix.
	Comment string `json:"comment" api:"required"`
	// The creation timestamp of the prefix.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// Whether to exclude the prefix from protection.
	Excluded bool `json:"excluded" api:"required"`
	// The last modification timestamp of the prefix.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The prefix in CIDR format.
	Prefix string                                      `json:"prefix" api:"required"`
	JSON   advancedTCPProtectionPrefixListResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixListResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixListResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixNewParams

type AdvancedTCPProtectionPrefixNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// A comment describing the prefix.
	Comment param.Field[string] `json:"comment" api:"required"`
	// Whether to exclude the prefix from protection.
	Excluded param.Field[bool] `json:"excluded" api:"required"`
	// The prefix to add in CIDR format.
	Prefix param.Field[string] `json:"prefix" api:"required"`
}

func (AdvancedTCPProtectionPrefixNewParams) MarshalJSON

func (r AdvancedTCPProtectionPrefixNewParams) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionPrefixNewResponse

type AdvancedTCPProtectionPrefixNewResponse struct {
	// The unique ID of the prefix.
	ID string `json:"id" api:"required"`
	// A comment describing the prefix.
	Comment string `json:"comment" api:"required"`
	// The creation timestamp of the prefix.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// Whether to exclude the prefix from protection.
	Excluded bool `json:"excluded" api:"required"`
	// The last modification timestamp of the prefix.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The prefix in CIDR format.
	Prefix string                                     `json:"prefix" api:"required"`
	JSON   advancedTCPProtectionPrefixNewResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixNewResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixNewResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixNewResponseEnvelope

type AdvancedTCPProtectionPrefixNewResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionPrefixNewResponse                `json:"result"`
	JSON    advancedTCPProtectionPrefixNewResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionPrefixNewResponseEnvelope) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors

type AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors struct {
	Code             int64                                                      `json:"code" api:"required"`
	Message          string                                                     `json:"message" api:"required"`
	DocumentationURL string                                                     `json:"documentation_url"`
	Source           AdvancedTCPProtectionPrefixNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionPrefixNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixNewResponseEnvelopeErrorsSource

type AdvancedTCPProtectionPrefixNewResponseEnvelopeErrorsSource struct {
	Pointer string                                                         `json:"pointer"`
	JSON    advancedTCPProtectionPrefixNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixNewResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages

type AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages struct {
	Code             int64                                                        `json:"code" api:"required"`
	Message          string                                                       `json:"message" api:"required"`
	DocumentationURL string                                                       `json:"documentation_url"`
	Source           AdvancedTCPProtectionPrefixNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionPrefixNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages) UnmarshalJSON

func (r *AdvancedTCPProtectionPrefixNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionPrefixNewResponseEnvelopeMessagesSource

type AdvancedTCPProtectionPrefixNewResponseEnvelopeMessagesSource struct {
	Pointer string                                                           `json:"pointer"`
	JSON    advancedTCPProtectionPrefixNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionPrefixNewResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess

type AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionPrefixNewResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionPrefixService

type AdvancedTCPProtectionPrefixService struct {
	Options []option.RequestOption
	Items   *AdvancedTCPProtectionPrefixItemService
}

AdvancedTCPProtectionPrefixService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionPrefixService method instead.

func NewAdvancedTCPProtectionPrefixService

func NewAdvancedTCPProtectionPrefixService(opts ...option.RequestOption) (r *AdvancedTCPProtectionPrefixService)

NewAdvancedTCPProtectionPrefixService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionPrefixService) BulkDelete

Delete all prefixes for an account.

func (*AdvancedTCPProtectionPrefixService) BulkNew

Create multiple prefixes for an account.

func (*AdvancedTCPProtectionPrefixService) BulkNewAutoPaging

Create multiple prefixes for an account.

func (*AdvancedTCPProtectionPrefixService) List

List all prefixes for an account.

func (*AdvancedTCPProtectionPrefixService) ListAutoPaging

List all prefixes for an account.

func (*AdvancedTCPProtectionPrefixService) New

Create a prefix for an account.

type AdvancedTCPProtectionService

AdvancedTCPProtectionService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionService method instead.

func NewAdvancedTCPProtectionService

func NewAdvancedTCPProtectionService(opts ...option.RequestOption) (r *AdvancedTCPProtectionService)

NewAdvancedTCPProtectionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type AdvancedTCPProtectionStatusEditParams

type AdvancedTCPProtectionStatusEditParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Enables or disables protection.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
}

func (AdvancedTCPProtectionStatusEditParams) MarshalJSON

func (r AdvancedTCPProtectionStatusEditParams) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionStatusEditResponse

type AdvancedTCPProtectionStatusEditResponse struct {
	Enabled bool                                        `json:"enabled" api:"required"`
	JSON    advancedTCPProtectionStatusEditResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionStatusEditResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionStatusEditResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionStatusEditResponseEnvelope

type AdvancedTCPProtectionStatusEditResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionStatusEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionStatusEditResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionStatusEditResponse                `json:"result"`
	JSON    advancedTCPProtectionStatusEditResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionStatusEditResponseEnvelope) UnmarshalJSON

func (r *AdvancedTCPProtectionStatusEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionStatusEditResponseEnvelopeErrors

type AdvancedTCPProtectionStatusEditResponseEnvelopeErrors struct {
	Code             int64                                                       `json:"code" api:"required"`
	Message          string                                                      `json:"message" api:"required"`
	DocumentationURL string                                                      `json:"documentation_url"`
	Source           AdvancedTCPProtectionStatusEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionStatusEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionStatusEditResponseEnvelopeErrors) UnmarshalJSON

func (r *AdvancedTCPProtectionStatusEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionStatusEditResponseEnvelopeErrorsSource

type AdvancedTCPProtectionStatusEditResponseEnvelopeErrorsSource struct {
	Pointer string                                                          `json:"pointer"`
	JSON    advancedTCPProtectionStatusEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionStatusEditResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionStatusEditResponseEnvelopeMessages

type AdvancedTCPProtectionStatusEditResponseEnvelopeMessages struct {
	Code             int64                                                         `json:"code" api:"required"`
	Message          string                                                        `json:"message" api:"required"`
	DocumentationURL string                                                        `json:"documentation_url"`
	Source           AdvancedTCPProtectionStatusEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionStatusEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionStatusEditResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionStatusEditResponseEnvelopeMessagesSource

type AdvancedTCPProtectionStatusEditResponseEnvelopeMessagesSource struct {
	Pointer string                                                            `json:"pointer"`
	JSON    advancedTCPProtectionStatusEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionStatusEditResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess

type AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionStatusEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionStatusEditResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionStatusGetParams

type AdvancedTCPProtectionStatusGetParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionStatusGetResponse

type AdvancedTCPProtectionStatusGetResponse struct {
	Enabled bool                                       `json:"enabled" api:"required"`
	JSON    advancedTCPProtectionStatusGetResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionStatusGetResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionStatusGetResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionStatusGetResponseEnvelope

type AdvancedTCPProtectionStatusGetResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionStatusGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionStatusGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionStatusGetResponse                `json:"result"`
	JSON    advancedTCPProtectionStatusGetResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionStatusGetResponseEnvelope) UnmarshalJSON

func (r *AdvancedTCPProtectionStatusGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionStatusGetResponseEnvelopeErrors

type AdvancedTCPProtectionStatusGetResponseEnvelopeErrors struct {
	Code             int64                                                      `json:"code" api:"required"`
	Message          string                                                     `json:"message" api:"required"`
	DocumentationURL string                                                     `json:"documentation_url"`
	Source           AdvancedTCPProtectionStatusGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionStatusGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionStatusGetResponseEnvelopeErrors) UnmarshalJSON

func (r *AdvancedTCPProtectionStatusGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionStatusGetResponseEnvelopeErrorsSource

type AdvancedTCPProtectionStatusGetResponseEnvelopeErrorsSource struct {
	Pointer string                                                         `json:"pointer"`
	JSON    advancedTCPProtectionStatusGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionStatusGetResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionStatusGetResponseEnvelopeMessages

type AdvancedTCPProtectionStatusGetResponseEnvelopeMessages struct {
	Code             int64                                                        `json:"code" api:"required"`
	Message          string                                                       `json:"message" api:"required"`
	DocumentationURL string                                                       `json:"documentation_url"`
	Source           AdvancedTCPProtectionStatusGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionStatusGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionStatusGetResponseEnvelopeMessages) UnmarshalJSON

func (r *AdvancedTCPProtectionStatusGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionStatusGetResponseEnvelopeMessagesSource

type AdvancedTCPProtectionStatusGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                           `json:"pointer"`
	JSON    advancedTCPProtectionStatusGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionStatusGetResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess

type AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionStatusGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionStatusGetResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionStatusService

type AdvancedTCPProtectionStatusService struct {
	Options []option.RequestOption
}

AdvancedTCPProtectionStatusService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionStatusService method instead.

func NewAdvancedTCPProtectionStatusService

func NewAdvancedTCPProtectionStatusService(opts ...option.RequestOption) (r *AdvancedTCPProtectionStatusService)

NewAdvancedTCPProtectionStatusService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionStatusService) Edit

Update the protection status of the account.

func (*AdvancedTCPProtectionStatusService) Get

Get the protection status of the account.

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteParams

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse struct {
	Errors   []AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionSynProtectionFilterBulkDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseError

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseError struct {
	Code             int64                                                                  `json:"code" api:"required"`
	Message          string                                                                 `json:"message" api:"required"`
	DocumentationURL string                                                                 `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseError) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSource

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSource struct {
	Pointer string                                                                     `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessage

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessage struct {
	Code             int64                                                                    `json:"code" api:"required"`
	Message          string                                                                   `json:"message" api:"required"`
	DocumentationURL string                                                                   `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessage) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSource

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSource struct {
	Pointer string                                                                       `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess

type AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccessTrue AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionSynProtectionFilterItemDeleteParams

type AdvancedTCPProtectionSynProtectionFilterItemDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse struct {
	Errors   []AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionSynProtectionFilterItemDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseError

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseError struct {
	Code             int64                                                                  `json:"code" api:"required"`
	Message          string                                                                 `json:"message" api:"required"`
	DocumentationURL string                                                                 `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseError) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSource

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSource struct {
	Pointer string                                                                     `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessage

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessage struct {
	Code             int64                                                                    `json:"code" api:"required"`
	Message          string                                                                   `json:"message" api:"required"`
	DocumentationURL string                                                                   `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionFilterItemDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessage) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSource

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSource struct {
	Pointer string                                                                       `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess

type AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccessTrue AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionSynProtectionFilterItemDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionSynProtectionFilterItemEditParams

type AdvancedTCPProtectionSynProtectionFilterItemEditParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The new filter expression. Optional.
	Expression param.Field[string] `json:"expression"`
	// The new mode for the filter. Optional. Must be one of 'enabled', 'disabled',
	// 'monitoring'.
	Mode param.Field[string] `json:"mode"`
}

func (AdvancedTCPProtectionSynProtectionFilterItemEditParams) MarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemEditResponse

type AdvancedTCPProtectionSynProtectionFilterItemEditResponse struct {
	// The unique ID of the expression filter.
	ID string `json:"id" api:"required"`
	// The creation timestamp of the expression filter.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The filter expression.
	Expression string `json:"expression" api:"required"`
	// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the expression filter.
	ModifiedOn time.Time                                                    `json:"modified_on" api:"required" format:"date-time"`
	JSON       advancedTCPProtectionSynProtectionFilterItemEditResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponse) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelope

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionSynProtectionFilterItemEditResponse                `json:"result"`
	JSON    advancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrors

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrors struct {
	Code             int64                                                                        `json:"code" api:"required"`
	Message          string                                                                       `json:"message" api:"required"`
	DocumentationURL string                                                                       `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSource

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSource struct {
	Pointer string                                                                           `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessages

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessages struct {
	Code             int64                                                                          `json:"code" api:"required"`
	Message          string                                                                         `json:"message" api:"required"`
	DocumentationURL string                                                                         `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSource

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSource struct {
	Pointer string                                                                             `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess

type AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionSynProtectionFilterItemEditResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionSynProtectionFilterItemGetParams

type AdvancedTCPProtectionSynProtectionFilterItemGetParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionSynProtectionFilterItemGetResponse

type AdvancedTCPProtectionSynProtectionFilterItemGetResponse struct {
	// The unique ID of the expression filter.
	ID string `json:"id" api:"required"`
	// The creation timestamp of the expression filter.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The filter expression.
	Expression string `json:"expression" api:"required"`
	// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the expression filter.
	ModifiedOn time.Time                                                   `json:"modified_on" api:"required" format:"date-time"`
	JSON       advancedTCPProtectionSynProtectionFilterItemGetResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponse) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelope

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionSynProtectionFilterItemGetResponse                `json:"result"`
	JSON    advancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrors

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrors struct {
	Code             int64                                                                       `json:"code" api:"required"`
	Message          string                                                                      `json:"message" api:"required"`
	DocumentationURL string                                                                      `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSource

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSource struct {
	Pointer string                                                                          `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessages

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessages struct {
	Code             int64                                                                         `json:"code" api:"required"`
	Message          string                                                                        `json:"message" api:"required"`
	DocumentationURL string                                                                        `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSource

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                                            `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess

type AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionSynProtectionFilterItemGetResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionSynProtectionFilterItemService

type AdvancedTCPProtectionSynProtectionFilterItemService struct {
	Options []option.RequestOption
}

AdvancedTCPProtectionSynProtectionFilterItemService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionSynProtectionFilterItemService method instead.

func NewAdvancedTCPProtectionSynProtectionFilterItemService

func NewAdvancedTCPProtectionSynProtectionFilterItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionSynProtectionFilterItemService)

NewAdvancedTCPProtectionSynProtectionFilterItemService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionSynProtectionFilterItemService) Delete

Delete a SYN Protection filter specified by the given UUID.

func (*AdvancedTCPProtectionSynProtectionFilterItemService) Edit

Update a SYN Protection filter specified by the given UUID.

func (*AdvancedTCPProtectionSynProtectionFilterItemService) Get

Get a SYN Protection filter specified by the given UUID.

type AdvancedTCPProtectionSynProtectionFilterListParams

type AdvancedTCPProtectionSynProtectionFilterListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
	Direction param.Field[string] `query:"direction"`
	// The mode of the filters to get. Optional. Valid values: 'enabled', 'disabled',
	// 'monitoring'.
	Mode param.Field[string] `query:"mode"`
	// The field to order by. Defaults to 'prefix'.
	Order param.Field[string] `query:"order"`
	// The page number for pagination. Defaults to 1.
	Page param.Field[int64] `query:"page"`
	// The number of items per page. Must be between 10 and 1000. Defaults to 25.
	PerPage param.Field[int64] `query:"per_page"`
}

func (AdvancedTCPProtectionSynProtectionFilterListParams) URLQuery

URLQuery serializes AdvancedTCPProtectionSynProtectionFilterListParams's query parameters as `url.Values`.

type AdvancedTCPProtectionSynProtectionFilterListResponse

type AdvancedTCPProtectionSynProtectionFilterListResponse struct {
	// The unique ID of the expression filter.
	ID string `json:"id" api:"required"`
	// The creation timestamp of the expression filter.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The filter expression.
	Expression string `json:"expression" api:"required"`
	// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the expression filter.
	ModifiedOn time.Time                                                `json:"modified_on" api:"required" format:"date-time"`
	JSON       advancedTCPProtectionSynProtectionFilterListResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterListResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionSynProtectionFilterListResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionSynProtectionFilterNewParams

type AdvancedTCPProtectionSynProtectionFilterNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The filter expression.
	Expression param.Field[string] `json:"expression" api:"required"`
	// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode param.Field[string] `json:"mode" api:"required"`
}

func (AdvancedTCPProtectionSynProtectionFilterNewParams) MarshalJSON

func (r AdvancedTCPProtectionSynProtectionFilterNewParams) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionSynProtectionFilterNewResponse

type AdvancedTCPProtectionSynProtectionFilterNewResponse struct {
	// The unique ID of the expression filter.
	ID string `json:"id" api:"required"`
	// The creation timestamp of the expression filter.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The filter expression.
	Expression string `json:"expression" api:"required"`
	// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the expression filter.
	ModifiedOn time.Time                                               `json:"modified_on" api:"required" format:"date-time"`
	JSON       advancedTCPProtectionSynProtectionFilterNewResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterNewResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionSynProtectionFilterNewResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelope

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionSynProtectionFilterNewResponse                `json:"result"`
	JSON    advancedTCPProtectionSynProtectionFilterNewResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrors

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrors struct {
	Code             int64                                                                   `json:"code" api:"required"`
	Message          string                                                                  `json:"message" api:"required"`
	DocumentationURL string                                                                  `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSource

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSource struct {
	Pointer string                                                                      `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessages

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessages struct {
	Code             int64                                                                     `json:"code" api:"required"`
	Message          string                                                                    `json:"message" api:"required"`
	DocumentationURL string                                                                    `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSource

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSource struct {
	Pointer string                                                                        `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess

type AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionSynProtectionFilterNewResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionSynProtectionFilterService

type AdvancedTCPProtectionSynProtectionFilterService struct {
	Options []option.RequestOption
	Items   *AdvancedTCPProtectionSynProtectionFilterItemService
}

AdvancedTCPProtectionSynProtectionFilterService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionSynProtectionFilterService method instead.

func NewAdvancedTCPProtectionSynProtectionFilterService

func NewAdvancedTCPProtectionSynProtectionFilterService(opts ...option.RequestOption) (r *AdvancedTCPProtectionSynProtectionFilterService)

NewAdvancedTCPProtectionSynProtectionFilterService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionSynProtectionFilterService) BulkDelete

Delete all SYN Protection filters for an account.

func (*AdvancedTCPProtectionSynProtectionFilterService) List

List all SYN Protection filters for an account.

func (*AdvancedTCPProtectionSynProtectionFilterService) ListAutoPaging

List all SYN Protection filters for an account.

func (*AdvancedTCPProtectionSynProtectionFilterService) New

Create a SYN Protection filter for an account.

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteParams

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse struct {
	Errors   []AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionSynProtectionRuleBulkDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseError

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseError struct {
	Code             int64                                                                `json:"code" api:"required"`
	Message          string                                                               `json:"message" api:"required"`
	DocumentationURL string                                                               `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseError) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSource

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSource struct {
	Pointer string                                                                   `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessage

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessage struct {
	Code             int64                                                                  `json:"code" api:"required"`
	Message          string                                                                 `json:"message" api:"required"`
	DocumentationURL string                                                                 `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessage) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSource

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSource struct {
	Pointer string                                                                     `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess

type AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccessTrue AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionSynProtectionRuleItemDeleteParams

type AdvancedTCPProtectionSynProtectionRuleItemDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse struct {
	Errors   []AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionSynProtectionRuleItemDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseError

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseError struct {
	Code             int64                                                                `json:"code" api:"required"`
	Message          string                                                               `json:"message" api:"required"`
	DocumentationURL string                                                               `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseError) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSource

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSource struct {
	Pointer string                                                                   `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessage

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessage struct {
	Code             int64                                                                  `json:"code" api:"required"`
	Message          string                                                                 `json:"message" api:"required"`
	DocumentationURL string                                                                 `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionRuleItemDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessage) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSource

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSource struct {
	Pointer string                                                                     `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess

type AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccessTrue AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionSynProtectionRuleItemDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionSynProtectionRuleItemEditParams

type AdvancedTCPProtectionSynProtectionRuleItemEditParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The new burst sensitivity. Optional. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity param.Field[string] `json:"burst_sensitivity"`
	// The new mitigation type. Optional. Must be one of 'challenge' or 'retransmit'.
	MitigationType param.Field[string] `json:"mitigation_type"`
	// The new mode for SYN Protection. Optional. Must be one of 'enabled', 'disabled',
	// 'monitoring'.
	Mode param.Field[string] `json:"mode"`
	// The new rate sensitivity. Optional. Must be one of 'low', 'medium', 'high'.
	RateSensitivity param.Field[string] `json:"rate_sensitivity"`
}

func (AdvancedTCPProtectionSynProtectionRuleItemEditParams) MarshalJSON

func (r AdvancedTCPProtectionSynProtectionRuleItemEditParams) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionSynProtectionRuleItemEditResponse

type AdvancedTCPProtectionSynProtectionRuleItemEditResponse struct {
	// The unique ID of the SYN Protection rule.
	ID string `json:"id" api:"required"`
	// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity string `json:"burst_sensitivity" api:"required"`
	// The creation timestamp of the SYN Protection rule.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The type of mitigation for SYN Protection. Must be one of 'challenge' or
	// 'retransmit'.
	MitigationType string `json:"mitigation_type" api:"required"`
	// The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the SYN Protection rule.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The name of the SYN Protection rule. Value is relative to the 'scope' setting.
	// For 'global' scope, name should be 'global'. For either the 'region' or
	// 'datacenter' scope, name should be the actual name of the region or datacenter,
	// e.g., 'wnam' or 'lax'.
	Name string `json:"name" api:"required"`
	// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
	RateSensitivity string `json:"rate_sensitivity" api:"required"`
	// The scope for the SYN Protection rule. Must be one of 'global', 'region', or
	// 'datacenter'.
	Scope string                                                     `json:"scope" api:"required"`
	JSON  advancedTCPProtectionSynProtectionRuleItemEditResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionSynProtectionRuleItemEditResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelope

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionSynProtectionRuleItemEditResponse                `json:"result"`
	JSON    advancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrors

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrors struct {
	Code             int64                                                                      `json:"code" api:"required"`
	Message          string                                                                     `json:"message" api:"required"`
	DocumentationURL string                                                                     `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSource

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSource struct {
	Pointer string                                                                         `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessages

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessages struct {
	Code             int64                                                                        `json:"code" api:"required"`
	Message          string                                                                       `json:"message" api:"required"`
	DocumentationURL string                                                                       `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSource

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSource struct {
	Pointer string                                                                           `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess

type AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionSynProtectionRuleItemEditResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionSynProtectionRuleItemGetParams

type AdvancedTCPProtectionSynProtectionRuleItemGetParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionSynProtectionRuleItemGetResponse

type AdvancedTCPProtectionSynProtectionRuleItemGetResponse struct {
	// The unique ID of the SYN Protection rule.
	ID string `json:"id" api:"required"`
	// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity string `json:"burst_sensitivity" api:"required"`
	// The creation timestamp of the SYN Protection rule.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The type of mitigation for SYN Protection. Must be one of 'challenge' or
	// 'retransmit'.
	MitigationType string `json:"mitigation_type" api:"required"`
	// The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the SYN Protection rule.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The name of the SYN Protection rule. Value is relative to the 'scope' setting.
	// For 'global' scope, name should be 'global'. For either the 'region' or
	// 'datacenter' scope, name should be the actual name of the region or datacenter,
	// e.g., 'wnam' or 'lax'.
	Name string `json:"name" api:"required"`
	// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
	RateSensitivity string `json:"rate_sensitivity" api:"required"`
	// The scope for the SYN Protection rule. Must be one of 'global', 'region', or
	// 'datacenter'.
	Scope string                                                    `json:"scope" api:"required"`
	JSON  advancedTCPProtectionSynProtectionRuleItemGetResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionSynProtectionRuleItemGetResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelope

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionSynProtectionRuleItemGetResponse                `json:"result"`
	JSON    advancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrors

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrors struct {
	Code             int64                                                                     `json:"code" api:"required"`
	Message          string                                                                    `json:"message" api:"required"`
	DocumentationURL string                                                                    `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSource

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSource struct {
	Pointer string                                                                        `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessages

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessages struct {
	Code             int64                                                                       `json:"code" api:"required"`
	Message          string                                                                      `json:"message" api:"required"`
	DocumentationURL string                                                                      `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSource

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                                          `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess

type AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionSynProtectionRuleItemGetResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionSynProtectionRuleItemService

type AdvancedTCPProtectionSynProtectionRuleItemService struct {
	Options []option.RequestOption
}

AdvancedTCPProtectionSynProtectionRuleItemService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionSynProtectionRuleItemService method instead.

func NewAdvancedTCPProtectionSynProtectionRuleItemService

func NewAdvancedTCPProtectionSynProtectionRuleItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionSynProtectionRuleItemService)

NewAdvancedTCPProtectionSynProtectionRuleItemService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionSynProtectionRuleItemService) Delete

Delete a SYN Protection rule specified by the given UUID.

func (*AdvancedTCPProtectionSynProtectionRuleItemService) Edit

Update a SYN Protection rule specified by the given UUID.

func (*AdvancedTCPProtectionSynProtectionRuleItemService) Get

Get a SYN Protection rule specified by the given UUID.

type AdvancedTCPProtectionSynProtectionRuleListParams

type AdvancedTCPProtectionSynProtectionRuleListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
	Direction param.Field[string] `query:"direction"`
	// The field to order by. Defaults to 'prefix'.
	Order param.Field[string] `query:"order"`
	// The page number for pagination. Defaults to 1.
	Page param.Field[int64] `query:"page"`
	// The number of items per page. Must be between 10 and 1000. Defaults to 25.
	PerPage param.Field[int64] `query:"per_page"`
}

func (AdvancedTCPProtectionSynProtectionRuleListParams) URLQuery

URLQuery serializes AdvancedTCPProtectionSynProtectionRuleListParams's query parameters as `url.Values`.

type AdvancedTCPProtectionSynProtectionRuleListResponse

type AdvancedTCPProtectionSynProtectionRuleListResponse struct {
	// The unique ID of the SYN Protection rule.
	ID string `json:"id" api:"required"`
	// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity string `json:"burst_sensitivity" api:"required"`
	// The creation timestamp of the SYN Protection rule.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The type of mitigation for SYN Protection. Must be one of 'challenge' or
	// 'retransmit'.
	MitigationType string `json:"mitigation_type" api:"required"`
	// The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the SYN Protection rule.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The name of the SYN Protection rule. Value is relative to the 'scope' setting.
	// For 'global' scope, name should be 'global'. For either the 'region' or
	// 'datacenter' scope, name should be the actual name of the region or datacenter,
	// e.g., 'wnam' or 'lax'.
	Name string `json:"name" api:"required"`
	// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
	RateSensitivity string `json:"rate_sensitivity" api:"required"`
	// The scope for the SYN Protection rule. Must be one of 'global', 'region', or
	// 'datacenter'.
	Scope string                                                 `json:"scope" api:"required"`
	JSON  advancedTCPProtectionSynProtectionRuleListResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleListResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionSynProtectionRuleListResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionSynProtectionRuleNewParams

type AdvancedTCPProtectionSynProtectionRuleNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity param.Field[string] `json:"burst_sensitivity" api:"required"`
	// The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode param.Field[string] `json:"mode" api:"required"`
	// The name of the SYN Protection rule. Value is relative to the 'scope' setting.
	// For 'global' scope, name should be 'global'. For either the 'region' or
	// 'datacenter' scope, name should be the actual name of the region or datacenter,
	// e.g., 'wnam' or 'lax'.
	Name param.Field[string] `json:"name" api:"required"`
	// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
	RateSensitivity param.Field[string] `json:"rate_sensitivity" api:"required"`
	// The scope for the SYN Protection rule. Must be one of 'global', 'region', or
	// 'datacenter'.
	Scope param.Field[string] `json:"scope" api:"required"`
	// The type of mitigation. Must be one of 'challenge' or 'retransmit'. Optional.
	// Defaults to 'challenge'.
	MitigationType param.Field[string] `json:"mitigation_type"`
}

func (AdvancedTCPProtectionSynProtectionRuleNewParams) MarshalJSON

func (r AdvancedTCPProtectionSynProtectionRuleNewParams) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionSynProtectionRuleNewResponse

type AdvancedTCPProtectionSynProtectionRuleNewResponse struct {
	// The unique ID of the SYN Protection rule.
	ID string `json:"id" api:"required"`
	// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity string `json:"burst_sensitivity" api:"required"`
	// The creation timestamp of the SYN Protection rule.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The type of mitigation for SYN Protection. Must be one of 'challenge' or
	// 'retransmit'.
	MitigationType string `json:"mitigation_type" api:"required"`
	// The mode for SYN Protection. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the SYN Protection rule.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The name of the SYN Protection rule. Value is relative to the 'scope' setting.
	// For 'global' scope, name should be 'global'. For either the 'region' or
	// 'datacenter' scope, name should be the actual name of the region or datacenter,
	// e.g., 'wnam' or 'lax'.
	Name string `json:"name" api:"required"`
	// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
	RateSensitivity string `json:"rate_sensitivity" api:"required"`
	// The scope for the SYN Protection rule. Must be one of 'global', 'region', or
	// 'datacenter'.
	Scope string                                                `json:"scope" api:"required"`
	JSON  advancedTCPProtectionSynProtectionRuleNewResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleNewResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionSynProtectionRuleNewResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelope

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionSynProtectionRuleNewResponse                `json:"result"`
	JSON    advancedTCPProtectionSynProtectionRuleNewResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrors

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrors struct {
	Code             int64                                                                 `json:"code" api:"required"`
	Message          string                                                                `json:"message" api:"required"`
	DocumentationURL string                                                                `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSource

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSource struct {
	Pointer string                                                                    `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessages

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessages struct {
	Code             int64                                                                   `json:"code" api:"required"`
	Message          string                                                                  `json:"message" api:"required"`
	DocumentationURL string                                                                  `json:"documentation_url"`
	Source           AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSource

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSource struct {
	Pointer string                                                                      `json:"pointer"`
	JSON    advancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess

type AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionSynProtectionRuleNewResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionSynProtectionRuleService

type AdvancedTCPProtectionSynProtectionRuleService struct {
	Options []option.RequestOption
	Items   *AdvancedTCPProtectionSynProtectionRuleItemService
}

AdvancedTCPProtectionSynProtectionRuleService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionSynProtectionRuleService method instead.

func NewAdvancedTCPProtectionSynProtectionRuleService

func NewAdvancedTCPProtectionSynProtectionRuleService(opts ...option.RequestOption) (r *AdvancedTCPProtectionSynProtectionRuleService)

NewAdvancedTCPProtectionSynProtectionRuleService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionSynProtectionRuleService) BulkDelete

Delete all SYN Protection rules for an account.

func (*AdvancedTCPProtectionSynProtectionRuleService) List

List all SYN Protection rules for an account.

func (*AdvancedTCPProtectionSynProtectionRuleService) ListAutoPaging

List all SYN Protection rules for an account.

func (*AdvancedTCPProtectionSynProtectionRuleService) New

Create a SYN Protection rule for an account.

type AdvancedTCPProtectionSynProtectionService

type AdvancedTCPProtectionSynProtectionService struct {
	Options []option.RequestOption
	Filters *AdvancedTCPProtectionSynProtectionFilterService
	Rules   *AdvancedTCPProtectionSynProtectionRuleService
}

AdvancedTCPProtectionSynProtectionService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionSynProtectionService method instead.

func NewAdvancedTCPProtectionSynProtectionService

func NewAdvancedTCPProtectionSynProtectionService(opts ...option.RequestOption) (r *AdvancedTCPProtectionSynProtectionService)

NewAdvancedTCPProtectionSynProtectionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteParams

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse struct {
	Errors   []AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseError

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseError struct {
	Code             int64                                                                      `json:"code" api:"required"`
	Message          string                                                                     `json:"message" api:"required"`
	DocumentationURL string                                                                     `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseError) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSource

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSource struct {
	Pointer string                                                                         `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessage

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessage struct {
	Code             int64                                                                        `json:"code" api:"required"`
	Message          string                                                                       `json:"message" api:"required"`
	DocumentationURL string                                                                       `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessage) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSource

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSource struct {
	Pointer string                                                                           `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess

type AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccessTrue AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteParams

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse struct {
	Errors   []AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseError

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseError struct {
	Code             int64                                                                      `json:"code" api:"required"`
	Message          string                                                                     `json:"message" api:"required"`
	DocumentationURL string                                                                     `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseError) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSource

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSource struct {
	Pointer string                                                                         `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessage

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessage struct {
	Code             int64                                                                        `json:"code" api:"required"`
	Message          string                                                                       `json:"message" api:"required"`
	DocumentationURL string                                                                       `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessage) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSource

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSource struct {
	Pointer string                                                                           `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess

type AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccessTrue AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditParams

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The new filter expression. Optional.
	Expression param.Field[string] `json:"expression"`
	// The new mode for the filter. Optional. Must be one of 'enabled', 'disabled',
	// 'monitoring'.
	Mode param.Field[string] `json:"mode"`
}

func (AdvancedTCPProtectionTCPFlowProtectionFilterItemEditParams) MarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse struct {
	// The unique ID of the expression filter.
	ID string `json:"id" api:"required"`
	// The creation timestamp of the expression filter.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The filter expression.
	Expression string `json:"expression" api:"required"`
	// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the expression filter.
	ModifiedOn time.Time                                                        `json:"modified_on" api:"required" format:"date-time"`
	JSON       advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelope

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse                `json:"result"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrors

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrors struct {
	Code             int64                                                                            `json:"code" api:"required"`
	Message          string                                                                           `json:"message" api:"required"`
	DocumentationURL string                                                                           `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSource

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSource struct {
	Pointer string                                                                               `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessages

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessages struct {
	Code             int64                                                                              `json:"code" api:"required"`
	Message          string                                                                             `json:"message" api:"required"`
	DocumentationURL string                                                                             `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSource

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSource struct {
	Pointer string                                                                                 `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess

type AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetParams

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse struct {
	// The unique ID of the expression filter.
	ID string `json:"id" api:"required"`
	// The creation timestamp of the expression filter.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The filter expression.
	Expression string `json:"expression" api:"required"`
	// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the expression filter.
	ModifiedOn time.Time                                                       `json:"modified_on" api:"required" format:"date-time"`
	JSON       advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelope

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse                `json:"result"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrors

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrors struct {
	Code             int64                                                                           `json:"code" api:"required"`
	Message          string                                                                          `json:"message" api:"required"`
	DocumentationURL string                                                                          `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSource

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSource struct {
	Pointer string                                                                              `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessages

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessages struct {
	Code             int64                                                                             `json:"code" api:"required"`
	Message          string                                                                            `json:"message" api:"required"`
	DocumentationURL string                                                                            `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSource

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                                                `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess

type AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionTCPFlowProtectionFilterItemService

type AdvancedTCPProtectionTCPFlowProtectionFilterItemService struct {
	Options []option.RequestOption
}

AdvancedTCPProtectionTCPFlowProtectionFilterItemService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionTCPFlowProtectionFilterItemService method instead.

func NewAdvancedTCPProtectionTCPFlowProtectionFilterItemService

func NewAdvancedTCPProtectionTCPFlowProtectionFilterItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionTCPFlowProtectionFilterItemService)

NewAdvancedTCPProtectionTCPFlowProtectionFilterItemService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Delete

Delete a TCP Flow Protection filter specified by the given UUID.

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Edit

Update a TCP Flow Protection filter specified by the given UUID.

func (*AdvancedTCPProtectionTCPFlowProtectionFilterItemService) Get

Get a TCP Flow Protection filter specified by the given UUID.

type AdvancedTCPProtectionTCPFlowProtectionFilterListParams

type AdvancedTCPProtectionTCPFlowProtectionFilterListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
	Direction param.Field[string] `query:"direction"`
	// The mode of the filters to get. Optional. Valid values: 'enabled', 'disabled',
	// 'monitoring'.
	Mode param.Field[string] `query:"mode"`
	// The field to order by. Defaults to 'prefix'.
	Order param.Field[string] `query:"order"`
	// The page number for pagination. Defaults to 1.
	Page param.Field[int64] `query:"page"`
	// The number of items per page. Must be between 10 and 1000. Defaults to 25.
	PerPage param.Field[int64] `query:"per_page"`
}

func (AdvancedTCPProtectionTCPFlowProtectionFilterListParams) URLQuery

URLQuery serializes AdvancedTCPProtectionTCPFlowProtectionFilterListParams's query parameters as `url.Values`.

type AdvancedTCPProtectionTCPFlowProtectionFilterListResponse

type AdvancedTCPProtectionTCPFlowProtectionFilterListResponse struct {
	// The unique ID of the expression filter.
	ID string `json:"id" api:"required"`
	// The creation timestamp of the expression filter.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The filter expression.
	Expression string `json:"expression" api:"required"`
	// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the expression filter.
	ModifiedOn time.Time                                                    `json:"modified_on" api:"required" format:"date-time"`
	JSON       advancedTCPProtectionTCPFlowProtectionFilterListResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterListResponse) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterNewParams

type AdvancedTCPProtectionTCPFlowProtectionFilterNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The filter expression.
	Expression param.Field[string] `json:"expression" api:"required"`
	// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode param.Field[string] `json:"mode" api:"required"`
}

func (AdvancedTCPProtectionTCPFlowProtectionFilterNewParams) MarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse struct {
	// The unique ID of the expression filter.
	ID string `json:"id" api:"required"`
	// The creation timestamp of the expression filter.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The filter expression.
	Expression string `json:"expression" api:"required"`
	// The filter's mode. Must be one of 'enabled', 'disabled', 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the expression filter.
	ModifiedOn time.Time                                                   `json:"modified_on" api:"required" format:"date-time"`
	JSON       advancedTCPProtectionTCPFlowProtectionFilterNewResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelope

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse                `json:"result"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrors

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrors struct {
	Code             int64                                                                       `json:"code" api:"required"`
	Message          string                                                                      `json:"message" api:"required"`
	DocumentationURL string                                                                      `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSource

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSource struct {
	Pointer string                                                                          `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessages

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessages struct {
	Code             int64                                                                         `json:"code" api:"required"`
	Message          string                                                                        `json:"message" api:"required"`
	DocumentationURL string                                                                        `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSource

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSource struct {
	Pointer string                                                                            `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess

type AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionTCPFlowProtectionFilterNewResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionTCPFlowProtectionFilterService

type AdvancedTCPProtectionTCPFlowProtectionFilterService struct {
	Options []option.RequestOption
	Items   *AdvancedTCPProtectionTCPFlowProtectionFilterItemService
}

AdvancedTCPProtectionTCPFlowProtectionFilterService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionTCPFlowProtectionFilterService method instead.

func NewAdvancedTCPProtectionTCPFlowProtectionFilterService

func NewAdvancedTCPProtectionTCPFlowProtectionFilterService(opts ...option.RequestOption) (r *AdvancedTCPProtectionTCPFlowProtectionFilterService)

NewAdvancedTCPProtectionTCPFlowProtectionFilterService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionTCPFlowProtectionFilterService) BulkDelete

Delete all TCP Flow Protection filters for an account.

func (*AdvancedTCPProtectionTCPFlowProtectionFilterService) List

List all TCP Flow Protection filters for an account.

func (*AdvancedTCPProtectionTCPFlowProtectionFilterService) ListAutoPaging

List all TCP Flow Protection filters for an account.

func (*AdvancedTCPProtectionTCPFlowProtectionFilterService) New

Create a TCP Flow Protection filter for an account.

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteParams

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse struct {
	Errors   []AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseError

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseError struct {
	Code             int64                                                                    `json:"code" api:"required"`
	Message          string                                                                   `json:"message" api:"required"`
	DocumentationURL string                                                                   `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseError) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSource

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSource struct {
	Pointer string                                                                       `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessage

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessage struct {
	Code             int64                                                                      `json:"code" api:"required"`
	Message          string                                                                     `json:"message" api:"required"`
	DocumentationURL string                                                                     `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessage) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSource

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSource struct {
	Pointer string                                                                         `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess

type AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccessTrue AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteParams

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse struct {
	Errors   []AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseError   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess `json:"success" api:"required"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseError

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseError struct {
	Code             int64                                                                    `json:"code" api:"required"`
	Message          string                                                                   `json:"message" api:"required"`
	DocumentationURL string                                                                   `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseError) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSource

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSource struct {
	Pointer string                                                                       `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessage

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessage struct {
	Code             int64                                                                      `json:"code" api:"required"`
	Message          string                                                                     `json:"message" api:"required"`
	DocumentationURL string                                                                     `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessageJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessage) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSource

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSource struct {
	Pointer string                                                                         `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess

type AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccessTrue AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess = true
)

func (AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponseSuccess) IsKnown

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditParams

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The new burst sensitivity. Optional. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity param.Field[string] `json:"burst_sensitivity"`
	// The new mode for TCP Flow Protection. Optional. Must be one of 'enabled',
	// 'disabled', 'monitoring'.
	Mode param.Field[string] `json:"mode"`
	// The new rate sensitivity. Optional. Must be one of 'low', 'medium', 'high'.
	RateSensitivity param.Field[string] `json:"rate_sensitivity"`
}

func (AdvancedTCPProtectionTCPFlowProtectionRuleItemEditParams) MarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse struct {
	// The unique ID of the TCP Flow Protection rule.
	ID string `json:"id" api:"required"`
	// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity string `json:"burst_sensitivity" api:"required"`
	// The creation timestamp of the TCP Flow Protection rule.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The mode for TCP Flow Protection. Must be one of 'enabled', 'disabled',
	// 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the TCP Flow Protection rule.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The name of the TCP Flow Protection rule. Value is relative to the 'scope'
	// setting. For 'global' scope, name should be 'global'. For either the 'region' or
	// 'datacenter' scope, name should be the actual name of the region or datacenter,
	// e.g., 'wnam' or 'lax'.
	Name string `json:"name" api:"required"`
	// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
	RateSensitivity string `json:"rate_sensitivity" api:"required"`
	// The scope for the TCP Flow Protection rule. Must be one of 'global', 'region',
	// or 'datacenter'.
	Scope string                                                         `json:"scope" api:"required"`
	JSON  advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelope

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse                `json:"result"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrors

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrors struct {
	Code             int64                                                                          `json:"code" api:"required"`
	Message          string                                                                         `json:"message" api:"required"`
	DocumentationURL string                                                                         `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSource

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSource struct {
	Pointer string                                                                             `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessages

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessages struct {
	Code             int64                                                                            `json:"code" api:"required"`
	Message          string                                                                           `json:"message" api:"required"`
	DocumentationURL string                                                                           `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSource

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSource struct {
	Pointer string                                                                               `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess

type AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetParams

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse struct {
	// The unique ID of the TCP Flow Protection rule.
	ID string `json:"id" api:"required"`
	// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity string `json:"burst_sensitivity" api:"required"`
	// The creation timestamp of the TCP Flow Protection rule.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The mode for TCP Flow Protection. Must be one of 'enabled', 'disabled',
	// 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the TCP Flow Protection rule.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The name of the TCP Flow Protection rule. Value is relative to the 'scope'
	// setting. For 'global' scope, name should be 'global'. For either the 'region' or
	// 'datacenter' scope, name should be the actual name of the region or datacenter,
	// e.g., 'wnam' or 'lax'.
	Name string `json:"name" api:"required"`
	// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
	RateSensitivity string `json:"rate_sensitivity" api:"required"`
	// The scope for the TCP Flow Protection rule. Must be one of 'global', 'region',
	// or 'datacenter'.
	Scope string                                                        `json:"scope" api:"required"`
	JSON  advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelope

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse                `json:"result"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrors

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrors struct {
	Code             int64                                                                         `json:"code" api:"required"`
	Message          string                                                                        `json:"message" api:"required"`
	DocumentationURL string                                                                        `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSource

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSource struct {
	Pointer string                                                                            `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessages

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessages struct {
	Code             int64                                                                           `json:"code" api:"required"`
	Message          string                                                                          `json:"message" api:"required"`
	DocumentationURL string                                                                          `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSource

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                                              `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess

type AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionTCPFlowProtectionRuleItemService

type AdvancedTCPProtectionTCPFlowProtectionRuleItemService struct {
	Options []option.RequestOption
}

AdvancedTCPProtectionTCPFlowProtectionRuleItemService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionTCPFlowProtectionRuleItemService method instead.

func NewAdvancedTCPProtectionTCPFlowProtectionRuleItemService

func NewAdvancedTCPProtectionTCPFlowProtectionRuleItemService(opts ...option.RequestOption) (r *AdvancedTCPProtectionTCPFlowProtectionRuleItemService)

NewAdvancedTCPProtectionTCPFlowProtectionRuleItemService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Delete

Delete a TCP Flow Protection rule specified by the given UUID.

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Edit

Update a TCP Flow Protection rule specified by the given UUID.

func (*AdvancedTCPProtectionTCPFlowProtectionRuleItemService) Get

Get a TCP Flow Protection rule specified by the given UUID.

type AdvancedTCPProtectionTCPFlowProtectionRuleListParams

type AdvancedTCPProtectionTCPFlowProtectionRuleListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The direction of ordering (ASC or DESC). Defaults to 'ASC'.
	Direction param.Field[string] `query:"direction"`
	// The field to order by. Defaults to 'prefix'.
	Order param.Field[string] `query:"order"`
	// The page number for pagination. Defaults to 1.
	Page param.Field[int64] `query:"page"`
	// The number of items per page. Must be between 10 and 1000. Defaults to 25.
	PerPage param.Field[int64] `query:"per_page"`
}

func (AdvancedTCPProtectionTCPFlowProtectionRuleListParams) URLQuery

URLQuery serializes AdvancedTCPProtectionTCPFlowProtectionRuleListParams's query parameters as `url.Values`.

type AdvancedTCPProtectionTCPFlowProtectionRuleListResponse

type AdvancedTCPProtectionTCPFlowProtectionRuleListResponse struct {
	// The unique ID of the TCP Flow Protection rule.
	ID string `json:"id" api:"required"`
	// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity string `json:"burst_sensitivity" api:"required"`
	// The creation timestamp of the TCP Flow Protection rule.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The mode for TCP Flow Protection. Must be one of 'enabled', 'disabled',
	// 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the TCP Flow Protection rule.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The name of the TCP Flow Protection rule. Value is relative to the 'scope'
	// setting. For 'global' scope, name should be 'global'. For either the 'region' or
	// 'datacenter' scope, name should be the actual name of the region or datacenter,
	// e.g., 'wnam' or 'lax'.
	Name string `json:"name" api:"required"`
	// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
	RateSensitivity string `json:"rate_sensitivity" api:"required"`
	// The scope for the TCP Flow Protection rule. Must be one of 'global', 'region',
	// or 'datacenter'.
	Scope string                                                     `json:"scope" api:"required"`
	JSON  advancedTCPProtectionTCPFlowProtectionRuleListResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleListResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionTCPFlowProtectionRuleListResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionTCPFlowProtectionRuleNewParams

type AdvancedTCPProtectionTCPFlowProtectionRuleNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity param.Field[string] `json:"burst_sensitivity" api:"required"`
	// The mode for the TCP Flow Protection. Must be one of 'enabled', 'disabled',
	// 'monitoring'.
	Mode param.Field[string] `json:"mode" api:"required"`
	// The name of the TCP Flow Protection rule. Value is relative to the 'scope'
	// setting. For 'global' scope, name should be 'global'. For either the 'region' or
	// 'datacenter' scope, name should be the actual name of the region or datacenter,
	// e.g., 'wnam' or 'lax'.
	Name param.Field[string] `json:"name" api:"required"`
	// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
	RateSensitivity param.Field[string] `json:"rate_sensitivity" api:"required"`
	// The scope for the TCP Flow Protection rule.
	Scope param.Field[string] `json:"scope" api:"required"`
}

func (AdvancedTCPProtectionTCPFlowProtectionRuleNewParams) MarshalJSON

func (r AdvancedTCPProtectionTCPFlowProtectionRuleNewParams) MarshalJSON() (data []byte, err error)

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse struct {
	// The unique ID of the TCP Flow Protection rule.
	ID string `json:"id" api:"required"`
	// The burst sensitivity. Must be one of 'low', 'medium', 'high'.
	BurstSensitivity string `json:"burst_sensitivity" api:"required"`
	// The creation timestamp of the TCP Flow Protection rule.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The mode for TCP Flow Protection. Must be one of 'enabled', 'disabled',
	// 'monitoring'.
	Mode string `json:"mode" api:"required"`
	// The last modification timestamp of the TCP Flow Protection rule.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The name of the TCP Flow Protection rule. Value is relative to the 'scope'
	// setting. For 'global' scope, name should be 'global'. For either the 'region' or
	// 'datacenter' scope, name should be the actual name of the region or datacenter,
	// e.g., 'wnam' or 'lax'.
	Name string `json:"name" api:"required"`
	// The rate sensitivity. Must be one of 'low', 'medium', 'high'.
	RateSensitivity string `json:"rate_sensitivity" api:"required"`
	// The scope for the TCP Flow Protection rule. Must be one of 'global', 'region',
	// or 'datacenter'.
	Scope string                                                    `json:"scope" api:"required"`
	JSON  advancedTCPProtectionTCPFlowProtectionRuleNewResponseJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse) UnmarshalJSON

func (r *AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse) UnmarshalJSON(data []byte) (err error)

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelope

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelope struct {
	Errors   []AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse                `json:"result"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeJSON    `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelope) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrors

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrors struct {
	Code             int64                                                                     `json:"code" api:"required"`
	Message          string                                                                    `json:"message" api:"required"`
	DocumentationURL string                                                                    `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrors) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSource

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSource struct {
	Pointer string                                                                        `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeErrorsSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessages

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessages struct {
	Code             int64                                                                       `json:"code" api:"required"`
	Message          string                                                                      `json:"message" api:"required"`
	DocumentationURL string                                                                      `json:"documentation_url"`
	Source           AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             advancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessages) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSource

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSource struct {
	Pointer string                                                                          `json:"pointer"`
	JSON    advancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeMessagesSource) UnmarshalJSON

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess

type AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccessTrue AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess = true
)

func (AdvancedTCPProtectionTCPFlowProtectionRuleNewResponseEnvelopeSuccess) IsKnown

type AdvancedTCPProtectionTCPFlowProtectionRuleService

type AdvancedTCPProtectionTCPFlowProtectionRuleService struct {
	Options []option.RequestOption
	Items   *AdvancedTCPProtectionTCPFlowProtectionRuleItemService
}

AdvancedTCPProtectionTCPFlowProtectionRuleService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionTCPFlowProtectionRuleService method instead.

func NewAdvancedTCPProtectionTCPFlowProtectionRuleService

func NewAdvancedTCPProtectionTCPFlowProtectionRuleService(opts ...option.RequestOption) (r *AdvancedTCPProtectionTCPFlowProtectionRuleService)

NewAdvancedTCPProtectionTCPFlowProtectionRuleService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AdvancedTCPProtectionTCPFlowProtectionRuleService) BulkDelete

Delete all TCP Flow Protection rules for an account.

func (*AdvancedTCPProtectionTCPFlowProtectionRuleService) List

List all TCP Flow Protection rules for an account.

func (*AdvancedTCPProtectionTCPFlowProtectionRuleService) ListAutoPaging

List all TCP Flow Protection rules for an account.

func (*AdvancedTCPProtectionTCPFlowProtectionRuleService) New

Create a TCP Flow Protection rule for an account.

type AdvancedTCPProtectionTCPFlowProtectionService

type AdvancedTCPProtectionTCPFlowProtectionService struct {
	Options []option.RequestOption
	Filters *AdvancedTCPProtectionTCPFlowProtectionFilterService
	Rules   *AdvancedTCPProtectionTCPFlowProtectionRuleService
}

AdvancedTCPProtectionTCPFlowProtectionService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAdvancedTCPProtectionTCPFlowProtectionService method instead.

func NewAdvancedTCPProtectionTCPFlowProtectionService

func NewAdvancedTCPProtectionTCPFlowProtectionService(opts ...option.RequestOption) (r *AdvancedTCPProtectionTCPFlowProtectionService)

NewAdvancedTCPProtectionTCPFlowProtectionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type AuditLog

type AuditLog = shared.AuditLog

This is an alias to an internal type.

type AuditLogAction

type AuditLogAction = shared.AuditLogAction

This is an alias to an internal type.

type AuditLogActor

type AuditLogActor = shared.AuditLogActor

This is an alias to an internal type.

type AuditLogActorType

type AuditLogActorType = shared.AuditLogActorType

The type of actor, whether a User, Cloudflare Admin, or an Automated System.

This is an alias to an internal type.

type AuditLogOwner

type AuditLogOwner = shared.AuditLogOwner

This is an alias to an internal type.

type AuditLogResource

type AuditLogResource = shared.AuditLogResource

This is an alias to an internal type.

type CertificateCA

type CertificateCA = shared.CertificateCA

The Certificate Authority that will issue the certificate.

This is an alias to an internal type.

type CertificateRequestType

type CertificateRequestType = shared.CertificateRequestType

Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).

This is an alias to an internal type.

type CloudflareTunnel

type CloudflareTunnel = shared.CloudflareTunnel

A Cloudflare Tunnel that connects your origin to Cloudflare's edge.

This is an alias to an internal type.

type CloudflareTunnelConfigSrc

type CloudflareTunnelConfigSrc = shared.CloudflareTunnelConfigSrc

Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.

This is an alias to an internal type.

type CloudflareTunnelConnection

type CloudflareTunnelConnection = shared.CloudflareTunnelConnection

This is an alias to an internal type.

type CloudflareTunnelStatus

type CloudflareTunnelStatus = shared.CloudflareTunnelStatus

The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).

This is an alias to an internal type.

type CloudflareTunnelTunType

type CloudflareTunnelTunType = shared.CloudflareTunnelTunType

The type of tunnel.

This is an alias to an internal type.

type DDoSProtectionService

type DDoSProtectionService struct {
	Options               []option.RequestOption
	AdvancedTCPProtection *AdvancedTCPProtectionService
}

DDoSProtectionService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDDoSProtectionService method instead.

func NewDDoSProtectionService

func NewDDoSProtectionService(opts ...option.RequestOption) (r *DDoSProtectionService)

NewDDoSProtectionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type Error

type Error = apierror.Error

type ErrorData

type ErrorData = shared.ErrorData

This is an alias to an internal type.

type ErrorDataSource

type ErrorDataSource = shared.ErrorDataSource

This is an alias to an internal type.

type Member

type Member = shared.Member

This is an alias to an internal type.

type MemberPoliciesAccess

type MemberPoliciesAccess = shared.MemberPoliciesAccess

Allow or deny operations against the resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroup

type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroupsMeta

type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type MemberPoliciesResourceGroup

type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup

A group of scoped resources.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsMeta

type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta

Attributes associated to the resource group.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScope

type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope

A scope is a combination of scope objects which provides additional context.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScopeObject

type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject

A scope object represents any resource that can have actions applied against invite.

This is an alias to an internal type.

type MemberPolicy

type MemberPolicy = shared.MemberPolicy

This is an alias to an internal type.

type MemberStatus

type MemberStatus = shared.MemberStatus

A member's status in the account.

This is an alias to an internal type.

type MemberUser

type MemberUser = shared.MemberUser

Details of the user associated to the membership.

This is an alias to an internal type.

type Permission

type Permission = shared.Permission

This is an alias to an internal type.

type PermissionGrant

type PermissionGrant = shared.PermissionGrant

This is an alias to an internal type.

type PermissionGrantParam

type PermissionGrantParam = shared.PermissionGrantParam

This is an alias to an internal type.

type RatePlan

type RatePlan = shared.RatePlan

The rate plan applied to the subscription.

This is an alias to an internal type.

type RatePlanID

type RatePlanID = shared.RatePlanID

The ID of the rate plan.

This is an alias to an internal type.

type RatePlanParam

type RatePlanParam = shared.RatePlanParam

The rate plan applied to the subscription.

This is an alias to an internal type.

type ResponseInfo

type ResponseInfo = shared.ResponseInfo

This is an alias to an internal type.

type ResponseInfoSource

type ResponseInfoSource = shared.ResponseInfoSource

This is an alias to an internal type.

type Role

type Role = shared.Role

This is an alias to an internal type.

type RoleParam

type RoleParam = shared.RoleParam

This is an alias to an internal type.

type RolePermissions

type RolePermissions = shared.RolePermissions

This is an alias to an internal type.

type RolePermissionsParam

type RolePermissionsParam = shared.RolePermissionsParam

This is an alias to an internal type.

type SortDirection

type SortDirection = shared.SortDirection

Direction to order DNS records in.

This is an alias to an internal type.

type Subscription

type Subscription = shared.Subscription

This is an alias to an internal type.

type SubscriptionFrequency

type SubscriptionFrequency = shared.SubscriptionFrequency

How often the subscription is renewed automatically.

This is an alias to an internal type.

type SubscriptionParam

type SubscriptionParam = shared.SubscriptionParam

This is an alias to an internal type.

type SubscriptionState

type SubscriptionState = shared.SubscriptionState

The state that the subscription is in.

This is an alias to an internal type.

type Token

type Token = shared.Token

This is an alias to an internal type.

type TokenCondition

type TokenCondition = shared.TokenCondition

This is an alias to an internal type.

type TokenConditionCIDRList

type TokenConditionCIDRList = shared.TokenConditionCIDRList

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionCIDRListParam

type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionParam

type TokenConditionParam = shared.TokenConditionParam

This is an alias to an internal type.

type TokenConditionRequestIP

type TokenConditionRequestIP = shared.TokenConditionRequestIP

Client IP restrictions.

This is an alias to an internal type.

type TokenConditionRequestIPParam

type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam

Client IP restrictions.

This is an alias to an internal type.

type TokenParam

type TokenParam = shared.TokenParam

This is an alias to an internal type.

type TokenPolicy

type TokenPolicy = shared.TokenPolicy

This is an alias to an internal type.

type TokenPolicyEffect

type TokenPolicyEffect = shared.TokenPolicyEffect

Allow or deny operations against the resources.

This is an alias to an internal type.

type TokenPolicyParam

type TokenPolicyParam = shared.TokenPolicyParam

This is an alias to an internal type.

type TokenPolicyPermissionGroup

type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type TokenPolicyPermissionGroupParam

type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMeta

type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMetaParam

type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectNested

type TokenPolicyResourcesIAMResourcesTypeObjectNested = shared.TokenPolicyResourcesIAMResourcesTypeObjectNested

Map of nested resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam

type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectNestedParam

Map of nested resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectString

type TokenPolicyResourcesIAMResourcesTypeObjectString = shared.TokenPolicyResourcesIAMResourcesTypeObjectString

Map of simple string resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectStringParam

type TokenPolicyResourcesIAMResourcesTypeObjectStringParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectStringParam

Map of simple string resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesUnion

type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion

A list of resource names that the policy applies to.

This is an alias to an internal type.

type TokenPolicyResourcesUnionParam

type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam

A list of resource names that the policy applies to.

This is an alias to an internal type.

type TokenStatus

type TokenStatus = shared.TokenStatus

Status of the token.

This is an alias to an internal type.

type TokenValue

type TokenValue = shared.TokenValue

The token value.

This is an alias to an internal type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL