zones

package
v7.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ActivationCheckService

type ActivationCheckService struct {
	Options []option.RequestOption
}

ActivationCheckService 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 NewActivationCheckService method instead.

func NewActivationCheckService

func NewActivationCheckService(opts ...option.RequestOption) (r *ActivationCheckService)

NewActivationCheckService 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 (*ActivationCheckService) Trigger

Triggeres a new activation check for a PENDING Zone. This can be triggered every 5 min for paygo/ent customers, every hour for FREE Zones.

type ActivationCheckTriggerParams

type ActivationCheckTriggerParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type ActivationCheckTriggerResponse

type ActivationCheckTriggerResponse struct {
	// Identifier.
	ID   string                             `json:"id"`
	JSON activationCheckTriggerResponseJSON `json:"-"`
}

func (*ActivationCheckTriggerResponse) UnmarshalJSON

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

type ActivationCheckTriggerResponseEnvelope

type ActivationCheckTriggerResponseEnvelope struct {
	Errors   []ActivationCheckTriggerResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ActivationCheckTriggerResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success ActivationCheckTriggerResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  ActivationCheckTriggerResponse                `json:"result"`
	JSON    activationCheckTriggerResponseEnvelopeJSON    `json:"-"`
}

func (*ActivationCheckTriggerResponseEnvelope) UnmarshalJSON

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

type ActivationCheckTriggerResponseEnvelopeErrors

type ActivationCheckTriggerResponseEnvelopeErrors struct {
	Code             int64                                              `json:"code" api:"required"`
	Message          string                                             `json:"message" api:"required"`
	DocumentationURL string                                             `json:"documentation_url"`
	Source           ActivationCheckTriggerResponseEnvelopeErrorsSource `json:"source"`
	JSON             activationCheckTriggerResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ActivationCheckTriggerResponseEnvelopeErrors) UnmarshalJSON

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

type ActivationCheckTriggerResponseEnvelopeErrorsSource

type ActivationCheckTriggerResponseEnvelopeErrorsSource struct {
	Pointer string                                                 `json:"pointer"`
	JSON    activationCheckTriggerResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ActivationCheckTriggerResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ActivationCheckTriggerResponseEnvelopeMessages

type ActivationCheckTriggerResponseEnvelopeMessages struct {
	Code             int64                                                `json:"code" api:"required"`
	Message          string                                               `json:"message" api:"required"`
	DocumentationURL string                                               `json:"documentation_url"`
	Source           ActivationCheckTriggerResponseEnvelopeMessagesSource `json:"source"`
	JSON             activationCheckTriggerResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ActivationCheckTriggerResponseEnvelopeMessages) UnmarshalJSON

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

type ActivationCheckTriggerResponseEnvelopeMessagesSource

type ActivationCheckTriggerResponseEnvelopeMessagesSource struct {
	Pointer string                                                   `json:"pointer"`
	JSON    activationCheckTriggerResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ActivationCheckTriggerResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ActivationCheckTriggerResponseEnvelopeSuccess

type ActivationCheckTriggerResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ActivationCheckTriggerResponseEnvelopeSuccessTrue ActivationCheckTriggerResponseEnvelopeSuccess = true
)

func (ActivationCheckTriggerResponseEnvelopeSuccess) IsKnown

type AdvancedDDoS

type AdvancedDDoS struct {
	// ID of the zone setting.
	ID AdvancedDDoSID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value AdvancedDDoSValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable AdvancedDDoSEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time        `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       advancedDDoSJSON `json:"-"`
}

Advanced protection from Distributed Denial of Service (DDoS) attacks on your website. This is an uneditable value that is 'on' in the case of Business and Enterprise zones.

func (*AdvancedDDoS) UnmarshalJSON

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

type AdvancedDDoSEditable

type AdvancedDDoSEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	AdvancedDDoSEditableTrue  AdvancedDDoSEditable = true
	AdvancedDDoSEditableFalse AdvancedDDoSEditable = false
)

func (AdvancedDDoSEditable) IsKnown

func (r AdvancedDDoSEditable) IsKnown() bool

type AdvancedDDoSID

type AdvancedDDoSID string

ID of the zone setting.

const (
	AdvancedDDoSIDAdvancedDDoS AdvancedDDoSID = "advanced_ddos"
)

func (AdvancedDDoSID) IsKnown

func (r AdvancedDDoSID) IsKnown() bool

type AdvancedDDoSValueArray

type AdvancedDDoSValueArray []string

func (AdvancedDDoSValueArray) ImplementsAdvancedDDoSValueUnion

func (r AdvancedDDoSValueArray) ImplementsAdvancedDDoSValueUnion()

type AdvancedDDoSValueUnion

type AdvancedDDoSValueUnion interface {
	ImplementsAdvancedDDoSValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or AdvancedDDoSValueArray.

type AlwaysOnline

type AlwaysOnline struct {
	// ID of the zone setting.
	ID AlwaysOnlineID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value AlwaysOnlineValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable AlwaysOnlineEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time        `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       alwaysOnlineJSON `json:"-"`
}

When enabled, Cloudflare serves limited copies of web pages available from the [Internet Archive's Wayback Machine](https://archive.org/web/) if your server is offline. Refer to [Always Online](https://developers.cloudflare.com/cache/about/always-online) for more information.

func (*AlwaysOnline) UnmarshalJSON

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

type AlwaysOnlineEditable

type AlwaysOnlineEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	AlwaysOnlineEditableTrue  AlwaysOnlineEditable = true
	AlwaysOnlineEditableFalse AlwaysOnlineEditable = false
)

func (AlwaysOnlineEditable) IsKnown

func (r AlwaysOnlineEditable) IsKnown() bool

type AlwaysOnlineID

type AlwaysOnlineID string

ID of the zone setting.

const (
	AlwaysOnlineIDAlwaysOnline AlwaysOnlineID = "always_online"
)

func (AlwaysOnlineID) IsKnown

func (r AlwaysOnlineID) IsKnown() bool

type AlwaysOnlineValueArray

type AlwaysOnlineValueArray []string

func (AlwaysOnlineValueArray) ImplementsAlwaysOnlineValueUnion

func (r AlwaysOnlineValueArray) ImplementsAlwaysOnlineValueUnion()

type AlwaysOnlineValueUnion

type AlwaysOnlineValueUnion interface {
	ImplementsAlwaysOnlineValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or AlwaysOnlineValueArray.

type AlwaysUseHTTPS

type AlwaysUseHTTPS struct {
	// If enabled, any ` http://“ URL is converted to  `https://` through a 301
	// redirect.
	ID   AlwaysUseHTTPSID   `json:"id"`
	JSON alwaysUseHTTPSJSON `json:"-"`
}

func (AlwaysUseHTTPS) ImplementsPageRuleAction

func (r AlwaysUseHTTPS) ImplementsPageRuleAction()

func (*AlwaysUseHTTPS) UnmarshalJSON

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

type AlwaysUseHTTPSID

type AlwaysUseHTTPSID string

If enabled, any ` http://“ URL is converted to `https://` through a 301 redirect.

const (
	AlwaysUseHTTPSIDAlwaysUseHTTPS AlwaysUseHTTPSID = "always_use_https"
)

func (AlwaysUseHTTPSID) IsKnown

func (r AlwaysUseHTTPSID) IsKnown() bool

type AlwaysUseHTTPSParam

type AlwaysUseHTTPSParam struct {
	// If enabled, any ` http://“ URL is converted to  `https://` through a 301
	// redirect.
	ID param.Field[AlwaysUseHTTPSID] `json:"id"`
}

func (AlwaysUseHTTPSParam) ImplementsPageRuleEditParamsActionUnion

func (r AlwaysUseHTTPSParam) ImplementsPageRuleEditParamsActionUnion()

func (AlwaysUseHTTPSParam) ImplementsPageRuleNewParamsActionUnion

func (r AlwaysUseHTTPSParam) ImplementsPageRuleNewParamsActionUnion()

func (AlwaysUseHTTPSParam) ImplementsPageRuleUpdateParamsActionUnion

func (r AlwaysUseHTTPSParam) ImplementsPageRuleUpdateParamsActionUnion()

func (AlwaysUseHTTPSParam) MarshalJSON

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

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 AutomaticHTTPSRewrites

type AutomaticHTTPSRewrites struct {
	// Turn on or off Automatic HTTPS Rewrites.
	ID AutomaticHTTPSRewritesID `json:"id"`
	// The status of Automatic HTTPS Rewrites.
	Value AutomaticHTTPSRewritesValue `json:"value"`
	JSON  automaticHTTPSRewritesJSON  `json:"-"`
}

func (AutomaticHTTPSRewrites) ImplementsPageRuleAction

func (r AutomaticHTTPSRewrites) ImplementsPageRuleAction()

func (*AutomaticHTTPSRewrites) UnmarshalJSON

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

type AutomaticHTTPSRewritesID

type AutomaticHTTPSRewritesID string

Turn on or off Automatic HTTPS Rewrites.

const (
	AutomaticHTTPSRewritesIDAutomaticHTTPSRewrites AutomaticHTTPSRewritesID = "automatic_https_rewrites"
)

func (AutomaticHTTPSRewritesID) IsKnown

func (r AutomaticHTTPSRewritesID) IsKnown() bool

type AutomaticHTTPSRewritesParam

type AutomaticHTTPSRewritesParam struct {
	// Turn on or off Automatic HTTPS Rewrites.
	ID param.Field[AutomaticHTTPSRewritesID] `json:"id"`
	// The status of Automatic HTTPS Rewrites.
	Value param.Field[AutomaticHTTPSRewritesValue] `json:"value"`
}

func (AutomaticHTTPSRewritesParam) ImplementsPageRuleEditParamsActionUnion

func (r AutomaticHTTPSRewritesParam) ImplementsPageRuleEditParamsActionUnion()

func (AutomaticHTTPSRewritesParam) ImplementsPageRuleNewParamsActionUnion

func (r AutomaticHTTPSRewritesParam) ImplementsPageRuleNewParamsActionUnion()

func (AutomaticHTTPSRewritesParam) ImplementsPageRuleUpdateParamsActionUnion

func (r AutomaticHTTPSRewritesParam) ImplementsPageRuleUpdateParamsActionUnion()

func (AutomaticHTTPSRewritesParam) MarshalJSON

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

type AutomaticHTTPSRewritesValue

type AutomaticHTTPSRewritesValue string

The status of Automatic HTTPS Rewrites.

const (
	AutomaticHTTPSRewritesValueOn  AutomaticHTTPSRewritesValue = "on"
	AutomaticHTTPSRewritesValueOff AutomaticHTTPSRewritesValue = "off"
)

func (AutomaticHTTPSRewritesValue) IsKnown

func (r AutomaticHTTPSRewritesValue) IsKnown() bool

type AutomaticPlatformOptimizationParam

type AutomaticPlatformOptimizationParam struct {
	// Indicates whether or not
	// [cache by device type](https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/)
	// is enabled.
	CacheByDeviceType param.Field[bool] `json:"cache_by_device_type" api:"required"`
	// Indicates whether or not Cloudflare proxy is enabled.
	Cf param.Field[bool] `json:"cf" api:"required"`
	// Indicates whether or not Automatic Platform Optimization is enabled.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// An array of hostnames where Automatic Platform Optimization for WordPress is
	// activated.
	Hostnames param.Field[[]string] `json:"hostnames" api:"required" format:"hostname"`
	// Indicates whether or not site is powered by WordPress.
	Wordpress param.Field[bool] `json:"wordpress" api:"required"`
	// Indicates whether or not
	// [Cloudflare for WordPress plugin](https://wordpress.org/plugins/cloudflare/) is
	// installed.
	WpPlugin param.Field[bool] `json:"wp_plugin" api:"required"`
}

func (AutomaticPlatformOptimizationParam) ImplementsSettingEditParamsBodyValueValueUnion

func (r AutomaticPlatformOptimizationParam) ImplementsSettingEditParamsBodyValueValueUnion()

func (AutomaticPlatformOptimizationParam) MarshalJSON

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

type AvailableRatePlan

type AvailableRatePlan struct {
	// Identifier
	ID string `json:"id"`
	// Indicates whether you can subscribe to this plan.
	CanSubscribe bool `json:"can_subscribe"`
	// The monetary unit in which pricing information is displayed.
	Currency string `json:"currency"`
	// Indicates whether this plan is managed externally.
	ExternallyManaged bool `json:"externally_managed"`
	// The frequency at which you will be billed for this plan.
	Frequency AvailableRatePlanFrequency `json:"frequency"`
	// Indicates whether you are currently subscribed to this plan.
	IsSubscribed bool `json:"is_subscribed"`
	// The legacy identifier for this rate plan, if any.
	LegacyID string `json:"legacy_id"`
	// The plan name.
	Name string `json:"name"`
	// The amount you will be billed for this plan.
	Price float64               `json:"price"`
	JSON  availableRatePlanJSON `json:"-"`
}

func (*AvailableRatePlan) UnmarshalJSON

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

type AvailableRatePlanFrequency

type AvailableRatePlanFrequency string

The frequency at which you will be billed for this plan.

const (
	AvailableRatePlanFrequencyWeekly    AvailableRatePlanFrequency = "weekly"
	AvailableRatePlanFrequencyMonthly   AvailableRatePlanFrequency = "monthly"
	AvailableRatePlanFrequencyQuarterly AvailableRatePlanFrequency = "quarterly"
	AvailableRatePlanFrequencyYearly    AvailableRatePlanFrequency = "yearly"
)

func (AvailableRatePlanFrequency) IsKnown

func (r AvailableRatePlanFrequency) IsKnown() bool

type Brotli

type Brotli struct {
	// ID of the zone setting.
	ID BrotliID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value BrotliValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable BrotliEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time  `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       brotliJSON `json:"-"`
}

When the client requesting an asset supports the Brotli compression algorithm, Cloudflare will serve a Brotli compressed version of the asset.

func (*Brotli) UnmarshalJSON

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

type BrotliEditable

type BrotliEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	BrotliEditableTrue  BrotliEditable = true
	BrotliEditableFalse BrotliEditable = false
)

func (BrotliEditable) IsKnown

func (r BrotliEditable) IsKnown() bool

type BrotliID

type BrotliID string

ID of the zone setting.

const (
	BrotliIDBrotli BrotliID = "brotli"
)

func (BrotliID) IsKnown

func (r BrotliID) IsKnown() bool

type BrotliValueArray

type BrotliValueArray []string

func (BrotliValueArray) ImplementsBrotliValueUnion

func (r BrotliValueArray) ImplementsBrotliValueUnion()

type BrotliValueUnion

type BrotliValueUnion interface {
	ImplementsBrotliValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or BrotliValueArray.

type BrowserCacheTTL

type BrowserCacheTTL struct {
	// Control how long resources cached by client browsers remain valid.
	ID BrowserCacheTTLID `json:"id"`
	// The number of seconds to cache resources for. Setting this to 0 enables "Respect
	// Existing Headers".
	Value int64               `json:"value"`
	JSON  browserCacheTTLJSON `json:"-"`
}

func (BrowserCacheTTL) ImplementsPageRuleAction

func (r BrowserCacheTTL) ImplementsPageRuleAction()

func (*BrowserCacheTTL) UnmarshalJSON

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

type BrowserCacheTTLID

type BrowserCacheTTLID string

Control how long resources cached by client browsers remain valid.

const (
	BrowserCacheTTLIDBrowserCacheTTL BrowserCacheTTLID = "browser_cache_ttl"
)

func (BrowserCacheTTLID) IsKnown

func (r BrowserCacheTTLID) IsKnown() bool

type BrowserCacheTTLParam

type BrowserCacheTTLParam struct {
	// Control how long resources cached by client browsers remain valid.
	ID param.Field[BrowserCacheTTLID] `json:"id"`
	// The number of seconds to cache resources for. Setting this to 0 enables "Respect
	// Existing Headers".
	Value param.Field[int64] `json:"value"`
}

func (BrowserCacheTTLParam) ImplementsPageRuleEditParamsActionUnion

func (r BrowserCacheTTLParam) ImplementsPageRuleEditParamsActionUnion()

func (BrowserCacheTTLParam) ImplementsPageRuleNewParamsActionUnion

func (r BrowserCacheTTLParam) ImplementsPageRuleNewParamsActionUnion()

func (BrowserCacheTTLParam) ImplementsPageRuleUpdateParamsActionUnion

func (r BrowserCacheTTLParam) ImplementsPageRuleUpdateParamsActionUnion()

func (BrowserCacheTTLParam) MarshalJSON

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

type BrowserCheck

type BrowserCheck struct {
	// Inspect the visitor's browser for headers commonly associated with spammers and
	// certain bots.
	ID BrowserCheckID `json:"id"`
	// The status of Browser Integrity Check.
	Value BrowserCheckValue `json:"value"`
	JSON  browserCheckJSON  `json:"-"`
}

func (BrowserCheck) ImplementsPageRuleAction

func (r BrowserCheck) ImplementsPageRuleAction()

func (*BrowserCheck) UnmarshalJSON

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

type BrowserCheckID

type BrowserCheckID string

Inspect the visitor's browser for headers commonly associated with spammers and certain bots.

const (
	BrowserCheckIDBrowserCheck BrowserCheckID = "browser_check"
)

func (BrowserCheckID) IsKnown

func (r BrowserCheckID) IsKnown() bool

type BrowserCheckParam

type BrowserCheckParam struct {
	// Inspect the visitor's browser for headers commonly associated with spammers and
	// certain bots.
	ID param.Field[BrowserCheckID] `json:"id"`
	// The status of Browser Integrity Check.
	Value param.Field[BrowserCheckValue] `json:"value"`
}

func (BrowserCheckParam) ImplementsPageRuleEditParamsActionUnion

func (r BrowserCheckParam) ImplementsPageRuleEditParamsActionUnion()

func (BrowserCheckParam) ImplementsPageRuleNewParamsActionUnion

func (r BrowserCheckParam) ImplementsPageRuleNewParamsActionUnion()

func (BrowserCheckParam) ImplementsPageRuleUpdateParamsActionUnion

func (r BrowserCheckParam) ImplementsPageRuleUpdateParamsActionUnion()

func (BrowserCheckParam) MarshalJSON

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

type BrowserCheckValue

type BrowserCheckValue string

The status of Browser Integrity Check.

const (
	BrowserCheckValueOn  BrowserCheckValue = "on"
	BrowserCheckValueOff BrowserCheckValue = "off"
)

func (BrowserCheckValue) IsKnown

func (r BrowserCheckValue) IsKnown() bool

type CTAlertingEditParams added in v7.6.0

type CTAlertingEditParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// Whether CT alerting is enabled for the zone.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// Email addresses that receive CT alert notifications for the zone. A maximum of
	// 100 addresses may be configured. Each address must be a valid RFC 5322 email
	// address and must not contain a comma. Omitted from responses when no addresses
	// are configured.
	Emails param.Field[[]string] `json:"emails" format:"email"`
}

func (CTAlertingEditParams) MarshalJSON added in v7.6.0

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

type CTAlertingEditResponseEnvelope added in v7.6.0

type CTAlertingEditResponseEnvelope struct {
	Errors   []CTAlertingEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []CTAlertingEditResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success CTAlertingEditResponseEnvelopeSuccess `json:"success" api:"required"`
	// Certificate Transparency alerting subscription settings for a zone.
	Result CTAlertingSubscription             `json:"result"`
	JSON   ctAlertingEditResponseEnvelopeJSON `json:"-"`
}

func (*CTAlertingEditResponseEnvelope) UnmarshalJSON added in v7.6.0

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

type CTAlertingEditResponseEnvelopeErrors added in v7.6.0

type CTAlertingEditResponseEnvelopeErrors struct {
	Code             int64                                      `json:"code" api:"required"`
	Message          string                                     `json:"message" api:"required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           CTAlertingEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             ctAlertingEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*CTAlertingEditResponseEnvelopeErrors) UnmarshalJSON added in v7.6.0

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

type CTAlertingEditResponseEnvelopeErrorsSource added in v7.6.0

type CTAlertingEditResponseEnvelopeErrorsSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    ctAlertingEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*CTAlertingEditResponseEnvelopeErrorsSource) UnmarshalJSON added in v7.6.0

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

type CTAlertingEditResponseEnvelopeMessages added in v7.6.0

type CTAlertingEditResponseEnvelopeMessages struct {
	Code             int64                                        `json:"code" api:"required"`
	Message          string                                       `json:"message" api:"required"`
	DocumentationURL string                                       `json:"documentation_url"`
	Source           CTAlertingEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             ctAlertingEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*CTAlertingEditResponseEnvelopeMessages) UnmarshalJSON added in v7.6.0

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

type CTAlertingEditResponseEnvelopeMessagesSource added in v7.6.0

type CTAlertingEditResponseEnvelopeMessagesSource struct {
	Pointer string                                           `json:"pointer"`
	JSON    ctAlertingEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*CTAlertingEditResponseEnvelopeMessagesSource) UnmarshalJSON added in v7.6.0

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

type CTAlertingEditResponseEnvelopeSuccess added in v7.6.0

type CTAlertingEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	CTAlertingEditResponseEnvelopeSuccessTrue CTAlertingEditResponseEnvelopeSuccess = true
)

func (CTAlertingEditResponseEnvelopeSuccess) IsKnown added in v7.6.0

type CTAlertingGetParams added in v7.6.0

type CTAlertingGetParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type CTAlertingGetResponseEnvelope added in v7.6.0

type CTAlertingGetResponseEnvelope struct {
	Errors   []CTAlertingGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []CTAlertingGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success CTAlertingGetResponseEnvelopeSuccess `json:"success" api:"required"`
	// Certificate Transparency alerting subscription settings for a zone.
	Result CTAlertingSubscription            `json:"result"`
	JSON   ctAlertingGetResponseEnvelopeJSON `json:"-"`
}

func (*CTAlertingGetResponseEnvelope) UnmarshalJSON added in v7.6.0

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

type CTAlertingGetResponseEnvelopeErrors added in v7.6.0

type CTAlertingGetResponseEnvelopeErrors struct {
	Code             int64                                     `json:"code" api:"required"`
	Message          string                                    `json:"message" api:"required"`
	DocumentationURL string                                    `json:"documentation_url"`
	Source           CTAlertingGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             ctAlertingGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*CTAlertingGetResponseEnvelopeErrors) UnmarshalJSON added in v7.6.0

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

type CTAlertingGetResponseEnvelopeErrorsSource added in v7.6.0

type CTAlertingGetResponseEnvelopeErrorsSource struct {
	Pointer string                                        `json:"pointer"`
	JSON    ctAlertingGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*CTAlertingGetResponseEnvelopeErrorsSource) UnmarshalJSON added in v7.6.0

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

type CTAlertingGetResponseEnvelopeMessages added in v7.6.0

type CTAlertingGetResponseEnvelopeMessages struct {
	Code             int64                                       `json:"code" api:"required"`
	Message          string                                      `json:"message" api:"required"`
	DocumentationURL string                                      `json:"documentation_url"`
	Source           CTAlertingGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             ctAlertingGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*CTAlertingGetResponseEnvelopeMessages) UnmarshalJSON added in v7.6.0

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

type CTAlertingGetResponseEnvelopeMessagesSource added in v7.6.0

type CTAlertingGetResponseEnvelopeMessagesSource struct {
	Pointer string                                          `json:"pointer"`
	JSON    ctAlertingGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*CTAlertingGetResponseEnvelopeMessagesSource) UnmarshalJSON added in v7.6.0

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

type CTAlertingGetResponseEnvelopeSuccess added in v7.6.0

type CTAlertingGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	CTAlertingGetResponseEnvelopeSuccessTrue CTAlertingGetResponseEnvelopeSuccess = true
)

func (CTAlertingGetResponseEnvelopeSuccess) IsKnown added in v7.6.0

type CTAlertingService added in v7.6.0

type CTAlertingService struct {
	Options []option.RequestOption
}

CTAlertingService 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 NewCTAlertingService method instead.

func NewCTAlertingService added in v7.6.0

func NewCTAlertingService(opts ...option.RequestOption) (r *CTAlertingService)

NewCTAlertingService 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 (*CTAlertingService) Edit added in v7.6.0

Create or update the Certificate Transparency alerting subscription for a zone. Enables or disables email notifications when certificates are issued for the zone's domains. The `enabled` field is required on every request and controls whether the subscription is active. The `emails` field is optional and, when provided, replaces the stored recipient list for the zone. When `emails` is omitted, the stored recipient list is preserved and only the enabled state is toggled. A maximum of 100 email addresses may be configured per zone. Requests that omit `enabled` are rejected with error code 1008. Subscribe and unsubscribe notification emails are only sent for recipients whose effective subscription state changes. Idempotent requests (no state change) send no notification email.

func (*CTAlertingService) Get added in v7.6.0

Retrieve the Certificate Transparency alerting subscription settings for a zone. Returns whether CT monitoring is enabled and the list of email addresses that receive alerts, if any have been configured.

type CTAlertingSubscription added in v7.9.0

type CTAlertingSubscription struct {
	// Whether CT alerting is enabled for the zone.
	Enabled bool `json:"enabled" api:"required"`
	// Email addresses that receive CT alert notifications for the zone. A maximum of
	// 100 addresses may be configured. Each address must be a valid RFC 5322 email
	// address and must not contain a comma. Omitted from responses when no addresses
	// are configured.
	Emails []string                   `json:"emails" format:"email"`
	JSON   ctAlertingSubscriptionJSON `json:"-"`
}

Certificate Transparency alerting subscription settings for a zone.

func (*CTAlertingSubscription) UnmarshalJSON added in v7.9.0

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

type CTService added in v7.6.0

type CTService struct {
	Options  []option.RequestOption
	Alerting *CTAlertingService
}

CTService 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 NewCTService method instead.

func NewCTService added in v7.6.0

func NewCTService(opts ...option.RequestOption) (r *CTService)

NewCTService 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 CacheLevel

type CacheLevel struct {
	// Apply custom caching based on the option selected.
	ID CacheLevelID `json:"id"`
	// - `bypass`: Cloudflare does not cache.
	// - `basic`: Delivers resources from cache when there is no query string.
	// - `simplified`: Delivers the same resource to everyone independent of the query
	//   string.
	// - `aggressive`: Caches all static content that has a query string.
	// - `cache_everything`: Treats all content as static and caches all file types
	//   beyond the
	//   [Cloudflare default cached content](https://developers.cloudflare.com/cache/concepts/default-cache-behavior/#default-cached-file-extensions).
	Value CacheLevelValue `json:"value"`
	JSON  cacheLevelJSON  `json:"-"`
}

func (CacheLevel) ImplementsPageRuleAction

func (r CacheLevel) ImplementsPageRuleAction()

func (*CacheLevel) UnmarshalJSON

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

type CacheLevelID

type CacheLevelID string

Apply custom caching based on the option selected.

const (
	CacheLevelIDCacheLevel CacheLevelID = "cache_level"
)

func (CacheLevelID) IsKnown

func (r CacheLevelID) IsKnown() bool

type CacheLevelParam

type CacheLevelParam struct {
	// Apply custom caching based on the option selected.
	ID param.Field[CacheLevelID] `json:"id"`
	// - `bypass`: Cloudflare does not cache.
	// - `basic`: Delivers resources from cache when there is no query string.
	// - `simplified`: Delivers the same resource to everyone independent of the query
	//   string.
	// - `aggressive`: Caches all static content that has a query string.
	// - `cache_everything`: Treats all content as static and caches all file types
	//   beyond the
	//   [Cloudflare default cached content](https://developers.cloudflare.com/cache/concepts/default-cache-behavior/#default-cached-file-extensions).
	Value param.Field[CacheLevelValue] `json:"value"`
}

func (CacheLevelParam) ImplementsPageRuleEditParamsActionUnion

func (r CacheLevelParam) ImplementsPageRuleEditParamsActionUnion()

func (CacheLevelParam) ImplementsPageRuleNewParamsActionUnion

func (r CacheLevelParam) ImplementsPageRuleNewParamsActionUnion()

func (CacheLevelParam) ImplementsPageRuleUpdateParamsActionUnion

func (r CacheLevelParam) ImplementsPageRuleUpdateParamsActionUnion()

func (CacheLevelParam) MarshalJSON

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

type CacheLevelValue

type CacheLevelValue string
const (
	CacheLevelValueBypass          CacheLevelValue = "bypass"
	CacheLevelValueBasic           CacheLevelValue = "basic"
	CacheLevelValueSimplified      CacheLevelValue = "simplified"
	CacheLevelValueAggressive      CacheLevelValue = "aggressive"
	CacheLevelValueCacheEverything CacheLevelValue = "cache_everything"
)

func (CacheLevelValue) IsKnown

func (r CacheLevelValue) IsKnown() bool

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 ChallengeTTL

type ChallengeTTL struct {
	// ID of the zone setting.
	ID ChallengeTTLID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value ChallengeTTLValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable ChallengeTTLEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time        `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       challengeTTLJSON `json:"-"`
}

Specify how long a visitor is allowed access to your site after successfully completing a challenge (such as a CAPTCHA). After the TTL has expired the visitor will have to complete a new challenge. We recommend a 15 - 45 minute setting and will attempt to honor any setting above 45 minutes. (https://support.cloudflare.com/hc/en-us/articles/200170136).

func (*ChallengeTTL) UnmarshalJSON

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

type ChallengeTTLEditable

type ChallengeTTLEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	ChallengeTTLEditableTrue  ChallengeTTLEditable = true
	ChallengeTTLEditableFalse ChallengeTTLEditable = false
)

func (ChallengeTTLEditable) IsKnown

func (r ChallengeTTLEditable) IsKnown() bool

type ChallengeTTLID

type ChallengeTTLID string

ID of the zone setting.

const (
	ChallengeTTLIDChallengeTTL ChallengeTTLID = "challenge_ttl"
)

func (ChallengeTTLID) IsKnown

func (r ChallengeTTLID) IsKnown() bool

type ChallengeTTLValueArray

type ChallengeTTLValueArray []string

func (ChallengeTTLValueArray) ImplementsChallengeTTLValueUnion

func (r ChallengeTTLValueArray) ImplementsChallengeTTLValueUnion()

type ChallengeTTLValueUnion

type ChallengeTTLValueUnion interface {
	ImplementsChallengeTTLValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or ChallengeTTLValueArray.

type Ciphers

type Ciphers struct {
	// ID of the zone setting.
	ID CiphersID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value CiphersValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable CiphersEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time   `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       ciphersJSON `json:"-"`
}

An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.

func (*Ciphers) UnmarshalJSON

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

type CiphersEditable

type CiphersEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	CiphersEditableTrue  CiphersEditable = true
	CiphersEditableFalse CiphersEditable = false
)

func (CiphersEditable) IsKnown

func (r CiphersEditable) IsKnown() bool

type CiphersID

type CiphersID string

ID of the zone setting.

const (
	CiphersIDCiphers CiphersID = "ciphers"
)

func (CiphersID) IsKnown

func (r CiphersID) IsKnown() bool

type CiphersValueArray

type CiphersValueArray []string

func (CiphersValueArray) ImplementsCiphersValueUnion

func (r CiphersValueArray) ImplementsCiphersValueUnion()

type CiphersValueUnion

type CiphersValueUnion interface {
	ImplementsCiphersValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or CiphersValueArray.

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 CustomNameserverGetParams

type CustomNameserverGetParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type CustomNameserverGetResponse

type CustomNameserverGetResponse struct {
	Errors   []CustomNameserverGetResponseError   `json:"errors" api:"required"`
	Messages []CustomNameserverGetResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success CustomNameserverGetResponseSuccess `json:"success" api:"required"`
	// Whether zone uses account-level custom nameservers.
	Enabled bool `json:"enabled"`
	// The number of the name server set to assign to the zone.
	NSSet      float64                               `json:"ns_set"`
	ResultInfo CustomNameserverGetResponseResultInfo `json:"result_info"`
	JSON       customNameserverGetResponseJSON       `json:"-"`
}

func (*CustomNameserverGetResponse) UnmarshalJSON

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

type CustomNameserverGetResponseError

type CustomNameserverGetResponseError struct {
	Code             int64                                   `json:"code" api:"required"`
	Message          string                                  `json:"message" api:"required"`
	DocumentationURL string                                  `json:"documentation_url"`
	Source           CustomNameserverGetResponseErrorsSource `json:"source"`
	JSON             customNameserverGetResponseErrorJSON    `json:"-"`
}

func (*CustomNameserverGetResponseError) UnmarshalJSON

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

type CustomNameserverGetResponseErrorsSource

type CustomNameserverGetResponseErrorsSource struct {
	Pointer string                                      `json:"pointer"`
	JSON    customNameserverGetResponseErrorsSourceJSON `json:"-"`
}

func (*CustomNameserverGetResponseErrorsSource) UnmarshalJSON

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

type CustomNameserverGetResponseMessage

type CustomNameserverGetResponseMessage struct {
	Code             int64                                     `json:"code" api:"required"`
	Message          string                                    `json:"message" api:"required"`
	DocumentationURL string                                    `json:"documentation_url"`
	Source           CustomNameserverGetResponseMessagesSource `json:"source"`
	JSON             customNameserverGetResponseMessageJSON    `json:"-"`
}

func (*CustomNameserverGetResponseMessage) UnmarshalJSON

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

type CustomNameserverGetResponseMessagesSource

type CustomNameserverGetResponseMessagesSource struct {
	Pointer string                                        `json:"pointer"`
	JSON    customNameserverGetResponseMessagesSourceJSON `json:"-"`
}

func (*CustomNameserverGetResponseMessagesSource) UnmarshalJSON

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

type CustomNameserverGetResponseResultInfo

type CustomNameserverGetResponseResultInfo struct {
	// Total number of results for the requested service.
	Count float64 `json:"count"`
	// Current page within paginated list of results.
	Page float64 `json:"page"`
	// Number of results per page of results.
	PerPage float64 `json:"per_page"`
	// Total results available without any search parameters.
	TotalCount float64 `json:"total_count"`
	// The number of total pages in the entire result set.
	TotalPages float64                                   `json:"total_pages"`
	JSON       customNameserverGetResponseResultInfoJSON `json:"-"`
}

func (*CustomNameserverGetResponseResultInfo) UnmarshalJSON

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

type CustomNameserverGetResponseSuccess

type CustomNameserverGetResponseSuccess bool

Whether the API call was successful.

const (
	CustomNameserverGetResponseSuccessTrue CustomNameserverGetResponseSuccess = true
)

func (CustomNameserverGetResponseSuccess) IsKnown

type CustomNameserverService deprecated

type CustomNameserverService struct {
	Options []option.RequestOption
}

CustomNameserverService 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 NewCustomNameserverService method instead.

Deprecated: Use DNS settings API instead.

func NewCustomNameserverService

func NewCustomNameserverService(opts ...option.RequestOption) (r *CustomNameserverService)

NewCustomNameserverService 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 (*CustomNameserverService) Get deprecated

Get metadata for account-level custom nameservers on a zone.

Deprecated in favor of [Show DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-a-zone-list-dns-settings).

Deprecated: Use [DNS settings API](https://developers.cloudflare.com/api/resources/dns/subresources/settings/methods/get/) instead.

func (*CustomNameserverService) Update deprecated

Set metadata for account-level custom nameservers on a zone.

If you would like new zones in the account to use account custom nameservers by default, use PUT /accounts/:identifier to set the account setting use_account_custom_ns_by_default to true.

Deprecated in favor of [Update DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-a-zone-update-dns-settings).

Deprecated: Use [DNS settings API](https://developers.cloudflare.com/api/resources/dns/subresources/settings/methods/put/) instead.

func (*CustomNameserverService) UpdateAutoPaging deprecated

Set metadata for account-level custom nameservers on a zone.

If you would like new zones in the account to use account custom nameservers by default, use PUT /accounts/:identifier to set the account setting use_account_custom_ns_by_default to true.

Deprecated in favor of [Update DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-a-zone-update-dns-settings).

Deprecated: Use [DNS settings API](https://developers.cloudflare.com/api/resources/dns/subresources/settings/methods/put/) instead.

type CustomNameserverUpdateParams

type CustomNameserverUpdateParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// Whether zone uses account-level custom nameservers.
	Enabled param.Field[bool] `json:"enabled"`
	// The number of the name server set to assign to the zone.
	NSSet param.Field[float64] `json:"ns_set"`
}

func (CustomNameserverUpdateParams) MarshalJSON

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

type DevelopmentMode

type DevelopmentMode struct {
	// ID of the zone setting.
	ID DevelopmentModeID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value DevelopmentModeValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable DevelopmentModeEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Value of the zone setting. Notes: The interval (in seconds) from when
	// development mode expires (positive integer) or last expired (negative integer)
	// for the domain. If development mode has never been enabled, this value is false.
	TimeRemaining float64             `json:"time_remaining"`
	JSON          developmentModeJSON `json:"-"`
}

Development Mode temporarily allows you to enter development mode for your websites if you need to make changes to your site. This will bypass Cloudflare's accelerated cache and slow down your site, but is useful if you are making changes to cacheable content (like images, css, or JavaScript) and would like to see those changes right away. Once entered, development mode will last for 3 hours and then automatically toggle off.

func (*DevelopmentMode) UnmarshalJSON

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

type DevelopmentModeEditable

type DevelopmentModeEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	DevelopmentModeEditableTrue  DevelopmentModeEditable = true
	DevelopmentModeEditableFalse DevelopmentModeEditable = false
)

func (DevelopmentModeEditable) IsKnown

func (r DevelopmentModeEditable) IsKnown() bool

type DevelopmentModeID

type DevelopmentModeID string

ID of the zone setting.

const (
	DevelopmentModeIDDevelopmentMode DevelopmentModeID = "development_mode"
)

func (DevelopmentModeID) IsKnown

func (r DevelopmentModeID) IsKnown() bool

type DevelopmentModeValueArray

type DevelopmentModeValueArray []string

func (DevelopmentModeValueArray) ImplementsDevelopmentModeValueUnion

func (r DevelopmentModeValueArray) ImplementsDevelopmentModeValueUnion()

type DevelopmentModeValueUnion

type DevelopmentModeValueUnion interface {
	ImplementsDevelopmentModeValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or DevelopmentModeValueArray.

type EarlyHints

type EarlyHints struct {
	// ID of the zone setting.
	ID EarlyHintsID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value EarlyHintsValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable EarlyHintsEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time      `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       earlyHintsJSON `json:"-"`
}

When enabled, Cloudflare will attempt to speed up overall page loads by serving `103` responses with `Link` headers from the final response. Refer to [Early Hints](https://developers.cloudflare.com/cache/about/early-hints) for more information.

func (*EarlyHints) UnmarshalJSON

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

type EarlyHintsEditable

type EarlyHintsEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	EarlyHintsEditableTrue  EarlyHintsEditable = true
	EarlyHintsEditableFalse EarlyHintsEditable = false
)

func (EarlyHintsEditable) IsKnown

func (r EarlyHintsEditable) IsKnown() bool

type EarlyHintsID

type EarlyHintsID string

ID of the zone setting.

const (
	EarlyHintsIDEarlyHints EarlyHintsID = "early_hints"
)

func (EarlyHintsID) IsKnown

func (r EarlyHintsID) IsKnown() bool

type EarlyHintsValueArray

type EarlyHintsValueArray []string

func (EarlyHintsValueArray) ImplementsEarlyHintsValueUnion

func (r EarlyHintsValueArray) ImplementsEarlyHintsValueUnion()

type EarlyHintsValueUnion

type EarlyHintsValueUnion interface {
	ImplementsEarlyHintsValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or EarlyHintsValueArray.

type EmailObfuscation

type EmailObfuscation struct {
	// Turn on or off **Email Obfuscation**.
	ID EmailObfuscationID `json:"id"`
	// The status of Email Obfuscation.
	Value EmailObfuscationValue `json:"value"`
	JSON  emailObfuscationJSON  `json:"-"`
}

func (EmailObfuscation) ImplementsPageRuleAction

func (r EmailObfuscation) ImplementsPageRuleAction()

func (*EmailObfuscation) UnmarshalJSON

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

type EmailObfuscationID

type EmailObfuscationID string

Turn on or off **Email Obfuscation**.

const (
	EmailObfuscationIDEmailObfuscation EmailObfuscationID = "email_obfuscation"
)

func (EmailObfuscationID) IsKnown

func (r EmailObfuscationID) IsKnown() bool

type EmailObfuscationParam

type EmailObfuscationParam struct {
	// Turn on or off **Email Obfuscation**.
	ID param.Field[EmailObfuscationID] `json:"id"`
	// The status of Email Obfuscation.
	Value param.Field[EmailObfuscationValue] `json:"value"`
}

func (EmailObfuscationParam) ImplementsPageRuleEditParamsActionUnion

func (r EmailObfuscationParam) ImplementsPageRuleEditParamsActionUnion()

func (EmailObfuscationParam) ImplementsPageRuleNewParamsActionUnion

func (r EmailObfuscationParam) ImplementsPageRuleNewParamsActionUnion()

func (EmailObfuscationParam) ImplementsPageRuleUpdateParamsActionUnion

func (r EmailObfuscationParam) ImplementsPageRuleUpdateParamsActionUnion()

func (EmailObfuscationParam) MarshalJSON

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

type EmailObfuscationValue

type EmailObfuscationValue string

The status of Email Obfuscation.

const (
	EmailObfuscationValueOn  EmailObfuscationValue = "on"
	EmailObfuscationValueOff EmailObfuscationValue = "off"
)

func (EmailObfuscationValue) IsKnown

func (r EmailObfuscationValue) IsKnown() bool

type EntitlementListParams

type EntitlementListParams struct {
	// Identifier tag.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type EntitlementListResponse

type EntitlementListResponse struct {
	// Entitlement identifier — equal to the feature key.
	ID string `json:"id" api:"required"`
	// Represents the allocation value for an entitlement. The shape of `value` depends
	// on `type`: `bool` uses a boolean, `max_count` uses an integer, `enum_number`
	// uses an array of numbers, `range` uses an object with `min` and `max` integer
	// fields, and `string` uses a string.
	Allocation EntitlementListResponseAllocation `json:"allocation" api:"required"`
	// ISO 8601 timestamp (microsecond precision, no timezone offset) when the
	// entitlement was created. Format: `YYYY-MM-DDTHH:MM:SS.ffffff`.
	CreatedDate string `json:"created_date" api:"required"`
	// ISO 8601 timestamp when the entitlement was deleted, or empty string if not
	// deleted.
	DeletedDate string `json:"deleted_date" api:"required"`
	// ISO 8601 timestamp (microsecond precision, no timezone offset) when the
	// entitlement was last edited.
	EditedDate string `json:"edited_date" api:"required"`
	// Describes a product feature associated with an entitlement.
	Feature EntitlementListResponseFeature `json:"feature" api:"required"`
	JSON    entitlementListResponseJSON    `json:"-"`
}

A single entitlement record for a zone or account.

func (*EntitlementListResponse) UnmarshalJSON

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

type EntitlementListResponseAllocation

type EntitlementListResponseAllocation struct {
	// Allocation type discriminator.
	Type EntitlementListResponseAllocationType `json:"type" api:"required"`
	// Contains the allocation value whose concrete type the `type` field determines:
	// bool yields a boolean, max_count yields an integer, enum_number yields an array
	// of numbers, range yields an object with `min` and `max`, and string yields a
	// string.
	Value EntitlementListResponseAllocationValueUnion `json:"value" api:"required"`
	JSON  entitlementListResponseAllocationJSON       `json:"-"`
}

Represents the allocation value for an entitlement. The shape of `value` depends on `type`: `bool` uses a boolean, `max_count` uses an integer, `enum_number` uses an array of numbers, `range` uses an object with `min` and `max` integer fields, and `string` uses a string.

func (*EntitlementListResponseAllocation) UnmarshalJSON

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

type EntitlementListResponseAllocationType

type EntitlementListResponseAllocationType string

Allocation type discriminator.

const (
	EntitlementListResponseAllocationTypeBool       EntitlementListResponseAllocationType = "bool"
	EntitlementListResponseAllocationTypeMaxCount   EntitlementListResponseAllocationType = "max_count"
	EntitlementListResponseAllocationTypeEnumNumber EntitlementListResponseAllocationType = "enum_number"
	EntitlementListResponseAllocationTypeRange      EntitlementListResponseAllocationType = "range"
	EntitlementListResponseAllocationTypeString     EntitlementListResponseAllocationType = "string"
)

func (EntitlementListResponseAllocationType) IsKnown

type EntitlementListResponseAllocationValueArray

type EntitlementListResponseAllocationValueArray []float64

func (EntitlementListResponseAllocationValueArray) ImplementsEntitlementListResponseAllocationValueUnion

func (r EntitlementListResponseAllocationValueArray) ImplementsEntitlementListResponseAllocationValueUnion()

type EntitlementListResponseAllocationValueObject

type EntitlementListResponseAllocationValueObject struct {
	Max  int64                                            `json:"max" api:"required"`
	Min  int64                                            `json:"min" api:"required"`
	JSON entitlementListResponseAllocationValueObjectJSON `json:"-"`
}

func (EntitlementListResponseAllocationValueObject) ImplementsEntitlementListResponseAllocationValueUnion

func (r EntitlementListResponseAllocationValueObject) ImplementsEntitlementListResponseAllocationValueUnion()

func (*EntitlementListResponseAllocationValueObject) UnmarshalJSON

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

type EntitlementListResponseAllocationValueUnion

type EntitlementListResponseAllocationValueUnion interface {
	ImplementsEntitlementListResponseAllocationValueUnion()
}

Contains the allocation value whose concrete type the `type` field determines: bool yields a boolean, max_count yields an integer, enum_number yields an array of numbers, range yields an object with `min` and `max`, and string yields a string.

Union satisfied by shared.UnionBool, shared.UnionInt, shared.UnionString, EntitlementListResponseAllocationValueArray or EntitlementListResponseAllocationValueObject.

type EntitlementListResponseFeature

type EntitlementListResponseFeature struct {
	// Numeric identifier of the feature.
	ID int64 `json:"id" api:"required"`
	// The logical grouping (set) this feature belongs to.
	FeatureSet string `json:"feature_set" api:"required"`
	// Unique string key for the feature.
	Key string `json:"key" api:"required"`
	// Human-readable name of the feature.
	Name string                             `json:"name" api:"required"`
	JSON entitlementListResponseFeatureJSON `json:"-"`
}

Describes a product feature associated with an entitlement.

func (*EntitlementListResponseFeature) UnmarshalJSON

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

type EntitlementService

type EntitlementService struct {
	Options []option.RequestOption
}

EntitlementService 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 NewEntitlementService method instead.

func NewEntitlementService

func NewEntitlementService(opts ...option.RequestOption) (r *EntitlementService)

NewEntitlementService 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 (*EntitlementService) List

Returns the list of entitlements (features and their allocations) for a given zone. Each entitlement describes a product feature the zone is permitted to use and the allocation value (boolean, count, range, enum, or string) that governs its behaviour.

func (*EntitlementService) ListAutoPaging

Returns the list of entitlements (features and their allocations) for a given zone. Each entitlement describes a product feature the zone is permitted to use and the allocation value (boolean, count, range, enum, or string) that governs its behaviour.

type EnvironmentDeleteParams

type EnvironmentDeleteParams struct {
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type EnvironmentDeleteResponse

type EnvironmentDeleteResponse struct {
	Environments []EnvironmentDeleteResponseEnvironment `json:"environments" api:"required"`
	JSON         environmentDeleteResponseJSON          `json:"-"`
}

func (*EnvironmentDeleteResponse) UnmarshalJSON

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

type EnvironmentDeleteResponseEnvelope

type EnvironmentDeleteResponseEnvelope struct {
	Errors   []shared.ResponseInfo                 `json:"errors" api:"required"`
	Messages []shared.ResponseInfo                 `json:"messages" api:"required"`
	Result   EnvironmentDeleteResponse             `json:"result" api:"required"`
	Success  bool                                  `json:"success" api:"required"`
	JSON     environmentDeleteResponseEnvelopeJSON `json:"-"`
}

func (*EnvironmentDeleteResponseEnvelope) UnmarshalJSON

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

type EnvironmentDeleteResponseEnvironment

type EnvironmentDeleteResponseEnvironment struct {
	Expression         string `json:"expression" api:"required"`
	LockedOnDeployment bool   `json:"locked_on_deployment" api:"required,nullable"`
	Name               string `json:"name" api:"required"`
	// Pagination cursors for the list of items. Pass a value as the `cursor` query
	// parameter to request the next or previous set of records. Cursors are opaque
	// string tokens; make no assumptions about their content or length.
	Position          rules.ListCursor                         `json:"position" api:"required"`
	Ref               string                                   `json:"ref" api:"required"`
	Version           int64                                    `json:"version" api:"required,nullable"`
	HTTPApplicationID string                                   `json:"http_application_id" api:"nullable"`
	JSON              environmentDeleteResponseEnvironmentJSON `json:"-"`
}

func (*EnvironmentDeleteResponseEnvironment) UnmarshalJSON

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

type EnvironmentEditParams

type EnvironmentEditParams struct {
	ZoneID       param.Field[string]                             `path:"zone_id" api:"required"`
	Environments param.Field[[]EnvironmentEditParamsEnvironment] `json:"environments" api:"required"`
}

func (EnvironmentEditParams) MarshalJSON

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

type EnvironmentEditParamsEnvironment

type EnvironmentEditParamsEnvironment struct {
	Expression         param.Field[string] `json:"expression" api:"required"`
	LockedOnDeployment param.Field[bool]   `json:"locked_on_deployment" api:"required"`
	Name               param.Field[string] `json:"name" api:"required"`
	// Pagination cursors for the list of items. Pass a value as the `cursor` query
	// parameter to request the next or previous set of records. Cursors are opaque
	// string tokens; make no assumptions about their content or length.
	Position          param.Field[rules.ListCursorParam] `json:"position" api:"required"`
	Ref               param.Field[string]                `json:"ref" api:"required"`
	Version           param.Field[int64]                 `json:"version" api:"required"`
	HTTPApplicationID param.Field[string]                `json:"http_application_id"`
}

func (EnvironmentEditParamsEnvironment) MarshalJSON

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

type EnvironmentEditResponse

type EnvironmentEditResponse struct {
	Environments []EnvironmentEditResponseEnvironment `json:"environments" api:"required"`
	JSON         environmentEditResponseJSON          `json:"-"`
}

func (*EnvironmentEditResponse) UnmarshalJSON

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

type EnvironmentEditResponseEnvelope

type EnvironmentEditResponseEnvelope struct {
	Errors   []shared.ResponseInfo               `json:"errors" api:"required"`
	Messages []shared.ResponseInfo               `json:"messages" api:"required"`
	Result   EnvironmentEditResponse             `json:"result" api:"required"`
	Success  bool                                `json:"success" api:"required"`
	JSON     environmentEditResponseEnvelopeJSON `json:"-"`
}

func (*EnvironmentEditResponseEnvelope) UnmarshalJSON

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

type EnvironmentEditResponseEnvironment

type EnvironmentEditResponseEnvironment struct {
	Expression         string `json:"expression" api:"required"`
	LockedOnDeployment bool   `json:"locked_on_deployment" api:"required,nullable"`
	Name               string `json:"name" api:"required"`
	// Pagination cursors for the list of items. Pass a value as the `cursor` query
	// parameter to request the next or previous set of records. Cursors are opaque
	// string tokens; make no assumptions about their content or length.
	Position          rules.ListCursor                       `json:"position" api:"required"`
	Ref               string                                 `json:"ref" api:"required"`
	Version           int64                                  `json:"version" api:"required,nullable"`
	HTTPApplicationID string                                 `json:"http_application_id" api:"nullable"`
	JSON              environmentEditResponseEnvironmentJSON `json:"-"`
}

func (*EnvironmentEditResponseEnvironment) UnmarshalJSON

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

type EnvironmentListParams

type EnvironmentListParams struct {
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type EnvironmentListResponse

type EnvironmentListResponse struct {
	Environments []EnvironmentListResponseEnvironment `json:"environments" api:"required"`
	JSON         environmentListResponseJSON          `json:"-"`
}

func (*EnvironmentListResponse) UnmarshalJSON

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

type EnvironmentListResponseEnvelope

type EnvironmentListResponseEnvelope struct {
	Errors   []shared.ResponseInfo               `json:"errors" api:"required"`
	Messages []shared.ResponseInfo               `json:"messages" api:"required"`
	Result   EnvironmentListResponse             `json:"result" api:"required"`
	Success  bool                                `json:"success" api:"required"`
	JSON     environmentListResponseEnvelopeJSON `json:"-"`
}

func (*EnvironmentListResponseEnvelope) UnmarshalJSON

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

type EnvironmentListResponseEnvironment

type EnvironmentListResponseEnvironment struct {
	Expression         string `json:"expression" api:"required"`
	LockedOnDeployment bool   `json:"locked_on_deployment" api:"required,nullable"`
	Name               string `json:"name" api:"required"`
	// Pagination cursors for the list of items. Pass a value as the `cursor` query
	// parameter to request the next or previous set of records. Cursors are opaque
	// string tokens; make no assumptions about their content or length.
	Position          rules.ListCursor                       `json:"position" api:"required"`
	Ref               string                                 `json:"ref" api:"required"`
	Version           int64                                  `json:"version" api:"required,nullable"`
	HTTPApplicationID string                                 `json:"http_application_id" api:"nullable"`
	JSON              environmentListResponseEnvironmentJSON `json:"-"`
}

func (*EnvironmentListResponseEnvironment) UnmarshalJSON

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

type EnvironmentNewParams

type EnvironmentNewParams struct {
	ZoneID       param.Field[string]                            `path:"zone_id" api:"required"`
	Environments param.Field[[]EnvironmentNewParamsEnvironment] `json:"environments" api:"required"`
}

func (EnvironmentNewParams) MarshalJSON

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

type EnvironmentNewParamsEnvironment

type EnvironmentNewParamsEnvironment struct {
	Expression         param.Field[string] `json:"expression" api:"required"`
	LockedOnDeployment param.Field[bool]   `json:"locked_on_deployment" api:"required"`
	Name               param.Field[string] `json:"name" api:"required"`
	// Pagination cursors for the list of items. Pass a value as the `cursor` query
	// parameter to request the next or previous set of records. Cursors are opaque
	// string tokens; make no assumptions about their content or length.
	Position          param.Field[rules.ListCursorParam] `json:"position" api:"required"`
	Ref               param.Field[string]                `json:"ref" api:"required"`
	Version           param.Field[int64]                 `json:"version" api:"required"`
	HTTPApplicationID param.Field[string]                `json:"http_application_id"`
}

func (EnvironmentNewParamsEnvironment) MarshalJSON

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

type EnvironmentNewResponse

type EnvironmentNewResponse struct {
	Environments []EnvironmentNewResponseEnvironment `json:"environments" api:"required"`
	JSON         environmentNewResponseJSON          `json:"-"`
}

func (*EnvironmentNewResponse) UnmarshalJSON

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

type EnvironmentNewResponseEnvelope

type EnvironmentNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo              `json:"errors" api:"required"`
	Messages []shared.ResponseInfo              `json:"messages" api:"required"`
	Result   EnvironmentNewResponse             `json:"result" api:"required"`
	Success  bool                               `json:"success" api:"required"`
	JSON     environmentNewResponseEnvelopeJSON `json:"-"`
}

func (*EnvironmentNewResponseEnvelope) UnmarshalJSON

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

type EnvironmentNewResponseEnvironment

type EnvironmentNewResponseEnvironment struct {
	Expression         string `json:"expression" api:"required"`
	LockedOnDeployment bool   `json:"locked_on_deployment" api:"required,nullable"`
	Name               string `json:"name" api:"required"`
	// Pagination cursors for the list of items. Pass a value as the `cursor` query
	// parameter to request the next or previous set of records. Cursors are opaque
	// string tokens; make no assumptions about their content or length.
	Position          rules.ListCursor                      `json:"position" api:"required"`
	Ref               string                                `json:"ref" api:"required"`
	Version           int64                                 `json:"version" api:"required,nullable"`
	HTTPApplicationID string                                `json:"http_application_id" api:"nullable"`
	JSON              environmentNewResponseEnvironmentJSON `json:"-"`
}

func (*EnvironmentNewResponseEnvironment) UnmarshalJSON

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

type EnvironmentRollbackParams

type EnvironmentRollbackParams struct {
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type EnvironmentRollbackResponse

type EnvironmentRollbackResponse struct {
	Environments []EnvironmentRollbackResponseEnvironment `json:"environments" api:"required"`
	JSON         environmentRollbackResponseJSON          `json:"-"`
}

func (*EnvironmentRollbackResponse) UnmarshalJSON

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

type EnvironmentRollbackResponseEnvelope

type EnvironmentRollbackResponseEnvelope struct {
	Errors   []shared.ResponseInfo                   `json:"errors" api:"required"`
	Messages []shared.ResponseInfo                   `json:"messages" api:"required"`
	Result   EnvironmentRollbackResponse             `json:"result" api:"required"`
	Success  bool                                    `json:"success" api:"required"`
	JSON     environmentRollbackResponseEnvelopeJSON `json:"-"`
}

func (*EnvironmentRollbackResponseEnvelope) UnmarshalJSON

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

type EnvironmentRollbackResponseEnvironment

type EnvironmentRollbackResponseEnvironment struct {
	Expression         string `json:"expression" api:"required"`
	LockedOnDeployment bool   `json:"locked_on_deployment" api:"required,nullable"`
	Name               string `json:"name" api:"required"`
	// Pagination cursors for the list of items. Pass a value as the `cursor` query
	// parameter to request the next or previous set of records. Cursors are opaque
	// string tokens; make no assumptions about their content or length.
	Position          rules.ListCursor                           `json:"position" api:"required"`
	Ref               string                                     `json:"ref" api:"required"`
	Version           int64                                      `json:"version" api:"required,nullable"`
	HTTPApplicationID string                                     `json:"http_application_id" api:"nullable"`
	JSON              environmentRollbackResponseEnvironmentJSON `json:"-"`
}

func (*EnvironmentRollbackResponseEnvironment) UnmarshalJSON

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

type EnvironmentService

type EnvironmentService struct {
	Options []option.RequestOption
}

EnvironmentService 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 NewEnvironmentService method instead.

func NewEnvironmentService

func NewEnvironmentService(opts ...option.RequestOption) (r *EnvironmentService)

NewEnvironmentService 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 (*EnvironmentService) Delete

func (r *EnvironmentService) Delete(ctx context.Context, environmentID string, body EnvironmentDeleteParams, opts ...option.RequestOption) (res *EnvironmentDeleteResponse, err error)

Deletes a zone environment by reference identifier.

func (*EnvironmentService) Edit

Applies partial updates to zone environments.

func (*EnvironmentService) List

Lists configured environments for a zone.

func (*EnvironmentService) New

Creates environments for a zone.

func (*EnvironmentService) Rollback

func (r *EnvironmentService) Rollback(ctx context.Context, environmentID string, body EnvironmentRollbackParams, opts ...option.RequestOption) (res *EnvironmentRollbackResponse, err error)

Rolls a zone environment back to its previous version.

func (*EnvironmentService) Update

Replaces the full environment configuration for a zone.

type EnvironmentUpdateParams

type EnvironmentUpdateParams struct {
	ZoneID       param.Field[string]                               `path:"zone_id" api:"required"`
	Environments param.Field[[]EnvironmentUpdateParamsEnvironment] `json:"environments" api:"required"`
}

func (EnvironmentUpdateParams) MarshalJSON

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

type EnvironmentUpdateParamsEnvironment

type EnvironmentUpdateParamsEnvironment struct {
	Expression         param.Field[string] `json:"expression" api:"required"`
	LockedOnDeployment param.Field[bool]   `json:"locked_on_deployment" api:"required"`
	Name               param.Field[string] `json:"name" api:"required"`
	// Pagination cursors for the list of items. Pass a value as the `cursor` query
	// parameter to request the next or previous set of records. Cursors are opaque
	// string tokens; make no assumptions about their content or length.
	Position          param.Field[rules.ListCursorParam] `json:"position" api:"required"`
	Ref               param.Field[string]                `json:"ref" api:"required"`
	Version           param.Field[int64]                 `json:"version" api:"required"`
	HTTPApplicationID param.Field[string]                `json:"http_application_id"`
}

func (EnvironmentUpdateParamsEnvironment) MarshalJSON

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

type EnvironmentUpdateResponse

type EnvironmentUpdateResponse struct {
	Environments []EnvironmentUpdateResponseEnvironment `json:"environments" api:"required"`
	JSON         environmentUpdateResponseJSON          `json:"-"`
}

func (*EnvironmentUpdateResponse) UnmarshalJSON

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

type EnvironmentUpdateResponseEnvelope

type EnvironmentUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo                 `json:"errors" api:"required"`
	Messages []shared.ResponseInfo                 `json:"messages" api:"required"`
	Result   EnvironmentUpdateResponse             `json:"result" api:"required"`
	Success  bool                                  `json:"success" api:"required"`
	JSON     environmentUpdateResponseEnvelopeJSON `json:"-"`
}

func (*EnvironmentUpdateResponseEnvelope) UnmarshalJSON

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

type EnvironmentUpdateResponseEnvironment

type EnvironmentUpdateResponseEnvironment struct {
	Expression         string `json:"expression" api:"required"`
	LockedOnDeployment bool   `json:"locked_on_deployment" api:"required,nullable"`
	Name               string `json:"name" api:"required"`
	// Pagination cursors for the list of items. Pass a value as the `cursor` query
	// parameter to request the next or previous set of records. Cursors are opaque
	// string tokens; make no assumptions about their content or length.
	Position          rules.ListCursor                         `json:"position" api:"required"`
	Ref               string                                   `json:"ref" api:"required"`
	Version           int64                                    `json:"version" api:"required,nullable"`
	HTTPApplicationID string                                   `json:"http_application_id" api:"nullable"`
	JSON              environmentUpdateResponseEnvironmentJSON `json:"-"`
}

func (*EnvironmentUpdateResponseEnvironment) UnmarshalJSON

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

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 H2Prioritization

type H2Prioritization struct {
	// ID of the zone setting.
	ID H2PrioritizationID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value H2PrioritizationValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable H2PrioritizationEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time            `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       h2PrioritizationJSON `json:"-"`
}

HTTP/2 Edge Prioritization optimises the delivery of resources served through HTTP/2 to improve page load performance. It also supports fine control of content delivery when used in conjunction with Workers.

func (*H2Prioritization) UnmarshalJSON

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

type H2PrioritizationEditable

type H2PrioritizationEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	H2PrioritizationEditableTrue  H2PrioritizationEditable = true
	H2PrioritizationEditableFalse H2PrioritizationEditable = false
)

func (H2PrioritizationEditable) IsKnown

func (r H2PrioritizationEditable) IsKnown() bool

type H2PrioritizationID

type H2PrioritizationID string

ID of the zone setting.

const (
	H2PrioritizationIDH2Prioritization H2PrioritizationID = "h2_prioritization"
)

func (H2PrioritizationID) IsKnown

func (r H2PrioritizationID) IsKnown() bool

type H2PrioritizationValueArray

type H2PrioritizationValueArray []string

func (H2PrioritizationValueArray) ImplementsH2PrioritizationValueUnion

func (r H2PrioritizationValueArray) ImplementsH2PrioritizationValueUnion()

type H2PrioritizationValueUnion

type H2PrioritizationValueUnion interface {
	ImplementsH2PrioritizationValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or H2PrioritizationValueArray.

type HTTP2

type HTTP2 struct {
	// ID of the zone setting.
	ID HTTP2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value HTTP2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable HTTP2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       http2JSON `json:"-"`
}

HTTP2 enabled for this zone.

func (*HTTP2) UnmarshalJSON

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

type HTTP2Editable

type HTTP2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	HTTP2EditableTrue  HTTP2Editable = true
	HTTP2EditableFalse HTTP2Editable = false
)

func (HTTP2Editable) IsKnown

func (r HTTP2Editable) IsKnown() bool

type HTTP2ID

type HTTP2ID string

ID of the zone setting.

const (
	HTTP2IDHTTP2 HTTP2ID = "http2"
)

func (HTTP2ID) IsKnown

func (r HTTP2ID) IsKnown() bool

type HTTP2ValueArray

type HTTP2ValueArray []string

func (HTTP2ValueArray) ImplementsHTTP2ValueUnion

func (r HTTP2ValueArray) ImplementsHTTP2ValueUnion()

type HTTP2ValueUnion

type HTTP2ValueUnion interface {
	ImplementsHTTP2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or HTTP2ValueArray.

type HTTP3

type HTTP3 struct {
	// ID of the zone setting.
	ID HTTP3ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value HTTP3ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable HTTP3Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       http3JSON `json:"-"`
}

HTTP3 enabled for this zone.

func (*HTTP3) UnmarshalJSON

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

type HTTP3Editable

type HTTP3Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	HTTP3EditableTrue  HTTP3Editable = true
	HTTP3EditableFalse HTTP3Editable = false
)

func (HTTP3Editable) IsKnown

func (r HTTP3Editable) IsKnown() bool

type HTTP3ID

type HTTP3ID string

ID of the zone setting.

const (
	HTTP3IDHTTP3 HTTP3ID = "http3"
)

func (HTTP3ID) IsKnown

func (r HTTP3ID) IsKnown() bool

type HTTP3ValueArray

type HTTP3ValueArray []string

func (HTTP3ValueArray) ImplementsHTTP3ValueUnion

func (r HTTP3ValueArray) ImplementsHTTP3ValueUnion()

type HTTP3ValueUnion

type HTTP3ValueUnion interface {
	ImplementsHTTP3ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or HTTP3ValueArray.

type HoldDeleteParams

type HoldDeleteParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// If `hold_after` is provided, the hold will be temporarily disabled, then
	// automatically re-enabled by the system at the time specified in this
	// RFC3339-formatted timestamp. Otherwise, the hold will be disabled indefinitely.
	// `hold_after` cannot be provided for CDN-only zones.
	HoldAfter param.Field[string] `query:"hold_after"`
}

func (HoldDeleteParams) URLQuery

func (r HoldDeleteParams) URLQuery() (v url.Values)

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

type HoldDeleteResponseEnvelope

type HoldDeleteResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	Result   ZoneHold              `json:"result" api:"required"`
	// Whether the API call was successful
	Success HoldDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    holdDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*HoldDeleteResponseEnvelope) UnmarshalJSON

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

type HoldDeleteResponseEnvelopeSuccess

type HoldDeleteResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	HoldDeleteResponseEnvelopeSuccessTrue HoldDeleteResponseEnvelopeSuccess = true
)

func (HoldDeleteResponseEnvelopeSuccess) IsKnown

type HoldEditParams

type HoldEditParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// If `hold_after` is provided and future-dated, the hold will be temporarily
	// disabled, then automatically re-enabled by the system at the time specified in
	// this RFC3339-formatted timestamp. A past-dated `hold_after` value will have no
	// effect on an existing, enabled hold. Providing an empty string will set its
	// value to the current time. Providing `null` will disable the hold indefinitely.
	HoldAfter param.Field[string] `json:"hold_after"`
	// If `true`, the zone hold will extend to block any subdomain of the given zone,
	// as well as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with
	// the hostname 'example.com' and include_subdomains=true will block 'example.com',
	// 'staging.example.com', 'api.staging.example.com', etc.
	IncludeSubdomains param.Field[bool] `json:"include_subdomains"`
}

func (HoldEditParams) MarshalJSON

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

type HoldEditResponseEnvelope

type HoldEditResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	Result   ZoneHold              `json:"result" api:"required"`
	// Whether the API call was successful
	Success HoldEditResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    holdEditResponseEnvelopeJSON    `json:"-"`
}

func (*HoldEditResponseEnvelope) UnmarshalJSON

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

type HoldEditResponseEnvelopeSuccess

type HoldEditResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	HoldEditResponseEnvelopeSuccessTrue HoldEditResponseEnvelopeSuccess = true
)

func (HoldEditResponseEnvelopeSuccess) IsKnown

type HoldGetParams

type HoldGetParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type HoldGetResponseEnvelope

type HoldGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	Result   ZoneHold              `json:"result" api:"required"`
	// Whether the API call was successful
	Success HoldGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    holdGetResponseEnvelopeJSON    `json:"-"`
}

func (*HoldGetResponseEnvelope) UnmarshalJSON

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

type HoldGetResponseEnvelopeSuccess

type HoldGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	HoldGetResponseEnvelopeSuccessTrue HoldGetResponseEnvelopeSuccess = true
)

func (HoldGetResponseEnvelopeSuccess) IsKnown

type HoldNewParams

type HoldNewParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// If provided, the zone hold will extend to block any subdomain of the given zone,
	// as well as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with
	// the hostname 'example.com' and include_subdomains=true will block 'example.com',
	// 'staging.example.com', 'api.staging.example.com', etc.
	IncludeSubdomains param.Field[bool] `query:"include_subdomains"`
}

func (HoldNewParams) URLQuery

func (r HoldNewParams) URLQuery() (v url.Values)

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

type HoldNewResponseEnvelope

type HoldNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	Result   ZoneHold              `json:"result" api:"required"`
	// Whether the API call was successful
	Success HoldNewResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    holdNewResponseEnvelopeJSON    `json:"-"`
}

func (*HoldNewResponseEnvelope) UnmarshalJSON

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

type HoldNewResponseEnvelopeSuccess

type HoldNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	HoldNewResponseEnvelopeSuccessTrue HoldNewResponseEnvelopeSuccess = true
)

func (HoldNewResponseEnvelopeSuccess) IsKnown

type HoldService

type HoldService struct {
	Options []option.RequestOption
}

HoldService 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 NewHoldService method instead.

func NewHoldService

func NewHoldService(opts ...option.RequestOption) (r *HoldService)

NewHoldService 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 (*HoldService) Delete

func (r *HoldService) Delete(ctx context.Context, params HoldDeleteParams, opts ...option.RequestOption) (res *ZoneHold, err error)

Stop enforcement of a zone hold on the zone, permanently or temporarily, allowing the creation and activation of zones with this zone's hostname. Existing zone holds can be removed from CDN-only zones when `hold_after` is not provided. Active holds are automatically disabled when a zone transitions to CDN-only mode.

func (*HoldService) Edit

func (r *HoldService) Edit(ctx context.Context, params HoldEditParams, opts ...option.RequestOption) (res *ZoneHold, err error)

Update the `hold_after` and/or `include_subdomains` values on an existing zone hold. The hold is enabled if the `hold_after` date-time value is in the past. Existing zone holds can be removed from CDN-only zones by setting `hold_after` to `null`. Other zone hold updates cannot be made on CDN-only zones. Active holds are automatically disabled when a zone transitions to CDN-only mode.

func (*HoldService) Get

func (r *HoldService) Get(ctx context.Context, query HoldGetParams, opts ...option.RequestOption) (res *ZoneHold, err error)

Retrieve whether the zone is subject to a zone hold, and metadata about the hold.

func (*HoldService) New

func (r *HoldService) New(ctx context.Context, params HoldNewParams, opts ...option.RequestOption) (res *ZoneHold, err error)

Enforce a zone hold on the zone, blocking the creation and activation of zones with this zone's hostname. Zone holds cannot be enabled on CDN-only zones.

type HotlinkProtection

type HotlinkProtection struct {
	// ID of the zone setting.
	ID HotlinkProtectionID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value HotlinkProtectionValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable HotlinkProtectionEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time             `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       hotlinkProtectionJSON `json:"-"`
}

When enabled, the Hotlink Protection option ensures that other sites cannot suck up your bandwidth by building pages that use images hosted on your site. Anytime a request for an image on your site hits Cloudflare, we check to ensure that it's not another site requesting them. People will still be able to download and view images from your page, but other sites won't be able to steal them for use on their own pages. (https://support.cloudflare.com/hc/en-us/articles/200170026).

func (*HotlinkProtection) UnmarshalJSON

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

type HotlinkProtectionEditable

type HotlinkProtectionEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	HotlinkProtectionEditableTrue  HotlinkProtectionEditable = true
	HotlinkProtectionEditableFalse HotlinkProtectionEditable = false
)

func (HotlinkProtectionEditable) IsKnown

func (r HotlinkProtectionEditable) IsKnown() bool

type HotlinkProtectionID

type HotlinkProtectionID string

ID of the zone setting.

const (
	HotlinkProtectionIDHotlinkProtection HotlinkProtectionID = "hotlink_protection"
)

func (HotlinkProtectionID) IsKnown

func (r HotlinkProtectionID) IsKnown() bool

type HotlinkProtectionValueArray

type HotlinkProtectionValueArray []string

func (HotlinkProtectionValueArray) ImplementsHotlinkProtectionValueUnion

func (r HotlinkProtectionValueArray) ImplementsHotlinkProtectionValueUnion()

type HotlinkProtectionValueUnion

type HotlinkProtectionValueUnion interface {
	ImplementsHotlinkProtectionValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or HotlinkProtectionValueArray.

type IPGeolocation

type IPGeolocation struct {
	// Cloudflare adds a CF-IPCountry HTTP header containing the country code that
	// corresponds to the visitor.
	ID IPGeolocationID `json:"id"`
	// The status of adding the IP Geolocation Header.
	Value IPGeolocationValue `json:"value"`
	JSON  ipGeolocationJSON  `json:"-"`
}

func (IPGeolocation) ImplementsPageRuleAction

func (r IPGeolocation) ImplementsPageRuleAction()

func (*IPGeolocation) UnmarshalJSON

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

type IPGeolocationID

type IPGeolocationID string

Cloudflare adds a CF-IPCountry HTTP header containing the country code that corresponds to the visitor.

const (
	IPGeolocationIDIPGeolocation IPGeolocationID = "ip_geolocation"
)

func (IPGeolocationID) IsKnown

func (r IPGeolocationID) IsKnown() bool

type IPGeolocationParam

type IPGeolocationParam struct {
	// Cloudflare adds a CF-IPCountry HTTP header containing the country code that
	// corresponds to the visitor.
	ID param.Field[IPGeolocationID] `json:"id"`
	// The status of adding the IP Geolocation Header.
	Value param.Field[IPGeolocationValue] `json:"value"`
}

func (IPGeolocationParam) ImplementsPageRuleEditParamsActionUnion

func (r IPGeolocationParam) ImplementsPageRuleEditParamsActionUnion()

func (IPGeolocationParam) ImplementsPageRuleNewParamsActionUnion

func (r IPGeolocationParam) ImplementsPageRuleNewParamsActionUnion()

func (IPGeolocationParam) ImplementsPageRuleUpdateParamsActionUnion

func (r IPGeolocationParam) ImplementsPageRuleUpdateParamsActionUnion()

func (IPGeolocationParam) MarshalJSON

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

type IPGeolocationValue

type IPGeolocationValue string

The status of adding the IP Geolocation Header.

const (
	IPGeolocationValueOn  IPGeolocationValue = "on"
	IPGeolocationValueOff IPGeolocationValue = "off"
)

func (IPGeolocationValue) IsKnown

func (r IPGeolocationValue) IsKnown() bool

type IPV6

type IPV6 struct {
	// ID of the zone setting.
	ID IPV6ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value IPV6ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable IPV6Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       ipv6JSON  `json:"-"`
}

Enable IPv6 on all subdomains that are Cloudflare enabled. (https://support.cloudflare.com/hc/en-us/articles/200168586).

func (*IPV6) UnmarshalJSON

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

type IPV6Editable

type IPV6Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	IPV6EditableTrue  IPV6Editable = true
	IPV6EditableFalse IPV6Editable = false
)

func (IPV6Editable) IsKnown

func (r IPV6Editable) IsKnown() bool

type IPV6ID

type IPV6ID string

ID of the zone setting.

const (
	IPV6IDIPV6 IPV6ID = "ipv6"
)

func (IPV6ID) IsKnown

func (r IPV6ID) IsKnown() bool

type IPV6ValueArray

type IPV6ValueArray []string

func (IPV6ValueArray) ImplementsIPV6ValueUnion

func (r IPV6ValueArray) ImplementsIPV6ValueUnion()

type IPV6ValueUnion

type IPV6ValueUnion interface {
	ImplementsIPV6ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or IPV6ValueArray.

type ImageResizing

type ImageResizing struct {
	// ID of the zone setting.
	ID ImageResizingID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value ImageResizingValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable ImageResizingEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time         `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       imageResizingJSON `json:"-"`
}

Image Transformations provides on-demand resizing, conversion and optimization for images served through Cloudflare's network. Refer to the [Image Transformations documentation](https://developers.cloudflare.com/images/) for more information.

func (*ImageResizing) UnmarshalJSON

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

type ImageResizingEditable

type ImageResizingEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	ImageResizingEditableTrue  ImageResizingEditable = true
	ImageResizingEditableFalse ImageResizingEditable = false
)

func (ImageResizingEditable) IsKnown

func (r ImageResizingEditable) IsKnown() bool

type ImageResizingID

type ImageResizingID string

ID of the zone setting.

const (
	ImageResizingIDImageResizing ImageResizingID = "image_resizing"
)

func (ImageResizingID) IsKnown

func (r ImageResizingID) IsKnown() bool

type ImageResizingValueArray

type ImageResizingValueArray []string

func (ImageResizingValueArray) ImplementsImageResizingValueUnion

func (r ImageResizingValueArray) ImplementsImageResizingValueUnion()

type ImageResizingValueUnion

type ImageResizingValueUnion interface {
	ImplementsImageResizingValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or ImageResizingValueArray.

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

The scope associated to the resource group

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 MinTLSVersion

type MinTLSVersion struct {
	// ID of the zone setting.
	ID MinTLSVersionID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value MinTLSVersionValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable MinTLSVersionEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time         `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       minTLSVersionJSON `json:"-"`
}

Only accepts HTTPS requests that use at least the TLS protocol version specified. For example, if TLS 1.1 is selected, TLS 1.0 connections will be rejected, while 1.1, 1.2, and 1.3 (if enabled) will be permitted.

func (*MinTLSVersion) UnmarshalJSON

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

type MinTLSVersionEditable

type MinTLSVersionEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	MinTLSVersionEditableTrue  MinTLSVersionEditable = true
	MinTLSVersionEditableFalse MinTLSVersionEditable = false
)

func (MinTLSVersionEditable) IsKnown

func (r MinTLSVersionEditable) IsKnown() bool

type MinTLSVersionID

type MinTLSVersionID string

ID of the zone setting.

const (
	MinTLSVersionIDMinTLSVersion MinTLSVersionID = "min_tls_version"
)

func (MinTLSVersionID) IsKnown

func (r MinTLSVersionID) IsKnown() bool

type MinTLSVersionValueArray

type MinTLSVersionValueArray []string

func (MinTLSVersionValueArray) ImplementsMinTLSVersionValueUnion

func (r MinTLSVersionValueArray) ImplementsMinTLSVersionValueUnion()

type MinTLSVersionValueUnion

type MinTLSVersionValueUnion interface {
	ImplementsMinTLSVersionValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or MinTLSVersionValueArray.

type Mirage deprecated

type Mirage struct {
	// Cloudflare Mirage reduces bandwidth used by images in mobile browsers. It can
	// accelerate loading of image-heavy websites on very slow mobile connections and
	// HTTP/1.
	ID MirageID `json:"id"`
	// The status of Mirage.
	Value MirageValue `json:"value"`
	JSON  mirageJSON  `json:"-"`
}

Deprecated: Mirage is deprecated. This functionality is no longer supported. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2025-11-03 for further details.

func (Mirage) ImplementsPageRuleAction

func (r Mirage) ImplementsPageRuleAction()

func (*Mirage) UnmarshalJSON

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

type MirageID

type MirageID string

Cloudflare Mirage reduces bandwidth used by images in mobile browsers. It can accelerate loading of image-heavy websites on very slow mobile connections and HTTP/1.

const (
	MirageIDMirage MirageID = "mirage"
)

func (MirageID) IsKnown

func (r MirageID) IsKnown() bool

type MirageParam deprecated

type MirageParam struct {
	// Cloudflare Mirage reduces bandwidth used by images in mobile browsers. It can
	// accelerate loading of image-heavy websites on very slow mobile connections and
	// HTTP/1.
	ID param.Field[MirageID] `json:"id"`
	// The status of Mirage.
	Value param.Field[MirageValue] `json:"value"`
}

Deprecated: Mirage is deprecated. This functionality is no longer supported. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2025-11-03 for further details.

func (MirageParam) ImplementsPageRuleEditParamsActionUnion

func (r MirageParam) ImplementsPageRuleEditParamsActionUnion()

func (MirageParam) ImplementsPageRuleNewParamsActionUnion

func (r MirageParam) ImplementsPageRuleNewParamsActionUnion()

func (MirageParam) ImplementsPageRuleUpdateParamsActionUnion

func (r MirageParam) ImplementsPageRuleUpdateParamsActionUnion()

func (MirageParam) MarshalJSON

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

type MirageValue

type MirageValue string

The status of Mirage.

const (
	MirageValueOn  MirageValue = "on"
	MirageValueOff MirageValue = "off"
)

func (MirageValue) IsKnown

func (r MirageValue) IsKnown() bool

type NEL

type NEL struct {
	// Zone setting identifier.
	ID NELID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value NELValue `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable NELEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       nelJSON   `json:"-"`
}

Enable Network Error Logging reporting on your zone. (Beta)

func (*NEL) UnmarshalJSON

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

type NELEditParams added in v7.10.0

type NELEditParams struct {
	// Identifier of the zone.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// The NEL configuration value.
	Value param.Field[NELEditParamsValue] `json:"value" api:"required"`
}

func (NELEditParams) MarshalJSON added in v7.10.0

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

type NELEditParamsValue added in v7.10.0

type NELEditParamsValue struct {
	// Whether Network Error Logging is enabled for the zone. When enabled, browsers
	// report network errors to Cloudflare's NEL endpoint.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
}

The NEL configuration value.

func (NELEditParamsValue) MarshalJSON added in v7.10.0

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

type NELEditResponseEnvelope added in v7.10.0

type NELEditResponseEnvelope struct {
	Errors   []NELEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []NELEditResponseEnvelopeMessages `json:"messages" api:"required"`
	// A zone-scoped NEL configuration setting.
	Result Setting `json:"result" api:"required"`
	// Whether the API call was successful.
	Success bool                        `json:"success" api:"required"`
	JSON    nelEditResponseEnvelopeJSON `json:"-"`
}

Response envelope for a single NEL setting.

func (*NELEditResponseEnvelope) UnmarshalJSON added in v7.10.0

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

type NELEditResponseEnvelopeErrors added in v7.10.0

type NELEditResponseEnvelopeErrors struct {
	// Error or message code.
	Code int64 `json:"code" api:"required"`
	// Human-readable message.
	Message string                            `json:"message" api:"required"`
	JSON    nelEditResponseEnvelopeErrorsJSON `json:"-"`
}

An API response message or error.

func (*NELEditResponseEnvelopeErrors) UnmarshalJSON added in v7.10.0

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

type NELEditResponseEnvelopeMessages added in v7.10.0

type NELEditResponseEnvelopeMessages struct {
	// Error or message code.
	Code int64 `json:"code" api:"required"`
	// Human-readable message.
	Message string                              `json:"message" api:"required"`
	JSON    nelEditResponseEnvelopeMessagesJSON `json:"-"`
}

An API response message or error.

func (*NELEditResponseEnvelopeMessages) UnmarshalJSON added in v7.10.0

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

type NELEditable

type NELEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	NELEditableTrue  NELEditable = true
	NELEditableFalse NELEditable = false
)

func (NELEditable) IsKnown

func (r NELEditable) IsKnown() bool

type NELGetParams added in v7.10.0

type NELGetParams struct {
	// Identifier of the zone.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type NELGetResponseEnvelope added in v7.10.0

type NELGetResponseEnvelope struct {
	Errors   []NELGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []NELGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// A zone-scoped NEL configuration setting.
	Result Setting `json:"result" api:"required"`
	// Whether the API call was successful.
	Success bool                       `json:"success" api:"required"`
	JSON    nelGetResponseEnvelopeJSON `json:"-"`
}

Response envelope for a single NEL setting.

func (*NELGetResponseEnvelope) UnmarshalJSON added in v7.10.0

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

type NELGetResponseEnvelopeErrors added in v7.10.0

type NELGetResponseEnvelopeErrors struct {
	// Error or message code.
	Code int64 `json:"code" api:"required"`
	// Human-readable message.
	Message string                           `json:"message" api:"required"`
	JSON    nelGetResponseEnvelopeErrorsJSON `json:"-"`
}

An API response message or error.

func (*NELGetResponseEnvelopeErrors) UnmarshalJSON added in v7.10.0

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

type NELGetResponseEnvelopeMessages added in v7.10.0

type NELGetResponseEnvelopeMessages struct {
	// Error or message code.
	Code int64 `json:"code" api:"required"`
	// Human-readable message.
	Message string                             `json:"message" api:"required"`
	JSON    nelGetResponseEnvelopeMessagesJSON `json:"-"`
}

An API response message or error.

func (*NELGetResponseEnvelopeMessages) UnmarshalJSON added in v7.10.0

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

type NELID

type NELID string

Zone setting identifier.

const (
	NELIDNEL NELID = "nel"
)

func (NELID) IsKnown

func (r NELID) IsKnown() bool

type NELService added in v7.10.0

type NELService struct {
	Options []option.RequestOption
}

NELService 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 NewNELService method instead.

func NewNELService added in v7.10.0

func NewNELService(opts ...option.RequestOption) (r *NELService)

NewNELService 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 (*NELService) Edit added in v7.10.0

func (r *NELService) Edit(ctx context.Context, params NELEditParams, opts ...option.RequestOption) (res *Setting, err error)

Updates the Network Error Logging (NEL) setting for a zone. Requires the NEL product feature to be enabled for the zone. The setting controls whether browsers report network errors to Cloudflare's NEL endpoint.

func (*NELService) Get added in v7.10.0

func (r *NELService) Get(ctx context.Context, query NELGetParams, opts ...option.RequestOption) (res *Setting, err error)

Fetches the Network Error Logging (NEL) setting for a zone. NEL allows browsers to report network errors to a configured endpoint. The setting is enabled by default for free and pro zones, and disabled by default for business and enterprise zones unless the NEL product feature is enabled.

type NELValue

type NELValue struct {
	Enabled bool         `json:"enabled"`
	JSON    nelValueJSON `json:"-"`
	// contains filtered or unexported fields
}

Current value of the zone setting.

func (NELValue) AsUnion

func (r NELValue) AsUnion() NELValueUnion

AsUnion returns a NELValueUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are NELValueEnabled, NELValueEnabled, NELValueEnabled, NELValueEnabled, NELValueEnabled.

func (*NELValue) UnmarshalJSON

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

type NELValueEnabled

type NELValueEnabled struct {
	Enabled bool                `json:"enabled"`
	JSON    nelValueEnabledJSON `json:"-"`
}

func (*NELValueEnabled) UnmarshalJSON

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

type NELValueUnion

type NELValueUnion interface {
	// contains filtered or unexported methods
}

Current value of the zone setting.

Union satisfied by NELValueEnabled, NELValueEnabled, NELValueEnabled, NELValueEnabled or NELValueEnabled.

type ObservabilityService

type ObservabilityService struct {
	Options []option.RequestOption
	Tracing *ObservabilityTracingService
}

ObservabilityService 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 NewObservabilityService method instead.

func NewObservabilityService

func NewObservabilityService(opts ...option.RequestOption) (r *ObservabilityService)

NewObservabilityService 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 ObservabilityTracingRuleDeleteParams

type ObservabilityTracingRuleDeleteParams struct {
	// Specify the zone ID.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type ObservabilityTracingRuleDeleteResponse

type ObservabilityTracingRuleDeleteResponse struct {
	// Trace rules in evaluation order.
	Rules []ObservabilityTracingRuleDeleteResponseRule `json:"rules" api:"required"`
	JSON  observabilityTracingRuleDeleteResponseJSON   `json:"-"`
}

func (*ObservabilityTracingRuleDeleteResponse) UnmarshalJSON

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

type ObservabilityTracingRuleDeleteResponseEnvelope

type ObservabilityTracingRuleDeleteResponseEnvelope struct {
	Errors   []ObservabilityTracingRuleDeleteResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityTracingRuleDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ObservabilityTracingRuleDeleteResponse                   `json:"result" api:"required"`
	Success  ObservabilityTracingRuleDeleteResponseEnvelopeSuccess    `json:"success" api:"required"`
	JSON     observabilityTracingRuleDeleteResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityTracingRuleDeleteResponseEnvelope) UnmarshalJSON

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

type ObservabilityTracingRuleDeleteResponseEnvelopeErrors

type ObservabilityTracingRuleDeleteResponseEnvelopeErrors struct {
	Message string                                                   `json:"message" api:"required"`
	JSON    observabilityTracingRuleDeleteResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityTracingRuleDeleteResponseEnvelopeErrors) UnmarshalJSON

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

type ObservabilityTracingRuleDeleteResponseEnvelopeMessages

type ObservabilityTracingRuleDeleteResponseEnvelopeMessages struct {
	Message ObservabilityTracingRuleDeleteResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityTracingRuleDeleteResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityTracingRuleDeleteResponseEnvelopeMessages) UnmarshalJSON

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

type ObservabilityTracingRuleDeleteResponseEnvelopeMessagesMessage

type ObservabilityTracingRuleDeleteResponseEnvelopeMessagesMessage string
const (
	ObservabilityTracingRuleDeleteResponseEnvelopeMessagesMessageSuccessfulRequest ObservabilityTracingRuleDeleteResponseEnvelopeMessagesMessage = "Successful request"
)

func (ObservabilityTracingRuleDeleteResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityTracingRuleDeleteResponseEnvelopeSuccess

type ObservabilityTracingRuleDeleteResponseEnvelopeSuccess bool
const (
	ObservabilityTracingRuleDeleteResponseEnvelopeSuccessTrue ObservabilityTracingRuleDeleteResponseEnvelopeSuccess = true
)

func (ObservabilityTracingRuleDeleteResponseEnvelopeSuccess) IsKnown

type ObservabilityTracingRuleDeleteResponseRule

type ObservabilityTracingRuleDeleteResponseRule struct {
	Action           ObservabilityTracingRuleDeleteResponseRulesAction           `json:"action" api:"required"`
	ActionParameters ObservabilityTracingRuleDeleteResponseRulesActionParameters `json:"action_parameters" api:"required"`
	Description      string                                                      `json:"description" api:"required"`
	Enabled          bool                                                        `json:"enabled" api:"required"`
	// A Rules language expression that selects requests.
	Expression string                                         `json:"expression" api:"required"`
	JSON       observabilityTracingRuleDeleteResponseRuleJSON `json:"-"`
}

func (*ObservabilityTracingRuleDeleteResponseRule) UnmarshalJSON

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

type ObservabilityTracingRuleDeleteResponseRulesAction

type ObservabilityTracingRuleDeleteResponseRulesAction string
const (
	ObservabilityTracingRuleDeleteResponseRulesActionSetTraceSettings ObservabilityTracingRuleDeleteResponseRulesAction = "set_trace_settings"
)

func (ObservabilityTracingRuleDeleteResponseRulesAction) IsKnown

type ObservabilityTracingRuleDeleteResponseRulesActionParameters

type ObservabilityTracingRuleDeleteResponseRulesActionParameters struct {
	// The ratio of requests sampled for tracing, from 0 to 1.
	SamplingRatio float64                                                         `json:"sampling_ratio" api:"required"`
	JSON          observabilityTracingRuleDeleteResponseRulesActionParametersJSON `json:"-"`
}

func (*ObservabilityTracingRuleDeleteResponseRulesActionParameters) UnmarshalJSON

type ObservabilityTracingRuleGetParams

type ObservabilityTracingRuleGetParams struct {
	// Specify the zone ID.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type ObservabilityTracingRuleGetResponse

type ObservabilityTracingRuleGetResponse struct {
	// Trace rules in evaluation order.
	Rules []ObservabilityTracingRuleGetResponseRule `json:"rules" api:"required"`
	JSON  observabilityTracingRuleGetResponseJSON   `json:"-"`
}

func (*ObservabilityTracingRuleGetResponse) UnmarshalJSON

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

type ObservabilityTracingRuleGetResponseEnvelope

type ObservabilityTracingRuleGetResponseEnvelope struct {
	Errors   []ObservabilityTracingRuleGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityTracingRuleGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ObservabilityTracingRuleGetResponse                   `json:"result" api:"required"`
	Success  ObservabilityTracingRuleGetResponseEnvelopeSuccess    `json:"success" api:"required"`
	JSON     observabilityTracingRuleGetResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityTracingRuleGetResponseEnvelope) UnmarshalJSON

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

type ObservabilityTracingRuleGetResponseEnvelopeErrors

type ObservabilityTracingRuleGetResponseEnvelopeErrors struct {
	Message string                                                `json:"message" api:"required"`
	JSON    observabilityTracingRuleGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityTracingRuleGetResponseEnvelopeErrors) UnmarshalJSON

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

type ObservabilityTracingRuleGetResponseEnvelopeMessages

type ObservabilityTracingRuleGetResponseEnvelopeMessages struct {
	Message ObservabilityTracingRuleGetResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityTracingRuleGetResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityTracingRuleGetResponseEnvelopeMessages) UnmarshalJSON

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

type ObservabilityTracingRuleGetResponseEnvelopeMessagesMessage

type ObservabilityTracingRuleGetResponseEnvelopeMessagesMessage string
const (
	ObservabilityTracingRuleGetResponseEnvelopeMessagesMessageSuccessfulRequest ObservabilityTracingRuleGetResponseEnvelopeMessagesMessage = "Successful request"
)

func (ObservabilityTracingRuleGetResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityTracingRuleGetResponseEnvelopeSuccess

type ObservabilityTracingRuleGetResponseEnvelopeSuccess bool
const (
	ObservabilityTracingRuleGetResponseEnvelopeSuccessTrue ObservabilityTracingRuleGetResponseEnvelopeSuccess = true
)

func (ObservabilityTracingRuleGetResponseEnvelopeSuccess) IsKnown

type ObservabilityTracingRuleGetResponseRule

type ObservabilityTracingRuleGetResponseRule struct {
	Action           ObservabilityTracingRuleGetResponseRulesAction           `json:"action" api:"required"`
	ActionParameters ObservabilityTracingRuleGetResponseRulesActionParameters `json:"action_parameters" api:"required"`
	Description      string                                                   `json:"description" api:"required"`
	Enabled          bool                                                     `json:"enabled" api:"required"`
	// A Rules language expression that selects requests.
	Expression string                                      `json:"expression" api:"required"`
	JSON       observabilityTracingRuleGetResponseRuleJSON `json:"-"`
}

func (*ObservabilityTracingRuleGetResponseRule) UnmarshalJSON

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

type ObservabilityTracingRuleGetResponseRulesAction

type ObservabilityTracingRuleGetResponseRulesAction string
const (
	ObservabilityTracingRuleGetResponseRulesActionSetTraceSettings ObservabilityTracingRuleGetResponseRulesAction = "set_trace_settings"
)

func (ObservabilityTracingRuleGetResponseRulesAction) IsKnown

type ObservabilityTracingRuleGetResponseRulesActionParameters

type ObservabilityTracingRuleGetResponseRulesActionParameters struct {
	// The ratio of requests sampled for tracing, from 0 to 1.
	SamplingRatio float64                                                      `json:"sampling_ratio" api:"required"`
	JSON          observabilityTracingRuleGetResponseRulesActionParametersJSON `json:"-"`
}

func (*ObservabilityTracingRuleGetResponseRulesActionParameters) UnmarshalJSON

type ObservabilityTracingRuleService

type ObservabilityTracingRuleService struct {
	Options []option.RequestOption
}

ObservabilityTracingRuleService 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 NewObservabilityTracingRuleService method instead.

func NewObservabilityTracingRuleService

func NewObservabilityTracingRuleService(opts ...option.RequestOption) (r *ObservabilityTracingRuleService)

NewObservabilityTracingRuleService 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 (*ObservabilityTracingRuleService) Delete

Delete every sampling override from a zone's managed Cloudflare Traces ruleset.

func (*ObservabilityTracingRuleService) Get

Retrieve the ordered sampling overrides for a zone's managed Cloudflare Traces ruleset.

func (*ObservabilityTracingRuleService) Update

Replace all sampling overrides in a zone's managed Cloudflare Traces ruleset. Rules are evaluated in the supplied order.

type ObservabilityTracingRuleUpdateParams

type ObservabilityTracingRuleUpdateParams struct {
	// Specify the zone ID.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// Trace rules in evaluation order.
	Rules param.Field[[]ObservabilityTracingRuleUpdateParamsRule] `json:"rules" api:"required"`
}

func (ObservabilityTracingRuleUpdateParams) MarshalJSON

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

type ObservabilityTracingRuleUpdateParamsRule

type ObservabilityTracingRuleUpdateParamsRule struct {
	Action           param.Field[ObservabilityTracingRuleUpdateParamsRulesAction]           `json:"action" api:"required"`
	ActionParameters param.Field[ObservabilityTracingRuleUpdateParamsRulesActionParameters] `json:"action_parameters" api:"required"`
	Description      param.Field[string]                                                    `json:"description" api:"required"`
	Enabled          param.Field[bool]                                                      `json:"enabled" api:"required"`
	// A Rules language expression that selects requests.
	Expression param.Field[string] `json:"expression" api:"required"`
}

func (ObservabilityTracingRuleUpdateParamsRule) MarshalJSON

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

type ObservabilityTracingRuleUpdateParamsRulesAction

type ObservabilityTracingRuleUpdateParamsRulesAction string
const (
	ObservabilityTracingRuleUpdateParamsRulesActionSetTraceSettings ObservabilityTracingRuleUpdateParamsRulesAction = "set_trace_settings"
)

func (ObservabilityTracingRuleUpdateParamsRulesAction) IsKnown

type ObservabilityTracingRuleUpdateParamsRulesActionParameters

type ObservabilityTracingRuleUpdateParamsRulesActionParameters struct {
	// The ratio of requests sampled for tracing, from 0 to 1.
	SamplingRatio param.Field[float64] `json:"sampling_ratio" api:"required"`
}

func (ObservabilityTracingRuleUpdateParamsRulesActionParameters) MarshalJSON

type ObservabilityTracingRuleUpdateResponse

type ObservabilityTracingRuleUpdateResponse struct {
	// Trace rules in evaluation order.
	Rules []ObservabilityTracingRuleUpdateResponseRule `json:"rules" api:"required"`
	JSON  observabilityTracingRuleUpdateResponseJSON   `json:"-"`
}

func (*ObservabilityTracingRuleUpdateResponse) UnmarshalJSON

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

type ObservabilityTracingRuleUpdateResponseEnvelope

type ObservabilityTracingRuleUpdateResponseEnvelope struct {
	Errors   []ObservabilityTracingRuleUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityTracingRuleUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ObservabilityTracingRuleUpdateResponse                   `json:"result" api:"required"`
	Success  ObservabilityTracingRuleUpdateResponseEnvelopeSuccess    `json:"success" api:"required"`
	JSON     observabilityTracingRuleUpdateResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityTracingRuleUpdateResponseEnvelope) UnmarshalJSON

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

type ObservabilityTracingRuleUpdateResponseEnvelopeErrors

type ObservabilityTracingRuleUpdateResponseEnvelopeErrors struct {
	Message string                                                   `json:"message" api:"required"`
	JSON    observabilityTracingRuleUpdateResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityTracingRuleUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type ObservabilityTracingRuleUpdateResponseEnvelopeMessages

type ObservabilityTracingRuleUpdateResponseEnvelopeMessages struct {
	Message ObservabilityTracingRuleUpdateResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityTracingRuleUpdateResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityTracingRuleUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type ObservabilityTracingRuleUpdateResponseEnvelopeMessagesMessage

type ObservabilityTracingRuleUpdateResponseEnvelopeMessagesMessage string
const (
	ObservabilityTracingRuleUpdateResponseEnvelopeMessagesMessageSuccessfulRequest ObservabilityTracingRuleUpdateResponseEnvelopeMessagesMessage = "Successful request"
)

func (ObservabilityTracingRuleUpdateResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityTracingRuleUpdateResponseEnvelopeSuccess

type ObservabilityTracingRuleUpdateResponseEnvelopeSuccess bool
const (
	ObservabilityTracingRuleUpdateResponseEnvelopeSuccessTrue ObservabilityTracingRuleUpdateResponseEnvelopeSuccess = true
)

func (ObservabilityTracingRuleUpdateResponseEnvelopeSuccess) IsKnown

type ObservabilityTracingRuleUpdateResponseRule

type ObservabilityTracingRuleUpdateResponseRule struct {
	Action           ObservabilityTracingRuleUpdateResponseRulesAction           `json:"action" api:"required"`
	ActionParameters ObservabilityTracingRuleUpdateResponseRulesActionParameters `json:"action_parameters" api:"required"`
	Description      string                                                      `json:"description" api:"required"`
	Enabled          bool                                                        `json:"enabled" api:"required"`
	// A Rules language expression that selects requests.
	Expression string                                         `json:"expression" api:"required"`
	JSON       observabilityTracingRuleUpdateResponseRuleJSON `json:"-"`
}

func (*ObservabilityTracingRuleUpdateResponseRule) UnmarshalJSON

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

type ObservabilityTracingRuleUpdateResponseRulesAction

type ObservabilityTracingRuleUpdateResponseRulesAction string
const (
	ObservabilityTracingRuleUpdateResponseRulesActionSetTraceSettings ObservabilityTracingRuleUpdateResponseRulesAction = "set_trace_settings"
)

func (ObservabilityTracingRuleUpdateResponseRulesAction) IsKnown

type ObservabilityTracingRuleUpdateResponseRulesActionParameters

type ObservabilityTracingRuleUpdateResponseRulesActionParameters struct {
	// The ratio of requests sampled for tracing, from 0 to 1.
	SamplingRatio float64                                                         `json:"sampling_ratio" api:"required"`
	JSON          observabilityTracingRuleUpdateResponseRulesActionParametersJSON `json:"-"`
}

func (*ObservabilityTracingRuleUpdateResponseRulesActionParameters) UnmarshalJSON

type ObservabilityTracingService

type ObservabilityTracingService struct {
	Options  []option.RequestOption
	Settings *ObservabilityTracingSettingService
	Rules    *ObservabilityTracingRuleService
}

ObservabilityTracingService 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 NewObservabilityTracingService method instead.

func NewObservabilityTracingService

func NewObservabilityTracingService(opts ...option.RequestOption) (r *ObservabilityTracingService)

NewObservabilityTracingService 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 ObservabilityTracingSettingDeleteParams

type ObservabilityTracingSettingDeleteParams struct {
	// Specify the zone ID.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type ObservabilityTracingSettingDeleteResponse

type ObservabilityTracingSettingDeleteResponse struct {
	// Up to 100 OpenTelemetry destination identifiers that receive traces.
	Destinations []string `json:"destinations" api:"required"`
	// Whether Cloudflare Traces is enabled for the zone.
	Enabled bool `json:"enabled" api:"required"`
	// Whether trace context is sent externally or across a zone boundary.
	ForwardContext bool `json:"forward_context" api:"required"`
	// Whether traces are persisted in Cloudflare.
	Persist bool `json:"persist" api:"required"`
	// When inbound trace context may be continued. Authenticated propagation is not
	// supported yet.
	PropagationPolicy ObservabilityTracingSettingDeleteResponsePropagationPolicy `json:"propagation_policy" api:"required"`
	// The ratio of requests sampled for tracing, from 0 to 1.
	SamplingRatio float64                                       `json:"sampling_ratio" api:"required"`
	JSON          observabilityTracingSettingDeleteResponseJSON `json:"-"`
}

func (*ObservabilityTracingSettingDeleteResponse) UnmarshalJSON

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

type ObservabilityTracingSettingDeleteResponseEnvelope

type ObservabilityTracingSettingDeleteResponseEnvelope struct {
	Errors   []ObservabilityTracingSettingDeleteResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityTracingSettingDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ObservabilityTracingSettingDeleteResponse                   `json:"result" api:"required"`
	Success  ObservabilityTracingSettingDeleteResponseEnvelopeSuccess    `json:"success" api:"required"`
	JSON     observabilityTracingSettingDeleteResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityTracingSettingDeleteResponseEnvelope) UnmarshalJSON

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

type ObservabilityTracingSettingDeleteResponseEnvelopeErrors

type ObservabilityTracingSettingDeleteResponseEnvelopeErrors struct {
	Message string                                                      `json:"message" api:"required"`
	JSON    observabilityTracingSettingDeleteResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityTracingSettingDeleteResponseEnvelopeErrors) UnmarshalJSON

type ObservabilityTracingSettingDeleteResponseEnvelopeMessages

type ObservabilityTracingSettingDeleteResponseEnvelopeMessages struct {
	Message ObservabilityTracingSettingDeleteResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityTracingSettingDeleteResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityTracingSettingDeleteResponseEnvelopeMessages) UnmarshalJSON

type ObservabilityTracingSettingDeleteResponseEnvelopeMessagesMessage

type ObservabilityTracingSettingDeleteResponseEnvelopeMessagesMessage string
const (
	ObservabilityTracingSettingDeleteResponseEnvelopeMessagesMessageSuccessfulRequest ObservabilityTracingSettingDeleteResponseEnvelopeMessagesMessage = "Successful request"
)

func (ObservabilityTracingSettingDeleteResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityTracingSettingDeleteResponseEnvelopeSuccess

type ObservabilityTracingSettingDeleteResponseEnvelopeSuccess bool
const (
	ObservabilityTracingSettingDeleteResponseEnvelopeSuccessTrue ObservabilityTracingSettingDeleteResponseEnvelopeSuccess = true
)

func (ObservabilityTracingSettingDeleteResponseEnvelopeSuccess) IsKnown

type ObservabilityTracingSettingDeleteResponsePropagationPolicy

type ObservabilityTracingSettingDeleteResponsePropagationPolicy string

When inbound trace context may be continued. Authenticated propagation is not supported yet.

const (
	ObservabilityTracingSettingDeleteResponsePropagationPolicyAccept        ObservabilityTracingSettingDeleteResponsePropagationPolicy = "accept"
	ObservabilityTracingSettingDeleteResponsePropagationPolicyAuthenticated ObservabilityTracingSettingDeleteResponsePropagationPolicy = "authenticated"
	ObservabilityTracingSettingDeleteResponsePropagationPolicyReject        ObservabilityTracingSettingDeleteResponsePropagationPolicy = "reject"
)

func (ObservabilityTracingSettingDeleteResponsePropagationPolicy) IsKnown

type ObservabilityTracingSettingGetParams

type ObservabilityTracingSettingGetParams struct {
	// Specify the zone ID.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type ObservabilityTracingSettingGetResponse

type ObservabilityTracingSettingGetResponse struct {
	// Up to 100 OpenTelemetry destination identifiers that receive traces.
	Destinations []string `json:"destinations" api:"required"`
	// Whether Cloudflare Traces is enabled for the zone.
	Enabled bool `json:"enabled" api:"required"`
	// Whether trace context is sent externally or across a zone boundary.
	ForwardContext bool `json:"forward_context" api:"required"`
	// Whether traces are persisted in Cloudflare.
	Persist bool `json:"persist" api:"required"`
	// When inbound trace context may be continued. Authenticated propagation is not
	// supported yet.
	PropagationPolicy ObservabilityTracingSettingGetResponsePropagationPolicy `json:"propagation_policy" api:"required"`
	// The ratio of requests sampled for tracing, from 0 to 1.
	SamplingRatio float64                                    `json:"sampling_ratio" api:"required"`
	JSON          observabilityTracingSettingGetResponseJSON `json:"-"`
}

func (*ObservabilityTracingSettingGetResponse) UnmarshalJSON

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

type ObservabilityTracingSettingGetResponseEnvelope

type ObservabilityTracingSettingGetResponseEnvelope struct {
	Errors   []ObservabilityTracingSettingGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityTracingSettingGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ObservabilityTracingSettingGetResponse                   `json:"result" api:"required"`
	Success  ObservabilityTracingSettingGetResponseEnvelopeSuccess    `json:"success" api:"required"`
	JSON     observabilityTracingSettingGetResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityTracingSettingGetResponseEnvelope) UnmarshalJSON

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

type ObservabilityTracingSettingGetResponseEnvelopeErrors

type ObservabilityTracingSettingGetResponseEnvelopeErrors struct {
	Message string                                                   `json:"message" api:"required"`
	JSON    observabilityTracingSettingGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityTracingSettingGetResponseEnvelopeErrors) UnmarshalJSON

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

type ObservabilityTracingSettingGetResponseEnvelopeMessages

type ObservabilityTracingSettingGetResponseEnvelopeMessages struct {
	Message ObservabilityTracingSettingGetResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityTracingSettingGetResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityTracingSettingGetResponseEnvelopeMessages) UnmarshalJSON

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

type ObservabilityTracingSettingGetResponseEnvelopeMessagesMessage

type ObservabilityTracingSettingGetResponseEnvelopeMessagesMessage string
const (
	ObservabilityTracingSettingGetResponseEnvelopeMessagesMessageSuccessfulRequest ObservabilityTracingSettingGetResponseEnvelopeMessagesMessage = "Successful request"
)

func (ObservabilityTracingSettingGetResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityTracingSettingGetResponseEnvelopeSuccess

type ObservabilityTracingSettingGetResponseEnvelopeSuccess bool
const (
	ObservabilityTracingSettingGetResponseEnvelopeSuccessTrue ObservabilityTracingSettingGetResponseEnvelopeSuccess = true
)

func (ObservabilityTracingSettingGetResponseEnvelopeSuccess) IsKnown

type ObservabilityTracingSettingGetResponsePropagationPolicy

type ObservabilityTracingSettingGetResponsePropagationPolicy string

When inbound trace context may be continued. Authenticated propagation is not supported yet.

const (
	ObservabilityTracingSettingGetResponsePropagationPolicyAccept        ObservabilityTracingSettingGetResponsePropagationPolicy = "accept"
	ObservabilityTracingSettingGetResponsePropagationPolicyAuthenticated ObservabilityTracingSettingGetResponsePropagationPolicy = "authenticated"
	ObservabilityTracingSettingGetResponsePropagationPolicyReject        ObservabilityTracingSettingGetResponsePropagationPolicy = "reject"
)

func (ObservabilityTracingSettingGetResponsePropagationPolicy) IsKnown

type ObservabilityTracingSettingService

type ObservabilityTracingSettingService struct {
	Options []option.RequestOption
}

ObservabilityTracingSettingService 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 NewObservabilityTracingSettingService method instead.

func NewObservabilityTracingSettingService

func NewObservabilityTracingSettingService(opts ...option.RequestOption) (r *ObservabilityTracingSettingService)

NewObservabilityTracingSettingService 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 (*ObservabilityTracingSettingService) Delete

Reset the zone-level Cloudflare Traces settings to their defaults while preserving the sampling rules.

func (*ObservabilityTracingSettingService) Get

Retrieve the zone-level Cloudflare Traces settings.

func (*ObservabilityTracingSettingService) Update

Update the zone-level Cloudflare Traces settings.

type ObservabilityTracingSettingUpdateParams

type ObservabilityTracingSettingUpdateParams struct {
	// Specify the zone ID.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// Up to 100 OpenTelemetry destination identifiers that receive traces.
	Destinations param.Field[[]string] `json:"destinations"`
	// Whether Cloudflare Traces is enabled for the zone.
	Enabled param.Field[bool] `json:"enabled"`
	// Whether trace context is sent externally or across a zone boundary.
	ForwardContext param.Field[bool] `json:"forward_context"`
	// Whether traces are persisted in Cloudflare.
	Persist param.Field[bool] `json:"persist"`
	// When inbound trace context may be continued. Authenticated propagation is not
	// supported yet.
	PropagationPolicy param.Field[ObservabilityTracingSettingUpdateParamsPropagationPolicy] `json:"propagation_policy"`
	// The ratio of requests sampled for tracing, from 0 to 1.
	SamplingRatio param.Field[float64] `json:"sampling_ratio"`
}

func (ObservabilityTracingSettingUpdateParams) MarshalJSON

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

type ObservabilityTracingSettingUpdateParamsPropagationPolicy

type ObservabilityTracingSettingUpdateParamsPropagationPolicy string

When inbound trace context may be continued. Authenticated propagation is not supported yet.

const (
	ObservabilityTracingSettingUpdateParamsPropagationPolicyAccept        ObservabilityTracingSettingUpdateParamsPropagationPolicy = "accept"
	ObservabilityTracingSettingUpdateParamsPropagationPolicyAuthenticated ObservabilityTracingSettingUpdateParamsPropagationPolicy = "authenticated"
	ObservabilityTracingSettingUpdateParamsPropagationPolicyReject        ObservabilityTracingSettingUpdateParamsPropagationPolicy = "reject"
)

func (ObservabilityTracingSettingUpdateParamsPropagationPolicy) IsKnown

type ObservabilityTracingSettingUpdateResponse

type ObservabilityTracingSettingUpdateResponse struct {
	// Up to 100 OpenTelemetry destination identifiers that receive traces.
	Destinations []string `json:"destinations" api:"required"`
	// Whether Cloudflare Traces is enabled for the zone.
	Enabled bool `json:"enabled" api:"required"`
	// Whether trace context is sent externally or across a zone boundary.
	ForwardContext bool `json:"forward_context" api:"required"`
	// Whether traces are persisted in Cloudflare.
	Persist bool `json:"persist" api:"required"`
	// When inbound trace context may be continued. Authenticated propagation is not
	// supported yet.
	PropagationPolicy ObservabilityTracingSettingUpdateResponsePropagationPolicy `json:"propagation_policy" api:"required"`
	// The ratio of requests sampled for tracing, from 0 to 1.
	SamplingRatio float64                                       `json:"sampling_ratio" api:"required"`
	JSON          observabilityTracingSettingUpdateResponseJSON `json:"-"`
}

func (*ObservabilityTracingSettingUpdateResponse) UnmarshalJSON

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

type ObservabilityTracingSettingUpdateResponseEnvelope

type ObservabilityTracingSettingUpdateResponseEnvelope struct {
	Errors   []ObservabilityTracingSettingUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityTracingSettingUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ObservabilityTracingSettingUpdateResponse                   `json:"result" api:"required"`
	Success  ObservabilityTracingSettingUpdateResponseEnvelopeSuccess    `json:"success" api:"required"`
	JSON     observabilityTracingSettingUpdateResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityTracingSettingUpdateResponseEnvelope) UnmarshalJSON

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

type ObservabilityTracingSettingUpdateResponseEnvelopeErrors

type ObservabilityTracingSettingUpdateResponseEnvelopeErrors struct {
	Message string                                                      `json:"message" api:"required"`
	JSON    observabilityTracingSettingUpdateResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityTracingSettingUpdateResponseEnvelopeErrors) UnmarshalJSON

type ObservabilityTracingSettingUpdateResponseEnvelopeMessages

type ObservabilityTracingSettingUpdateResponseEnvelopeMessages struct {
	Message ObservabilityTracingSettingUpdateResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityTracingSettingUpdateResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityTracingSettingUpdateResponseEnvelopeMessages) UnmarshalJSON

type ObservabilityTracingSettingUpdateResponseEnvelopeMessagesMessage

type ObservabilityTracingSettingUpdateResponseEnvelopeMessagesMessage string
const (
	ObservabilityTracingSettingUpdateResponseEnvelopeMessagesMessageSuccessfulRequest ObservabilityTracingSettingUpdateResponseEnvelopeMessagesMessage = "Successful request"
)

func (ObservabilityTracingSettingUpdateResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityTracingSettingUpdateResponseEnvelopeSuccess

type ObservabilityTracingSettingUpdateResponseEnvelopeSuccess bool
const (
	ObservabilityTracingSettingUpdateResponseEnvelopeSuccessTrue ObservabilityTracingSettingUpdateResponseEnvelopeSuccess = true
)

func (ObservabilityTracingSettingUpdateResponseEnvelopeSuccess) IsKnown

type ObservabilityTracingSettingUpdateResponsePropagationPolicy

type ObservabilityTracingSettingUpdateResponsePropagationPolicy string

When inbound trace context may be continued. Authenticated propagation is not supported yet.

const (
	ObservabilityTracingSettingUpdateResponsePropagationPolicyAccept        ObservabilityTracingSettingUpdateResponsePropagationPolicy = "accept"
	ObservabilityTracingSettingUpdateResponsePropagationPolicyAuthenticated ObservabilityTracingSettingUpdateResponsePropagationPolicy = "authenticated"
	ObservabilityTracingSettingUpdateResponsePropagationPolicyReject        ObservabilityTracingSettingUpdateResponsePropagationPolicy = "reject"
)

func (ObservabilityTracingSettingUpdateResponsePropagationPolicy) IsKnown

type OhttpGatewayDeleteParams

type OhttpGatewayDeleteParams struct {
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type OhttpGatewayDeleteResponse

type OhttpGatewayDeleteResponse string
const (
	OhttpGatewayDeleteResponseOn  OhttpGatewayDeleteResponse = "on"
	OhttpGatewayDeleteResponseOff OhttpGatewayDeleteResponse = "off"
)

func (OhttpGatewayDeleteResponse) IsKnown

func (r OhttpGatewayDeleteResponse) IsKnown() bool

type OhttpGatewayDeleteResponseEnvelope

type OhttpGatewayDeleteResponseEnvelope struct {
	// List of errors, empty on success.
	Errors []OhttpGatewayDeleteResponseEnvelopeErrors `json:"errors" api:"required"`
	// List of informational messages, empty on success.
	Messages []OhttpGatewayDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   OhttpGatewayDeleteResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success bool                                   `json:"success" api:"required"`
	JSON    ohttpGatewayDeleteResponseEnvelopeJSON `json:"-"`
}

Standard Cloudflare API response wrapping the result of an operation.

func (*OhttpGatewayDeleteResponseEnvelope) UnmarshalJSON

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

type OhttpGatewayDeleteResponseEnvelopeErrors

type OhttpGatewayDeleteResponseEnvelopeErrors struct {
	// Numeric error code.
	Code int64 `json:"code" api:"required"`
	// Human-readable error message.
	Message string                                       `json:"message" api:"required"`
	JSON    ohttpGatewayDeleteResponseEnvelopeErrorsJSON `json:"-"`
}

Represents an error that the API returns.

func (*OhttpGatewayDeleteResponseEnvelopeErrors) UnmarshalJSON

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

type OhttpGatewayDeleteResponseEnvelopeMessages

type OhttpGatewayDeleteResponseEnvelopeMessages struct {
	// Numeric message code.
	Code int64 `json:"code" api:"required"`
	// Human-readable message.
	Message string                                         `json:"message" api:"required"`
	JSON    ohttpGatewayDeleteResponseEnvelopeMessagesJSON `json:"-"`
}

Represents an informational message that the API returns.

func (*OhttpGatewayDeleteResponseEnvelopeMessages) UnmarshalJSON

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

type OhttpGatewayGetParams

type OhttpGatewayGetParams struct {
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type OhttpGatewayGetResponse

type OhttpGatewayGetResponse string
const (
	OhttpGatewayGetResponseOn  OhttpGatewayGetResponse = "on"
	OhttpGatewayGetResponseOff OhttpGatewayGetResponse = "off"
)

func (OhttpGatewayGetResponse) IsKnown

func (r OhttpGatewayGetResponse) IsKnown() bool

type OhttpGatewayGetResponseEnvelope

type OhttpGatewayGetResponseEnvelope struct {
	// List of errors, empty on success.
	Errors []OhttpGatewayGetResponseEnvelopeErrors `json:"errors" api:"required"`
	// List of informational messages, empty on success.
	Messages []OhttpGatewayGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   OhttpGatewayGetResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success bool                                `json:"success" api:"required"`
	JSON    ohttpGatewayGetResponseEnvelopeJSON `json:"-"`
}

Standard Cloudflare API response wrapping the result of an operation.

func (*OhttpGatewayGetResponseEnvelope) UnmarshalJSON

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

type OhttpGatewayGetResponseEnvelopeErrors

type OhttpGatewayGetResponseEnvelopeErrors struct {
	// Numeric error code.
	Code int64 `json:"code" api:"required"`
	// Human-readable error message.
	Message string                                    `json:"message" api:"required"`
	JSON    ohttpGatewayGetResponseEnvelopeErrorsJSON `json:"-"`
}

Represents an error that the API returns.

func (*OhttpGatewayGetResponseEnvelopeErrors) UnmarshalJSON

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

type OhttpGatewayGetResponseEnvelopeMessages

type OhttpGatewayGetResponseEnvelopeMessages struct {
	// Numeric message code.
	Code int64 `json:"code" api:"required"`
	// Human-readable message.
	Message string                                      `json:"message" api:"required"`
	JSON    ohttpGatewayGetResponseEnvelopeMessagesJSON `json:"-"`
}

Represents an informational message that the API returns.

func (*OhttpGatewayGetResponseEnvelopeMessages) UnmarshalJSON

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

type OhttpGatewayNewParams

type OhttpGatewayNewParams struct {
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type OhttpGatewayNewResponse

type OhttpGatewayNewResponse string
const (
	OhttpGatewayNewResponseOn  OhttpGatewayNewResponse = "on"
	OhttpGatewayNewResponseOff OhttpGatewayNewResponse = "off"
)

func (OhttpGatewayNewResponse) IsKnown

func (r OhttpGatewayNewResponse) IsKnown() bool

type OhttpGatewayNewResponseEnvelope

type OhttpGatewayNewResponseEnvelope struct {
	// List of errors, empty on success.
	Errors []OhttpGatewayNewResponseEnvelopeErrors `json:"errors" api:"required"`
	// List of informational messages, empty on success.
	Messages []OhttpGatewayNewResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   OhttpGatewayNewResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success bool                                `json:"success" api:"required"`
	JSON    ohttpGatewayNewResponseEnvelopeJSON `json:"-"`
}

Standard Cloudflare API response wrapping the result of an operation.

func (*OhttpGatewayNewResponseEnvelope) UnmarshalJSON

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

type OhttpGatewayNewResponseEnvelopeErrors

type OhttpGatewayNewResponseEnvelopeErrors struct {
	// Numeric error code.
	Code int64 `json:"code" api:"required"`
	// Human-readable error message.
	Message string                                    `json:"message" api:"required"`
	JSON    ohttpGatewayNewResponseEnvelopeErrorsJSON `json:"-"`
}

Represents an error that the API returns.

func (*OhttpGatewayNewResponseEnvelopeErrors) UnmarshalJSON

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

type OhttpGatewayNewResponseEnvelopeMessages

type OhttpGatewayNewResponseEnvelopeMessages struct {
	// Numeric message code.
	Code int64 `json:"code" api:"required"`
	// Human-readable message.
	Message string                                      `json:"message" api:"required"`
	JSON    ohttpGatewayNewResponseEnvelopeMessagesJSON `json:"-"`
}

Represents an informational message that the API returns.

func (*OhttpGatewayNewResponseEnvelopeMessages) UnmarshalJSON

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

type OhttpGatewayService

type OhttpGatewayService struct {
	Options []option.RequestOption
}

OhttpGatewayService 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 NewOhttpGatewayService method instead.

func NewOhttpGatewayService

func NewOhttpGatewayService(opts ...option.RequestOption) (r *OhttpGatewayService)

NewOhttpGatewayService 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 (*OhttpGatewayService) Delete

Idempotently disables Oblivious HTTP Gateway for the zone. Requires product subscription to call.

func (*OhttpGatewayService) Get

Returns the state of Oblivious HTTP enablement for the zone. Requires product subscription to call.

func (*OhttpGatewayService) New

Idempotently enables OHTTP Gateway for the zone. Requires product subscription to call.

type OpportunisticEncryption

type OpportunisticEncryption struct {
	// Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted
	// TLS channel. It's not a substitute for HTTPS, but provides additional security
	// for otherwise vulnerable requests.
	ID OpportunisticEncryptionID `json:"id"`
	// The status of Opportunistic Encryption.
	Value OpportunisticEncryptionValue `json:"value"`
	JSON  opportunisticEncryptionJSON  `json:"-"`
}

func (OpportunisticEncryption) ImplementsPageRuleAction

func (r OpportunisticEncryption) ImplementsPageRuleAction()

func (*OpportunisticEncryption) UnmarshalJSON

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

type OpportunisticEncryptionID

type OpportunisticEncryptionID string

Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted TLS channel. It's not a substitute for HTTPS, but provides additional security for otherwise vulnerable requests.

const (
	OpportunisticEncryptionIDOpportunisticEncryption OpportunisticEncryptionID = "opportunistic_encryption"
)

func (OpportunisticEncryptionID) IsKnown

func (r OpportunisticEncryptionID) IsKnown() bool

type OpportunisticEncryptionParam

type OpportunisticEncryptionParam struct {
	// Opportunistic Encryption allows browsers to access HTTP URIs over an encrypted
	// TLS channel. It's not a substitute for HTTPS, but provides additional security
	// for otherwise vulnerable requests.
	ID param.Field[OpportunisticEncryptionID] `json:"id"`
	// The status of Opportunistic Encryption.
	Value param.Field[OpportunisticEncryptionValue] `json:"value"`
}

func (OpportunisticEncryptionParam) ImplementsPageRuleEditParamsActionUnion

func (r OpportunisticEncryptionParam) ImplementsPageRuleEditParamsActionUnion()

func (OpportunisticEncryptionParam) ImplementsPageRuleNewParamsActionUnion

func (r OpportunisticEncryptionParam) ImplementsPageRuleNewParamsActionUnion()

func (OpportunisticEncryptionParam) ImplementsPageRuleUpdateParamsActionUnion

func (r OpportunisticEncryptionParam) ImplementsPageRuleUpdateParamsActionUnion()

func (OpportunisticEncryptionParam) MarshalJSON

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

type OpportunisticEncryptionValue

type OpportunisticEncryptionValue string

The status of Opportunistic Encryption.

const (
	OpportunisticEncryptionValueOn  OpportunisticEncryptionValue = "on"
	OpportunisticEncryptionValueOff OpportunisticEncryptionValue = "off"
)

func (OpportunisticEncryptionValue) IsKnown

func (r OpportunisticEncryptionValue) IsKnown() bool

type OpportunisticOnion

type OpportunisticOnion struct {
	// ID of the zone setting.
	ID OpportunisticOnionID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value OpportunisticOnionValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable OpportunisticOnionEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time              `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       opportunisticOnionJSON `json:"-"`
}

Add an Alt-Svc header to all legitimate requests from Tor, allowing the connection to use our onion services instead of exit nodes.

func (*OpportunisticOnion) UnmarshalJSON

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

type OpportunisticOnionEditable

type OpportunisticOnionEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	OpportunisticOnionEditableTrue  OpportunisticOnionEditable = true
	OpportunisticOnionEditableFalse OpportunisticOnionEditable = false
)

func (OpportunisticOnionEditable) IsKnown

func (r OpportunisticOnionEditable) IsKnown() bool

type OpportunisticOnionID

type OpportunisticOnionID string

ID of the zone setting.

const (
	OpportunisticOnionIDOpportunisticOnion OpportunisticOnionID = "opportunistic_onion"
)

func (OpportunisticOnionID) IsKnown

func (r OpportunisticOnionID) IsKnown() bool

type OpportunisticOnionValueArray

type OpportunisticOnionValueArray []string

func (OpportunisticOnionValueArray) ImplementsOpportunisticOnionValueUnion

func (r OpportunisticOnionValueArray) ImplementsOpportunisticOnionValueUnion()

type OpportunisticOnionValueUnion

type OpportunisticOnionValueUnion interface {
	ImplementsOpportunisticOnionValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or OpportunisticOnionValueArray.

type OrangeToOrange deprecated

type OrangeToOrange struct {
	// ID of the zone setting.
	ID OrangeToOrangeID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value OrangeToOrangeValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable OrangeToOrangeEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time          `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       orangeToOrangeJSON `json:"-"`
}

Orange to Orange (O2O) allows zones on Cloudflare to CNAME to other zones also on Cloudflare.

Deprecated: This setting is deprecated. Orange to Orange (O2O) is applied automatically for eligible zones and no longer requires configuration; this setting only controlled the legacy O2O v1 (Managed CNAME) path. More information at https://developers.cloudflare.com/fundamentals/api/reference/deprecations/

func (*OrangeToOrange) UnmarshalJSON

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

type OrangeToOrangeEditable

type OrangeToOrangeEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	OrangeToOrangeEditableTrue  OrangeToOrangeEditable = true
	OrangeToOrangeEditableFalse OrangeToOrangeEditable = false
)

func (OrangeToOrangeEditable) IsKnown

func (r OrangeToOrangeEditable) IsKnown() bool

type OrangeToOrangeID

type OrangeToOrangeID string

ID of the zone setting.

const (
	OrangeToOrangeIDOrangeToOrange OrangeToOrangeID = "orange_to_orange"
)

func (OrangeToOrangeID) IsKnown

func (r OrangeToOrangeID) IsKnown() bool

type OrangeToOrangeValueArray

type OrangeToOrangeValueArray []string

func (OrangeToOrangeValueArray) ImplementsOrangeToOrangeValueUnion

func (r OrangeToOrangeValueArray) ImplementsOrangeToOrangeValueUnion()

type OrangeToOrangeValueUnion

type OrangeToOrangeValueUnion interface {
	ImplementsOrangeToOrangeValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or OrangeToOrangeValueArray.

type OriginErrorPagePassThru

type OriginErrorPagePassThru struct {
	// Turn on or off Cloudflare error pages generated from issues sent from the origin
	// server. If enabled, this setting triggers error pages issued by the origin.
	ID OriginErrorPagePassThruID `json:"id"`
	// The status of Origin Error Page Passthru.
	Value OriginErrorPagePassThruValue `json:"value"`
	JSON  originErrorPagePassThruJSON  `json:"-"`
}

func (OriginErrorPagePassThru) ImplementsPageRuleAction

func (r OriginErrorPagePassThru) ImplementsPageRuleAction()

func (*OriginErrorPagePassThru) UnmarshalJSON

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

type OriginErrorPagePassThruID

type OriginErrorPagePassThruID string

Turn on or off Cloudflare error pages generated from issues sent from the origin server. If enabled, this setting triggers error pages issued by the origin.

const (
	OriginErrorPagePassThruIDOriginErrorPagePassThru OriginErrorPagePassThruID = "origin_error_page_pass_thru"
)

func (OriginErrorPagePassThruID) IsKnown

func (r OriginErrorPagePassThruID) IsKnown() bool

type OriginErrorPagePassThruParam

type OriginErrorPagePassThruParam struct {
	// Turn on or off Cloudflare error pages generated from issues sent from the origin
	// server. If enabled, this setting triggers error pages issued by the origin.
	ID param.Field[OriginErrorPagePassThruID] `json:"id"`
	// The status of Origin Error Page Passthru.
	Value param.Field[OriginErrorPagePassThruValue] `json:"value"`
}

func (OriginErrorPagePassThruParam) ImplementsPageRuleEditParamsActionUnion

func (r OriginErrorPagePassThruParam) ImplementsPageRuleEditParamsActionUnion()

func (OriginErrorPagePassThruParam) ImplementsPageRuleNewParamsActionUnion

func (r OriginErrorPagePassThruParam) ImplementsPageRuleNewParamsActionUnion()

func (OriginErrorPagePassThruParam) ImplementsPageRuleUpdateParamsActionUnion

func (r OriginErrorPagePassThruParam) ImplementsPageRuleUpdateParamsActionUnion()

func (OriginErrorPagePassThruParam) MarshalJSON

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

type OriginErrorPagePassThruValue

type OriginErrorPagePassThruValue string

The status of Origin Error Page Passthru.

const (
	OriginErrorPagePassThruValueOn  OriginErrorPagePassThruValue = "on"
	OriginErrorPagePassThruValueOff OriginErrorPagePassThruValue = "off"
)

func (OriginErrorPagePassThruValue) IsKnown

func (r OriginErrorPagePassThruValue) IsKnown() bool

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 PlanGetParams

type PlanGetParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type PlanGetResponseEnvelope

type PlanGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	Result   AvailableRatePlan     `json:"result" api:"required"`
	// Whether the API call was successful
	Success PlanGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    planGetResponseEnvelopeJSON    `json:"-"`
}

func (*PlanGetResponseEnvelope) UnmarshalJSON

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

type PlanGetResponseEnvelopeSuccess

type PlanGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	PlanGetResponseEnvelopeSuccessTrue PlanGetResponseEnvelopeSuccess = true
)

func (PlanGetResponseEnvelopeSuccess) IsKnown

type PlanListParams

type PlanListParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type PlanService

type PlanService struct {
	Options []option.RequestOption
}

PlanService 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 NewPlanService method instead.

func NewPlanService

func NewPlanService(opts ...option.RequestOption) (r *PlanService)

NewPlanService 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 (*PlanService) Get

func (r *PlanService) Get(ctx context.Context, planIdentifier string, query PlanGetParams, opts ...option.RequestOption) (res *AvailableRatePlan, err error)

Details of the available plan that the zone can subscribe to.

func (*PlanService) List

Lists available plans the zone can subscribe to.

func (*PlanService) ListAutoPaging

Lists available plans the zone can subscribe to.

type Polish

type Polish struct {
	// Apply options from the Polish feature of the Cloudflare Speed app.
	ID PolishID `json:"id"`
	// The level of Polish you want applied to your origin.
	Value PolishValue `json:"value"`
	JSON  polishJSON  `json:"-"`
}

func (Polish) ImplementsPageRuleAction

func (r Polish) ImplementsPageRuleAction()

func (*Polish) UnmarshalJSON

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

type PolishID

type PolishID string

Apply options from the Polish feature of the Cloudflare Speed app.

const (
	PolishIDPolish PolishID = "polish"
)

func (PolishID) IsKnown

func (r PolishID) IsKnown() bool

type PolishParam

type PolishParam struct {
	// Apply options from the Polish feature of the Cloudflare Speed app.
	ID param.Field[PolishID] `json:"id"`
	// The level of Polish you want applied to your origin.
	Value param.Field[PolishValue] `json:"value"`
}

func (PolishParam) ImplementsPageRuleEditParamsActionUnion

func (r PolishParam) ImplementsPageRuleEditParamsActionUnion()

func (PolishParam) ImplementsPageRuleNewParamsActionUnion

func (r PolishParam) ImplementsPageRuleNewParamsActionUnion()

func (PolishParam) ImplementsPageRuleUpdateParamsActionUnion

func (r PolishParam) ImplementsPageRuleUpdateParamsActionUnion()

func (PolishParam) MarshalJSON

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

type PolishValue

type PolishValue string

The level of Polish you want applied to your origin.

const (
	PolishValueOff      PolishValue = "off"
	PolishValueLossless PolishValue = "lossless"
	PolishValueLossy    PolishValue = "lossy"
)

func (PolishValue) IsKnown

func (r PolishValue) IsKnown() bool

type PrefetchPreload

type PrefetchPreload struct {
	// ID of the zone setting.
	ID PrefetchPreloadID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value PrefetchPreloadValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable PrefetchPreloadEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time           `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       prefetchPreloadJSON `json:"-"`
}

Cloudflare will prefetch any URLs that are included in the response headers. This is limited to Enterprise Zones.

func (*PrefetchPreload) UnmarshalJSON

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

type PrefetchPreloadEditable

type PrefetchPreloadEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	PrefetchPreloadEditableTrue  PrefetchPreloadEditable = true
	PrefetchPreloadEditableFalse PrefetchPreloadEditable = false
)

func (PrefetchPreloadEditable) IsKnown

func (r PrefetchPreloadEditable) IsKnown() bool

type PrefetchPreloadID

type PrefetchPreloadID string

ID of the zone setting.

const (
	PrefetchPreloadIDPrefetchPreload PrefetchPreloadID = "prefetch_preload"
)

func (PrefetchPreloadID) IsKnown

func (r PrefetchPreloadID) IsKnown() bool

type PrefetchPreloadValueArray

type PrefetchPreloadValueArray []string

func (PrefetchPreloadValueArray) ImplementsPrefetchPreloadValueUnion

func (r PrefetchPreloadValueArray) ImplementsPrefetchPreloadValueUnion()

type PrefetchPreloadValueUnion

type PrefetchPreloadValueUnion interface {
	ImplementsPrefetchPreloadValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or PrefetchPreloadValueArray.

type ProxyReadTimeout

type ProxyReadTimeout struct {
	// ID of the zone setting.
	ID ProxyReadTimeoutID `json:"id" api:"required"`
	// Value of the zone setting, in seconds. Notes: Value must be between 1 and 6000
	Value ProxyReadTimeoutValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable ProxyReadTimeoutEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time            `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       proxyReadTimeoutJSON `json:"-"`
}

Maximum time in seconds between two read operations from origin.

func (*ProxyReadTimeout) UnmarshalJSON

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

type ProxyReadTimeoutEditable

type ProxyReadTimeoutEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	ProxyReadTimeoutEditableTrue  ProxyReadTimeoutEditable = true
	ProxyReadTimeoutEditableFalse ProxyReadTimeoutEditable = false
)

func (ProxyReadTimeoutEditable) IsKnown

func (r ProxyReadTimeoutEditable) IsKnown() bool

type ProxyReadTimeoutID

type ProxyReadTimeoutID string

ID of the zone setting.

const (
	ProxyReadTimeoutIDProxyReadTimeout ProxyReadTimeoutID = "proxy_read_timeout"
)

func (ProxyReadTimeoutID) IsKnown

func (r ProxyReadTimeoutID) IsKnown() bool

type ProxyReadTimeoutValueArray

type ProxyReadTimeoutValueArray []string

func (ProxyReadTimeoutValueArray) ImplementsProxyReadTimeoutValueUnion

func (r ProxyReadTimeoutValueArray) ImplementsProxyReadTimeoutValueUnion()

type ProxyReadTimeoutValueUnion

type ProxyReadTimeoutValueUnion interface {
	ImplementsProxyReadTimeoutValueUnion()
}

Value of the zone setting, in seconds. Notes: Value must be between 1 and 6000

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or ProxyReadTimeoutValueArray.

type PseudoIPV4

type PseudoIPV4 struct {
	// Value of the Pseudo IPv4 setting.
	ID PseudoIPV4ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value PseudoIPV4ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable PseudoIPV4Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time      `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       pseudoIPV4JSON `json:"-"`
}

The value set for the Pseudo IPv4 setting.

func (*PseudoIPV4) UnmarshalJSON

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

type PseudoIPV4Editable

type PseudoIPV4Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	PseudoIPV4EditableTrue  PseudoIPV4Editable = true
	PseudoIPV4EditableFalse PseudoIPV4Editable = false
)

func (PseudoIPV4Editable) IsKnown

func (r PseudoIPV4Editable) IsKnown() bool

type PseudoIPV4ID

type PseudoIPV4ID string

Value of the Pseudo IPv4 setting.

const (
	PseudoIPV4IDPseudoIPV4 PseudoIPV4ID = "pseudo_ipv4"
)

func (PseudoIPV4ID) IsKnown

func (r PseudoIPV4ID) IsKnown() bool

type PseudoIPV4ValueArray

type PseudoIPV4ValueArray []string

func (PseudoIPV4ValueArray) ImplementsPseudoIPV4ValueUnion

func (r PseudoIPV4ValueArray) ImplementsPseudoIPV4ValueUnion()

type PseudoIPV4ValueUnion

type PseudoIPV4ValueUnion interface {
	ImplementsPseudoIPV4ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or PseudoIPV4ValueArray.

type RatePlan

type RatePlan = shared.RatePlan

The rate plan applied to the subscription.

This is an alias to an internal type.

type RatePlanGetParams

type RatePlanGetParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type RatePlanGetResponse

type RatePlanGetResponse struct {
	// Plan identifier tag.
	ID string `json:"id"`
	// Array of available components values for the plan.
	Components []RatePlanGetResponseComponent `json:"components"`
	// The monetary unit in which pricing information is displayed.
	Currency string `json:"currency"`
	// The duration of the plan subscription.
	Duration float64 `json:"duration"`
	// The frequency at which you will be billed for this plan.
	Frequency RatePlanGetResponseFrequency `json:"frequency"`
	// The plan name.
	Name string                  `json:"name"`
	JSON ratePlanGetResponseJSON `json:"-"`
}

func (*RatePlanGetResponse) UnmarshalJSON

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

type RatePlanGetResponseComponent

type RatePlanGetResponseComponent struct {
	// The default amount allocated.
	Default float64 `json:"default"`
	// The unique component.
	Name RatePlanGetResponseComponentsName `json:"name"`
	// The unit price of the component.
	UnitPrice float64                          `json:"unit_price"`
	JSON      ratePlanGetResponseComponentJSON `json:"-"`
}

func (*RatePlanGetResponseComponent) UnmarshalJSON

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

type RatePlanGetResponseComponentsName

type RatePlanGetResponseComponentsName string

The unique component.

const (
	RatePlanGetResponseComponentsNameZones                       RatePlanGetResponseComponentsName = "zones"
	RatePlanGetResponseComponentsNamePageRules                   RatePlanGetResponseComponentsName = "page_rules"
	RatePlanGetResponseComponentsNameDedicatedCertificates       RatePlanGetResponseComponentsName = "dedicated_certificates"
	RatePlanGetResponseComponentsNameDedicatedCertificatesCustom RatePlanGetResponseComponentsName = "dedicated_certificates_custom"
)

func (RatePlanGetResponseComponentsName) IsKnown

type RatePlanGetResponseFrequency

type RatePlanGetResponseFrequency string

The frequency at which you will be billed for this plan.

const (
	RatePlanGetResponseFrequencyWeekly    RatePlanGetResponseFrequency = "weekly"
	RatePlanGetResponseFrequencyMonthly   RatePlanGetResponseFrequency = "monthly"
	RatePlanGetResponseFrequencyQuarterly RatePlanGetResponseFrequency = "quarterly"
	RatePlanGetResponseFrequencyYearly    RatePlanGetResponseFrequency = "yearly"
)

func (RatePlanGetResponseFrequency) IsKnown

func (r RatePlanGetResponseFrequency) IsKnown() bool

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 RatePlanService

type RatePlanService struct {
	Options []option.RequestOption
}

RatePlanService 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 NewRatePlanService method instead.

func NewRatePlanService

func NewRatePlanService(opts ...option.RequestOption) (r *RatePlanService)

NewRatePlanService 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 (*RatePlanService) Get

Lists all rate plans the zone can subscribe to.

func (*RatePlanService) GetAutoPaging

Lists all rate plans the zone can subscribe to.

type ResponseBuffering deprecated

type ResponseBuffering struct {
	// Turn on or off whether Cloudflare should wait for an entire file from the origin
	// server before forwarding it to the site visitor. By default, Cloudflare sends
	// packets to the client as they arrive from the origin server.
	ID ResponseBufferingID `json:"id"`
	// The status of Response Buffering
	Value ResponseBufferingValue `json:"value"`
	JSON  responseBufferingJSON  `json:"-"`
}

Deprecated: This page rule is deprecated. This functionality is no longer supported.

func (ResponseBuffering) ImplementsPageRuleAction

func (r ResponseBuffering) ImplementsPageRuleAction()

func (*ResponseBuffering) UnmarshalJSON

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

type ResponseBufferingID

type ResponseBufferingID string

Turn on or off whether Cloudflare should wait for an entire file from the origin server before forwarding it to the site visitor. By default, Cloudflare sends packets to the client as they arrive from the origin server.

const (
	ResponseBufferingIDResponseBuffering ResponseBufferingID = "response_buffering"
)

func (ResponseBufferingID) IsKnown

func (r ResponseBufferingID) IsKnown() bool

type ResponseBufferingParam deprecated

type ResponseBufferingParam struct {
	// Turn on or off whether Cloudflare should wait for an entire file from the origin
	// server before forwarding it to the site visitor. By default, Cloudflare sends
	// packets to the client as they arrive from the origin server.
	ID param.Field[ResponseBufferingID] `json:"id"`
	// The status of Response Buffering
	Value param.Field[ResponseBufferingValue] `json:"value"`
}

Deprecated: This page rule is deprecated. This functionality is no longer supported.

func (ResponseBufferingParam) ImplementsPageRuleEditParamsActionUnion

func (r ResponseBufferingParam) ImplementsPageRuleEditParamsActionUnion()

func (ResponseBufferingParam) ImplementsPageRuleNewParamsActionUnion

func (r ResponseBufferingParam) ImplementsPageRuleNewParamsActionUnion()

func (ResponseBufferingParam) ImplementsPageRuleUpdateParamsActionUnion

func (r ResponseBufferingParam) ImplementsPageRuleUpdateParamsActionUnion()

func (ResponseBufferingParam) MarshalJSON

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

type ResponseBufferingValue

type ResponseBufferingValue string

The status of Response Buffering

const (
	ResponseBufferingValueOn  ResponseBufferingValue = "on"
	ResponseBufferingValueOff ResponseBufferingValue = "off"
)

func (ResponseBufferingValue) IsKnown

func (r ResponseBufferingValue) IsKnown() bool

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 RocketLoader

type RocketLoader struct {
	// Turn on or off Rocket Loader in the Cloudflare Speed app.
	ID RocketLoaderID `json:"id"`
	// The status of Rocket Loader
	Value RocketLoaderValue `json:"value"`
	JSON  rocketLoaderJSON  `json:"-"`
}

func (RocketLoader) ImplementsPageRuleAction

func (r RocketLoader) ImplementsPageRuleAction()

func (*RocketLoader) UnmarshalJSON

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

type RocketLoaderID

type RocketLoaderID string

Turn on or off Rocket Loader in the Cloudflare Speed app.

const (
	RocketLoaderIDRocketLoader RocketLoaderID = "rocket_loader"
)

func (RocketLoaderID) IsKnown

func (r RocketLoaderID) IsKnown() bool

type RocketLoaderParam

type RocketLoaderParam struct {
	// Turn on or off Rocket Loader in the Cloudflare Speed app.
	ID param.Field[RocketLoaderID] `json:"id"`
	// The status of Rocket Loader
	Value param.Field[RocketLoaderValue] `json:"value"`
}

func (RocketLoaderParam) ImplementsPageRuleEditParamsActionUnion

func (r RocketLoaderParam) ImplementsPageRuleEditParamsActionUnion()

func (RocketLoaderParam) ImplementsPageRuleNewParamsActionUnion

func (r RocketLoaderParam) ImplementsPageRuleNewParamsActionUnion()

func (RocketLoaderParam) ImplementsPageRuleUpdateParamsActionUnion

func (r RocketLoaderParam) ImplementsPageRuleUpdateParamsActionUnion()

func (RocketLoaderParam) MarshalJSON

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

type RocketLoaderValue

type RocketLoaderValue string

The status of Rocket Loader

const (
	RocketLoaderValueOn  RocketLoaderValue = "on"
	RocketLoaderValueOff RocketLoaderValue = "off"
)

func (RocketLoaderValue) IsKnown

func (r RocketLoaderValue) IsKnown() bool

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 SSL

type SSL struct {
	// Control options for the SSL feature of the Edge Certificates tab in the
	// Cloudflare SSL/TLS app.
	ID SSLID `json:"id"`
	// The encryption mode that Cloudflare uses to connect to your origin server.
	Value SSLValue `json:"value"`
	JSON  sslJSON  `json:"-"`
}

func (SSL) ImplementsPageRuleAction

func (r SSL) ImplementsPageRuleAction()

func (*SSL) UnmarshalJSON

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

type SSLID

type SSLID string

Control options for the SSL feature of the Edge Certificates tab in the Cloudflare SSL/TLS app.

const (
	SSLIDSSL SSLID = "ssl"
)

func (SSLID) IsKnown

func (r SSLID) IsKnown() bool

type SSLParam

type SSLParam struct {
	// Control options for the SSL feature of the Edge Certificates tab in the
	// Cloudflare SSL/TLS app.
	ID param.Field[SSLID] `json:"id"`
	// The encryption mode that Cloudflare uses to connect to your origin server.
	Value param.Field[SSLValue] `json:"value"`
}

func (SSLParam) ImplementsPageRuleEditParamsActionUnion

func (r SSLParam) ImplementsPageRuleEditParamsActionUnion()

func (SSLParam) ImplementsPageRuleNewParamsActionUnion

func (r SSLParam) ImplementsPageRuleNewParamsActionUnion()

func (SSLParam) ImplementsPageRuleUpdateParamsActionUnion

func (r SSLParam) ImplementsPageRuleUpdateParamsActionUnion()

func (SSLParam) MarshalJSON

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

type SSLRecommender

type SSLRecommender struct {
	// Enrollment value for SSL/TLS Recommender.
	ID SSLRecommenderID `json:"id"`
	// ssl-recommender enrollment setting.
	Enabled bool               `json:"enabled"`
	JSON    sslRecommenderJSON `json:"-"`
}

Enrollment in the SSL/TLS Recommender service which tries to detect and recommend (by sending periodic emails) the most secure SSL/TLS setting your origin servers support.

func (*SSLRecommender) UnmarshalJSON

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

type SSLRecommenderID

type SSLRecommenderID string

Enrollment value for SSL/TLS Recommender.

const (
	SSLRecommenderIDSSLRecommender SSLRecommenderID = "ssl_recommender"
)

func (SSLRecommenderID) IsKnown

func (r SSLRecommenderID) IsKnown() bool

type SSLValue

type SSLValue string

The encryption mode that Cloudflare uses to connect to your origin server.

const (
	SSLValueOff        SSLValue = "off"
	SSLValueFlexible   SSLValue = "flexible"
	SSLValueFull       SSLValue = "full"
	SSLValueStrict     SSLValue = "strict"
	SSLValueOriginPull SSLValue = "origin_pull"
)

func (SSLValue) IsKnown

func (r SSLValue) IsKnown() bool

type SecurityHeaders

type SecurityHeaders struct {
	// ID of the zone's security header.
	ID SecurityHeadersID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SecurityHeadersValue `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SecurityHeadersEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time           `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       securityHeadersJSON `json:"-"`
}

Cloudflare security header for a zone.

func (*SecurityHeaders) UnmarshalJSON

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

type SecurityHeadersEditable

type SecurityHeadersEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SecurityHeadersEditableTrue  SecurityHeadersEditable = true
	SecurityHeadersEditableFalse SecurityHeadersEditable = false
)

func (SecurityHeadersEditable) IsKnown

func (r SecurityHeadersEditable) IsKnown() bool

type SecurityHeadersID

type SecurityHeadersID string

ID of the zone's security header.

const (
	SecurityHeadersIDSecurityHeader SecurityHeadersID = "security_header"
)

func (SecurityHeadersID) IsKnown

func (r SecurityHeadersID) IsKnown() bool

type SecurityHeadersValue

type SecurityHeadersValue struct {
	// This field can have the runtime type of
	// [SecurityHeadersValueStrictTransportSecurityStrictTransportSecurity].
	StrictTransportSecurity interface{}              `json:"strict_transport_security"`
	JSON                    securityHeadersValueJSON `json:"-"`
	// contains filtered or unexported fields
}

Current value of the zone setting.

func (*SecurityHeadersValue) UnmarshalJSON

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

type SecurityHeadersValueStrictTransportSecurity

type SecurityHeadersValueStrictTransportSecurity struct {
	// Strict Transport Security.
	StrictTransportSecurity SecurityHeadersValueStrictTransportSecurityStrictTransportSecurity `json:"strict_transport_security"`
	JSON                    securityHeadersValueStrictTransportSecurityJSON                    `json:"-"`
}

func (*SecurityHeadersValueStrictTransportSecurity) UnmarshalJSON

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

type SecurityHeadersValueStrictTransportSecurityStrictTransportSecurity

type SecurityHeadersValueStrictTransportSecurityStrictTransportSecurity struct {
	// Whether or not strict transport security is enabled.
	Enabled bool `json:"enabled"`
	// Include all subdomains for strict transport security.
	IncludeSubdomains bool `json:"include_subdomains"`
	// Max age in seconds of the strict transport security.
	MaxAge float64 `json:"max_age"`
	// Whether or not to include 'X-Content-Type-Options: nosniff' header.
	Nosniff bool `json:"nosniff"`
	// Enable automatic preload of the HSTS configuration.
	Preload bool                                                                   `json:"preload"`
	JSON    securityHeadersValueStrictTransportSecurityStrictTransportSecurityJSON `json:"-"`
}

Strict Transport Security.

func (*SecurityHeadersValueStrictTransportSecurityStrictTransportSecurity) UnmarshalJSON

type SecurityHeadersValueUnion

type SecurityHeadersValueUnion interface {
	// contains filtered or unexported methods
}

Current value of the zone setting.

Union satisfied by SecurityHeadersValueStrictTransportSecurity, SecurityHeadersValueStrictTransportSecurity, SecurityHeadersValueStrictTransportSecurity, SecurityHeadersValueStrictTransportSecurity or SecurityHeadersValueStrictTransportSecurity.

type SecurityLevel

type SecurityLevel struct {
	// Control options for the **Security Level** feature from the **Security** app.
	ID    SecurityLevelID    `json:"id"`
	Value SecurityLevelValue `json:"value"`
	JSON  securityLevelJSON  `json:"-"`
}

func (SecurityLevel) ImplementsPageRuleAction

func (r SecurityLevel) ImplementsPageRuleAction()

func (*SecurityLevel) UnmarshalJSON

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

type SecurityLevelID

type SecurityLevelID string

Control options for the **Security Level** feature from the **Security** app.

const (
	SecurityLevelIDSecurityLevel SecurityLevelID = "security_level"
)

func (SecurityLevelID) IsKnown

func (r SecurityLevelID) IsKnown() bool

type SecurityLevelParam

type SecurityLevelParam struct {
	// Control options for the **Security Level** feature from the **Security** app.
	ID    param.Field[SecurityLevelID]    `json:"id"`
	Value param.Field[SecurityLevelValue] `json:"value"`
}

func (SecurityLevelParam) ImplementsPageRuleEditParamsActionUnion

func (r SecurityLevelParam) ImplementsPageRuleEditParamsActionUnion()

func (SecurityLevelParam) ImplementsPageRuleNewParamsActionUnion

func (r SecurityLevelParam) ImplementsPageRuleNewParamsActionUnion()

func (SecurityLevelParam) ImplementsPageRuleUpdateParamsActionUnion

func (r SecurityLevelParam) ImplementsPageRuleUpdateParamsActionUnion()

func (SecurityLevelParam) MarshalJSON

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

type SecurityLevelValue

type SecurityLevelValue string
const (
	SecurityLevelValueOff            SecurityLevelValue = "off"
	SecurityLevelValueEssentiallyOff SecurityLevelValue = "essentially_off"
	SecurityLevelValueLow            SecurityLevelValue = "low"
	SecurityLevelValueMedium         SecurityLevelValue = "medium"
	SecurityLevelValueHigh           SecurityLevelValue = "high"
	SecurityLevelValueUnderAttack    SecurityLevelValue = "under_attack"
)

func (SecurityLevelValue) IsKnown

func (r SecurityLevelValue) IsKnown() bool

type ServerSideExcludes

type ServerSideExcludes struct {
	// ID of the zone setting.
	ID ServerSideExcludesID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value ServerSideExcludesValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable ServerSideExcludesEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time              `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       serverSideExcludesJSON `json:"-"`
}

If there is sensitive content on your website that you want visible to real visitors, but that you want to hide from suspicious visitors, all you have to do is wrap the content with Cloudflare SSE tags. Wrap any content that you want to be excluded from suspicious visitors in the following SSE tags: <!--sse--><!--/sse-->. For example: <!--sse--> Bad visitors won't see my phone number, 555-555-5555 <!--/sse-->. Note: SSE only will work with HTML. If you have HTML minification enabled, you won't see the SSE tags in your HTML source when it's served through Cloudflare. SSE will still function in this case, as Cloudflare's HTML minification and SSE functionality occur on-the-fly as the resource moves through our network to the visitor's computer. (https://support.cloudflare.com/hc/en-us/articles/200170036).

func (*ServerSideExcludes) UnmarshalJSON

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

type ServerSideExcludesEditable

type ServerSideExcludesEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	ServerSideExcludesEditableTrue  ServerSideExcludesEditable = true
	ServerSideExcludesEditableFalse ServerSideExcludesEditable = false
)

func (ServerSideExcludesEditable) IsKnown

func (r ServerSideExcludesEditable) IsKnown() bool

type ServerSideExcludesID

type ServerSideExcludesID string

ID of the zone setting.

const (
	ServerSideExcludesIDServerSideExclude ServerSideExcludesID = "server_side_exclude"
)

func (ServerSideExcludesID) IsKnown

func (r ServerSideExcludesID) IsKnown() bool

type ServerSideExcludesValueArray

type ServerSideExcludesValueArray []string

func (ServerSideExcludesValueArray) ImplementsServerSideExcludesValueUnion

func (r ServerSideExcludesValueArray) ImplementsServerSideExcludesValueUnion()

type ServerSideExcludesValueUnion

type ServerSideExcludesValueUnion interface {
	ImplementsServerSideExcludesValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or ServerSideExcludesValueArray.

type Setting added in v7.10.0

type Setting struct {
	// Zone setting identifier.
	ID SettingID `json:"id" api:"required"`
	// Whether the setting is editable. This is false when the zone's plan does not
	// include NEL or the NEL product feature is not enabled.
	Editable bool `json:"editable" api:"required"`
	// When the setting was last modified. A zero value (0001-01-01T00:00:00Z)
	// indicates the setting has never been explicitly set and is using the default
	// value.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The NEL configuration value.
	Value SettingValue `json:"value" api:"required"`
	JSON  settingJSON  `json:"-"`
}

A zone-scoped NEL configuration setting.

func (*Setting) UnmarshalJSON added in v7.10.0

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

type SettingEditParams

type SettingEditParams struct {
	// Identifier
	ZoneID param.Field[string]        `path:"zone_id" api:"required"`
	Body   SettingEditParamsBodyUnion `json:"body" api:"required"`
}

func (SettingEditParams) MarshalJSON

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

type SettingEditParamsBody

type SettingEditParamsBody struct {
	// ssl-recommender enrollment setting.
	Enabled param.Field[bool]        `json:"enabled"`
	Value   param.Field[interface{}] `json:"value"`
}

func (SettingEditParamsBody) MarshalJSON

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

type SettingEditParamsBodyEnabled

type SettingEditParamsBodyEnabled struct {
	// ssl-recommender enrollment setting.
	Enabled param.Field[bool] `json:"enabled"`
}

func (SettingEditParamsBodyEnabled) MarshalJSON

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

type SettingEditParamsBodyUnion

type SettingEditParamsBodyUnion interface {
	// contains filtered or unexported methods
}

Satisfied by zones.SettingEditParamsBodyEnabled, zones.SettingEditParamsBodyValue, SettingEditParamsBody.

type SettingEditParamsBodyValue

type SettingEditParamsBodyValue struct {
	// Value of the zone setting.
	Value param.Field[SettingEditParamsBodyValueValueUnion] `json:"value"`
}

func (SettingEditParamsBodyValue) MarshalJSON

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

type SettingEditParamsBodyValueValue

type SettingEditParamsBodyValueValue struct {
	// Indicates whether or not
	// [cache by device type](https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/)
	// is enabled.
	CacheByDeviceType param.Field[bool] `json:"cache_by_device_type"`
	// Indicates whether or not Cloudflare proxy is enabled.
	Cf param.Field[bool] `json:"cf"`
	// Whether the feature is enabled or not.
	Enabled   param.Field[bool]        `json:"enabled"`
	Hostnames param.Field[interface{}] `json:"hostnames"`
	// Egress pool id which refers to a grouping of dedicated egress IPs through which
	// Cloudflare will connect to origin.
	PoolID                  param.Field[string]      `json:"pool_id"`
	StrictTransportSecurity param.Field[interface{}] `json:"strict_transport_security"`
	// Indicates whether or not site is powered by WordPress.
	Wordpress param.Field[bool] `json:"wordpress"`
	// Indicates whether or not
	// [Cloudflare for WordPress plugin](https://wordpress.org/plugins/cloudflare/) is
	// installed.
	WpPlugin param.Field[bool] `json:"wp_plugin"`
}

Value of the zone setting.

func (SettingEditParamsBodyValueValue) ImplementsSettingEditParamsBodyValueValueUnion

func (r SettingEditParamsBodyValueValue) ImplementsSettingEditParamsBodyValueValueUnion()

func (SettingEditParamsBodyValueValue) MarshalJSON

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

type SettingEditParamsBodyValueValueZonesCacheRulesAegisValue

type SettingEditParamsBodyValueValueZonesCacheRulesAegisValue struct {
	// Whether the feature is enabled or not.
	Enabled param.Field[bool] `json:"enabled"`
	// Egress pool id which refers to a grouping of dedicated egress IPs through which
	// Cloudflare will connect to origin.
	PoolID param.Field[string] `json:"pool_id"`
}

Value of the zone setting.

func (SettingEditParamsBodyValueValueZonesCacheRulesAegisValue) ImplementsSettingEditParamsBodyValueValueUnion

func (r SettingEditParamsBodyValueValueZonesCacheRulesAegisValue) ImplementsSettingEditParamsBodyValueValueUnion()

func (SettingEditParamsBodyValueValueZonesCacheRulesAegisValue) MarshalJSON

type SettingEditParamsBodyValueValueZonesCiphersValue

type SettingEditParamsBodyValueValueZonesCiphersValue []string

func (SettingEditParamsBodyValueValueZonesCiphersValue) ImplementsSettingEditParamsBodyValueValueUnion

func (r SettingEditParamsBodyValueValueZonesCiphersValue) ImplementsSettingEditParamsBodyValueValueUnion()

type SettingEditParamsBodyValueValueZonesNELValue

type SettingEditParamsBodyValueValueZonesNELValue struct {
	Enabled param.Field[bool] `json:"enabled"`
}

Value of the zone setting.

func (SettingEditParamsBodyValueValueZonesNELValue) ImplementsSettingEditParamsBodyValueValueUnion

func (r SettingEditParamsBodyValueValueZonesNELValue) ImplementsSettingEditParamsBodyValueValueUnion()

func (SettingEditParamsBodyValueValueZonesNELValue) MarshalJSON

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

type SettingEditParamsBodyValueValueZonesSecurityHeaderValue

type SettingEditParamsBodyValueValueZonesSecurityHeaderValue struct {
	// Strict Transport Security.
	StrictTransportSecurity param.Field[SettingEditParamsBodyValueValueZonesSecurityHeaderValueStrictTransportSecurity] `json:"strict_transport_security"`
}

func (SettingEditParamsBodyValueValueZonesSecurityHeaderValue) ImplementsSettingEditParamsBodyValueValueUnion

func (r SettingEditParamsBodyValueValueZonesSecurityHeaderValue) ImplementsSettingEditParamsBodyValueValueUnion()

func (SettingEditParamsBodyValueValueZonesSecurityHeaderValue) MarshalJSON

type SettingEditParamsBodyValueValueZonesSecurityHeaderValueStrictTransportSecurity

type SettingEditParamsBodyValueValueZonesSecurityHeaderValueStrictTransportSecurity struct {
	// Whether or not strict transport security is enabled.
	Enabled param.Field[bool] `json:"enabled"`
	// Include all subdomains for strict transport security.
	IncludeSubdomains param.Field[bool] `json:"include_subdomains"`
	// Max age in seconds of the strict transport security.
	MaxAge param.Field[float64] `json:"max_age"`
	// Whether or not to include 'X-Content-Type-Options: nosniff' header.
	Nosniff param.Field[bool] `json:"nosniff"`
	// Enable automatic preload of the HSTS configuration.
	Preload param.Field[bool] `json:"preload"`
}

Strict Transport Security.

func (SettingEditParamsBodyValueValueZonesSecurityHeaderValueStrictTransportSecurity) MarshalJSON

type SettingEditResponse

type SettingEditResponse struct {
	// ID of the zone setting.
	ID SettingEditResponseID `json:"id"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseEditable `json:"editable"`
	// ssl-recommender enrollment setting.
	Enabled bool `json:"enabled"`
	// last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Value of the zone setting. Notes: The interval (in seconds) from when
	// development mode expires (positive integer) or last expired (negative integer)
	// for the domain. If development mode has never been enabled, this value is false.
	TimeRemaining float64 `json:"time_remaining"`
	// This field can have the runtime type of [ZeroRTTValueUnion],
	// [AdvancedDDoSValueUnion], [SettingEditResponseZonesCacheRulesAegisValue],
	// [AlwaysOnlineValueUnion], [SettingEditResponseZonesAlwaysUseHTTPS2ValueUnion],
	// [SettingEditResponseZonesAutomaticHTTPSRewrites2ValueUnion], [BrotliValueUnion],
	// [SettingEditResponseZonesBrowserCacheTTL2ValueUnion],
	// [SettingEditResponseZonesBrowserCheck2ValueUnion],
	// [SettingEditResponseZonesCacheLevel2ValueUnion], [ChallengeTTLValueUnion],
	// [SettingEditResponseZonesChinaNetworkEnabledValueUnion],
	// [SettingEditResponseZonesContentConverterValueUnion], [CiphersValueUnion],
	// [SettingEditResponseZonesCNAMEFlatteningValueUnion],
	// [DevelopmentModeValueUnion], [EarlyHintsValueUnion],
	// [SettingEditResponseZonesEdgeCacheTTL2ValueUnion],
	// [SettingEditResponseZonesEmailObfuscation2ValueUnion],
	// [H2PrioritizationValueUnion], [HotlinkProtectionValueUnion], [HTTP2ValueUnion],
	// [HTTP3ValueUnion], [ImageResizingValueUnion],
	// [SettingEditResponseZonesIPGeolocation2ValueUnion], [IPV6ValueUnion],
	// [SettingEditResponseZonesMaxUploadValueUnion], [MinTLSVersionValueUnion],
	// [SettingEditResponseZonesMirage2ValueUnion], [NELValue],
	// [SettingEditResponseZonesOpportunisticEncryption2ValueUnion],
	// [OpportunisticOnionValueUnion], [OrangeToOrangeValueUnion],
	// [SettingEditResponseZonesOriginErrorPagePassThru2ValueUnion], [int64],
	// [SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionValue],
	// [SettingEditResponseZonesPolish2ValueUnion], [PrefetchPreloadValueUnion],
	// [SettingEditResponseZonesPreRenderValueUnion],
	// [SettingEditResponseZonesPrivacyPassValueUnion], [ProxyReadTimeoutValueUnion],
	// [PseudoIPV4ValueUnion],
	// [SettingEditResponseZonesRedirectsForAITrainingValueUnion],
	// [SettingEditResponseZonesReplaceInsecureJSValueUnion],
	// [SettingEditResponseZonesResponseBuffering2ValueUnion],
	// [SettingEditResponseZonesRocketLoader2ValueUnion],
	// [SettingEditResponseZonesSchemasAutomaticPlatformOptimizationValue],
	// [SettingEditResponseZonesSearchForAgentsValueUnion], [SecurityHeadersValue],
	// [SettingEditResponseZonesSecurityLevel2ValueUnion],
	// [ServerSideExcludesValueUnion], [SettingEditResponseZonesSha1SupportValueUnion],
	// [SettingEditResponseZonesSortQueryStringForCache2ValueUnion],
	// [SettingEditResponseZonesSSL2ValueUnion],
	// [SettingEditResponseZonesTLS1_2OnlyValueUnion], [TLS1_3ValueUnion],
	// [TLSClientAuthValueUnion], [SettingEditResponseZonesTransformationsValueUnion],
	// [SettingEditResponseZonesTransformationsAllowedOriginsValueUnion],
	// [SettingEditResponseZonesTrueClientIPHeader2ValueUnion],
	// [SettingEditResponseZonesWAF2ValueUnion],
	// [SettingEditResponseZonesWebmcpEnabledValueUnion],
	// [SettingEditResponseZonesWebmcpMcpURLValueUnion],
	// [SettingEditResponseZonesWebmcpPacksValueUnion], [WebPValueUnion],
	// [SettingEditResponseZonesAVIFValueUnion], [WebsocketValueUnion].
	Value interface{}             `json:"value"`
	JSON  settingEditResponseJSON `json:"-"`
	// contains filtered or unexported fields
}

0-RTT session resumption enabled for this zone. Changing this setting does not enable or disable TLS 1.3. Writing the `tls_1_3` setting also changes 0-RTT: `zrt` enables it, and `on` or `off` disables it.

func (SettingEditResponse) AsUnion

AsUnion returns a SettingEditResponseUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are ZeroRTT, AdvancedDDoS, SettingEditResponseZonesCacheRulesAegis, AlwaysOnline, SettingEditResponseZonesAlwaysUseHTTPS2, SettingEditResponseZonesAutomaticHTTPSRewrites2, Brotli, SettingEditResponseZonesBrowserCacheTTL2, SettingEditResponseZonesBrowserCheck2, SettingEditResponseZonesCacheLevel2, ChallengeTTL, SettingEditResponseZonesChinaNetworkEnabled, SettingEditResponseZonesContentConverter, Ciphers, SettingEditResponseZonesCNAMEFlattening, DevelopmentMode, EarlyHints, SettingEditResponseZonesEdgeCacheTTL2, SettingEditResponseZonesEmailObfuscation2, H2Prioritization, HotlinkProtection, HTTP2, HTTP3, ImageResizing, SettingEditResponseZonesIPGeolocation2, IPV6, SettingEditResponseZonesMaxUpload, MinTLSVersion, SettingEditResponseZonesMirage2, NEL, SettingEditResponseZonesOpportunisticEncryption2, OpportunisticOnion, OrangeToOrange, SettingEditResponseZonesOriginErrorPagePassThru2, SettingEditResponseZonesCacheRulesOriginH2MaxStreams, SettingEditResponseZonesCacheRulesOriginMaxHTTPVersion, SettingEditResponseZonesPolish2, PrefetchPreload, SettingEditResponseZonesPreRender, SettingEditResponseZonesPrivacyPass, ProxyReadTimeout, PseudoIPV4, SettingEditResponseZonesRedirectsForAITraining, SettingEditResponseZonesReplaceInsecureJS, SettingEditResponseZonesResponseBuffering2, SettingEditResponseZonesRocketLoader2, SettingEditResponseZonesSchemasAutomaticPlatformOptimization, SettingEditResponseZonesSearchForAgents, SecurityHeaders, SettingEditResponseZonesSecurityLevel2, ServerSideExcludes, SettingEditResponseZonesSha1Support, SettingEditResponseZonesSortQueryStringForCache2, SettingEditResponseZonesSSL2, SSLRecommender, SettingEditResponseZonesTLS1_2Only, TLS1_3, TLSClientAuth, SettingEditResponseZonesTransformations, SettingEditResponseZonesTransformationsAllowedOrigins, SettingEditResponseZonesTrueClientIPHeader2, SettingEditResponseZonesWAF2, SettingEditResponseZonesWebmcpEnabled, SettingEditResponseZonesWebmcpMcpURL, SettingEditResponseZonesWebmcpPacks, WebP, SettingEditResponseZonesAVIF, Websocket.

func (*SettingEditResponse) UnmarshalJSON

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

type SettingEditResponseEditable

type SettingEditResponseEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseEditableTrue  SettingEditResponseEditable = true
	SettingEditResponseEditableFalse SettingEditResponseEditable = false
)

func (SettingEditResponseEditable) IsKnown

func (r SettingEditResponseEditable) IsKnown() bool

type SettingEditResponseEnvelope

type SettingEditResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	// Whether the API call was successful
	Success bool `json:"success" api:"required"`
	// 0-RTT session resumption enabled for this zone. Changing this setting does not
	// enable or disable TLS 1.3. Writing the `tls_1_3` setting also changes 0-RTT:
	// `zrt` enables it, and `on` or `off` disables it.
	Result SettingEditResponse             `json:"result"`
	JSON   settingEditResponseEnvelopeJSON `json:"-"`
}

func (*SettingEditResponseEnvelope) UnmarshalJSON

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

type SettingEditResponseID

type SettingEditResponseID string

ID of the zone setting.

const (
	SettingEditResponseID0rtt                          SettingEditResponseID = "0rtt"
	SettingEditResponseIDAdvancedDDoS                  SettingEditResponseID = "advanced_ddos"
	SettingEditResponseIDAegis                         SettingEditResponseID = "aegis"
	SettingEditResponseIDAlwaysOnline                  SettingEditResponseID = "always_online"
	SettingEditResponseIDAlwaysUseHTTPS                SettingEditResponseID = "always_use_https"
	SettingEditResponseIDAutomaticHTTPSRewrites        SettingEditResponseID = "automatic_https_rewrites"
	SettingEditResponseIDBrotli                        SettingEditResponseID = "brotli"
	SettingEditResponseIDBrowserCacheTTL               SettingEditResponseID = "browser_cache_ttl"
	SettingEditResponseIDBrowserCheck                  SettingEditResponseID = "browser_check"
	SettingEditResponseIDCacheLevel                    SettingEditResponseID = "cache_level"
	SettingEditResponseIDChallengeTTL                  SettingEditResponseID = "challenge_ttl"
	SettingEditResponseIDChinaNetworkEnabled           SettingEditResponseID = "china_network_enabled"
	SettingEditResponseIDContentConverter              SettingEditResponseID = "content_converter"
	SettingEditResponseIDCiphers                       SettingEditResponseID = "ciphers"
	SettingEditResponseIDCNAMEFlattening               SettingEditResponseID = "cname_flattening"
	SettingEditResponseIDDevelopmentMode               SettingEditResponseID = "development_mode"
	SettingEditResponseIDEarlyHints                    SettingEditResponseID = "early_hints"
	SettingEditResponseIDEdgeCacheTTL                  SettingEditResponseID = "edge_cache_ttl"
	SettingEditResponseIDEmailObfuscation              SettingEditResponseID = "email_obfuscation"
	SettingEditResponseIDH2Prioritization              SettingEditResponseID = "h2_prioritization"
	SettingEditResponseIDHotlinkProtection             SettingEditResponseID = "hotlink_protection"
	SettingEditResponseIDHTTP2                         SettingEditResponseID = "http2"
	SettingEditResponseIDHTTP3                         SettingEditResponseID = "http3"
	SettingEditResponseIDImageResizing                 SettingEditResponseID = "image_resizing"
	SettingEditResponseIDIPGeolocation                 SettingEditResponseID = "ip_geolocation"
	SettingEditResponseIDIPV6                          SettingEditResponseID = "ipv6"
	SettingEditResponseIDMaxUpload                     SettingEditResponseID = "max_upload"
	SettingEditResponseIDMinTLSVersion                 SettingEditResponseID = "min_tls_version"
	SettingEditResponseIDMirage                        SettingEditResponseID = "mirage"
	SettingEditResponseIDNEL                           SettingEditResponseID = "nel"
	SettingEditResponseIDOpportunisticEncryption       SettingEditResponseID = "opportunistic_encryption"
	SettingEditResponseIDOpportunisticOnion            SettingEditResponseID = "opportunistic_onion"
	SettingEditResponseIDOrangeToOrange                SettingEditResponseID = "orange_to_orange"
	SettingEditResponseIDOriginErrorPagePassThru       SettingEditResponseID = "origin_error_page_pass_thru"
	SettingEditResponseIDOriginH2MaxStreams            SettingEditResponseID = "origin_h2_max_streams"
	SettingEditResponseIDOriginMaxHTTPVersion          SettingEditResponseID = "origin_max_http_version"
	SettingEditResponseIDPolish                        SettingEditResponseID = "polish"
	SettingEditResponseIDPrefetchPreload               SettingEditResponseID = "prefetch_preload"
	SettingEditResponseIDPreRender                     SettingEditResponseID = "pre_render"
	SettingEditResponseIDPrivacyPass                   SettingEditResponseID = "privacy_pass"
	SettingEditResponseIDProxyReadTimeout              SettingEditResponseID = "proxy_read_timeout"
	SettingEditResponseIDPseudoIPV4                    SettingEditResponseID = "pseudo_ipv4"
	SettingEditResponseIDRedirectsForAITraining        SettingEditResponseID = "redirects_for_ai_training"
	SettingEditResponseIDReplaceInsecureJS             SettingEditResponseID = "replace_insecure_js"
	SettingEditResponseIDResponseBuffering             SettingEditResponseID = "response_buffering"
	SettingEditResponseIDRocketLoader                  SettingEditResponseID = "rocket_loader"
	SettingEditResponseIDAutomaticPlatformOptimization SettingEditResponseID = "automatic_platform_optimization"
	SettingEditResponseIDSearchForAgents               SettingEditResponseID = "search_for_agents"
	SettingEditResponseIDSecurityHeader                SettingEditResponseID = "security_header"
	SettingEditResponseIDSecurityLevel                 SettingEditResponseID = "security_level"
	SettingEditResponseIDServerSideExclude             SettingEditResponseID = "server_side_exclude"
	SettingEditResponseIDSha1Support                   SettingEditResponseID = "sha1_support"
	SettingEditResponseIDSortQueryStringForCache       SettingEditResponseID = "sort_query_string_for_cache"
	SettingEditResponseIDSSL                           SettingEditResponseID = "ssl"
	SettingEditResponseIDSSLRecommender                SettingEditResponseID = "ssl_recommender"
	SettingEditResponseIDTLS1_2Only                    SettingEditResponseID = "tls_1_2_only"
	SettingEditResponseIDTLS1_3                        SettingEditResponseID = "tls_1_3"
	SettingEditResponseIDTLSClientAuth                 SettingEditResponseID = "tls_client_auth"
	SettingEditResponseIDTransformations               SettingEditResponseID = "transformations"
	SettingEditResponseIDTransformationsAllowedOrigins SettingEditResponseID = "transformations_allowed_origins"
	SettingEditResponseIDTrueClientIPHeader            SettingEditResponseID = "true_client_ip_header"
	SettingEditResponseIDWAF                           SettingEditResponseID = "waf"
	SettingEditResponseIDWebmcpEnabled                 SettingEditResponseID = "webmcp_enabled"
	SettingEditResponseIDWebmcpMcpURL                  SettingEditResponseID = "webmcp_mcp_url"
	SettingEditResponseIDWebmcpPacks                   SettingEditResponseID = "webmcp_packs"
	SettingEditResponseIDWebP                          SettingEditResponseID = "webp"
	SettingEditResponseIDAVIF                          SettingEditResponseID = "avif"
	SettingEditResponseIDWebsockets                    SettingEditResponseID = "websockets"
)

func (SettingEditResponseID) IsKnown

func (r SettingEditResponseID) IsKnown() bool

type SettingEditResponseUnion

type SettingEditResponseUnion interface {
	// contains filtered or unexported methods
}

0-RTT session resumption enabled for this zone. Changing this setting does not enable or disable TLS 1.3. Writing the `tls_1_3` setting also changes 0-RTT: `zrt` enables it, and `on` or `off` disables it.

Union satisfied by ZeroRTT, AdvancedDDoS, SettingEditResponseZonesCacheRulesAegis, AlwaysOnline, SettingEditResponseZonesAlwaysUseHTTPS2, SettingEditResponseZonesAutomaticHTTPSRewrites2, Brotli, SettingEditResponseZonesBrowserCacheTTL2, SettingEditResponseZonesBrowserCheck2, SettingEditResponseZonesCacheLevel2, ChallengeTTL, SettingEditResponseZonesChinaNetworkEnabled, SettingEditResponseZonesContentConverter, Ciphers, SettingEditResponseZonesCNAMEFlattening, DevelopmentMode, EarlyHints, SettingEditResponseZonesEdgeCacheTTL2, SettingEditResponseZonesEmailObfuscation2, H2Prioritization, HotlinkProtection, HTTP2, HTTP3, ImageResizing, SettingEditResponseZonesIPGeolocation2, IPV6, SettingEditResponseZonesMaxUpload, MinTLSVersion, SettingEditResponseZonesMirage2, NEL, SettingEditResponseZonesOpportunisticEncryption2, OpportunisticOnion, OrangeToOrange, SettingEditResponseZonesOriginErrorPagePassThru2, SettingEditResponseZonesCacheRulesOriginH2MaxStreams, SettingEditResponseZonesCacheRulesOriginMaxHTTPVersion, SettingEditResponseZonesPolish2, PrefetchPreload, SettingEditResponseZonesPreRender, SettingEditResponseZonesPrivacyPass, ProxyReadTimeout, PseudoIPV4, SettingEditResponseZonesRedirectsForAITraining, SettingEditResponseZonesReplaceInsecureJS, SettingEditResponseZonesResponseBuffering2, SettingEditResponseZonesRocketLoader2, SettingEditResponseZonesSchemasAutomaticPlatformOptimization, SettingEditResponseZonesSearchForAgents, SecurityHeaders, SettingEditResponseZonesSecurityLevel2, ServerSideExcludes, SettingEditResponseZonesSha1Support, SettingEditResponseZonesSortQueryStringForCache2, SettingEditResponseZonesSSL2, SSLRecommender, SettingEditResponseZonesTLS1_2Only, TLS1_3, TLSClientAuth, SettingEditResponseZonesTransformations, SettingEditResponseZonesTransformationsAllowedOrigins, SettingEditResponseZonesTrueClientIPHeader2, SettingEditResponseZonesWAF2, SettingEditResponseZonesWebmcpEnabled, SettingEditResponseZonesWebmcpMcpURL, SettingEditResponseZonesWebmcpPacks, WebP, SettingEditResponseZonesAVIF or Websocket.

type SettingEditResponseZonesAVIF

type SettingEditResponseZonesAVIF struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesAVIFID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesAVIFValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesAVIFEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                        `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesAVIFJSON `json:"-"`
}

When the client requesting the image supports the AVIF image codec, and AVIF offers a performance advantage over the original image format, Cloudflare will serve an AVIF version of the original image.

func (*SettingEditResponseZonesAVIF) UnmarshalJSON

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

type SettingEditResponseZonesAVIFEditable

type SettingEditResponseZonesAVIFEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesAVIFEditableTrue  SettingEditResponseZonesAVIFEditable = true
	SettingEditResponseZonesAVIFEditableFalse SettingEditResponseZonesAVIFEditable = false
)

func (SettingEditResponseZonesAVIFEditable) IsKnown

type SettingEditResponseZonesAVIFID

type SettingEditResponseZonesAVIFID string

ID of the zone setting.

const (
	SettingEditResponseZonesAVIFIDAVIF SettingEditResponseZonesAVIFID = "avif"
)

func (SettingEditResponseZonesAVIFID) IsKnown

type SettingEditResponseZonesAVIFValueArray

type SettingEditResponseZonesAVIFValueArray []string

func (SettingEditResponseZonesAVIFValueArray) ImplementsSettingEditResponseZonesAVIFValueUnion

func (r SettingEditResponseZonesAVIFValueArray) ImplementsSettingEditResponseZonesAVIFValueUnion()

type SettingEditResponseZonesAVIFValueUnion

type SettingEditResponseZonesAVIFValueUnion interface {
	ImplementsSettingEditResponseZonesAVIFValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesAVIFValueArray.

type SettingEditResponseZonesAlwaysUseHTTPS2 added in v7.8.0

type SettingEditResponseZonesAlwaysUseHTTPS2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesAlwaysUseHTTPS2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesAlwaysUseHTTPS2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesAlwaysUseHTTPS2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                   `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesAlwaysUseHttps2JSON `json:"-"`
}

Reply to all requests for URLs that use "http" with a 301 redirect to the equivalent "https" URL. If you only want to redirect for a subset of requests, consider creating an "Always use HTTPS" page rule.

func (*SettingEditResponseZonesAlwaysUseHTTPS2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesAlwaysUseHTTPS2Editable added in v7.8.0

type SettingEditResponseZonesAlwaysUseHTTPS2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesAlwaysUseHTTPS2EditableTrue  SettingEditResponseZonesAlwaysUseHTTPS2Editable = true
	SettingEditResponseZonesAlwaysUseHTTPS2EditableFalse SettingEditResponseZonesAlwaysUseHTTPS2Editable = false
)

func (SettingEditResponseZonesAlwaysUseHTTPS2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesAlwaysUseHTTPS2ID added in v7.8.0

type SettingEditResponseZonesAlwaysUseHTTPS2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesAlwaysUseHTTPS2IDAlwaysUseHTTPS SettingEditResponseZonesAlwaysUseHTTPS2ID = "always_use_https"
)

func (SettingEditResponseZonesAlwaysUseHTTPS2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesAlwaysUseHTTPS2ValueArray

type SettingEditResponseZonesAlwaysUseHTTPS2ValueArray []string

func (SettingEditResponseZonesAlwaysUseHTTPS2ValueArray) ImplementsSettingEditResponseZonesAlwaysUseHttps2ValueUnion

func (r SettingEditResponseZonesAlwaysUseHTTPS2ValueArray) ImplementsSettingEditResponseZonesAlwaysUseHttps2ValueUnion()

type SettingEditResponseZonesAlwaysUseHTTPS2ValueUnion

type SettingEditResponseZonesAlwaysUseHTTPS2ValueUnion interface {
	ImplementsSettingEditResponseZonesAlwaysUseHttps2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesAlwaysUseHTTPS2ValueArray.

type SettingEditResponseZonesAutomaticHTTPSRewrites2 added in v7.8.0

type SettingEditResponseZonesAutomaticHTTPSRewrites2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesAutomaticHTTPSRewrites2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesAutomaticHTTPSRewrites2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesAutomaticHTTPSRewrites2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                           `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesAutomaticHTTPSRewrites2JSON `json:"-"`
}

Enable the Automatic HTTPS Rewrites feature for this zone.

func (*SettingEditResponseZonesAutomaticHTTPSRewrites2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesAutomaticHTTPSRewrites2Editable added in v7.8.0

type SettingEditResponseZonesAutomaticHTTPSRewrites2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesAutomaticHTTPSRewrites2EditableTrue  SettingEditResponseZonesAutomaticHTTPSRewrites2Editable = true
	SettingEditResponseZonesAutomaticHTTPSRewrites2EditableFalse SettingEditResponseZonesAutomaticHTTPSRewrites2Editable = false
)

func (SettingEditResponseZonesAutomaticHTTPSRewrites2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesAutomaticHTTPSRewrites2ID added in v7.8.0

type SettingEditResponseZonesAutomaticHTTPSRewrites2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesAutomaticHTTPSRewrites2IDAutomaticHTTPSRewrites SettingEditResponseZonesAutomaticHTTPSRewrites2ID = "automatic_https_rewrites"
)

func (SettingEditResponseZonesAutomaticHTTPSRewrites2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesAutomaticHTTPSRewrites2ValueArray

type SettingEditResponseZonesAutomaticHTTPSRewrites2ValueArray []string

func (SettingEditResponseZonesAutomaticHTTPSRewrites2ValueArray) ImplementsSettingEditResponseZonesAutomaticHTTPSRewrites2ValueUnion

func (r SettingEditResponseZonesAutomaticHTTPSRewrites2ValueArray) ImplementsSettingEditResponseZonesAutomaticHTTPSRewrites2ValueUnion()

type SettingEditResponseZonesAutomaticHTTPSRewrites2ValueUnion

type SettingEditResponseZonesAutomaticHTTPSRewrites2ValueUnion interface {
	ImplementsSettingEditResponseZonesAutomaticHTTPSRewrites2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesAutomaticHTTPSRewrites2ValueArray.

type SettingEditResponseZonesBrowserCacheTTL2 added in v7.8.0

type SettingEditResponseZonesBrowserCacheTTL2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesBrowserCacheTTL2ID `json:"id" api:"required"`
	// Value of the zone setting in seconds. Minimum values by plan:
	//
	// - Free: 1 second
	// - Pro: 1 second
	// - Business: 1 second
	// - Enterprise: 1 second Setting a TTL of 0 is equivalent to selecting
	//   `Respect Existing Headers` and is allowed for all plans.
	Value SettingEditResponseZonesBrowserCacheTTL2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesBrowserCacheTTL2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                    `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesBrowserCacheTtl2JSON `json:"-"`
}

Browser Cache TTL (in seconds) specifies how long Cloudflare-cached resources will remain on your visitors' computers. Cloudflare will honor any larger times specified by your server. (https://support.cloudflare.com/hc/en-us/articles/200168276).

func (*SettingEditResponseZonesBrowserCacheTTL2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesBrowserCacheTTL2Editable added in v7.8.0

type SettingEditResponseZonesBrowserCacheTTL2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesBrowserCacheTTL2EditableTrue  SettingEditResponseZonesBrowserCacheTTL2Editable = true
	SettingEditResponseZonesBrowserCacheTTL2EditableFalse SettingEditResponseZonesBrowserCacheTTL2Editable = false
)

func (SettingEditResponseZonesBrowserCacheTTL2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesBrowserCacheTTL2ID added in v7.8.0

type SettingEditResponseZonesBrowserCacheTTL2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesBrowserCacheTTL2IDBrowserCacheTTL SettingEditResponseZonesBrowserCacheTTL2ID = "browser_cache_ttl"
)

func (SettingEditResponseZonesBrowserCacheTTL2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesBrowserCacheTTL2ValueArray

type SettingEditResponseZonesBrowserCacheTTL2ValueArray []string

func (SettingEditResponseZonesBrowserCacheTTL2ValueArray) ImplementsSettingEditResponseZonesBrowserCacheTtl2ValueUnion

func (r SettingEditResponseZonesBrowserCacheTTL2ValueArray) ImplementsSettingEditResponseZonesBrowserCacheTtl2ValueUnion()

type SettingEditResponseZonesBrowserCacheTTL2ValueUnion

type SettingEditResponseZonesBrowserCacheTTL2ValueUnion interface {
	ImplementsSettingEditResponseZonesBrowserCacheTtl2ValueUnion()
}

Value of the zone setting in seconds. Minimum values by plan:

  • Free: 1 second
  • Pro: 1 second
  • Business: 1 second
  • Enterprise: 1 second Setting a TTL of 0 is equivalent to selecting `Respect Existing Headers` and is allowed for all plans.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesBrowserCacheTTL2ValueArray.

type SettingEditResponseZonesBrowserCheck2 added in v7.8.0

type SettingEditResponseZonesBrowserCheck2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesBrowserCheck2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesBrowserCheck2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesBrowserCheck2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                 `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesBrowserCheck2JSON `json:"-"`
}

Browser Integrity Check is similar to Bad Behavior and looks for common HTTP headers abused most commonly by spammers and denies access to your page. It will also challenge visitors that do not have a user agent or a non standard user agent (also commonly used by abuse bots, crawlers or visitors). (https://support.cloudflare.com/hc/en-us/articles/200170086).

func (*SettingEditResponseZonesBrowserCheck2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesBrowserCheck2Editable added in v7.8.0

type SettingEditResponseZonesBrowserCheck2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesBrowserCheck2EditableTrue  SettingEditResponseZonesBrowserCheck2Editable = true
	SettingEditResponseZonesBrowserCheck2EditableFalse SettingEditResponseZonesBrowserCheck2Editable = false
)

func (SettingEditResponseZonesBrowserCheck2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesBrowserCheck2ID added in v7.8.0

type SettingEditResponseZonesBrowserCheck2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesBrowserCheck2IDBrowserCheck SettingEditResponseZonesBrowserCheck2ID = "browser_check"
)

func (SettingEditResponseZonesBrowserCheck2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesBrowserCheck2ValueArray

type SettingEditResponseZonesBrowserCheck2ValueArray []string

func (SettingEditResponseZonesBrowserCheck2ValueArray) ImplementsSettingEditResponseZonesBrowserCheck2ValueUnion

func (r SettingEditResponseZonesBrowserCheck2ValueArray) ImplementsSettingEditResponseZonesBrowserCheck2ValueUnion()

type SettingEditResponseZonesBrowserCheck2ValueUnion

type SettingEditResponseZonesBrowserCheck2ValueUnion interface {
	ImplementsSettingEditResponseZonesBrowserCheck2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesBrowserCheck2ValueArray.

type SettingEditResponseZonesCNAMEFlattening deprecated

type SettingEditResponseZonesCNAMEFlattening struct {
	// How to flatten the cname destination.
	ID SettingEditResponseZonesCNAMEFlatteningID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesCNAMEFlatteningValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesCNAMEFlatteningEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                   `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesCNAMEFlatteningJSON `json:"-"`
}

Whether or not cname flattening is on.

Deprecated: This zone setting is deprecated; please use the DNS Settings route instead. More information at https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2025-03-21

func (*SettingEditResponseZonesCNAMEFlattening) UnmarshalJSON

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

type SettingEditResponseZonesCNAMEFlatteningEditable

type SettingEditResponseZonesCNAMEFlatteningEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesCNAMEFlatteningEditableTrue  SettingEditResponseZonesCNAMEFlatteningEditable = true
	SettingEditResponseZonesCNAMEFlatteningEditableFalse SettingEditResponseZonesCNAMEFlatteningEditable = false
)

func (SettingEditResponseZonesCNAMEFlatteningEditable) IsKnown

type SettingEditResponseZonesCNAMEFlatteningID

type SettingEditResponseZonesCNAMEFlatteningID string

How to flatten the cname destination.

const (
	SettingEditResponseZonesCNAMEFlatteningIDCNAMEFlattening SettingEditResponseZonesCNAMEFlatteningID = "cname_flattening"
)

func (SettingEditResponseZonesCNAMEFlatteningID) IsKnown

type SettingEditResponseZonesCNAMEFlatteningValueArray

type SettingEditResponseZonesCNAMEFlatteningValueArray []string

func (SettingEditResponseZonesCNAMEFlatteningValueArray) ImplementsSettingEditResponseZonesCNAMEFlatteningValueUnion

func (r SettingEditResponseZonesCNAMEFlatteningValueArray) ImplementsSettingEditResponseZonesCNAMEFlatteningValueUnion()

type SettingEditResponseZonesCNAMEFlatteningValueUnion

type SettingEditResponseZonesCNAMEFlatteningValueUnion interface {
	ImplementsSettingEditResponseZonesCNAMEFlatteningValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesCNAMEFlatteningValueArray.

type SettingEditResponseZonesCacheLevel2 added in v7.8.0

type SettingEditResponseZonesCacheLevel2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesCacheLevel2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesCacheLevel2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesCacheLevel2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                               `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesCacheLevel2JSON `json:"-"`
}

Cache Level functions based off the setting level. The basic setting will cache most static resources (i.e., css, images, and JavaScript). The simplified setting will ignore the query string when delivering a cached resource. The aggressive setting will cache all static resources, including ones with a query string. (https://support.cloudflare.com/hc/en-us/articles/200168256).

func (*SettingEditResponseZonesCacheLevel2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesCacheLevel2Editable added in v7.8.0

type SettingEditResponseZonesCacheLevel2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesCacheLevel2EditableTrue  SettingEditResponseZonesCacheLevel2Editable = true
	SettingEditResponseZonesCacheLevel2EditableFalse SettingEditResponseZonesCacheLevel2Editable = false
)

func (SettingEditResponseZonesCacheLevel2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesCacheLevel2ID added in v7.8.0

type SettingEditResponseZonesCacheLevel2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesCacheLevel2IDCacheLevel SettingEditResponseZonesCacheLevel2ID = "cache_level"
)

func (SettingEditResponseZonesCacheLevel2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesCacheLevel2ValueArray

type SettingEditResponseZonesCacheLevel2ValueArray []string

func (SettingEditResponseZonesCacheLevel2ValueArray) ImplementsSettingEditResponseZonesCacheLevel2ValueUnion

func (r SettingEditResponseZonesCacheLevel2ValueArray) ImplementsSettingEditResponseZonesCacheLevel2ValueUnion()

type SettingEditResponseZonesCacheLevel2ValueUnion

type SettingEditResponseZonesCacheLevel2ValueUnion interface {
	ImplementsSettingEditResponseZonesCacheLevel2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesCacheLevel2ValueArray.

type SettingEditResponseZonesCacheRulesAegis

type SettingEditResponseZonesCacheRulesAegis struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesCacheRulesAegisID `json:"id" api:"required"`
	// Last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Value of the zone setting.
	Value SettingEditResponseZonesCacheRulesAegisValue `json:"value"`
	JSON  settingEditResponseZonesCacheRulesAegisJSON  `json:"-"`
}

Aegis provides dedicated egress IPs (from Cloudflare to your origin) for your layer 7 WAF and CDN services. The egress IPs are reserved exclusively for your account so that you can increase your origin security by only allowing traffic from a small list of IP addresses.

func (*SettingEditResponseZonesCacheRulesAegis) UnmarshalJSON

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

type SettingEditResponseZonesCacheRulesAegisID

type SettingEditResponseZonesCacheRulesAegisID string

ID of the zone setting.

const (
	SettingEditResponseZonesCacheRulesAegisIDAegis SettingEditResponseZonesCacheRulesAegisID = "aegis"
)

func (SettingEditResponseZonesCacheRulesAegisID) IsKnown

type SettingEditResponseZonesCacheRulesAegisValue

type SettingEditResponseZonesCacheRulesAegisValue struct {
	// Whether the feature is enabled or not.
	Enabled bool `json:"enabled"`
	// Egress pool id which refers to a grouping of dedicated egress IPs through which
	// Cloudflare will connect to origin.
	PoolID string                                           `json:"pool_id"`
	JSON   settingEditResponseZonesCacheRulesAegisValueJSON `json:"-"`
}

Value of the zone setting.

func (*SettingEditResponseZonesCacheRulesAegisValue) UnmarshalJSON

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

type SettingEditResponseZonesCacheRulesOriginH2MaxStreams

type SettingEditResponseZonesCacheRulesOriginH2MaxStreams struct {
	// Value of the zone setting.
	ID SettingEditResponseZonesCacheRulesOriginH2MaxStreamsID `json:"id" api:"required"`
	// Last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Value of the Origin H2 Max Streams Setting.
	Value int64                                                    `json:"value"`
	JSON  settingEditResponseZonesCacheRulesOriginH2MaxStreamsJSON `json:"-"`
}

Origin H2 Max Streams configures the max number of concurrent requests that Cloudflare will send within the same connection when communicating with the origin server, if the origin supports it. Note that if your origin does not support H2 multiplexing, 5xx errors may be observed, particularly 520s. Also note that the default value is `100` for all plan types except Enterprise where it is `1`. `1` means that H2 multiplexing is disabled.

func (*SettingEditResponseZonesCacheRulesOriginH2MaxStreams) UnmarshalJSON

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

type SettingEditResponseZonesCacheRulesOriginH2MaxStreamsID

type SettingEditResponseZonesCacheRulesOriginH2MaxStreamsID string

Value of the zone setting.

const (
	SettingEditResponseZonesCacheRulesOriginH2MaxStreamsIDOriginH2MaxStreams SettingEditResponseZonesCacheRulesOriginH2MaxStreamsID = "origin_h2_max_streams"
)

func (SettingEditResponseZonesCacheRulesOriginH2MaxStreamsID) IsKnown

type SettingEditResponseZonesCacheRulesOriginMaxHTTPVersion

type SettingEditResponseZonesCacheRulesOriginMaxHTTPVersion struct {
	// Value of the zone setting.
	ID SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionID `json:"id" api:"required"`
	// Last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Value of the Origin Max HTTP Version Setting.
	Value SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionValue `json:"value"`
	JSON  settingEditResponseZonesCacheRulesOriginMaxHTTPVersionJSON  `json:"-"`
}

Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin. (Refer to [Enable HTTP/2 to Origin](https://developers.cloudflare.com/cache/how-to/enable-http2-to-origin/), for more information.). The default value is "2" for all plan types except Enterprise where it is "1".

func (*SettingEditResponseZonesCacheRulesOriginMaxHTTPVersion) UnmarshalJSON

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

type SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionID

type SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionID string

Value of the zone setting.

const (
	SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionIDOriginMaxHTTPVersion SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionID = "origin_max_http_version"
)

func (SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionID) IsKnown

type SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionValue

type SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionValue string

Value of the Origin Max HTTP Version Setting.

const (
	SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionValue2 SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionValue = "2"
	SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionValue1 SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionValue = "1"
)

func (SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionValue) IsKnown

type SettingEditResponseZonesChinaNetworkEnabled

type SettingEditResponseZonesChinaNetworkEnabled struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesChinaNetworkEnabledID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesChinaNetworkEnabledValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesChinaNetworkEnabledEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                       `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesChinaNetworkEnabledJSON `json:"-"`
}

Determines whether or not the china network is enabled.

func (*SettingEditResponseZonesChinaNetworkEnabled) UnmarshalJSON

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

type SettingEditResponseZonesChinaNetworkEnabledEditable

type SettingEditResponseZonesChinaNetworkEnabledEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesChinaNetworkEnabledEditableTrue  SettingEditResponseZonesChinaNetworkEnabledEditable = true
	SettingEditResponseZonesChinaNetworkEnabledEditableFalse SettingEditResponseZonesChinaNetworkEnabledEditable = false
)

func (SettingEditResponseZonesChinaNetworkEnabledEditable) IsKnown

type SettingEditResponseZonesChinaNetworkEnabledID

type SettingEditResponseZonesChinaNetworkEnabledID string

ID of the zone setting.

const (
	SettingEditResponseZonesChinaNetworkEnabledIDChinaNetworkEnabled SettingEditResponseZonesChinaNetworkEnabledID = "china_network_enabled"
)

func (SettingEditResponseZonesChinaNetworkEnabledID) IsKnown

type SettingEditResponseZonesChinaNetworkEnabledValueArray

type SettingEditResponseZonesChinaNetworkEnabledValueArray []string

func (SettingEditResponseZonesChinaNetworkEnabledValueArray) ImplementsSettingEditResponseZonesChinaNetworkEnabledValueUnion

func (r SettingEditResponseZonesChinaNetworkEnabledValueArray) ImplementsSettingEditResponseZonesChinaNetworkEnabledValueUnion()

type SettingEditResponseZonesChinaNetworkEnabledValueUnion

type SettingEditResponseZonesChinaNetworkEnabledValueUnion interface {
	ImplementsSettingEditResponseZonesChinaNetworkEnabledValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesChinaNetworkEnabledValueArray.

type SettingEditResponseZonesContentConverter

type SettingEditResponseZonesContentConverter struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesContentConverterID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesContentConverterValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesContentConverterEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                    `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesContentConverterJSON `json:"-"`
}

When enabled and the client sends an Accept header requesting text/markdown, Cloudflare will convert HTML responses to Markdown format using the toMarkdown() service. Refer to the [developer documentation](https://developers.cloudflare.com/workers-ai/features/markdown-conversion/) for more information.

func (*SettingEditResponseZonesContentConverter) UnmarshalJSON

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

type SettingEditResponseZonesContentConverterEditable

type SettingEditResponseZonesContentConverterEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesContentConverterEditableTrue  SettingEditResponseZonesContentConverterEditable = true
	SettingEditResponseZonesContentConverterEditableFalse SettingEditResponseZonesContentConverterEditable = false
)

func (SettingEditResponseZonesContentConverterEditable) IsKnown

type SettingEditResponseZonesContentConverterID

type SettingEditResponseZonesContentConverterID string

ID of the zone setting.

const (
	SettingEditResponseZonesContentConverterIDContentConverter SettingEditResponseZonesContentConverterID = "content_converter"
)

func (SettingEditResponseZonesContentConverterID) IsKnown

type SettingEditResponseZonesContentConverterValueArray

type SettingEditResponseZonesContentConverterValueArray []string

func (SettingEditResponseZonesContentConverterValueArray) ImplementsSettingEditResponseZonesContentConverterValueUnion

func (r SettingEditResponseZonesContentConverterValueArray) ImplementsSettingEditResponseZonesContentConverterValueUnion()

type SettingEditResponseZonesContentConverterValueUnion

type SettingEditResponseZonesContentConverterValueUnion interface {
	ImplementsSettingEditResponseZonesContentConverterValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesContentConverterValueArray.

type SettingEditResponseZonesEdgeCacheTTL2 added in v7.8.0

type SettingEditResponseZonesEdgeCacheTTL2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesEdgeCacheTTL2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesEdgeCacheTTL2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesEdgeCacheTTL2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                 `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesEdgeCacheTtl2JSON `json:"-"`
}

Time (in seconds) that a resource will be ensured to remain on Cloudflare's cache servers.

func (*SettingEditResponseZonesEdgeCacheTTL2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesEdgeCacheTTL2Editable added in v7.8.0

type SettingEditResponseZonesEdgeCacheTTL2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesEdgeCacheTTL2EditableTrue  SettingEditResponseZonesEdgeCacheTTL2Editable = true
	SettingEditResponseZonesEdgeCacheTTL2EditableFalse SettingEditResponseZonesEdgeCacheTTL2Editable = false
)

func (SettingEditResponseZonesEdgeCacheTTL2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesEdgeCacheTTL2ID added in v7.8.0

type SettingEditResponseZonesEdgeCacheTTL2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesEdgeCacheTTL2IDEdgeCacheTTL SettingEditResponseZonesEdgeCacheTTL2ID = "edge_cache_ttl"
)

func (SettingEditResponseZonesEdgeCacheTTL2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesEdgeCacheTTL2ValueArray

type SettingEditResponseZonesEdgeCacheTTL2ValueArray []string

func (SettingEditResponseZonesEdgeCacheTTL2ValueArray) ImplementsSettingEditResponseZonesEdgeCacheTtl2ValueUnion

func (r SettingEditResponseZonesEdgeCacheTTL2ValueArray) ImplementsSettingEditResponseZonesEdgeCacheTtl2ValueUnion()

type SettingEditResponseZonesEdgeCacheTTL2ValueUnion

type SettingEditResponseZonesEdgeCacheTTL2ValueUnion interface {
	ImplementsSettingEditResponseZonesEdgeCacheTtl2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesEdgeCacheTTL2ValueArray.

type SettingEditResponseZonesEmailObfuscation2 added in v7.8.0

type SettingEditResponseZonesEmailObfuscation2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesEmailObfuscation2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesEmailObfuscation2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesEmailObfuscation2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                     `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesEmailObfuscation2JSON `json:"-"`
}

Encrypt email adresses on your web page from bots, while keeping them visible to humans. (https://support.cloudflare.com/hc/en-us/articles/200170016).

func (*SettingEditResponseZonesEmailObfuscation2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesEmailObfuscation2Editable added in v7.8.0

type SettingEditResponseZonesEmailObfuscation2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesEmailObfuscation2EditableTrue  SettingEditResponseZonesEmailObfuscation2Editable = true
	SettingEditResponseZonesEmailObfuscation2EditableFalse SettingEditResponseZonesEmailObfuscation2Editable = false
)

func (SettingEditResponseZonesEmailObfuscation2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesEmailObfuscation2ID added in v7.8.0

type SettingEditResponseZonesEmailObfuscation2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesEmailObfuscation2IDEmailObfuscation SettingEditResponseZonesEmailObfuscation2ID = "email_obfuscation"
)

func (SettingEditResponseZonesEmailObfuscation2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesEmailObfuscation2ValueArray

type SettingEditResponseZonesEmailObfuscation2ValueArray []string

func (SettingEditResponseZonesEmailObfuscation2ValueArray) ImplementsSettingEditResponseZonesEmailObfuscation2ValueUnion

func (r SettingEditResponseZonesEmailObfuscation2ValueArray) ImplementsSettingEditResponseZonesEmailObfuscation2ValueUnion()

type SettingEditResponseZonesEmailObfuscation2ValueUnion

type SettingEditResponseZonesEmailObfuscation2ValueUnion interface {
	ImplementsSettingEditResponseZonesEmailObfuscation2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesEmailObfuscation2ValueArray.

type SettingEditResponseZonesIPGeolocation2 added in v7.8.0

type SettingEditResponseZonesIPGeolocation2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesIPGeolocation2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesIPGeolocation2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesIPGeolocation2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                  `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesIPGeolocation2JSON `json:"-"`
}

Enable IP Geolocation to have Cloudflare geolocate visitors to your website and pass the country code to you. (https://support.cloudflare.com/hc/en-us/articles/200168236).

func (*SettingEditResponseZonesIPGeolocation2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesIPGeolocation2Editable added in v7.8.0

type SettingEditResponseZonesIPGeolocation2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesIPGeolocation2EditableTrue  SettingEditResponseZonesIPGeolocation2Editable = true
	SettingEditResponseZonesIPGeolocation2EditableFalse SettingEditResponseZonesIPGeolocation2Editable = false
)

func (SettingEditResponseZonesIPGeolocation2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesIPGeolocation2ID added in v7.8.0

type SettingEditResponseZonesIPGeolocation2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesIPGeolocation2IDIPGeolocation SettingEditResponseZonesIPGeolocation2ID = "ip_geolocation"
)

func (SettingEditResponseZonesIPGeolocation2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesIPGeolocation2ValueArray

type SettingEditResponseZonesIPGeolocation2ValueArray []string

func (SettingEditResponseZonesIPGeolocation2ValueArray) ImplementsSettingEditResponseZonesIPGeolocation2ValueUnion

func (r SettingEditResponseZonesIPGeolocation2ValueArray) ImplementsSettingEditResponseZonesIPGeolocation2ValueUnion()

type SettingEditResponseZonesIPGeolocation2ValueUnion

type SettingEditResponseZonesIPGeolocation2ValueUnion interface {
	ImplementsSettingEditResponseZonesIPGeolocation2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesIPGeolocation2ValueArray.

type SettingEditResponseZonesMaxUpload

type SettingEditResponseZonesMaxUpload struct {
	// identifier of the zone setting.
	ID SettingEditResponseZonesMaxUploadID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesMaxUploadValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesMaxUploadEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                             `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesMaxUploadJSON `json:"-"`
}

Maximum size of an allowable upload.

func (*SettingEditResponseZonesMaxUpload) UnmarshalJSON

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

type SettingEditResponseZonesMaxUploadEditable

type SettingEditResponseZonesMaxUploadEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesMaxUploadEditableTrue  SettingEditResponseZonesMaxUploadEditable = true
	SettingEditResponseZonesMaxUploadEditableFalse SettingEditResponseZonesMaxUploadEditable = false
)

func (SettingEditResponseZonesMaxUploadEditable) IsKnown

type SettingEditResponseZonesMaxUploadID

type SettingEditResponseZonesMaxUploadID string

identifier of the zone setting.

const (
	SettingEditResponseZonesMaxUploadIDMaxUpload SettingEditResponseZonesMaxUploadID = "max_upload"
)

func (SettingEditResponseZonesMaxUploadID) IsKnown

type SettingEditResponseZonesMaxUploadValueArray

type SettingEditResponseZonesMaxUploadValueArray []string

func (SettingEditResponseZonesMaxUploadValueArray) ImplementsSettingEditResponseZonesMaxUploadValueUnion

func (r SettingEditResponseZonesMaxUploadValueArray) ImplementsSettingEditResponseZonesMaxUploadValueUnion()

type SettingEditResponseZonesMaxUploadValueUnion

type SettingEditResponseZonesMaxUploadValueUnion interface {
	ImplementsSettingEditResponseZonesMaxUploadValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesMaxUploadValueArray.

type SettingEditResponseZonesMirage2 deprecated added in v7.8.0

type SettingEditResponseZonesMirage2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesMirage2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesMirage2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesMirage2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                           `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesMirage2JSON `json:"-"`
}

Automatically optimize image loading for website visitors on mobile devices. Refer to [our blog post](http://blog.cloudflare.com/mirage2-solving-mobile-speed) for more information.

Deprecated: Mirage is being deprecated. More information at https://developers.cloudflare.com/speed/optimization/images/mirage/

func (*SettingEditResponseZonesMirage2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesMirage2Editable added in v7.8.0

type SettingEditResponseZonesMirage2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesMirage2EditableTrue  SettingEditResponseZonesMirage2Editable = true
	SettingEditResponseZonesMirage2EditableFalse SettingEditResponseZonesMirage2Editable = false
)

func (SettingEditResponseZonesMirage2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesMirage2ID added in v7.8.0

type SettingEditResponseZonesMirage2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesMirage2IDMirage SettingEditResponseZonesMirage2ID = "mirage"
)

func (SettingEditResponseZonesMirage2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesMirage2ValueArray

type SettingEditResponseZonesMirage2ValueArray []string

func (SettingEditResponseZonesMirage2ValueArray) ImplementsSettingEditResponseZonesMirage2ValueUnion

func (r SettingEditResponseZonesMirage2ValueArray) ImplementsSettingEditResponseZonesMirage2ValueUnion()

type SettingEditResponseZonesMirage2ValueUnion

type SettingEditResponseZonesMirage2ValueUnion interface {
	ImplementsSettingEditResponseZonesMirage2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesMirage2ValueArray.

type SettingEditResponseZonesOpportunisticEncryption2 added in v7.8.0

type SettingEditResponseZonesOpportunisticEncryption2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesOpportunisticEncryption2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesOpportunisticEncryption2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesOpportunisticEncryption2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                            `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesOpportunisticEncryption2JSON `json:"-"`
}

Enables the Opportunistic Encryption feature for a zone.

func (*SettingEditResponseZonesOpportunisticEncryption2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesOpportunisticEncryption2Editable added in v7.8.0

type SettingEditResponseZonesOpportunisticEncryption2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesOpportunisticEncryption2EditableTrue  SettingEditResponseZonesOpportunisticEncryption2Editable = true
	SettingEditResponseZonesOpportunisticEncryption2EditableFalse SettingEditResponseZonesOpportunisticEncryption2Editable = false
)

func (SettingEditResponseZonesOpportunisticEncryption2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesOpportunisticEncryption2ID added in v7.8.0

type SettingEditResponseZonesOpportunisticEncryption2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesOpportunisticEncryption2IDOpportunisticEncryption SettingEditResponseZonesOpportunisticEncryption2ID = "opportunistic_encryption"
)

func (SettingEditResponseZonesOpportunisticEncryption2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesOpportunisticEncryption2ValueArray

type SettingEditResponseZonesOpportunisticEncryption2ValueArray []string

func (SettingEditResponseZonesOpportunisticEncryption2ValueArray) ImplementsSettingEditResponseZonesOpportunisticEncryption2ValueUnion

func (r SettingEditResponseZonesOpportunisticEncryption2ValueArray) ImplementsSettingEditResponseZonesOpportunisticEncryption2ValueUnion()

type SettingEditResponseZonesOpportunisticEncryption2ValueUnion

type SettingEditResponseZonesOpportunisticEncryption2ValueUnion interface {
	ImplementsSettingEditResponseZonesOpportunisticEncryption2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesOpportunisticEncryption2ValueArray.

type SettingEditResponseZonesOriginErrorPagePassThru2 added in v7.8.0

type SettingEditResponseZonesOriginErrorPagePassThru2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesOriginErrorPagePassThru2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesOriginErrorPagePassThru2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesOriginErrorPagePassThru2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                            `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesOriginErrorPagePassThru2JSON `json:"-"`
}

Cloudflare will proxy customer error pages on any 502,504 errors on origin server instead of showing a default Cloudflare error page. This does not apply to 522 errors and is limited to Enterprise Zones.

func (*SettingEditResponseZonesOriginErrorPagePassThru2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesOriginErrorPagePassThru2Editable added in v7.8.0

type SettingEditResponseZonesOriginErrorPagePassThru2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesOriginErrorPagePassThru2EditableTrue  SettingEditResponseZonesOriginErrorPagePassThru2Editable = true
	SettingEditResponseZonesOriginErrorPagePassThru2EditableFalse SettingEditResponseZonesOriginErrorPagePassThru2Editable = false
)

func (SettingEditResponseZonesOriginErrorPagePassThru2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesOriginErrorPagePassThru2ID added in v7.8.0

type SettingEditResponseZonesOriginErrorPagePassThru2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesOriginErrorPagePassThru2IDOriginErrorPagePassThru SettingEditResponseZonesOriginErrorPagePassThru2ID = "origin_error_page_pass_thru"
)

func (SettingEditResponseZonesOriginErrorPagePassThru2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesOriginErrorPagePassThru2ValueArray

type SettingEditResponseZonesOriginErrorPagePassThru2ValueArray []string

func (SettingEditResponseZonesOriginErrorPagePassThru2ValueArray) ImplementsSettingEditResponseZonesOriginErrorPagePassThru2ValueUnion

func (r SettingEditResponseZonesOriginErrorPagePassThru2ValueArray) ImplementsSettingEditResponseZonesOriginErrorPagePassThru2ValueUnion()

type SettingEditResponseZonesOriginErrorPagePassThru2ValueUnion

type SettingEditResponseZonesOriginErrorPagePassThru2ValueUnion interface {
	ImplementsSettingEditResponseZonesOriginErrorPagePassThru2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesOriginErrorPagePassThru2ValueArray.

type SettingEditResponseZonesPolish2 added in v7.8.0

type SettingEditResponseZonesPolish2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesPolish2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesPolish2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesPolish2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                           `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesPolish2JSON `json:"-"`
}

Removes metadata and compresses your images for faster page load times. Basic (Lossless): Reduce the size of PNG, JPEG, and GIF files - no impact on visual quality. Basic + JPEG (Lossy): Further reduce the size of JPEG files for faster image loading. Larger JPEGs are converted to progressive images, loading a lower-resolution image first and ending in a higher-resolution version. Not recommended for hi-res photography sites.

func (*SettingEditResponseZonesPolish2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesPolish2Editable added in v7.8.0

type SettingEditResponseZonesPolish2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesPolish2EditableTrue  SettingEditResponseZonesPolish2Editable = true
	SettingEditResponseZonesPolish2EditableFalse SettingEditResponseZonesPolish2Editable = false
)

func (SettingEditResponseZonesPolish2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesPolish2ID added in v7.8.0

type SettingEditResponseZonesPolish2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesPolish2IDPolish SettingEditResponseZonesPolish2ID = "polish"
)

func (SettingEditResponseZonesPolish2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesPolish2ValueArray

type SettingEditResponseZonesPolish2ValueArray []string

func (SettingEditResponseZonesPolish2ValueArray) ImplementsSettingEditResponseZonesPolish2ValueUnion

func (r SettingEditResponseZonesPolish2ValueArray) ImplementsSettingEditResponseZonesPolish2ValueUnion()

type SettingEditResponseZonesPolish2ValueUnion

type SettingEditResponseZonesPolish2ValueUnion interface {
	ImplementsSettingEditResponseZonesPolish2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesPolish2ValueArray.

type SettingEditResponseZonesPreRender added in v7.10.0

type SettingEditResponseZonesPreRender struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesPreRenderID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesPreRenderValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesPreRenderEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                             `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesPreRenderJSON `json:"-"`
}

When enabled, Cloudflare serves pre-rendered HTML to eligible search and AI crawlers instead of the origin's unrendered response.

func (*SettingEditResponseZonesPreRender) UnmarshalJSON added in v7.10.0

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

type SettingEditResponseZonesPreRenderEditable added in v7.10.0

type SettingEditResponseZonesPreRenderEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesPreRenderEditableTrue  SettingEditResponseZonesPreRenderEditable = true
	SettingEditResponseZonesPreRenderEditableFalse SettingEditResponseZonesPreRenderEditable = false
)

func (SettingEditResponseZonesPreRenderEditable) IsKnown added in v7.10.0

type SettingEditResponseZonesPreRenderID added in v7.10.0

type SettingEditResponseZonesPreRenderID string

ID of the zone setting.

const (
	SettingEditResponseZonesPreRenderIDPreRender SettingEditResponseZonesPreRenderID = "pre_render"
)

func (SettingEditResponseZonesPreRenderID) IsKnown added in v7.10.0

type SettingEditResponseZonesPreRenderValueArray

type SettingEditResponseZonesPreRenderValueArray []string

func (SettingEditResponseZonesPreRenderValueArray) ImplementsSettingEditResponseZonesPreRenderValueUnion

func (r SettingEditResponseZonesPreRenderValueArray) ImplementsSettingEditResponseZonesPreRenderValueUnion()

type SettingEditResponseZonesPreRenderValueUnion

type SettingEditResponseZonesPreRenderValueUnion interface {
	ImplementsSettingEditResponseZonesPreRenderValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesPreRenderValueArray.

type SettingEditResponseZonesPrivacyPass deprecated

type SettingEditResponseZonesPrivacyPass struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesPrivacyPassID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesPrivacyPassValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesPrivacyPassEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                               `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesPrivacyPassJSON `json:"-"`
}

Privacy Pass v1 was a browser extension developed by the Privacy Pass Team to improve the browsing experience for your visitors by allowing users to reduce the number of CAPTCHAs shown. (https://support.cloudflare.com/hc/en-us/articles/115001992652-Privacy-Pass).

Deprecated: Privacy Pass v1 was deprecated in 2023. (Announcement - https://blog.cloudflare.com/privacy-pass-standard/) and (API deprecation details - https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2024-03-31)

func (*SettingEditResponseZonesPrivacyPass) UnmarshalJSON

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

type SettingEditResponseZonesPrivacyPassEditable

type SettingEditResponseZonesPrivacyPassEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesPrivacyPassEditableTrue  SettingEditResponseZonesPrivacyPassEditable = true
	SettingEditResponseZonesPrivacyPassEditableFalse SettingEditResponseZonesPrivacyPassEditable = false
)

func (SettingEditResponseZonesPrivacyPassEditable) IsKnown

type SettingEditResponseZonesPrivacyPassID

type SettingEditResponseZonesPrivacyPassID string

ID of the zone setting.

const (
	SettingEditResponseZonesPrivacyPassIDPrivacyPass SettingEditResponseZonesPrivacyPassID = "privacy_pass"
)

func (SettingEditResponseZonesPrivacyPassID) IsKnown

type SettingEditResponseZonesPrivacyPassValueArray

type SettingEditResponseZonesPrivacyPassValueArray []string

func (SettingEditResponseZonesPrivacyPassValueArray) ImplementsSettingEditResponseZonesPrivacyPassValueUnion

func (r SettingEditResponseZonesPrivacyPassValueArray) ImplementsSettingEditResponseZonesPrivacyPassValueUnion()

type SettingEditResponseZonesPrivacyPassValueUnion

type SettingEditResponseZonesPrivacyPassValueUnion interface {
	ImplementsSettingEditResponseZonesPrivacyPassValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesPrivacyPassValueArray.

type SettingEditResponseZonesRedirectsForAITraining

type SettingEditResponseZonesRedirectsForAITraining struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesRedirectsForAITrainingID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesRedirectsForAITrainingValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesRedirectsForAITrainingEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                          `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesRedirectsForAITrainingJSON `json:"-"`
}

When enabled, Cloudflare will redirect verified AI training crawlers to canonical URLs found in the HTML response, ensuring AI models train on authoritative content.

func (*SettingEditResponseZonesRedirectsForAITraining) UnmarshalJSON

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

type SettingEditResponseZonesRedirectsForAITrainingEditable

type SettingEditResponseZonesRedirectsForAITrainingEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesRedirectsForAITrainingEditableTrue  SettingEditResponseZonesRedirectsForAITrainingEditable = true
	SettingEditResponseZonesRedirectsForAITrainingEditableFalse SettingEditResponseZonesRedirectsForAITrainingEditable = false
)

func (SettingEditResponseZonesRedirectsForAITrainingEditable) IsKnown

type SettingEditResponseZonesRedirectsForAITrainingID

type SettingEditResponseZonesRedirectsForAITrainingID string

ID of the zone setting.

const (
	SettingEditResponseZonesRedirectsForAITrainingIDRedirectsForAITraining SettingEditResponseZonesRedirectsForAITrainingID = "redirects_for_ai_training"
)

func (SettingEditResponseZonesRedirectsForAITrainingID) IsKnown

type SettingEditResponseZonesRedirectsForAITrainingValueArray

type SettingEditResponseZonesRedirectsForAITrainingValueArray []string

func (SettingEditResponseZonesRedirectsForAITrainingValueArray) ImplementsSettingEditResponseZonesRedirectsForAITrainingValueUnion

func (r SettingEditResponseZonesRedirectsForAITrainingValueArray) ImplementsSettingEditResponseZonesRedirectsForAITrainingValueUnion()

type SettingEditResponseZonesRedirectsForAITrainingValueUnion

type SettingEditResponseZonesRedirectsForAITrainingValueUnion interface {
	ImplementsSettingEditResponseZonesRedirectsForAITrainingValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesRedirectsForAITrainingValueArray.

type SettingEditResponseZonesReplaceInsecureJS

type SettingEditResponseZonesReplaceInsecureJS struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesReplaceInsecureJSID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesReplaceInsecureJSValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesReplaceInsecureJSEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                     `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesReplaceInsecureJSJSON `json:"-"`
}

Automatically replace insecure JavaScript libraries with safer and faster alternatives provided under cdnjs and powered by Cloudflare. Currently supports the following libraries: Polyfill under polyfill.io.

func (*SettingEditResponseZonesReplaceInsecureJS) UnmarshalJSON

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

type SettingEditResponseZonesReplaceInsecureJSEditable

type SettingEditResponseZonesReplaceInsecureJSEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesReplaceInsecureJSEditableTrue  SettingEditResponseZonesReplaceInsecureJSEditable = true
	SettingEditResponseZonesReplaceInsecureJSEditableFalse SettingEditResponseZonesReplaceInsecureJSEditable = false
)

func (SettingEditResponseZonesReplaceInsecureJSEditable) IsKnown

type SettingEditResponseZonesReplaceInsecureJSID

type SettingEditResponseZonesReplaceInsecureJSID string

ID of the zone setting.

const (
	SettingEditResponseZonesReplaceInsecureJSIDReplaceInsecureJS SettingEditResponseZonesReplaceInsecureJSID = "replace_insecure_js"
)

func (SettingEditResponseZonesReplaceInsecureJSID) IsKnown

type SettingEditResponseZonesReplaceInsecureJSValueArray

type SettingEditResponseZonesReplaceInsecureJSValueArray []string

func (SettingEditResponseZonesReplaceInsecureJSValueArray) ImplementsSettingEditResponseZonesReplaceInsecureJSValueUnion

func (r SettingEditResponseZonesReplaceInsecureJSValueArray) ImplementsSettingEditResponseZonesReplaceInsecureJSValueUnion()

type SettingEditResponseZonesReplaceInsecureJSValueUnion

type SettingEditResponseZonesReplaceInsecureJSValueUnion interface {
	ImplementsSettingEditResponseZonesReplaceInsecureJSValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesReplaceInsecureJSValueArray.

type SettingEditResponseZonesResponseBuffering2 deprecated added in v7.8.0

type SettingEditResponseZonesResponseBuffering2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesResponseBuffering2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesResponseBuffering2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesResponseBuffering2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                      `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesResponseBuffering2JSON `json:"-"`
}

Enables or disables buffering of responses from the proxied server. Cloudflare may buffer the whole payload to deliver it at once to the client versus allowing it to be delivered in chunks. By default, the proxied server streams directly and is not buffered by Cloudflare. This is limited to Enterprise Zones.

Deprecated: This zone setting is deprecated. This functionality is no longer supported.

func (*SettingEditResponseZonesResponseBuffering2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesResponseBuffering2Editable added in v7.8.0

type SettingEditResponseZonesResponseBuffering2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesResponseBuffering2EditableTrue  SettingEditResponseZonesResponseBuffering2Editable = true
	SettingEditResponseZonesResponseBuffering2EditableFalse SettingEditResponseZonesResponseBuffering2Editable = false
)

func (SettingEditResponseZonesResponseBuffering2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesResponseBuffering2ID added in v7.8.0

type SettingEditResponseZonesResponseBuffering2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesResponseBuffering2IDResponseBuffering SettingEditResponseZonesResponseBuffering2ID = "response_buffering"
)

func (SettingEditResponseZonesResponseBuffering2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesResponseBuffering2ValueArray

type SettingEditResponseZonesResponseBuffering2ValueArray []string

func (SettingEditResponseZonesResponseBuffering2ValueArray) ImplementsSettingEditResponseZonesResponseBuffering2ValueUnion

func (r SettingEditResponseZonesResponseBuffering2ValueArray) ImplementsSettingEditResponseZonesResponseBuffering2ValueUnion()

type SettingEditResponseZonesResponseBuffering2ValueUnion

type SettingEditResponseZonesResponseBuffering2ValueUnion interface {
	ImplementsSettingEditResponseZonesResponseBuffering2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesResponseBuffering2ValueArray.

type SettingEditResponseZonesRocketLoader2 added in v7.8.0

type SettingEditResponseZonesRocketLoader2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesRocketLoader2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesRocketLoader2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesRocketLoader2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                 `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesRocketLoader2JSON `json:"-"`
}

Rocket Loader is a general-purpose asynchronous JavaScript optimisation that prioritises rendering your content while loading your site's Javascript asynchronously. Turning on Rocket Loader will immediately improve a web page's rendering time sometimes measured as Time to First Paint (TTFP), and also the `window.onload` time (assuming there is JavaScript on the page). This can have a positive impact on your Google search ranking. When turned on, Rocket Loader will automatically defer the loading of all Javascript referenced in your HTML, with no configuration required. Refer to [Understanding Rocket Loader](https://support.cloudflare.com/hc/articles/200168056) for more information.

func (*SettingEditResponseZonesRocketLoader2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesRocketLoader2Editable added in v7.8.0

type SettingEditResponseZonesRocketLoader2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesRocketLoader2EditableTrue  SettingEditResponseZonesRocketLoader2Editable = true
	SettingEditResponseZonesRocketLoader2EditableFalse SettingEditResponseZonesRocketLoader2Editable = false
)

func (SettingEditResponseZonesRocketLoader2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesRocketLoader2ID added in v7.8.0

type SettingEditResponseZonesRocketLoader2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesRocketLoader2IDRocketLoader SettingEditResponseZonesRocketLoader2ID = "rocket_loader"
)

func (SettingEditResponseZonesRocketLoader2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesRocketLoader2ValueArray

type SettingEditResponseZonesRocketLoader2ValueArray []string

func (SettingEditResponseZonesRocketLoader2ValueArray) ImplementsSettingEditResponseZonesRocketLoader2ValueUnion

func (r SettingEditResponseZonesRocketLoader2ValueArray) ImplementsSettingEditResponseZonesRocketLoader2ValueUnion()

type SettingEditResponseZonesRocketLoader2ValueUnion

type SettingEditResponseZonesRocketLoader2ValueUnion interface {
	ImplementsSettingEditResponseZonesRocketLoader2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesRocketLoader2ValueArray.

type SettingEditResponseZonesSSL2 added in v7.8.0

type SettingEditResponseZonesSSL2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesSSL2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesSSL2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesSSL2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                        `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesSsl2JSON `json:"-"`
}

SSL encrypts your visitor's connection and safeguards credit card numbers and other personal data to and from your website. SSL can take up to 5 minutes to fully activate. Requires Cloudflare active on your root domain or www domain. Off: no SSL between the visitor and Cloudflare, and no SSL between Cloudflare and your web server (all HTTP traffic). Flexible: SSL between the visitor and Cloudflare -- visitor sees HTTPS on your site, but no SSL between Cloudflare and your web server. You don't need to have an SSL cert on your web server, but your vistors will still see the site as being HTTPS enabled. Full: SSL between the visitor and Cloudflare -- visitor sees HTTPS on your site, and SSL between Cloudflare and your web server. You'll need to have your own SSL cert or self-signed cert at the very least. Full (Strict): SSL between the visitor and Cloudflare -- visitor sees HTTPS on your site, and SSL between Cloudflare and your web server. You'll need to have a valid SSL certificate installed on your web server. This certificate must be signed by a certificate authority, have an expiration date in the future, and respond for the request domain name (hostname). (https://support.cloudflare.com/hc/en-us/articles/200170416).

func (*SettingEditResponseZonesSSL2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesSSL2Editable added in v7.8.0

type SettingEditResponseZonesSSL2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesSSL2EditableTrue  SettingEditResponseZonesSSL2Editable = true
	SettingEditResponseZonesSSL2EditableFalse SettingEditResponseZonesSSL2Editable = false
)

func (SettingEditResponseZonesSSL2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesSSL2ID added in v7.8.0

type SettingEditResponseZonesSSL2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesSSL2IDSSL SettingEditResponseZonesSSL2ID = "ssl"
)

func (SettingEditResponseZonesSSL2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesSSL2ValueArray

type SettingEditResponseZonesSSL2ValueArray []string

func (SettingEditResponseZonesSSL2ValueArray) ImplementsSettingEditResponseZonesSsl2ValueUnion

func (r SettingEditResponseZonesSSL2ValueArray) ImplementsSettingEditResponseZonesSsl2ValueUnion()

type SettingEditResponseZonesSSL2ValueUnion

type SettingEditResponseZonesSSL2ValueUnion interface {
	ImplementsSettingEditResponseZonesSsl2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesSSL2ValueArray.

type SettingEditResponseZonesSchemasAutomaticPlatformOptimization

type SettingEditResponseZonesSchemasAutomaticPlatformOptimization struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesSchemasAutomaticPlatformOptimizationID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesSchemasAutomaticPlatformOptimizationValue `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesSchemasAutomaticPlatformOptimizationEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                                        `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesSchemasAutomaticPlatformOptimizationJSON `json:"-"`
}

[Automatic Platform Optimization for WordPress](https://developers.cloudflare.com/automatic-platform-optimization/) serves your WordPress site from Cloudflare's edge network and caches third-party fonts.

func (*SettingEditResponseZonesSchemasAutomaticPlatformOptimization) UnmarshalJSON

type SettingEditResponseZonesSchemasAutomaticPlatformOptimizationEditable

type SettingEditResponseZonesSchemasAutomaticPlatformOptimizationEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesSchemasAutomaticPlatformOptimizationEditableTrue  SettingEditResponseZonesSchemasAutomaticPlatformOptimizationEditable = true
	SettingEditResponseZonesSchemasAutomaticPlatformOptimizationEditableFalse SettingEditResponseZonesSchemasAutomaticPlatformOptimizationEditable = false
)

func (SettingEditResponseZonesSchemasAutomaticPlatformOptimizationEditable) IsKnown

type SettingEditResponseZonesSchemasAutomaticPlatformOptimizationID

type SettingEditResponseZonesSchemasAutomaticPlatformOptimizationID string

ID of the zone setting.

const (
	SettingEditResponseZonesSchemasAutomaticPlatformOptimizationIDAutomaticPlatformOptimization SettingEditResponseZonesSchemasAutomaticPlatformOptimizationID = "automatic_platform_optimization"
)

func (SettingEditResponseZonesSchemasAutomaticPlatformOptimizationID) IsKnown

type SettingEditResponseZonesSchemasAutomaticPlatformOptimizationValue

type SettingEditResponseZonesSchemasAutomaticPlatformOptimizationValue struct {
	// Indicates whether or not
	// [cache by device type](https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/)
	// is enabled.
	CacheByDeviceType bool `json:"cache_by_device_type"`
	// Indicates whether or not Cloudflare proxy is enabled.
	Cf bool `json:"cf"`
	// Indicates whether or not Automatic Platform Optimization is enabled.
	Enabled bool `json:"enabled"`
	// This field can have the runtime type of [[]string].
	Hostnames interface{} `json:"hostnames"`
	// Indicates whether or not site is powered by WordPress.
	Wordpress bool `json:"wordpress"`
	// Indicates whether or not
	// [Cloudflare for WordPress plugin](https://wordpress.org/plugins/cloudflare/) is
	// installed.
	WpPlugin bool                                                                  `json:"wp_plugin"`
	JSON     settingEditResponseZonesSchemasAutomaticPlatformOptimizationValueJSON `json:"-"`
	// contains filtered or unexported fields
}

Current value of the zone setting.

func (*SettingEditResponseZonesSchemasAutomaticPlatformOptimizationValue) UnmarshalJSON

type SettingEditResponseZonesSchemasAutomaticPlatformOptimizationValueObject

type SettingEditResponseZonesSchemasAutomaticPlatformOptimizationValueObject struct {
	// Indicates whether or not
	// [cache by device type](https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/)
	// is enabled.
	CacheByDeviceType bool `json:"cache_by_device_type"`
	// Indicates whether or not Cloudflare proxy is enabled.
	Cf bool `json:"cf"`
	// Indicates whether or not Automatic Platform Optimization is enabled.
	Enabled bool `json:"enabled"`
	// An array of hostnames where Automatic Platform Optimization for WordPress is
	// activated.
	Hostnames []string `json:"hostnames" format:"hostname"`
	// Indicates whether or not site is powered by WordPress.
	Wordpress bool `json:"wordpress"`
	// Indicates whether or not
	// [Cloudflare for WordPress plugin](https://wordpress.org/plugins/cloudflare/) is
	// installed.
	WpPlugin bool                                                                        `json:"wp_plugin"`
	JSON     settingEditResponseZonesSchemasAutomaticPlatformOptimizationValueObjectJSON `json:"-"`
}

func (*SettingEditResponseZonesSchemasAutomaticPlatformOptimizationValueObject) UnmarshalJSON

type SettingEditResponseZonesSearchForAgents

type SettingEditResponseZonesSearchForAgents struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesSearchForAgentsID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesSearchForAgentsValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesSearchForAgentsEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                   `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesSearchForAgentsJSON `json:"-"`
}

When enabled, Cloudflare provisions an AI Search instance for the zone and exposes a /.well-known/search endpoint that AI agents can query. Available on all plans. Markdown responses also receive an agent: YAML capability block advertising the search endpoint.

func (*SettingEditResponseZonesSearchForAgents) UnmarshalJSON

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

type SettingEditResponseZonesSearchForAgentsEditable

type SettingEditResponseZonesSearchForAgentsEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesSearchForAgentsEditableTrue  SettingEditResponseZonesSearchForAgentsEditable = true
	SettingEditResponseZonesSearchForAgentsEditableFalse SettingEditResponseZonesSearchForAgentsEditable = false
)

func (SettingEditResponseZonesSearchForAgentsEditable) IsKnown

type SettingEditResponseZonesSearchForAgentsID

type SettingEditResponseZonesSearchForAgentsID string

ID of the zone setting.

const (
	SettingEditResponseZonesSearchForAgentsIDSearchForAgents SettingEditResponseZonesSearchForAgentsID = "search_for_agents"
)

func (SettingEditResponseZonesSearchForAgentsID) IsKnown

type SettingEditResponseZonesSearchForAgentsValueArray

type SettingEditResponseZonesSearchForAgentsValueArray []string

func (SettingEditResponseZonesSearchForAgentsValueArray) ImplementsSettingEditResponseZonesSearchForAgentsValueUnion

func (r SettingEditResponseZonesSearchForAgentsValueArray) ImplementsSettingEditResponseZonesSearchForAgentsValueUnion()

type SettingEditResponseZonesSearchForAgentsValueUnion

type SettingEditResponseZonesSearchForAgentsValueUnion interface {
	ImplementsSettingEditResponseZonesSearchForAgentsValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesSearchForAgentsValueArray.

type SettingEditResponseZonesSecurityLevel2 added in v7.8.0

type SettingEditResponseZonesSecurityLevel2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesSecurityLevel2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesSecurityLevel2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesSecurityLevel2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                  `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesSecurityLevel2JSON `json:"-"`
}

Choose the appropriate security profile for your website, which will automatically adjust each of the security settings. If you choose to customize an individual security setting, the profile will become Custom. (https://support.cloudflare.com/hc/en-us/articles/200170056).

func (*SettingEditResponseZonesSecurityLevel2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesSecurityLevel2Editable added in v7.8.0

type SettingEditResponseZonesSecurityLevel2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesSecurityLevel2EditableTrue  SettingEditResponseZonesSecurityLevel2Editable = true
	SettingEditResponseZonesSecurityLevel2EditableFalse SettingEditResponseZonesSecurityLevel2Editable = false
)

func (SettingEditResponseZonesSecurityLevel2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesSecurityLevel2ID added in v7.8.0

type SettingEditResponseZonesSecurityLevel2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesSecurityLevel2IDSecurityLevel SettingEditResponseZonesSecurityLevel2ID = "security_level"
)

func (SettingEditResponseZonesSecurityLevel2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesSecurityLevel2ValueArray

type SettingEditResponseZonesSecurityLevel2ValueArray []string

func (SettingEditResponseZonesSecurityLevel2ValueArray) ImplementsSettingEditResponseZonesSecurityLevel2ValueUnion

func (r SettingEditResponseZonesSecurityLevel2ValueArray) ImplementsSettingEditResponseZonesSecurityLevel2ValueUnion()

type SettingEditResponseZonesSecurityLevel2ValueUnion

type SettingEditResponseZonesSecurityLevel2ValueUnion interface {
	ImplementsSettingEditResponseZonesSecurityLevel2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesSecurityLevel2ValueArray.

type SettingEditResponseZonesSha1Support

type SettingEditResponseZonesSha1Support struct {
	// Zone setting identifier.
	ID SettingEditResponseZonesSha1SupportID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesSha1SupportValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesSha1SupportEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                               `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesSha1SupportJSON `json:"-"`
}

Allow SHA1 support.

func (*SettingEditResponseZonesSha1Support) UnmarshalJSON

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

type SettingEditResponseZonesSha1SupportEditable

type SettingEditResponseZonesSha1SupportEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesSha1SupportEditableTrue  SettingEditResponseZonesSha1SupportEditable = true
	SettingEditResponseZonesSha1SupportEditableFalse SettingEditResponseZonesSha1SupportEditable = false
)

func (SettingEditResponseZonesSha1SupportEditable) IsKnown

type SettingEditResponseZonesSha1SupportID

type SettingEditResponseZonesSha1SupportID string

Zone setting identifier.

const (
	SettingEditResponseZonesSha1SupportIDSha1Support SettingEditResponseZonesSha1SupportID = "sha1_support"
)

func (SettingEditResponseZonesSha1SupportID) IsKnown

type SettingEditResponseZonesSha1SupportValueArray

type SettingEditResponseZonesSha1SupportValueArray []string

func (SettingEditResponseZonesSha1SupportValueArray) ImplementsSettingEditResponseZonesSha1SupportValueUnion

func (r SettingEditResponseZonesSha1SupportValueArray) ImplementsSettingEditResponseZonesSha1SupportValueUnion()

type SettingEditResponseZonesSha1SupportValueUnion

type SettingEditResponseZonesSha1SupportValueUnion interface {
	ImplementsSettingEditResponseZonesSha1SupportValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesSha1SupportValueArray.

type SettingEditResponseZonesSortQueryStringForCache2 added in v7.8.0

type SettingEditResponseZonesSortQueryStringForCache2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesSortQueryStringForCache2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesSortQueryStringForCache2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesSortQueryStringForCache2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                            `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesSortQueryStringForCache2JSON `json:"-"`
}

Cloudflare will treat files with the same query strings as the same file in cache, regardless of the order of the query strings. This is limited to Enterprise Zones.

func (*SettingEditResponseZonesSortQueryStringForCache2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesSortQueryStringForCache2Editable added in v7.8.0

type SettingEditResponseZonesSortQueryStringForCache2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesSortQueryStringForCache2EditableTrue  SettingEditResponseZonesSortQueryStringForCache2Editable = true
	SettingEditResponseZonesSortQueryStringForCache2EditableFalse SettingEditResponseZonesSortQueryStringForCache2Editable = false
)

func (SettingEditResponseZonesSortQueryStringForCache2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesSortQueryStringForCache2ID added in v7.8.0

type SettingEditResponseZonesSortQueryStringForCache2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesSortQueryStringForCache2IDSortQueryStringForCache SettingEditResponseZonesSortQueryStringForCache2ID = "sort_query_string_for_cache"
)

func (SettingEditResponseZonesSortQueryStringForCache2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesSortQueryStringForCache2ValueArray

type SettingEditResponseZonesSortQueryStringForCache2ValueArray []string

func (SettingEditResponseZonesSortQueryStringForCache2ValueArray) ImplementsSettingEditResponseZonesSortQueryStringForCache2ValueUnion

func (r SettingEditResponseZonesSortQueryStringForCache2ValueArray) ImplementsSettingEditResponseZonesSortQueryStringForCache2ValueUnion()

type SettingEditResponseZonesSortQueryStringForCache2ValueUnion

type SettingEditResponseZonesSortQueryStringForCache2ValueUnion interface {
	ImplementsSettingEditResponseZonesSortQueryStringForCache2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesSortQueryStringForCache2ValueArray.

type SettingEditResponseZonesTLS1_2Only

type SettingEditResponseZonesTLS1_2Only struct {
	// Zone setting identifier.
	ID SettingEditResponseZonesTLS1_2OnlyID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesTLS1_2OnlyValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesTLS1_2OnlyEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                              `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesTls1_2OnlyJSON `json:"-"`
}

Only allows TLS1.2.

func (*SettingEditResponseZonesTLS1_2Only) UnmarshalJSON

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

type SettingEditResponseZonesTLS1_2OnlyEditable

type SettingEditResponseZonesTLS1_2OnlyEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesTLS1_2OnlyEditableTrue  SettingEditResponseZonesTLS1_2OnlyEditable = true
	SettingEditResponseZonesTLS1_2OnlyEditableFalse SettingEditResponseZonesTLS1_2OnlyEditable = false
)

func (SettingEditResponseZonesTLS1_2OnlyEditable) IsKnown

type SettingEditResponseZonesTLS1_2OnlyID

type SettingEditResponseZonesTLS1_2OnlyID string

Zone setting identifier.

const (
	SettingEditResponseZonesTLS1_2OnlyIDTLS1_2Only SettingEditResponseZonesTLS1_2OnlyID = "tls_1_2_only"
)

func (SettingEditResponseZonesTLS1_2OnlyID) IsKnown

type SettingEditResponseZonesTLS1_2OnlyValueArray

type SettingEditResponseZonesTLS1_2OnlyValueArray []string

func (SettingEditResponseZonesTLS1_2OnlyValueArray) ImplementsSettingEditResponseZonesTls1_2OnlyValueUnion

func (r SettingEditResponseZonesTLS1_2OnlyValueArray) ImplementsSettingEditResponseZonesTls1_2OnlyValueUnion()

type SettingEditResponseZonesTLS1_2OnlyValueUnion

type SettingEditResponseZonesTLS1_2OnlyValueUnion interface {
	ImplementsSettingEditResponseZonesTls1_2OnlyValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesTLS1_2OnlyValueArray.

type SettingEditResponseZonesTransformations

type SettingEditResponseZonesTransformations struct {
	// ID of the zone setting. Shared between Image Transformations and Video
	// Transformations.
	ID SettingEditResponseZonesTransformationsID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesTransformationsValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesTransformationsEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                   `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesTransformationsJSON `json:"-"`
}

Media Transformations provides on-demand resizing, conversion and optimization for images and video served through Cloudflare's network. Refer to the [Image Transformations](https://developers.cloudflare.com/images/) and [Video Transformations](https://developers.cloudflare.com/stream/transform-videos/#getting-started) documentation for more information.

func (*SettingEditResponseZonesTransformations) UnmarshalJSON

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

type SettingEditResponseZonesTransformationsAllowedOrigins

type SettingEditResponseZonesTransformationsAllowedOrigins struct {
	// ID of the zone setting. Shared between Image Transformations and Video
	// Transformations.
	ID SettingEditResponseZonesTransformationsAllowedOriginsID `json:"id" api:"required"`
	// Comma-separated list of allowed origins. Refer to the
	// [Image Transformations](https://developers.cloudflare.com/images/transform-images/sources/)
	// and
	// [Video Transformations](https://developers.cloudflare.com/stream/transform-videos/#getting-started)
	// documentation for more information.
	Value SettingEditResponseZonesTransformationsAllowedOriginsValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesTransformationsAllowedOriginsEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                                 `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesTransformationsAllowedOriginsJSON `json:"-"`
}

Media Transformations Allowed Origins restricts transformations for images and video served through Cloudflare's network. Refer to the [Image Transformations](https://developers.cloudflare.com/images/) and [Video Transformations](https://developers.cloudflare.com/stream/transform-videos/#getting-started) documentation for more information.

func (*SettingEditResponseZonesTransformationsAllowedOrigins) UnmarshalJSON

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

type SettingEditResponseZonesTransformationsAllowedOriginsEditable

type SettingEditResponseZonesTransformationsAllowedOriginsEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesTransformationsAllowedOriginsEditableTrue  SettingEditResponseZonesTransformationsAllowedOriginsEditable = true
	SettingEditResponseZonesTransformationsAllowedOriginsEditableFalse SettingEditResponseZonesTransformationsAllowedOriginsEditable = false
)

func (SettingEditResponseZonesTransformationsAllowedOriginsEditable) IsKnown

type SettingEditResponseZonesTransformationsAllowedOriginsID

type SettingEditResponseZonesTransformationsAllowedOriginsID string

ID of the zone setting. Shared between Image Transformations and Video Transformations.

const (
	SettingEditResponseZonesTransformationsAllowedOriginsIDTransformationsAllowedOrigins SettingEditResponseZonesTransformationsAllowedOriginsID = "transformations_allowed_origins"
)

func (SettingEditResponseZonesTransformationsAllowedOriginsID) IsKnown

type SettingEditResponseZonesTransformationsAllowedOriginsValueArray

type SettingEditResponseZonesTransformationsAllowedOriginsValueArray []string

func (SettingEditResponseZonesTransformationsAllowedOriginsValueArray) ImplementsSettingEditResponseZonesTransformationsAllowedOriginsValueUnion

func (r SettingEditResponseZonesTransformationsAllowedOriginsValueArray) ImplementsSettingEditResponseZonesTransformationsAllowedOriginsValueUnion()

type SettingEditResponseZonesTransformationsAllowedOriginsValueUnion

type SettingEditResponseZonesTransformationsAllowedOriginsValueUnion interface {
	ImplementsSettingEditResponseZonesTransformationsAllowedOriginsValueUnion()
}

Comma-separated list of allowed origins. Refer to the [Image Transformations](https://developers.cloudflare.com/images/transform-images/sources/) and [Video Transformations](https://developers.cloudflare.com/stream/transform-videos/#getting-started) documentation for more information.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesTransformationsAllowedOriginsValueArray.

type SettingEditResponseZonesTransformationsEditable

type SettingEditResponseZonesTransformationsEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesTransformationsEditableTrue  SettingEditResponseZonesTransformationsEditable = true
	SettingEditResponseZonesTransformationsEditableFalse SettingEditResponseZonesTransformationsEditable = false
)

func (SettingEditResponseZonesTransformationsEditable) IsKnown

type SettingEditResponseZonesTransformationsID

type SettingEditResponseZonesTransformationsID string

ID of the zone setting. Shared between Image Transformations and Video Transformations.

const (
	SettingEditResponseZonesTransformationsIDTransformations SettingEditResponseZonesTransformationsID = "transformations"
)

func (SettingEditResponseZonesTransformationsID) IsKnown

type SettingEditResponseZonesTransformationsValueArray

type SettingEditResponseZonesTransformationsValueArray []string

func (SettingEditResponseZonesTransformationsValueArray) ImplementsSettingEditResponseZonesTransformationsValueUnion

func (r SettingEditResponseZonesTransformationsValueArray) ImplementsSettingEditResponseZonesTransformationsValueUnion()

type SettingEditResponseZonesTransformationsValueUnion

type SettingEditResponseZonesTransformationsValueUnion interface {
	ImplementsSettingEditResponseZonesTransformationsValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesTransformationsValueArray.

type SettingEditResponseZonesTrueClientIPHeader2 added in v7.8.0

type SettingEditResponseZonesTrueClientIPHeader2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesTrueClientIPHeader2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesTrueClientIPHeader2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesTrueClientIPHeader2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                       `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesTrueClientIPHeader2JSON `json:"-"`
}

Allows customer to continue to use True Client IP (Akamai feature) in the headers we send to the origin. This is limited to Enterprise Zones.

func (*SettingEditResponseZonesTrueClientIPHeader2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesTrueClientIPHeader2Editable added in v7.8.0

type SettingEditResponseZonesTrueClientIPHeader2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesTrueClientIPHeader2EditableTrue  SettingEditResponseZonesTrueClientIPHeader2Editable = true
	SettingEditResponseZonesTrueClientIPHeader2EditableFalse SettingEditResponseZonesTrueClientIPHeader2Editable = false
)

func (SettingEditResponseZonesTrueClientIPHeader2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesTrueClientIPHeader2ID added in v7.8.0

type SettingEditResponseZonesTrueClientIPHeader2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesTrueClientIPHeader2IDTrueClientIPHeader SettingEditResponseZonesTrueClientIPHeader2ID = "true_client_ip_header"
)

func (SettingEditResponseZonesTrueClientIPHeader2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesTrueClientIPHeader2ValueArray

type SettingEditResponseZonesTrueClientIPHeader2ValueArray []string

func (SettingEditResponseZonesTrueClientIPHeader2ValueArray) ImplementsSettingEditResponseZonesTrueClientIPHeader2ValueUnion

func (r SettingEditResponseZonesTrueClientIPHeader2ValueArray) ImplementsSettingEditResponseZonesTrueClientIPHeader2ValueUnion()

type SettingEditResponseZonesTrueClientIPHeader2ValueUnion

type SettingEditResponseZonesTrueClientIPHeader2ValueUnion interface {
	ImplementsSettingEditResponseZonesTrueClientIPHeader2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesTrueClientIPHeader2ValueArray.

type SettingEditResponseZonesWAF2 added in v7.8.0

type SettingEditResponseZonesWAF2 struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesWAF2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesWAF2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesWAF2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                        `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesWaf2JSON `json:"-"`
}

The WAF examines HTTP requests to your website. It inspects both GET and POST requests and applies rules to help filter out illegitimate traffic from legitimate website visitors. The Cloudflare WAF inspects website addresses or URLs to detect anything out of the ordinary. If the Cloudflare WAF determines suspicious user behavior, then the WAF will 'challenge' the web visitor with a page that asks them to submit a CAPTCHA successfully to continue their action. If the challenge is failed, the action will be stopped. What this means is that Cloudflare's WAF will block any traffic identified as illegitimate before it reaches your origin web server. (https://support.cloudflare.com/hc/en-us/articles/200172016).

func (*SettingEditResponseZonesWAF2) UnmarshalJSON added in v7.8.0

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

type SettingEditResponseZonesWAF2Editable added in v7.8.0

type SettingEditResponseZonesWAF2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesWAF2EditableTrue  SettingEditResponseZonesWAF2Editable = true
	SettingEditResponseZonesWAF2EditableFalse SettingEditResponseZonesWAF2Editable = false
)

func (SettingEditResponseZonesWAF2Editable) IsKnown added in v7.8.0

type SettingEditResponseZonesWAF2ID added in v7.8.0

type SettingEditResponseZonesWAF2ID string

ID of the zone setting.

const (
	SettingEditResponseZonesWAF2IDWAF SettingEditResponseZonesWAF2ID = "waf"
)

func (SettingEditResponseZonesWAF2ID) IsKnown added in v7.8.0

type SettingEditResponseZonesWAF2ValueArray

type SettingEditResponseZonesWAF2ValueArray []string

func (SettingEditResponseZonesWAF2ValueArray) ImplementsSettingEditResponseZonesWaf2ValueUnion

func (r SettingEditResponseZonesWAF2ValueArray) ImplementsSettingEditResponseZonesWaf2ValueUnion()

type SettingEditResponseZonesWAF2ValueUnion

type SettingEditResponseZonesWAF2ValueUnion interface {
	ImplementsSettingEditResponseZonesWaf2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesWAF2ValueArray.

type SettingEditResponseZonesWebmcpEnabled added in v7.9.0

type SettingEditResponseZonesWebmcpEnabled struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesWebmcpEnabledID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingEditResponseZonesWebmcpEnabledValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesWebmcpEnabledEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                 `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesWebmcpEnabledJSON `json:"-"`
}

When enabled, Cloudflare injects the WebMCP bridge (bridge.js) into HTML responses for this zone, exposing DOM and Content Credentials tools to an in-browser AI agent via navigator.modelContext. No origin-side code changes are required. This setting is currently in beta and its behavior may change.

func (*SettingEditResponseZonesWebmcpEnabled) UnmarshalJSON added in v7.9.0

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

type SettingEditResponseZonesWebmcpEnabledEditable added in v7.9.0

type SettingEditResponseZonesWebmcpEnabledEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesWebmcpEnabledEditableTrue  SettingEditResponseZonesWebmcpEnabledEditable = true
	SettingEditResponseZonesWebmcpEnabledEditableFalse SettingEditResponseZonesWebmcpEnabledEditable = false
)

func (SettingEditResponseZonesWebmcpEnabledEditable) IsKnown added in v7.9.0

type SettingEditResponseZonesWebmcpEnabledID added in v7.9.0

type SettingEditResponseZonesWebmcpEnabledID string

ID of the zone setting.

const (
	SettingEditResponseZonesWebmcpEnabledIDWebmcpEnabled SettingEditResponseZonesWebmcpEnabledID = "webmcp_enabled"
)

func (SettingEditResponseZonesWebmcpEnabledID) IsKnown added in v7.9.0

type SettingEditResponseZonesWebmcpEnabledValueArray

type SettingEditResponseZonesWebmcpEnabledValueArray []string

func (SettingEditResponseZonesWebmcpEnabledValueArray) ImplementsSettingEditResponseZonesWebmcpEnabledValueUnion

func (r SettingEditResponseZonesWebmcpEnabledValueArray) ImplementsSettingEditResponseZonesWebmcpEnabledValueUnion()

type SettingEditResponseZonesWebmcpEnabledValueUnion

type SettingEditResponseZonesWebmcpEnabledValueUnion interface {
	ImplementsSettingEditResponseZonesWebmcpEnabledValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesWebmcpEnabledValueArray.

type SettingEditResponseZonesWebmcpMcpURL

type SettingEditResponseZonesWebmcpMcpURL struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesWebmcpMcpURLID `json:"id" api:"required"`
	// Root-relative path (with optional query string) of this zone's MCP endpoint, for
	// example "/api/mcp". Surfaced to the injected bridge as the data-mcp-url
	// attribute. Absolute and protocol-relative URLs, fragments, and characters
	// outside RFC 3986 paths and queries are rejected. An empty value clears the
	// override so the bridge uses /mcp.
	Value SettingEditResponseZonesWebmcpMcpURLValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesWebmcpMcpURLEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesWebmcpMcpURLJSON `json:"-"`
}

Optional per-zone path of the site's own MCP server, used by the WebMCP mcp-server-client tool pack to list and call the site's MCP tools from the browser. The path is resolved against the page's origin, so it applies to every hostname in the zone. Only takes effect when webmcp_enabled is on and the mcp-server-client pack is active. Leave empty to use /mcp. This setting is currently in beta and its behavior may change.

func (*SettingEditResponseZonesWebmcpMcpURL) UnmarshalJSON

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

type SettingEditResponseZonesWebmcpMcpURLEditable

type SettingEditResponseZonesWebmcpMcpURLEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesWebmcpMcpURLEditableTrue  SettingEditResponseZonesWebmcpMcpURLEditable = true
	SettingEditResponseZonesWebmcpMcpURLEditableFalse SettingEditResponseZonesWebmcpMcpURLEditable = false
)

func (SettingEditResponseZonesWebmcpMcpURLEditable) IsKnown

type SettingEditResponseZonesWebmcpMcpURLID

type SettingEditResponseZonesWebmcpMcpURLID string

ID of the zone setting.

const (
	SettingEditResponseZonesWebmcpMcpURLIDWebmcpMcpURL SettingEditResponseZonesWebmcpMcpURLID = "webmcp_mcp_url"
)

func (SettingEditResponseZonesWebmcpMcpURLID) IsKnown

type SettingEditResponseZonesWebmcpMcpURLValueArray

type SettingEditResponseZonesWebmcpMcpURLValueArray []string

func (SettingEditResponseZonesWebmcpMcpURLValueArray) ImplementsSettingEditResponseZonesWebmcpMcpURLValueUnion

func (r SettingEditResponseZonesWebmcpMcpURLValueArray) ImplementsSettingEditResponseZonesWebmcpMcpURLValueUnion()

type SettingEditResponseZonesWebmcpMcpURLValueUnion

type SettingEditResponseZonesWebmcpMcpURLValueUnion interface {
	ImplementsSettingEditResponseZonesWebmcpMcpURLValueUnion()
}

Root-relative path (with optional query string) of this zone's MCP endpoint, for example "/api/mcp". Surfaced to the injected bridge as the data-mcp-url attribute. Absolute and protocol-relative URLs, fragments, and characters outside RFC 3986 paths and queries are rejected. An empty value clears the override so the bridge uses /mcp.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesWebmcpMcpURLValueArray.

type SettingEditResponseZonesWebmcpPacks added in v7.9.0

type SettingEditResponseZonesWebmcpPacks struct {
	// ID of the zone setting.
	ID SettingEditResponseZonesWebmcpPacksID `json:"id" api:"required"`
	// Comma-separated list of WebMCP tool-pack names to activate for this zone (for
	// example, "c2pa,mcp-server-client"), surfaced to the injected bridge as the
	// data-packs attribute. An empty value clears the override so the bridge uses its
	// built-in default pack set.
	Value SettingEditResponseZonesWebmcpPacksValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingEditResponseZonesWebmcpPacksEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                               `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingEditResponseZonesWebmcpPacksJSON `json:"-"`
}

Optional per-zone override of which bundled WebMCP tool packs the injected bridge.js activates. Only takes effect when webmcp_enabled is on. Leave empty to use the bridge's default pack set. Unknown pack names are ignored by the bridge. This setting is currently in beta and its behavior may change.

func (*SettingEditResponseZonesWebmcpPacks) UnmarshalJSON added in v7.9.0

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

type SettingEditResponseZonesWebmcpPacksEditable added in v7.9.0

type SettingEditResponseZonesWebmcpPacksEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingEditResponseZonesWebmcpPacksEditableTrue  SettingEditResponseZonesWebmcpPacksEditable = true
	SettingEditResponseZonesWebmcpPacksEditableFalse SettingEditResponseZonesWebmcpPacksEditable = false
)

func (SettingEditResponseZonesWebmcpPacksEditable) IsKnown added in v7.9.0

type SettingEditResponseZonesWebmcpPacksID added in v7.9.0

type SettingEditResponseZonesWebmcpPacksID string

ID of the zone setting.

const (
	SettingEditResponseZonesWebmcpPacksIDWebmcpPacks SettingEditResponseZonesWebmcpPacksID = "webmcp_packs"
)

func (SettingEditResponseZonesWebmcpPacksID) IsKnown added in v7.9.0

type SettingEditResponseZonesWebmcpPacksValueArray

type SettingEditResponseZonesWebmcpPacksValueArray []string

func (SettingEditResponseZonesWebmcpPacksValueArray) ImplementsSettingEditResponseZonesWebmcpPacksValueUnion

func (r SettingEditResponseZonesWebmcpPacksValueArray) ImplementsSettingEditResponseZonesWebmcpPacksValueUnion()

type SettingEditResponseZonesWebmcpPacksValueUnion

type SettingEditResponseZonesWebmcpPacksValueUnion interface {
	ImplementsSettingEditResponseZonesWebmcpPacksValueUnion()
}

Comma-separated list of WebMCP tool-pack names to activate for this zone (for example, "c2pa,mcp-server-client"), surfaced to the injected bridge as the data-packs attribute. An empty value clears the override so the bridge uses its built-in default pack set.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingEditResponseZonesWebmcpPacksValueArray.

type SettingGetParams

type SettingGetParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type SettingGetResponse

type SettingGetResponse struct {
	// ID of the zone setting.
	ID SettingGetResponseID `json:"id"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseEditable `json:"editable"`
	// ssl-recommender enrollment setting.
	Enabled bool `json:"enabled"`
	// last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Value of the zone setting. Notes: The interval (in seconds) from when
	// development mode expires (positive integer) or last expired (negative integer)
	// for the domain. If development mode has never been enabled, this value is false.
	TimeRemaining float64 `json:"time_remaining"`
	// This field can have the runtime type of [ZeroRTTValueUnion],
	// [AdvancedDDoSValueUnion], [SettingGetResponseZonesCacheRulesAegisValue],
	// [AlwaysOnlineValueUnion], [SettingGetResponseZonesAlwaysUseHTTPS2ValueUnion],
	// [SettingGetResponseZonesAutomaticHTTPSRewrites2ValueUnion], [BrotliValueUnion],
	// [SettingGetResponseZonesBrowserCacheTTL2ValueUnion],
	// [SettingGetResponseZonesBrowserCheck2ValueUnion],
	// [SettingGetResponseZonesCacheLevel2ValueUnion], [ChallengeTTLValueUnion],
	// [SettingGetResponseZonesChinaNetworkEnabledValueUnion],
	// [SettingGetResponseZonesContentConverterValueUnion], [CiphersValueUnion],
	// [SettingGetResponseZonesCNAMEFlatteningValueUnion], [DevelopmentModeValueUnion],
	// [EarlyHintsValueUnion], [SettingGetResponseZonesEdgeCacheTTL2ValueUnion],
	// [SettingGetResponseZonesEmailObfuscation2ValueUnion],
	// [H2PrioritizationValueUnion], [HotlinkProtectionValueUnion], [HTTP2ValueUnion],
	// [HTTP3ValueUnion], [ImageResizingValueUnion],
	// [SettingGetResponseZonesIPGeolocation2ValueUnion], [IPV6ValueUnion],
	// [SettingGetResponseZonesMaxUploadValueUnion], [MinTLSVersionValueUnion],
	// [SettingGetResponseZonesMirage2ValueUnion], [NELValue],
	// [SettingGetResponseZonesOpportunisticEncryption2ValueUnion],
	// [OpportunisticOnionValueUnion], [OrangeToOrangeValueUnion],
	// [SettingGetResponseZonesOriginErrorPagePassThru2ValueUnion], [int64],
	// [SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionValue],
	// [SettingGetResponseZonesPolish2ValueUnion], [PrefetchPreloadValueUnion],
	// [SettingGetResponseZonesPreRenderValueUnion],
	// [SettingGetResponseZonesPrivacyPassValueUnion], [ProxyReadTimeoutValueUnion],
	// [PseudoIPV4ValueUnion],
	// [SettingGetResponseZonesRedirectsForAITrainingValueUnion],
	// [SettingGetResponseZonesReplaceInsecureJSValueUnion],
	// [SettingGetResponseZonesResponseBuffering2ValueUnion],
	// [SettingGetResponseZonesRocketLoader2ValueUnion],
	// [SettingGetResponseZonesSchemasAutomaticPlatformOptimizationValue],
	// [SettingGetResponseZonesSearchForAgentsValueUnion], [SecurityHeadersValue],
	// [SettingGetResponseZonesSecurityLevel2ValueUnion],
	// [ServerSideExcludesValueUnion], [SettingGetResponseZonesSha1SupportValueUnion],
	// [SettingGetResponseZonesSortQueryStringForCache2ValueUnion],
	// [SettingGetResponseZonesSSL2ValueUnion],
	// [SettingGetResponseZonesTLS1_2OnlyValueUnion], [TLS1_3ValueUnion],
	// [TLSClientAuthValueUnion], [SettingGetResponseZonesTransformationsValueUnion],
	// [SettingGetResponseZonesTransformationsAllowedOriginsValueUnion],
	// [SettingGetResponseZonesTrueClientIPHeader2ValueUnion],
	// [SettingGetResponseZonesWAF2ValueUnion],
	// [SettingGetResponseZonesWebmcpEnabledValueUnion],
	// [SettingGetResponseZonesWebmcpMcpURLValueUnion],
	// [SettingGetResponseZonesWebmcpPacksValueUnion], [WebPValueUnion],
	// [SettingGetResponseZonesAVIFValueUnion], [WebsocketValueUnion].
	Value interface{}            `json:"value"`
	JSON  settingGetResponseJSON `json:"-"`
	// contains filtered or unexported fields
}

0-RTT session resumption enabled for this zone. Changing this setting does not enable or disable TLS 1.3. Writing the `tls_1_3` setting also changes 0-RTT: `zrt` enables it, and `on` or `off` disables it.

func (SettingGetResponse) AsUnion

AsUnion returns a SettingGetResponseUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are ZeroRTT, AdvancedDDoS, SettingGetResponseZonesCacheRulesAegis, AlwaysOnline, SettingGetResponseZonesAlwaysUseHTTPS2, SettingGetResponseZonesAutomaticHTTPSRewrites2, Brotli, SettingGetResponseZonesBrowserCacheTTL2, SettingGetResponseZonesBrowserCheck2, SettingGetResponseZonesCacheLevel2, ChallengeTTL, SettingGetResponseZonesChinaNetworkEnabled, SettingGetResponseZonesContentConverter, Ciphers, SettingGetResponseZonesCNAMEFlattening, DevelopmentMode, EarlyHints, SettingGetResponseZonesEdgeCacheTTL2, SettingGetResponseZonesEmailObfuscation2, H2Prioritization, HotlinkProtection, HTTP2, HTTP3, ImageResizing, SettingGetResponseZonesIPGeolocation2, IPV6, SettingGetResponseZonesMaxUpload, MinTLSVersion, SettingGetResponseZonesMirage2, NEL, SettingGetResponseZonesOpportunisticEncryption2, OpportunisticOnion, OrangeToOrange, SettingGetResponseZonesOriginErrorPagePassThru2, SettingGetResponseZonesCacheRulesOriginH2MaxStreams, SettingGetResponseZonesCacheRulesOriginMaxHTTPVersion, SettingGetResponseZonesPolish2, PrefetchPreload, SettingGetResponseZonesPreRender, SettingGetResponseZonesPrivacyPass, ProxyReadTimeout, PseudoIPV4, SettingGetResponseZonesRedirectsForAITraining, SettingGetResponseZonesReplaceInsecureJS, SettingGetResponseZonesResponseBuffering2, SettingGetResponseZonesRocketLoader2, SettingGetResponseZonesSchemasAutomaticPlatformOptimization, SettingGetResponseZonesSearchForAgents, SecurityHeaders, SettingGetResponseZonesSecurityLevel2, ServerSideExcludes, SettingGetResponseZonesSha1Support, SettingGetResponseZonesSortQueryStringForCache2, SettingGetResponseZonesSSL2, SSLRecommender, SettingGetResponseZonesTLS1_2Only, TLS1_3, TLSClientAuth, SettingGetResponseZonesTransformations, SettingGetResponseZonesTransformationsAllowedOrigins, SettingGetResponseZonesTrueClientIPHeader2, SettingGetResponseZonesWAF2, SettingGetResponseZonesWebmcpEnabled, SettingGetResponseZonesWebmcpMcpURL, SettingGetResponseZonesWebmcpPacks, WebP, SettingGetResponseZonesAVIF, Websocket.

func (*SettingGetResponse) UnmarshalJSON

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

type SettingGetResponseEditable

type SettingGetResponseEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseEditableTrue  SettingGetResponseEditable = true
	SettingGetResponseEditableFalse SettingGetResponseEditable = false
)

func (SettingGetResponseEditable) IsKnown

func (r SettingGetResponseEditable) IsKnown() bool

type SettingGetResponseEnvelope

type SettingGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	// Whether the API call was successful
	Success bool `json:"success" api:"required"`
	// 0-RTT session resumption enabled for this zone. Changing this setting does not
	// enable or disable TLS 1.3. Writing the `tls_1_3` setting also changes 0-RTT:
	// `zrt` enables it, and `on` or `off` disables it.
	Result SettingGetResponse             `json:"result"`
	JSON   settingGetResponseEnvelopeJSON `json:"-"`
}

func (*SettingGetResponseEnvelope) UnmarshalJSON

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

type SettingGetResponseID

type SettingGetResponseID string

ID of the zone setting.

const (
	SettingGetResponseID0rtt                          SettingGetResponseID = "0rtt"
	SettingGetResponseIDAdvancedDDoS                  SettingGetResponseID = "advanced_ddos"
	SettingGetResponseIDAegis                         SettingGetResponseID = "aegis"
	SettingGetResponseIDAlwaysOnline                  SettingGetResponseID = "always_online"
	SettingGetResponseIDAlwaysUseHTTPS                SettingGetResponseID = "always_use_https"
	SettingGetResponseIDAutomaticHTTPSRewrites        SettingGetResponseID = "automatic_https_rewrites"
	SettingGetResponseIDBrotli                        SettingGetResponseID = "brotli"
	SettingGetResponseIDBrowserCacheTTL               SettingGetResponseID = "browser_cache_ttl"
	SettingGetResponseIDBrowserCheck                  SettingGetResponseID = "browser_check"
	SettingGetResponseIDCacheLevel                    SettingGetResponseID = "cache_level"
	SettingGetResponseIDChallengeTTL                  SettingGetResponseID = "challenge_ttl"
	SettingGetResponseIDChinaNetworkEnabled           SettingGetResponseID = "china_network_enabled"
	SettingGetResponseIDContentConverter              SettingGetResponseID = "content_converter"
	SettingGetResponseIDCiphers                       SettingGetResponseID = "ciphers"
	SettingGetResponseIDCNAMEFlattening               SettingGetResponseID = "cname_flattening"
	SettingGetResponseIDDevelopmentMode               SettingGetResponseID = "development_mode"
	SettingGetResponseIDEarlyHints                    SettingGetResponseID = "early_hints"
	SettingGetResponseIDEdgeCacheTTL                  SettingGetResponseID = "edge_cache_ttl"
	SettingGetResponseIDEmailObfuscation              SettingGetResponseID = "email_obfuscation"
	SettingGetResponseIDH2Prioritization              SettingGetResponseID = "h2_prioritization"
	SettingGetResponseIDHotlinkProtection             SettingGetResponseID = "hotlink_protection"
	SettingGetResponseIDHTTP2                         SettingGetResponseID = "http2"
	SettingGetResponseIDHTTP3                         SettingGetResponseID = "http3"
	SettingGetResponseIDImageResizing                 SettingGetResponseID = "image_resizing"
	SettingGetResponseIDIPGeolocation                 SettingGetResponseID = "ip_geolocation"
	SettingGetResponseIDIPV6                          SettingGetResponseID = "ipv6"
	SettingGetResponseIDMaxUpload                     SettingGetResponseID = "max_upload"
	SettingGetResponseIDMinTLSVersion                 SettingGetResponseID = "min_tls_version"
	SettingGetResponseIDMirage                        SettingGetResponseID = "mirage"
	SettingGetResponseIDNEL                           SettingGetResponseID = "nel"
	SettingGetResponseIDOpportunisticEncryption       SettingGetResponseID = "opportunistic_encryption"
	SettingGetResponseIDOpportunisticOnion            SettingGetResponseID = "opportunistic_onion"
	SettingGetResponseIDOrangeToOrange                SettingGetResponseID = "orange_to_orange"
	SettingGetResponseIDOriginErrorPagePassThru       SettingGetResponseID = "origin_error_page_pass_thru"
	SettingGetResponseIDOriginH2MaxStreams            SettingGetResponseID = "origin_h2_max_streams"
	SettingGetResponseIDOriginMaxHTTPVersion          SettingGetResponseID = "origin_max_http_version"
	SettingGetResponseIDPolish                        SettingGetResponseID = "polish"
	SettingGetResponseIDPrefetchPreload               SettingGetResponseID = "prefetch_preload"
	SettingGetResponseIDPreRender                     SettingGetResponseID = "pre_render"
	SettingGetResponseIDPrivacyPass                   SettingGetResponseID = "privacy_pass"
	SettingGetResponseIDProxyReadTimeout              SettingGetResponseID = "proxy_read_timeout"
	SettingGetResponseIDPseudoIPV4                    SettingGetResponseID = "pseudo_ipv4"
	SettingGetResponseIDRedirectsForAITraining        SettingGetResponseID = "redirects_for_ai_training"
	SettingGetResponseIDReplaceInsecureJS             SettingGetResponseID = "replace_insecure_js"
	SettingGetResponseIDResponseBuffering             SettingGetResponseID = "response_buffering"
	SettingGetResponseIDRocketLoader                  SettingGetResponseID = "rocket_loader"
	SettingGetResponseIDAutomaticPlatformOptimization SettingGetResponseID = "automatic_platform_optimization"
	SettingGetResponseIDSearchForAgents               SettingGetResponseID = "search_for_agents"
	SettingGetResponseIDSecurityHeader                SettingGetResponseID = "security_header"
	SettingGetResponseIDSecurityLevel                 SettingGetResponseID = "security_level"
	SettingGetResponseIDServerSideExclude             SettingGetResponseID = "server_side_exclude"
	SettingGetResponseIDSha1Support                   SettingGetResponseID = "sha1_support"
	SettingGetResponseIDSortQueryStringForCache       SettingGetResponseID = "sort_query_string_for_cache"
	SettingGetResponseIDSSL                           SettingGetResponseID = "ssl"
	SettingGetResponseIDSSLRecommender                SettingGetResponseID = "ssl_recommender"
	SettingGetResponseIDTLS1_2Only                    SettingGetResponseID = "tls_1_2_only"
	SettingGetResponseIDTLS1_3                        SettingGetResponseID = "tls_1_3"
	SettingGetResponseIDTLSClientAuth                 SettingGetResponseID = "tls_client_auth"
	SettingGetResponseIDTransformations               SettingGetResponseID = "transformations"
	SettingGetResponseIDTransformationsAllowedOrigins SettingGetResponseID = "transformations_allowed_origins"
	SettingGetResponseIDTrueClientIPHeader            SettingGetResponseID = "true_client_ip_header"
	SettingGetResponseIDWAF                           SettingGetResponseID = "waf"
	SettingGetResponseIDWebmcpEnabled                 SettingGetResponseID = "webmcp_enabled"
	SettingGetResponseIDWebmcpMcpURL                  SettingGetResponseID = "webmcp_mcp_url"
	SettingGetResponseIDWebmcpPacks                   SettingGetResponseID = "webmcp_packs"
	SettingGetResponseIDWebP                          SettingGetResponseID = "webp"
	SettingGetResponseIDAVIF                          SettingGetResponseID = "avif"
	SettingGetResponseIDWebsockets                    SettingGetResponseID = "websockets"
)

func (SettingGetResponseID) IsKnown

func (r SettingGetResponseID) IsKnown() bool

type SettingGetResponseUnion

type SettingGetResponseUnion interface {
	// contains filtered or unexported methods
}

0-RTT session resumption enabled for this zone. Changing this setting does not enable or disable TLS 1.3. Writing the `tls_1_3` setting also changes 0-RTT: `zrt` enables it, and `on` or `off` disables it.

Union satisfied by ZeroRTT, AdvancedDDoS, SettingGetResponseZonesCacheRulesAegis, AlwaysOnline, SettingGetResponseZonesAlwaysUseHTTPS2, SettingGetResponseZonesAutomaticHTTPSRewrites2, Brotli, SettingGetResponseZonesBrowserCacheTTL2, SettingGetResponseZonesBrowserCheck2, SettingGetResponseZonesCacheLevel2, ChallengeTTL, SettingGetResponseZonesChinaNetworkEnabled, SettingGetResponseZonesContentConverter, Ciphers, SettingGetResponseZonesCNAMEFlattening, DevelopmentMode, EarlyHints, SettingGetResponseZonesEdgeCacheTTL2, SettingGetResponseZonesEmailObfuscation2, H2Prioritization, HotlinkProtection, HTTP2, HTTP3, ImageResizing, SettingGetResponseZonesIPGeolocation2, IPV6, SettingGetResponseZonesMaxUpload, MinTLSVersion, SettingGetResponseZonesMirage2, NEL, SettingGetResponseZonesOpportunisticEncryption2, OpportunisticOnion, OrangeToOrange, SettingGetResponseZonesOriginErrorPagePassThru2, SettingGetResponseZonesCacheRulesOriginH2MaxStreams, SettingGetResponseZonesCacheRulesOriginMaxHTTPVersion, SettingGetResponseZonesPolish2, PrefetchPreload, SettingGetResponseZonesPreRender, SettingGetResponseZonesPrivacyPass, ProxyReadTimeout, PseudoIPV4, SettingGetResponseZonesRedirectsForAITraining, SettingGetResponseZonesReplaceInsecureJS, SettingGetResponseZonesResponseBuffering2, SettingGetResponseZonesRocketLoader2, SettingGetResponseZonesSchemasAutomaticPlatformOptimization, SettingGetResponseZonesSearchForAgents, SecurityHeaders, SettingGetResponseZonesSecurityLevel2, ServerSideExcludes, SettingGetResponseZonesSha1Support, SettingGetResponseZonesSortQueryStringForCache2, SettingGetResponseZonesSSL2, SSLRecommender, SettingGetResponseZonesTLS1_2Only, TLS1_3, TLSClientAuth, SettingGetResponseZonesTransformations, SettingGetResponseZonesTransformationsAllowedOrigins, SettingGetResponseZonesTrueClientIPHeader2, SettingGetResponseZonesWAF2, SettingGetResponseZonesWebmcpEnabled, SettingGetResponseZonesWebmcpMcpURL, SettingGetResponseZonesWebmcpPacks, WebP, SettingGetResponseZonesAVIF or Websocket.

type SettingGetResponseZonesAVIF

type SettingGetResponseZonesAVIF struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesAVIFID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesAVIFValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesAVIFEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                       `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesAVIFJSON `json:"-"`
}

When the client requesting the image supports the AVIF image codec, and AVIF offers a performance advantage over the original image format, Cloudflare will serve an AVIF version of the original image.

func (*SettingGetResponseZonesAVIF) UnmarshalJSON

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

type SettingGetResponseZonesAVIFEditable

type SettingGetResponseZonesAVIFEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesAVIFEditableTrue  SettingGetResponseZonesAVIFEditable = true
	SettingGetResponseZonesAVIFEditableFalse SettingGetResponseZonesAVIFEditable = false
)

func (SettingGetResponseZonesAVIFEditable) IsKnown

type SettingGetResponseZonesAVIFID

type SettingGetResponseZonesAVIFID string

ID of the zone setting.

const (
	SettingGetResponseZonesAVIFIDAVIF SettingGetResponseZonesAVIFID = "avif"
)

func (SettingGetResponseZonesAVIFID) IsKnown

func (r SettingGetResponseZonesAVIFID) IsKnown() bool

type SettingGetResponseZonesAVIFValueArray

type SettingGetResponseZonesAVIFValueArray []string

func (SettingGetResponseZonesAVIFValueArray) ImplementsSettingGetResponseZonesAVIFValueUnion

func (r SettingGetResponseZonesAVIFValueArray) ImplementsSettingGetResponseZonesAVIFValueUnion()

type SettingGetResponseZonesAVIFValueUnion

type SettingGetResponseZonesAVIFValueUnion interface {
	ImplementsSettingGetResponseZonesAVIFValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesAVIFValueArray.

type SettingGetResponseZonesAlwaysUseHTTPS2 added in v7.8.0

type SettingGetResponseZonesAlwaysUseHTTPS2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesAlwaysUseHTTPS2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesAlwaysUseHTTPS2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesAlwaysUseHTTPS2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                  `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesAlwaysUseHttps2JSON `json:"-"`
}

Reply to all requests for URLs that use "http" with a 301 redirect to the equivalent "https" URL. If you only want to redirect for a subset of requests, consider creating an "Always use HTTPS" page rule.

func (*SettingGetResponseZonesAlwaysUseHTTPS2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesAlwaysUseHTTPS2Editable added in v7.8.0

type SettingGetResponseZonesAlwaysUseHTTPS2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesAlwaysUseHTTPS2EditableTrue  SettingGetResponseZonesAlwaysUseHTTPS2Editable = true
	SettingGetResponseZonesAlwaysUseHTTPS2EditableFalse SettingGetResponseZonesAlwaysUseHTTPS2Editable = false
)

func (SettingGetResponseZonesAlwaysUseHTTPS2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesAlwaysUseHTTPS2ID added in v7.8.0

type SettingGetResponseZonesAlwaysUseHTTPS2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesAlwaysUseHTTPS2IDAlwaysUseHTTPS SettingGetResponseZonesAlwaysUseHTTPS2ID = "always_use_https"
)

func (SettingGetResponseZonesAlwaysUseHTTPS2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesAlwaysUseHTTPS2ValueArray

type SettingGetResponseZonesAlwaysUseHTTPS2ValueArray []string

func (SettingGetResponseZonesAlwaysUseHTTPS2ValueArray) ImplementsSettingGetResponseZonesAlwaysUseHttps2ValueUnion

func (r SettingGetResponseZonesAlwaysUseHTTPS2ValueArray) ImplementsSettingGetResponseZonesAlwaysUseHttps2ValueUnion()

type SettingGetResponseZonesAlwaysUseHTTPS2ValueUnion

type SettingGetResponseZonesAlwaysUseHTTPS2ValueUnion interface {
	ImplementsSettingGetResponseZonesAlwaysUseHttps2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesAlwaysUseHTTPS2ValueArray.

type SettingGetResponseZonesAutomaticHTTPSRewrites2 added in v7.8.0

type SettingGetResponseZonesAutomaticHTTPSRewrites2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesAutomaticHTTPSRewrites2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesAutomaticHTTPSRewrites2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesAutomaticHTTPSRewrites2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                          `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesAutomaticHTTPSRewrites2JSON `json:"-"`
}

Enable the Automatic HTTPS Rewrites feature for this zone.

func (*SettingGetResponseZonesAutomaticHTTPSRewrites2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesAutomaticHTTPSRewrites2Editable added in v7.8.0

type SettingGetResponseZonesAutomaticHTTPSRewrites2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesAutomaticHTTPSRewrites2EditableTrue  SettingGetResponseZonesAutomaticHTTPSRewrites2Editable = true
	SettingGetResponseZonesAutomaticHTTPSRewrites2EditableFalse SettingGetResponseZonesAutomaticHTTPSRewrites2Editable = false
)

func (SettingGetResponseZonesAutomaticHTTPSRewrites2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesAutomaticHTTPSRewrites2ID added in v7.8.0

type SettingGetResponseZonesAutomaticHTTPSRewrites2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesAutomaticHTTPSRewrites2IDAutomaticHTTPSRewrites SettingGetResponseZonesAutomaticHTTPSRewrites2ID = "automatic_https_rewrites"
)

func (SettingGetResponseZonesAutomaticHTTPSRewrites2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesAutomaticHTTPSRewrites2ValueArray

type SettingGetResponseZonesAutomaticHTTPSRewrites2ValueArray []string

func (SettingGetResponseZonesAutomaticHTTPSRewrites2ValueArray) ImplementsSettingGetResponseZonesAutomaticHTTPSRewrites2ValueUnion

func (r SettingGetResponseZonesAutomaticHTTPSRewrites2ValueArray) ImplementsSettingGetResponseZonesAutomaticHTTPSRewrites2ValueUnion()

type SettingGetResponseZonesAutomaticHTTPSRewrites2ValueUnion

type SettingGetResponseZonesAutomaticHTTPSRewrites2ValueUnion interface {
	ImplementsSettingGetResponseZonesAutomaticHTTPSRewrites2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesAutomaticHTTPSRewrites2ValueArray.

type SettingGetResponseZonesBrowserCacheTTL2 added in v7.8.0

type SettingGetResponseZonesBrowserCacheTTL2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesBrowserCacheTTL2ID `json:"id" api:"required"`
	// Value of the zone setting in seconds. Minimum values by plan:
	//
	// - Free: 1 second
	// - Pro: 1 second
	// - Business: 1 second
	// - Enterprise: 1 second Setting a TTL of 0 is equivalent to selecting
	//   `Respect Existing Headers` and is allowed for all plans.
	Value SettingGetResponseZonesBrowserCacheTTL2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesBrowserCacheTTL2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                   `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesBrowserCacheTtl2JSON `json:"-"`
}

Browser Cache TTL (in seconds) specifies how long Cloudflare-cached resources will remain on your visitors' computers. Cloudflare will honor any larger times specified by your server. (https://support.cloudflare.com/hc/en-us/articles/200168276).

func (*SettingGetResponseZonesBrowserCacheTTL2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesBrowserCacheTTL2Editable added in v7.8.0

type SettingGetResponseZonesBrowserCacheTTL2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesBrowserCacheTTL2EditableTrue  SettingGetResponseZonesBrowserCacheTTL2Editable = true
	SettingGetResponseZonesBrowserCacheTTL2EditableFalse SettingGetResponseZonesBrowserCacheTTL2Editable = false
)

func (SettingGetResponseZonesBrowserCacheTTL2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesBrowserCacheTTL2ID added in v7.8.0

type SettingGetResponseZonesBrowserCacheTTL2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesBrowserCacheTTL2IDBrowserCacheTTL SettingGetResponseZonesBrowserCacheTTL2ID = "browser_cache_ttl"
)

func (SettingGetResponseZonesBrowserCacheTTL2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesBrowserCacheTTL2ValueArray

type SettingGetResponseZonesBrowserCacheTTL2ValueArray []string

func (SettingGetResponseZonesBrowserCacheTTL2ValueArray) ImplementsSettingGetResponseZonesBrowserCacheTtl2ValueUnion

func (r SettingGetResponseZonesBrowserCacheTTL2ValueArray) ImplementsSettingGetResponseZonesBrowserCacheTtl2ValueUnion()

type SettingGetResponseZonesBrowserCacheTTL2ValueUnion

type SettingGetResponseZonesBrowserCacheTTL2ValueUnion interface {
	ImplementsSettingGetResponseZonesBrowserCacheTtl2ValueUnion()
}

Value of the zone setting in seconds. Minimum values by plan:

  • Free: 1 second
  • Pro: 1 second
  • Business: 1 second
  • Enterprise: 1 second Setting a TTL of 0 is equivalent to selecting `Respect Existing Headers` and is allowed for all plans.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesBrowserCacheTTL2ValueArray.

type SettingGetResponseZonesBrowserCheck2 added in v7.8.0

type SettingGetResponseZonesBrowserCheck2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesBrowserCheck2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesBrowserCheck2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesBrowserCheck2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesBrowserCheck2JSON `json:"-"`
}

Browser Integrity Check is similar to Bad Behavior and looks for common HTTP headers abused most commonly by spammers and denies access to your page. It will also challenge visitors that do not have a user agent or a non standard user agent (also commonly used by abuse bots, crawlers or visitors). (https://support.cloudflare.com/hc/en-us/articles/200170086).

func (*SettingGetResponseZonesBrowserCheck2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesBrowserCheck2Editable added in v7.8.0

type SettingGetResponseZonesBrowserCheck2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesBrowserCheck2EditableTrue  SettingGetResponseZonesBrowserCheck2Editable = true
	SettingGetResponseZonesBrowserCheck2EditableFalse SettingGetResponseZonesBrowserCheck2Editable = false
)

func (SettingGetResponseZonesBrowserCheck2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesBrowserCheck2ID added in v7.8.0

type SettingGetResponseZonesBrowserCheck2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesBrowserCheck2IDBrowserCheck SettingGetResponseZonesBrowserCheck2ID = "browser_check"
)

func (SettingGetResponseZonesBrowserCheck2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesBrowserCheck2ValueArray

type SettingGetResponseZonesBrowserCheck2ValueArray []string

func (SettingGetResponseZonesBrowserCheck2ValueArray) ImplementsSettingGetResponseZonesBrowserCheck2ValueUnion

func (r SettingGetResponseZonesBrowserCheck2ValueArray) ImplementsSettingGetResponseZonesBrowserCheck2ValueUnion()

type SettingGetResponseZonesBrowserCheck2ValueUnion

type SettingGetResponseZonesBrowserCheck2ValueUnion interface {
	ImplementsSettingGetResponseZonesBrowserCheck2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesBrowserCheck2ValueArray.

type SettingGetResponseZonesCNAMEFlattening deprecated

type SettingGetResponseZonesCNAMEFlattening struct {
	// How to flatten the cname destination.
	ID SettingGetResponseZonesCNAMEFlatteningID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesCNAMEFlatteningValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesCNAMEFlatteningEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                  `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesCNAMEFlatteningJSON `json:"-"`
}

Whether or not cname flattening is on.

Deprecated: This zone setting is deprecated; please use the DNS Settings route instead. More information at https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2025-03-21

func (*SettingGetResponseZonesCNAMEFlattening) UnmarshalJSON

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

type SettingGetResponseZonesCNAMEFlatteningEditable

type SettingGetResponseZonesCNAMEFlatteningEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesCNAMEFlatteningEditableTrue  SettingGetResponseZonesCNAMEFlatteningEditable = true
	SettingGetResponseZonesCNAMEFlatteningEditableFalse SettingGetResponseZonesCNAMEFlatteningEditable = false
)

func (SettingGetResponseZonesCNAMEFlatteningEditable) IsKnown

type SettingGetResponseZonesCNAMEFlatteningID

type SettingGetResponseZonesCNAMEFlatteningID string

How to flatten the cname destination.

const (
	SettingGetResponseZonesCNAMEFlatteningIDCNAMEFlattening SettingGetResponseZonesCNAMEFlatteningID = "cname_flattening"
)

func (SettingGetResponseZonesCNAMEFlatteningID) IsKnown

type SettingGetResponseZonesCNAMEFlatteningValueArray

type SettingGetResponseZonesCNAMEFlatteningValueArray []string

func (SettingGetResponseZonesCNAMEFlatteningValueArray) ImplementsSettingGetResponseZonesCNAMEFlatteningValueUnion

func (r SettingGetResponseZonesCNAMEFlatteningValueArray) ImplementsSettingGetResponseZonesCNAMEFlatteningValueUnion()

type SettingGetResponseZonesCNAMEFlatteningValueUnion

type SettingGetResponseZonesCNAMEFlatteningValueUnion interface {
	ImplementsSettingGetResponseZonesCNAMEFlatteningValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesCNAMEFlatteningValueArray.

type SettingGetResponseZonesCacheLevel2 added in v7.8.0

type SettingGetResponseZonesCacheLevel2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesCacheLevel2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesCacheLevel2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesCacheLevel2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                              `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesCacheLevel2JSON `json:"-"`
}

Cache Level functions based off the setting level. The basic setting will cache most static resources (i.e., css, images, and JavaScript). The simplified setting will ignore the query string when delivering a cached resource. The aggressive setting will cache all static resources, including ones with a query string. (https://support.cloudflare.com/hc/en-us/articles/200168256).

func (*SettingGetResponseZonesCacheLevel2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesCacheLevel2Editable added in v7.8.0

type SettingGetResponseZonesCacheLevel2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesCacheLevel2EditableTrue  SettingGetResponseZonesCacheLevel2Editable = true
	SettingGetResponseZonesCacheLevel2EditableFalse SettingGetResponseZonesCacheLevel2Editable = false
)

func (SettingGetResponseZonesCacheLevel2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesCacheLevel2ID added in v7.8.0

type SettingGetResponseZonesCacheLevel2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesCacheLevel2IDCacheLevel SettingGetResponseZonesCacheLevel2ID = "cache_level"
)

func (SettingGetResponseZonesCacheLevel2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesCacheLevel2ValueArray

type SettingGetResponseZonesCacheLevel2ValueArray []string

func (SettingGetResponseZonesCacheLevel2ValueArray) ImplementsSettingGetResponseZonesCacheLevel2ValueUnion

func (r SettingGetResponseZonesCacheLevel2ValueArray) ImplementsSettingGetResponseZonesCacheLevel2ValueUnion()

type SettingGetResponseZonesCacheLevel2ValueUnion

type SettingGetResponseZonesCacheLevel2ValueUnion interface {
	ImplementsSettingGetResponseZonesCacheLevel2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesCacheLevel2ValueArray.

type SettingGetResponseZonesCacheRulesAegis

type SettingGetResponseZonesCacheRulesAegis struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesCacheRulesAegisID `json:"id" api:"required"`
	// Last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Value of the zone setting.
	Value SettingGetResponseZonesCacheRulesAegisValue `json:"value"`
	JSON  settingGetResponseZonesCacheRulesAegisJSON  `json:"-"`
}

Aegis provides dedicated egress IPs (from Cloudflare to your origin) for your layer 7 WAF and CDN services. The egress IPs are reserved exclusively for your account so that you can increase your origin security by only allowing traffic from a small list of IP addresses.

func (*SettingGetResponseZonesCacheRulesAegis) UnmarshalJSON

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

type SettingGetResponseZonesCacheRulesAegisID

type SettingGetResponseZonesCacheRulesAegisID string

ID of the zone setting.

const (
	SettingGetResponseZonesCacheRulesAegisIDAegis SettingGetResponseZonesCacheRulesAegisID = "aegis"
)

func (SettingGetResponseZonesCacheRulesAegisID) IsKnown

type SettingGetResponseZonesCacheRulesAegisValue

type SettingGetResponseZonesCacheRulesAegisValue struct {
	// Whether the feature is enabled or not.
	Enabled bool `json:"enabled"`
	// Egress pool id which refers to a grouping of dedicated egress IPs through which
	// Cloudflare will connect to origin.
	PoolID string                                          `json:"pool_id"`
	JSON   settingGetResponseZonesCacheRulesAegisValueJSON `json:"-"`
}

Value of the zone setting.

func (*SettingGetResponseZonesCacheRulesAegisValue) UnmarshalJSON

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

type SettingGetResponseZonesCacheRulesOriginH2MaxStreams

type SettingGetResponseZonesCacheRulesOriginH2MaxStreams struct {
	// Value of the zone setting.
	ID SettingGetResponseZonesCacheRulesOriginH2MaxStreamsID `json:"id" api:"required"`
	// Last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Value of the Origin H2 Max Streams Setting.
	Value int64                                                   `json:"value"`
	JSON  settingGetResponseZonesCacheRulesOriginH2MaxStreamsJSON `json:"-"`
}

Origin H2 Max Streams configures the max number of concurrent requests that Cloudflare will send within the same connection when communicating with the origin server, if the origin supports it. Note that if your origin does not support H2 multiplexing, 5xx errors may be observed, particularly 520s. Also note that the default value is `100` for all plan types except Enterprise where it is `1`. `1` means that H2 multiplexing is disabled.

func (*SettingGetResponseZonesCacheRulesOriginH2MaxStreams) UnmarshalJSON

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

type SettingGetResponseZonesCacheRulesOriginH2MaxStreamsID

type SettingGetResponseZonesCacheRulesOriginH2MaxStreamsID string

Value of the zone setting.

const (
	SettingGetResponseZonesCacheRulesOriginH2MaxStreamsIDOriginH2MaxStreams SettingGetResponseZonesCacheRulesOriginH2MaxStreamsID = "origin_h2_max_streams"
)

func (SettingGetResponseZonesCacheRulesOriginH2MaxStreamsID) IsKnown

type SettingGetResponseZonesCacheRulesOriginMaxHTTPVersion

type SettingGetResponseZonesCacheRulesOriginMaxHTTPVersion struct {
	// Value of the zone setting.
	ID SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionID `json:"id" api:"required"`
	// Last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Value of the Origin Max HTTP Version Setting.
	Value SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionValue `json:"value"`
	JSON  settingGetResponseZonesCacheRulesOriginMaxHTTPVersionJSON  `json:"-"`
}

Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin. (Refer to [Enable HTTP/2 to Origin](https://developers.cloudflare.com/cache/how-to/enable-http2-to-origin/), for more information.). The default value is "2" for all plan types except Enterprise where it is "1".

func (*SettingGetResponseZonesCacheRulesOriginMaxHTTPVersion) UnmarshalJSON

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

type SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionID

type SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionID string

Value of the zone setting.

const (
	SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionIDOriginMaxHTTPVersion SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionID = "origin_max_http_version"
)

func (SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionID) IsKnown

type SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionValue

type SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionValue string

Value of the Origin Max HTTP Version Setting.

const (
	SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionValue2 SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionValue = "2"
	SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionValue1 SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionValue = "1"
)

func (SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionValue) IsKnown

type SettingGetResponseZonesChinaNetworkEnabled

type SettingGetResponseZonesChinaNetworkEnabled struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesChinaNetworkEnabledID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesChinaNetworkEnabledValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesChinaNetworkEnabledEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                      `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesChinaNetworkEnabledJSON `json:"-"`
}

Determines whether or not the china network is enabled.

func (*SettingGetResponseZonesChinaNetworkEnabled) UnmarshalJSON

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

type SettingGetResponseZonesChinaNetworkEnabledEditable

type SettingGetResponseZonesChinaNetworkEnabledEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesChinaNetworkEnabledEditableTrue  SettingGetResponseZonesChinaNetworkEnabledEditable = true
	SettingGetResponseZonesChinaNetworkEnabledEditableFalse SettingGetResponseZonesChinaNetworkEnabledEditable = false
)

func (SettingGetResponseZonesChinaNetworkEnabledEditable) IsKnown

type SettingGetResponseZonesChinaNetworkEnabledID

type SettingGetResponseZonesChinaNetworkEnabledID string

ID of the zone setting.

const (
	SettingGetResponseZonesChinaNetworkEnabledIDChinaNetworkEnabled SettingGetResponseZonesChinaNetworkEnabledID = "china_network_enabled"
)

func (SettingGetResponseZonesChinaNetworkEnabledID) IsKnown

type SettingGetResponseZonesChinaNetworkEnabledValueArray

type SettingGetResponseZonesChinaNetworkEnabledValueArray []string

func (SettingGetResponseZonesChinaNetworkEnabledValueArray) ImplementsSettingGetResponseZonesChinaNetworkEnabledValueUnion

func (r SettingGetResponseZonesChinaNetworkEnabledValueArray) ImplementsSettingGetResponseZonesChinaNetworkEnabledValueUnion()

type SettingGetResponseZonesChinaNetworkEnabledValueUnion

type SettingGetResponseZonesChinaNetworkEnabledValueUnion interface {
	ImplementsSettingGetResponseZonesChinaNetworkEnabledValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesChinaNetworkEnabledValueArray.

type SettingGetResponseZonesContentConverter

type SettingGetResponseZonesContentConverter struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesContentConverterID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesContentConverterValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesContentConverterEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                   `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesContentConverterJSON `json:"-"`
}

When enabled and the client sends an Accept header requesting text/markdown, Cloudflare will convert HTML responses to Markdown format using the toMarkdown() service. Refer to the [developer documentation](https://developers.cloudflare.com/workers-ai/features/markdown-conversion/) for more information.

func (*SettingGetResponseZonesContentConverter) UnmarshalJSON

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

type SettingGetResponseZonesContentConverterEditable

type SettingGetResponseZonesContentConverterEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesContentConverterEditableTrue  SettingGetResponseZonesContentConverterEditable = true
	SettingGetResponseZonesContentConverterEditableFalse SettingGetResponseZonesContentConverterEditable = false
)

func (SettingGetResponseZonesContentConverterEditable) IsKnown

type SettingGetResponseZonesContentConverterID

type SettingGetResponseZonesContentConverterID string

ID of the zone setting.

const (
	SettingGetResponseZonesContentConverterIDContentConverter SettingGetResponseZonesContentConverterID = "content_converter"
)

func (SettingGetResponseZonesContentConverterID) IsKnown

type SettingGetResponseZonesContentConverterValueArray

type SettingGetResponseZonesContentConverterValueArray []string

func (SettingGetResponseZonesContentConverterValueArray) ImplementsSettingGetResponseZonesContentConverterValueUnion

func (r SettingGetResponseZonesContentConverterValueArray) ImplementsSettingGetResponseZonesContentConverterValueUnion()

type SettingGetResponseZonesContentConverterValueUnion

type SettingGetResponseZonesContentConverterValueUnion interface {
	ImplementsSettingGetResponseZonesContentConverterValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesContentConverterValueArray.

type SettingGetResponseZonesEdgeCacheTTL2 added in v7.8.0

type SettingGetResponseZonesEdgeCacheTTL2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesEdgeCacheTTL2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesEdgeCacheTTL2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesEdgeCacheTTL2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesEdgeCacheTtl2JSON `json:"-"`
}

Time (in seconds) that a resource will be ensured to remain on Cloudflare's cache servers.

func (*SettingGetResponseZonesEdgeCacheTTL2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesEdgeCacheTTL2Editable added in v7.8.0

type SettingGetResponseZonesEdgeCacheTTL2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesEdgeCacheTTL2EditableTrue  SettingGetResponseZonesEdgeCacheTTL2Editable = true
	SettingGetResponseZonesEdgeCacheTTL2EditableFalse SettingGetResponseZonesEdgeCacheTTL2Editable = false
)

func (SettingGetResponseZonesEdgeCacheTTL2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesEdgeCacheTTL2ID added in v7.8.0

type SettingGetResponseZonesEdgeCacheTTL2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesEdgeCacheTTL2IDEdgeCacheTTL SettingGetResponseZonesEdgeCacheTTL2ID = "edge_cache_ttl"
)

func (SettingGetResponseZonesEdgeCacheTTL2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesEdgeCacheTTL2ValueArray

type SettingGetResponseZonesEdgeCacheTTL2ValueArray []string

func (SettingGetResponseZonesEdgeCacheTTL2ValueArray) ImplementsSettingGetResponseZonesEdgeCacheTtl2ValueUnion

func (r SettingGetResponseZonesEdgeCacheTTL2ValueArray) ImplementsSettingGetResponseZonesEdgeCacheTtl2ValueUnion()

type SettingGetResponseZonesEdgeCacheTTL2ValueUnion

type SettingGetResponseZonesEdgeCacheTTL2ValueUnion interface {
	ImplementsSettingGetResponseZonesEdgeCacheTtl2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesEdgeCacheTTL2ValueArray.

type SettingGetResponseZonesEmailObfuscation2 added in v7.8.0

type SettingGetResponseZonesEmailObfuscation2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesEmailObfuscation2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesEmailObfuscation2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesEmailObfuscation2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                    `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesEmailObfuscation2JSON `json:"-"`
}

Encrypt email adresses on your web page from bots, while keeping them visible to humans. (https://support.cloudflare.com/hc/en-us/articles/200170016).

func (*SettingGetResponseZonesEmailObfuscation2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesEmailObfuscation2Editable added in v7.8.0

type SettingGetResponseZonesEmailObfuscation2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesEmailObfuscation2EditableTrue  SettingGetResponseZonesEmailObfuscation2Editable = true
	SettingGetResponseZonesEmailObfuscation2EditableFalse SettingGetResponseZonesEmailObfuscation2Editable = false
)

func (SettingGetResponseZonesEmailObfuscation2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesEmailObfuscation2ID added in v7.8.0

type SettingGetResponseZonesEmailObfuscation2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesEmailObfuscation2IDEmailObfuscation SettingGetResponseZonesEmailObfuscation2ID = "email_obfuscation"
)

func (SettingGetResponseZonesEmailObfuscation2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesEmailObfuscation2ValueArray

type SettingGetResponseZonesEmailObfuscation2ValueArray []string

func (SettingGetResponseZonesEmailObfuscation2ValueArray) ImplementsSettingGetResponseZonesEmailObfuscation2ValueUnion

func (r SettingGetResponseZonesEmailObfuscation2ValueArray) ImplementsSettingGetResponseZonesEmailObfuscation2ValueUnion()

type SettingGetResponseZonesEmailObfuscation2ValueUnion

type SettingGetResponseZonesEmailObfuscation2ValueUnion interface {
	ImplementsSettingGetResponseZonesEmailObfuscation2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesEmailObfuscation2ValueArray.

type SettingGetResponseZonesIPGeolocation2 added in v7.8.0

type SettingGetResponseZonesIPGeolocation2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesIPGeolocation2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesIPGeolocation2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesIPGeolocation2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                 `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesIPGeolocation2JSON `json:"-"`
}

Enable IP Geolocation to have Cloudflare geolocate visitors to your website and pass the country code to you. (https://support.cloudflare.com/hc/en-us/articles/200168236).

func (*SettingGetResponseZonesIPGeolocation2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesIPGeolocation2Editable added in v7.8.0

type SettingGetResponseZonesIPGeolocation2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesIPGeolocation2EditableTrue  SettingGetResponseZonesIPGeolocation2Editable = true
	SettingGetResponseZonesIPGeolocation2EditableFalse SettingGetResponseZonesIPGeolocation2Editable = false
)

func (SettingGetResponseZonesIPGeolocation2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesIPGeolocation2ID added in v7.8.0

type SettingGetResponseZonesIPGeolocation2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesIPGeolocation2IDIPGeolocation SettingGetResponseZonesIPGeolocation2ID = "ip_geolocation"
)

func (SettingGetResponseZonesIPGeolocation2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesIPGeolocation2ValueArray

type SettingGetResponseZonesIPGeolocation2ValueArray []string

func (SettingGetResponseZonesIPGeolocation2ValueArray) ImplementsSettingGetResponseZonesIPGeolocation2ValueUnion

func (r SettingGetResponseZonesIPGeolocation2ValueArray) ImplementsSettingGetResponseZonesIPGeolocation2ValueUnion()

type SettingGetResponseZonesIPGeolocation2ValueUnion

type SettingGetResponseZonesIPGeolocation2ValueUnion interface {
	ImplementsSettingGetResponseZonesIPGeolocation2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesIPGeolocation2ValueArray.

type SettingGetResponseZonesMaxUpload

type SettingGetResponseZonesMaxUpload struct {
	// identifier of the zone setting.
	ID SettingGetResponseZonesMaxUploadID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesMaxUploadValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesMaxUploadEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                            `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesMaxUploadJSON `json:"-"`
}

Maximum size of an allowable upload.

func (*SettingGetResponseZonesMaxUpload) UnmarshalJSON

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

type SettingGetResponseZonesMaxUploadEditable

type SettingGetResponseZonesMaxUploadEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesMaxUploadEditableTrue  SettingGetResponseZonesMaxUploadEditable = true
	SettingGetResponseZonesMaxUploadEditableFalse SettingGetResponseZonesMaxUploadEditable = false
)

func (SettingGetResponseZonesMaxUploadEditable) IsKnown

type SettingGetResponseZonesMaxUploadID

type SettingGetResponseZonesMaxUploadID string

identifier of the zone setting.

const (
	SettingGetResponseZonesMaxUploadIDMaxUpload SettingGetResponseZonesMaxUploadID = "max_upload"
)

func (SettingGetResponseZonesMaxUploadID) IsKnown

type SettingGetResponseZonesMaxUploadValueArray

type SettingGetResponseZonesMaxUploadValueArray []string

func (SettingGetResponseZonesMaxUploadValueArray) ImplementsSettingGetResponseZonesMaxUploadValueUnion

func (r SettingGetResponseZonesMaxUploadValueArray) ImplementsSettingGetResponseZonesMaxUploadValueUnion()

type SettingGetResponseZonesMaxUploadValueUnion

type SettingGetResponseZonesMaxUploadValueUnion interface {
	ImplementsSettingGetResponseZonesMaxUploadValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesMaxUploadValueArray.

type SettingGetResponseZonesMirage2 deprecated added in v7.8.0

type SettingGetResponseZonesMirage2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesMirage2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesMirage2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesMirage2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                          `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesMirage2JSON `json:"-"`
}

Automatically optimize image loading for website visitors on mobile devices. Refer to [our blog post](http://blog.cloudflare.com/mirage2-solving-mobile-speed) for more information.

Deprecated: Mirage is being deprecated. More information at https://developers.cloudflare.com/speed/optimization/images/mirage/

func (*SettingGetResponseZonesMirage2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesMirage2Editable added in v7.8.0

type SettingGetResponseZonesMirage2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesMirage2EditableTrue  SettingGetResponseZonesMirage2Editable = true
	SettingGetResponseZonesMirage2EditableFalse SettingGetResponseZonesMirage2Editable = false
)

func (SettingGetResponseZonesMirage2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesMirage2ID added in v7.8.0

type SettingGetResponseZonesMirage2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesMirage2IDMirage SettingGetResponseZonesMirage2ID = "mirage"
)

func (SettingGetResponseZonesMirage2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesMirage2ValueArray

type SettingGetResponseZonesMirage2ValueArray []string

func (SettingGetResponseZonesMirage2ValueArray) ImplementsSettingGetResponseZonesMirage2ValueUnion

func (r SettingGetResponseZonesMirage2ValueArray) ImplementsSettingGetResponseZonesMirage2ValueUnion()

type SettingGetResponseZonesMirage2ValueUnion

type SettingGetResponseZonesMirage2ValueUnion interface {
	ImplementsSettingGetResponseZonesMirage2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesMirage2ValueArray.

type SettingGetResponseZonesOpportunisticEncryption2 added in v7.8.0

type SettingGetResponseZonesOpportunisticEncryption2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesOpportunisticEncryption2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesOpportunisticEncryption2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesOpportunisticEncryption2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                           `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesOpportunisticEncryption2JSON `json:"-"`
}

Enables the Opportunistic Encryption feature for a zone.

func (*SettingGetResponseZonesOpportunisticEncryption2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesOpportunisticEncryption2Editable added in v7.8.0

type SettingGetResponseZonesOpportunisticEncryption2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesOpportunisticEncryption2EditableTrue  SettingGetResponseZonesOpportunisticEncryption2Editable = true
	SettingGetResponseZonesOpportunisticEncryption2EditableFalse SettingGetResponseZonesOpportunisticEncryption2Editable = false
)

func (SettingGetResponseZonesOpportunisticEncryption2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesOpportunisticEncryption2ID added in v7.8.0

type SettingGetResponseZonesOpportunisticEncryption2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesOpportunisticEncryption2IDOpportunisticEncryption SettingGetResponseZonesOpportunisticEncryption2ID = "opportunistic_encryption"
)

func (SettingGetResponseZonesOpportunisticEncryption2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesOpportunisticEncryption2ValueArray

type SettingGetResponseZonesOpportunisticEncryption2ValueArray []string

func (SettingGetResponseZonesOpportunisticEncryption2ValueArray) ImplementsSettingGetResponseZonesOpportunisticEncryption2ValueUnion

func (r SettingGetResponseZonesOpportunisticEncryption2ValueArray) ImplementsSettingGetResponseZonesOpportunisticEncryption2ValueUnion()

type SettingGetResponseZonesOpportunisticEncryption2ValueUnion

type SettingGetResponseZonesOpportunisticEncryption2ValueUnion interface {
	ImplementsSettingGetResponseZonesOpportunisticEncryption2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesOpportunisticEncryption2ValueArray.

type SettingGetResponseZonesOriginErrorPagePassThru2 added in v7.8.0

type SettingGetResponseZonesOriginErrorPagePassThru2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesOriginErrorPagePassThru2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesOriginErrorPagePassThru2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesOriginErrorPagePassThru2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                           `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesOriginErrorPagePassThru2JSON `json:"-"`
}

Cloudflare will proxy customer error pages on any 502,504 errors on origin server instead of showing a default Cloudflare error page. This does not apply to 522 errors and is limited to Enterprise Zones.

func (*SettingGetResponseZonesOriginErrorPagePassThru2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesOriginErrorPagePassThru2Editable added in v7.8.0

type SettingGetResponseZonesOriginErrorPagePassThru2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesOriginErrorPagePassThru2EditableTrue  SettingGetResponseZonesOriginErrorPagePassThru2Editable = true
	SettingGetResponseZonesOriginErrorPagePassThru2EditableFalse SettingGetResponseZonesOriginErrorPagePassThru2Editable = false
)

func (SettingGetResponseZonesOriginErrorPagePassThru2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesOriginErrorPagePassThru2ID added in v7.8.0

type SettingGetResponseZonesOriginErrorPagePassThru2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesOriginErrorPagePassThru2IDOriginErrorPagePassThru SettingGetResponseZonesOriginErrorPagePassThru2ID = "origin_error_page_pass_thru"
)

func (SettingGetResponseZonesOriginErrorPagePassThru2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesOriginErrorPagePassThru2ValueArray

type SettingGetResponseZonesOriginErrorPagePassThru2ValueArray []string

func (SettingGetResponseZonesOriginErrorPagePassThru2ValueArray) ImplementsSettingGetResponseZonesOriginErrorPagePassThru2ValueUnion

func (r SettingGetResponseZonesOriginErrorPagePassThru2ValueArray) ImplementsSettingGetResponseZonesOriginErrorPagePassThru2ValueUnion()

type SettingGetResponseZonesOriginErrorPagePassThru2ValueUnion

type SettingGetResponseZonesOriginErrorPagePassThru2ValueUnion interface {
	ImplementsSettingGetResponseZonesOriginErrorPagePassThru2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesOriginErrorPagePassThru2ValueArray.

type SettingGetResponseZonesPolish2 added in v7.8.0

type SettingGetResponseZonesPolish2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesPolish2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesPolish2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesPolish2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                          `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesPolish2JSON `json:"-"`
}

Removes metadata and compresses your images for faster page load times. Basic (Lossless): Reduce the size of PNG, JPEG, and GIF files - no impact on visual quality. Basic + JPEG (Lossy): Further reduce the size of JPEG files for faster image loading. Larger JPEGs are converted to progressive images, loading a lower-resolution image first and ending in a higher-resolution version. Not recommended for hi-res photography sites.

func (*SettingGetResponseZonesPolish2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesPolish2Editable added in v7.8.0

type SettingGetResponseZonesPolish2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesPolish2EditableTrue  SettingGetResponseZonesPolish2Editable = true
	SettingGetResponseZonesPolish2EditableFalse SettingGetResponseZonesPolish2Editable = false
)

func (SettingGetResponseZonesPolish2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesPolish2ID added in v7.8.0

type SettingGetResponseZonesPolish2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesPolish2IDPolish SettingGetResponseZonesPolish2ID = "polish"
)

func (SettingGetResponseZonesPolish2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesPolish2ValueArray

type SettingGetResponseZonesPolish2ValueArray []string

func (SettingGetResponseZonesPolish2ValueArray) ImplementsSettingGetResponseZonesPolish2ValueUnion

func (r SettingGetResponseZonesPolish2ValueArray) ImplementsSettingGetResponseZonesPolish2ValueUnion()

type SettingGetResponseZonesPolish2ValueUnion

type SettingGetResponseZonesPolish2ValueUnion interface {
	ImplementsSettingGetResponseZonesPolish2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesPolish2ValueArray.

type SettingGetResponseZonesPreRender added in v7.10.0

type SettingGetResponseZonesPreRender struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesPreRenderID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesPreRenderValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesPreRenderEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                            `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesPreRenderJSON `json:"-"`
}

When enabled, Cloudflare serves pre-rendered HTML to eligible search and AI crawlers instead of the origin's unrendered response.

func (*SettingGetResponseZonesPreRender) UnmarshalJSON added in v7.10.0

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

type SettingGetResponseZonesPreRenderEditable added in v7.10.0

type SettingGetResponseZonesPreRenderEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesPreRenderEditableTrue  SettingGetResponseZonesPreRenderEditable = true
	SettingGetResponseZonesPreRenderEditableFalse SettingGetResponseZonesPreRenderEditable = false
)

func (SettingGetResponseZonesPreRenderEditable) IsKnown added in v7.10.0

type SettingGetResponseZonesPreRenderID added in v7.10.0

type SettingGetResponseZonesPreRenderID string

ID of the zone setting.

const (
	SettingGetResponseZonesPreRenderIDPreRender SettingGetResponseZonesPreRenderID = "pre_render"
)

func (SettingGetResponseZonesPreRenderID) IsKnown added in v7.10.0

type SettingGetResponseZonesPreRenderValueArray

type SettingGetResponseZonesPreRenderValueArray []string

func (SettingGetResponseZonesPreRenderValueArray) ImplementsSettingGetResponseZonesPreRenderValueUnion

func (r SettingGetResponseZonesPreRenderValueArray) ImplementsSettingGetResponseZonesPreRenderValueUnion()

type SettingGetResponseZonesPreRenderValueUnion

type SettingGetResponseZonesPreRenderValueUnion interface {
	ImplementsSettingGetResponseZonesPreRenderValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesPreRenderValueArray.

type SettingGetResponseZonesPrivacyPass deprecated

type SettingGetResponseZonesPrivacyPass struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesPrivacyPassID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesPrivacyPassValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesPrivacyPassEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                              `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesPrivacyPassJSON `json:"-"`
}

Privacy Pass v1 was a browser extension developed by the Privacy Pass Team to improve the browsing experience for your visitors by allowing users to reduce the number of CAPTCHAs shown. (https://support.cloudflare.com/hc/en-us/articles/115001992652-Privacy-Pass).

Deprecated: Privacy Pass v1 was deprecated in 2023. (Announcement - https://blog.cloudflare.com/privacy-pass-standard/) and (API deprecation details - https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2024-03-31)

func (*SettingGetResponseZonesPrivacyPass) UnmarshalJSON

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

type SettingGetResponseZonesPrivacyPassEditable

type SettingGetResponseZonesPrivacyPassEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesPrivacyPassEditableTrue  SettingGetResponseZonesPrivacyPassEditable = true
	SettingGetResponseZonesPrivacyPassEditableFalse SettingGetResponseZonesPrivacyPassEditable = false
)

func (SettingGetResponseZonesPrivacyPassEditable) IsKnown

type SettingGetResponseZonesPrivacyPassID

type SettingGetResponseZonesPrivacyPassID string

ID of the zone setting.

const (
	SettingGetResponseZonesPrivacyPassIDPrivacyPass SettingGetResponseZonesPrivacyPassID = "privacy_pass"
)

func (SettingGetResponseZonesPrivacyPassID) IsKnown

type SettingGetResponseZonesPrivacyPassValueArray

type SettingGetResponseZonesPrivacyPassValueArray []string

func (SettingGetResponseZonesPrivacyPassValueArray) ImplementsSettingGetResponseZonesPrivacyPassValueUnion

func (r SettingGetResponseZonesPrivacyPassValueArray) ImplementsSettingGetResponseZonesPrivacyPassValueUnion()

type SettingGetResponseZonesPrivacyPassValueUnion

type SettingGetResponseZonesPrivacyPassValueUnion interface {
	ImplementsSettingGetResponseZonesPrivacyPassValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesPrivacyPassValueArray.

type SettingGetResponseZonesRedirectsForAITraining

type SettingGetResponseZonesRedirectsForAITraining struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesRedirectsForAITrainingID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesRedirectsForAITrainingValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesRedirectsForAITrainingEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                         `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesRedirectsForAITrainingJSON `json:"-"`
}

When enabled, Cloudflare will redirect verified AI training crawlers to canonical URLs found in the HTML response, ensuring AI models train on authoritative content.

func (*SettingGetResponseZonesRedirectsForAITraining) UnmarshalJSON

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

type SettingGetResponseZonesRedirectsForAITrainingEditable

type SettingGetResponseZonesRedirectsForAITrainingEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesRedirectsForAITrainingEditableTrue  SettingGetResponseZonesRedirectsForAITrainingEditable = true
	SettingGetResponseZonesRedirectsForAITrainingEditableFalse SettingGetResponseZonesRedirectsForAITrainingEditable = false
)

func (SettingGetResponseZonesRedirectsForAITrainingEditable) IsKnown

type SettingGetResponseZonesRedirectsForAITrainingID

type SettingGetResponseZonesRedirectsForAITrainingID string

ID of the zone setting.

const (
	SettingGetResponseZonesRedirectsForAITrainingIDRedirectsForAITraining SettingGetResponseZonesRedirectsForAITrainingID = "redirects_for_ai_training"
)

func (SettingGetResponseZonesRedirectsForAITrainingID) IsKnown

type SettingGetResponseZonesRedirectsForAITrainingValueArray

type SettingGetResponseZonesRedirectsForAITrainingValueArray []string

func (SettingGetResponseZonesRedirectsForAITrainingValueArray) ImplementsSettingGetResponseZonesRedirectsForAITrainingValueUnion

func (r SettingGetResponseZonesRedirectsForAITrainingValueArray) ImplementsSettingGetResponseZonesRedirectsForAITrainingValueUnion()

type SettingGetResponseZonesRedirectsForAITrainingValueUnion

type SettingGetResponseZonesRedirectsForAITrainingValueUnion interface {
	ImplementsSettingGetResponseZonesRedirectsForAITrainingValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesRedirectsForAITrainingValueArray.

type SettingGetResponseZonesReplaceInsecureJS

type SettingGetResponseZonesReplaceInsecureJS struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesReplaceInsecureJSID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesReplaceInsecureJSValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesReplaceInsecureJSEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                    `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesReplaceInsecureJSJSON `json:"-"`
}

Automatically replace insecure JavaScript libraries with safer and faster alternatives provided under cdnjs and powered by Cloudflare. Currently supports the following libraries: Polyfill under polyfill.io.

func (*SettingGetResponseZonesReplaceInsecureJS) UnmarshalJSON

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

type SettingGetResponseZonesReplaceInsecureJSEditable

type SettingGetResponseZonesReplaceInsecureJSEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesReplaceInsecureJSEditableTrue  SettingGetResponseZonesReplaceInsecureJSEditable = true
	SettingGetResponseZonesReplaceInsecureJSEditableFalse SettingGetResponseZonesReplaceInsecureJSEditable = false
)

func (SettingGetResponseZonesReplaceInsecureJSEditable) IsKnown

type SettingGetResponseZonesReplaceInsecureJSID

type SettingGetResponseZonesReplaceInsecureJSID string

ID of the zone setting.

const (
	SettingGetResponseZonesReplaceInsecureJSIDReplaceInsecureJS SettingGetResponseZonesReplaceInsecureJSID = "replace_insecure_js"
)

func (SettingGetResponseZonesReplaceInsecureJSID) IsKnown

type SettingGetResponseZonesReplaceInsecureJSValueArray

type SettingGetResponseZonesReplaceInsecureJSValueArray []string

func (SettingGetResponseZonesReplaceInsecureJSValueArray) ImplementsSettingGetResponseZonesReplaceInsecureJSValueUnion

func (r SettingGetResponseZonesReplaceInsecureJSValueArray) ImplementsSettingGetResponseZonesReplaceInsecureJSValueUnion()

type SettingGetResponseZonesReplaceInsecureJSValueUnion

type SettingGetResponseZonesReplaceInsecureJSValueUnion interface {
	ImplementsSettingGetResponseZonesReplaceInsecureJSValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesReplaceInsecureJSValueArray.

type SettingGetResponseZonesResponseBuffering2 deprecated added in v7.8.0

type SettingGetResponseZonesResponseBuffering2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesResponseBuffering2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesResponseBuffering2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesResponseBuffering2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                     `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesResponseBuffering2JSON `json:"-"`
}

Enables or disables buffering of responses from the proxied server. Cloudflare may buffer the whole payload to deliver it at once to the client versus allowing it to be delivered in chunks. By default, the proxied server streams directly and is not buffered by Cloudflare. This is limited to Enterprise Zones.

Deprecated: This zone setting is deprecated. This functionality is no longer supported.

func (*SettingGetResponseZonesResponseBuffering2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesResponseBuffering2Editable added in v7.8.0

type SettingGetResponseZonesResponseBuffering2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesResponseBuffering2EditableTrue  SettingGetResponseZonesResponseBuffering2Editable = true
	SettingGetResponseZonesResponseBuffering2EditableFalse SettingGetResponseZonesResponseBuffering2Editable = false
)

func (SettingGetResponseZonesResponseBuffering2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesResponseBuffering2ID added in v7.8.0

type SettingGetResponseZonesResponseBuffering2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesResponseBuffering2IDResponseBuffering SettingGetResponseZonesResponseBuffering2ID = "response_buffering"
)

func (SettingGetResponseZonesResponseBuffering2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesResponseBuffering2ValueArray

type SettingGetResponseZonesResponseBuffering2ValueArray []string

func (SettingGetResponseZonesResponseBuffering2ValueArray) ImplementsSettingGetResponseZonesResponseBuffering2ValueUnion

func (r SettingGetResponseZonesResponseBuffering2ValueArray) ImplementsSettingGetResponseZonesResponseBuffering2ValueUnion()

type SettingGetResponseZonesResponseBuffering2ValueUnion

type SettingGetResponseZonesResponseBuffering2ValueUnion interface {
	ImplementsSettingGetResponseZonesResponseBuffering2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesResponseBuffering2ValueArray.

type SettingGetResponseZonesRocketLoader2 added in v7.8.0

type SettingGetResponseZonesRocketLoader2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesRocketLoader2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesRocketLoader2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesRocketLoader2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesRocketLoader2JSON `json:"-"`
}

Rocket Loader is a general-purpose asynchronous JavaScript optimisation that prioritises rendering your content while loading your site's Javascript asynchronously. Turning on Rocket Loader will immediately improve a web page's rendering time sometimes measured as Time to First Paint (TTFP), and also the `window.onload` time (assuming there is JavaScript on the page). This can have a positive impact on your Google search ranking. When turned on, Rocket Loader will automatically defer the loading of all Javascript referenced in your HTML, with no configuration required. Refer to [Understanding Rocket Loader](https://support.cloudflare.com/hc/articles/200168056) for more information.

func (*SettingGetResponseZonesRocketLoader2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesRocketLoader2Editable added in v7.8.0

type SettingGetResponseZonesRocketLoader2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesRocketLoader2EditableTrue  SettingGetResponseZonesRocketLoader2Editable = true
	SettingGetResponseZonesRocketLoader2EditableFalse SettingGetResponseZonesRocketLoader2Editable = false
)

func (SettingGetResponseZonesRocketLoader2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesRocketLoader2ID added in v7.8.0

type SettingGetResponseZonesRocketLoader2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesRocketLoader2IDRocketLoader SettingGetResponseZonesRocketLoader2ID = "rocket_loader"
)

func (SettingGetResponseZonesRocketLoader2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesRocketLoader2ValueArray

type SettingGetResponseZonesRocketLoader2ValueArray []string

func (SettingGetResponseZonesRocketLoader2ValueArray) ImplementsSettingGetResponseZonesRocketLoader2ValueUnion

func (r SettingGetResponseZonesRocketLoader2ValueArray) ImplementsSettingGetResponseZonesRocketLoader2ValueUnion()

type SettingGetResponseZonesRocketLoader2ValueUnion

type SettingGetResponseZonesRocketLoader2ValueUnion interface {
	ImplementsSettingGetResponseZonesRocketLoader2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesRocketLoader2ValueArray.

type SettingGetResponseZonesSSL2 added in v7.8.0

type SettingGetResponseZonesSSL2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesSSL2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesSSL2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesSSL2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                       `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesSsl2JSON `json:"-"`
}

SSL encrypts your visitor's connection and safeguards credit card numbers and other personal data to and from your website. SSL can take up to 5 minutes to fully activate. Requires Cloudflare active on your root domain or www domain. Off: no SSL between the visitor and Cloudflare, and no SSL between Cloudflare and your web server (all HTTP traffic). Flexible: SSL between the visitor and Cloudflare -- visitor sees HTTPS on your site, but no SSL between Cloudflare and your web server. You don't need to have an SSL cert on your web server, but your vistors will still see the site as being HTTPS enabled. Full: SSL between the visitor and Cloudflare -- visitor sees HTTPS on your site, and SSL between Cloudflare and your web server. You'll need to have your own SSL cert or self-signed cert at the very least. Full (Strict): SSL between the visitor and Cloudflare -- visitor sees HTTPS on your site, and SSL between Cloudflare and your web server. You'll need to have a valid SSL certificate installed on your web server. This certificate must be signed by a certificate authority, have an expiration date in the future, and respond for the request domain name (hostname). (https://support.cloudflare.com/hc/en-us/articles/200170416).

func (*SettingGetResponseZonesSSL2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesSSL2Editable added in v7.8.0

type SettingGetResponseZonesSSL2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesSSL2EditableTrue  SettingGetResponseZonesSSL2Editable = true
	SettingGetResponseZonesSSL2EditableFalse SettingGetResponseZonesSSL2Editable = false
)

func (SettingGetResponseZonesSSL2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesSSL2ID added in v7.8.0

type SettingGetResponseZonesSSL2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesSSL2IDSSL SettingGetResponseZonesSSL2ID = "ssl"
)

func (SettingGetResponseZonesSSL2ID) IsKnown added in v7.8.0

func (r SettingGetResponseZonesSSL2ID) IsKnown() bool

type SettingGetResponseZonesSSL2ValueArray

type SettingGetResponseZonesSSL2ValueArray []string

func (SettingGetResponseZonesSSL2ValueArray) ImplementsSettingGetResponseZonesSsl2ValueUnion

func (r SettingGetResponseZonesSSL2ValueArray) ImplementsSettingGetResponseZonesSsl2ValueUnion()

type SettingGetResponseZonesSSL2ValueUnion

type SettingGetResponseZonesSSL2ValueUnion interface {
	ImplementsSettingGetResponseZonesSsl2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesSSL2ValueArray.

type SettingGetResponseZonesSchemasAutomaticPlatformOptimization

type SettingGetResponseZonesSchemasAutomaticPlatformOptimization struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesSchemasAutomaticPlatformOptimizationID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesSchemasAutomaticPlatformOptimizationValue `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesSchemasAutomaticPlatformOptimizationEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                                       `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesSchemasAutomaticPlatformOptimizationJSON `json:"-"`
}

[Automatic Platform Optimization for WordPress](https://developers.cloudflare.com/automatic-platform-optimization/) serves your WordPress site from Cloudflare's edge network and caches third-party fonts.

func (*SettingGetResponseZonesSchemasAutomaticPlatformOptimization) UnmarshalJSON

type SettingGetResponseZonesSchemasAutomaticPlatformOptimizationEditable

type SettingGetResponseZonesSchemasAutomaticPlatformOptimizationEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesSchemasAutomaticPlatformOptimizationEditableTrue  SettingGetResponseZonesSchemasAutomaticPlatformOptimizationEditable = true
	SettingGetResponseZonesSchemasAutomaticPlatformOptimizationEditableFalse SettingGetResponseZonesSchemasAutomaticPlatformOptimizationEditable = false
)

func (SettingGetResponseZonesSchemasAutomaticPlatformOptimizationEditable) IsKnown

type SettingGetResponseZonesSchemasAutomaticPlatformOptimizationID

type SettingGetResponseZonesSchemasAutomaticPlatformOptimizationID string

ID of the zone setting.

const (
	SettingGetResponseZonesSchemasAutomaticPlatformOptimizationIDAutomaticPlatformOptimization SettingGetResponseZonesSchemasAutomaticPlatformOptimizationID = "automatic_platform_optimization"
)

func (SettingGetResponseZonesSchemasAutomaticPlatformOptimizationID) IsKnown

type SettingGetResponseZonesSchemasAutomaticPlatformOptimizationValue

type SettingGetResponseZonesSchemasAutomaticPlatformOptimizationValue struct {
	// Indicates whether or not
	// [cache by device type](https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/)
	// is enabled.
	CacheByDeviceType bool `json:"cache_by_device_type"`
	// Indicates whether or not Cloudflare proxy is enabled.
	Cf bool `json:"cf"`
	// Indicates whether or not Automatic Platform Optimization is enabled.
	Enabled bool `json:"enabled"`
	// This field can have the runtime type of [[]string].
	Hostnames interface{} `json:"hostnames"`
	// Indicates whether or not site is powered by WordPress.
	Wordpress bool `json:"wordpress"`
	// Indicates whether or not
	// [Cloudflare for WordPress plugin](https://wordpress.org/plugins/cloudflare/) is
	// installed.
	WpPlugin bool                                                                 `json:"wp_plugin"`
	JSON     settingGetResponseZonesSchemasAutomaticPlatformOptimizationValueJSON `json:"-"`
	// contains filtered or unexported fields
}

Current value of the zone setting.

func (*SettingGetResponseZonesSchemasAutomaticPlatformOptimizationValue) UnmarshalJSON

type SettingGetResponseZonesSchemasAutomaticPlatformOptimizationValueObject

type SettingGetResponseZonesSchemasAutomaticPlatformOptimizationValueObject struct {
	// Indicates whether or not
	// [cache by device type](https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/)
	// is enabled.
	CacheByDeviceType bool `json:"cache_by_device_type"`
	// Indicates whether or not Cloudflare proxy is enabled.
	Cf bool `json:"cf"`
	// Indicates whether or not Automatic Platform Optimization is enabled.
	Enabled bool `json:"enabled"`
	// An array of hostnames where Automatic Platform Optimization for WordPress is
	// activated.
	Hostnames []string `json:"hostnames" format:"hostname"`
	// Indicates whether or not site is powered by WordPress.
	Wordpress bool `json:"wordpress"`
	// Indicates whether or not
	// [Cloudflare for WordPress plugin](https://wordpress.org/plugins/cloudflare/) is
	// installed.
	WpPlugin bool                                                                       `json:"wp_plugin"`
	JSON     settingGetResponseZonesSchemasAutomaticPlatformOptimizationValueObjectJSON `json:"-"`
}

func (*SettingGetResponseZonesSchemasAutomaticPlatformOptimizationValueObject) UnmarshalJSON

type SettingGetResponseZonesSearchForAgents

type SettingGetResponseZonesSearchForAgents struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesSearchForAgentsID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesSearchForAgentsValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesSearchForAgentsEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                  `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesSearchForAgentsJSON `json:"-"`
}

When enabled, Cloudflare provisions an AI Search instance for the zone and exposes a /.well-known/search endpoint that AI agents can query. Available on all plans. Markdown responses also receive an agent: YAML capability block advertising the search endpoint.

func (*SettingGetResponseZonesSearchForAgents) UnmarshalJSON

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

type SettingGetResponseZonesSearchForAgentsEditable

type SettingGetResponseZonesSearchForAgentsEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesSearchForAgentsEditableTrue  SettingGetResponseZonesSearchForAgentsEditable = true
	SettingGetResponseZonesSearchForAgentsEditableFalse SettingGetResponseZonesSearchForAgentsEditable = false
)

func (SettingGetResponseZonesSearchForAgentsEditable) IsKnown

type SettingGetResponseZonesSearchForAgentsID

type SettingGetResponseZonesSearchForAgentsID string

ID of the zone setting.

const (
	SettingGetResponseZonesSearchForAgentsIDSearchForAgents SettingGetResponseZonesSearchForAgentsID = "search_for_agents"
)

func (SettingGetResponseZonesSearchForAgentsID) IsKnown

type SettingGetResponseZonesSearchForAgentsValueArray

type SettingGetResponseZonesSearchForAgentsValueArray []string

func (SettingGetResponseZonesSearchForAgentsValueArray) ImplementsSettingGetResponseZonesSearchForAgentsValueUnion

func (r SettingGetResponseZonesSearchForAgentsValueArray) ImplementsSettingGetResponseZonesSearchForAgentsValueUnion()

type SettingGetResponseZonesSearchForAgentsValueUnion

type SettingGetResponseZonesSearchForAgentsValueUnion interface {
	ImplementsSettingGetResponseZonesSearchForAgentsValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesSearchForAgentsValueArray.

type SettingGetResponseZonesSecurityLevel2 added in v7.8.0

type SettingGetResponseZonesSecurityLevel2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesSecurityLevel2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesSecurityLevel2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesSecurityLevel2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                 `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesSecurityLevel2JSON `json:"-"`
}

Choose the appropriate security profile for your website, which will automatically adjust each of the security settings. If you choose to customize an individual security setting, the profile will become Custom. (https://support.cloudflare.com/hc/en-us/articles/200170056).

func (*SettingGetResponseZonesSecurityLevel2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesSecurityLevel2Editable added in v7.8.0

type SettingGetResponseZonesSecurityLevel2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesSecurityLevel2EditableTrue  SettingGetResponseZonesSecurityLevel2Editable = true
	SettingGetResponseZonesSecurityLevel2EditableFalse SettingGetResponseZonesSecurityLevel2Editable = false
)

func (SettingGetResponseZonesSecurityLevel2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesSecurityLevel2ID added in v7.8.0

type SettingGetResponseZonesSecurityLevel2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesSecurityLevel2IDSecurityLevel SettingGetResponseZonesSecurityLevel2ID = "security_level"
)

func (SettingGetResponseZonesSecurityLevel2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesSecurityLevel2ValueArray

type SettingGetResponseZonesSecurityLevel2ValueArray []string

func (SettingGetResponseZonesSecurityLevel2ValueArray) ImplementsSettingGetResponseZonesSecurityLevel2ValueUnion

func (r SettingGetResponseZonesSecurityLevel2ValueArray) ImplementsSettingGetResponseZonesSecurityLevel2ValueUnion()

type SettingGetResponseZonesSecurityLevel2ValueUnion

type SettingGetResponseZonesSecurityLevel2ValueUnion interface {
	ImplementsSettingGetResponseZonesSecurityLevel2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesSecurityLevel2ValueArray.

type SettingGetResponseZonesSha1Support

type SettingGetResponseZonesSha1Support struct {
	// Zone setting identifier.
	ID SettingGetResponseZonesSha1SupportID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesSha1SupportValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesSha1SupportEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                              `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesSha1SupportJSON `json:"-"`
}

Allow SHA1 support.

func (*SettingGetResponseZonesSha1Support) UnmarshalJSON

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

type SettingGetResponseZonesSha1SupportEditable

type SettingGetResponseZonesSha1SupportEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesSha1SupportEditableTrue  SettingGetResponseZonesSha1SupportEditable = true
	SettingGetResponseZonesSha1SupportEditableFalse SettingGetResponseZonesSha1SupportEditable = false
)

func (SettingGetResponseZonesSha1SupportEditable) IsKnown

type SettingGetResponseZonesSha1SupportID

type SettingGetResponseZonesSha1SupportID string

Zone setting identifier.

const (
	SettingGetResponseZonesSha1SupportIDSha1Support SettingGetResponseZonesSha1SupportID = "sha1_support"
)

func (SettingGetResponseZonesSha1SupportID) IsKnown

type SettingGetResponseZonesSha1SupportValueArray

type SettingGetResponseZonesSha1SupportValueArray []string

func (SettingGetResponseZonesSha1SupportValueArray) ImplementsSettingGetResponseZonesSha1SupportValueUnion

func (r SettingGetResponseZonesSha1SupportValueArray) ImplementsSettingGetResponseZonesSha1SupportValueUnion()

type SettingGetResponseZonesSha1SupportValueUnion

type SettingGetResponseZonesSha1SupportValueUnion interface {
	ImplementsSettingGetResponseZonesSha1SupportValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesSha1SupportValueArray.

type SettingGetResponseZonesSortQueryStringForCache2 added in v7.8.0

type SettingGetResponseZonesSortQueryStringForCache2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesSortQueryStringForCache2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesSortQueryStringForCache2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesSortQueryStringForCache2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                           `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesSortQueryStringForCache2JSON `json:"-"`
}

Cloudflare will treat files with the same query strings as the same file in cache, regardless of the order of the query strings. This is limited to Enterprise Zones.

func (*SettingGetResponseZonesSortQueryStringForCache2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesSortQueryStringForCache2Editable added in v7.8.0

type SettingGetResponseZonesSortQueryStringForCache2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesSortQueryStringForCache2EditableTrue  SettingGetResponseZonesSortQueryStringForCache2Editable = true
	SettingGetResponseZonesSortQueryStringForCache2EditableFalse SettingGetResponseZonesSortQueryStringForCache2Editable = false
)

func (SettingGetResponseZonesSortQueryStringForCache2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesSortQueryStringForCache2ID added in v7.8.0

type SettingGetResponseZonesSortQueryStringForCache2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesSortQueryStringForCache2IDSortQueryStringForCache SettingGetResponseZonesSortQueryStringForCache2ID = "sort_query_string_for_cache"
)

func (SettingGetResponseZonesSortQueryStringForCache2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesSortQueryStringForCache2ValueArray

type SettingGetResponseZonesSortQueryStringForCache2ValueArray []string

func (SettingGetResponseZonesSortQueryStringForCache2ValueArray) ImplementsSettingGetResponseZonesSortQueryStringForCache2ValueUnion

func (r SettingGetResponseZonesSortQueryStringForCache2ValueArray) ImplementsSettingGetResponseZonesSortQueryStringForCache2ValueUnion()

type SettingGetResponseZonesSortQueryStringForCache2ValueUnion

type SettingGetResponseZonesSortQueryStringForCache2ValueUnion interface {
	ImplementsSettingGetResponseZonesSortQueryStringForCache2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesSortQueryStringForCache2ValueArray.

type SettingGetResponseZonesTLS1_2Only

type SettingGetResponseZonesTLS1_2Only struct {
	// Zone setting identifier.
	ID SettingGetResponseZonesTLS1_2OnlyID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesTLS1_2OnlyValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesTLS1_2OnlyEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                             `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesTls1_2OnlyJSON `json:"-"`
}

Only allows TLS1.2.

func (*SettingGetResponseZonesTLS1_2Only) UnmarshalJSON

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

type SettingGetResponseZonesTLS1_2OnlyEditable

type SettingGetResponseZonesTLS1_2OnlyEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesTLS1_2OnlyEditableTrue  SettingGetResponseZonesTLS1_2OnlyEditable = true
	SettingGetResponseZonesTLS1_2OnlyEditableFalse SettingGetResponseZonesTLS1_2OnlyEditable = false
)

func (SettingGetResponseZonesTLS1_2OnlyEditable) IsKnown

type SettingGetResponseZonesTLS1_2OnlyID

type SettingGetResponseZonesTLS1_2OnlyID string

Zone setting identifier.

const (
	SettingGetResponseZonesTLS1_2OnlyIDTLS1_2Only SettingGetResponseZonesTLS1_2OnlyID = "tls_1_2_only"
)

func (SettingGetResponseZonesTLS1_2OnlyID) IsKnown

type SettingGetResponseZonesTLS1_2OnlyValueArray

type SettingGetResponseZonesTLS1_2OnlyValueArray []string

func (SettingGetResponseZonesTLS1_2OnlyValueArray) ImplementsSettingGetResponseZonesTls1_2OnlyValueUnion

func (r SettingGetResponseZonesTLS1_2OnlyValueArray) ImplementsSettingGetResponseZonesTls1_2OnlyValueUnion()

type SettingGetResponseZonesTLS1_2OnlyValueUnion

type SettingGetResponseZonesTLS1_2OnlyValueUnion interface {
	ImplementsSettingGetResponseZonesTls1_2OnlyValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesTLS1_2OnlyValueArray.

type SettingGetResponseZonesTransformations

type SettingGetResponseZonesTransformations struct {
	// ID of the zone setting. Shared between Image Transformations and Video
	// Transformations.
	ID SettingGetResponseZonesTransformationsID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesTransformationsValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesTransformationsEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                  `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesTransformationsJSON `json:"-"`
}

Media Transformations provides on-demand resizing, conversion and optimization for images and video served through Cloudflare's network. Refer to the [Image Transformations](https://developers.cloudflare.com/images/) and [Video Transformations](https://developers.cloudflare.com/stream/transform-videos/#getting-started) documentation for more information.

func (*SettingGetResponseZonesTransformations) UnmarshalJSON

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

type SettingGetResponseZonesTransformationsAllowedOrigins

type SettingGetResponseZonesTransformationsAllowedOrigins struct {
	// ID of the zone setting. Shared between Image Transformations and Video
	// Transformations.
	ID SettingGetResponseZonesTransformationsAllowedOriginsID `json:"id" api:"required"`
	// Comma-separated list of allowed origins. Refer to the
	// [Image Transformations](https://developers.cloudflare.com/images/transform-images/sources/)
	// and
	// [Video Transformations](https://developers.cloudflare.com/stream/transform-videos/#getting-started)
	// documentation for more information.
	Value SettingGetResponseZonesTransformationsAllowedOriginsValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesTransformationsAllowedOriginsEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                                `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesTransformationsAllowedOriginsJSON `json:"-"`
}

Media Transformations Allowed Origins restricts transformations for images and video served through Cloudflare's network. Refer to the [Image Transformations](https://developers.cloudflare.com/images/) and [Video Transformations](https://developers.cloudflare.com/stream/transform-videos/#getting-started) documentation for more information.

func (*SettingGetResponseZonesTransformationsAllowedOrigins) UnmarshalJSON

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

type SettingGetResponseZonesTransformationsAllowedOriginsEditable

type SettingGetResponseZonesTransformationsAllowedOriginsEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesTransformationsAllowedOriginsEditableTrue  SettingGetResponseZonesTransformationsAllowedOriginsEditable = true
	SettingGetResponseZonesTransformationsAllowedOriginsEditableFalse SettingGetResponseZonesTransformationsAllowedOriginsEditable = false
)

func (SettingGetResponseZonesTransformationsAllowedOriginsEditable) IsKnown

type SettingGetResponseZonesTransformationsAllowedOriginsID

type SettingGetResponseZonesTransformationsAllowedOriginsID string

ID of the zone setting. Shared between Image Transformations and Video Transformations.

const (
	SettingGetResponseZonesTransformationsAllowedOriginsIDTransformationsAllowedOrigins SettingGetResponseZonesTransformationsAllowedOriginsID = "transformations_allowed_origins"
)

func (SettingGetResponseZonesTransformationsAllowedOriginsID) IsKnown

type SettingGetResponseZonesTransformationsAllowedOriginsValueArray

type SettingGetResponseZonesTransformationsAllowedOriginsValueArray []string

func (SettingGetResponseZonesTransformationsAllowedOriginsValueArray) ImplementsSettingGetResponseZonesTransformationsAllowedOriginsValueUnion

func (r SettingGetResponseZonesTransformationsAllowedOriginsValueArray) ImplementsSettingGetResponseZonesTransformationsAllowedOriginsValueUnion()

type SettingGetResponseZonesTransformationsAllowedOriginsValueUnion

type SettingGetResponseZonesTransformationsAllowedOriginsValueUnion interface {
	ImplementsSettingGetResponseZonesTransformationsAllowedOriginsValueUnion()
}

Comma-separated list of allowed origins. Refer to the [Image Transformations](https://developers.cloudflare.com/images/transform-images/sources/) and [Video Transformations](https://developers.cloudflare.com/stream/transform-videos/#getting-started) documentation for more information.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesTransformationsAllowedOriginsValueArray.

type SettingGetResponseZonesTransformationsEditable

type SettingGetResponseZonesTransformationsEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesTransformationsEditableTrue  SettingGetResponseZonesTransformationsEditable = true
	SettingGetResponseZonesTransformationsEditableFalse SettingGetResponseZonesTransformationsEditable = false
)

func (SettingGetResponseZonesTransformationsEditable) IsKnown

type SettingGetResponseZonesTransformationsID

type SettingGetResponseZonesTransformationsID string

ID of the zone setting. Shared between Image Transformations and Video Transformations.

const (
	SettingGetResponseZonesTransformationsIDTransformations SettingGetResponseZonesTransformationsID = "transformations"
)

func (SettingGetResponseZonesTransformationsID) IsKnown

type SettingGetResponseZonesTransformationsValueArray

type SettingGetResponseZonesTransformationsValueArray []string

func (SettingGetResponseZonesTransformationsValueArray) ImplementsSettingGetResponseZonesTransformationsValueUnion

func (r SettingGetResponseZonesTransformationsValueArray) ImplementsSettingGetResponseZonesTransformationsValueUnion()

type SettingGetResponseZonesTransformationsValueUnion

type SettingGetResponseZonesTransformationsValueUnion interface {
	ImplementsSettingGetResponseZonesTransformationsValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesTransformationsValueArray.

type SettingGetResponseZonesTrueClientIPHeader2 added in v7.8.0

type SettingGetResponseZonesTrueClientIPHeader2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesTrueClientIPHeader2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesTrueClientIPHeader2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesTrueClientIPHeader2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                      `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesTrueClientIPHeader2JSON `json:"-"`
}

Allows customer to continue to use True Client IP (Akamai feature) in the headers we send to the origin. This is limited to Enterprise Zones.

func (*SettingGetResponseZonesTrueClientIPHeader2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesTrueClientIPHeader2Editable added in v7.8.0

type SettingGetResponseZonesTrueClientIPHeader2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesTrueClientIPHeader2EditableTrue  SettingGetResponseZonesTrueClientIPHeader2Editable = true
	SettingGetResponseZonesTrueClientIPHeader2EditableFalse SettingGetResponseZonesTrueClientIPHeader2Editable = false
)

func (SettingGetResponseZonesTrueClientIPHeader2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesTrueClientIPHeader2ID added in v7.8.0

type SettingGetResponseZonesTrueClientIPHeader2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesTrueClientIPHeader2IDTrueClientIPHeader SettingGetResponseZonesTrueClientIPHeader2ID = "true_client_ip_header"
)

func (SettingGetResponseZonesTrueClientIPHeader2ID) IsKnown added in v7.8.0

type SettingGetResponseZonesTrueClientIPHeader2ValueArray

type SettingGetResponseZonesTrueClientIPHeader2ValueArray []string

func (SettingGetResponseZonesTrueClientIPHeader2ValueArray) ImplementsSettingGetResponseZonesTrueClientIPHeader2ValueUnion

func (r SettingGetResponseZonesTrueClientIPHeader2ValueArray) ImplementsSettingGetResponseZonesTrueClientIPHeader2ValueUnion()

type SettingGetResponseZonesTrueClientIPHeader2ValueUnion

type SettingGetResponseZonesTrueClientIPHeader2ValueUnion interface {
	ImplementsSettingGetResponseZonesTrueClientIPHeader2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesTrueClientIPHeader2ValueArray.

type SettingGetResponseZonesWAF2 added in v7.8.0

type SettingGetResponseZonesWAF2 struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesWAF2ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesWAF2ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesWAF2Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                       `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesWaf2JSON `json:"-"`
}

The WAF examines HTTP requests to your website. It inspects both GET and POST requests and applies rules to help filter out illegitimate traffic from legitimate website visitors. The Cloudflare WAF inspects website addresses or URLs to detect anything out of the ordinary. If the Cloudflare WAF determines suspicious user behavior, then the WAF will 'challenge' the web visitor with a page that asks them to submit a CAPTCHA successfully to continue their action. If the challenge is failed, the action will be stopped. What this means is that Cloudflare's WAF will block any traffic identified as illegitimate before it reaches your origin web server. (https://support.cloudflare.com/hc/en-us/articles/200172016).

func (*SettingGetResponseZonesWAF2) UnmarshalJSON added in v7.8.0

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

type SettingGetResponseZonesWAF2Editable added in v7.8.0

type SettingGetResponseZonesWAF2Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesWAF2EditableTrue  SettingGetResponseZonesWAF2Editable = true
	SettingGetResponseZonesWAF2EditableFalse SettingGetResponseZonesWAF2Editable = false
)

func (SettingGetResponseZonesWAF2Editable) IsKnown added in v7.8.0

type SettingGetResponseZonesWAF2ID added in v7.8.0

type SettingGetResponseZonesWAF2ID string

ID of the zone setting.

const (
	SettingGetResponseZonesWAF2IDWAF SettingGetResponseZonesWAF2ID = "waf"
)

func (SettingGetResponseZonesWAF2ID) IsKnown added in v7.8.0

func (r SettingGetResponseZonesWAF2ID) IsKnown() bool

type SettingGetResponseZonesWAF2ValueArray

type SettingGetResponseZonesWAF2ValueArray []string

func (SettingGetResponseZonesWAF2ValueArray) ImplementsSettingGetResponseZonesWaf2ValueUnion

func (r SettingGetResponseZonesWAF2ValueArray) ImplementsSettingGetResponseZonesWaf2ValueUnion()

type SettingGetResponseZonesWAF2ValueUnion

type SettingGetResponseZonesWAF2ValueUnion interface {
	ImplementsSettingGetResponseZonesWaf2ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesWAF2ValueArray.

type SettingGetResponseZonesWebmcpEnabled added in v7.9.0

type SettingGetResponseZonesWebmcpEnabled struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesWebmcpEnabledID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value SettingGetResponseZonesWebmcpEnabledValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesWebmcpEnabledEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                                `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesWebmcpEnabledJSON `json:"-"`
}

When enabled, Cloudflare injects the WebMCP bridge (bridge.js) into HTML responses for this zone, exposing DOM and Content Credentials tools to an in-browser AI agent via navigator.modelContext. No origin-side code changes are required. This setting is currently in beta and its behavior may change.

func (*SettingGetResponseZonesWebmcpEnabled) UnmarshalJSON added in v7.9.0

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

type SettingGetResponseZonesWebmcpEnabledEditable added in v7.9.0

type SettingGetResponseZonesWebmcpEnabledEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesWebmcpEnabledEditableTrue  SettingGetResponseZonesWebmcpEnabledEditable = true
	SettingGetResponseZonesWebmcpEnabledEditableFalse SettingGetResponseZonesWebmcpEnabledEditable = false
)

func (SettingGetResponseZonesWebmcpEnabledEditable) IsKnown added in v7.9.0

type SettingGetResponseZonesWebmcpEnabledID added in v7.9.0

type SettingGetResponseZonesWebmcpEnabledID string

ID of the zone setting.

const (
	SettingGetResponseZonesWebmcpEnabledIDWebmcpEnabled SettingGetResponseZonesWebmcpEnabledID = "webmcp_enabled"
)

func (SettingGetResponseZonesWebmcpEnabledID) IsKnown added in v7.9.0

type SettingGetResponseZonesWebmcpEnabledValueArray

type SettingGetResponseZonesWebmcpEnabledValueArray []string

func (SettingGetResponseZonesWebmcpEnabledValueArray) ImplementsSettingGetResponseZonesWebmcpEnabledValueUnion

func (r SettingGetResponseZonesWebmcpEnabledValueArray) ImplementsSettingGetResponseZonesWebmcpEnabledValueUnion()

type SettingGetResponseZonesWebmcpEnabledValueUnion

type SettingGetResponseZonesWebmcpEnabledValueUnion interface {
	ImplementsSettingGetResponseZonesWebmcpEnabledValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesWebmcpEnabledValueArray.

type SettingGetResponseZonesWebmcpMcpURL

type SettingGetResponseZonesWebmcpMcpURL struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesWebmcpMcpURLID `json:"id" api:"required"`
	// Root-relative path (with optional query string) of this zone's MCP endpoint, for
	// example "/api/mcp". Surfaced to the injected bridge as the data-mcp-url
	// attribute. Absolute and protocol-relative URLs, fragments, and characters
	// outside RFC 3986 paths and queries are rejected. An empty value clears the
	// override so the bridge uses /mcp.
	Value SettingGetResponseZonesWebmcpMcpURLValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesWebmcpMcpURLEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                               `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesWebmcpMcpURLJSON `json:"-"`
}

Optional per-zone path of the site's own MCP server, used by the WebMCP mcp-server-client tool pack to list and call the site's MCP tools from the browser. The path is resolved against the page's origin, so it applies to every hostname in the zone. Only takes effect when webmcp_enabled is on and the mcp-server-client pack is active. Leave empty to use /mcp. This setting is currently in beta and its behavior may change.

func (*SettingGetResponseZonesWebmcpMcpURL) UnmarshalJSON

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

type SettingGetResponseZonesWebmcpMcpURLEditable

type SettingGetResponseZonesWebmcpMcpURLEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesWebmcpMcpURLEditableTrue  SettingGetResponseZonesWebmcpMcpURLEditable = true
	SettingGetResponseZonesWebmcpMcpURLEditableFalse SettingGetResponseZonesWebmcpMcpURLEditable = false
)

func (SettingGetResponseZonesWebmcpMcpURLEditable) IsKnown

type SettingGetResponseZonesWebmcpMcpURLID

type SettingGetResponseZonesWebmcpMcpURLID string

ID of the zone setting.

const (
	SettingGetResponseZonesWebmcpMcpURLIDWebmcpMcpURL SettingGetResponseZonesWebmcpMcpURLID = "webmcp_mcp_url"
)

func (SettingGetResponseZonesWebmcpMcpURLID) IsKnown

type SettingGetResponseZonesWebmcpMcpURLValueArray

type SettingGetResponseZonesWebmcpMcpURLValueArray []string

func (SettingGetResponseZonesWebmcpMcpURLValueArray) ImplementsSettingGetResponseZonesWebmcpMcpURLValueUnion

func (r SettingGetResponseZonesWebmcpMcpURLValueArray) ImplementsSettingGetResponseZonesWebmcpMcpURLValueUnion()

type SettingGetResponseZonesWebmcpMcpURLValueUnion

type SettingGetResponseZonesWebmcpMcpURLValueUnion interface {
	ImplementsSettingGetResponseZonesWebmcpMcpURLValueUnion()
}

Root-relative path (with optional query string) of this zone's MCP endpoint, for example "/api/mcp". Surfaced to the injected bridge as the data-mcp-url attribute. Absolute and protocol-relative URLs, fragments, and characters outside RFC 3986 paths and queries are rejected. An empty value clears the override so the bridge uses /mcp.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesWebmcpMcpURLValueArray.

type SettingGetResponseZonesWebmcpPacks added in v7.9.0

type SettingGetResponseZonesWebmcpPacks struct {
	// ID of the zone setting.
	ID SettingGetResponseZonesWebmcpPacksID `json:"id" api:"required"`
	// Comma-separated list of WebMCP tool-pack names to activate for this zone (for
	// example, "c2pa,mcp-server-client"), surfaced to the injected bridge as the
	// data-packs attribute. An empty value clears the override so the bridge uses its
	// built-in default pack set.
	Value SettingGetResponseZonesWebmcpPacksValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable SettingGetResponseZonesWebmcpPacksEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time                              `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       settingGetResponseZonesWebmcpPacksJSON `json:"-"`
}

Optional per-zone override of which bundled WebMCP tool packs the injected bridge.js activates. Only takes effect when webmcp_enabled is on. Leave empty to use the bridge's default pack set. Unknown pack names are ignored by the bridge. This setting is currently in beta and its behavior may change.

func (*SettingGetResponseZonesWebmcpPacks) UnmarshalJSON added in v7.9.0

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

type SettingGetResponseZonesWebmcpPacksEditable added in v7.9.0

type SettingGetResponseZonesWebmcpPacksEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	SettingGetResponseZonesWebmcpPacksEditableTrue  SettingGetResponseZonesWebmcpPacksEditable = true
	SettingGetResponseZonesWebmcpPacksEditableFalse SettingGetResponseZonesWebmcpPacksEditable = false
)

func (SettingGetResponseZonesWebmcpPacksEditable) IsKnown added in v7.9.0

type SettingGetResponseZonesWebmcpPacksID added in v7.9.0

type SettingGetResponseZonesWebmcpPacksID string

ID of the zone setting.

const (
	SettingGetResponseZonesWebmcpPacksIDWebmcpPacks SettingGetResponseZonesWebmcpPacksID = "webmcp_packs"
)

func (SettingGetResponseZonesWebmcpPacksID) IsKnown added in v7.9.0

type SettingGetResponseZonesWebmcpPacksValueArray

type SettingGetResponseZonesWebmcpPacksValueArray []string

func (SettingGetResponseZonesWebmcpPacksValueArray) ImplementsSettingGetResponseZonesWebmcpPacksValueUnion

func (r SettingGetResponseZonesWebmcpPacksValueArray) ImplementsSettingGetResponseZonesWebmcpPacksValueUnion()

type SettingGetResponseZonesWebmcpPacksValueUnion

type SettingGetResponseZonesWebmcpPacksValueUnion interface {
	ImplementsSettingGetResponseZonesWebmcpPacksValueUnion()
}

Comma-separated list of WebMCP tool-pack names to activate for this zone (for example, "c2pa,mcp-server-client"), surfaced to the injected bridge as the data-packs attribute. An empty value clears the override so the bridge uses its built-in default pack set.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or SettingGetResponseZonesWebmcpPacksValueArray.

type SettingID added in v7.10.0

type SettingID string

Zone setting identifier.

const (
	SettingIDNEL SettingID = "nel"
)

func (SettingID) IsKnown added in v7.10.0

func (r SettingID) IsKnown() bool

type SettingService

type SettingService struct {
	Options []option.RequestOption
}

SettingService 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 NewSettingService method instead.

func NewSettingService

func NewSettingService(opts ...option.RequestOption) (r *SettingService)

NewSettingService 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 (*SettingService) Edit

func (r *SettingService) Edit(ctx context.Context, settingID string, params SettingEditParams, opts ...option.RequestOption) (res *SettingEditResponse, err error)

Updates a single zone setting by the identifier

func (*SettingService) Get

func (r *SettingService) Get(ctx context.Context, settingID string, query SettingGetParams, opts ...option.RequestOption) (res *SettingGetResponse, err error)

Fetch a single zone setting by name

type SettingValue added in v7.10.0

type SettingValue struct {
	// Whether Network Error Logging is enabled for the zone. When enabled, browsers
	// report network errors to Cloudflare's NEL endpoint.
	Enabled bool             `json:"enabled" api:"required"`
	JSON    settingValueJSON `json:"-"`
}

The NEL configuration value.

func (*SettingValue) UnmarshalJSON added in v7.10.0

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

type SortDirection

type SortDirection = shared.SortDirection

Direction to order DNS records in.

This is an alias to an internal type.

type SortQueryStringForCache

type SortQueryStringForCache struct {
	// Turn on or off the reordering of query strings. When query strings have the same
	// structure, caching improves.
	ID SortQueryStringForCacheID `json:"id"`
	// The status of Query String Sort
	Value SortQueryStringForCacheValue `json:"value"`
	JSON  sortQueryStringForCacheJSON  `json:"-"`
}

func (SortQueryStringForCache) ImplementsPageRuleAction

func (r SortQueryStringForCache) ImplementsPageRuleAction()

func (*SortQueryStringForCache) UnmarshalJSON

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

type SortQueryStringForCacheID

type SortQueryStringForCacheID string

Turn on or off the reordering of query strings. When query strings have the same structure, caching improves.

const (
	SortQueryStringForCacheIDSortQueryStringForCache SortQueryStringForCacheID = "sort_query_string_for_cache"
)

func (SortQueryStringForCacheID) IsKnown

func (r SortQueryStringForCacheID) IsKnown() bool

type SortQueryStringForCacheParam

type SortQueryStringForCacheParam struct {
	// Turn on or off the reordering of query strings. When query strings have the same
	// structure, caching improves.
	ID param.Field[SortQueryStringForCacheID] `json:"id"`
	// The status of Query String Sort
	Value param.Field[SortQueryStringForCacheValue] `json:"value"`
}

func (SortQueryStringForCacheParam) ImplementsPageRuleEditParamsActionUnion

func (r SortQueryStringForCacheParam) ImplementsPageRuleEditParamsActionUnion()

func (SortQueryStringForCacheParam) ImplementsPageRuleNewParamsActionUnion

func (r SortQueryStringForCacheParam) ImplementsPageRuleNewParamsActionUnion()

func (SortQueryStringForCacheParam) ImplementsPageRuleUpdateParamsActionUnion

func (r SortQueryStringForCacheParam) ImplementsPageRuleUpdateParamsActionUnion()

func (SortQueryStringForCacheParam) MarshalJSON

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

type SortQueryStringForCacheValue

type SortQueryStringForCacheValue string

The status of Query String Sort

const (
	SortQueryStringForCacheValueOn  SortQueryStringForCacheValue = "on"
	SortQueryStringForCacheValueOff SortQueryStringForCacheValue = "off"
)

func (SortQueryStringForCacheValue) IsKnown

func (r SortQueryStringForCacheValue) IsKnown() bool

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 SubscriptionGetParams

type SubscriptionGetParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type SubscriptionGetResponse

type SubscriptionGetResponse struct {
	// Subscription identifier tag.
	ID string `json:"id"`
	// The monetary unit in which pricing information is displayed.
	Currency string `json:"currency"`
	// The end of the current period and also when the next billing is due.
	CurrentPeriodEnd time.Time `json:"current_period_end" format:"date-time"`
	// When the current billing period started. May match initial_period_start if this
	// is the first period.
	CurrentPeriodStart time.Time `json:"current_period_start" format:"date-time"`
	// How often the subscription is renewed automatically.
	Frequency SubscriptionGetResponseFrequency `json:"frequency"`
	// The price of the subscription that will be billed, in US dollars.
	Price float64 `json:"price"`
	// The rate plan applied to the subscription.
	RatePlan shared.RatePlan `json:"rate_plan"`
	// The state that the subscription is in.
	State SubscriptionGetResponseState `json:"state"`
	JSON  subscriptionGetResponseJSON  `json:"-"`
}

func (*SubscriptionGetResponse) UnmarshalJSON

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

type SubscriptionGetResponseEnvelope

type SubscriptionGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo   `json:"errors" api:"required"`
	Messages []shared.ResponseInfo   `json:"messages" api:"required"`
	Result   SubscriptionGetResponse `json:"result" api:"required"`
	// Whether the API call was successful
	Success SubscriptionGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    subscriptionGetResponseEnvelopeJSON    `json:"-"`
}

func (*SubscriptionGetResponseEnvelope) UnmarshalJSON

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

type SubscriptionGetResponseEnvelopeSuccess

type SubscriptionGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	SubscriptionGetResponseEnvelopeSuccessTrue SubscriptionGetResponseEnvelopeSuccess = true
)

func (SubscriptionGetResponseEnvelopeSuccess) IsKnown

type SubscriptionGetResponseFrequency

type SubscriptionGetResponseFrequency string

How often the subscription is renewed automatically.

const (
	SubscriptionGetResponseFrequencyWeekly        SubscriptionGetResponseFrequency = "weekly"
	SubscriptionGetResponseFrequencyMonthly       SubscriptionGetResponseFrequency = "monthly"
	SubscriptionGetResponseFrequencyQuarterly     SubscriptionGetResponseFrequency = "quarterly"
	SubscriptionGetResponseFrequencyYearly        SubscriptionGetResponseFrequency = "yearly"
	SubscriptionGetResponseFrequencyNotApplicable SubscriptionGetResponseFrequency = "not-applicable"
)

func (SubscriptionGetResponseFrequency) IsKnown

type SubscriptionGetResponseState

type SubscriptionGetResponseState string

The state that the subscription is in.

const (
	SubscriptionGetResponseStateTrial           SubscriptionGetResponseState = "Trial"
	SubscriptionGetResponseStateProvisioned     SubscriptionGetResponseState = "Provisioned"
	SubscriptionGetResponseStatePaid            SubscriptionGetResponseState = "Paid"
	SubscriptionGetResponseStateAwaitingPayment SubscriptionGetResponseState = "AwaitingPayment"
	SubscriptionGetResponseStateCancelled       SubscriptionGetResponseState = "Cancelled"
	SubscriptionGetResponseStateFailed          SubscriptionGetResponseState = "Failed"
	SubscriptionGetResponseStateExpired         SubscriptionGetResponseState = "Expired"
)

func (SubscriptionGetResponseState) IsKnown

func (r SubscriptionGetResponseState) IsKnown() bool

type SubscriptionNewParams

type SubscriptionNewParams struct {
	// Identifier
	ZoneID       param.Field[string]      `path:"zone_id" api:"required"`
	Subscription shared.SubscriptionParam `json:"subscription" api:"required"`
}

func (SubscriptionNewParams) MarshalJSON

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

type SubscriptionNewResponse

type SubscriptionNewResponse struct {
	// Subscription identifier tag.
	ID string `json:"id"`
	// The monetary unit in which pricing information is displayed.
	Currency string `json:"currency"`
	// The end of the current period and also when the next billing is due.
	CurrentPeriodEnd time.Time `json:"current_period_end" format:"date-time"`
	// When the current billing period started. May match initial_period_start if this
	// is the first period.
	CurrentPeriodStart time.Time `json:"current_period_start" format:"date-time"`
	// How often the subscription is renewed automatically.
	Frequency SubscriptionNewResponseFrequency `json:"frequency"`
	// The price of the subscription that will be billed, in US dollars.
	Price float64 `json:"price"`
	// The rate plan applied to the subscription.
	RatePlan shared.RatePlan `json:"rate_plan"`
	// The state that the subscription is in.
	State SubscriptionNewResponseState `json:"state"`
	JSON  subscriptionNewResponseJSON  `json:"-"`
}

func (*SubscriptionNewResponse) UnmarshalJSON

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

type SubscriptionNewResponseEnvelope

type SubscriptionNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo   `json:"errors" api:"required"`
	Messages []shared.ResponseInfo   `json:"messages" api:"required"`
	Result   SubscriptionNewResponse `json:"result" api:"required"`
	// Whether the API call was successful
	Success SubscriptionNewResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    subscriptionNewResponseEnvelopeJSON    `json:"-"`
}

func (*SubscriptionNewResponseEnvelope) UnmarshalJSON

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

type SubscriptionNewResponseEnvelopeSuccess

type SubscriptionNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	SubscriptionNewResponseEnvelopeSuccessTrue SubscriptionNewResponseEnvelopeSuccess = true
)

func (SubscriptionNewResponseEnvelopeSuccess) IsKnown

type SubscriptionNewResponseFrequency

type SubscriptionNewResponseFrequency string

How often the subscription is renewed automatically.

const (
	SubscriptionNewResponseFrequencyWeekly        SubscriptionNewResponseFrequency = "weekly"
	SubscriptionNewResponseFrequencyMonthly       SubscriptionNewResponseFrequency = "monthly"
	SubscriptionNewResponseFrequencyQuarterly     SubscriptionNewResponseFrequency = "quarterly"
	SubscriptionNewResponseFrequencyYearly        SubscriptionNewResponseFrequency = "yearly"
	SubscriptionNewResponseFrequencyNotApplicable SubscriptionNewResponseFrequency = "not-applicable"
)

func (SubscriptionNewResponseFrequency) IsKnown

type SubscriptionNewResponseState

type SubscriptionNewResponseState string

The state that the subscription is in.

const (
	SubscriptionNewResponseStateTrial           SubscriptionNewResponseState = "Trial"
	SubscriptionNewResponseStateProvisioned     SubscriptionNewResponseState = "Provisioned"
	SubscriptionNewResponseStatePaid            SubscriptionNewResponseState = "Paid"
	SubscriptionNewResponseStateAwaitingPayment SubscriptionNewResponseState = "AwaitingPayment"
	SubscriptionNewResponseStateCancelled       SubscriptionNewResponseState = "Cancelled"
	SubscriptionNewResponseStateFailed          SubscriptionNewResponseState = "Failed"
	SubscriptionNewResponseStateExpired         SubscriptionNewResponseState = "Expired"
)

func (SubscriptionNewResponseState) IsKnown

func (r SubscriptionNewResponseState) IsKnown() bool

type SubscriptionParam

type SubscriptionParam = shared.SubscriptionParam

This is an alias to an internal type.

type SubscriptionService

type SubscriptionService struct {
	Options []option.RequestOption
}

SubscriptionService 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 NewSubscriptionService method instead.

func NewSubscriptionService

func NewSubscriptionService(opts ...option.RequestOption) (r *SubscriptionService)

NewSubscriptionService 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 (*SubscriptionService) Get

Lists zone subscription details. Zones on the Free plan normally have no zone subscription, so this returns 404 with error code 1207.

func (*SubscriptionService) New

Create a zone subscription, either plan or add-ons. Requesting the `free` rate plan does not create a subscription.

func (*SubscriptionService) Update

Updates zone subscriptions, either plan or add-ons. Updating to the `free` rate plan downgrades the zone to the Free plan, after which the zone has no zone subscription.

type SubscriptionState

type SubscriptionState = shared.SubscriptionState

The state that the subscription is in.

This is an alias to an internal type.

type SubscriptionUpdateParams

type SubscriptionUpdateParams struct {
	// Identifier
	ZoneID       param.Field[string]      `path:"zone_id" api:"required"`
	Subscription shared.SubscriptionParam `json:"subscription" api:"required"`
}

func (SubscriptionUpdateParams) MarshalJSON

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

type SubscriptionUpdateResponse

type SubscriptionUpdateResponse struct {
	// Subscription identifier tag.
	ID string `json:"id"`
	// The monetary unit in which pricing information is displayed.
	Currency string `json:"currency"`
	// The end of the current period and also when the next billing is due.
	CurrentPeriodEnd time.Time `json:"current_period_end" format:"date-time"`
	// When the current billing period started. May match initial_period_start if this
	// is the first period.
	CurrentPeriodStart time.Time `json:"current_period_start" format:"date-time"`
	// How often the subscription is renewed automatically.
	Frequency SubscriptionUpdateResponseFrequency `json:"frequency"`
	// The price of the subscription that will be billed, in US dollars.
	Price float64 `json:"price"`
	// The rate plan applied to the subscription.
	RatePlan shared.RatePlan `json:"rate_plan"`
	// The state that the subscription is in.
	State SubscriptionUpdateResponseState `json:"state"`
	JSON  subscriptionUpdateResponseJSON  `json:"-"`
}

func (*SubscriptionUpdateResponse) UnmarshalJSON

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

type SubscriptionUpdateResponseEnvelope

type SubscriptionUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo      `json:"errors" api:"required"`
	Messages []shared.ResponseInfo      `json:"messages" api:"required"`
	Result   SubscriptionUpdateResponse `json:"result" api:"required"`
	// Whether the API call was successful
	Success SubscriptionUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    subscriptionUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*SubscriptionUpdateResponseEnvelope) UnmarshalJSON

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

type SubscriptionUpdateResponseEnvelopeSuccess

type SubscriptionUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	SubscriptionUpdateResponseEnvelopeSuccessTrue SubscriptionUpdateResponseEnvelopeSuccess = true
)

func (SubscriptionUpdateResponseEnvelopeSuccess) IsKnown

type SubscriptionUpdateResponseFrequency

type SubscriptionUpdateResponseFrequency string

How often the subscription is renewed automatically.

const (
	SubscriptionUpdateResponseFrequencyWeekly        SubscriptionUpdateResponseFrequency = "weekly"
	SubscriptionUpdateResponseFrequencyMonthly       SubscriptionUpdateResponseFrequency = "monthly"
	SubscriptionUpdateResponseFrequencyQuarterly     SubscriptionUpdateResponseFrequency = "quarterly"
	SubscriptionUpdateResponseFrequencyYearly        SubscriptionUpdateResponseFrequency = "yearly"
	SubscriptionUpdateResponseFrequencyNotApplicable SubscriptionUpdateResponseFrequency = "not-applicable"
)

func (SubscriptionUpdateResponseFrequency) IsKnown

type SubscriptionUpdateResponseState

type SubscriptionUpdateResponseState string

The state that the subscription is in.

const (
	SubscriptionUpdateResponseStateTrial           SubscriptionUpdateResponseState = "Trial"
	SubscriptionUpdateResponseStateProvisioned     SubscriptionUpdateResponseState = "Provisioned"
	SubscriptionUpdateResponseStatePaid            SubscriptionUpdateResponseState = "Paid"
	SubscriptionUpdateResponseStateAwaitingPayment SubscriptionUpdateResponseState = "AwaitingPayment"
	SubscriptionUpdateResponseStateCancelled       SubscriptionUpdateResponseState = "Cancelled"
	SubscriptionUpdateResponseStateFailed          SubscriptionUpdateResponseState = "Failed"
	SubscriptionUpdateResponseStateExpired         SubscriptionUpdateResponseState = "Expired"
)

func (SubscriptionUpdateResponseState) IsKnown

type TLS1_3

type TLS1_3 struct {
	// ID of the zone setting.
	ID TLS1_3ID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value TLS1_3ValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable TLS1_3Editable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time  `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       tls1_3JSON `json:"-"`
}

Enables Crypto TLS 1.3 feature for a zone. This setting also controls 0-RTT. `zrt` enables TLS 1.3 and 0-RTT, `on` enables TLS 1.3 and disables 0-RTT, and `off` disables both. Reads return `zrt` when TLS 1.3 and 0-RTT are both enabled, so setting `on` while 0-RTT is enabled turns 0-RTT off.

func (*TLS1_3) UnmarshalJSON

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

type TLS1_3Editable

type TLS1_3Editable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	TLS1_3EditableTrue  TLS1_3Editable = true
	TLS1_3EditableFalse TLS1_3Editable = false
)

func (TLS1_3Editable) IsKnown

func (r TLS1_3Editable) IsKnown() bool

type TLS1_3ID

type TLS1_3ID string

ID of the zone setting.

const (
	TLS1_3IDTLS1_3 TLS1_3ID = "tls_1_3"
)

func (TLS1_3ID) IsKnown

func (r TLS1_3ID) IsKnown() bool

type TLS1_3ValueArray

type TLS1_3ValueArray []string

func (TLS1_3ValueArray) ImplementsTls1_3ValueUnion

func (r TLS1_3ValueArray) ImplementsTls1_3ValueUnion()

type TLS1_3ValueUnion

type TLS1_3ValueUnion interface {
	ImplementsTls1_3ValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or TLS1_3ValueArray.

type TLSClientAuth

type TLSClientAuth struct {
	// ID of the zone setting.
	ID TLSClientAuthID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value TLSClientAuthValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable TLSClientAuthEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time         `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       tlsClientAuthJSON `json:"-"`
}

TLS Client Auth requires Cloudflare to connect to your origin server using a client certificate (Enterprise Only).

func (*TLSClientAuth) UnmarshalJSON

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

type TLSClientAuthEditable

type TLSClientAuthEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	TLSClientAuthEditableTrue  TLSClientAuthEditable = true
	TLSClientAuthEditableFalse TLSClientAuthEditable = false
)

func (TLSClientAuthEditable) IsKnown

func (r TLSClientAuthEditable) IsKnown() bool

type TLSClientAuthID

type TLSClientAuthID string

ID of the zone setting.

const (
	TLSClientAuthIDTLSClientAuth TLSClientAuthID = "tls_client_auth"
)

func (TLSClientAuthID) IsKnown

func (r TLSClientAuthID) IsKnown() bool

type TLSClientAuthValueArray

type TLSClientAuthValueArray []string

func (TLSClientAuthValueArray) ImplementsTLSClientAuthValueUnion

func (r TLSClientAuthValueArray) ImplementsTLSClientAuthValueUnion()

type TLSClientAuthValueUnion

type TLSClientAuthValueUnion interface {
	ImplementsTLSClientAuthValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or TLSClientAuthValueArray.

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.

type TransformationsAllowedOriginEditParams added in v7.9.0

type TransformationsAllowedOriginEditParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// Comma-separated list of allowed origin domains for image and video
	// transformations. Use "\*" to allow all origins (default).
	Value param.Field[string] `json:"value" api:"required"`
}

func (TransformationsAllowedOriginEditParams) MarshalJSON added in v7.9.0

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

type TransformationsAllowedOriginEditResponseEnvelope added in v7.9.0

type TransformationsAllowedOriginEditResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success bool `json:"success" api:"required"`
	// Controls which origins are allowed to request image and video transformations.
	Result TransformationsAllowedOrigins                        `json:"result"`
	JSON   transformationsAllowedOriginEditResponseEnvelopeJSON `json:"-"`
}

func (*TransformationsAllowedOriginEditResponseEnvelope) UnmarshalJSON added in v7.9.0

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

type TransformationsAllowedOriginGetParams added in v7.9.0

type TransformationsAllowedOriginGetParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type TransformationsAllowedOriginGetResponseEnvelope added in v7.9.0

type TransformationsAllowedOriginGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success bool `json:"success" api:"required"`
	// Controls which origins are allowed to request image and video transformations.
	Result TransformationsAllowedOrigins                       `json:"result"`
	JSON   transformationsAllowedOriginGetResponseEnvelopeJSON `json:"-"`
}

func (*TransformationsAllowedOriginGetResponseEnvelope) UnmarshalJSON added in v7.9.0

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

type TransformationsAllowedOriginService added in v7.8.0

type TransformationsAllowedOriginService struct {
	Options []option.RequestOption
}

TransformationsAllowedOriginService 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 NewTransformationsAllowedOriginService method instead.

func NewTransformationsAllowedOriginService added in v7.8.0

func NewTransformationsAllowedOriginService(opts ...option.RequestOption) (r *TransformationsAllowedOriginService)

NewTransformationsAllowedOriginService 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 (*TransformationsAllowedOriginService) Edit added in v7.9.0

Media Transformations Allowed Origins restricts transformations for images and video served through Cloudflare's network to requests originating from specified domains. Refer to the Image Transformations and Video Transformations documentation for more information.

func (*TransformationsAllowedOriginService) Get added in v7.9.0

Media Transformations Allowed Origins restricts transformations for images and video served through Cloudflare's network to requests originating from specified domains. Refer to the Image Transformations and Video Transformations documentation for more information.

type TransformationsAllowedOrigins added in v7.9.0

type TransformationsAllowedOrigins struct {
	// ID of the zone setting.
	ID TransformationsAllowedOriginsID `json:"id"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable TransformationsAllowedOriginsEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Comma-separated list of allowed origin domains for image and video
	// transformations. Use "\*" to allow all origins (default).
	Value TransformationsAllowedOriginsValue `json:"value"`
	JSON  transformationsAllowedOriginsJSON  `json:"-"`
}

Controls which origins are allowed to request image and video transformations.

func (*TransformationsAllowedOrigins) UnmarshalJSON added in v7.9.0

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

type TransformationsAllowedOriginsEditable added in v7.9.0

type TransformationsAllowedOriginsEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	TransformationsAllowedOriginsEditableTrue  TransformationsAllowedOriginsEditable = true
	TransformationsAllowedOriginsEditableFalse TransformationsAllowedOriginsEditable = false
)

func (TransformationsAllowedOriginsEditable) IsKnown added in v7.9.0

type TransformationsAllowedOriginsID added in v7.9.0

type TransformationsAllowedOriginsID string

ID of the zone setting.

const (
	TransformationsAllowedOriginsIDImageResizingAllowedOrigins TransformationsAllowedOriginsID = "image_resizing_allowed_origins"
)

func (TransformationsAllowedOriginsID) IsKnown added in v7.9.0

type TransformationsAllowedOriginsValue added in v7.9.0

type TransformationsAllowedOriginsValue string

Comma-separated list of allowed origin domains for image and video transformations. Use "\*" to allow all origins (default).

const (
	TransformationsAllowedOriginsValueOn  TransformationsAllowedOriginsValue = "on"
	TransformationsAllowedOriginsValueOff TransformationsAllowedOriginsValue = "off"
)

func (TransformationsAllowedOriginsValue) IsKnown added in v7.9.0

type TransformationsC2pa added in v7.9.0

type TransformationsC2pa struct {
	// ID of the zone setting.
	ID TransformationsC2paID `json:"id"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable TransformationsC2paEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	// Current value of the zone setting.
	Value TransformationsC2paValue `json:"value"`
	JSON  transformationsC2paJSON  `json:"-"`
}

Controls C2PA signing for images processed through Cloudflare Image Transformations.

func (*TransformationsC2pa) UnmarshalJSON added in v7.9.0

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

type TransformationsC2paEditParams added in v7.9.0

type TransformationsC2paEditParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// Whether C2PA signing is enabled for image transformations.
	Value param.Field[TransformationsC2paEditParamsValue] `json:"value" api:"required"`
}

func (TransformationsC2paEditParams) MarshalJSON added in v7.9.0

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

type TransformationsC2paEditParamsValue added in v7.9.0

type TransformationsC2paEditParamsValue string

Whether C2PA signing is enabled for image transformations.

const (
	TransformationsC2paEditParamsValueOff TransformationsC2paEditParamsValue = "off"
	TransformationsC2paEditParamsValueOn  TransformationsC2paEditParamsValue = "on"
)

func (TransformationsC2paEditParamsValue) IsKnown added in v7.9.0

type TransformationsC2paEditResponseEnvelope added in v7.9.0

type TransformationsC2paEditResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success bool `json:"success" api:"required"`
	// Controls C2PA signing for images processed through Cloudflare Image
	// Transformations.
	Result TransformationsC2pa                         `json:"result"`
	JSON   transformationsC2paEditResponseEnvelopeJSON `json:"-"`
}

func (*TransformationsC2paEditResponseEnvelope) UnmarshalJSON added in v7.9.0

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

type TransformationsC2paEditable added in v7.9.0

type TransformationsC2paEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	TransformationsC2paEditableTrue  TransformationsC2paEditable = true
	TransformationsC2paEditableFalse TransformationsC2paEditable = false
)

func (TransformationsC2paEditable) IsKnown added in v7.9.0

func (r TransformationsC2paEditable) IsKnown() bool

type TransformationsC2paGetParams added in v7.9.0

type TransformationsC2paGetParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type TransformationsC2paGetResponseEnvelope added in v7.9.0

type TransformationsC2paGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success bool `json:"success" api:"required"`
	// Controls C2PA signing for images processed through Cloudflare Image
	// Transformations.
	Result TransformationsC2pa                        `json:"result"`
	JSON   transformationsC2paGetResponseEnvelopeJSON `json:"-"`
}

func (*TransformationsC2paGetResponseEnvelope) UnmarshalJSON added in v7.9.0

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

type TransformationsC2paID added in v7.9.0

type TransformationsC2paID string

ID of the zone setting.

const (
	TransformationsC2paIDImageResizingC2pa TransformationsC2paID = "image_resizing_c2pa"
)

func (TransformationsC2paID) IsKnown added in v7.9.0

func (r TransformationsC2paID) IsKnown() bool

type TransformationsC2paService added in v7.8.0

type TransformationsC2paService struct {
	Options []option.RequestOption
}

TransformationsC2paService 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 NewTransformationsC2paService method instead.

func NewTransformationsC2paService added in v7.8.0

func NewTransformationsC2paService(opts ...option.RequestOption) (r *TransformationsC2paService)

NewTransformationsC2paService 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 (*TransformationsC2paService) Edit added in v7.9.0

C2PA (Coalition for Content Provenance and Authenticity) signing adds cryptographic metadata to images processed through Cloudflare Image Transformations, enabling verification of image authenticity and provenance.

func (*TransformationsC2paService) Get added in v7.9.0

C2PA (Coalition for Content Provenance and Authenticity) signing adds cryptographic metadata to images processed through Cloudflare Image Transformations, enabling verification of image authenticity and provenance.

type TransformationsC2paValue added in v7.9.0

type TransformationsC2paValue string

Current value of the zone setting.

const (
	TransformationsC2paValueOn  TransformationsC2paValue = "on"
	TransformationsC2paValueOff TransformationsC2paValue = "off"
)

func (TransformationsC2paValue) IsKnown added in v7.9.0

func (r TransformationsC2paValue) IsKnown() bool

type TrueClientIPHeader

type TrueClientIPHeader struct {
	// Turn on or off the True-Client-IP Header feature of the Cloudflare Network app.
	ID TrueClientIPHeaderID `json:"id"`
	// The status of True Client IP Header.
	Value TrueClientIPHeaderValue `json:"value"`
	JSON  trueClientIPHeaderJSON  `json:"-"`
}

func (TrueClientIPHeader) ImplementsPageRuleAction

func (r TrueClientIPHeader) ImplementsPageRuleAction()

func (*TrueClientIPHeader) UnmarshalJSON

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

type TrueClientIPHeaderID

type TrueClientIPHeaderID string

Turn on or off the True-Client-IP Header feature of the Cloudflare Network app.

const (
	TrueClientIPHeaderIDTrueClientIPHeader TrueClientIPHeaderID = "true_client_ip_header"
)

func (TrueClientIPHeaderID) IsKnown

func (r TrueClientIPHeaderID) IsKnown() bool

type TrueClientIPHeaderParam

type TrueClientIPHeaderParam struct {
	// Turn on or off the True-Client-IP Header feature of the Cloudflare Network app.
	ID param.Field[TrueClientIPHeaderID] `json:"id"`
	// The status of True Client IP Header.
	Value param.Field[TrueClientIPHeaderValue] `json:"value"`
}

func (TrueClientIPHeaderParam) ImplementsPageRuleEditParamsActionUnion

func (r TrueClientIPHeaderParam) ImplementsPageRuleEditParamsActionUnion()

func (TrueClientIPHeaderParam) ImplementsPageRuleNewParamsActionUnion

func (r TrueClientIPHeaderParam) ImplementsPageRuleNewParamsActionUnion()

func (TrueClientIPHeaderParam) ImplementsPageRuleUpdateParamsActionUnion

func (r TrueClientIPHeaderParam) ImplementsPageRuleUpdateParamsActionUnion()

func (TrueClientIPHeaderParam) MarshalJSON

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

type TrueClientIPHeaderValue

type TrueClientIPHeaderValue string

The status of True Client IP Header.

const (
	TrueClientIPHeaderValueOn  TrueClientIPHeaderValue = "on"
	TrueClientIPHeaderValueOff TrueClientIPHeaderValue = "off"
)

func (TrueClientIPHeaderValue) IsKnown

func (r TrueClientIPHeaderValue) IsKnown() bool

type Type

type Type string

A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup.

const (
	TypeFull      Type = "full"
	TypePartial   Type = "partial"
	TypeSecondary Type = "secondary"
	TypeInternal  Type = "internal"
)

func (Type) IsKnown

func (r Type) IsKnown() bool

type WAF

type WAF struct {
	// Turn on or off
	// [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/).
	// You cannot enable or disable individual WAF managed rules via Page Rules.
	ID WAFID `json:"id"`
	// The status of WAF managed rules (previous version).
	Value WAFValue `json:"value"`
	JSON  wafJSON  `json:"-"`
}

func (WAF) ImplementsPageRuleAction

func (r WAF) ImplementsPageRuleAction()

func (*WAF) UnmarshalJSON

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

type WAFID

type WAFID string

Turn on or off [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/). You cannot enable or disable individual WAF managed rules via Page Rules.

const (
	WAFIDWAF WAFID = "waf"
)

func (WAFID) IsKnown

func (r WAFID) IsKnown() bool

type WAFParam

type WAFParam struct {
	// Turn on or off
	// [WAF managed rules (previous version, deprecated)](https://developers.cloudflare.com/waf/reference/legacy/old-waf-managed-rules/).
	// You cannot enable or disable individual WAF managed rules via Page Rules.
	ID param.Field[WAFID] `json:"id"`
	// The status of WAF managed rules (previous version).
	Value param.Field[WAFValue] `json:"value"`
}

func (WAFParam) ImplementsPageRuleEditParamsActionUnion

func (r WAFParam) ImplementsPageRuleEditParamsActionUnion()

func (WAFParam) ImplementsPageRuleNewParamsActionUnion

func (r WAFParam) ImplementsPageRuleNewParamsActionUnion()

func (WAFParam) ImplementsPageRuleUpdateParamsActionUnion

func (r WAFParam) ImplementsPageRuleUpdateParamsActionUnion()

func (WAFParam) MarshalJSON

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

type WAFValue

type WAFValue string

The status of WAF managed rules (previous version).

const (
	WAFValueOn  WAFValue = "on"
	WAFValueOff WAFValue = "off"
)

func (WAFValue) IsKnown

func (r WAFValue) IsKnown() bool

type WebP

type WebP struct {
	// ID of the zone setting.
	ID WebPID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value WebPValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable WebPEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       WebPJSON  `json:"-"`
}

When the client requesting the image supports the WebP image codec, and WebP offers a performance advantage over the original image format, Cloudflare will serve a WebP version of the original image.

func (*WebP) UnmarshalJSON

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

type WebPEditable

type WebPEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	WebPEditableTrue  WebPEditable = true
	WebPEditableFalse WebPEditable = false
)

func (WebPEditable) IsKnown

func (r WebPEditable) IsKnown() bool

type WebPID

type WebPID string

ID of the zone setting.

const (
	WebPIDWebP WebPID = "webp"
)

func (WebPID) IsKnown

func (r WebPID) IsKnown() bool

type WebPJSON

type WebPJSON struct {
	ID         apijson.Field
	Value      apijson.Field
	Editable   apijson.Field
	ModifiedOn apijson.Field

	ExtraFields map[string]apijson.Field
	// contains filtered or unexported fields
}

WebPJSON contains the JSON metadata for the struct WebP

func (WebPJSON) RawJSON

func (r WebPJSON) RawJSON() string

type WebPValueArray

type WebPValueArray []string

func (WebPValueArray) ImplementsWebPValueUnion

func (r WebPValueArray) ImplementsWebPValueUnion()

type WebPValueUnion

type WebPValueUnion interface {
	ImplementsWebPValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or WebPValueArray.

type Websocket

type Websocket struct {
	// ID of the zone setting.
	ID WebsocketID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value WebsocketValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable WebsocketEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time     `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       websocketJSON `json:"-"`
}

WebSockets are open connections sustained between the client and the origin server. Inside a WebSockets connection, the client and the origin can pass data back and forth without having to reestablish sessions. This makes exchanging data within a WebSockets connection fast. WebSockets are often used for real-time applications such as live chat and gaming. For more information refer to [Can I use Cloudflare with Websockets](https://support.cloudflare.com/hc/en-us/articles/200169466-Can-I-use-Cloudflare-with-WebSockets-).

func (*Websocket) UnmarshalJSON

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

type WebsocketEditable

type WebsocketEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	WebsocketEditableTrue  WebsocketEditable = true
	WebsocketEditableFalse WebsocketEditable = false
)

func (WebsocketEditable) IsKnown

func (r WebsocketEditable) IsKnown() bool

type WebsocketID

type WebsocketID string

ID of the zone setting.

const (
	WebsocketIDWebsockets WebsocketID = "websockets"
)

func (WebsocketID) IsKnown

func (r WebsocketID) IsKnown() bool

type WebsocketValueArray

type WebsocketValueArray []string

func (WebsocketValueArray) ImplementsWebsocketValueUnion

func (r WebsocketValueArray) ImplementsWebsocketValueUnion()

type WebsocketValueUnion

type WebsocketValueUnion interface {
	ImplementsWebsocketValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or WebsocketValueArray.

type ZeroRTT

type ZeroRTT struct {
	// ID of the zone setting.
	ID ZeroRTTID `json:"id" api:"required"`
	// Current value of the zone setting.
	Value ZeroRTTValueUnion `json:"value" api:"required"`
	// Whether or not this setting can be modified for this zone (based on your
	// Cloudflare plan level).
	Editable ZeroRTTEditable `json:"editable"`
	// last time this setting was modified.
	ModifiedOn time.Time   `json:"modified_on" api:"nullable" format:"date-time"`
	JSON       zeroRTTJSON `json:"-"`
}

0-RTT session resumption enabled for this zone. Changing this setting does not enable or disable TLS 1.3. Writing the `tls_1_3` setting also changes 0-RTT: `zrt` enables it, and `on` or `off` disables it.

func (*ZeroRTT) UnmarshalJSON

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

type ZeroRTTEditable

type ZeroRTTEditable bool

Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).

const (
	ZeroRTTEditableTrue  ZeroRTTEditable = true
	ZeroRTTEditableFalse ZeroRTTEditable = false
)

func (ZeroRTTEditable) IsKnown

func (r ZeroRTTEditable) IsKnown() bool

type ZeroRTTID

type ZeroRTTID string

ID of the zone setting.

const (
	ZeroRTTID0rtt ZeroRTTID = "0rtt"
)

func (ZeroRTTID) IsKnown

func (r ZeroRTTID) IsKnown() bool

type ZeroRTTValueArray

type ZeroRTTValueArray []string

func (ZeroRTTValueArray) ImplementsZeroRTTValueUnion

func (r ZeroRTTValueArray) ImplementsZeroRTTValueUnion()

type ZeroRTTValueUnion

type ZeroRTTValueUnion interface {
	ImplementsZeroRTTValueUnion()
}

Current value of the zone setting.

Union satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool or ZeroRTTValueArray.

type Zone

type Zone struct {
	// Identifier
	ID string `json:"id" api:"required"`
	// The account the zone belongs to.
	Account ZoneAccount `json:"account" api:"required"`
	// The last time proof of ownership was detected and the zone was made active.
	ActivatedOn time.Time `json:"activated_on" api:"required,nullable" format:"date-time"`
	// When the zone was created.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The interval (in seconds) from when development mode expires (positive integer)
	// or last expired (negative integer) for the domain. If development mode has never
	// been enabled, this value is 0.
	DevelopmentMode float64 `json:"development_mode" api:"required"`
	// Metadata about the zone.
	Meta ZoneMeta `json:"meta" api:"required"`
	// When the zone was last modified.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// The domain name. Per
	// [RFC 1035](https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.4) the
	// overall zone name can be up to 253 characters, with each segment ("label") not
	// exceeding 63 characters.
	Name string `json:"name" api:"required"`
	// The name servers Cloudflare assigns to a zone.
	NameServers []string `json:"name_servers" api:"required" format:"hostname"`
	// DNS host at the time of switching to Cloudflare.
	OriginalDnshost string `json:"original_dnshost" api:"required,nullable"`
	// Original name servers before moving to Cloudflare.
	OriginalNameServers []string `json:"original_name_servers" api:"required,nullable" format:"hostname"`
	// Registrar for the domain at the time of switching to Cloudflare.
	OriginalRegistrar string `json:"original_registrar" api:"required,nullable"`
	// The owner of the zone.
	Owner ZoneOwner `json:"owner" api:"required"`
	// A Zones subscription information.
	//
	// Deprecated: Please use the `/zones/{zone_id}/subscription` API to update a
	// zone's plan. Changing this value will create/cancel associated subscriptions. To
	// view available plans for this zone, see
	// [Zone Plans](https://developers.cloudflare.com/api/resources/zones/subresources/plans/).
	Plan ZonePlan `json:"plan" api:"required"`
	// Allows the customer to use a custom apex. _Tenants Only Configuration_.
	CNAMESuffix string `json:"cname_suffix"`
	// Indicates whether the zone is only using Cloudflare DNS services. A true value
	// means the zone will not receive security or performance benefits.
	Paused bool `json:"paused"`
	// Legacy permissions based on legacy user membership information.
	//
	// Deprecated: This has been replaced by Account memberships.
	Permissions []string `json:"permissions"`
	// The zone status on Cloudflare.
	Status ZoneStatus `json:"status"`
	// The root organizational unit that this zone belongs to (such as a tenant or
	// organization).
	Tenant ZoneTenant `json:"tenant"`
	// The immediate parent organizational unit that this zone belongs to (such as
	// under a tenant or sub-organization).
	TenantUnit ZoneTenantUnit `json:"tenant_unit"`
	// A full zone implies that DNS is hosted with Cloudflare. A partial zone is
	// typically a partner-hosted zone or a CNAME setup.
	Type Type `json:"type"`
	// An array of domains used for custom name servers. This is only available for
	// Business and Enterprise plans.
	VanityNameServers []string `json:"vanity_name_servers" format:"hostname"`
	// Verification key for partial zone setup.
	VerificationKey string   `json:"verification_key"`
	JSON            zoneJSON `json:"-"`
}

func (*Zone) UnmarshalJSON

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

type ZoneAccount

type ZoneAccount struct {
	// Identifier
	ID string `json:"id"`
	// The name of the account.
	Name string          `json:"name"`
	JSON zoneAccountJSON `json:"-"`
}

The account the zone belongs to.

func (*ZoneAccount) UnmarshalJSON

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

type ZoneDeleteParams

type ZoneDeleteParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type ZoneDeleteResponse

type ZoneDeleteResponse struct {
	// Identifier
	ID   string                 `json:"id" api:"required"`
	JSON zoneDeleteResponseJSON `json:"-"`
}

func (*ZoneDeleteResponse) UnmarshalJSON

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

type ZoneDeleteResponseEnvelope

type ZoneDeleteResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success bool                           `json:"success" api:"required"`
	Result  ZoneDeleteResponse             `json:"result" api:"nullable"`
	JSON    zoneDeleteResponseEnvelopeJSON `json:"-"`
}

func (*ZoneDeleteResponseEnvelope) UnmarshalJSON

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

type ZoneEditParams

type ZoneEditParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// Indicates whether the zone is only using Cloudflare DNS services. A true value
	// means the zone will not receive security or performance benefits.
	Paused param.Field[bool] `json:"paused"`
	// A full zone implies that DNS is hosted with Cloudflare. A partial zone is
	// typically a partner-hosted zone or a CNAME setup. This parameter is only
	// available to Enterprise customers or if it has been explicitly enabled on a
	// zone.
	Type param.Field[ZoneEditParamsType] `json:"type"`
	// An array of domains used for custom name servers. This is only available for
	// Business and Enterprise plans.
	VanityNameServers param.Field[[]string] `json:"vanity_name_servers" format:"hostname"`
}

func (ZoneEditParams) MarshalJSON

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

type ZoneEditParamsType

type ZoneEditParamsType string

A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. This parameter is only available to Enterprise customers or if it has been explicitly enabled on a zone.

const (
	ZoneEditParamsTypeFull      ZoneEditParamsType = "full"
	ZoneEditParamsTypePartial   ZoneEditParamsType = "partial"
	ZoneEditParamsTypeSecondary ZoneEditParamsType = "secondary"
	ZoneEditParamsTypeInternal  ZoneEditParamsType = "internal"
)

func (ZoneEditParamsType) IsKnown

func (r ZoneEditParamsType) IsKnown() bool

type ZoneEditResponseEnvelope

type ZoneEditResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success bool                         `json:"success" api:"required"`
	Result  Zone                         `json:"result"`
	JSON    zoneEditResponseEnvelopeJSON `json:"-"`
}

func (*ZoneEditResponseEnvelope) UnmarshalJSON

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

type ZoneGetParams

type ZoneGetParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
}

type ZoneGetResponseEnvelope

type ZoneGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success bool                        `json:"success" api:"required"`
	Result  Zone                        `json:"result"`
	JSON    zoneGetResponseEnvelopeJSON `json:"-"`
}

func (*ZoneGetResponseEnvelope) UnmarshalJSON

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

type ZoneHold

type ZoneHold struct {
	Hold              bool         `json:"hold"`
	HoldAfter         string       `json:"hold_after"`
	IncludeSubdomains bool         `json:"include_subdomains"`
	JSON              zoneHoldJSON `json:"-"`
}

func (*ZoneHold) UnmarshalJSON

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

type ZoneListParams

type ZoneListParams struct {
	Account param.Field[ZoneListParamsAccount] `query:"account"`
	// Direction to order zones.
	Direction param.Field[ZoneListParamsDirection] `query:"direction"`
	// Whether to match all search requirements or at least one (any).
	Match param.Field[ZoneListParamsMatch] `query:"match"`
	// A domain name. Optional filter operators can be provided to extend refine the
	// search:
	//
	// - `equal` (default)
	// - `not_equal`
	// - `starts_with`
	// - `ends_with`
	// - `contains`
	// - `starts_with_case_sensitive`
	// - `ends_with_case_sensitive`
	// - `contains_case_sensitive`
	Name param.Field[string] `query:"name"`
	// Field to order zones by.
	Order param.Field[ZoneListParamsOrder] `query:"order"`
	// Page number of paginated results.
	Page param.Field[float64] `query:"page"`
	// Number of zones per page.
	PerPage param.Field[float64] `query:"per_page"`
	// Specify a zone status to filter by.
	Status param.Field[ZoneListParamsStatus] `query:"status"`
	// Zone types to filter by. Multiple types can be specified as a comma-separated
	// list (e.g., ?type=full,partial,secondary). When this parameter is not provided,
	// zones with type "internal" are excluded from the results.
	Type param.Field[[]ZoneListParamsType] `query:"type"`
}

func (ZoneListParams) URLQuery

func (r ZoneListParams) URLQuery() (v url.Values)

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

type ZoneListParamsAccount

type ZoneListParamsAccount struct {
	// Filter by an account ID.
	ID param.Field[string] `query:"id"`
	// An account Name. Optional filter operators can be provided to extend refine the
	// search:
	//
	// - `equal` (default)
	// - `not_equal`
	// - `starts_with`
	// - `ends_with`
	// - `contains`
	// - `starts_with_case_sensitive`
	// - `ends_with_case_sensitive`
	// - `contains_case_sensitive`
	Name param.Field[string] `query:"name"`
}

func (ZoneListParamsAccount) URLQuery

func (r ZoneListParamsAccount) URLQuery() (v url.Values)

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

type ZoneListParamsDirection

type ZoneListParamsDirection string

Direction to order zones.

const (
	ZoneListParamsDirectionAsc  ZoneListParamsDirection = "asc"
	ZoneListParamsDirectionDesc ZoneListParamsDirection = "desc"
)

func (ZoneListParamsDirection) IsKnown

func (r ZoneListParamsDirection) IsKnown() bool

type ZoneListParamsMatch

type ZoneListParamsMatch string

Whether to match all search requirements or at least one (any).

const (
	ZoneListParamsMatchAny ZoneListParamsMatch = "any"
	ZoneListParamsMatchAll ZoneListParamsMatch = "all"
)

func (ZoneListParamsMatch) IsKnown

func (r ZoneListParamsMatch) IsKnown() bool

type ZoneListParamsOrder

type ZoneListParamsOrder string

Field to order zones by.

const (
	ZoneListParamsOrderName        ZoneListParamsOrder = "name"
	ZoneListParamsOrderStatus      ZoneListParamsOrder = "status"
	ZoneListParamsOrderAccountID   ZoneListParamsOrder = "account.id"
	ZoneListParamsOrderAccountName ZoneListParamsOrder = "account.name"
	ZoneListParamsOrderPlanID      ZoneListParamsOrder = "plan.id"
)

func (ZoneListParamsOrder) IsKnown

func (r ZoneListParamsOrder) IsKnown() bool

type ZoneListParamsStatus

type ZoneListParamsStatus string

Specify a zone status to filter by.

const (
	ZoneListParamsStatusInitializing ZoneListParamsStatus = "initializing"
	ZoneListParamsStatusPending      ZoneListParamsStatus = "pending"
	ZoneListParamsStatusActive       ZoneListParamsStatus = "active"
	ZoneListParamsStatusMoved        ZoneListParamsStatus = "moved"
)

func (ZoneListParamsStatus) IsKnown

func (r ZoneListParamsStatus) IsKnown() bool

type ZoneListParamsType

type ZoneListParamsType string
const (
	ZoneListParamsTypeFull      ZoneListParamsType = "full"
	ZoneListParamsTypePartial   ZoneListParamsType = "partial"
	ZoneListParamsTypeSecondary ZoneListParamsType = "secondary"
	ZoneListParamsTypeInternal  ZoneListParamsType = "internal"
)

func (ZoneListParamsType) IsKnown

func (r ZoneListParamsType) IsKnown() bool

type ZoneMeta

type ZoneMeta struct {
	// The zone is only configured for CDN.
	CDNOnly bool `json:"cdn_only"`
	// Number of Custom Certificates the zone can have.
	CustomCertificateQuota int64 `json:"custom_certificate_quota"`
	// The zone is only configured for DNS.
	DNSOnly bool `json:"dns_only"`
	// The zone is setup with Foundation DNS.
	FoundationDNS bool `json:"foundation_dns"`
	// Number of Page Rules a zone can have.
	PageRuleQuota int64 `json:"page_rule_quota"`
	// The zone has been flagged for phishing.
	PhishingDetected bool         `json:"phishing_detected"`
	Step             int64        `json:"step"`
	JSON             zoneMetaJSON `json:"-"`
}

Metadata about the zone.

func (*ZoneMeta) UnmarshalJSON

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

type ZoneNewParams

type ZoneNewParams struct {
	Account param.Field[ZoneNewParamsAccount] `json:"account" api:"required"`
	// The domain name. Per
	// [RFC 1035](https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.4) the
	// overall zone name can be up to 253 characters, with each segment ("label") not
	// exceeding 63 characters.
	Name param.Field[string] `json:"name" api:"required"`
	// A full zone implies that DNS is hosted with Cloudflare. A partial zone is
	// typically a partner-hosted zone or a CNAME setup.
	Type param.Field[Type] `json:"type"`
}

func (ZoneNewParams) MarshalJSON

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

type ZoneNewParamsAccount

type ZoneNewParamsAccount struct {
	// Identifier
	ID param.Field[string] `json:"id"`
}

func (ZoneNewParamsAccount) MarshalJSON

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

type ZoneNewResponseEnvelope

type ZoneNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors" api:"required"`
	Messages []shared.ResponseInfo `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success bool                        `json:"success" api:"required"`
	Result  Zone                        `json:"result"`
	JSON    zoneNewResponseEnvelopeJSON `json:"-"`
}

func (*ZoneNewResponseEnvelope) UnmarshalJSON

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

type ZoneOwner

type ZoneOwner struct {
	// Identifier
	ID string `json:"id"`
	// Name of the owner.
	Name string `json:"name"`
	// The type of owner.
	Type string        `json:"type"`
	JSON zoneOwnerJSON `json:"-"`
}

The owner of the zone.

func (*ZoneOwner) UnmarshalJSON

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

type ZonePlan deprecated

type ZonePlan struct {
	// Identifier
	ID string `json:"id"`
	// States if the subscription can be activated.
	CanSubscribe bool `json:"can_subscribe"`
	// The denomination of the customer.
	Currency string `json:"currency"`
	// If this Zone is managed by another company.
	ExternallyManaged bool `json:"externally_managed"`
	// How often the customer is billed.
	Frequency string `json:"frequency"`
	// States if the subscription active.
	IsSubscribed bool `json:"is_subscribed"`
	// If the legacy discount applies to this Zone.
	LegacyDiscount bool `json:"legacy_discount"`
	// The legacy name of the plan.
	LegacyID string `json:"legacy_id"`
	// Name of the owner.
	Name string `json:"name"`
	// How much the customer is paying.
	Price float64      `json:"price"`
	JSON  zonePlanJSON `json:"-"`
}

A Zones subscription information.

Deprecated: Please use the `/zones/{zone_id}/subscription` API to update a zone's plan. Changing this value will create/cancel associated subscriptions. To view available plans for this zone, see [Zone Plans](https://developers.cloudflare.com/api/resources/zones/subresources/plans/).

func (*ZonePlan) UnmarshalJSON

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

type ZoneService

type ZoneService struct {
	Options                       []option.RequestOption
	ActivationCheck               *ActivationCheckService
	Observability                 *ObservabilityService
	Settings                      *SettingService
	TransformationsAllowedOrigins *TransformationsAllowedOriginService
	TransformationsC2pa           *TransformationsC2paService
	NEL                           *NELService
	Environments                  *EnvironmentService
	// Deprecated: Use DNS settings API instead.
	CustomNameservers *CustomNameserverService
	Holds             *HoldService
	Subscriptions     *SubscriptionService
	Plans             *PlanService
	RatePlans         *RatePlanService
	OhttpGateway      *OhttpGatewayService
	Entitlements      *EntitlementService
	CT                *CTService
}

ZoneService 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 NewZoneService method instead.

func NewZoneService

func NewZoneService(opts ...option.RequestOption) (r *ZoneService)

NewZoneService 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 (*ZoneService) Delete

func (r *ZoneService) Delete(ctx context.Context, body ZoneDeleteParams, opts ...option.RequestOption) (res *ZoneDeleteResponse, err error)

Deletes an existing zone.

func (*ZoneService) Edit

func (r *ZoneService) Edit(ctx context.Context, params ZoneEditParams, opts ...option.RequestOption) (res *Zone, err error)

Edits a zone. Only one zone property can be changed at a time.

func (*ZoneService) Get

func (r *ZoneService) Get(ctx context.Context, query ZoneGetParams, opts ...option.RequestOption) (res *Zone, err error)

Retrieves detailed information about a specific zone identified by its zone ID.

Returns zone configuration, status, nameservers, and associated metadata.

func (*ZoneService) List

Lists, searches, sorts, and filters your zones. Listing zones across more than 500 accounts is currently not allowed.

func (*ZoneService) ListAutoPaging

Lists, searches, sorts, and filters your zones. Listing zones across more than 500 accounts is currently not allowed.

func (*ZoneService) New

func (r *ZoneService) New(ctx context.Context, body ZoneNewParams, opts ...option.RequestOption) (res *Zone, err error)

Creates a new zone (domain) in your Cloudflare account.

The zone is created in a pending state and must be activated by updating your domain's nameservers to point to Cloudflare, or by completing the verification process for partial (CNAME) setups.

type ZoneStatus

type ZoneStatus string

The zone status on Cloudflare.

const (
	ZoneStatusInitializing ZoneStatus = "initializing"
	ZoneStatusPending      ZoneStatus = "pending"
	ZoneStatusActive       ZoneStatus = "active"
	ZoneStatusMoved        ZoneStatus = "moved"
)

func (ZoneStatus) IsKnown

func (r ZoneStatus) IsKnown() bool

type ZoneTenant

type ZoneTenant struct {
	// Identifier
	ID string `json:"id"`
	// The name of the Tenant account.
	Name string         `json:"name"`
	JSON zoneTenantJSON `json:"-"`
}

The root organizational unit that this zone belongs to (such as a tenant or organization).

func (*ZoneTenant) UnmarshalJSON

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

type ZoneTenantUnit

type ZoneTenantUnit struct {
	// Identifier
	ID   string             `json:"id"`
	JSON zoneTenantUnitJSON `json:"-"`
}

The immediate parent organizational unit that this zone belongs to (such as under a tenant or sub-organization).

func (*ZoneTenantUnit) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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