workers

package
v7.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin

This is an alias to an internal value.

View Source
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare

This is an alias to an internal value.

View Source
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser

This is an alias to an internal value.

View Source
const CertificateCADigicert = shared.CertificateCADigicert

This is an alias to an internal value.

View Source
const CertificateCAGoogle = shared.CertificateCAGoogle

This is an alias to an internal value.

View Source
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt

This is an alias to an internal value.

View Source
const CertificateCASSLCom = shared.CertificateCASSLCom

This is an alias to an internal value.

View Source
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcCloudflare = shared.CloudflareTunnelConfigSrcCloudflare

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcLocal = shared.CloudflareTunnelConfigSrcLocal

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector

This is an alias to an internal value.

View Source
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow

This is an alias to an internal value.

View Source
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny

This is an alias to an internal value.

View Source
const MemberStatusAccepted = shared.MemberStatusAccepted

This is an alias to an internal value.

View Source
const MemberStatusPending = shared.MemberStatusPending

This is an alias to an internal value.

View Source
const RatePlanIDBusiness = shared.RatePlanIDBusiness

This is an alias to an internal value.

View Source
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDFree = shared.RatePlanIDFree

This is an alias to an internal value.

View Source
const RatePlanIDLite = shared.RatePlanIDLite

This is an alias to an internal value.

View Source
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness

This is an alias to an internal value.

View Source
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree

This is an alias to an internal value.

View Source
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro

This is an alias to an internal value.

View Source
const RatePlanIDPro = shared.RatePlanIDPro

This is an alias to an internal value.

View Source
const RatePlanIDProPlus = shared.RatePlanIDProPlus

This is an alias to an internal value.

View Source
const SortDirectionAsc = shared.SortDirectionAsc

This is an alias to an internal value.

View Source
const SortDirectionDesc = shared.SortDirectionDesc

This is an alias to an internal value.

View Source
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly

This is an alias to an internal value.

View Source
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment

This is an alias to an internal value.

View Source
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled

This is an alias to an internal value.

View Source
const SubscriptionStateExpired = shared.SubscriptionStateExpired

This is an alias to an internal value.

View Source
const SubscriptionStateFailed = shared.SubscriptionStateFailed

This is an alias to an internal value.

View Source
const SubscriptionStatePaid = shared.SubscriptionStatePaid

This is an alias to an internal value.

View Source
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned

This is an alias to an internal value.

View Source
const SubscriptionStateTrial = shared.SubscriptionStateTrial

This is an alias to an internal value.

View Source
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow

This is an alias to an internal value.

View Source
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny

This is an alias to an internal value.

View Source
const TokenStatusActive = shared.TokenStatusActive

This is an alias to an internal value.

View Source
const TokenStatusDisabled = shared.TokenStatusDisabled

This is an alias to an internal value.

View Source
const TokenStatusExpired = shared.TokenStatusExpired

This is an alias to an internal value.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASN

type ASN = shared.ASN

This is an alias to an internal type.

type ASNParam

type ASNParam = shared.ASNParam

This is an alias to an internal type.

type AccountSettingGetParams

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

type AccountSettingGetResponse

type AccountSettingGetResponse struct {
	DefaultUsageModel string                        `json:"default_usage_model"`
	GreenCompute      bool                          `json:"green_compute"`
	JSON              accountSettingGetResponseJSON `json:"-"`
}

func (*AccountSettingGetResponse) UnmarshalJSON

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

type AccountSettingGetResponseEnvelope

type AccountSettingGetResponseEnvelope struct {
	Errors   []AccountSettingGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AccountSettingGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   AccountSettingGetResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success AccountSettingGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    accountSettingGetResponseEnvelopeJSON    `json:"-"`
}

func (*AccountSettingGetResponseEnvelope) UnmarshalJSON

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

type AccountSettingGetResponseEnvelopeErrors

type AccountSettingGetResponseEnvelopeErrors struct {
	Code             int64                                         `json:"code" api:"required"`
	Message          string                                        `json:"message" api:"required"`
	DocumentationURL string                                        `json:"documentation_url"`
	Source           AccountSettingGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             accountSettingGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AccountSettingGetResponseEnvelopeErrors) UnmarshalJSON

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

type AccountSettingGetResponseEnvelopeErrorsSource

type AccountSettingGetResponseEnvelopeErrorsSource struct {
	Pointer string                                            `json:"pointer"`
	JSON    accountSettingGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AccountSettingGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type AccountSettingGetResponseEnvelopeMessages

type AccountSettingGetResponseEnvelopeMessages struct {
	Code             int64                                           `json:"code" api:"required"`
	Message          string                                          `json:"message" api:"required"`
	DocumentationURL string                                          `json:"documentation_url"`
	Source           AccountSettingGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             accountSettingGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AccountSettingGetResponseEnvelopeMessages) UnmarshalJSON

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

type AccountSettingGetResponseEnvelopeMessagesSource

type AccountSettingGetResponseEnvelopeMessagesSource struct {
	Pointer string                                              `json:"pointer"`
	JSON    accountSettingGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AccountSettingGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type AccountSettingGetResponseEnvelopeSuccess

type AccountSettingGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AccountSettingGetResponseEnvelopeSuccessTrue AccountSettingGetResponseEnvelopeSuccess = true
)

func (AccountSettingGetResponseEnvelopeSuccess) IsKnown

type AccountSettingService

type AccountSettingService struct {
	Options []option.RequestOption
}

AccountSettingService 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 NewAccountSettingService method instead.

func NewAccountSettingService

func NewAccountSettingService(opts ...option.RequestOption) (r *AccountSettingService)

NewAccountSettingService 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 (*AccountSettingService) Get

Fetches Worker account settings for an account.

func (*AccountSettingService) Update

Creates Worker account settings for an account.

type AccountSettingUpdateParams

type AccountSettingUpdateParams struct {
	// Identifier.
	AccountID         param.Field[string] `path:"account_id" api:"required"`
	DefaultUsageModel param.Field[string] `json:"default_usage_model"`
	GreenCompute      param.Field[bool]   `json:"green_compute"`
}

func (AccountSettingUpdateParams) MarshalJSON

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

type AccountSettingUpdateResponse

type AccountSettingUpdateResponse struct {
	DefaultUsageModel string                           `json:"default_usage_model"`
	GreenCompute      bool                             `json:"green_compute"`
	JSON              accountSettingUpdateResponseJSON `json:"-"`
}

func (*AccountSettingUpdateResponse) UnmarshalJSON

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

type AccountSettingUpdateResponseEnvelope

type AccountSettingUpdateResponseEnvelope struct {
	Errors   []AccountSettingUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AccountSettingUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   AccountSettingUpdateResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success AccountSettingUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    accountSettingUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*AccountSettingUpdateResponseEnvelope) UnmarshalJSON

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

type AccountSettingUpdateResponseEnvelopeErrors

type AccountSettingUpdateResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code" api:"required"`
	Message          string                                           `json:"message" api:"required"`
	DocumentationURL string                                           `json:"documentation_url"`
	Source           AccountSettingUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             accountSettingUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AccountSettingUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type AccountSettingUpdateResponseEnvelopeErrorsSource

type AccountSettingUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                               `json:"pointer"`
	JSON    accountSettingUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AccountSettingUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

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

type AccountSettingUpdateResponseEnvelopeMessages

type AccountSettingUpdateResponseEnvelopeMessages struct {
	Code             int64                                              `json:"code" api:"required"`
	Message          string                                             `json:"message" api:"required"`
	DocumentationURL string                                             `json:"documentation_url"`
	Source           AccountSettingUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             accountSettingUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AccountSettingUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type AccountSettingUpdateResponseEnvelopeMessagesSource

type AccountSettingUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                                 `json:"pointer"`
	JSON    accountSettingUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AccountSettingUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

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

type AccountSettingUpdateResponseEnvelopeSuccess

type AccountSettingUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AccountSettingUpdateResponseEnvelopeSuccessTrue AccountSettingUpdateResponseEnvelopeSuccess = true
)

func (AccountSettingUpdateResponseEnvelopeSuccess) IsKnown

type AssetService

type AssetService struct {
	Options []option.RequestOption
	Upload  *AssetUploadService
}

AssetService 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 NewAssetService method instead.

func NewAssetService

func NewAssetService(opts ...option.RequestOption) (r *AssetService)

NewAssetService 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 AssetUploadNewParams

type AssetUploadNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Whether the file contents are base64-encoded. Must be `true`.
	Base64 param.Field[AssetUploadNewParamsBase64] `query:"base64" api:"required"`
	Body   map[string]string                       `json:"body" api:"required"`
}

func (AssetUploadNewParams) MarshalMultipart

func (r AssetUploadNewParams) MarshalMultipart() (data []byte, contentType string, err error)

func (AssetUploadNewParams) URLQuery

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

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

type AssetUploadNewParamsBase64

type AssetUploadNewParamsBase64 bool

Whether the file contents are base64-encoded. Must be `true`.

const (
	AssetUploadNewParamsBase64True AssetUploadNewParamsBase64 = true
)

func (AssetUploadNewParamsBase64) IsKnown

func (r AssetUploadNewParamsBase64) IsKnown() bool

type AssetUploadNewResponse

type AssetUploadNewResponse struct {
	// A "completion" JWT which can be redeemed when creating a Worker version.
	JWT  string                     `json:"jwt"`
	JSON assetUploadNewResponseJSON `json:"-"`
}

func (*AssetUploadNewResponse) UnmarshalJSON

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

type AssetUploadNewResponseEnvelope

type AssetUploadNewResponseEnvelope struct {
	Errors   []AssetUploadNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AssetUploadNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success AssetUploadNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AssetUploadNewResponse                `json:"result"`
	JSON    assetUploadNewResponseEnvelopeJSON    `json:"-"`
}

func (*AssetUploadNewResponseEnvelope) UnmarshalJSON

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

type AssetUploadNewResponseEnvelopeErrors

type AssetUploadNewResponseEnvelopeErrors struct {
	Code             int64                                      `json:"code" api:"required"`
	Message          string                                     `json:"message" api:"required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           AssetUploadNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             assetUploadNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*AssetUploadNewResponseEnvelopeErrors) UnmarshalJSON

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

type AssetUploadNewResponseEnvelopeErrorsSource

type AssetUploadNewResponseEnvelopeErrorsSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    assetUploadNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*AssetUploadNewResponseEnvelopeErrorsSource) UnmarshalJSON

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

type AssetUploadNewResponseEnvelopeMessages

type AssetUploadNewResponseEnvelopeMessages struct {
	Code             int64                                        `json:"code" api:"required"`
	Message          string                                       `json:"message" api:"required"`
	DocumentationURL string                                       `json:"documentation_url"`
	Source           AssetUploadNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             assetUploadNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*AssetUploadNewResponseEnvelopeMessages) UnmarshalJSON

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

type AssetUploadNewResponseEnvelopeMessagesSource

type AssetUploadNewResponseEnvelopeMessagesSource struct {
	Pointer string                                           `json:"pointer"`
	JSON    assetUploadNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*AssetUploadNewResponseEnvelopeMessagesSource) UnmarshalJSON

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

type AssetUploadNewResponseEnvelopeSuccess

type AssetUploadNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	AssetUploadNewResponseEnvelopeSuccessTrue AssetUploadNewResponseEnvelopeSuccess = true
)

func (AssetUploadNewResponseEnvelopeSuccess) IsKnown

type AssetUploadService

type AssetUploadService struct {
	Options []option.RequestOption
}

AssetUploadService 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 NewAssetUploadService method instead.

func NewAssetUploadService

func NewAssetUploadService(opts ...option.RequestOption) (r *AssetUploadService)

NewAssetUploadService 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 (*AssetUploadService) New

Upload assets ahead of creating a Worker version. To learn more about the direct uploads of assets, see https://developers.cloudflare.com/workers/static-assets/direct-upload/.

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 BetaService

type BetaService struct {
	Options []option.RequestOption
	Workers *BetaWorkerService
}

BetaService 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 NewBetaService method instead.

func NewBetaService

func NewBetaService(opts ...option.RequestOption) (r *BetaService)

NewBetaService 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 BetaWorkerDeleteParams

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

type BetaWorkerDeleteResponse

type BetaWorkerDeleteResponse struct {
	Errors   []BetaWorkerDeleteResponseError   `json:"errors" api:"required"`
	Messages []BetaWorkerDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success BetaWorkerDeleteResponseSuccess `json:"success" api:"required"`
	JSON    betaWorkerDeleteResponseJSON    `json:"-"`
}

func (*BetaWorkerDeleteResponse) UnmarshalJSON

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

type BetaWorkerDeleteResponseError

type BetaWorkerDeleteResponseError struct {
	Code             int64                                `json:"code" api:"required"`
	Message          string                               `json:"message" api:"required"`
	DocumentationURL string                               `json:"documentation_url"`
	Source           BetaWorkerDeleteResponseErrorsSource `json:"source"`
	JSON             betaWorkerDeleteResponseErrorJSON    `json:"-"`
}

func (*BetaWorkerDeleteResponseError) UnmarshalJSON

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

type BetaWorkerDeleteResponseErrorsSource

type BetaWorkerDeleteResponseErrorsSource struct {
	Pointer string                                   `json:"pointer"`
	JSON    betaWorkerDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*BetaWorkerDeleteResponseErrorsSource) UnmarshalJSON

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

type BetaWorkerDeleteResponseMessage

type BetaWorkerDeleteResponseMessage struct {
	Code             int64                                  `json:"code" api:"required"`
	Message          string                                 `json:"message" api:"required"`
	DocumentationURL string                                 `json:"documentation_url"`
	Source           BetaWorkerDeleteResponseMessagesSource `json:"source"`
	JSON             betaWorkerDeleteResponseMessageJSON    `json:"-"`
}

func (*BetaWorkerDeleteResponseMessage) UnmarshalJSON

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

type BetaWorkerDeleteResponseMessagesSource

type BetaWorkerDeleteResponseMessagesSource struct {
	Pointer string                                     `json:"pointer"`
	JSON    betaWorkerDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*BetaWorkerDeleteResponseMessagesSource) UnmarshalJSON

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

type BetaWorkerDeleteResponseSuccess

type BetaWorkerDeleteResponseSuccess bool

Whether the API call was successful.

const (
	BetaWorkerDeleteResponseSuccessTrue BetaWorkerDeleteResponseSuccess = true
)

func (BetaWorkerDeleteResponseSuccess) IsKnown

type BetaWorkerEditParams

type BetaWorkerEditParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	Worker    WorkerParam         `json:"worker" api:"required"`
}

func (BetaWorkerEditParams) MarshalJSON

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

type BetaWorkerEditResponseEnvelope

type BetaWorkerEditResponseEnvelope struct {
	Errors   []BetaWorkerEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []BetaWorkerEditResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   Worker                                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success BetaWorkerEditResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    betaWorkerEditResponseEnvelopeJSON    `json:"-"`
}

func (*BetaWorkerEditResponseEnvelope) UnmarshalJSON

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

type BetaWorkerEditResponseEnvelopeErrors

type BetaWorkerEditResponseEnvelopeErrors struct {
	Code             int64                                      `json:"code" api:"required"`
	Message          string                                     `json:"message" api:"required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           BetaWorkerEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             betaWorkerEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*BetaWorkerEditResponseEnvelopeErrors) UnmarshalJSON

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

type BetaWorkerEditResponseEnvelopeErrorsSource

type BetaWorkerEditResponseEnvelopeErrorsSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    betaWorkerEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*BetaWorkerEditResponseEnvelopeErrorsSource) UnmarshalJSON

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

type BetaWorkerEditResponseEnvelopeMessages

type BetaWorkerEditResponseEnvelopeMessages struct {
	Code             int64                                        `json:"code" api:"required"`
	Message          string                                       `json:"message" api:"required"`
	DocumentationURL string                                       `json:"documentation_url"`
	Source           BetaWorkerEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             betaWorkerEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*BetaWorkerEditResponseEnvelopeMessages) UnmarshalJSON

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

type BetaWorkerEditResponseEnvelopeMessagesSource

type BetaWorkerEditResponseEnvelopeMessagesSource struct {
	Pointer string                                           `json:"pointer"`
	JSON    betaWorkerEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*BetaWorkerEditResponseEnvelopeMessagesSource) UnmarshalJSON

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

type BetaWorkerEditResponseEnvelopeSuccess

type BetaWorkerEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	BetaWorkerEditResponseEnvelopeSuccessTrue BetaWorkerEditResponseEnvelopeSuccess = true
)

func (BetaWorkerEditResponseEnvelopeSuccess) IsKnown

type BetaWorkerGetParams

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

type BetaWorkerGetResponseEnvelope

type BetaWorkerGetResponseEnvelope struct {
	Errors   []BetaWorkerGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []BetaWorkerGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   Worker                                  `json:"result" api:"required"`
	// Whether the API call was successful.
	Success BetaWorkerGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    betaWorkerGetResponseEnvelopeJSON    `json:"-"`
}

func (*BetaWorkerGetResponseEnvelope) UnmarshalJSON

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

type BetaWorkerGetResponseEnvelopeErrors

type BetaWorkerGetResponseEnvelopeErrors struct {
	Code             int64                                     `json:"code" api:"required"`
	Message          string                                    `json:"message" api:"required"`
	DocumentationURL string                                    `json:"documentation_url"`
	Source           BetaWorkerGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             betaWorkerGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*BetaWorkerGetResponseEnvelopeErrors) UnmarshalJSON

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

type BetaWorkerGetResponseEnvelopeErrorsSource

type BetaWorkerGetResponseEnvelopeErrorsSource struct {
	Pointer string                                        `json:"pointer"`
	JSON    betaWorkerGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*BetaWorkerGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type BetaWorkerGetResponseEnvelopeMessages

type BetaWorkerGetResponseEnvelopeMessages struct {
	Code             int64                                       `json:"code" api:"required"`
	Message          string                                      `json:"message" api:"required"`
	DocumentationURL string                                      `json:"documentation_url"`
	Source           BetaWorkerGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             betaWorkerGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*BetaWorkerGetResponseEnvelopeMessages) UnmarshalJSON

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

type BetaWorkerGetResponseEnvelopeMessagesSource

type BetaWorkerGetResponseEnvelopeMessagesSource struct {
	Pointer string                                          `json:"pointer"`
	JSON    betaWorkerGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*BetaWorkerGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type BetaWorkerGetResponseEnvelopeSuccess

type BetaWorkerGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	BetaWorkerGetResponseEnvelopeSuccessTrue BetaWorkerGetResponseEnvelopeSuccess = true
)

func (BetaWorkerGetResponseEnvelopeSuccess) IsKnown

type BetaWorkerListParams

type BetaWorkerListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Sort direction.
	Order param.Field[BetaWorkerListParamsOrder] `query:"order"`
	// Property to sort results by.
	OrderBy param.Field[BetaWorkerListParamsOrderBy] `query:"order_by"`
	// Current page.
	Page param.Field[int64] `query:"page"`
	// Items per-page.
	PerPage param.Field[int64] `query:"per_page"`
}

func (BetaWorkerListParams) URLQuery

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

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

type BetaWorkerListParamsOrder

type BetaWorkerListParamsOrder string

Sort direction.

const (
	BetaWorkerListParamsOrderAsc  BetaWorkerListParamsOrder = "asc"
	BetaWorkerListParamsOrderDesc BetaWorkerListParamsOrder = "desc"
)

func (BetaWorkerListParamsOrder) IsKnown

func (r BetaWorkerListParamsOrder) IsKnown() bool

type BetaWorkerListParamsOrderBy

type BetaWorkerListParamsOrderBy string

Property to sort results by.

const (
	BetaWorkerListParamsOrderByDeployedOn BetaWorkerListParamsOrderBy = "deployed_on"
	BetaWorkerListParamsOrderByUpdatedOn  BetaWorkerListParamsOrderBy = "updated_on"
	BetaWorkerListParamsOrderByCreatedOn  BetaWorkerListParamsOrderBy = "created_on"
	BetaWorkerListParamsOrderByName       BetaWorkerListParamsOrderBy = "name"
)

func (BetaWorkerListParamsOrderBy) IsKnown

func (r BetaWorkerListParamsOrderBy) IsKnown() bool

type BetaWorkerNewParams

type BetaWorkerNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	Worker    WorkerParam         `json:"worker" api:"required"`
}

func (BetaWorkerNewParams) MarshalJSON

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

type BetaWorkerNewResponseEnvelope

type BetaWorkerNewResponseEnvelope struct {
	Errors   []BetaWorkerNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []BetaWorkerNewResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   Worker                                  `json:"result" api:"required"`
	// Whether the API call was successful.
	Success BetaWorkerNewResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    betaWorkerNewResponseEnvelopeJSON    `json:"-"`
}

func (*BetaWorkerNewResponseEnvelope) UnmarshalJSON

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

type BetaWorkerNewResponseEnvelopeErrors

type BetaWorkerNewResponseEnvelopeErrors struct {
	Code             int64                                     `json:"code" api:"required"`
	Message          string                                    `json:"message" api:"required"`
	DocumentationURL string                                    `json:"documentation_url"`
	Source           BetaWorkerNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             betaWorkerNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*BetaWorkerNewResponseEnvelopeErrors) UnmarshalJSON

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

type BetaWorkerNewResponseEnvelopeErrorsSource

type BetaWorkerNewResponseEnvelopeErrorsSource struct {
	Pointer string                                        `json:"pointer"`
	JSON    betaWorkerNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*BetaWorkerNewResponseEnvelopeErrorsSource) UnmarshalJSON

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

type BetaWorkerNewResponseEnvelopeMessages

type BetaWorkerNewResponseEnvelopeMessages struct {
	Code             int64                                       `json:"code" api:"required"`
	Message          string                                      `json:"message" api:"required"`
	DocumentationURL string                                      `json:"documentation_url"`
	Source           BetaWorkerNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             betaWorkerNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*BetaWorkerNewResponseEnvelopeMessages) UnmarshalJSON

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

type BetaWorkerNewResponseEnvelopeMessagesSource

type BetaWorkerNewResponseEnvelopeMessagesSource struct {
	Pointer string                                          `json:"pointer"`
	JSON    betaWorkerNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*BetaWorkerNewResponseEnvelopeMessagesSource) UnmarshalJSON

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

type BetaWorkerNewResponseEnvelopeSuccess

type BetaWorkerNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	BetaWorkerNewResponseEnvelopeSuccessTrue BetaWorkerNewResponseEnvelopeSuccess = true
)

func (BetaWorkerNewResponseEnvelopeSuccess) IsKnown

type BetaWorkerService

type BetaWorkerService struct {
	Options  []option.RequestOption
	Versions *BetaWorkerVersionService
}

BetaWorkerService 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 NewBetaWorkerService method instead.

func NewBetaWorkerService

func NewBetaWorkerService(opts ...option.RequestOption) (r *BetaWorkerService)

NewBetaWorkerService 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 (*BetaWorkerService) Delete

Delete a Worker and all its associated resources (versions, deployments, etc.).

func (*BetaWorkerService) Edit

func (r *BetaWorkerService) Edit(ctx context.Context, workerID string, params BetaWorkerEditParams, opts ...option.RequestOption) (res *Worker, err error)

Perform a partial update on a Worker, where omitted properties are left unchanged from their current values.

func (*BetaWorkerService) Get

func (r *BetaWorkerService) Get(ctx context.Context, workerID string, query BetaWorkerGetParams, opts ...option.RequestOption) (res *Worker, err error)

Get details about a specific Worker.

func (*BetaWorkerService) List

List all Workers for an account.

func (*BetaWorkerService) ListAutoPaging

List all Workers for an account.

func (*BetaWorkerService) New

func (r *BetaWorkerService) New(ctx context.Context, params BetaWorkerNewParams, opts ...option.RequestOption) (res *Worker, err error)

Create a new Worker.

func (*BetaWorkerService) Update

func (r *BetaWorkerService) Update(ctx context.Context, workerID string, params BetaWorkerUpdateParams, opts ...option.RequestOption) (res *Worker, err error)

Perform a complete replacement of a Worker, where omitted properties are set to their default values. This is the exact same as the Create Worker endpoint, but operates on an existing Worker. To perform a partial update instead, use the Edit Worker endpoint.

type BetaWorkerUpdateParams

type BetaWorkerUpdateParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	Worker    WorkerParam         `json:"worker" api:"required"`
}

func (BetaWorkerUpdateParams) MarshalJSON

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

type BetaWorkerUpdateResponseEnvelope

type BetaWorkerUpdateResponseEnvelope struct {
	Errors   []BetaWorkerUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []BetaWorkerUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   Worker                                     `json:"result" api:"required"`
	// Whether the API call was successful.
	Success BetaWorkerUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    betaWorkerUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*BetaWorkerUpdateResponseEnvelope) UnmarshalJSON

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

type BetaWorkerUpdateResponseEnvelopeErrors

type BetaWorkerUpdateResponseEnvelopeErrors struct {
	Code             int64                                        `json:"code" api:"required"`
	Message          string                                       `json:"message" api:"required"`
	DocumentationURL string                                       `json:"documentation_url"`
	Source           BetaWorkerUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             betaWorkerUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*BetaWorkerUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type BetaWorkerUpdateResponseEnvelopeErrorsSource

type BetaWorkerUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                           `json:"pointer"`
	JSON    betaWorkerUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*BetaWorkerUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

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

type BetaWorkerUpdateResponseEnvelopeMessages

type BetaWorkerUpdateResponseEnvelopeMessages struct {
	Code             int64                                          `json:"code" api:"required"`
	Message          string                                         `json:"message" api:"required"`
	DocumentationURL string                                         `json:"documentation_url"`
	Source           BetaWorkerUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             betaWorkerUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*BetaWorkerUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type BetaWorkerUpdateResponseEnvelopeMessagesSource

type BetaWorkerUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                             `json:"pointer"`
	JSON    betaWorkerUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*BetaWorkerUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

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

type BetaWorkerUpdateResponseEnvelopeSuccess

type BetaWorkerUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	BetaWorkerUpdateResponseEnvelopeSuccessTrue BetaWorkerUpdateResponseEnvelopeSuccess = true
)

func (BetaWorkerUpdateResponseEnvelopeSuccess) IsKnown

type BetaWorkerVersionDeleteParams

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

type BetaWorkerVersionDeleteResponse

type BetaWorkerVersionDeleteResponse struct {
	Errors   []BetaWorkerVersionDeleteResponseError   `json:"errors" api:"required"`
	Messages []BetaWorkerVersionDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success BetaWorkerVersionDeleteResponseSuccess `json:"success" api:"required"`
	JSON    betaWorkerVersionDeleteResponseJSON    `json:"-"`
}

func (*BetaWorkerVersionDeleteResponse) UnmarshalJSON

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

type BetaWorkerVersionDeleteResponseError

type BetaWorkerVersionDeleteResponseError struct {
	Code             int64                                       `json:"code" api:"required"`
	Message          string                                      `json:"message" api:"required"`
	DocumentationURL string                                      `json:"documentation_url"`
	Source           BetaWorkerVersionDeleteResponseErrorsSource `json:"source"`
	JSON             betaWorkerVersionDeleteResponseErrorJSON    `json:"-"`
}

func (*BetaWorkerVersionDeleteResponseError) UnmarshalJSON

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

type BetaWorkerVersionDeleteResponseErrorsSource

type BetaWorkerVersionDeleteResponseErrorsSource struct {
	Pointer string                                          `json:"pointer"`
	JSON    betaWorkerVersionDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*BetaWorkerVersionDeleteResponseErrorsSource) UnmarshalJSON

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

type BetaWorkerVersionDeleteResponseMessage

type BetaWorkerVersionDeleteResponseMessage struct {
	Code             int64                                         `json:"code" api:"required"`
	Message          string                                        `json:"message" api:"required"`
	DocumentationURL string                                        `json:"documentation_url"`
	Source           BetaWorkerVersionDeleteResponseMessagesSource `json:"source"`
	JSON             betaWorkerVersionDeleteResponseMessageJSON    `json:"-"`
}

func (*BetaWorkerVersionDeleteResponseMessage) UnmarshalJSON

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

type BetaWorkerVersionDeleteResponseMessagesSource

type BetaWorkerVersionDeleteResponseMessagesSource struct {
	Pointer string                                            `json:"pointer"`
	JSON    betaWorkerVersionDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*BetaWorkerVersionDeleteResponseMessagesSource) UnmarshalJSON

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

type BetaWorkerVersionDeleteResponseSuccess

type BetaWorkerVersionDeleteResponseSuccess bool

Whether the API call was successful.

const (
	BetaWorkerVersionDeleteResponseSuccessTrue BetaWorkerVersionDeleteResponseSuccess = true
)

func (BetaWorkerVersionDeleteResponseSuccess) IsKnown

type BetaWorkerVersionGetParams

type BetaWorkerVersionGetParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Whether to include the `modules` property of the version in the response, which
	// contains code and sourcemap content and may add several megabytes to the
	// response size.
	Include param.Field[BetaWorkerVersionGetParamsInclude] `query:"include"`
}

func (BetaWorkerVersionGetParams) URLQuery

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

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

type BetaWorkerVersionGetParamsInclude

type BetaWorkerVersionGetParamsInclude string

Whether to include the `modules` property of the version in the response, which contains code and sourcemap content and may add several megabytes to the response size.

const (
	BetaWorkerVersionGetParamsIncludeModules BetaWorkerVersionGetParamsInclude = "modules"
)

func (BetaWorkerVersionGetParamsInclude) IsKnown

type BetaWorkerVersionGetResponseEnvelope

type BetaWorkerVersionGetResponseEnvelope struct {
	Errors   []BetaWorkerVersionGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []BetaWorkerVersionGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   Version                                        `json:"result" api:"required"`
	// Whether the API call was successful.
	Success BetaWorkerVersionGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    betaWorkerVersionGetResponseEnvelopeJSON    `json:"-"`
}

func (*BetaWorkerVersionGetResponseEnvelope) UnmarshalJSON

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

type BetaWorkerVersionGetResponseEnvelopeErrors

type BetaWorkerVersionGetResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code" api:"required"`
	Message          string                                           `json:"message" api:"required"`
	DocumentationURL string                                           `json:"documentation_url"`
	Source           BetaWorkerVersionGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             betaWorkerVersionGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*BetaWorkerVersionGetResponseEnvelopeErrors) UnmarshalJSON

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

type BetaWorkerVersionGetResponseEnvelopeErrorsSource

type BetaWorkerVersionGetResponseEnvelopeErrorsSource struct {
	Pointer string                                               `json:"pointer"`
	JSON    betaWorkerVersionGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*BetaWorkerVersionGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type BetaWorkerVersionGetResponseEnvelopeMessages

type BetaWorkerVersionGetResponseEnvelopeMessages struct {
	Code             int64                                              `json:"code" api:"required"`
	Message          string                                             `json:"message" api:"required"`
	DocumentationURL string                                             `json:"documentation_url"`
	Source           BetaWorkerVersionGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             betaWorkerVersionGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*BetaWorkerVersionGetResponseEnvelopeMessages) UnmarshalJSON

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

type BetaWorkerVersionGetResponseEnvelopeMessagesSource

type BetaWorkerVersionGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                 `json:"pointer"`
	JSON    betaWorkerVersionGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*BetaWorkerVersionGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type BetaWorkerVersionGetResponseEnvelopeSuccess

type BetaWorkerVersionGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	BetaWorkerVersionGetResponseEnvelopeSuccessTrue BetaWorkerVersionGetResponseEnvelopeSuccess = true
)

func (BetaWorkerVersionGetResponseEnvelopeSuccess) IsKnown

type BetaWorkerVersionListParams

type BetaWorkerVersionListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Current page.
	Page param.Field[int64] `query:"page"`
	// Items per-page.
	PerPage param.Field[int64] `query:"per_page"`
}

func (BetaWorkerVersionListParams) URLQuery

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

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

type BetaWorkerVersionNewParams

type BetaWorkerVersionNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	Version   VersionParam        `json:"version" api:"required"`
	// If true, a deployment will be created that sends 100% of traffic to the new
	// version.
	Deploy param.Field[bool] `query:"deploy"`
}

func (BetaWorkerVersionNewParams) MarshalJSON

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

func (BetaWorkerVersionNewParams) URLQuery

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

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

type BetaWorkerVersionNewResponseEnvelope

type BetaWorkerVersionNewResponseEnvelope struct {
	Errors   []BetaWorkerVersionNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []BetaWorkerVersionNewResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   Version                                        `json:"result" api:"required"`
	// Whether the API call was successful.
	Success BetaWorkerVersionNewResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    betaWorkerVersionNewResponseEnvelopeJSON    `json:"-"`
}

func (*BetaWorkerVersionNewResponseEnvelope) UnmarshalJSON

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

type BetaWorkerVersionNewResponseEnvelopeErrors

type BetaWorkerVersionNewResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code" api:"required"`
	Message          string                                           `json:"message" api:"required"`
	DocumentationURL string                                           `json:"documentation_url"`
	Source           BetaWorkerVersionNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             betaWorkerVersionNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*BetaWorkerVersionNewResponseEnvelopeErrors) UnmarshalJSON

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

type BetaWorkerVersionNewResponseEnvelopeErrorsSource

type BetaWorkerVersionNewResponseEnvelopeErrorsSource struct {
	Pointer string                                               `json:"pointer"`
	JSON    betaWorkerVersionNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*BetaWorkerVersionNewResponseEnvelopeErrorsSource) UnmarshalJSON

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

type BetaWorkerVersionNewResponseEnvelopeMessages

type BetaWorkerVersionNewResponseEnvelopeMessages struct {
	Code             int64                                              `json:"code" api:"required"`
	Message          string                                             `json:"message" api:"required"`
	DocumentationURL string                                             `json:"documentation_url"`
	Source           BetaWorkerVersionNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             betaWorkerVersionNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*BetaWorkerVersionNewResponseEnvelopeMessages) UnmarshalJSON

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

type BetaWorkerVersionNewResponseEnvelopeMessagesSource

type BetaWorkerVersionNewResponseEnvelopeMessagesSource struct {
	Pointer string                                                 `json:"pointer"`
	JSON    betaWorkerVersionNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*BetaWorkerVersionNewResponseEnvelopeMessagesSource) UnmarshalJSON

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

type BetaWorkerVersionNewResponseEnvelopeSuccess

type BetaWorkerVersionNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	BetaWorkerVersionNewResponseEnvelopeSuccessTrue BetaWorkerVersionNewResponseEnvelopeSuccess = true
)

func (BetaWorkerVersionNewResponseEnvelopeSuccess) IsKnown

type BetaWorkerVersionService

type BetaWorkerVersionService struct {
	Options []option.RequestOption
}

BetaWorkerVersionService 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 NewBetaWorkerVersionService method instead.

func NewBetaWorkerVersionService

func NewBetaWorkerVersionService(opts ...option.RequestOption) (r *BetaWorkerVersionService)

NewBetaWorkerVersionService 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 (*BetaWorkerVersionService) Delete

Delete a version.

func (*BetaWorkerVersionService) Get

func (r *BetaWorkerVersionService) Get(ctx context.Context, workerID string, versionID string, params BetaWorkerVersionGetParams, opts ...option.RequestOption) (res *Version, err error)

Get details about a specific version.

func (*BetaWorkerVersionService) List

List all versions for a Worker.

func (*BetaWorkerVersionService) ListAutoPaging

List all versions for a Worker.

func (*BetaWorkerVersionService) New

func (r *BetaWorkerVersionService) New(ctx context.Context, workerID string, params BetaWorkerVersionNewParams, opts ...option.RequestOption) (res *Version, err error)

Create a new version.

type CertificateCA

type CertificateCA = shared.CertificateCA

The Certificate Authority that will issue the certificate

This is an alias to an internal type.

type CertificateRequestType

type CertificateRequestType = shared.CertificateRequestType

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

This is an alias to an internal type.

type CloudflareTunnel

type CloudflareTunnel = shared.CloudflareTunnel

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

This is an alias to an internal type.

type CloudflareTunnelConfigSrc

type CloudflareTunnelConfigSrc = shared.CloudflareTunnelConfigSrc

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

This is an alias to an internal type.

type CloudflareTunnelConnection

type CloudflareTunnelConnection = shared.CloudflareTunnelConnection

This is an alias to an internal type.

type CloudflareTunnelStatus

type CloudflareTunnelStatus = shared.CloudflareTunnelStatus

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

This is an alias to an internal type.

type CloudflareTunnelTunType

type CloudflareTunnelTunType = shared.CloudflareTunnelTunType

The type of tunnel.

This is an alias to an internal type.

type ConsumerScript

type ConsumerScript struct {
	// Name of Worker that is to be the consumer.
	Service string `json:"service" api:"required"`
	// Optional environment if the Worker utilizes one.
	Environment string `json:"environment"`
	// Optional dispatch namespace the script belongs to.
	Namespace string             `json:"namespace"`
	JSON      consumerScriptJSON `json:"-"`
}

A reference to a script that will consume logs from the attached Worker.

func (*ConsumerScript) UnmarshalJSON

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

type ConsumerScriptParam

type ConsumerScriptParam struct {
	// Name of Worker that is to be the consumer.
	Service param.Field[string] `json:"service" api:"required"`
	// Optional environment if the Worker utilizes one.
	Environment param.Field[string] `json:"environment"`
	// Optional dispatch namespace the script belongs to.
	Namespace param.Field[string] `json:"namespace"`
}

A reference to a script that will consume logs from the attached Worker.

func (ConsumerScriptParam) MarshalJSON

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

type Deployment

type Deployment struct {
	ID          string                `json:"id" api:"required" format:"uuid"`
	CreatedOn   time.Time             `json:"created_on" api:"required" format:"date-time"`
	Source      string                `json:"source" api:"required"`
	Strategy    DeploymentStrategy    `json:"strategy" api:"required"`
	Versions    []DeploymentVersion   `json:"versions" api:"required"`
	Annotations DeploymentAnnotations `json:"annotations"`
	AuthorEmail string                `json:"author_email" format:"email"`
	JSON        deploymentJSON        `json:"-"`
}

func (*Deployment) UnmarshalJSON

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

type DeploymentAnnotations

type DeploymentAnnotations struct {
	// Human-readable message about the deployment. Truncated to 1000 bytes if longer.
	WorkersMessage string `json:"workers/message"`
	// Operation that triggered the creation of the deployment.
	WorkersTriggeredBy string                    `json:"workers/triggered_by"`
	JSON               deploymentAnnotationsJSON `json:"-"`
}

func (*DeploymentAnnotations) UnmarshalJSON

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

type DeploymentAnnotationsParam

type DeploymentAnnotationsParam struct {
	// Human-readable message about the deployment. Truncated to 1000 bytes if longer.
	WorkersMessage param.Field[string] `json:"workers/message"`
}

func (DeploymentAnnotationsParam) MarshalJSON

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

type DeploymentParam

type DeploymentParam struct {
	Strategy    param.Field[DeploymentStrategy]         `json:"strategy" api:"required"`
	Versions    param.Field[[]DeploymentVersionParam]   `json:"versions" api:"required"`
	Annotations param.Field[DeploymentAnnotationsParam] `json:"annotations"`
}

func (DeploymentParam) MarshalJSON

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

type DeploymentStrategy

type DeploymentStrategy string
const (
	DeploymentStrategyPercentage DeploymentStrategy = "percentage"
)

func (DeploymentStrategy) IsKnown

func (r DeploymentStrategy) IsKnown() bool

type DeploymentVersion

type DeploymentVersion struct {
	Percentage float64               `json:"percentage" api:"required"`
	VersionID  string                `json:"version_id" api:"required" format:"uuid"`
	JSON       deploymentVersionJSON `json:"-"`
}

func (*DeploymentVersion) UnmarshalJSON

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

type DeploymentVersionParam

type DeploymentVersionParam struct {
	Percentage param.Field[float64] `json:"percentage" api:"required"`
	VersionID  param.Field[string]  `json:"version_id" api:"required" format:"uuid"`
}

func (DeploymentVersionParam) MarshalJSON

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

type DomainDeleteParams

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

type DomainDeleteResponse

type DomainDeleteResponse struct {
	Errors   []DomainDeleteResponseError   `json:"errors" api:"required"`
	Messages []DomainDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success DomainDeleteResponseSuccess `json:"success" api:"required"`
	JSON    domainDeleteResponseJSON    `json:"-"`
}

func (*DomainDeleteResponse) UnmarshalJSON

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

type DomainDeleteResponseError

type DomainDeleteResponseError struct {
	Code             int64                            `json:"code" api:"required"`
	Message          string                           `json:"message" api:"required"`
	DocumentationURL string                           `json:"documentation_url"`
	Source           DomainDeleteResponseErrorsSource `json:"source"`
	JSON             domainDeleteResponseErrorJSON    `json:"-"`
}

func (*DomainDeleteResponseError) UnmarshalJSON

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

type DomainDeleteResponseErrorsSource

type DomainDeleteResponseErrorsSource struct {
	Pointer string                               `json:"pointer"`
	JSON    domainDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*DomainDeleteResponseErrorsSource) UnmarshalJSON

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

type DomainDeleteResponseMessage

type DomainDeleteResponseMessage struct {
	Code             int64                              `json:"code" api:"required"`
	Message          string                             `json:"message" api:"required"`
	DocumentationURL string                             `json:"documentation_url"`
	Source           DomainDeleteResponseMessagesSource `json:"source"`
	JSON             domainDeleteResponseMessageJSON    `json:"-"`
}

func (*DomainDeleteResponseMessage) UnmarshalJSON

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

type DomainDeleteResponseMessagesSource

type DomainDeleteResponseMessagesSource struct {
	Pointer string                                 `json:"pointer"`
	JSON    domainDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*DomainDeleteResponseMessagesSource) UnmarshalJSON

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

type DomainDeleteResponseSuccess

type DomainDeleteResponseSuccess bool

Whether the API call was successful.

const (
	DomainDeleteResponseSuccessTrue DomainDeleteResponseSuccess = true
)

func (DomainDeleteResponseSuccess) IsKnown

func (r DomainDeleteResponseSuccess) IsKnown() bool

type DomainGetParams

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

type DomainGetResponse

type DomainGetResponse struct {
	// Immutable ID of the domain.
	ID string `json:"id" api:"required"`
	// ID of the TLS certificate issued for the domain.
	CERTID string `json:"cert_id" api:"required" format:"uuid"`
	// Worker environment associated with the domain.
	//
	// Deprecated: deprecated
	Environment string `json:"environment" api:"required"`
	// Hostname of the domain. Can be either the zone apex or a subdomain of the zone.
	// Requests to this hostname will be routed to the configured Worker.
	Hostname string `json:"hostname" api:"required"`
	// Name of the Worker associated with the domain. Requests to the configured
	// hostname will be routed to this Worker.
	Service string `json:"service" api:"required"`
	// ID of the zone containing the domain hostname.
	ZoneID string `json:"zone_id" api:"required"`
	// Name of the zone containing the domain hostname.
	ZoneName string                `json:"zone_name" api:"required"`
	JSON     domainGetResponseJSON `json:"-"`
}

func (*DomainGetResponse) UnmarshalJSON

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

type DomainGetResponseEnvelope

type DomainGetResponseEnvelope struct {
	Errors   []DomainGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DomainGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   DomainGetResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success DomainGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    domainGetResponseEnvelopeJSON    `json:"-"`
}

func (*DomainGetResponseEnvelope) UnmarshalJSON

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

type DomainGetResponseEnvelopeErrors

type DomainGetResponseEnvelopeErrors struct {
	Code             int64                                 `json:"code" api:"required"`
	Message          string                                `json:"message" api:"required"`
	DocumentationURL string                                `json:"documentation_url"`
	Source           DomainGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             domainGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*DomainGetResponseEnvelopeErrors) UnmarshalJSON

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

type DomainGetResponseEnvelopeErrorsSource

type DomainGetResponseEnvelopeErrorsSource struct {
	Pointer string                                    `json:"pointer"`
	JSON    domainGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*DomainGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type DomainGetResponseEnvelopeMessages

type DomainGetResponseEnvelopeMessages struct {
	Code             int64                                   `json:"code" api:"required"`
	Message          string                                  `json:"message" api:"required"`
	DocumentationURL string                                  `json:"documentation_url"`
	Source           DomainGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             domainGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*DomainGetResponseEnvelopeMessages) UnmarshalJSON

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

type DomainGetResponseEnvelopeMessagesSource

type DomainGetResponseEnvelopeMessagesSource struct {
	Pointer string                                      `json:"pointer"`
	JSON    domainGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*DomainGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type DomainGetResponseEnvelopeSuccess

type DomainGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	DomainGetResponseEnvelopeSuccessTrue DomainGetResponseEnvelopeSuccess = true
)

func (DomainGetResponseEnvelopeSuccess) IsKnown

type DomainListParams

type DomainListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Worker environment associated with the domain.
	Environment param.Field[string] `query:"environment"`
	// Hostname of the domain.
	Hostname param.Field[string] `query:"hostname"`
	// Name of the Worker associated with the domain.
	Service param.Field[string] `query:"service"`
	// ID of the zone containing the domain hostname.
	ZoneID param.Field[string] `query:"zone_id"`
	// Name of the zone containing the domain hostname.
	ZoneName param.Field[string] `query:"zone_name"`
}

func (DomainListParams) URLQuery

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

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

type DomainListResponse

type DomainListResponse struct {
	// Immutable ID of the domain.
	ID string `json:"id" api:"required"`
	// ID of the TLS certificate issued for the domain.
	CERTID string `json:"cert_id" api:"required" format:"uuid"`
	// Worker environment associated with the domain.
	//
	// Deprecated: deprecated
	Environment string `json:"environment" api:"required"`
	// Hostname of the domain. Can be either the zone apex or a subdomain of the zone.
	// Requests to this hostname will be routed to the configured Worker.
	Hostname string `json:"hostname" api:"required"`
	// Name of the Worker associated with the domain. Requests to the configured
	// hostname will be routed to this Worker.
	Service string `json:"service" api:"required"`
	// ID of the zone containing the domain hostname.
	ZoneID string `json:"zone_id" api:"required"`
	// Name of the zone containing the domain hostname.
	ZoneName string                 `json:"zone_name" api:"required"`
	JSON     domainListResponseJSON `json:"-"`
}

func (*DomainListResponse) UnmarshalJSON

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

type DomainService

type DomainService struct {
	Options []option.RequestOption
}

DomainService 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 NewDomainService method instead.

func NewDomainService

func NewDomainService(opts ...option.RequestOption) (r *DomainService)

NewDomainService 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 (*DomainService) Delete

func (r *DomainService) Delete(ctx context.Context, domainID string, body DomainDeleteParams, opts ...option.RequestOption) (res *DomainDeleteResponse, err error)

Detaches a domain from a Worker. Both the Worker and all of its previews are no longer routable using this domain.

func (*DomainService) Get

func (r *DomainService) Get(ctx context.Context, domainID string, query DomainGetParams, opts ...option.RequestOption) (res *DomainGetResponse, err error)

Gets information about a domain.

func (*DomainService) List

Lists all domains for an account.

func (*DomainService) ListAutoPaging

Lists all domains for an account.

func (*DomainService) Update

func (r *DomainService) Update(ctx context.Context, params DomainUpdateParams, opts ...option.RequestOption) (res *DomainUpdateResponse, err error)

Attaches a domain that routes traffic to a Worker.

type DomainUpdateParams

type DomainUpdateParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Hostname of the domain. Can be either the zone apex or a subdomain of the zone.
	// Requests to this hostname will be routed to the configured Worker.
	Hostname param.Field[string] `json:"hostname" api:"required"`
	// Name of the Worker associated with the domain. Requests to the configured
	// hostname will be routed to this Worker.
	Service param.Field[string] `json:"service" api:"required"`
	// Worker environment associated with the domain.
	Environment param.Field[string] `json:"environment"`
	// ID of the zone containing the domain hostname.
	ZoneID param.Field[string] `json:"zone_id"`
	// Name of the zone containing the domain hostname.
	ZoneName param.Field[string] `json:"zone_name"`
}

func (DomainUpdateParams) MarshalJSON

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

type DomainUpdateResponse

type DomainUpdateResponse struct {
	// Immutable ID of the domain.
	ID string `json:"id" api:"required"`
	// ID of the TLS certificate issued for the domain.
	CERTID string `json:"cert_id" api:"required" format:"uuid"`
	// Worker environment associated with the domain.
	//
	// Deprecated: deprecated
	Environment string `json:"environment" api:"required"`
	// Hostname of the domain. Can be either the zone apex or a subdomain of the zone.
	// Requests to this hostname will be routed to the configured Worker.
	Hostname string `json:"hostname" api:"required"`
	// Name of the Worker associated with the domain. Requests to the configured
	// hostname will be routed to this Worker.
	Service string `json:"service" api:"required"`
	// ID of the zone containing the domain hostname.
	ZoneID string `json:"zone_id" api:"required"`
	// Name of the zone containing the domain hostname.
	ZoneName string                   `json:"zone_name" api:"required"`
	JSON     domainUpdateResponseJSON `json:"-"`
}

func (*DomainUpdateResponse) UnmarshalJSON

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

type DomainUpdateResponseEnvelope

type DomainUpdateResponseEnvelope struct {
	Errors   []DomainUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DomainUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   DomainUpdateResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success DomainUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    domainUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*DomainUpdateResponseEnvelope) UnmarshalJSON

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

type DomainUpdateResponseEnvelopeErrors

type DomainUpdateResponseEnvelopeErrors struct {
	Code             int64                                    `json:"code" api:"required"`
	Message          string                                   `json:"message" api:"required"`
	DocumentationURL string                                   `json:"documentation_url"`
	Source           DomainUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             domainUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*DomainUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type DomainUpdateResponseEnvelopeErrorsSource

type DomainUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                       `json:"pointer"`
	JSON    domainUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*DomainUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

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

type DomainUpdateResponseEnvelopeMessages

type DomainUpdateResponseEnvelopeMessages struct {
	Code             int64                                      `json:"code" api:"required"`
	Message          string                                     `json:"message" api:"required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           DomainUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             domainUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*DomainUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type DomainUpdateResponseEnvelopeMessagesSource

type DomainUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    domainUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*DomainUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

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

type DomainUpdateResponseEnvelopeSuccess

type DomainUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	DomainUpdateResponseEnvelopeSuccessTrue DomainUpdateResponseEnvelopeSuccess = true
)

func (DomainUpdateResponseEnvelopeSuccess) IsKnown

type Error

type Error = apierror.Error

type ErrorData

type ErrorData = shared.ErrorData

This is an alias to an internal type.

type ErrorDataSource

type ErrorDataSource = shared.ErrorDataSource

This is an alias to an internal type.

type Member

type Member = shared.Member

This is an alias to an internal type.

type MemberPoliciesAccess

type MemberPoliciesAccess = shared.MemberPoliciesAccess

Allow or deny operations against the resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroup

type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup

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

This is an alias to an internal type.

type MemberPoliciesPermissionGroupsMeta

type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type MemberPoliciesResourceGroup

type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup

A group of scoped resources.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsMeta

type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta

Attributes associated to the resource group.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScope

type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope

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

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScopeObject

type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject

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

This is an alias to an internal type.

type MemberPolicy

type MemberPolicy = shared.MemberPolicy

This is an alias to an internal type.

type MemberStatus

type MemberStatus = shared.MemberStatus

A member's status in the account.

This is an alias to an internal type.

type MemberUser

type MemberUser = shared.MemberUser

Details of the user associated to the membership.

This is an alias to an internal type.

type MigrationStep

type MigrationStep struct {
	JSON migrationStepJSON `json:"-"`
}

func (*MigrationStep) UnmarshalJSON

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

type MigrationStepParam

type MigrationStepParam struct {
	// A list of classes to delete Durable Object namespaces from.
	DeletedClasses param.Field[[]string] `json:"deleted_classes"`
	// A list of classes to create Durable Object namespaces from.
	NewClasses param.Field[[]string] `json:"new_classes"`
	// A list of classes to create Durable Object namespaces with SQLite from.
	NewSqliteClasses param.Field[[]string] `json:"new_sqlite_classes"`
	// A list of classes with Durable Object namespaces that were renamed.
	RenamedClasses param.Field[[]MigrationStepRenamedClassParam] `json:"renamed_classes"`
	// A list of transfers for Durable Object namespaces from a different Worker and
	// class to a class defined in this Worker.
	TransferredClasses param.Field[[]MigrationStepTransferredClassParam] `json:"transferred_classes"`
}

func (MigrationStepParam) MarshalJSON

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

type MigrationStepRenamedClass

type MigrationStepRenamedClass struct {
	JSON migrationStepRenamedClassJSON `json:"-"`
}

func (*MigrationStepRenamedClass) UnmarshalJSON

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

type MigrationStepRenamedClassParam

type MigrationStepRenamedClassParam struct {
	From param.Field[string] `json:"from"`
	To   param.Field[string] `json:"to"`
}

func (MigrationStepRenamedClassParam) MarshalJSON

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

type MigrationStepTransferredClass

type MigrationStepTransferredClass struct {
	JSON migrationStepTransferredClassJSON `json:"-"`
}

func (*MigrationStepTransferredClass) UnmarshalJSON

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

type MigrationStepTransferredClassParam

type MigrationStepTransferredClassParam struct {
	From       param.Field[string] `json:"from"`
	FromScript param.Field[string] `json:"from_script"`
	To         param.Field[string] `json:"to"`
}

func (MigrationStepTransferredClassParam) MarshalJSON

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

type ObservabilityDestinationDeleteParams

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

type ObservabilityDestinationDeleteResponse

type ObservabilityDestinationDeleteResponse struct {
	Configuration ObservabilityDestinationDeleteResponseConfiguration `json:"configuration" api:"required"`
	Enabled       bool                                                `json:"enabled" api:"required"`
	Name          string                                              `json:"name" api:"required"`
	Scripts       []string                                            `json:"scripts" api:"required"`
	Slug          string                                              `json:"slug" api:"required"`
	JSON          observabilityDestinationDeleteResponseJSON          `json:"-"`
}

func (*ObservabilityDestinationDeleteResponse) UnmarshalJSON

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

type ObservabilityDestinationDeleteResponseConfiguration

type ObservabilityDestinationDeleteResponseConfiguration struct {
	DestinationConf string                                                            `json:"destination_conf" api:"required"`
	LogpushDataset  ObservabilityDestinationDeleteResponseConfigurationLogpushDataset `json:"logpushDataset" api:"required"`
	LogpushJob      float64                                                           `json:"logpushJob" api:"required"`
	Type            ObservabilityDestinationDeleteResponseConfigurationType           `json:"type" api:"required"`
	URL             string                                                            `json:"url" api:"required"`
	JSON            observabilityDestinationDeleteResponseConfigurationJSON           `json:"-"`
}

func (*ObservabilityDestinationDeleteResponseConfiguration) UnmarshalJSON

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

type ObservabilityDestinationDeleteResponseConfigurationLogpushDataset

type ObservabilityDestinationDeleteResponseConfigurationLogpushDataset string
const (
	ObservabilityDestinationDeleteResponseConfigurationLogpushDatasetOpentelemetryTraces ObservabilityDestinationDeleteResponseConfigurationLogpushDataset = "opentelemetry-traces"
	ObservabilityDestinationDeleteResponseConfigurationLogpushDatasetOpentelemetryLogs   ObservabilityDestinationDeleteResponseConfigurationLogpushDataset = "opentelemetry-logs"
)

func (ObservabilityDestinationDeleteResponseConfigurationLogpushDataset) IsKnown

type ObservabilityDestinationDeleteResponseConfigurationType

type ObservabilityDestinationDeleteResponseConfigurationType string
const (
	ObservabilityDestinationDeleteResponseConfigurationTypeLogpush ObservabilityDestinationDeleteResponseConfigurationType = "logpush"
)

func (ObservabilityDestinationDeleteResponseConfigurationType) IsKnown

type ObservabilityDestinationDeleteResponseEnvelope

type ObservabilityDestinationDeleteResponseEnvelope struct {
	Errors   []ObservabilityDestinationDeleteResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityDestinationDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
	Success  ObservabilityDestinationDeleteResponseEnvelopeSuccess    `json:"success" api:"required"`
	Result   ObservabilityDestinationDeleteResponse                   `json:"result"`
	JSON     observabilityDestinationDeleteResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityDestinationDeleteResponseEnvelope) UnmarshalJSON

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

type ObservabilityDestinationDeleteResponseEnvelopeErrors

type ObservabilityDestinationDeleteResponseEnvelopeErrors struct {
	Message string                                                   `json:"message" api:"required"`
	JSON    observabilityDestinationDeleteResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityDestinationDeleteResponseEnvelopeErrors) UnmarshalJSON

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

type ObservabilityDestinationDeleteResponseEnvelopeMessages

type ObservabilityDestinationDeleteResponseEnvelopeMessages struct {
	Message ObservabilityDestinationDeleteResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityDestinationDeleteResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityDestinationDeleteResponseEnvelopeMessages) UnmarshalJSON

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

type ObservabilityDestinationDeleteResponseEnvelopeMessagesMessage

type ObservabilityDestinationDeleteResponseEnvelopeMessagesMessage string
const (
	ObservabilityDestinationDeleteResponseEnvelopeMessagesMessageSuccessfulRequest ObservabilityDestinationDeleteResponseEnvelopeMessagesMessage = "Successful request"
)

func (ObservabilityDestinationDeleteResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityDestinationDeleteResponseEnvelopeSuccess

type ObservabilityDestinationDeleteResponseEnvelopeSuccess bool
const (
	ObservabilityDestinationDeleteResponseEnvelopeSuccessTrue ObservabilityDestinationDeleteResponseEnvelopeSuccess = true
)

func (ObservabilityDestinationDeleteResponseEnvelopeSuccess) IsKnown

type ObservabilityDestinationListParams

type ObservabilityDestinationListParams struct {
	AccountID param.Field[string]                                    `path:"account_id" api:"required"`
	Order     param.Field[ObservabilityDestinationListParamsOrder]   `query:"order"`
	OrderBy   param.Field[ObservabilityDestinationListParamsOrderBy] `query:"orderBy"`
	Page      param.Field[float64]                                   `query:"page"`
	PerPage   param.Field[float64]                                   `query:"perPage"`
}

func (ObservabilityDestinationListParams) URLQuery

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

type ObservabilityDestinationListParamsOrder

type ObservabilityDestinationListParamsOrder string
const (
	ObservabilityDestinationListParamsOrderAsc  ObservabilityDestinationListParamsOrder = "asc"
	ObservabilityDestinationListParamsOrderDesc ObservabilityDestinationListParamsOrder = "desc"
)

func (ObservabilityDestinationListParamsOrder) IsKnown

type ObservabilityDestinationListParamsOrderBy

type ObservabilityDestinationListParamsOrderBy string
const (
	ObservabilityDestinationListParamsOrderByCreated ObservabilityDestinationListParamsOrderBy = "created"
	ObservabilityDestinationListParamsOrderByUpdated ObservabilityDestinationListParamsOrderBy = "updated"
)

func (ObservabilityDestinationListParamsOrderBy) IsKnown

type ObservabilityDestinationListResponse

type ObservabilityDestinationListResponse struct {
	Configuration ObservabilityDestinationListResponseConfiguration `json:"configuration" api:"required"`
	Enabled       bool                                              `json:"enabled" api:"required"`
	Name          string                                            `json:"name" api:"required"`
	Scripts       []string                                          `json:"scripts" api:"required"`
	Slug          string                                            `json:"slug" api:"required"`
	JSON          observabilityDestinationListResponseJSON          `json:"-"`
}

func (*ObservabilityDestinationListResponse) UnmarshalJSON

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

type ObservabilityDestinationListResponseConfiguration

type ObservabilityDestinationListResponseConfiguration struct {
	DestinationConf string                                                          `json:"destination_conf" api:"required"`
	Headers         map[string]string                                               `json:"headers" api:"required"`
	JobStatus       ObservabilityDestinationListResponseConfigurationJobStatus      `json:"jobStatus" api:"required"`
	LogpushDataset  ObservabilityDestinationListResponseConfigurationLogpushDataset `json:"logpushDataset" api:"required"`
	Type            ObservabilityDestinationListResponseConfigurationType           `json:"type" api:"required"`
	URL             string                                                          `json:"url" api:"required"`
	JSON            observabilityDestinationListResponseConfigurationJSON           `json:"-"`
}

func (*ObservabilityDestinationListResponseConfiguration) UnmarshalJSON

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

type ObservabilityDestinationListResponseConfigurationJobStatus

type ObservabilityDestinationListResponseConfigurationJobStatus struct {
	ErrorMessage string                                                         `json:"error_message" api:"required"`
	LastComplete string                                                         `json:"last_complete" api:"required"`
	LastError    string                                                         `json:"last_error" api:"required"`
	JSON         observabilityDestinationListResponseConfigurationJobStatusJSON `json:"-"`
}

func (*ObservabilityDestinationListResponseConfigurationJobStatus) UnmarshalJSON

type ObservabilityDestinationListResponseConfigurationLogpushDataset

type ObservabilityDestinationListResponseConfigurationLogpushDataset string
const (
	ObservabilityDestinationListResponseConfigurationLogpushDatasetOpentelemetryTraces ObservabilityDestinationListResponseConfigurationLogpushDataset = "opentelemetry-traces"
	ObservabilityDestinationListResponseConfigurationLogpushDatasetOpentelemetryLogs   ObservabilityDestinationListResponseConfigurationLogpushDataset = "opentelemetry-logs"
)

func (ObservabilityDestinationListResponseConfigurationLogpushDataset) IsKnown

type ObservabilityDestinationListResponseConfigurationType

type ObservabilityDestinationListResponseConfigurationType string
const (
	ObservabilityDestinationListResponseConfigurationTypeLogpush ObservabilityDestinationListResponseConfigurationType = "logpush"
)

func (ObservabilityDestinationListResponseConfigurationType) IsKnown

type ObservabilityDestinationNewParams

type ObservabilityDestinationNewParams struct {
	AccountID          param.Field[string]                                         `path:"account_id" api:"required"`
	Configuration      param.Field[ObservabilityDestinationNewParamsConfiguration] `json:"configuration" api:"required"`
	Enabled            param.Field[bool]                                           `json:"enabled" api:"required"`
	Name               param.Field[string]                                         `json:"name" api:"required"`
	SkipPreflightCheck param.Field[bool]                                           `json:"skipPreflightCheck"`
}

func (ObservabilityDestinationNewParams) MarshalJSON

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

type ObservabilityDestinationNewParamsConfiguration

type ObservabilityDestinationNewParamsConfiguration struct {
	Headers        param.Field[map[string]string]                                            `json:"headers" api:"required"`
	LogpushDataset param.Field[ObservabilityDestinationNewParamsConfigurationLogpushDataset] `json:"logpushDataset" api:"required"`
	Type           param.Field[ObservabilityDestinationNewParamsConfigurationType]           `json:"type" api:"required"`
	URL            param.Field[string]                                                       `json:"url" api:"required"`
}

func (ObservabilityDestinationNewParamsConfiguration) MarshalJSON

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

type ObservabilityDestinationNewParamsConfigurationLogpushDataset

type ObservabilityDestinationNewParamsConfigurationLogpushDataset string
const (
	ObservabilityDestinationNewParamsConfigurationLogpushDatasetOpentelemetryTraces ObservabilityDestinationNewParamsConfigurationLogpushDataset = "opentelemetry-traces"
	ObservabilityDestinationNewParamsConfigurationLogpushDatasetOpentelemetryLogs   ObservabilityDestinationNewParamsConfigurationLogpushDataset = "opentelemetry-logs"
)

func (ObservabilityDestinationNewParamsConfigurationLogpushDataset) IsKnown

type ObservabilityDestinationNewParamsConfigurationType

type ObservabilityDestinationNewParamsConfigurationType string
const (
	ObservabilityDestinationNewParamsConfigurationTypeLogpush ObservabilityDestinationNewParamsConfigurationType = "logpush"
)

func (ObservabilityDestinationNewParamsConfigurationType) IsKnown

type ObservabilityDestinationNewResponse

type ObservabilityDestinationNewResponse struct {
	Configuration ObservabilityDestinationNewResponseConfiguration `json:"configuration" api:"required"`
	Enabled       bool                                             `json:"enabled" api:"required"`
	Name          string                                           `json:"name" api:"required"`
	Scripts       []string                                         `json:"scripts" api:"required"`
	Slug          string                                           `json:"slug" api:"required"`
	JSON          observabilityDestinationNewResponseJSON          `json:"-"`
}

func (*ObservabilityDestinationNewResponse) UnmarshalJSON

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

type ObservabilityDestinationNewResponseConfiguration

type ObservabilityDestinationNewResponseConfiguration struct {
	DestinationConf string                                                         `json:"destination_conf" api:"required"`
	LogpushDataset  ObservabilityDestinationNewResponseConfigurationLogpushDataset `json:"logpushDataset" api:"required"`
	LogpushJob      float64                                                        `json:"logpushJob" api:"required"`
	Type            ObservabilityDestinationNewResponseConfigurationType           `json:"type" api:"required"`
	URL             string                                                         `json:"url" api:"required"`
	JSON            observabilityDestinationNewResponseConfigurationJSON           `json:"-"`
}

func (*ObservabilityDestinationNewResponseConfiguration) UnmarshalJSON

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

type ObservabilityDestinationNewResponseConfigurationLogpushDataset

type ObservabilityDestinationNewResponseConfigurationLogpushDataset string
const (
	ObservabilityDestinationNewResponseConfigurationLogpushDatasetOpentelemetryTraces ObservabilityDestinationNewResponseConfigurationLogpushDataset = "opentelemetry-traces"
	ObservabilityDestinationNewResponseConfigurationLogpushDatasetOpentelemetryLogs   ObservabilityDestinationNewResponseConfigurationLogpushDataset = "opentelemetry-logs"
)

func (ObservabilityDestinationNewResponseConfigurationLogpushDataset) IsKnown

type ObservabilityDestinationNewResponseConfigurationType

type ObservabilityDestinationNewResponseConfigurationType string
const (
	ObservabilityDestinationNewResponseConfigurationTypeLogpush ObservabilityDestinationNewResponseConfigurationType = "logpush"
)

func (ObservabilityDestinationNewResponseConfigurationType) IsKnown

type ObservabilityDestinationNewResponseEnvelope

type ObservabilityDestinationNewResponseEnvelope struct {
	Errors   []ObservabilityDestinationNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityDestinationNewResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ObservabilityDestinationNewResponse                   `json:"result" api:"required"`
	Success  ObservabilityDestinationNewResponseEnvelopeSuccess    `json:"success" api:"required"`
	JSON     observabilityDestinationNewResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityDestinationNewResponseEnvelope) UnmarshalJSON

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

type ObservabilityDestinationNewResponseEnvelopeErrors

type ObservabilityDestinationNewResponseEnvelopeErrors struct {
	Message string                                                `json:"message" api:"required"`
	JSON    observabilityDestinationNewResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityDestinationNewResponseEnvelopeErrors) UnmarshalJSON

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

type ObservabilityDestinationNewResponseEnvelopeMessages

type ObservabilityDestinationNewResponseEnvelopeMessages struct {
	Message ObservabilityDestinationNewResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityDestinationNewResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityDestinationNewResponseEnvelopeMessages) UnmarshalJSON

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

type ObservabilityDestinationNewResponseEnvelopeMessagesMessage

type ObservabilityDestinationNewResponseEnvelopeMessagesMessage string
const (
	ObservabilityDestinationNewResponseEnvelopeMessagesMessageResourceCreated ObservabilityDestinationNewResponseEnvelopeMessagesMessage = "Resource created"
)

func (ObservabilityDestinationNewResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityDestinationNewResponseEnvelopeSuccess

type ObservabilityDestinationNewResponseEnvelopeSuccess bool
const (
	ObservabilityDestinationNewResponseEnvelopeSuccessTrue ObservabilityDestinationNewResponseEnvelopeSuccess = true
)

func (ObservabilityDestinationNewResponseEnvelopeSuccess) IsKnown

type ObservabilityDestinationService

type ObservabilityDestinationService struct {
	Options []option.RequestOption
}

ObservabilityDestinationService 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 NewObservabilityDestinationService method instead.

func NewObservabilityDestinationService

func NewObservabilityDestinationService(opts ...option.RequestOption) (r *ObservabilityDestinationService)

NewObservabilityDestinationService 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 (*ObservabilityDestinationService) Delete

Delete a Workers Observability Telemetry Destination.

func (*ObservabilityDestinationService) List

List your Workers Observability Telemetry Destinations.

func (*ObservabilityDestinationService) ListAutoPaging

List your Workers Observability Telemetry Destinations.

func (*ObservabilityDestinationService) New

Create a new Workers Observability Telemetry Destination.

func (*ObservabilityDestinationService) Update

Update an existing Workers Observability Telemetry Destination.

type ObservabilityDestinationUpdateParams

type ObservabilityDestinationUpdateParams struct {
	AccountID     param.Field[string]                                            `path:"account_id" api:"required"`
	Configuration param.Field[ObservabilityDestinationUpdateParamsConfiguration] `json:"configuration" api:"required"`
	Enabled       param.Field[bool]                                              `json:"enabled" api:"required"`
}

func (ObservabilityDestinationUpdateParams) MarshalJSON

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

type ObservabilityDestinationUpdateParamsConfiguration

type ObservabilityDestinationUpdateParamsConfiguration struct {
	Headers param.Field[map[string]string]                                     `json:"headers" api:"required"`
	Type    param.Field[ObservabilityDestinationUpdateParamsConfigurationType] `json:"type" api:"required"`
	URL     param.Field[string]                                                `json:"url" api:"required"`
}

func (ObservabilityDestinationUpdateParamsConfiguration) MarshalJSON

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

type ObservabilityDestinationUpdateParamsConfigurationType

type ObservabilityDestinationUpdateParamsConfigurationType string
const (
	ObservabilityDestinationUpdateParamsConfigurationTypeLogpush ObservabilityDestinationUpdateParamsConfigurationType = "logpush"
)

func (ObservabilityDestinationUpdateParamsConfigurationType) IsKnown

type ObservabilityDestinationUpdateResponse

type ObservabilityDestinationUpdateResponse struct {
	Configuration ObservabilityDestinationUpdateResponseConfiguration `json:"configuration" api:"required"`
	Enabled       bool                                                `json:"enabled" api:"required"`
	Name          string                                              `json:"name" api:"required"`
	Scripts       []string                                            `json:"scripts" api:"required"`
	Slug          string                                              `json:"slug" api:"required"`
	JSON          observabilityDestinationUpdateResponseJSON          `json:"-"`
}

func (*ObservabilityDestinationUpdateResponse) UnmarshalJSON

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

type ObservabilityDestinationUpdateResponseConfiguration

type ObservabilityDestinationUpdateResponseConfiguration struct {
	DestinationConf string                                                            `json:"destination_conf" api:"required"`
	LogpushDataset  ObservabilityDestinationUpdateResponseConfigurationLogpushDataset `json:"logpushDataset" api:"required"`
	LogpushJob      float64                                                           `json:"logpushJob" api:"required"`
	Type            ObservabilityDestinationUpdateResponseConfigurationType           `json:"type" api:"required"`
	URL             string                                                            `json:"url" api:"required"`
	JSON            observabilityDestinationUpdateResponseConfigurationJSON           `json:"-"`
}

func (*ObservabilityDestinationUpdateResponseConfiguration) UnmarshalJSON

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

type ObservabilityDestinationUpdateResponseConfigurationLogpushDataset

type ObservabilityDestinationUpdateResponseConfigurationLogpushDataset string
const (
	ObservabilityDestinationUpdateResponseConfigurationLogpushDatasetOpentelemetryTraces ObservabilityDestinationUpdateResponseConfigurationLogpushDataset = "opentelemetry-traces"
	ObservabilityDestinationUpdateResponseConfigurationLogpushDatasetOpentelemetryLogs   ObservabilityDestinationUpdateResponseConfigurationLogpushDataset = "opentelemetry-logs"
)

func (ObservabilityDestinationUpdateResponseConfigurationLogpushDataset) IsKnown

type ObservabilityDestinationUpdateResponseConfigurationType

type ObservabilityDestinationUpdateResponseConfigurationType string
const (
	ObservabilityDestinationUpdateResponseConfigurationTypeLogpush ObservabilityDestinationUpdateResponseConfigurationType = "logpush"
)

func (ObservabilityDestinationUpdateResponseConfigurationType) IsKnown

type ObservabilityDestinationUpdateResponseEnvelope

type ObservabilityDestinationUpdateResponseEnvelope struct {
	Errors   []ObservabilityDestinationUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityDestinationUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ObservabilityDestinationUpdateResponse                   `json:"result" api:"required"`
	Success  ObservabilityDestinationUpdateResponseEnvelopeSuccess    `json:"success" api:"required"`
	JSON     observabilityDestinationUpdateResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityDestinationUpdateResponseEnvelope) UnmarshalJSON

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

type ObservabilityDestinationUpdateResponseEnvelopeErrors

type ObservabilityDestinationUpdateResponseEnvelopeErrors struct {
	Message string                                                   `json:"message" api:"required"`
	JSON    observabilityDestinationUpdateResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityDestinationUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type ObservabilityDestinationUpdateResponseEnvelopeMessages

type ObservabilityDestinationUpdateResponseEnvelopeMessages struct {
	Message ObservabilityDestinationUpdateResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityDestinationUpdateResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityDestinationUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type ObservabilityDestinationUpdateResponseEnvelopeMessagesMessage

type ObservabilityDestinationUpdateResponseEnvelopeMessagesMessage string
const (
	ObservabilityDestinationUpdateResponseEnvelopeMessagesMessageSuccessfulRequest ObservabilityDestinationUpdateResponseEnvelopeMessagesMessage = "Successful request"
)

func (ObservabilityDestinationUpdateResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityDestinationUpdateResponseEnvelopeSuccess

type ObservabilityDestinationUpdateResponseEnvelopeSuccess bool
const (
	ObservabilityDestinationUpdateResponseEnvelopeSuccessTrue ObservabilityDestinationUpdateResponseEnvelopeSuccess = true
)

func (ObservabilityDestinationUpdateResponseEnvelopeSuccess) IsKnown

type ObservabilityQueryListParams

type ObservabilityQueryListParams struct {
	AccountID param.Field[string]                              `path:"account_id" api:"required"`
	Order     param.Field[ObservabilityQueryListParamsOrder]   `query:"order"`
	OrderBy   param.Field[ObservabilityQueryListParamsOrderBy] `query:"orderBy"`
	Page      param.Field[float64]                             `query:"page"`
	PerPage   param.Field[float64]                             `query:"perPage"`
}

func (ObservabilityQueryListParams) URLQuery

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

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

type ObservabilityQueryListParamsOrder

type ObservabilityQueryListParamsOrder string
const (
	ObservabilityQueryListParamsOrderAsc  ObservabilityQueryListParamsOrder = "asc"
	ObservabilityQueryListParamsOrderDesc ObservabilityQueryListParamsOrder = "desc"
)

func (ObservabilityQueryListParamsOrder) IsKnown

type ObservabilityQueryListParamsOrderBy

type ObservabilityQueryListParamsOrderBy string
const (
	ObservabilityQueryListParamsOrderByCreated ObservabilityQueryListParamsOrderBy = "created"
	ObservabilityQueryListParamsOrderByUpdated ObservabilityQueryListParamsOrderBy = "updated"
)

func (ObservabilityQueryListParamsOrderBy) IsKnown

type ObservabilityQueryListResponse

type ObservabilityQueryListResponse struct {
	ID string `json:"id" api:"required"`
	// If the query wasn't explcitly saved
	Adhoc       bool   `json:"adhoc" api:"required"`
	Created     string `json:"created" api:"required"`
	CreatedBy   string `json:"createdBy" api:"required"`
	Description string `json:"description" api:"required,nullable"`
	// Query name
	Name       string                                   `json:"name" api:"required"`
	Parameters ObservabilityQueryListResponseParameters `json:"parameters" api:"required"`
	Updated    string                                   `json:"updated" api:"required"`
	UpdatedBy  string                                   `json:"updatedBy" api:"required"`
	JSON       observabilityQueryListResponseJSON       `json:"-"`
}

func (*ObservabilityQueryListResponse) UnmarshalJSON

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

type ObservabilityQueryListResponseParameters

type ObservabilityQueryListResponseParameters struct {
	// Create Calculations to compute as part of the query.
	Calculations []ObservabilityQueryListResponseParametersCalculation `json:"calculations"`
	// Set the Datasets to query. Leave it empty to query all the datasets.
	Datasets []string `json:"datasets"`
	// Set a Flag to describe how to combine the filters on the query.
	FilterCombination ObservabilityQueryListResponseParametersFilterCombination `json:"filterCombination"`
	// Configure the Filters to apply to the query. Supports nested groups via kind:
	// 'group'.
	Filters []ObservabilityQueryListResponseParametersFilter `json:"filters"`
	// Define how to group the results of the query.
	GroupBys []ObservabilityQueryListResponseParametersGroupBy `json:"groupBys"`
	// Configure the Having clauses that filter on calculations in the query result.
	Havings []ObservabilityQueryListResponseParametersHaving `json:"havings"`
	// Set a limit on the number of results / records returned by the query
	Limit int64 `json:"limit"`
	// Define an expression to search using full-text search.
	Needle ObservabilityQueryListResponseParametersNeedle `json:"needle"`
	// Configure the order of the results returned by the query.
	OrderBy ObservabilityQueryListResponseParametersOrderBy `json:"orderBy"`
	JSON    observabilityQueryListResponseParametersJSON    `json:"-"`
}

func (*ObservabilityQueryListResponseParameters) UnmarshalJSON

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

type ObservabilityQueryListResponseParametersCalculation

type ObservabilityQueryListResponseParametersCalculation struct {
	Operator ObservabilityQueryListResponseParametersCalculationsOperator `json:"operator" api:"required"`
	Alias    string                                                       `json:"alias"`
	Key      string                                                       `json:"key"`
	KeyType  ObservabilityQueryListResponseParametersCalculationsKeyType  `json:"keyType"`
	JSON     observabilityQueryListResponseParametersCalculationJSON      `json:"-"`
}

func (*ObservabilityQueryListResponseParametersCalculation) UnmarshalJSON

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

type ObservabilityQueryListResponseParametersCalculationsKeyType

type ObservabilityQueryListResponseParametersCalculationsKeyType string
const (
	ObservabilityQueryListResponseParametersCalculationsKeyTypeString  ObservabilityQueryListResponseParametersCalculationsKeyType = "string"
	ObservabilityQueryListResponseParametersCalculationsKeyTypeNumber  ObservabilityQueryListResponseParametersCalculationsKeyType = "number"
	ObservabilityQueryListResponseParametersCalculationsKeyTypeBoolean ObservabilityQueryListResponseParametersCalculationsKeyType = "boolean"
)

func (ObservabilityQueryListResponseParametersCalculationsKeyType) IsKnown

type ObservabilityQueryListResponseParametersCalculationsOperator

type ObservabilityQueryListResponseParametersCalculationsOperator string
const (
	ObservabilityQueryListResponseParametersCalculationsOperatorUniq              ObservabilityQueryListResponseParametersCalculationsOperator = "uniq"
	ObservabilityQueryListResponseParametersCalculationsOperatorCount             ObservabilityQueryListResponseParametersCalculationsOperator = "count"
	ObservabilityQueryListResponseParametersCalculationsOperatorMax               ObservabilityQueryListResponseParametersCalculationsOperator = "max"
	ObservabilityQueryListResponseParametersCalculationsOperatorMin               ObservabilityQueryListResponseParametersCalculationsOperator = "min"
	ObservabilityQueryListResponseParametersCalculationsOperatorSum               ObservabilityQueryListResponseParametersCalculationsOperator = "sum"
	ObservabilityQueryListResponseParametersCalculationsOperatorAvg               ObservabilityQueryListResponseParametersCalculationsOperator = "avg"
	ObservabilityQueryListResponseParametersCalculationsOperatorMedian            ObservabilityQueryListResponseParametersCalculationsOperator = "median"
	ObservabilityQueryListResponseParametersCalculationsOperatorP001              ObservabilityQueryListResponseParametersCalculationsOperator = "p001"
	ObservabilityQueryListResponseParametersCalculationsOperatorP01               ObservabilityQueryListResponseParametersCalculationsOperator = "p01"
	ObservabilityQueryListResponseParametersCalculationsOperatorP05               ObservabilityQueryListResponseParametersCalculationsOperator = "p05"
	ObservabilityQueryListResponseParametersCalculationsOperatorP10               ObservabilityQueryListResponseParametersCalculationsOperator = "p10"
	ObservabilityQueryListResponseParametersCalculationsOperatorP25               ObservabilityQueryListResponseParametersCalculationsOperator = "p25"
	ObservabilityQueryListResponseParametersCalculationsOperatorP75               ObservabilityQueryListResponseParametersCalculationsOperator = "p75"
	ObservabilityQueryListResponseParametersCalculationsOperatorP90               ObservabilityQueryListResponseParametersCalculationsOperator = "p90"
	ObservabilityQueryListResponseParametersCalculationsOperatorP95               ObservabilityQueryListResponseParametersCalculationsOperator = "p95"
	ObservabilityQueryListResponseParametersCalculationsOperatorP99               ObservabilityQueryListResponseParametersCalculationsOperator = "p99"
	ObservabilityQueryListResponseParametersCalculationsOperatorP999              ObservabilityQueryListResponseParametersCalculationsOperator = "p999"
	ObservabilityQueryListResponseParametersCalculationsOperatorStddev            ObservabilityQueryListResponseParametersCalculationsOperator = "stddev"
	ObservabilityQueryListResponseParametersCalculationsOperatorVariance          ObservabilityQueryListResponseParametersCalculationsOperator = "variance"
	ObservabilityQueryListResponseParametersCalculationsOperatorCountDistinct     ObservabilityQueryListResponseParametersCalculationsOperator = "COUNT_DISTINCT"
	ObservabilityQueryListResponseParametersCalculationsOperatorCountUppercase    ObservabilityQueryListResponseParametersCalculationsOperator = "COUNT"
	ObservabilityQueryListResponseParametersCalculationsOperatorMaxUppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "MAX"
	ObservabilityQueryListResponseParametersCalculationsOperatorMinUppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "MIN"
	ObservabilityQueryListResponseParametersCalculationsOperatorSumUppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "SUM"
	ObservabilityQueryListResponseParametersCalculationsOperatorAvgUppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "AVG"
	ObservabilityQueryListResponseParametersCalculationsOperatorMedianUppercase   ObservabilityQueryListResponseParametersCalculationsOperator = "MEDIAN"
	ObservabilityQueryListResponseParametersCalculationsOperatorP001Uppercase     ObservabilityQueryListResponseParametersCalculationsOperator = "P001"
	ObservabilityQueryListResponseParametersCalculationsOperatorP01Uppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "P01"
	ObservabilityQueryListResponseParametersCalculationsOperatorP05Uppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "P05"
	ObservabilityQueryListResponseParametersCalculationsOperatorP10Uppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "P10"
	ObservabilityQueryListResponseParametersCalculationsOperatorP25Uppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "P25"
	ObservabilityQueryListResponseParametersCalculationsOperatorP75Uppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "P75"
	ObservabilityQueryListResponseParametersCalculationsOperatorP90Uppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "P90"
	ObservabilityQueryListResponseParametersCalculationsOperatorP95Uppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "P95"
	ObservabilityQueryListResponseParametersCalculationsOperatorP99Uppercase      ObservabilityQueryListResponseParametersCalculationsOperator = "P99"
	ObservabilityQueryListResponseParametersCalculationsOperatorP999Uppercase     ObservabilityQueryListResponseParametersCalculationsOperator = "P999"
	ObservabilityQueryListResponseParametersCalculationsOperatorStddevUppercase   ObservabilityQueryListResponseParametersCalculationsOperator = "STDDEV"
	ObservabilityQueryListResponseParametersCalculationsOperatorVarianceUppercase ObservabilityQueryListResponseParametersCalculationsOperator = "VARIANCE"
)

func (ObservabilityQueryListResponseParametersCalculationsOperator) IsKnown

type ObservabilityQueryListResponseParametersFilter

type ObservabilityQueryListResponseParametersFilter struct {
	FilterCombination ObservabilityQueryListResponseParametersFiltersFilterCombination `json:"filterCombination"`
	// This field can have the runtime type of [[]interface{}].
	Filters interface{} `json:"filters"`
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key  string                                              `json:"key"`
	Kind ObservabilityQueryListResponseParametersFiltersKind `json:"kind"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation ObservabilityQueryListResponseParametersFiltersOperation `json:"operation"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type ObservabilityQueryListResponseParametersFiltersType `json:"type"`
	// This field can have the runtime type of
	// [ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafValueUnion].
	Value interface{}                                        `json:"value"`
	JSON  observabilityQueryListResponseParametersFilterJSON `json:"-"`
	// contains filtered or unexported fields
}

Supports nested groups via kind: 'group'.

func (ObservabilityQueryListResponseParametersFilter) AsUnion

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

Possible runtime types of the union are ObservabilityQueryListResponseParametersFiltersObject, ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeaf.

func (*ObservabilityQueryListResponseParametersFilter) UnmarshalJSON

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

type ObservabilityQueryListResponseParametersFilterCombination

type ObservabilityQueryListResponseParametersFilterCombination string

Set a Flag to describe how to combine the filters on the query.

const (
	ObservabilityQueryListResponseParametersFilterCombinationAnd          ObservabilityQueryListResponseParametersFilterCombination = "and"
	ObservabilityQueryListResponseParametersFilterCombinationOr           ObservabilityQueryListResponseParametersFilterCombination = "or"
	ObservabilityQueryListResponseParametersFilterCombinationAndUppercase ObservabilityQueryListResponseParametersFilterCombination = "AND"
	ObservabilityQueryListResponseParametersFilterCombinationOrUppercase  ObservabilityQueryListResponseParametersFilterCombination = "OR"
)

func (ObservabilityQueryListResponseParametersFilterCombination) IsKnown

type ObservabilityQueryListResponseParametersFiltersFilterCombination

type ObservabilityQueryListResponseParametersFiltersFilterCombination string
const (
	ObservabilityQueryListResponseParametersFiltersFilterCombinationAnd          ObservabilityQueryListResponseParametersFiltersFilterCombination = "and"
	ObservabilityQueryListResponseParametersFiltersFilterCombinationOr           ObservabilityQueryListResponseParametersFiltersFilterCombination = "or"
	ObservabilityQueryListResponseParametersFiltersFilterCombinationAndUppercase ObservabilityQueryListResponseParametersFiltersFilterCombination = "AND"
	ObservabilityQueryListResponseParametersFiltersFilterCombinationOrUppercase  ObservabilityQueryListResponseParametersFiltersFilterCombination = "OR"
)

func (ObservabilityQueryListResponseParametersFiltersFilterCombination) IsKnown

type ObservabilityQueryListResponseParametersFiltersKind

type ObservabilityQueryListResponseParametersFiltersKind string
const (
	ObservabilityQueryListResponseParametersFiltersKindGroup  ObservabilityQueryListResponseParametersFiltersKind = "group"
	ObservabilityQueryListResponseParametersFiltersKindFilter ObservabilityQueryListResponseParametersFiltersKind = "filter"
)

func (ObservabilityQueryListResponseParametersFiltersKind) IsKnown

type ObservabilityQueryListResponseParametersFiltersObject

type ObservabilityQueryListResponseParametersFiltersObject struct {
	FilterCombination ObservabilityQueryListResponseParametersFiltersObjectFilterCombination `json:"filterCombination" api:"required"`
	Filters           []interface{}                                                          `json:"filters" api:"required"`
	Kind              ObservabilityQueryListResponseParametersFiltersObjectKind              `json:"kind" api:"required"`
	JSON              observabilityQueryListResponseParametersFiltersObjectJSON              `json:"-"`
}

func (*ObservabilityQueryListResponseParametersFiltersObject) UnmarshalJSON

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

type ObservabilityQueryListResponseParametersFiltersObjectFilterCombination

type ObservabilityQueryListResponseParametersFiltersObjectFilterCombination string
const (
	ObservabilityQueryListResponseParametersFiltersObjectFilterCombinationAnd          ObservabilityQueryListResponseParametersFiltersObjectFilterCombination = "and"
	ObservabilityQueryListResponseParametersFiltersObjectFilterCombinationOr           ObservabilityQueryListResponseParametersFiltersObjectFilterCombination = "or"
	ObservabilityQueryListResponseParametersFiltersObjectFilterCombinationAndUppercase ObservabilityQueryListResponseParametersFiltersObjectFilterCombination = "AND"
	ObservabilityQueryListResponseParametersFiltersObjectFilterCombinationOrUppercase  ObservabilityQueryListResponseParametersFiltersObjectFilterCombination = "OR"
)

func (ObservabilityQueryListResponseParametersFiltersObjectFilterCombination) IsKnown

type ObservabilityQueryListResponseParametersFiltersObjectKind

type ObservabilityQueryListResponseParametersFiltersObjectKind string
const (
	ObservabilityQueryListResponseParametersFiltersObjectKindGroup ObservabilityQueryListResponseParametersFiltersObjectKind = "group"
)

func (ObservabilityQueryListResponseParametersFiltersObjectKind) IsKnown

type ObservabilityQueryListResponseParametersFiltersOperation

type ObservabilityQueryListResponseParametersFiltersOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityQueryListResponseParametersFiltersOperationIncludes            ObservabilityQueryListResponseParametersFiltersOperation = "includes"
	ObservabilityQueryListResponseParametersFiltersOperationNotIncludes         ObservabilityQueryListResponseParametersFiltersOperation = "not_includes"
	ObservabilityQueryListResponseParametersFiltersOperationStartsWith          ObservabilityQueryListResponseParametersFiltersOperation = "starts_with"
	ObservabilityQueryListResponseParametersFiltersOperationRegex               ObservabilityQueryListResponseParametersFiltersOperation = "regex"
	ObservabilityQueryListResponseParametersFiltersOperationExists              ObservabilityQueryListResponseParametersFiltersOperation = "exists"
	ObservabilityQueryListResponseParametersFiltersOperationIsNull              ObservabilityQueryListResponseParametersFiltersOperation = "is_null"
	ObservabilityQueryListResponseParametersFiltersOperationIn                  ObservabilityQueryListResponseParametersFiltersOperation = "in"
	ObservabilityQueryListResponseParametersFiltersOperationNotIn               ObservabilityQueryListResponseParametersFiltersOperation = "not_in"
	ObservabilityQueryListResponseParametersFiltersOperationEq                  ObservabilityQueryListResponseParametersFiltersOperation = "eq"
	ObservabilityQueryListResponseParametersFiltersOperationNeq                 ObservabilityQueryListResponseParametersFiltersOperation = "neq"
	ObservabilityQueryListResponseParametersFiltersOperationGt                  ObservabilityQueryListResponseParametersFiltersOperation = "gt"
	ObservabilityQueryListResponseParametersFiltersOperationGte                 ObservabilityQueryListResponseParametersFiltersOperation = "gte"
	ObservabilityQueryListResponseParametersFiltersOperationLt                  ObservabilityQueryListResponseParametersFiltersOperation = "lt"
	ObservabilityQueryListResponseParametersFiltersOperationLte                 ObservabilityQueryListResponseParametersFiltersOperation = "lte"
	ObservabilityQueryListResponseParametersFiltersOperationEquals              ObservabilityQueryListResponseParametersFiltersOperation = "="
	ObservabilityQueryListResponseParametersFiltersOperationNotEquals           ObservabilityQueryListResponseParametersFiltersOperation = "!="
	ObservabilityQueryListResponseParametersFiltersOperationGreater             ObservabilityQueryListResponseParametersFiltersOperation = ">"
	ObservabilityQueryListResponseParametersFiltersOperationGreaterOrEquals     ObservabilityQueryListResponseParametersFiltersOperation = ">="
	ObservabilityQueryListResponseParametersFiltersOperationLess                ObservabilityQueryListResponseParametersFiltersOperation = "<"
	ObservabilityQueryListResponseParametersFiltersOperationLessOrEquals        ObservabilityQueryListResponseParametersFiltersOperation = "<="
	ObservabilityQueryListResponseParametersFiltersOperationIncludesUppercase   ObservabilityQueryListResponseParametersFiltersOperation = "INCLUDES"
	ObservabilityQueryListResponseParametersFiltersOperationDoesNotInclude      ObservabilityQueryListResponseParametersFiltersOperation = "DOES_NOT_INCLUDE"
	ObservabilityQueryListResponseParametersFiltersOperationMatchRegex          ObservabilityQueryListResponseParametersFiltersOperation = "MATCH_REGEX"
	ObservabilityQueryListResponseParametersFiltersOperationExistsUppercase     ObservabilityQueryListResponseParametersFiltersOperation = "EXISTS"
	ObservabilityQueryListResponseParametersFiltersOperationDoesNotExist        ObservabilityQueryListResponseParametersFiltersOperation = "DOES_NOT_EXIST"
	ObservabilityQueryListResponseParametersFiltersOperationInUppercase         ObservabilityQueryListResponseParametersFiltersOperation = "IN"
	ObservabilityQueryListResponseParametersFiltersOperationNotInUppercase      ObservabilityQueryListResponseParametersFiltersOperation = "NOT_IN"
	ObservabilityQueryListResponseParametersFiltersOperationStartsWithUppercase ObservabilityQueryListResponseParametersFiltersOperation = "STARTS_WITH"
)

func (ObservabilityQueryListResponseParametersFiltersOperation) IsKnown

type ObservabilityQueryListResponseParametersFiltersType

type ObservabilityQueryListResponseParametersFiltersType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityQueryListResponseParametersFiltersTypeString  ObservabilityQueryListResponseParametersFiltersType = "string"
	ObservabilityQueryListResponseParametersFiltersTypeNumber  ObservabilityQueryListResponseParametersFiltersType = "number"
	ObservabilityQueryListResponseParametersFiltersTypeBoolean ObservabilityQueryListResponseParametersFiltersType = "boolean"
)

func (ObservabilityQueryListResponseParametersFiltersType) IsKnown

type ObservabilityQueryListResponseParametersFiltersUnion

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

Supports nested groups via kind: 'group'.

Union satisfied by ObservabilityQueryListResponseParametersFiltersObject or ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeaf.

type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeaf

type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeaf struct {
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key string `json:"key" api:"required"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation `json:"operation" api:"required"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafType `json:"type" api:"required"`
	// Discriminator for leaf filter nodes. Always 'filter' when present; may be
	// omitted.
	Kind ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafKind `json:"kind"`
	// Comparison value. Must match actual values in your data — verify with the values
	// endpoint. Ensure the value type (string/number/boolean) matches the field type.
	// String comparisons are case-sensitive. Regex uses RE2 syntax (no
	// lookaheads/lookbehinds).
	Value ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafValueUnion `json:"value"`
	JSON  observabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafJSON       `json:"-"`
}

A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.

func (*ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeaf) UnmarshalJSON

type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafKind

type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafKind string

Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.

const (
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafKindFilter ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafKind = "filter"
)

func (ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafKind) IsKnown

type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation

type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationIncludes            ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "includes"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationNotIncludes         ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "not_includes"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationStartsWith          ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "starts_with"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationRegex               ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "regex"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationExists              ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "exists"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationIsNull              ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "is_null"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationIn                  ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "in"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationNotIn               ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "not_in"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationEq                  ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "eq"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationNeq                 ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "neq"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationGt                  ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "gt"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationGte                 ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "gte"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationLt                  ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "lt"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationLte                 ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "lte"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationEquals              ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "="
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationNotEquals           ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "!="
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationGreater             ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = ">"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationGreaterOrEquals     ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = ">="
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationLess                ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "<"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationLessOrEquals        ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "<="
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationIncludesUppercase   ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "INCLUDES"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationDoesNotInclude      ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_INCLUDE"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationMatchRegex          ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "MATCH_REGEX"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationExistsUppercase     ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "EXISTS"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationDoesNotExist        ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_EXIST"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationInUppercase         ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "IN"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationNotInUppercase      ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "NOT_IN"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperationStartsWithUppercase ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "STARTS_WITH"
)

func (ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafOperation) IsKnown

type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafType

type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafTypeString  ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafType = "string"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafTypeNumber  ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafType = "number"
	ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafTypeBoolean ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafType = "boolean"
)

func (ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafType) IsKnown

type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafValueUnion

type ObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafValueUnion interface {
	ImplementsObservabilityQueryListResponseParametersFiltersWorkersObservabilityFilterLeafValueUnion()
}

Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).

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

type ObservabilityQueryListResponseParametersGroupBy

type ObservabilityQueryListResponseParametersGroupBy struct {
	Type  ObservabilityQueryListResponseParametersGroupBysType `json:"type" api:"required"`
	Value string                                               `json:"value" api:"required"`
	JSON  observabilityQueryListResponseParametersGroupByJSON  `json:"-"`
}

func (*ObservabilityQueryListResponseParametersGroupBy) UnmarshalJSON

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

type ObservabilityQueryListResponseParametersGroupBysType

type ObservabilityQueryListResponseParametersGroupBysType string
const (
	ObservabilityQueryListResponseParametersGroupBysTypeString  ObservabilityQueryListResponseParametersGroupBysType = "string"
	ObservabilityQueryListResponseParametersGroupBysTypeNumber  ObservabilityQueryListResponseParametersGroupBysType = "number"
	ObservabilityQueryListResponseParametersGroupBysTypeBoolean ObservabilityQueryListResponseParametersGroupBysType = "boolean"
)

func (ObservabilityQueryListResponseParametersGroupBysType) IsKnown

type ObservabilityQueryListResponseParametersHaving

type ObservabilityQueryListResponseParametersHaving struct {
	Key       string                                                   `json:"key" api:"required"`
	Operation ObservabilityQueryListResponseParametersHavingsOperation `json:"operation" api:"required"`
	Value     float64                                                  `json:"value" api:"required"`
	JSON      observabilityQueryListResponseParametersHavingJSON       `json:"-"`
}

func (*ObservabilityQueryListResponseParametersHaving) UnmarshalJSON

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

type ObservabilityQueryListResponseParametersHavingsOperation

type ObservabilityQueryListResponseParametersHavingsOperation string
const (
	ObservabilityQueryListResponseParametersHavingsOperationEq  ObservabilityQueryListResponseParametersHavingsOperation = "eq"
	ObservabilityQueryListResponseParametersHavingsOperationNeq ObservabilityQueryListResponseParametersHavingsOperation = "neq"
	ObservabilityQueryListResponseParametersHavingsOperationGt  ObservabilityQueryListResponseParametersHavingsOperation = "gt"
	ObservabilityQueryListResponseParametersHavingsOperationGte ObservabilityQueryListResponseParametersHavingsOperation = "gte"
	ObservabilityQueryListResponseParametersHavingsOperationLt  ObservabilityQueryListResponseParametersHavingsOperation = "lt"
	ObservabilityQueryListResponseParametersHavingsOperationLte ObservabilityQueryListResponseParametersHavingsOperation = "lte"
)

func (ObservabilityQueryListResponseParametersHavingsOperation) IsKnown

type ObservabilityQueryListResponseParametersNeedle

type ObservabilityQueryListResponseParametersNeedle struct {
	Value     ObservabilityQueryListResponseParametersNeedleValueUnion `json:"value" api:"required"`
	IsRegex   bool                                                     `json:"isRegex"`
	MatchCase bool                                                     `json:"matchCase"`
	JSON      observabilityQueryListResponseParametersNeedleJSON       `json:"-"`
}

Define an expression to search using full-text search.

func (*ObservabilityQueryListResponseParametersNeedle) UnmarshalJSON

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

type ObservabilityQueryListResponseParametersNeedleValueUnion

type ObservabilityQueryListResponseParametersNeedleValueUnion interface {
	ImplementsObservabilityQueryListResponseParametersNeedleValueUnion()
}

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

type ObservabilityQueryListResponseParametersOrderBy

type ObservabilityQueryListResponseParametersOrderBy struct {
	// Configure which Calculation to order the results by.
	Value string `json:"value" api:"required"`
	// Set the order of the results
	Order ObservabilityQueryListResponseParametersOrderByOrder `json:"order"`
	JSON  observabilityQueryListResponseParametersOrderByJSON  `json:"-"`
}

Configure the order of the results returned by the query.

func (*ObservabilityQueryListResponseParametersOrderBy) UnmarshalJSON

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

type ObservabilityQueryListResponseParametersOrderByOrder

type ObservabilityQueryListResponseParametersOrderByOrder string

Set the order of the results

const (
	ObservabilityQueryListResponseParametersOrderByOrderAsc  ObservabilityQueryListResponseParametersOrderByOrder = "asc"
	ObservabilityQueryListResponseParametersOrderByOrderDesc ObservabilityQueryListResponseParametersOrderByOrder = "desc"
)

func (ObservabilityQueryListResponseParametersOrderByOrder) IsKnown

type ObservabilityQueryNewParams

type ObservabilityQueryNewParams struct {
	AccountID   param.Field[string] `path:"account_id" api:"required"`
	Description param.Field[string] `json:"description" api:"required"`
	// Query name
	Name       param.Field[string]                                `json:"name" api:"required"`
	Parameters param.Field[ObservabilityQueryNewParamsParameters] `json:"parameters" api:"required"`
}

func (ObservabilityQueryNewParams) MarshalJSON

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

type ObservabilityQueryNewParamsParameters

type ObservabilityQueryNewParamsParameters struct {
	// Create Calculations to compute as part of the query.
	Calculations param.Field[[]ObservabilityQueryNewParamsParametersCalculation] `json:"calculations"`
	// Set the Datasets to query. Leave it empty to query all the datasets.
	Datasets param.Field[[]string] `json:"datasets"`
	// Set a Flag to describe how to combine the filters on the query.
	FilterCombination param.Field[ObservabilityQueryNewParamsParametersFilterCombination] `json:"filterCombination"`
	// Configure the Filters to apply to the query. Supports nested groups via kind:
	// 'group'.
	Filters param.Field[[]ObservabilityQueryNewParamsParametersFilterUnion] `json:"filters"`
	// Define how to group the results of the query.
	GroupBys param.Field[[]ObservabilityQueryNewParamsParametersGroupBy] `json:"groupBys"`
	// Configure the Having clauses that filter on calculations in the query result.
	Havings param.Field[[]ObservabilityQueryNewParamsParametersHaving] `json:"havings"`
	// Set a limit on the number of results / records returned by the query
	Limit param.Field[int64] `json:"limit"`
	// Define an expression to search using full-text search.
	Needle param.Field[ObservabilityQueryNewParamsParametersNeedle] `json:"needle"`
	// Configure the order of the results returned by the query.
	OrderBy param.Field[ObservabilityQueryNewParamsParametersOrderBy] `json:"orderBy"`
}

func (ObservabilityQueryNewParamsParameters) MarshalJSON

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

type ObservabilityQueryNewParamsParametersCalculation

type ObservabilityQueryNewParamsParametersCalculation struct {
	Operator param.Field[ObservabilityQueryNewParamsParametersCalculationsOperator] `json:"operator" api:"required"`
	Alias    param.Field[string]                                                    `json:"alias"`
	Key      param.Field[string]                                                    `json:"key"`
	KeyType  param.Field[ObservabilityQueryNewParamsParametersCalculationsKeyType]  `json:"keyType"`
}

func (ObservabilityQueryNewParamsParametersCalculation) MarshalJSON

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

type ObservabilityQueryNewParamsParametersCalculationsKeyType

type ObservabilityQueryNewParamsParametersCalculationsKeyType string
const (
	ObservabilityQueryNewParamsParametersCalculationsKeyTypeString  ObservabilityQueryNewParamsParametersCalculationsKeyType = "string"
	ObservabilityQueryNewParamsParametersCalculationsKeyTypeNumber  ObservabilityQueryNewParamsParametersCalculationsKeyType = "number"
	ObservabilityQueryNewParamsParametersCalculationsKeyTypeBoolean ObservabilityQueryNewParamsParametersCalculationsKeyType = "boolean"
)

func (ObservabilityQueryNewParamsParametersCalculationsKeyType) IsKnown

type ObservabilityQueryNewParamsParametersCalculationsOperator

type ObservabilityQueryNewParamsParametersCalculationsOperator string
const (
	ObservabilityQueryNewParamsParametersCalculationsOperatorUniq              ObservabilityQueryNewParamsParametersCalculationsOperator = "uniq"
	ObservabilityQueryNewParamsParametersCalculationsOperatorCount             ObservabilityQueryNewParamsParametersCalculationsOperator = "count"
	ObservabilityQueryNewParamsParametersCalculationsOperatorMax               ObservabilityQueryNewParamsParametersCalculationsOperator = "max"
	ObservabilityQueryNewParamsParametersCalculationsOperatorMin               ObservabilityQueryNewParamsParametersCalculationsOperator = "min"
	ObservabilityQueryNewParamsParametersCalculationsOperatorSum               ObservabilityQueryNewParamsParametersCalculationsOperator = "sum"
	ObservabilityQueryNewParamsParametersCalculationsOperatorAvg               ObservabilityQueryNewParamsParametersCalculationsOperator = "avg"
	ObservabilityQueryNewParamsParametersCalculationsOperatorMedian            ObservabilityQueryNewParamsParametersCalculationsOperator = "median"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP001              ObservabilityQueryNewParamsParametersCalculationsOperator = "p001"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP01               ObservabilityQueryNewParamsParametersCalculationsOperator = "p01"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP05               ObservabilityQueryNewParamsParametersCalculationsOperator = "p05"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP10               ObservabilityQueryNewParamsParametersCalculationsOperator = "p10"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP25               ObservabilityQueryNewParamsParametersCalculationsOperator = "p25"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP75               ObservabilityQueryNewParamsParametersCalculationsOperator = "p75"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP90               ObservabilityQueryNewParamsParametersCalculationsOperator = "p90"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP95               ObservabilityQueryNewParamsParametersCalculationsOperator = "p95"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP99               ObservabilityQueryNewParamsParametersCalculationsOperator = "p99"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP999              ObservabilityQueryNewParamsParametersCalculationsOperator = "p999"
	ObservabilityQueryNewParamsParametersCalculationsOperatorStddev            ObservabilityQueryNewParamsParametersCalculationsOperator = "stddev"
	ObservabilityQueryNewParamsParametersCalculationsOperatorVariance          ObservabilityQueryNewParamsParametersCalculationsOperator = "variance"
	ObservabilityQueryNewParamsParametersCalculationsOperatorCountDistinct     ObservabilityQueryNewParamsParametersCalculationsOperator = "COUNT_DISTINCT"
	ObservabilityQueryNewParamsParametersCalculationsOperatorCountUppercase    ObservabilityQueryNewParamsParametersCalculationsOperator = "COUNT"
	ObservabilityQueryNewParamsParametersCalculationsOperatorMaxUppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "MAX"
	ObservabilityQueryNewParamsParametersCalculationsOperatorMinUppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "MIN"
	ObservabilityQueryNewParamsParametersCalculationsOperatorSumUppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "SUM"
	ObservabilityQueryNewParamsParametersCalculationsOperatorAvgUppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "AVG"
	ObservabilityQueryNewParamsParametersCalculationsOperatorMedianUppercase   ObservabilityQueryNewParamsParametersCalculationsOperator = "MEDIAN"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP001Uppercase     ObservabilityQueryNewParamsParametersCalculationsOperator = "P001"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP01Uppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "P01"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP05Uppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "P05"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP10Uppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "P10"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP25Uppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "P25"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP75Uppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "P75"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP90Uppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "P90"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP95Uppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "P95"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP99Uppercase      ObservabilityQueryNewParamsParametersCalculationsOperator = "P99"
	ObservabilityQueryNewParamsParametersCalculationsOperatorP999Uppercase     ObservabilityQueryNewParamsParametersCalculationsOperator = "P999"
	ObservabilityQueryNewParamsParametersCalculationsOperatorStddevUppercase   ObservabilityQueryNewParamsParametersCalculationsOperator = "STDDEV"
	ObservabilityQueryNewParamsParametersCalculationsOperatorVarianceUppercase ObservabilityQueryNewParamsParametersCalculationsOperator = "VARIANCE"
)

func (ObservabilityQueryNewParamsParametersCalculationsOperator) IsKnown

type ObservabilityQueryNewParamsParametersFilter

type ObservabilityQueryNewParamsParametersFilter struct {
	FilterCombination param.Field[ObservabilityQueryNewParamsParametersFiltersFilterCombination] `json:"filterCombination"`
	Filters           param.Field[interface{}]                                                   `json:"filters"`
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key  param.Field[string]                                           `json:"key"`
	Kind param.Field[ObservabilityQueryNewParamsParametersFiltersKind] `json:"kind"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityQueryNewParamsParametersFiltersOperation] `json:"operation"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type  param.Field[ObservabilityQueryNewParamsParametersFiltersType] `json:"type"`
	Value param.Field[interface{}]                                      `json:"value"`
}

Supports nested groups via kind: 'group'.

func (ObservabilityQueryNewParamsParametersFilter) MarshalJSON

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

type ObservabilityQueryNewParamsParametersFilterCombination

type ObservabilityQueryNewParamsParametersFilterCombination string

Set a Flag to describe how to combine the filters on the query.

const (
	ObservabilityQueryNewParamsParametersFilterCombinationAnd          ObservabilityQueryNewParamsParametersFilterCombination = "and"
	ObservabilityQueryNewParamsParametersFilterCombinationOr           ObservabilityQueryNewParamsParametersFilterCombination = "or"
	ObservabilityQueryNewParamsParametersFilterCombinationAndUppercase ObservabilityQueryNewParamsParametersFilterCombination = "AND"
	ObservabilityQueryNewParamsParametersFilterCombinationOrUppercase  ObservabilityQueryNewParamsParametersFilterCombination = "OR"
)

func (ObservabilityQueryNewParamsParametersFilterCombination) IsKnown

type ObservabilityQueryNewParamsParametersFilterUnion

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

Supports nested groups via kind: 'group'.

Satisfied by workers.ObservabilityQueryNewParamsParametersFiltersObject, workers.ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeaf, ObservabilityQueryNewParamsParametersFilter.

type ObservabilityQueryNewParamsParametersFiltersFilterCombination

type ObservabilityQueryNewParamsParametersFiltersFilterCombination string
const (
	ObservabilityQueryNewParamsParametersFiltersFilterCombinationAnd          ObservabilityQueryNewParamsParametersFiltersFilterCombination = "and"
	ObservabilityQueryNewParamsParametersFiltersFilterCombinationOr           ObservabilityQueryNewParamsParametersFiltersFilterCombination = "or"
	ObservabilityQueryNewParamsParametersFiltersFilterCombinationAndUppercase ObservabilityQueryNewParamsParametersFiltersFilterCombination = "AND"
	ObservabilityQueryNewParamsParametersFiltersFilterCombinationOrUppercase  ObservabilityQueryNewParamsParametersFiltersFilterCombination = "OR"
)

func (ObservabilityQueryNewParamsParametersFiltersFilterCombination) IsKnown

type ObservabilityQueryNewParamsParametersFiltersKind

type ObservabilityQueryNewParamsParametersFiltersKind string
const (
	ObservabilityQueryNewParamsParametersFiltersKindGroup  ObservabilityQueryNewParamsParametersFiltersKind = "group"
	ObservabilityQueryNewParamsParametersFiltersKindFilter ObservabilityQueryNewParamsParametersFiltersKind = "filter"
)

func (ObservabilityQueryNewParamsParametersFiltersKind) IsKnown

type ObservabilityQueryNewParamsParametersFiltersObject

type ObservabilityQueryNewParamsParametersFiltersObject struct {
	FilterCombination param.Field[ObservabilityQueryNewParamsParametersFiltersObjectFilterCombination] `json:"filterCombination" api:"required"`
	Filters           param.Field[[]interface{}]                                                       `json:"filters" api:"required"`
	Kind              param.Field[ObservabilityQueryNewParamsParametersFiltersObjectKind]              `json:"kind" api:"required"`
}

func (ObservabilityQueryNewParamsParametersFiltersObject) MarshalJSON

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

type ObservabilityQueryNewParamsParametersFiltersObjectFilterCombination

type ObservabilityQueryNewParamsParametersFiltersObjectFilterCombination string
const (
	ObservabilityQueryNewParamsParametersFiltersObjectFilterCombinationAnd          ObservabilityQueryNewParamsParametersFiltersObjectFilterCombination = "and"
	ObservabilityQueryNewParamsParametersFiltersObjectFilterCombinationOr           ObservabilityQueryNewParamsParametersFiltersObjectFilterCombination = "or"
	ObservabilityQueryNewParamsParametersFiltersObjectFilterCombinationAndUppercase ObservabilityQueryNewParamsParametersFiltersObjectFilterCombination = "AND"
	ObservabilityQueryNewParamsParametersFiltersObjectFilterCombinationOrUppercase  ObservabilityQueryNewParamsParametersFiltersObjectFilterCombination = "OR"
)

func (ObservabilityQueryNewParamsParametersFiltersObjectFilterCombination) IsKnown

type ObservabilityQueryNewParamsParametersFiltersObjectKind

type ObservabilityQueryNewParamsParametersFiltersObjectKind string
const (
	ObservabilityQueryNewParamsParametersFiltersObjectKindGroup ObservabilityQueryNewParamsParametersFiltersObjectKind = "group"
)

func (ObservabilityQueryNewParamsParametersFiltersObjectKind) IsKnown

type ObservabilityQueryNewParamsParametersFiltersOperation

type ObservabilityQueryNewParamsParametersFiltersOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityQueryNewParamsParametersFiltersOperationIncludes            ObservabilityQueryNewParamsParametersFiltersOperation = "includes"
	ObservabilityQueryNewParamsParametersFiltersOperationNotIncludes         ObservabilityQueryNewParamsParametersFiltersOperation = "not_includes"
	ObservabilityQueryNewParamsParametersFiltersOperationStartsWith          ObservabilityQueryNewParamsParametersFiltersOperation = "starts_with"
	ObservabilityQueryNewParamsParametersFiltersOperationRegex               ObservabilityQueryNewParamsParametersFiltersOperation = "regex"
	ObservabilityQueryNewParamsParametersFiltersOperationExists              ObservabilityQueryNewParamsParametersFiltersOperation = "exists"
	ObservabilityQueryNewParamsParametersFiltersOperationIsNull              ObservabilityQueryNewParamsParametersFiltersOperation = "is_null"
	ObservabilityQueryNewParamsParametersFiltersOperationIn                  ObservabilityQueryNewParamsParametersFiltersOperation = "in"
	ObservabilityQueryNewParamsParametersFiltersOperationNotIn               ObservabilityQueryNewParamsParametersFiltersOperation = "not_in"
	ObservabilityQueryNewParamsParametersFiltersOperationEq                  ObservabilityQueryNewParamsParametersFiltersOperation = "eq"
	ObservabilityQueryNewParamsParametersFiltersOperationNeq                 ObservabilityQueryNewParamsParametersFiltersOperation = "neq"
	ObservabilityQueryNewParamsParametersFiltersOperationGt                  ObservabilityQueryNewParamsParametersFiltersOperation = "gt"
	ObservabilityQueryNewParamsParametersFiltersOperationGte                 ObservabilityQueryNewParamsParametersFiltersOperation = "gte"
	ObservabilityQueryNewParamsParametersFiltersOperationLt                  ObservabilityQueryNewParamsParametersFiltersOperation = "lt"
	ObservabilityQueryNewParamsParametersFiltersOperationLte                 ObservabilityQueryNewParamsParametersFiltersOperation = "lte"
	ObservabilityQueryNewParamsParametersFiltersOperationEquals              ObservabilityQueryNewParamsParametersFiltersOperation = "="
	ObservabilityQueryNewParamsParametersFiltersOperationNotEquals           ObservabilityQueryNewParamsParametersFiltersOperation = "!="
	ObservabilityQueryNewParamsParametersFiltersOperationGreater             ObservabilityQueryNewParamsParametersFiltersOperation = ">"
	ObservabilityQueryNewParamsParametersFiltersOperationGreaterOrEquals     ObservabilityQueryNewParamsParametersFiltersOperation = ">="
	ObservabilityQueryNewParamsParametersFiltersOperationLess                ObservabilityQueryNewParamsParametersFiltersOperation = "<"
	ObservabilityQueryNewParamsParametersFiltersOperationLessOrEquals        ObservabilityQueryNewParamsParametersFiltersOperation = "<="
	ObservabilityQueryNewParamsParametersFiltersOperationIncludesUppercase   ObservabilityQueryNewParamsParametersFiltersOperation = "INCLUDES"
	ObservabilityQueryNewParamsParametersFiltersOperationDoesNotInclude      ObservabilityQueryNewParamsParametersFiltersOperation = "DOES_NOT_INCLUDE"
	ObservabilityQueryNewParamsParametersFiltersOperationMatchRegex          ObservabilityQueryNewParamsParametersFiltersOperation = "MATCH_REGEX"
	ObservabilityQueryNewParamsParametersFiltersOperationExistsUppercase     ObservabilityQueryNewParamsParametersFiltersOperation = "EXISTS"
	ObservabilityQueryNewParamsParametersFiltersOperationDoesNotExist        ObservabilityQueryNewParamsParametersFiltersOperation = "DOES_NOT_EXIST"
	ObservabilityQueryNewParamsParametersFiltersOperationInUppercase         ObservabilityQueryNewParamsParametersFiltersOperation = "IN"
	ObservabilityQueryNewParamsParametersFiltersOperationNotInUppercase      ObservabilityQueryNewParamsParametersFiltersOperation = "NOT_IN"
	ObservabilityQueryNewParamsParametersFiltersOperationStartsWithUppercase ObservabilityQueryNewParamsParametersFiltersOperation = "STARTS_WITH"
)

func (ObservabilityQueryNewParamsParametersFiltersOperation) IsKnown

type ObservabilityQueryNewParamsParametersFiltersType

type ObservabilityQueryNewParamsParametersFiltersType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityQueryNewParamsParametersFiltersTypeString  ObservabilityQueryNewParamsParametersFiltersType = "string"
	ObservabilityQueryNewParamsParametersFiltersTypeNumber  ObservabilityQueryNewParamsParametersFiltersType = "number"
	ObservabilityQueryNewParamsParametersFiltersTypeBoolean ObservabilityQueryNewParamsParametersFiltersType = "boolean"
)

func (ObservabilityQueryNewParamsParametersFiltersType) IsKnown

type ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeaf

type ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeaf struct {
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key param.Field[string] `json:"key" api:"required"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation] `json:"operation" api:"required"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type param.Field[ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafType] `json:"type" api:"required"`
	// Discriminator for leaf filter nodes. Always 'filter' when present; may be
	// omitted.
	Kind param.Field[ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafKind] `json:"kind"`
	// Comparison value. Must match actual values in your data — verify with the values
	// endpoint. Ensure the value type (string/number/boolean) matches the field type.
	// String comparisons are case-sensitive. Regex uses RE2 syntax (no
	// lookaheads/lookbehinds).
	Value param.Field[ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafValueUnion] `json:"value"`
}

A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.

func (ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeaf) MarshalJSON

type ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafKind

type ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafKind string

Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.

const (
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafKindFilter ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafKind = "filter"
)

func (ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafKind) IsKnown

type ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation

type ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationIncludes            ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "includes"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationNotIncludes         ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "not_includes"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationStartsWith          ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "starts_with"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationRegex               ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "regex"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationExists              ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "exists"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationIsNull              ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "is_null"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationIn                  ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "in"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationNotIn               ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "not_in"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationEq                  ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "eq"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationNeq                 ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "neq"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationGt                  ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "gt"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationGte                 ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "gte"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationLt                  ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "lt"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationLte                 ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "lte"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationEquals              ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "="
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationNotEquals           ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "!="
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationGreater             ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = ">"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationGreaterOrEquals     ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = ">="
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationLess                ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "<"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationLessOrEquals        ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "<="
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationIncludesUppercase   ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "INCLUDES"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationDoesNotInclude      ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_INCLUDE"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationMatchRegex          ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "MATCH_REGEX"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationExistsUppercase     ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "EXISTS"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationDoesNotExist        ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_EXIST"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationInUppercase         ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "IN"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationNotInUppercase      ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "NOT_IN"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperationStartsWithUppercase ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "STARTS_WITH"
)

func (ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafOperation) IsKnown

type ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafType

type ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafTypeString  ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafType = "string"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafTypeNumber  ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafType = "number"
	ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafTypeBoolean ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafType = "boolean"
)

func (ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafType) IsKnown

type ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafValueUnion

type ObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafValueUnion interface {
	ImplementsObservabilityQueryNewParamsParametersFiltersWorkersObservabilityFilterLeafValueUnion()
}

Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityQueryNewParamsParametersGroupBy

type ObservabilityQueryNewParamsParametersGroupBy struct {
	Type  param.Field[ObservabilityQueryNewParamsParametersGroupBysType] `json:"type" api:"required"`
	Value param.Field[string]                                            `json:"value" api:"required"`
}

func (ObservabilityQueryNewParamsParametersGroupBy) MarshalJSON

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

type ObservabilityQueryNewParamsParametersGroupBysType

type ObservabilityQueryNewParamsParametersGroupBysType string
const (
	ObservabilityQueryNewParamsParametersGroupBysTypeString  ObservabilityQueryNewParamsParametersGroupBysType = "string"
	ObservabilityQueryNewParamsParametersGroupBysTypeNumber  ObservabilityQueryNewParamsParametersGroupBysType = "number"
	ObservabilityQueryNewParamsParametersGroupBysTypeBoolean ObservabilityQueryNewParamsParametersGroupBysType = "boolean"
)

func (ObservabilityQueryNewParamsParametersGroupBysType) IsKnown

type ObservabilityQueryNewParamsParametersHaving

type ObservabilityQueryNewParamsParametersHaving struct {
	Key       param.Field[string]                                                `json:"key" api:"required"`
	Operation param.Field[ObservabilityQueryNewParamsParametersHavingsOperation] `json:"operation" api:"required"`
	Value     param.Field[float64]                                               `json:"value" api:"required"`
}

func (ObservabilityQueryNewParamsParametersHaving) MarshalJSON

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

type ObservabilityQueryNewParamsParametersHavingsOperation

type ObservabilityQueryNewParamsParametersHavingsOperation string
const (
	ObservabilityQueryNewParamsParametersHavingsOperationEq  ObservabilityQueryNewParamsParametersHavingsOperation = "eq"
	ObservabilityQueryNewParamsParametersHavingsOperationNeq ObservabilityQueryNewParamsParametersHavingsOperation = "neq"
	ObservabilityQueryNewParamsParametersHavingsOperationGt  ObservabilityQueryNewParamsParametersHavingsOperation = "gt"
	ObservabilityQueryNewParamsParametersHavingsOperationGte ObservabilityQueryNewParamsParametersHavingsOperation = "gte"
	ObservabilityQueryNewParamsParametersHavingsOperationLt  ObservabilityQueryNewParamsParametersHavingsOperation = "lt"
	ObservabilityQueryNewParamsParametersHavingsOperationLte ObservabilityQueryNewParamsParametersHavingsOperation = "lte"
)

func (ObservabilityQueryNewParamsParametersHavingsOperation) IsKnown

type ObservabilityQueryNewParamsParametersNeedle

type ObservabilityQueryNewParamsParametersNeedle struct {
	Value     param.Field[ObservabilityQueryNewParamsParametersNeedleValueUnion] `json:"value" api:"required"`
	IsRegex   param.Field[bool]                                                  `json:"isRegex"`
	MatchCase param.Field[bool]                                                  `json:"matchCase"`
}

Define an expression to search using full-text search.

func (ObservabilityQueryNewParamsParametersNeedle) MarshalJSON

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

type ObservabilityQueryNewParamsParametersNeedleValueUnion

type ObservabilityQueryNewParamsParametersNeedleValueUnion interface {
	ImplementsObservabilityQueryNewParamsParametersNeedleValueUnion()
}

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityQueryNewParamsParametersOrderBy

type ObservabilityQueryNewParamsParametersOrderBy struct {
	// Configure which Calculation to order the results by.
	Value param.Field[string] `json:"value" api:"required"`
	// Set the order of the results
	Order param.Field[ObservabilityQueryNewParamsParametersOrderByOrder] `json:"order"`
}

Configure the order of the results returned by the query.

func (ObservabilityQueryNewParamsParametersOrderBy) MarshalJSON

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

type ObservabilityQueryNewParamsParametersOrderByOrder

type ObservabilityQueryNewParamsParametersOrderByOrder string

Set the order of the results

const (
	ObservabilityQueryNewParamsParametersOrderByOrderAsc  ObservabilityQueryNewParamsParametersOrderByOrder = "asc"
	ObservabilityQueryNewParamsParametersOrderByOrderDesc ObservabilityQueryNewParamsParametersOrderByOrder = "desc"
)

func (ObservabilityQueryNewParamsParametersOrderByOrder) IsKnown

type ObservabilityQueryNewResponse

type ObservabilityQueryNewResponse struct {
	ID string `json:"id" api:"required"`
	// If the query wasn't explcitly saved
	Adhoc       bool   `json:"adhoc" api:"required"`
	Created     string `json:"created" api:"required"`
	CreatedBy   string `json:"createdBy" api:"required"`
	Description string `json:"description" api:"required,nullable"`
	// Query name
	Name       string                                  `json:"name" api:"required"`
	Parameters ObservabilityQueryNewResponseParameters `json:"parameters" api:"required"`
	Updated    string                                  `json:"updated" api:"required"`
	UpdatedBy  string                                  `json:"updatedBy" api:"required"`
	JSON       observabilityQueryNewResponseJSON       `json:"-"`
}

func (*ObservabilityQueryNewResponse) UnmarshalJSON

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

type ObservabilityQueryNewResponseEnvelope

type ObservabilityQueryNewResponseEnvelope struct {
	Errors   []ObservabilityQueryNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityQueryNewResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ObservabilityQueryNewResponse                   `json:"result" api:"required"`
	Success  ObservabilityQueryNewResponseEnvelopeSuccess    `json:"success" api:"required"`
	JSON     observabilityQueryNewResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityQueryNewResponseEnvelope) UnmarshalJSON

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

type ObservabilityQueryNewResponseEnvelopeErrors

type ObservabilityQueryNewResponseEnvelopeErrors struct {
	Message string                                          `json:"message" api:"required"`
	JSON    observabilityQueryNewResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityQueryNewResponseEnvelopeErrors) UnmarshalJSON

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

type ObservabilityQueryNewResponseEnvelopeMessages

type ObservabilityQueryNewResponseEnvelopeMessages struct {
	Message ObservabilityQueryNewResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityQueryNewResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityQueryNewResponseEnvelopeMessages) UnmarshalJSON

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

type ObservabilityQueryNewResponseEnvelopeMessagesMessage

type ObservabilityQueryNewResponseEnvelopeMessagesMessage string
const (
	ObservabilityQueryNewResponseEnvelopeMessagesMessageSuccessfulRequest ObservabilityQueryNewResponseEnvelopeMessagesMessage = "Successful request"
)

func (ObservabilityQueryNewResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityQueryNewResponseEnvelopeSuccess

type ObservabilityQueryNewResponseEnvelopeSuccess bool
const (
	ObservabilityQueryNewResponseEnvelopeSuccessTrue ObservabilityQueryNewResponseEnvelopeSuccess = true
)

func (ObservabilityQueryNewResponseEnvelopeSuccess) IsKnown

type ObservabilityQueryNewResponseParameters

type ObservabilityQueryNewResponseParameters struct {
	// Create Calculations to compute as part of the query.
	Calculations []ObservabilityQueryNewResponseParametersCalculation `json:"calculations"`
	// Set the Datasets to query. Leave it empty to query all the datasets.
	Datasets []string `json:"datasets"`
	// Set a Flag to describe how to combine the filters on the query.
	FilterCombination ObservabilityQueryNewResponseParametersFilterCombination `json:"filterCombination"`
	// Configure the Filters to apply to the query. Supports nested groups via kind:
	// 'group'.
	Filters []ObservabilityQueryNewResponseParametersFilter `json:"filters"`
	// Define how to group the results of the query.
	GroupBys []ObservabilityQueryNewResponseParametersGroupBy `json:"groupBys"`
	// Configure the Having clauses that filter on calculations in the query result.
	Havings []ObservabilityQueryNewResponseParametersHaving `json:"havings"`
	// Set a limit on the number of results / records returned by the query
	Limit int64 `json:"limit"`
	// Define an expression to search using full-text search.
	Needle ObservabilityQueryNewResponseParametersNeedle `json:"needle"`
	// Configure the order of the results returned by the query.
	OrderBy ObservabilityQueryNewResponseParametersOrderBy `json:"orderBy"`
	JSON    observabilityQueryNewResponseParametersJSON    `json:"-"`
}

func (*ObservabilityQueryNewResponseParameters) UnmarshalJSON

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

type ObservabilityQueryNewResponseParametersCalculation

type ObservabilityQueryNewResponseParametersCalculation struct {
	Operator ObservabilityQueryNewResponseParametersCalculationsOperator `json:"operator" api:"required"`
	Alias    string                                                      `json:"alias"`
	Key      string                                                      `json:"key"`
	KeyType  ObservabilityQueryNewResponseParametersCalculationsKeyType  `json:"keyType"`
	JSON     observabilityQueryNewResponseParametersCalculationJSON      `json:"-"`
}

func (*ObservabilityQueryNewResponseParametersCalculation) UnmarshalJSON

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

type ObservabilityQueryNewResponseParametersCalculationsKeyType

type ObservabilityQueryNewResponseParametersCalculationsKeyType string
const (
	ObservabilityQueryNewResponseParametersCalculationsKeyTypeString  ObservabilityQueryNewResponseParametersCalculationsKeyType = "string"
	ObservabilityQueryNewResponseParametersCalculationsKeyTypeNumber  ObservabilityQueryNewResponseParametersCalculationsKeyType = "number"
	ObservabilityQueryNewResponseParametersCalculationsKeyTypeBoolean ObservabilityQueryNewResponseParametersCalculationsKeyType = "boolean"
)

func (ObservabilityQueryNewResponseParametersCalculationsKeyType) IsKnown

type ObservabilityQueryNewResponseParametersCalculationsOperator

type ObservabilityQueryNewResponseParametersCalculationsOperator string
const (
	ObservabilityQueryNewResponseParametersCalculationsOperatorUniq              ObservabilityQueryNewResponseParametersCalculationsOperator = "uniq"
	ObservabilityQueryNewResponseParametersCalculationsOperatorCount             ObservabilityQueryNewResponseParametersCalculationsOperator = "count"
	ObservabilityQueryNewResponseParametersCalculationsOperatorMax               ObservabilityQueryNewResponseParametersCalculationsOperator = "max"
	ObservabilityQueryNewResponseParametersCalculationsOperatorMin               ObservabilityQueryNewResponseParametersCalculationsOperator = "min"
	ObservabilityQueryNewResponseParametersCalculationsOperatorSum               ObservabilityQueryNewResponseParametersCalculationsOperator = "sum"
	ObservabilityQueryNewResponseParametersCalculationsOperatorAvg               ObservabilityQueryNewResponseParametersCalculationsOperator = "avg"
	ObservabilityQueryNewResponseParametersCalculationsOperatorMedian            ObservabilityQueryNewResponseParametersCalculationsOperator = "median"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP001              ObservabilityQueryNewResponseParametersCalculationsOperator = "p001"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP01               ObservabilityQueryNewResponseParametersCalculationsOperator = "p01"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP05               ObservabilityQueryNewResponseParametersCalculationsOperator = "p05"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP10               ObservabilityQueryNewResponseParametersCalculationsOperator = "p10"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP25               ObservabilityQueryNewResponseParametersCalculationsOperator = "p25"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP75               ObservabilityQueryNewResponseParametersCalculationsOperator = "p75"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP90               ObservabilityQueryNewResponseParametersCalculationsOperator = "p90"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP95               ObservabilityQueryNewResponseParametersCalculationsOperator = "p95"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP99               ObservabilityQueryNewResponseParametersCalculationsOperator = "p99"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP999              ObservabilityQueryNewResponseParametersCalculationsOperator = "p999"
	ObservabilityQueryNewResponseParametersCalculationsOperatorStddev            ObservabilityQueryNewResponseParametersCalculationsOperator = "stddev"
	ObservabilityQueryNewResponseParametersCalculationsOperatorVariance          ObservabilityQueryNewResponseParametersCalculationsOperator = "variance"
	ObservabilityQueryNewResponseParametersCalculationsOperatorCountDistinct     ObservabilityQueryNewResponseParametersCalculationsOperator = "COUNT_DISTINCT"
	ObservabilityQueryNewResponseParametersCalculationsOperatorCountUppercase    ObservabilityQueryNewResponseParametersCalculationsOperator = "COUNT"
	ObservabilityQueryNewResponseParametersCalculationsOperatorMaxUppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "MAX"
	ObservabilityQueryNewResponseParametersCalculationsOperatorMinUppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "MIN"
	ObservabilityQueryNewResponseParametersCalculationsOperatorSumUppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "SUM"
	ObservabilityQueryNewResponseParametersCalculationsOperatorAvgUppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "AVG"
	ObservabilityQueryNewResponseParametersCalculationsOperatorMedianUppercase   ObservabilityQueryNewResponseParametersCalculationsOperator = "MEDIAN"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP001Uppercase     ObservabilityQueryNewResponseParametersCalculationsOperator = "P001"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP01Uppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "P01"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP05Uppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "P05"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP10Uppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "P10"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP25Uppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "P25"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP75Uppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "P75"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP90Uppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "P90"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP95Uppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "P95"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP99Uppercase      ObservabilityQueryNewResponseParametersCalculationsOperator = "P99"
	ObservabilityQueryNewResponseParametersCalculationsOperatorP999Uppercase     ObservabilityQueryNewResponseParametersCalculationsOperator = "P999"
	ObservabilityQueryNewResponseParametersCalculationsOperatorStddevUppercase   ObservabilityQueryNewResponseParametersCalculationsOperator = "STDDEV"
	ObservabilityQueryNewResponseParametersCalculationsOperatorVarianceUppercase ObservabilityQueryNewResponseParametersCalculationsOperator = "VARIANCE"
)

func (ObservabilityQueryNewResponseParametersCalculationsOperator) IsKnown

type ObservabilityQueryNewResponseParametersFilter

type ObservabilityQueryNewResponseParametersFilter struct {
	FilterCombination ObservabilityQueryNewResponseParametersFiltersFilterCombination `json:"filterCombination"`
	// This field can have the runtime type of [[]interface{}].
	Filters interface{} `json:"filters"`
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key  string                                             `json:"key"`
	Kind ObservabilityQueryNewResponseParametersFiltersKind `json:"kind"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation ObservabilityQueryNewResponseParametersFiltersOperation `json:"operation"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type ObservabilityQueryNewResponseParametersFiltersType `json:"type"`
	// This field can have the runtime type of
	// [ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafValueUnion].
	Value interface{}                                       `json:"value"`
	JSON  observabilityQueryNewResponseParametersFilterJSON `json:"-"`
	// contains filtered or unexported fields
}

Supports nested groups via kind: 'group'.

func (ObservabilityQueryNewResponseParametersFilter) AsUnion

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

Possible runtime types of the union are ObservabilityQueryNewResponseParametersFiltersObject, ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeaf.

func (*ObservabilityQueryNewResponseParametersFilter) UnmarshalJSON

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

type ObservabilityQueryNewResponseParametersFilterCombination

type ObservabilityQueryNewResponseParametersFilterCombination string

Set a Flag to describe how to combine the filters on the query.

const (
	ObservabilityQueryNewResponseParametersFilterCombinationAnd          ObservabilityQueryNewResponseParametersFilterCombination = "and"
	ObservabilityQueryNewResponseParametersFilterCombinationOr           ObservabilityQueryNewResponseParametersFilterCombination = "or"
	ObservabilityQueryNewResponseParametersFilterCombinationAndUppercase ObservabilityQueryNewResponseParametersFilterCombination = "AND"
	ObservabilityQueryNewResponseParametersFilterCombinationOrUppercase  ObservabilityQueryNewResponseParametersFilterCombination = "OR"
)

func (ObservabilityQueryNewResponseParametersFilterCombination) IsKnown

type ObservabilityQueryNewResponseParametersFiltersFilterCombination

type ObservabilityQueryNewResponseParametersFiltersFilterCombination string
const (
	ObservabilityQueryNewResponseParametersFiltersFilterCombinationAnd          ObservabilityQueryNewResponseParametersFiltersFilterCombination = "and"
	ObservabilityQueryNewResponseParametersFiltersFilterCombinationOr           ObservabilityQueryNewResponseParametersFiltersFilterCombination = "or"
	ObservabilityQueryNewResponseParametersFiltersFilterCombinationAndUppercase ObservabilityQueryNewResponseParametersFiltersFilterCombination = "AND"
	ObservabilityQueryNewResponseParametersFiltersFilterCombinationOrUppercase  ObservabilityQueryNewResponseParametersFiltersFilterCombination = "OR"
)

func (ObservabilityQueryNewResponseParametersFiltersFilterCombination) IsKnown

type ObservabilityQueryNewResponseParametersFiltersKind

type ObservabilityQueryNewResponseParametersFiltersKind string
const (
	ObservabilityQueryNewResponseParametersFiltersKindGroup  ObservabilityQueryNewResponseParametersFiltersKind = "group"
	ObservabilityQueryNewResponseParametersFiltersKindFilter ObservabilityQueryNewResponseParametersFiltersKind = "filter"
)

func (ObservabilityQueryNewResponseParametersFiltersKind) IsKnown

type ObservabilityQueryNewResponseParametersFiltersObject

type ObservabilityQueryNewResponseParametersFiltersObject struct {
	FilterCombination ObservabilityQueryNewResponseParametersFiltersObjectFilterCombination `json:"filterCombination" api:"required"`
	Filters           []interface{}                                                         `json:"filters" api:"required"`
	Kind              ObservabilityQueryNewResponseParametersFiltersObjectKind              `json:"kind" api:"required"`
	JSON              observabilityQueryNewResponseParametersFiltersObjectJSON              `json:"-"`
}

func (*ObservabilityQueryNewResponseParametersFiltersObject) UnmarshalJSON

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

type ObservabilityQueryNewResponseParametersFiltersObjectFilterCombination

type ObservabilityQueryNewResponseParametersFiltersObjectFilterCombination string
const (
	ObservabilityQueryNewResponseParametersFiltersObjectFilterCombinationAnd          ObservabilityQueryNewResponseParametersFiltersObjectFilterCombination = "and"
	ObservabilityQueryNewResponseParametersFiltersObjectFilterCombinationOr           ObservabilityQueryNewResponseParametersFiltersObjectFilterCombination = "or"
	ObservabilityQueryNewResponseParametersFiltersObjectFilterCombinationAndUppercase ObservabilityQueryNewResponseParametersFiltersObjectFilterCombination = "AND"
	ObservabilityQueryNewResponseParametersFiltersObjectFilterCombinationOrUppercase  ObservabilityQueryNewResponseParametersFiltersObjectFilterCombination = "OR"
)

func (ObservabilityQueryNewResponseParametersFiltersObjectFilterCombination) IsKnown

type ObservabilityQueryNewResponseParametersFiltersObjectKind

type ObservabilityQueryNewResponseParametersFiltersObjectKind string
const (
	ObservabilityQueryNewResponseParametersFiltersObjectKindGroup ObservabilityQueryNewResponseParametersFiltersObjectKind = "group"
)

func (ObservabilityQueryNewResponseParametersFiltersObjectKind) IsKnown

type ObservabilityQueryNewResponseParametersFiltersOperation

type ObservabilityQueryNewResponseParametersFiltersOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityQueryNewResponseParametersFiltersOperationIncludes            ObservabilityQueryNewResponseParametersFiltersOperation = "includes"
	ObservabilityQueryNewResponseParametersFiltersOperationNotIncludes         ObservabilityQueryNewResponseParametersFiltersOperation = "not_includes"
	ObservabilityQueryNewResponseParametersFiltersOperationStartsWith          ObservabilityQueryNewResponseParametersFiltersOperation = "starts_with"
	ObservabilityQueryNewResponseParametersFiltersOperationRegex               ObservabilityQueryNewResponseParametersFiltersOperation = "regex"
	ObservabilityQueryNewResponseParametersFiltersOperationExists              ObservabilityQueryNewResponseParametersFiltersOperation = "exists"
	ObservabilityQueryNewResponseParametersFiltersOperationIsNull              ObservabilityQueryNewResponseParametersFiltersOperation = "is_null"
	ObservabilityQueryNewResponseParametersFiltersOperationIn                  ObservabilityQueryNewResponseParametersFiltersOperation = "in"
	ObservabilityQueryNewResponseParametersFiltersOperationNotIn               ObservabilityQueryNewResponseParametersFiltersOperation = "not_in"
	ObservabilityQueryNewResponseParametersFiltersOperationEq                  ObservabilityQueryNewResponseParametersFiltersOperation = "eq"
	ObservabilityQueryNewResponseParametersFiltersOperationNeq                 ObservabilityQueryNewResponseParametersFiltersOperation = "neq"
	ObservabilityQueryNewResponseParametersFiltersOperationGt                  ObservabilityQueryNewResponseParametersFiltersOperation = "gt"
	ObservabilityQueryNewResponseParametersFiltersOperationGte                 ObservabilityQueryNewResponseParametersFiltersOperation = "gte"
	ObservabilityQueryNewResponseParametersFiltersOperationLt                  ObservabilityQueryNewResponseParametersFiltersOperation = "lt"
	ObservabilityQueryNewResponseParametersFiltersOperationLte                 ObservabilityQueryNewResponseParametersFiltersOperation = "lte"
	ObservabilityQueryNewResponseParametersFiltersOperationEquals              ObservabilityQueryNewResponseParametersFiltersOperation = "="
	ObservabilityQueryNewResponseParametersFiltersOperationNotEquals           ObservabilityQueryNewResponseParametersFiltersOperation = "!="
	ObservabilityQueryNewResponseParametersFiltersOperationGreater             ObservabilityQueryNewResponseParametersFiltersOperation = ">"
	ObservabilityQueryNewResponseParametersFiltersOperationGreaterOrEquals     ObservabilityQueryNewResponseParametersFiltersOperation = ">="
	ObservabilityQueryNewResponseParametersFiltersOperationLess                ObservabilityQueryNewResponseParametersFiltersOperation = "<"
	ObservabilityQueryNewResponseParametersFiltersOperationLessOrEquals        ObservabilityQueryNewResponseParametersFiltersOperation = "<="
	ObservabilityQueryNewResponseParametersFiltersOperationIncludesUppercase   ObservabilityQueryNewResponseParametersFiltersOperation = "INCLUDES"
	ObservabilityQueryNewResponseParametersFiltersOperationDoesNotInclude      ObservabilityQueryNewResponseParametersFiltersOperation = "DOES_NOT_INCLUDE"
	ObservabilityQueryNewResponseParametersFiltersOperationMatchRegex          ObservabilityQueryNewResponseParametersFiltersOperation = "MATCH_REGEX"
	ObservabilityQueryNewResponseParametersFiltersOperationExistsUppercase     ObservabilityQueryNewResponseParametersFiltersOperation = "EXISTS"
	ObservabilityQueryNewResponseParametersFiltersOperationDoesNotExist        ObservabilityQueryNewResponseParametersFiltersOperation = "DOES_NOT_EXIST"
	ObservabilityQueryNewResponseParametersFiltersOperationInUppercase         ObservabilityQueryNewResponseParametersFiltersOperation = "IN"
	ObservabilityQueryNewResponseParametersFiltersOperationNotInUppercase      ObservabilityQueryNewResponseParametersFiltersOperation = "NOT_IN"
	ObservabilityQueryNewResponseParametersFiltersOperationStartsWithUppercase ObservabilityQueryNewResponseParametersFiltersOperation = "STARTS_WITH"
)

func (ObservabilityQueryNewResponseParametersFiltersOperation) IsKnown

type ObservabilityQueryNewResponseParametersFiltersType

type ObservabilityQueryNewResponseParametersFiltersType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityQueryNewResponseParametersFiltersTypeString  ObservabilityQueryNewResponseParametersFiltersType = "string"
	ObservabilityQueryNewResponseParametersFiltersTypeNumber  ObservabilityQueryNewResponseParametersFiltersType = "number"
	ObservabilityQueryNewResponseParametersFiltersTypeBoolean ObservabilityQueryNewResponseParametersFiltersType = "boolean"
)

func (ObservabilityQueryNewResponseParametersFiltersType) IsKnown

type ObservabilityQueryNewResponseParametersFiltersUnion

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

Supports nested groups via kind: 'group'.

Union satisfied by ObservabilityQueryNewResponseParametersFiltersObject or ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeaf.

type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeaf

type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeaf struct {
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key string `json:"key" api:"required"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation `json:"operation" api:"required"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafType `json:"type" api:"required"`
	// Discriminator for leaf filter nodes. Always 'filter' when present; may be
	// omitted.
	Kind ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafKind `json:"kind"`
	// Comparison value. Must match actual values in your data — verify with the values
	// endpoint. Ensure the value type (string/number/boolean) matches the field type.
	// String comparisons are case-sensitive. Regex uses RE2 syntax (no
	// lookaheads/lookbehinds).
	Value ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafValueUnion `json:"value"`
	JSON  observabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafJSON       `json:"-"`
}

A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.

func (*ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeaf) UnmarshalJSON

type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafKind

type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafKind string

Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.

const (
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafKindFilter ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafKind = "filter"
)

func (ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafKind) IsKnown

type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation

type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationIncludes            ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "includes"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationNotIncludes         ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "not_includes"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationStartsWith          ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "starts_with"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationRegex               ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "regex"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationExists              ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "exists"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationIsNull              ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "is_null"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationIn                  ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "in"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationNotIn               ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "not_in"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationEq                  ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "eq"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationNeq                 ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "neq"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationGt                  ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "gt"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationGte                 ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "gte"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationLt                  ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "lt"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationLte                 ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "lte"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationEquals              ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "="
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationNotEquals           ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "!="
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationGreater             ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = ">"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationGreaterOrEquals     ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = ">="
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationLess                ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "<"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationLessOrEquals        ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "<="
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationIncludesUppercase   ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "INCLUDES"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationDoesNotInclude      ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_INCLUDE"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationMatchRegex          ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "MATCH_REGEX"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationExistsUppercase     ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "EXISTS"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationDoesNotExist        ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_EXIST"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationInUppercase         ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "IN"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationNotInUppercase      ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "NOT_IN"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperationStartsWithUppercase ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation = "STARTS_WITH"
)

func (ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafOperation) IsKnown

type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafType

type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafTypeString  ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafType = "string"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafTypeNumber  ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafType = "number"
	ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafTypeBoolean ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafType = "boolean"
)

func (ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafType) IsKnown

type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafValueUnion

type ObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafValueUnion interface {
	ImplementsObservabilityQueryNewResponseParametersFiltersWorkersObservabilityFilterLeafValueUnion()
}

Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).

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

type ObservabilityQueryNewResponseParametersGroupBy

type ObservabilityQueryNewResponseParametersGroupBy struct {
	Type  ObservabilityQueryNewResponseParametersGroupBysType `json:"type" api:"required"`
	Value string                                              `json:"value" api:"required"`
	JSON  observabilityQueryNewResponseParametersGroupByJSON  `json:"-"`
}

func (*ObservabilityQueryNewResponseParametersGroupBy) UnmarshalJSON

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

type ObservabilityQueryNewResponseParametersGroupBysType

type ObservabilityQueryNewResponseParametersGroupBysType string
const (
	ObservabilityQueryNewResponseParametersGroupBysTypeString  ObservabilityQueryNewResponseParametersGroupBysType = "string"
	ObservabilityQueryNewResponseParametersGroupBysTypeNumber  ObservabilityQueryNewResponseParametersGroupBysType = "number"
	ObservabilityQueryNewResponseParametersGroupBysTypeBoolean ObservabilityQueryNewResponseParametersGroupBysType = "boolean"
)

func (ObservabilityQueryNewResponseParametersGroupBysType) IsKnown

type ObservabilityQueryNewResponseParametersHaving

type ObservabilityQueryNewResponseParametersHaving struct {
	Key       string                                                  `json:"key" api:"required"`
	Operation ObservabilityQueryNewResponseParametersHavingsOperation `json:"operation" api:"required"`
	Value     float64                                                 `json:"value" api:"required"`
	JSON      observabilityQueryNewResponseParametersHavingJSON       `json:"-"`
}

func (*ObservabilityQueryNewResponseParametersHaving) UnmarshalJSON

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

type ObservabilityQueryNewResponseParametersHavingsOperation

type ObservabilityQueryNewResponseParametersHavingsOperation string
const (
	ObservabilityQueryNewResponseParametersHavingsOperationEq  ObservabilityQueryNewResponseParametersHavingsOperation = "eq"
	ObservabilityQueryNewResponseParametersHavingsOperationNeq ObservabilityQueryNewResponseParametersHavingsOperation = "neq"
	ObservabilityQueryNewResponseParametersHavingsOperationGt  ObservabilityQueryNewResponseParametersHavingsOperation = "gt"
	ObservabilityQueryNewResponseParametersHavingsOperationGte ObservabilityQueryNewResponseParametersHavingsOperation = "gte"
	ObservabilityQueryNewResponseParametersHavingsOperationLt  ObservabilityQueryNewResponseParametersHavingsOperation = "lt"
	ObservabilityQueryNewResponseParametersHavingsOperationLte ObservabilityQueryNewResponseParametersHavingsOperation = "lte"
)

func (ObservabilityQueryNewResponseParametersHavingsOperation) IsKnown

type ObservabilityQueryNewResponseParametersNeedle

type ObservabilityQueryNewResponseParametersNeedle struct {
	Value     ObservabilityQueryNewResponseParametersNeedleValueUnion `json:"value" api:"required"`
	IsRegex   bool                                                    `json:"isRegex"`
	MatchCase bool                                                    `json:"matchCase"`
	JSON      observabilityQueryNewResponseParametersNeedleJSON       `json:"-"`
}

Define an expression to search using full-text search.

func (*ObservabilityQueryNewResponseParametersNeedle) UnmarshalJSON

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

type ObservabilityQueryNewResponseParametersNeedleValueUnion

type ObservabilityQueryNewResponseParametersNeedleValueUnion interface {
	ImplementsObservabilityQueryNewResponseParametersNeedleValueUnion()
}

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

type ObservabilityQueryNewResponseParametersOrderBy

type ObservabilityQueryNewResponseParametersOrderBy struct {
	// Configure which Calculation to order the results by.
	Value string `json:"value" api:"required"`
	// Set the order of the results
	Order ObservabilityQueryNewResponseParametersOrderByOrder `json:"order"`
	JSON  observabilityQueryNewResponseParametersOrderByJSON  `json:"-"`
}

Configure the order of the results returned by the query.

func (*ObservabilityQueryNewResponseParametersOrderBy) UnmarshalJSON

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

type ObservabilityQueryNewResponseParametersOrderByOrder

type ObservabilityQueryNewResponseParametersOrderByOrder string

Set the order of the results

const (
	ObservabilityQueryNewResponseParametersOrderByOrderAsc  ObservabilityQueryNewResponseParametersOrderByOrder = "asc"
	ObservabilityQueryNewResponseParametersOrderByOrderDesc ObservabilityQueryNewResponseParametersOrderByOrder = "desc"
)

func (ObservabilityQueryNewResponseParametersOrderByOrder) IsKnown

type ObservabilityQueryService

type ObservabilityQueryService struct {
	Options []option.RequestOption
}

ObservabilityQueryService 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 NewObservabilityQueryService method instead.

func NewObservabilityQueryService

func NewObservabilityQueryService(opts ...option.RequestOption) (r *ObservabilityQueryService)

NewObservabilityQueryService 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 (*ObservabilityQueryService) List

List saved queries.

func (*ObservabilityQueryService) ListAutoPaging

List saved queries.

func (*ObservabilityQueryService) New

Persist query for later use.

type ObservabilityService

type ObservabilityService struct {
	Options      []option.RequestOption
	Telemetry    *ObservabilityTelemetryService
	Destinations *ObservabilityDestinationService
	Queries      *ObservabilityQueryService
}

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 ObservabilityTelemetryKeysParams

type ObservabilityTelemetryKeysParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Leave this empty to use the default datasets
	Datasets param.Field[[]string] `json:"datasets"`
	// Apply filters to narrow key discovery. Supports nested groups via kind: 'group'.
	// Maximum nesting depth is 4.
	Filters param.Field[[]ObservabilityTelemetryKeysParamsFilterUnion] `json:"filters"`
	From    param.Field[float64]                                       `json:"from"`
	// If the user suggests a key, use this to narrow down the list of keys returned.
	// Make sure matchCase is false to avoid case sensitivity issues.
	KeyNeedle param.Field[ObservabilityTelemetryKeysParamsKeyNeedle] `json:"keyNeedle"`
	// Advanced usage: set limit=1000+ to retrieve comprehensive key options without
	// needing additional filtering.
	Limit param.Field[float64] `json:"limit"`
	// Search for a specific substring in any of the events
	Needle param.Field[ObservabilityTelemetryKeysParamsNeedle] `json:"needle"`
	To     param.Field[float64]                                `json:"to"`
}

func (ObservabilityTelemetryKeysParams) MarshalJSON

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

type ObservabilityTelemetryKeysParamsFilter

type ObservabilityTelemetryKeysParamsFilter struct {
	FilterCombination param.Field[ObservabilityTelemetryKeysParamsFiltersFilterCombination] `json:"filterCombination"`
	Filters           param.Field[interface{}]                                              `json:"filters"`
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key  param.Field[string]                                      `json:"key"`
	Kind param.Field[ObservabilityTelemetryKeysParamsFiltersKind] `json:"kind"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryKeysParamsFiltersOperation] `json:"operation"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type  param.Field[ObservabilityTelemetryKeysParamsFiltersType] `json:"type"`
	Value param.Field[interface{}]                                 `json:"value"`
}

Supports nested groups via kind: 'group'.

func (ObservabilityTelemetryKeysParamsFilter) MarshalJSON

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

type ObservabilityTelemetryKeysParamsFilterUnion

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

Supports nested groups via kind: 'group'.

Satisfied by workers.ObservabilityTelemetryKeysParamsFiltersObject, workers.ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeaf, ObservabilityTelemetryKeysParamsFilter.

type ObservabilityTelemetryKeysParamsFiltersFilterCombination

type ObservabilityTelemetryKeysParamsFiltersFilterCombination string
const (
	ObservabilityTelemetryKeysParamsFiltersFilterCombinationAnd          ObservabilityTelemetryKeysParamsFiltersFilterCombination = "and"
	ObservabilityTelemetryKeysParamsFiltersFilterCombinationOr           ObservabilityTelemetryKeysParamsFiltersFilterCombination = "or"
	ObservabilityTelemetryKeysParamsFiltersFilterCombinationAndUppercase ObservabilityTelemetryKeysParamsFiltersFilterCombination = "AND"
	ObservabilityTelemetryKeysParamsFiltersFilterCombinationOrUppercase  ObservabilityTelemetryKeysParamsFiltersFilterCombination = "OR"
)

func (ObservabilityTelemetryKeysParamsFiltersFilterCombination) IsKnown

type ObservabilityTelemetryKeysParamsFiltersKind

type ObservabilityTelemetryKeysParamsFiltersKind string
const (
	ObservabilityTelemetryKeysParamsFiltersKindGroup  ObservabilityTelemetryKeysParamsFiltersKind = "group"
	ObservabilityTelemetryKeysParamsFiltersKindFilter ObservabilityTelemetryKeysParamsFiltersKind = "filter"
)

func (ObservabilityTelemetryKeysParamsFiltersKind) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObject

type ObservabilityTelemetryKeysParamsFiltersObject struct {
	FilterCombination param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFilterCombination] `json:"filterCombination" api:"required"`
	Filters           param.Field[[]ObservabilityTelemetryKeysParamsFiltersObjectFilterUnion]     `json:"filters" api:"required"`
	Kind              param.Field[ObservabilityTelemetryKeysParamsFiltersObjectKind]              `json:"kind" api:"required"`
}

func (ObservabilityTelemetryKeysParamsFiltersObject) MarshalJSON

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

type ObservabilityTelemetryKeysParamsFiltersObjectFilter

type ObservabilityTelemetryKeysParamsFiltersObjectFilter struct {
	FilterCombination param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombination] `json:"filterCombination"`
	Filters           param.Field[interface{}]                                                           `json:"filters"`
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key  param.Field[string]                                                   `json:"key"`
	Kind param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFiltersKind] `json:"kind"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation] `json:"operation"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type  param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFiltersType] `json:"type"`
	Value param.Field[interface{}]                                              `json:"value"`
}

Supports nested groups via kind: 'group'.

func (ObservabilityTelemetryKeysParamsFiltersObjectFilter) MarshalJSON

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

type ObservabilityTelemetryKeysParamsFiltersObjectFilterCombination

type ObservabilityTelemetryKeysParamsFiltersObjectFilterCombination string
const (
	ObservabilityTelemetryKeysParamsFiltersObjectFilterCombinationAnd          ObservabilityTelemetryKeysParamsFiltersObjectFilterCombination = "and"
	ObservabilityTelemetryKeysParamsFiltersObjectFilterCombinationOr           ObservabilityTelemetryKeysParamsFiltersObjectFilterCombination = "or"
	ObservabilityTelemetryKeysParamsFiltersObjectFilterCombinationAndUppercase ObservabilityTelemetryKeysParamsFiltersObjectFilterCombination = "AND"
	ObservabilityTelemetryKeysParamsFiltersObjectFilterCombinationOrUppercase  ObservabilityTelemetryKeysParamsFiltersObjectFilterCombination = "OR"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectFilterCombination) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObjectFilterUnion

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

Supports nested groups via kind: 'group'.

Satisfied by workers.ObservabilityTelemetryKeysParamsFiltersObjectFiltersObject, workers.ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeaf, ObservabilityTelemetryKeysParamsFiltersObjectFilter.

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombination

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombination string
const (
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombinationAnd          ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombination = "and"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombinationOr           ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombination = "or"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombinationAndUppercase ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombination = "AND"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombinationOrUppercase  ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombination = "OR"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersFilterCombination) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersKind

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersKind string
const (
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersKindGroup  ObservabilityTelemetryKeysParamsFiltersObjectFiltersKind = "group"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersKindFilter ObservabilityTelemetryKeysParamsFiltersObjectFiltersKind = "filter"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersKind) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersObject

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersObject struct {
	FilterCombination param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombination] `json:"filterCombination" api:"required"`
	Filters           param.Field[[]interface{}]                                                               `json:"filters" api:"required"`
	Kind              param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectKind]              `json:"kind" api:"required"`
}

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersObject) MarshalJSON

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombination

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombination string
const (
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombinationAnd          ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombination = "and"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombinationOr           ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombination = "or"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombinationAndUppercase ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombination = "AND"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombinationOrUppercase  ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombination = "OR"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectFilterCombination) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectKind

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectKind string
const (
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectKindGroup ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectKind = "group"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersObjectKind) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationIncludes            ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "includes"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationNotIncludes         ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "not_includes"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationStartsWith          ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "starts_with"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationRegex               ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "regex"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationExists              ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "exists"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationIsNull              ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "is_null"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationIn                  ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "in"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationNotIn               ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "not_in"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationEq                  ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "eq"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationNeq                 ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "neq"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationGt                  ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "gt"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationGte                 ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "gte"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationLt                  ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "lt"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationLte                 ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "lte"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationEquals              ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "="
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationNotEquals           ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "!="
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationGreater             ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = ">"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationGreaterOrEquals     ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = ">="
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationLess                ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "<"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationLessOrEquals        ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "<="
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationIncludesUppercase   ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "INCLUDES"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationDoesNotInclude      ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationMatchRegex          ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "MATCH_REGEX"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationExistsUppercase     ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "EXISTS"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationDoesNotExist        ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationInUppercase         ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "IN"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationNotInUppercase      ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "NOT_IN"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperationStartsWithUppercase ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersOperation) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersType

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersTypeString  ObservabilityTelemetryKeysParamsFiltersObjectFiltersType = "string"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersTypeNumber  ObservabilityTelemetryKeysParamsFiltersObjectFiltersType = "number"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersTypeBoolean ObservabilityTelemetryKeysParamsFiltersObjectFiltersType = "boolean"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersType) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeaf

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeaf struct {
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key param.Field[string] `json:"key" api:"required"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation] `json:"operation" api:"required"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType] `json:"type" api:"required"`
	// Discriminator for leaf filter nodes. Always 'filter' when present; may be
	// omitted.
	Kind param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKind] `json:"kind"`
	// Comparison value. Must match actual values in your data — verify with the values
	// endpoint. Ensure the value type (string/number/boolean) matches the field type.
	// String comparisons are case-sensitive. Regex uses RE2 syntax (no
	// lookaheads/lookbehinds).
	Value param.Field[ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion] `json:"value"`
}

A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeaf) MarshalJSON

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKind

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKind string

Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.

const (
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKindFilter ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKind = "filter"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKind) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIncludes            ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "includes"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotIncludes         ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "not_includes"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationStartsWith          ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "starts_with"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationRegex               ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "regex"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationExists              ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "exists"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIsNull              ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "is_null"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIn                  ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "in"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotIn               ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "not_in"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationEq                  ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "eq"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNeq                 ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "neq"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGt                  ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "gt"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGte                 ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "gte"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLt                  ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "lt"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLte                 ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "lte"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationEquals              ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "="
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotEquals           ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "!="
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGreater             ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = ">"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGreaterOrEquals     ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = ">="
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLess                ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "<"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLessOrEquals        ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "<="
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIncludesUppercase   ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "INCLUDES"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationDoesNotInclude      ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationMatchRegex          ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "MATCH_REGEX"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationExistsUppercase     ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "EXISTS"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationDoesNotExist        ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationInUppercase         ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "IN"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotInUppercase      ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "NOT_IN"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationStartsWithUppercase ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafTypeString  ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType = "string"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafTypeNumber  ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType = "number"
	ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafTypeBoolean ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType = "boolean"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType) IsKnown

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion

type ObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion interface {
	ImplementsObservabilityTelemetryKeysParamsFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion()
}

Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityTelemetryKeysParamsFiltersObjectKind

type ObservabilityTelemetryKeysParamsFiltersObjectKind string
const (
	ObservabilityTelemetryKeysParamsFiltersObjectKindGroup ObservabilityTelemetryKeysParamsFiltersObjectKind = "group"
)

func (ObservabilityTelemetryKeysParamsFiltersObjectKind) IsKnown

type ObservabilityTelemetryKeysParamsFiltersOperation

type ObservabilityTelemetryKeysParamsFiltersOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryKeysParamsFiltersOperationIncludes            ObservabilityTelemetryKeysParamsFiltersOperation = "includes"
	ObservabilityTelemetryKeysParamsFiltersOperationNotIncludes         ObservabilityTelemetryKeysParamsFiltersOperation = "not_includes"
	ObservabilityTelemetryKeysParamsFiltersOperationStartsWith          ObservabilityTelemetryKeysParamsFiltersOperation = "starts_with"
	ObservabilityTelemetryKeysParamsFiltersOperationRegex               ObservabilityTelemetryKeysParamsFiltersOperation = "regex"
	ObservabilityTelemetryKeysParamsFiltersOperationExists              ObservabilityTelemetryKeysParamsFiltersOperation = "exists"
	ObservabilityTelemetryKeysParamsFiltersOperationIsNull              ObservabilityTelemetryKeysParamsFiltersOperation = "is_null"
	ObservabilityTelemetryKeysParamsFiltersOperationIn                  ObservabilityTelemetryKeysParamsFiltersOperation = "in"
	ObservabilityTelemetryKeysParamsFiltersOperationNotIn               ObservabilityTelemetryKeysParamsFiltersOperation = "not_in"
	ObservabilityTelemetryKeysParamsFiltersOperationEq                  ObservabilityTelemetryKeysParamsFiltersOperation = "eq"
	ObservabilityTelemetryKeysParamsFiltersOperationNeq                 ObservabilityTelemetryKeysParamsFiltersOperation = "neq"
	ObservabilityTelemetryKeysParamsFiltersOperationGt                  ObservabilityTelemetryKeysParamsFiltersOperation = "gt"
	ObservabilityTelemetryKeysParamsFiltersOperationGte                 ObservabilityTelemetryKeysParamsFiltersOperation = "gte"
	ObservabilityTelemetryKeysParamsFiltersOperationLt                  ObservabilityTelemetryKeysParamsFiltersOperation = "lt"
	ObservabilityTelemetryKeysParamsFiltersOperationLte                 ObservabilityTelemetryKeysParamsFiltersOperation = "lte"
	ObservabilityTelemetryKeysParamsFiltersOperationEquals              ObservabilityTelemetryKeysParamsFiltersOperation = "="
	ObservabilityTelemetryKeysParamsFiltersOperationNotEquals           ObservabilityTelemetryKeysParamsFiltersOperation = "!="
	ObservabilityTelemetryKeysParamsFiltersOperationGreater             ObservabilityTelemetryKeysParamsFiltersOperation = ">"
	ObservabilityTelemetryKeysParamsFiltersOperationGreaterOrEquals     ObservabilityTelemetryKeysParamsFiltersOperation = ">="
	ObservabilityTelemetryKeysParamsFiltersOperationLess                ObservabilityTelemetryKeysParamsFiltersOperation = "<"
	ObservabilityTelemetryKeysParamsFiltersOperationLessOrEquals        ObservabilityTelemetryKeysParamsFiltersOperation = "<="
	ObservabilityTelemetryKeysParamsFiltersOperationIncludesUppercase   ObservabilityTelemetryKeysParamsFiltersOperation = "INCLUDES"
	ObservabilityTelemetryKeysParamsFiltersOperationDoesNotInclude      ObservabilityTelemetryKeysParamsFiltersOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryKeysParamsFiltersOperationMatchRegex          ObservabilityTelemetryKeysParamsFiltersOperation = "MATCH_REGEX"
	ObservabilityTelemetryKeysParamsFiltersOperationExistsUppercase     ObservabilityTelemetryKeysParamsFiltersOperation = "EXISTS"
	ObservabilityTelemetryKeysParamsFiltersOperationDoesNotExist        ObservabilityTelemetryKeysParamsFiltersOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryKeysParamsFiltersOperationInUppercase         ObservabilityTelemetryKeysParamsFiltersOperation = "IN"
	ObservabilityTelemetryKeysParamsFiltersOperationNotInUppercase      ObservabilityTelemetryKeysParamsFiltersOperation = "NOT_IN"
	ObservabilityTelemetryKeysParamsFiltersOperationStartsWithUppercase ObservabilityTelemetryKeysParamsFiltersOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryKeysParamsFiltersOperation) IsKnown

type ObservabilityTelemetryKeysParamsFiltersType

type ObservabilityTelemetryKeysParamsFiltersType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryKeysParamsFiltersTypeString  ObservabilityTelemetryKeysParamsFiltersType = "string"
	ObservabilityTelemetryKeysParamsFiltersTypeNumber  ObservabilityTelemetryKeysParamsFiltersType = "number"
	ObservabilityTelemetryKeysParamsFiltersTypeBoolean ObservabilityTelemetryKeysParamsFiltersType = "boolean"
)

func (ObservabilityTelemetryKeysParamsFiltersType) IsKnown

type ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeaf

type ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeaf struct {
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key param.Field[string] `json:"key" api:"required"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation] `json:"operation" api:"required"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type param.Field[ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafType] `json:"type" api:"required"`
	// Discriminator for leaf filter nodes. Always 'filter' when present; may be
	// omitted.
	Kind param.Field[ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafKind] `json:"kind"`
	// Comparison value. Must match actual values in your data — verify with the values
	// endpoint. Ensure the value type (string/number/boolean) matches the field type.
	// String comparisons are case-sensitive. Regex uses RE2 syntax (no
	// lookaheads/lookbehinds).
	Value param.Field[ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafValueUnion] `json:"value"`
}

A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.

func (ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeaf) MarshalJSON

type ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafKind

type ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafKind string

Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.

const (
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafKindFilter ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafKind = "filter"
)

func (ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafKind) IsKnown

type ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation

type ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationIncludes            ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "includes"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationNotIncludes         ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "not_includes"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationStartsWith          ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "starts_with"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationRegex               ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "regex"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationExists              ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "exists"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationIsNull              ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "is_null"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationIn                  ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "in"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationNotIn               ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "not_in"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationEq                  ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "eq"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationNeq                 ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "neq"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationGt                  ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "gt"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationGte                 ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "gte"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationLt                  ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "lt"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationLte                 ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "lte"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationEquals              ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "="
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationNotEquals           ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "!="
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationGreater             ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = ">"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationGreaterOrEquals     ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = ">="
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationLess                ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "<"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationLessOrEquals        ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "<="
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationIncludesUppercase   ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "INCLUDES"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationDoesNotInclude      ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationMatchRegex          ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "MATCH_REGEX"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationExistsUppercase     ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "EXISTS"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationDoesNotExist        ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationInUppercase         ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "IN"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationNotInUppercase      ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "NOT_IN"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperationStartsWithUppercase ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafOperation) IsKnown

type ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafType

type ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafTypeString  ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafType = "string"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafTypeNumber  ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafType = "number"
	ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafTypeBoolean ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafType = "boolean"
)

func (ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafType) IsKnown

type ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafValueUnion

type ObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafValueUnion interface {
	ImplementsObservabilityTelemetryKeysParamsFiltersWorkersObservabilityFilterLeafValueUnion()
}

Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityTelemetryKeysParamsKeyNeedle

type ObservabilityTelemetryKeysParamsKeyNeedle struct {
	// The text or pattern to search for.
	Value param.Field[ObservabilityTelemetryKeysParamsKeyNeedleValueUnion] `json:"value" api:"required"`
	// When true, treats the value as a regular expression (RE2 syntax).
	IsRegex param.Field[bool] `json:"isRegex"`
	// When true, performs a case-sensitive search. Defaults to case-insensitive.
	MatchCase param.Field[bool] `json:"matchCase"`
}

If the user suggests a key, use this to narrow down the list of keys returned. Make sure matchCase is false to avoid case sensitivity issues.

func (ObservabilityTelemetryKeysParamsKeyNeedle) MarshalJSON

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

type ObservabilityTelemetryKeysParamsKeyNeedleValueUnion

type ObservabilityTelemetryKeysParamsKeyNeedleValueUnion interface {
	ImplementsObservabilityTelemetryKeysParamsKeyNeedleValueUnion()
}

The text or pattern to search for.

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityTelemetryKeysParamsNeedle

type ObservabilityTelemetryKeysParamsNeedle struct {
	// The text or pattern to search for.
	Value param.Field[ObservabilityTelemetryKeysParamsNeedleValueUnion] `json:"value" api:"required"`
	// When true, treats the value as a regular expression (RE2 syntax).
	IsRegex param.Field[bool] `json:"isRegex"`
	// When true, performs a case-sensitive search. Defaults to case-insensitive.
	MatchCase param.Field[bool] `json:"matchCase"`
}

Search for a specific substring in any of the events

func (ObservabilityTelemetryKeysParamsNeedle) MarshalJSON

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

type ObservabilityTelemetryKeysParamsNeedleValueUnion

type ObservabilityTelemetryKeysParamsNeedleValueUnion interface {
	ImplementsObservabilityTelemetryKeysParamsNeedleValueUnion()
}

The text or pattern to search for.

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityTelemetryKeysResponse

type ObservabilityTelemetryKeysResponse struct {
	Key        string                                 `json:"key" api:"required"`
	LastSeenAt float64                                `json:"lastSeenAt" api:"required"`
	Type       ObservabilityTelemetryKeysResponseType `json:"type" api:"required"`
	JSON       observabilityTelemetryKeysResponseJSON `json:"-"`
}

func (*ObservabilityTelemetryKeysResponse) UnmarshalJSON

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

type ObservabilityTelemetryKeysResponseType

type ObservabilityTelemetryKeysResponseType string
const (
	ObservabilityTelemetryKeysResponseTypeString  ObservabilityTelemetryKeysResponseType = "string"
	ObservabilityTelemetryKeysResponseTypeBoolean ObservabilityTelemetryKeysResponseType = "boolean"
	ObservabilityTelemetryKeysResponseTypeNumber  ObservabilityTelemetryKeysResponseType = "number"
)

func (ObservabilityTelemetryKeysResponseType) IsKnown

type ObservabilityTelemetryQueryParams

type ObservabilityTelemetryQueryParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Identifier for the query. When parameters are omitted, this ID is used to load a
	// previously saved query's parameters. When providing parameters inline, pass any
	// identifier (e.g. an ad-hoc ID).
	QueryID param.Field[string] `json:"queryId" api:"required"`
	// Timeframe for the query using Unix timestamps in milliseconds. Narrower
	// timeframes produce faster responses and more specific results.
	Timeframe param.Field[ObservabilityTelemetryQueryParamsTimeframe] `json:"timeframe" api:"required"`
	// When true, includes time-series data in the response.
	Chart param.Field[bool] `json:"chart"`
	// When true, includes a comparison dataset from the previous time period of equal
	// length.
	Compare param.Field[bool] `json:"compare"`
	// When true, executes the query without persisting the results. Useful for
	// validation or previewing.
	Dry param.Field[bool] `json:"dry"`
	// Number of time-series buckets. Only used when view is 'calculations'. Omit to
	// let the system auto-detect an appropriate granularity.
	Granularity param.Field[float64] `json:"granularity"`
	// When true, omits time-series data from the response and returns only aggregated
	// values. Reduces response size when series are not needed.
	IgnoreSeries param.Field[bool] `json:"ignoreSeries"`
	// Maximum number of events to return when view is 'events'. Also controls the
	// number of group-by rows when view is 'calculations'.
	Limit param.Field[float64] `json:"limit"`
	// Cursor for pagination in event, trace, and invocation views. Pass the
	// $metadata.id of the last returned item to fetch the next page.
	Offset param.Field[string] `json:"offset"`
	// Numeric offset for paginating grouped/pattern results (top-N lists). Use
	// together with limit. Not used by cursor-based pagination.
	OffsetBy param.Field[float64] `json:"offsetBy"`
	// Pagination direction: 'next' for forward, 'prev' for backward.
	OffsetDirection param.Field[string] `json:"offsetDirection"`
	// Query parameters defining what data to retrieve — filters, calculations,
	// group-bys, and ordering. In practice this should always be provided for ad-hoc
	// queries. Only omit when executing a previously saved query by queryId. Use the
	// keys and values endpoints to discover available fields before building filters.
	Parameters param.Field[ObservabilityTelemetryQueryParamsParameters] `json:"parameters"`
	// Controls the shape of the response. 'events': individual log lines matching the
	// query. 'calculations': aggregated metrics (count, avg, p99, etc.) with optional
	// group-by breakdowns and time-series. 'invocations': events grouped by request
	// ID. 'traces': distributed trace summaries. 'agents': Durable Object agent
	// summaries.
	View param.Field[ObservabilityTelemetryQueryParamsView] `json:"view"`
}

func (ObservabilityTelemetryQueryParams) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParameters

type ObservabilityTelemetryQueryParamsParameters struct {
	// Aggregation calculations to compute (e.g. count, avg, p99). Each calculation
	// produces aggregate values and optional time-series data.
	Calculations param.Field[[]ObservabilityTelemetryQueryParamsParametersCalculation] `json:"calculations"`
	// Datasets to query. Leave empty to query all available datasets.
	Datasets param.Field[[]string] `json:"datasets"`
	// Logical operator for combining top-level filters: 'and' (all must match) or 'or'
	// (any must match). Defaults to 'and'.
	FilterCombination param.Field[ObservabilityTelemetryQueryParamsParametersFilterCombination] `json:"filterCombination"`
	// Filters to narrow query results. Use the keys and values endpoints to discover
	// available fields before building filters. Supports nested groups via kind:
	// 'group'. Maximum nesting depth is 4.
	Filters param.Field[[]ObservabilityTelemetryQueryParamsParametersFilterUnion] `json:"filters"`
	// Fields to group calculation results by. Only applicable when the query view is
	// 'calculations'. Produces per-group aggregate values.
	GroupBys param.Field[[]ObservabilityTelemetryQueryParamsParametersGroupBy] `json:"groupBys"`
	// Post-aggregation filters applied to calculation results. Use to filter groups
	// after aggregation (e.g. only groups where count > 100).
	Havings param.Field[[]ObservabilityTelemetryQueryParamsParametersHaving] `json:"havings"`
	// Maximum number of group-by rows to return in calculation results. A value of 10
	// is a sensible default for most use cases.
	Limit param.Field[int64] `json:"limit"`
	// Full-text search expression applied across all event fields. Matches events
	// containing the specified text.
	Needle param.Field[ObservabilityTelemetryQueryParamsParametersNeedle] `json:"needle"`
	// Ordering for grouped calculation results. Only effective when a group-by is
	// present.
	OrderBy param.Field[ObservabilityTelemetryQueryParamsParametersOrderBy] `json:"orderBy"`
}

Query parameters defining what data to retrieve — filters, calculations, group-bys, and ordering. In practice this should always be provided for ad-hoc queries. Only omit when executing a previously saved query by queryId. Use the keys and values endpoints to discover available fields before building filters.

func (ObservabilityTelemetryQueryParamsParameters) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersCalculation

type ObservabilityTelemetryQueryParamsParametersCalculation struct {
	// Aggregation operator to apply. Examples: count, avg, sum, min, max, p50, p90,
	// p95, p99, uniq, stddev, variance.
	Operator param.Field[ObservabilityTelemetryQueryParamsParametersCalculationsOperator] `json:"operator" api:"required"`
	// Custom label for this calculation in the results. Useful for distinguishing
	// multiple calculations.
	Alias param.Field[string] `json:"alias"`
	// Field name to calculate over. Must exist in the data — verify with the keys
	// endpoint. Omit for operators that don't require a key (e.g. count).
	Key param.Field[string] `json:"key"`
	// Data type of the key. Required when key is provided to ensure correct
	// aggregation.
	KeyType param.Field[ObservabilityTelemetryQueryParamsParametersCalculationsKeyType] `json:"keyType"`
}

func (ObservabilityTelemetryQueryParamsParametersCalculation) MarshalJSON

type ObservabilityTelemetryQueryParamsParametersCalculationsKeyType

type ObservabilityTelemetryQueryParamsParametersCalculationsKeyType string

Data type of the key. Required when key is provided to ensure correct aggregation.

const (
	ObservabilityTelemetryQueryParamsParametersCalculationsKeyTypeString  ObservabilityTelemetryQueryParamsParametersCalculationsKeyType = "string"
	ObservabilityTelemetryQueryParamsParametersCalculationsKeyTypeNumber  ObservabilityTelemetryQueryParamsParametersCalculationsKeyType = "number"
	ObservabilityTelemetryQueryParamsParametersCalculationsKeyTypeBoolean ObservabilityTelemetryQueryParamsParametersCalculationsKeyType = "boolean"
)

func (ObservabilityTelemetryQueryParamsParametersCalculationsKeyType) IsKnown

type ObservabilityTelemetryQueryParamsParametersCalculationsOperator

type ObservabilityTelemetryQueryParamsParametersCalculationsOperator string

Aggregation operator to apply. Examples: count, avg, sum, min, max, p50, p90, p95, p99, uniq, stddev, variance.

const (
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorUniq              ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "uniq"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorCount             ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "count"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorMax               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "max"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorMin               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "min"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorSum               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "sum"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorAvg               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "avg"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorMedian            ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "median"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP001              ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "p001"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP01               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "p01"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP05               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "p05"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP10               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "p10"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP25               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "p25"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP75               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "p75"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP90               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "p90"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP95               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "p95"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP99               ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "p99"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP999              ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "p999"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorStddev            ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "stddev"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorVariance          ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "variance"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorCountDistinct     ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "COUNT_DISTINCT"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorCountUppercase    ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "COUNT"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorMaxUppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "MAX"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorMinUppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "MIN"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorSumUppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "SUM"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorAvgUppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "AVG"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorMedianUppercase   ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "MEDIAN"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP001Uppercase     ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "P001"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP01Uppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "P01"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP05Uppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "P05"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP10Uppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "P10"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP25Uppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "P25"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP75Uppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "P75"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP90Uppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "P90"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP95Uppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "P95"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP99Uppercase      ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "P99"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorP999Uppercase     ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "P999"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorStddevUppercase   ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "STDDEV"
	ObservabilityTelemetryQueryParamsParametersCalculationsOperatorVarianceUppercase ObservabilityTelemetryQueryParamsParametersCalculationsOperator = "VARIANCE"
)

func (ObservabilityTelemetryQueryParamsParametersCalculationsOperator) IsKnown

type ObservabilityTelemetryQueryParamsParametersFilter

type ObservabilityTelemetryQueryParamsParametersFilter struct {
	FilterCombination param.Field[ObservabilityTelemetryQueryParamsParametersFiltersFilterCombination] `json:"filterCombination"`
	Filters           param.Field[interface{}]                                                         `json:"filters"`
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key  param.Field[string]                                                 `json:"key"`
	Kind param.Field[ObservabilityTelemetryQueryParamsParametersFiltersKind] `json:"kind"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryQueryParamsParametersFiltersOperation] `json:"operation"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type  param.Field[ObservabilityTelemetryQueryParamsParametersFiltersType] `json:"type"`
	Value param.Field[interface{}]                                            `json:"value"`
}

Supports nested groups via kind: 'group'.

func (ObservabilityTelemetryQueryParamsParametersFilter) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersFilterCombination

type ObservabilityTelemetryQueryParamsParametersFilterCombination string

Logical operator for combining top-level filters: 'and' (all must match) or 'or' (any must match). Defaults to 'and'.

const (
	ObservabilityTelemetryQueryParamsParametersFilterCombinationAnd          ObservabilityTelemetryQueryParamsParametersFilterCombination = "and"
	ObservabilityTelemetryQueryParamsParametersFilterCombinationOr           ObservabilityTelemetryQueryParamsParametersFilterCombination = "or"
	ObservabilityTelemetryQueryParamsParametersFilterCombinationAndUppercase ObservabilityTelemetryQueryParamsParametersFilterCombination = "AND"
	ObservabilityTelemetryQueryParamsParametersFilterCombinationOrUppercase  ObservabilityTelemetryQueryParamsParametersFilterCombination = "OR"
)

func (ObservabilityTelemetryQueryParamsParametersFilterCombination) IsKnown

type ObservabilityTelemetryQueryParamsParametersFilterUnion

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

Supports nested groups via kind: 'group'.

Satisfied by workers.ObservabilityTelemetryQueryParamsParametersFiltersObject, workers.ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeaf, ObservabilityTelemetryQueryParamsParametersFilter.

type ObservabilityTelemetryQueryParamsParametersFiltersFilterCombination

type ObservabilityTelemetryQueryParamsParametersFiltersFilterCombination string
const (
	ObservabilityTelemetryQueryParamsParametersFiltersFilterCombinationAnd          ObservabilityTelemetryQueryParamsParametersFiltersFilterCombination = "and"
	ObservabilityTelemetryQueryParamsParametersFiltersFilterCombinationOr           ObservabilityTelemetryQueryParamsParametersFiltersFilterCombination = "or"
	ObservabilityTelemetryQueryParamsParametersFiltersFilterCombinationAndUppercase ObservabilityTelemetryQueryParamsParametersFiltersFilterCombination = "AND"
	ObservabilityTelemetryQueryParamsParametersFiltersFilterCombinationOrUppercase  ObservabilityTelemetryQueryParamsParametersFiltersFilterCombination = "OR"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersFilterCombination) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersKind

type ObservabilityTelemetryQueryParamsParametersFiltersKind string
const (
	ObservabilityTelemetryQueryParamsParametersFiltersKindGroup  ObservabilityTelemetryQueryParamsParametersFiltersKind = "group"
	ObservabilityTelemetryQueryParamsParametersFiltersKindFilter ObservabilityTelemetryQueryParamsParametersFiltersKind = "filter"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersKind) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObject

type ObservabilityTelemetryQueryParamsParametersFiltersObject struct {
	FilterCombination param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombination] `json:"filterCombination" api:"required"`
	Filters           param.Field[[]ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterUnion]     `json:"filters" api:"required"`
	Kind              param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectKind]              `json:"kind" api:"required"`
}

func (ObservabilityTelemetryQueryParamsParametersFiltersObject) MarshalJSON

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFilter

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFilter struct {
	FilterCombination param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombination] `json:"filterCombination"`
	Filters           param.Field[interface{}]                                                                      `json:"filters"`
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key  param.Field[string]                                                              `json:"key"`
	Kind param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersKind] `json:"kind"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation] `json:"operation"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type  param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersType] `json:"type"`
	Value param.Field[interface{}]                                                         `json:"value"`
}

Supports nested groups via kind: 'group'.

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFilter) MarshalJSON

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombination

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombination string
const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombinationAnd          ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombination = "and"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombinationOr           ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombination = "or"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombinationAndUppercase ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombination = "AND"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombinationOrUppercase  ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombination = "OR"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFilterCombination) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombination

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombination string
const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombinationAnd          ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombination = "and"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombinationOr           ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombination = "or"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombinationAndUppercase ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombination = "AND"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombinationOrUppercase  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombination = "OR"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersFilterCombination) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersKind

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersKind string
const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersKindGroup  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersKind = "group"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersKindFilter ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersKind = "filter"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersKind) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObject

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObject struct {
	FilterCombination param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombination] `json:"filterCombination" api:"required"`
	Filters           param.Field[[]interface{}]                                                                          `json:"filters" api:"required"`
	Kind              param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectKind]              `json:"kind" api:"required"`
}

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObject) MarshalJSON

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombination

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombination string
const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombinationAnd          ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombination = "and"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombinationOr           ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombination = "or"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombinationAndUppercase ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombination = "AND"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombinationOrUppercase  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombination = "OR"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectFilterCombination) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectKind

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectKind string
const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectKindGroup ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectKind = "group"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersObjectKind) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationIncludes            ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "includes"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationNotIncludes         ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "not_includes"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationStartsWith          ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "starts_with"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationRegex               ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "regex"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationExists              ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "exists"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationIsNull              ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "is_null"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationIn                  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "in"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationNotIn               ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "not_in"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationEq                  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "eq"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationNeq                 ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "neq"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationGt                  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "gt"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationGte                 ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "gte"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationLt                  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "lt"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationLte                 ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "lte"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationEquals              ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "="
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationNotEquals           ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "!="
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationGreater             ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = ">"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationGreaterOrEquals     ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = ">="
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationLess                ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "<"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationLessOrEquals        ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "<="
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationIncludesUppercase   ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "INCLUDES"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationDoesNotInclude      ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationMatchRegex          ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "MATCH_REGEX"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationExistsUppercase     ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "EXISTS"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationDoesNotExist        ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationInUppercase         ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "IN"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationNotInUppercase      ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "NOT_IN"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperationStartsWithUppercase ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersOperation) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersType

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersTypeString  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersType = "string"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersTypeNumber  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersType = "number"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersTypeBoolean ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersType = "boolean"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersType) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeaf

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeaf struct {
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key param.Field[string] `json:"key" api:"required"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation] `json:"operation" api:"required"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafType] `json:"type" api:"required"`
	// Discriminator for leaf filter nodes. Always 'filter' when present; may be
	// omitted.
	Kind param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafKind] `json:"kind"`
	// Comparison value. Must match actual values in your data — verify with the values
	// endpoint. Ensure the value type (string/number/boolean) matches the field type.
	// String comparisons are case-sensitive. Regex uses RE2 syntax (no
	// lookaheads/lookbehinds).
	Value param.Field[ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion] `json:"value"`
}

A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeaf) MarshalJSON

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafKind

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafKind string

Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.

const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafKindFilter ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafKind = "filter"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafKind) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIncludes            ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "includes"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotIncludes         ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "not_includes"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationStartsWith          ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "starts_with"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationRegex               ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "regex"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationExists              ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "exists"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIsNull              ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "is_null"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIn                  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "in"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotIn               ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "not_in"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationEq                  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "eq"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNeq                 ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "neq"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGt                  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "gt"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGte                 ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "gte"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLt                  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "lt"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLte                 ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "lte"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationEquals              ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "="
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotEquals           ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "!="
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGreater             ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = ">"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGreaterOrEquals     ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = ">="
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLess                ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "<"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLessOrEquals        ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "<="
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIncludesUppercase   ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "INCLUDES"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationDoesNotInclude      ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationMatchRegex          ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "MATCH_REGEX"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationExistsUppercase     ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "EXISTS"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationDoesNotExist        ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationInUppercase         ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "IN"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotInUppercase      ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "NOT_IN"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperationStartsWithUppercase ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafOperation) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafType

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafTypeString  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafType = "string"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafTypeNumber  ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafType = "number"
	ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafTypeBoolean ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafType = "boolean"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafType) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion

type ObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion interface {
	ImplementsObservabilityTelemetryQueryParamsParametersFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion()
}

Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityTelemetryQueryParamsParametersFiltersObjectKind

type ObservabilityTelemetryQueryParamsParametersFiltersObjectKind string
const (
	ObservabilityTelemetryQueryParamsParametersFiltersObjectKindGroup ObservabilityTelemetryQueryParamsParametersFiltersObjectKind = "group"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersObjectKind) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersOperation

type ObservabilityTelemetryQueryParamsParametersFiltersOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryQueryParamsParametersFiltersOperationIncludes            ObservabilityTelemetryQueryParamsParametersFiltersOperation = "includes"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationNotIncludes         ObservabilityTelemetryQueryParamsParametersFiltersOperation = "not_includes"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationStartsWith          ObservabilityTelemetryQueryParamsParametersFiltersOperation = "starts_with"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationRegex               ObservabilityTelemetryQueryParamsParametersFiltersOperation = "regex"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationExists              ObservabilityTelemetryQueryParamsParametersFiltersOperation = "exists"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationIsNull              ObservabilityTelemetryQueryParamsParametersFiltersOperation = "is_null"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationIn                  ObservabilityTelemetryQueryParamsParametersFiltersOperation = "in"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationNotIn               ObservabilityTelemetryQueryParamsParametersFiltersOperation = "not_in"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationEq                  ObservabilityTelemetryQueryParamsParametersFiltersOperation = "eq"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationNeq                 ObservabilityTelemetryQueryParamsParametersFiltersOperation = "neq"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationGt                  ObservabilityTelemetryQueryParamsParametersFiltersOperation = "gt"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationGte                 ObservabilityTelemetryQueryParamsParametersFiltersOperation = "gte"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationLt                  ObservabilityTelemetryQueryParamsParametersFiltersOperation = "lt"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationLte                 ObservabilityTelemetryQueryParamsParametersFiltersOperation = "lte"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationEquals              ObservabilityTelemetryQueryParamsParametersFiltersOperation = "="
	ObservabilityTelemetryQueryParamsParametersFiltersOperationNotEquals           ObservabilityTelemetryQueryParamsParametersFiltersOperation = "!="
	ObservabilityTelemetryQueryParamsParametersFiltersOperationGreater             ObservabilityTelemetryQueryParamsParametersFiltersOperation = ">"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationGreaterOrEquals     ObservabilityTelemetryQueryParamsParametersFiltersOperation = ">="
	ObservabilityTelemetryQueryParamsParametersFiltersOperationLess                ObservabilityTelemetryQueryParamsParametersFiltersOperation = "<"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationLessOrEquals        ObservabilityTelemetryQueryParamsParametersFiltersOperation = "<="
	ObservabilityTelemetryQueryParamsParametersFiltersOperationIncludesUppercase   ObservabilityTelemetryQueryParamsParametersFiltersOperation = "INCLUDES"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationDoesNotInclude      ObservabilityTelemetryQueryParamsParametersFiltersOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationMatchRegex          ObservabilityTelemetryQueryParamsParametersFiltersOperation = "MATCH_REGEX"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationExistsUppercase     ObservabilityTelemetryQueryParamsParametersFiltersOperation = "EXISTS"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationDoesNotExist        ObservabilityTelemetryQueryParamsParametersFiltersOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationInUppercase         ObservabilityTelemetryQueryParamsParametersFiltersOperation = "IN"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationNotInUppercase      ObservabilityTelemetryQueryParamsParametersFiltersOperation = "NOT_IN"
	ObservabilityTelemetryQueryParamsParametersFiltersOperationStartsWithUppercase ObservabilityTelemetryQueryParamsParametersFiltersOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersOperation) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersType

type ObservabilityTelemetryQueryParamsParametersFiltersType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryQueryParamsParametersFiltersTypeString  ObservabilityTelemetryQueryParamsParametersFiltersType = "string"
	ObservabilityTelemetryQueryParamsParametersFiltersTypeNumber  ObservabilityTelemetryQueryParamsParametersFiltersType = "number"
	ObservabilityTelemetryQueryParamsParametersFiltersTypeBoolean ObservabilityTelemetryQueryParamsParametersFiltersType = "boolean"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersType) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeaf

type ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeaf struct {
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key param.Field[string] `json:"key" api:"required"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation] `json:"operation" api:"required"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type param.Field[ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafType] `json:"type" api:"required"`
	// Discriminator for leaf filter nodes. Always 'filter' when present; may be
	// omitted.
	Kind param.Field[ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafKind] `json:"kind"`
	// Comparison value. Must match actual values in your data — verify with the values
	// endpoint. Ensure the value type (string/number/boolean) matches the field type.
	// String comparisons are case-sensitive. Regex uses RE2 syntax (no
	// lookaheads/lookbehinds).
	Value param.Field[ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafValueUnion] `json:"value"`
}

A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.

func (ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeaf) MarshalJSON

type ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafKind

type ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafKind string

Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.

const (
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafKindFilter ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafKind = "filter"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafKind) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation

type ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationIncludes            ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "includes"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationNotIncludes         ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "not_includes"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationStartsWith          ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "starts_with"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationRegex               ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "regex"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationExists              ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "exists"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationIsNull              ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "is_null"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationIn                  ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "in"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationNotIn               ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "not_in"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationEq                  ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "eq"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationNeq                 ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "neq"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationGt                  ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "gt"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationGte                 ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "gte"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationLt                  ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "lt"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationLte                 ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "lte"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationEquals              ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "="
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationNotEquals           ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "!="
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationGreater             ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = ">"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationGreaterOrEquals     ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = ">="
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationLess                ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "<"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationLessOrEquals        ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "<="
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationIncludesUppercase   ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "INCLUDES"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationDoesNotInclude      ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationMatchRegex          ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "MATCH_REGEX"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationExistsUppercase     ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "EXISTS"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationDoesNotExist        ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationInUppercase         ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "IN"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationNotInUppercase      ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "NOT_IN"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperationStartsWithUppercase ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafOperation) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafType

type ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafTypeString  ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafType = "string"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafTypeNumber  ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafType = "number"
	ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafTypeBoolean ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafType = "boolean"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafType) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafValueUnion

type ObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafValueUnion interface {
	ImplementsObservabilityTelemetryQueryParamsParametersFiltersWorkersObservabilityFilterLeafValueUnion()
}

Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityTelemetryQueryParamsParametersGroupBy

type ObservabilityTelemetryQueryParamsParametersGroupBy struct {
	// Data type of the group-by field.
	Type param.Field[ObservabilityTelemetryQueryParamsParametersGroupBysType] `json:"type" api:"required"`
	// Field name to group results by (e.g. $metadata.service, $metadata.statusCode).
	Value param.Field[string] `json:"value" api:"required"`
}

func (ObservabilityTelemetryQueryParamsParametersGroupBy) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersGroupBysType

type ObservabilityTelemetryQueryParamsParametersGroupBysType string

Data type of the group-by field.

const (
	ObservabilityTelemetryQueryParamsParametersGroupBysTypeString  ObservabilityTelemetryQueryParamsParametersGroupBysType = "string"
	ObservabilityTelemetryQueryParamsParametersGroupBysTypeNumber  ObservabilityTelemetryQueryParamsParametersGroupBysType = "number"
	ObservabilityTelemetryQueryParamsParametersGroupBysTypeBoolean ObservabilityTelemetryQueryParamsParametersGroupBysType = "boolean"
)

func (ObservabilityTelemetryQueryParamsParametersGroupBysType) IsKnown

type ObservabilityTelemetryQueryParamsParametersHaving

type ObservabilityTelemetryQueryParamsParametersHaving struct {
	// Calculation alias or operator to filter on after aggregation.
	Key param.Field[string] `json:"key" api:"required"`
	// Numeric comparison operator: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryQueryParamsParametersHavingsOperation] `json:"operation" api:"required"`
	// Threshold value to compare the calculation result against.
	Value param.Field[float64] `json:"value" api:"required"`
}

func (ObservabilityTelemetryQueryParamsParametersHaving) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersHavingsOperation

type ObservabilityTelemetryQueryParamsParametersHavingsOperation string

Numeric comparison operator: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryQueryParamsParametersHavingsOperationEq  ObservabilityTelemetryQueryParamsParametersHavingsOperation = "eq"
	ObservabilityTelemetryQueryParamsParametersHavingsOperationNeq ObservabilityTelemetryQueryParamsParametersHavingsOperation = "neq"
	ObservabilityTelemetryQueryParamsParametersHavingsOperationGt  ObservabilityTelemetryQueryParamsParametersHavingsOperation = "gt"
	ObservabilityTelemetryQueryParamsParametersHavingsOperationGte ObservabilityTelemetryQueryParamsParametersHavingsOperation = "gte"
	ObservabilityTelemetryQueryParamsParametersHavingsOperationLt  ObservabilityTelemetryQueryParamsParametersHavingsOperation = "lt"
	ObservabilityTelemetryQueryParamsParametersHavingsOperationLte ObservabilityTelemetryQueryParamsParametersHavingsOperation = "lte"
)

func (ObservabilityTelemetryQueryParamsParametersHavingsOperation) IsKnown

type ObservabilityTelemetryQueryParamsParametersNeedle

type ObservabilityTelemetryQueryParamsParametersNeedle struct {
	// The text or pattern to search for.
	Value param.Field[ObservabilityTelemetryQueryParamsParametersNeedleValueUnion] `json:"value" api:"required"`
	// When true, treats the value as a regular expression (RE2 syntax).
	IsRegex param.Field[bool] `json:"isRegex"`
	// When true, performs a case-sensitive search. Defaults to case-insensitive.
	MatchCase param.Field[bool] `json:"matchCase"`
}

Full-text search expression applied across all event fields. Matches events containing the specified text.

func (ObservabilityTelemetryQueryParamsParametersNeedle) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersNeedleValueUnion

type ObservabilityTelemetryQueryParamsParametersNeedleValueUnion interface {
	ImplementsObservabilityTelemetryQueryParamsParametersNeedleValueUnion()
}

The text or pattern to search for.

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityTelemetryQueryParamsParametersOrderBy

type ObservabilityTelemetryQueryParamsParametersOrderBy struct {
	// Alias of the calculation to order results by. Must match the alias (or operator)
	// of a calculation in the query.
	Value param.Field[string] `json:"value" api:"required"`
	// Sort direction: 'asc' for ascending, 'desc' for descending.
	Order param.Field[ObservabilityTelemetryQueryParamsParametersOrderByOrder] `json:"order"`
}

Ordering for grouped calculation results. Only effective when a group-by is present.

func (ObservabilityTelemetryQueryParamsParametersOrderBy) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersOrderByOrder

type ObservabilityTelemetryQueryParamsParametersOrderByOrder string

Sort direction: 'asc' for ascending, 'desc' for descending.

const (
	ObservabilityTelemetryQueryParamsParametersOrderByOrderAsc  ObservabilityTelemetryQueryParamsParametersOrderByOrder = "asc"
	ObservabilityTelemetryQueryParamsParametersOrderByOrderDesc ObservabilityTelemetryQueryParamsParametersOrderByOrder = "desc"
)

func (ObservabilityTelemetryQueryParamsParametersOrderByOrder) IsKnown

type ObservabilityTelemetryQueryParamsTimeframe

type ObservabilityTelemetryQueryParamsTimeframe struct {
	// Start timestamp for the query timeframe (Unix timestamp in milliseconds)
	From param.Field[float64] `json:"from" api:"required"`
	// End timestamp for the query timeframe (Unix timestamp in milliseconds)
	To param.Field[float64] `json:"to" api:"required"`
}

Timeframe for the query using Unix timestamps in milliseconds. Narrower timeframes produce faster responses and more specific results.

func (ObservabilityTelemetryQueryParamsTimeframe) MarshalJSON

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

type ObservabilityTelemetryQueryParamsView

type ObservabilityTelemetryQueryParamsView string

Controls the shape of the response. 'events': individual log lines matching the query. 'calculations': aggregated metrics (count, avg, p99, etc.) with optional group-by breakdowns and time-series. 'invocations': events grouped by request ID. 'traces': distributed trace summaries. 'agents': Durable Object agent summaries.

const (
	ObservabilityTelemetryQueryParamsViewTraces       ObservabilityTelemetryQueryParamsView = "traces"
	ObservabilityTelemetryQueryParamsViewEvents       ObservabilityTelemetryQueryParamsView = "events"
	ObservabilityTelemetryQueryParamsViewCalculations ObservabilityTelemetryQueryParamsView = "calculations"
	ObservabilityTelemetryQueryParamsViewInvocations  ObservabilityTelemetryQueryParamsView = "invocations"
	ObservabilityTelemetryQueryParamsViewRequests     ObservabilityTelemetryQueryParamsView = "requests"
	ObservabilityTelemetryQueryParamsViewAgents       ObservabilityTelemetryQueryParamsView = "agents"
)

func (ObservabilityTelemetryQueryParamsView) IsKnown

type ObservabilityTelemetryQueryResponse

type ObservabilityTelemetryQueryResponse struct {
	// The query run metadata including the query definition, execution status, and
	// timeframe.
	Run ObservabilityTelemetryQueryResponseRun `json:"run" api:"required"`
	// Query performance statistics from the database. Includes execution time, rows
	// scanned, and bytes read. Does not include network latency.
	Statistics ObservabilityTelemetryQueryResponseStatistics `json:"statistics" api:"required"`
	// Durable Object agent summaries. Present when the query view is 'agents'. Each
	// entry represents an agent with its event counts and status.
	Agents []ObservabilityTelemetryQueryResponseAgent `json:"agents"`
	// Aggregated calculation results. Present when the query view is 'calculations'.
	// Contains computed metrics (count, avg, p99, etc.) with optional group-by
	// breakdowns and time-series data.
	Calculations []ObservabilityTelemetryQueryResponseCalculation `json:"calculations"`
	// Comparison calculation results from the previous time period. Present when the
	// compare option is enabled. Same structure as calculations.
	Compare []ObservabilityTelemetryQueryResponseCompare `json:"compare"`
	// Individual event results. Present when the query view is 'events'. Contains the
	// matching log lines and their metadata.
	Events ObservabilityTelemetryQueryResponseEvents `json:"events"`
	// Events grouped by invocation (request ID). Present when the query view is
	// 'invocations'. Each key is a request ID mapping to all events from that
	// invocation.
	Invocations map[string][]ObservabilityTelemetryQueryResponseInvocation `json:"invocations"`
	// Trace summaries matching the query. Present when the query view is 'traces'.
	// Each entry represents a distributed trace with its spans, duration, and services
	// involved.
	Traces []ObservabilityTelemetryQueryResponseTrace `json:"traces"`
	JSON   observabilityTelemetryQueryResponseJSON    `json:"-"`
}

Complete results of a query run. The populated fields depend on the requested view type (events, calculations, invocations, traces, or agents).

func (*ObservabilityTelemetryQueryResponse) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseAgent

type ObservabilityTelemetryQueryResponseAgent struct {
	// Class name of the Durable Object agent.
	AgentClass string `json:"agentClass" api:"required"`
	// Breakdown of event counts by event type.
	EventTypeCounts map[string]float64 `json:"eventTypeCounts" api:"required"`
	// Timestamp of the earliest event from this agent in the queried window (Unix
	// epoch ms).
	FirstEventMs float64 `json:"firstEventMs" api:"required"`
	// Whether the agent emitted any error events in the queried window.
	HasErrors bool `json:"hasErrors" api:"required"`
	// Timestamp of the most recent event from this agent (Unix epoch ms).
	LastEventMs float64 `json:"lastEventMs" api:"required"`
	// Durable Object namespace the agent belongs to.
	Namespace string `json:"namespace" api:"required"`
	// Worker service name that hosts this agent.
	Service string `json:"service" api:"required"`
	// Total number of events emitted by this agent in the queried window.
	TotalEvents float64                                      `json:"totalEvents" api:"required"`
	JSON        observabilityTelemetryQueryResponseAgentJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseAgent) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCalculation

type ObservabilityTelemetryQueryResponseCalculation struct {
	Aggregates  []ObservabilityTelemetryQueryResponseCalculationsAggregate `json:"aggregates" api:"required"`
	Calculation string                                                     `json:"calculation" api:"required"`
	Series      []ObservabilityTelemetryQueryResponseCalculationsSeries    `json:"series" api:"required"`
	Alias       string                                                     `json:"alias"`
	JSON        observabilityTelemetryQueryResponseCalculationJSON         `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCalculation) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCalculationsAggregate

type ObservabilityTelemetryQueryResponseCalculationsAggregate struct {
	Count          float64                                                          `json:"count" api:"required"`
	Interval       float64                                                          `json:"interval" api:"required"`
	SampleInterval float64                                                          `json:"sampleInterval" api:"required"`
	Value          float64                                                          `json:"value" api:"required"`
	Groups         []ObservabilityTelemetryQueryResponseCalculationsAggregatesGroup `json:"groups"`
	JSON           observabilityTelemetryQueryResponseCalculationsAggregateJSON     `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCalculationsAggregate) UnmarshalJSON

type ObservabilityTelemetryQueryResponseCalculationsAggregatesGroup

type ObservabilityTelemetryQueryResponseCalculationsAggregatesGroup struct {
	Key   string                                                                    `json:"key" api:"required"`
	Value ObservabilityTelemetryQueryResponseCalculationsAggregatesGroupsValueUnion `json:"value" api:"required"`
	JSON  observabilityTelemetryQueryResponseCalculationsAggregatesGroupJSON        `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCalculationsAggregatesGroup) UnmarshalJSON

type ObservabilityTelemetryQueryResponseCalculationsAggregatesGroupsValueUnion

type ObservabilityTelemetryQueryResponseCalculationsAggregatesGroupsValueUnion interface {
	ImplementsObservabilityTelemetryQueryResponseCalculationsAggregatesGroupsValueUnion()
}

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

type ObservabilityTelemetryQueryResponseCalculationsSeries

type ObservabilityTelemetryQueryResponseCalculationsSeries struct {
	Data []ObservabilityTelemetryQueryResponseCalculationsSeriesData `json:"data" api:"required"`
	Time string                                                      `json:"time" api:"required"`
	JSON observabilityTelemetryQueryResponseCalculationsSeriesJSON   `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCalculationsSeries) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCalculationsSeriesData

type ObservabilityTelemetryQueryResponseCalculationsSeriesData struct {
	Count          float64                                                          `json:"count" api:"required"`
	Interval       float64                                                          `json:"interval" api:"required"`
	SampleInterval float64                                                          `json:"sampleInterval" api:"required"`
	Value          float64                                                          `json:"value" api:"required"`
	FirstSeen      string                                                           `json:"firstSeen"`
	Groups         []ObservabilityTelemetryQueryResponseCalculationsSeriesDataGroup `json:"groups"`
	LastSeen       string                                                           `json:"lastSeen"`
	JSON           observabilityTelemetryQueryResponseCalculationsSeriesDataJSON    `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCalculationsSeriesData) UnmarshalJSON

type ObservabilityTelemetryQueryResponseCalculationsSeriesDataGroup

type ObservabilityTelemetryQueryResponseCalculationsSeriesDataGroup struct {
	Key   string                                                                    `json:"key" api:"required"`
	Value ObservabilityTelemetryQueryResponseCalculationsSeriesDataGroupsValueUnion `json:"value" api:"required"`
	JSON  observabilityTelemetryQueryResponseCalculationsSeriesDataGroupJSON        `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCalculationsSeriesDataGroup) UnmarshalJSON

type ObservabilityTelemetryQueryResponseCalculationsSeriesDataGroupsValueUnion

type ObservabilityTelemetryQueryResponseCalculationsSeriesDataGroupsValueUnion interface {
	ImplementsObservabilityTelemetryQueryResponseCalculationsSeriesDataGroupsValueUnion()
}

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

type ObservabilityTelemetryQueryResponseCompare

type ObservabilityTelemetryQueryResponseCompare struct {
	Aggregates  []ObservabilityTelemetryQueryResponseCompareAggregate `json:"aggregates" api:"required"`
	Calculation string                                                `json:"calculation" api:"required"`
	Series      []ObservabilityTelemetryQueryResponseCompareSeries    `json:"series" api:"required"`
	Alias       string                                                `json:"alias"`
	JSON        observabilityTelemetryQueryResponseCompareJSON        `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCompare) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCompareAggregate

type ObservabilityTelemetryQueryResponseCompareAggregate struct {
	Count          float64                                                     `json:"count" api:"required"`
	Interval       float64                                                     `json:"interval" api:"required"`
	SampleInterval float64                                                     `json:"sampleInterval" api:"required"`
	Value          float64                                                     `json:"value" api:"required"`
	Groups         []ObservabilityTelemetryQueryResponseCompareAggregatesGroup `json:"groups"`
	JSON           observabilityTelemetryQueryResponseCompareAggregateJSON     `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCompareAggregate) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCompareAggregatesGroup

type ObservabilityTelemetryQueryResponseCompareAggregatesGroup struct {
	Key   string                                                               `json:"key" api:"required"`
	Value ObservabilityTelemetryQueryResponseCompareAggregatesGroupsValueUnion `json:"value" api:"required"`
	JSON  observabilityTelemetryQueryResponseCompareAggregatesGroupJSON        `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCompareAggregatesGroup) UnmarshalJSON

type ObservabilityTelemetryQueryResponseCompareAggregatesGroupsValueUnion

type ObservabilityTelemetryQueryResponseCompareAggregatesGroupsValueUnion interface {
	ImplementsObservabilityTelemetryQueryResponseCompareAggregatesGroupsValueUnion()
}

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

type ObservabilityTelemetryQueryResponseCompareSeries

type ObservabilityTelemetryQueryResponseCompareSeries struct {
	Data []ObservabilityTelemetryQueryResponseCompareSeriesData `json:"data" api:"required"`
	Time string                                                 `json:"time" api:"required"`
	JSON observabilityTelemetryQueryResponseCompareSeriesJSON   `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCompareSeries) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCompareSeriesData

type ObservabilityTelemetryQueryResponseCompareSeriesData struct {
	Count          float64                                                     `json:"count" api:"required"`
	Interval       float64                                                     `json:"interval" api:"required"`
	SampleInterval float64                                                     `json:"sampleInterval" api:"required"`
	Value          float64                                                     `json:"value" api:"required"`
	FirstSeen      string                                                      `json:"firstSeen"`
	Groups         []ObservabilityTelemetryQueryResponseCompareSeriesDataGroup `json:"groups"`
	LastSeen       string                                                      `json:"lastSeen"`
	JSON           observabilityTelemetryQueryResponseCompareSeriesDataJSON    `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCompareSeriesData) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCompareSeriesDataGroup

type ObservabilityTelemetryQueryResponseCompareSeriesDataGroup struct {
	Key   string                                                               `json:"key" api:"required"`
	Value ObservabilityTelemetryQueryResponseCompareSeriesDataGroupsValueUnion `json:"value" api:"required"`
	JSON  observabilityTelemetryQueryResponseCompareSeriesDataGroupJSON        `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCompareSeriesDataGroup) UnmarshalJSON

type ObservabilityTelemetryQueryResponseCompareSeriesDataGroupsValueUnion

type ObservabilityTelemetryQueryResponseCompareSeriesDataGroupsValueUnion interface {
	ImplementsObservabilityTelemetryQueryResponseCompareSeriesDataGroupsValueUnion()
}

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

type ObservabilityTelemetryQueryResponseEnvelope

type ObservabilityTelemetryQueryResponseEnvelope struct {
	Errors   []ObservabilityTelemetryQueryResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ObservabilityTelemetryQueryResponseEnvelopeMessages `json:"messages" api:"required"`
	// Complete results of a query run. The populated fields depend on the requested
	// view type (events, calculations, invocations, traces, or agents).
	Result  ObservabilityTelemetryQueryResponse                `json:"result" api:"required"`
	Success ObservabilityTelemetryQueryResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    observabilityTelemetryQueryResponseEnvelopeJSON    `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEnvelope) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEnvelopeErrors

type ObservabilityTelemetryQueryResponseEnvelopeErrors struct {
	Message string                                                `json:"message" api:"required"`
	JSON    observabilityTelemetryQueryResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEnvelopeErrors) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEnvelopeMessages

type ObservabilityTelemetryQueryResponseEnvelopeMessages struct {
	Message ObservabilityTelemetryQueryResponseEnvelopeMessagesMessage `json:"message" api:"required"`
	JSON    observabilityTelemetryQueryResponseEnvelopeMessagesJSON    `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEnvelopeMessages) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEnvelopeMessagesMessage

type ObservabilityTelemetryQueryResponseEnvelopeMessagesMessage string
const (
	ObservabilityTelemetryQueryResponseEnvelopeMessagesMessageSuccessfulRequest ObservabilityTelemetryQueryResponseEnvelopeMessagesMessage = "Successful request"
)

func (ObservabilityTelemetryQueryResponseEnvelopeMessagesMessage) IsKnown

type ObservabilityTelemetryQueryResponseEnvelopeSuccess

type ObservabilityTelemetryQueryResponseEnvelopeSuccess bool
const (
	ObservabilityTelemetryQueryResponseEnvelopeSuccessTrue ObservabilityTelemetryQueryResponseEnvelopeSuccess = true
)

func (ObservabilityTelemetryQueryResponseEnvelopeSuccess) IsKnown

type ObservabilityTelemetryQueryResponseEvents

type ObservabilityTelemetryQueryResponseEvents struct {
	// Total number of events matching the query (may exceed the number returned due to
	// limits).
	Count float64 `json:"count"`
	// List of individual telemetry events matching the query.
	Events []ObservabilityTelemetryQueryResponseEventsEvent `json:"events"`
	// List of fields discovered in the matched events. Useful for building dynamic
	// UIs.
	Fields []ObservabilityTelemetryQueryResponseEventsField `json:"fields"`
	// Time-series data for the matched events, bucketed by the query granularity.
	Series []ObservabilityTelemetryQueryResponseEventsSeries `json:"series"`
	JSON   observabilityTelemetryQueryResponseEventsJSON     `json:"-"`
}

Individual event results. Present when the query view is 'events'. Contains the matching log lines and their metadata.

func (*ObservabilityTelemetryQueryResponseEvents) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEventsEvent

type ObservabilityTelemetryQueryResponseEventsEvent struct {
	// Structured metadata extracted from the event. These fields are indexed and
	// available for filtering and aggregation.
	Metadata ObservabilityTelemetryQueryResponseEventsEventsMetadata `json:"$metadata" api:"required"`
	// The dataset this event belongs to (e.g. cloudflare-workers).
	Dataset string `json:"dataset" api:"required"`
	// Raw log payload. May be a string or a structured object depending on how the log
	// was emitted.
	Source interface{} `json:"source" api:"required"`
	// Event timestamp as a Unix epoch in milliseconds.
	Timestamp int64 `json:"timestamp" api:"required"`
	// Cloudflare Containers event information that enriches your logs for identifying
	// and debugging issues.
	Containers interface{} `json:"$containers"`
	// Cloudflare Workers event information that enriches your logs for identifying and
	// debugging issues.
	Workers ObservabilityTelemetryQueryResponseEventsEventsWorkers `json:"$workers"`
	JSON    observabilityTelemetryQueryResponseEventsEventJSON     `json:"-"`
}

A single telemetry event representing a log line, span, or metric data point emitted by a Worker.

func (*ObservabilityTelemetryQueryResponseEventsEvent) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEventsEventsMetadata

type ObservabilityTelemetryQueryResponseEventsEventsMetadata struct {
	// Unique event ID. Use as the cursor value for offset-based pagination.
	ID string `json:"id" api:"required"`
	// Cloudflare account identifier.
	Account string `json:"account"`
	// Cloudflare product that generated this event (e.g. workers, pages).
	CloudService string `json:"cloudService"`
	// Whether this was a cold start (1) or warm invocation (0).
	ColdStart int64 `json:"coldStart"`
	// Estimated cost units for this invocation.
	Cost int64 `json:"cost"`
	// Span duration in milliseconds.
	Duration int64 `json:"duration"`
	// Span end time as a Unix epoch in milliseconds.
	EndTime int64 `json:"endTime"`
	// Error message, present when the log represents an error.
	Error string `json:"error"`
	// Templatized version of the error message used for grouping similar errors.
	ErrorTemplate string `json:"errorTemplate"`
	// Content-based fingerprint used to group similar events.
	Fingerprint string `json:"fingerprint"`
	// Log level (e.g. log, debug, info, warn, error).
	Level string `json:"level"`
	// Log message text.
	Message string `json:"message"`
	// Templatized version of the log message used for grouping similar messages.
	MessageTemplate string `json:"messageTemplate"`
	// Metric name when the event represents a metric data point.
	MetricName string `json:"metricName"`
	// Origin of the event (e.g. fetch, scheduled, queue).
	Origin string `json:"origin"`
	// Span ID of the parent span in the trace hierarchy.
	ParentSpanID string `json:"parentSpanId"`
	// Infrastructure provider identifier.
	Provider string `json:"provider"`
	// Cloudflare data center / region that handled the request.
	Region string `json:"region"`
	// Cloudflare request ID that ties all logs from a single invocation together.
	RequestID string `json:"requestId"`
	// Worker script name that produced this event.
	Service string `json:"service"`
	// Span ID for this individual unit of work within a trace.
	SpanID string `json:"spanId"`
	// Human-readable name for this span.
	SpanName string `json:"spanName"`
	// Stack / deployment identifier.
	StackID string `json:"stackId"`
	// Span start time as a Unix epoch in milliseconds.
	StartTime int64 `json:"startTime"`
	// HTTP response status code returned by the Worker.
	StatusCode int64 `json:"statusCode"`
	// Total duration of the entire trace in milliseconds.
	TraceDuration int64 `json:"traceDuration"`
	// Distributed trace ID linking spans across services.
	TraceID string `json:"traceId"`
	// Logical transaction name for this request.
	TransactionName string `json:"transactionName"`
	// What triggered the invocation (e.g. GET /users, POST /orders, queue message).
	Trigger string `json:"trigger"`
	// Event type classifier (e.g. cf-worker-event, cf-worker-log).
	Type string `json:"type"`
	// Request URL that triggered the Worker invocation.
	URL  string                                                      `json:"url"`
	JSON observabilityTelemetryQueryResponseEventsEventsMetadataJSON `json:"-"`
}

Structured metadata extracted from the event. These fields are indexed and available for filtering and aggregation.

func (*ObservabilityTelemetryQueryResponseEventsEventsMetadata) UnmarshalJSON

type ObservabilityTelemetryQueryResponseEventsEventsWorkers

type ObservabilityTelemetryQueryResponseEventsEventsWorkers struct {
	EventType  ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType `json:"eventType" api:"required"`
	RequestID  string                                                          `json:"requestId" api:"required"`
	ScriptName string                                                          `json:"scriptName" api:"required"`
	CPUTimeMs  float64                                                         `json:"cpuTimeMs"`
	// This field can have the runtime type of
	// [[]ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectDiagnosticsChannelEvent].
	DiagnosticsChannelEvents interface{} `json:"diagnosticsChannelEvents"`
	DispatchNamespace        string      `json:"dispatchNamespace"`
	DurableObjectID          string      `json:"durableObjectId"`
	Entrypoint               string      `json:"entrypoint"`
	// This field can have the runtime type of [map[string]interface{}].
	Event          interface{}                                                          `json:"event"`
	ExecutionModel ObservabilityTelemetryQueryResponseEventsEventsWorkersExecutionModel `json:"executionModel"`
	Outcome        string                                                               `json:"outcome"`
	// This field can have the runtime type of
	// [ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectScriptVersion].
	ScriptVersion interface{}                                                `json:"scriptVersion"`
	SpanID        string                                                     `json:"spanId"`
	TraceID       string                                                     `json:"traceId"`
	Truncated     bool                                                       `json:"truncated"`
	WallTimeMs    float64                                                    `json:"wallTimeMs"`
	JSON          observabilityTelemetryQueryResponseEventsEventsWorkersJSON `json:"-"`
	// contains filtered or unexported fields
}

Cloudflare Workers event information that enriches your logs for identifying and debugging issues.

func (ObservabilityTelemetryQueryResponseEventsEventsWorkers) AsUnion

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

Possible runtime types of the union are ObservabilityTelemetryQueryResponseEventsEventsWorkersObject, ObservabilityTelemetryQueryResponseEventsEventsWorkersObject.

func (*ObservabilityTelemetryQueryResponseEventsEventsWorkers) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType

type ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType string
const (
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeFetch     ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "fetch"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeScheduled ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "scheduled"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeAlarm     ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "alarm"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeCron      ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "cron"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeQueue     ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "queue"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeEmail     ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "email"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeTail      ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "tail"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeRpc       ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "rpc"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeWebsocket ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "websocket"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeWorkflow  ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "workflow"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersEventTypeUnknown   ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType = "unknown"
)

func (ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType) IsKnown

type ObservabilityTelemetryQueryResponseEventsEventsWorkersExecutionModel

type ObservabilityTelemetryQueryResponseEventsEventsWorkersExecutionModel string
const (
	ObservabilityTelemetryQueryResponseEventsEventsWorkersExecutionModelDurableObject ObservabilityTelemetryQueryResponseEventsEventsWorkersExecutionModel = "durableObject"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersExecutionModelStateless     ObservabilityTelemetryQueryResponseEventsEventsWorkersExecutionModel = "stateless"
)

func (ObservabilityTelemetryQueryResponseEventsEventsWorkersExecutionModel) IsKnown

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObject

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObject struct {
	EventType       ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType      `json:"eventType" api:"required"`
	RequestID       string                                                                     `json:"requestId" api:"required"`
	ScriptName      string                                                                     `json:"scriptName" api:"required"`
	DurableObjectID string                                                                     `json:"durableObjectId"`
	Entrypoint      string                                                                     `json:"entrypoint"`
	Event           map[string]interface{}                                                     `json:"event"`
	ExecutionModel  ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectExecutionModel `json:"executionModel"`
	Outcome         string                                                                     `json:"outcome"`
	ScriptVersion   ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectScriptVersion  `json:"scriptVersion"`
	SpanID          string                                                                     `json:"spanId"`
	TraceID         string                                                                     `json:"traceId"`
	Truncated       bool                                                                       `json:"truncated"`
	JSON            observabilityTelemetryQueryResponseEventsEventsWorkersObjectJSON           `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEventsEventsWorkersObject) UnmarshalJSON

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType string
const (
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeFetch     ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "fetch"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeScheduled ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "scheduled"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeAlarm     ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "alarm"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeCron      ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "cron"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeQueue     ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "queue"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeEmail     ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "email"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeTail      ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "tail"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeRpc       ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "rpc"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeWebsocket ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "websocket"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeWorkflow  ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "workflow"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeUnknown   ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "unknown"
)

func (ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType) IsKnown

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectExecutionModel

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectExecutionModel string
const (
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectExecutionModelDurableObject ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectExecutionModel = "durableObject"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectExecutionModelStateless     ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectExecutionModel = "stateless"
)

func (ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectExecutionModel) IsKnown

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectScriptVersion

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectScriptVersion struct {
	ID      string                                                                        `json:"id"`
	Message string                                                                        `json:"message"`
	Tag     string                                                                        `json:"tag"`
	JSON    observabilityTelemetryQueryResponseEventsEventsWorkersObjectScriptVersionJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectScriptVersion) UnmarshalJSON

type ObservabilityTelemetryQueryResponseEventsEventsWorkersUnion

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

Cloudflare Workers event information that enriches your logs for identifying and debugging issues.

Union satisfied by ObservabilityTelemetryQueryResponseEventsEventsWorkersObject or ObservabilityTelemetryQueryResponseEventsEventsWorkersObject.

type ObservabilityTelemetryQueryResponseEventsField

type ObservabilityTelemetryQueryResponseEventsField struct {
	// Field name present in the matched events.
	Key string `json:"key" api:"required"`
	// Data type of the field (string, number, or boolean).
	Type string                                             `json:"type" api:"required"`
	JSON observabilityTelemetryQueryResponseEventsFieldJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEventsField) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEventsSeries

type ObservabilityTelemetryQueryResponseEventsSeries struct {
	Data []ObservabilityTelemetryQueryResponseEventsSeriesData `json:"data" api:"required"`
	Time string                                                `json:"time" api:"required"`
	JSON observabilityTelemetryQueryResponseEventsSeriesJSON   `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEventsSeries) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEventsSeriesData

type ObservabilityTelemetryQueryResponseEventsSeriesData struct {
	Aggregates     ObservabilityTelemetryQueryResponseEventsSeriesDataAggregates `json:"aggregates" api:"required"`
	Count          float64                                                       `json:"count" api:"required"`
	Interval       float64                                                       `json:"interval" api:"required"`
	SampleInterval float64                                                       `json:"sampleInterval" api:"required"`
	Errors         float64                                                       `json:"errors"`
	// Groups in the query results.
	Groups map[string]ObservabilityTelemetryQueryResponseEventsSeriesDataGroupsUnion `json:"groups"`
	JSON   observabilityTelemetryQueryResponseEventsSeriesDataJSON                   `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEventsSeriesData) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEventsSeriesDataAggregates

type ObservabilityTelemetryQueryResponseEventsSeriesDataAggregates struct {
	// Deprecated: deprecated
	Count int64 `json:"_count" api:"required"`
	// Deprecated: deprecated
	Interval float64 `json:"_interval" api:"required"`
	// Deprecated: deprecated
	FirstSeen string `json:"_firstSeen"`
	// Deprecated: deprecated
	LastSeen string `json:"_lastSeen"`
	// Deprecated: deprecated
	Bin  interface{}                                                       `json:"bin"`
	JSON observabilityTelemetryQueryResponseEventsSeriesDataAggregatesJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEventsSeriesDataAggregates) UnmarshalJSON

type ObservabilityTelemetryQueryResponseEventsSeriesDataGroupsUnion

type ObservabilityTelemetryQueryResponseEventsSeriesDataGroupsUnion interface {
	ImplementsObservabilityTelemetryQueryResponseEventsSeriesDataGroupsUnion()
}

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

type ObservabilityTelemetryQueryResponseInvocation

type ObservabilityTelemetryQueryResponseInvocation struct {
	// Structured metadata extracted from the event. These fields are indexed and
	// available for filtering and aggregation.
	Metadata ObservabilityTelemetryQueryResponseInvocationsMetadata `json:"$metadata" api:"required"`
	// The dataset this event belongs to (e.g. cloudflare-workers).
	Dataset string `json:"dataset" api:"required"`
	// Raw log payload. May be a string or a structured object depending on how the log
	// was emitted.
	Source interface{} `json:"source" api:"required"`
	// Event timestamp as a Unix epoch in milliseconds.
	Timestamp int64 `json:"timestamp" api:"required"`
	// Cloudflare Containers event information that enriches your logs for identifying
	// and debugging issues.
	Containers interface{} `json:"$containers"`
	// Cloudflare Workers event information that enriches your logs for identifying and
	// debugging issues.
	Workers ObservabilityTelemetryQueryResponseInvocationsWorkers `json:"$workers"`
	JSON    observabilityTelemetryQueryResponseInvocationJSON     `json:"-"`
}

A single telemetry event representing a log line, span, or metric data point emitted by a Worker.

func (*ObservabilityTelemetryQueryResponseInvocation) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseInvocationsMetadata

type ObservabilityTelemetryQueryResponseInvocationsMetadata struct {
	// Unique event ID. Use as the cursor value for offset-based pagination.
	ID string `json:"id" api:"required"`
	// Cloudflare account identifier.
	Account string `json:"account"`
	// Cloudflare product that generated this event (e.g. workers, pages).
	CloudService string `json:"cloudService"`
	// Whether this was a cold start (1) or warm invocation (0).
	ColdStart int64 `json:"coldStart"`
	// Estimated cost units for this invocation.
	Cost int64 `json:"cost"`
	// Span duration in milliseconds.
	Duration int64 `json:"duration"`
	// Span end time as a Unix epoch in milliseconds.
	EndTime int64 `json:"endTime"`
	// Error message, present when the log represents an error.
	Error string `json:"error"`
	// Templatized version of the error message used for grouping similar errors.
	ErrorTemplate string `json:"errorTemplate"`
	// Content-based fingerprint used to group similar events.
	Fingerprint string `json:"fingerprint"`
	// Log level (e.g. log, debug, info, warn, error).
	Level string `json:"level"`
	// Log message text.
	Message string `json:"message"`
	// Templatized version of the log message used for grouping similar messages.
	MessageTemplate string `json:"messageTemplate"`
	// Metric name when the event represents a metric data point.
	MetricName string `json:"metricName"`
	// Origin of the event (e.g. fetch, scheduled, queue).
	Origin string `json:"origin"`
	// Span ID of the parent span in the trace hierarchy.
	ParentSpanID string `json:"parentSpanId"`
	// Infrastructure provider identifier.
	Provider string `json:"provider"`
	// Cloudflare data center / region that handled the request.
	Region string `json:"region"`
	// Cloudflare request ID that ties all logs from a single invocation together.
	RequestID string `json:"requestId"`
	// Worker script name that produced this event.
	Service string `json:"service"`
	// Span ID for this individual unit of work within a trace.
	SpanID string `json:"spanId"`
	// Human-readable name for this span.
	SpanName string `json:"spanName"`
	// Stack / deployment identifier.
	StackID string `json:"stackId"`
	// Span start time as a Unix epoch in milliseconds.
	StartTime int64 `json:"startTime"`
	// HTTP response status code returned by the Worker.
	StatusCode int64 `json:"statusCode"`
	// Total duration of the entire trace in milliseconds.
	TraceDuration int64 `json:"traceDuration"`
	// Distributed trace ID linking spans across services.
	TraceID string `json:"traceId"`
	// Logical transaction name for this request.
	TransactionName string `json:"transactionName"`
	// What triggered the invocation (e.g. GET /users, POST /orders, queue message).
	Trigger string `json:"trigger"`
	// Event type classifier (e.g. cf-worker-event, cf-worker-log).
	Type string `json:"type"`
	// Request URL that triggered the Worker invocation.
	URL  string                                                     `json:"url"`
	JSON observabilityTelemetryQueryResponseInvocationsMetadataJSON `json:"-"`
}

Structured metadata extracted from the event. These fields are indexed and available for filtering and aggregation.

func (*ObservabilityTelemetryQueryResponseInvocationsMetadata) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseInvocationsWorkers

type ObservabilityTelemetryQueryResponseInvocationsWorkers struct {
	EventType  ObservabilityTelemetryQueryResponseInvocationsWorkersEventType `json:"eventType" api:"required"`
	RequestID  string                                                         `json:"requestId" api:"required"`
	ScriptName string                                                         `json:"scriptName" api:"required"`
	CPUTimeMs  float64                                                        `json:"cpuTimeMs"`
	// This field can have the runtime type of
	// [[]ObservabilityTelemetryQueryResponseInvocationsWorkersObjectDiagnosticsChannelEvent].
	DiagnosticsChannelEvents interface{} `json:"diagnosticsChannelEvents"`
	DispatchNamespace        string      `json:"dispatchNamespace"`
	DurableObjectID          string      `json:"durableObjectId"`
	Entrypoint               string      `json:"entrypoint"`
	// This field can have the runtime type of [map[string]interface{}].
	Event          interface{}                                                         `json:"event"`
	ExecutionModel ObservabilityTelemetryQueryResponseInvocationsWorkersExecutionModel `json:"executionModel"`
	Outcome        string                                                              `json:"outcome"`
	// This field can have the runtime type of
	// [ObservabilityTelemetryQueryResponseInvocationsWorkersObjectScriptVersion].
	ScriptVersion interface{}                                               `json:"scriptVersion"`
	SpanID        string                                                    `json:"spanId"`
	TraceID       string                                                    `json:"traceId"`
	Truncated     bool                                                      `json:"truncated"`
	WallTimeMs    float64                                                   `json:"wallTimeMs"`
	JSON          observabilityTelemetryQueryResponseInvocationsWorkersJSON `json:"-"`
	// contains filtered or unexported fields
}

Cloudflare Workers event information that enriches your logs for identifying and debugging issues.

func (ObservabilityTelemetryQueryResponseInvocationsWorkers) AsUnion

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

Possible runtime types of the union are ObservabilityTelemetryQueryResponseInvocationsWorkersObject, ObservabilityTelemetryQueryResponseInvocationsWorkersObject.

func (*ObservabilityTelemetryQueryResponseInvocationsWorkers) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseInvocationsWorkersEventType

type ObservabilityTelemetryQueryResponseInvocationsWorkersEventType string
const (
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeFetch     ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "fetch"
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeScheduled ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "scheduled"
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeAlarm     ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "alarm"
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeCron      ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "cron"
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeQueue     ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "queue"
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeEmail     ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "email"
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeTail      ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "tail"
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeRpc       ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "rpc"
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeWebsocket ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "websocket"
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeWorkflow  ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "workflow"
	ObservabilityTelemetryQueryResponseInvocationsWorkersEventTypeUnknown   ObservabilityTelemetryQueryResponseInvocationsWorkersEventType = "unknown"
)

func (ObservabilityTelemetryQueryResponseInvocationsWorkersEventType) IsKnown

type ObservabilityTelemetryQueryResponseInvocationsWorkersExecutionModel

type ObservabilityTelemetryQueryResponseInvocationsWorkersExecutionModel string
const (
	ObservabilityTelemetryQueryResponseInvocationsWorkersExecutionModelDurableObject ObservabilityTelemetryQueryResponseInvocationsWorkersExecutionModel = "durableObject"
	ObservabilityTelemetryQueryResponseInvocationsWorkersExecutionModelStateless     ObservabilityTelemetryQueryResponseInvocationsWorkersExecutionModel = "stateless"
)

func (ObservabilityTelemetryQueryResponseInvocationsWorkersExecutionModel) IsKnown

type ObservabilityTelemetryQueryResponseInvocationsWorkersObject

type ObservabilityTelemetryQueryResponseInvocationsWorkersObject struct {
	EventType       ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType      `json:"eventType" api:"required"`
	RequestID       string                                                                    `json:"requestId" api:"required"`
	ScriptName      string                                                                    `json:"scriptName" api:"required"`
	DurableObjectID string                                                                    `json:"durableObjectId"`
	Entrypoint      string                                                                    `json:"entrypoint"`
	Event           map[string]interface{}                                                    `json:"event"`
	ExecutionModel  ObservabilityTelemetryQueryResponseInvocationsWorkersObjectExecutionModel `json:"executionModel"`
	Outcome         string                                                                    `json:"outcome"`
	ScriptVersion   ObservabilityTelemetryQueryResponseInvocationsWorkersObjectScriptVersion  `json:"scriptVersion"`
	SpanID          string                                                                    `json:"spanId"`
	TraceID         string                                                                    `json:"traceId"`
	Truncated       bool                                                                      `json:"truncated"`
	JSON            observabilityTelemetryQueryResponseInvocationsWorkersObjectJSON           `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseInvocationsWorkersObject) UnmarshalJSON

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType string
const (
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeFetch     ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "fetch"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeScheduled ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "scheduled"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeAlarm     ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "alarm"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeCron      ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "cron"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeQueue     ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "queue"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeEmail     ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "email"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeTail      ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "tail"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeRpc       ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "rpc"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeWebsocket ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "websocket"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeWorkflow  ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "workflow"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeUnknown   ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "unknown"
)

func (ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType) IsKnown

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectExecutionModel

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectExecutionModel string
const (
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectExecutionModelDurableObject ObservabilityTelemetryQueryResponseInvocationsWorkersObjectExecutionModel = "durableObject"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectExecutionModelStateless     ObservabilityTelemetryQueryResponseInvocationsWorkersObjectExecutionModel = "stateless"
)

func (ObservabilityTelemetryQueryResponseInvocationsWorkersObjectExecutionModel) IsKnown

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectScriptVersion

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectScriptVersion struct {
	ID      string                                                                       `json:"id"`
	Message string                                                                       `json:"message"`
	Tag     string                                                                       `json:"tag"`
	JSON    observabilityTelemetryQueryResponseInvocationsWorkersObjectScriptVersionJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseInvocationsWorkersObjectScriptVersion) UnmarshalJSON

type ObservabilityTelemetryQueryResponseInvocationsWorkersUnion

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

Cloudflare Workers event information that enriches your logs for identifying and debugging issues.

Union satisfied by ObservabilityTelemetryQueryResponseInvocationsWorkersObject or ObservabilityTelemetryQueryResponseInvocationsWorkersObject.

type ObservabilityTelemetryQueryResponseRun

type ObservabilityTelemetryQueryResponseRun struct {
	// Unique identifier for this query run.
	ID string `json:"id" api:"required"`
	// Cloudflare account ID that owns this query run.
	AccountID string `json:"accountId" api:"required"`
	// Whether this was a dry run (results not persisted).
	Dry bool `json:"dry" api:"required"`
	// Number of time-series buckets used for the query. Higher values produce more
	// detailed series data.
	Granularity float64 `json:"granularity" api:"required"`
	// A saved query definition with its parameters, metadata, and ownership
	// information.
	Query ObservabilityTelemetryQueryResponseRunQuery `json:"query" api:"required"`
	// Current execution status of the query run.
	Status ObservabilityTelemetryQueryResponseRunStatus `json:"status" api:"required"`
	// Time range for the query execution
	Timeframe ObservabilityTelemetryQueryResponseRunTimeframe `json:"timeframe" api:"required"`
	// ID of the user who initiated the query run.
	UserID string `json:"userId" api:"required"`
	// ISO-8601 timestamp when the query run was created.
	Created string `json:"created"`
	// Query performance statistics from the database (does not include network
	// latency).
	Statistics ObservabilityTelemetryQueryResponseRunStatistics `json:"statistics"`
	// ISO-8601 timestamp when the query run was last updated.
	Updated string                                     `json:"updated"`
	JSON    observabilityTelemetryQueryResponseRunJSON `json:"-"`
}

The query run metadata including the query definition, execution status, and timeframe.

func (*ObservabilityTelemetryQueryResponseRun) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseRunQuery

type ObservabilityTelemetryQueryResponseRunQuery struct {
	ID string `json:"id" api:"required"`
	// If the query wasn't explcitly saved
	Adhoc       bool   `json:"adhoc" api:"required"`
	Created     string `json:"created" api:"required"`
	CreatedBy   string `json:"createdBy" api:"required"`
	Description string `json:"description" api:"required,nullable"`
	// Query name
	Name       string                                                `json:"name" api:"required"`
	Parameters ObservabilityTelemetryQueryResponseRunQueryParameters `json:"parameters" api:"required"`
	Updated    string                                                `json:"updated" api:"required"`
	UpdatedBy  string                                                `json:"updatedBy" api:"required"`
	JSON       observabilityTelemetryQueryResponseRunQueryJSON       `json:"-"`
}

A saved query definition with its parameters, metadata, and ownership information.

func (*ObservabilityTelemetryQueryResponseRunQuery) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseRunQueryParameters

type ObservabilityTelemetryQueryResponseRunQueryParameters struct {
	// Create Calculations to compute as part of the query.
	Calculations []ObservabilityTelemetryQueryResponseRunQueryParametersCalculation `json:"calculations"`
	// Set the Datasets to query. Leave it empty to query all the datasets.
	Datasets []string `json:"datasets"`
	// Set a Flag to describe how to combine the filters on the query.
	FilterCombination ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombination `json:"filterCombination"`
	// Configure the Filters to apply to the query. Supports nested groups via kind:
	// 'group'.
	Filters []ObservabilityTelemetryQueryResponseRunQueryParametersFilter `json:"filters"`
	// Define how to group the results of the query.
	GroupBys []ObservabilityTelemetryQueryResponseRunQueryParametersGroupBy `json:"groupBys"`
	// Configure the Having clauses that filter on calculations in the query result.
	Havings []ObservabilityTelemetryQueryResponseRunQueryParametersHaving `json:"havings"`
	// Set a limit on the number of results / records returned by the query
	Limit int64 `json:"limit"`
	// Define an expression to search using full-text search.
	Needle ObservabilityTelemetryQueryResponseRunQueryParametersNeedle `json:"needle"`
	// Configure the order of the results returned by the query.
	OrderBy ObservabilityTelemetryQueryResponseRunQueryParametersOrderBy `json:"orderBy"`
	JSON    observabilityTelemetryQueryResponseRunQueryParametersJSON    `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseRunQueryParameters) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseRunQueryParametersCalculation

type ObservabilityTelemetryQueryResponseRunQueryParametersCalculation struct {
	Operator ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator `json:"operator" api:"required"`
	Alias    string                                                                    `json:"alias"`
	Key      string                                                                    `json:"key"`
	KeyType  ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsKeyType  `json:"keyType"`
	JSON     observabilityTelemetryQueryResponseRunQueryParametersCalculationJSON      `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseRunQueryParametersCalculation) UnmarshalJSON

type ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsKeyType

type ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsKeyType string
const (
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsKeyTypeString  ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsKeyType = "string"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsKeyTypeNumber  ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsKeyType = "number"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsKeyTypeBoolean ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsKeyType = "boolean"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsKeyType) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator

type ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator string
const (
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorUniq              ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "uniq"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorCount             ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "count"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorMax               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "max"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorMin               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "min"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorSum               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "sum"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorAvg               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "avg"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorMedian            ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "median"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP001              ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "p001"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP01               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "p01"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP05               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "p05"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP10               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "p10"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP25               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "p25"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP75               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "p75"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP90               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "p90"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP95               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "p95"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP99               ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "p99"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP999              ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "p999"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorStddev            ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "stddev"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorVariance          ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "variance"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorCountDistinct     ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "COUNT_DISTINCT"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorCountUppercase    ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "COUNT"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorMaxUppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "MAX"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorMinUppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "MIN"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorSumUppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "SUM"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorAvgUppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "AVG"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorMedianUppercase   ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "MEDIAN"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP001Uppercase     ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "P001"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP01Uppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "P01"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP05Uppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "P05"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP10Uppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "P10"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP25Uppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "P25"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP75Uppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "P75"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP90Uppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "P90"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP95Uppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "P95"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP99Uppercase      ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "P99"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorP999Uppercase     ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "P999"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorStddevUppercase   ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "STDDEV"
	ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperatorVarianceUppercase ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator = "VARIANCE"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersCalculationsOperator) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFilter

type ObservabilityTelemetryQueryResponseRunQueryParametersFilter struct {
	FilterCombination ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombination `json:"filterCombination"`
	// This field can have the runtime type of [[]interface{}].
	Filters interface{} `json:"filters"`
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key  string                                                           `json:"key"`
	Kind ObservabilityTelemetryQueryResponseRunQueryParametersFiltersKind `json:"kind"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation `json:"operation"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType `json:"type"`
	// This field can have the runtime type of
	// [ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafValueUnion].
	Value interface{}                                                     `json:"value"`
	JSON  observabilityTelemetryQueryResponseRunQueryParametersFilterJSON `json:"-"`
	// contains filtered or unexported fields
}

Supports nested groups via kind: 'group'.

func (*ObservabilityTelemetryQueryResponseRunQueryParametersFilter) UnmarshalJSON

type ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombination

type ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombination string

Set a Flag to describe how to combine the filters on the query.

const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombinationAnd          ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombination = "and"
	ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombinationOr           ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombination = "or"
	ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombinationAndUppercase ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombination = "AND"
	ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombinationOrUppercase  ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombination = "OR"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFilterCombination) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombination

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombination string
const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombinationAnd          ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombination = "and"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombinationOr           ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombination = "or"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombinationAndUppercase ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombination = "AND"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombinationOrUppercase  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombination = "OR"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFiltersFilterCombination) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersKind

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersKind string
const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersKindGroup  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersKind = "group"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersKindFilter ObservabilityTelemetryQueryResponseRunQueryParametersFiltersKind = "filter"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFiltersKind) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObject

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObject struct {
	FilterCombination ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombination `json:"filterCombination" api:"required"`
	Filters           []interface{}                                                                       `json:"filters" api:"required"`
	Kind              ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectKind              `json:"kind" api:"required"`
	JSON              observabilityTelemetryQueryResponseRunQueryParametersFiltersObjectJSON              `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObject) UnmarshalJSON

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombination

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombination string
const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombinationAnd          ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombination = "and"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombinationOr           ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombination = "or"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombinationAndUppercase ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombination = "AND"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombinationOrUppercase  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombination = "OR"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectFilterCombination) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectKind

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectKind string
const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectKindGroup ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectKind = "group"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObjectKind) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationIncludes            ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "includes"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationNotIncludes         ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "not_includes"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationStartsWith          ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "starts_with"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationRegex               ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "regex"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationExists              ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "exists"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationIsNull              ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "is_null"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationIn                  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "in"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationNotIn               ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "not_in"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationEq                  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "eq"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationNeq                 ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "neq"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationGt                  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "gt"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationGte                 ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "gte"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationLt                  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "lt"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationLte                 ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "lte"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationEquals              ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "="
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationNotEquals           ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "!="
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationGreater             ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = ">"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationGreaterOrEquals     ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = ">="
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationLess                ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "<"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationLessOrEquals        ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "<="
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationIncludesUppercase   ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "INCLUDES"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationDoesNotInclude      ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationMatchRegex          ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "MATCH_REGEX"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationExistsUppercase     ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "EXISTS"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationDoesNotExist        ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationInUppercase         ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "IN"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationNotInUppercase      ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "NOT_IN"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperationStartsWithUppercase ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersTypeString  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType = "string"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersTypeNumber  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType = "number"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersTypeBoolean ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType = "boolean"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersUnion

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

Supports nested groups via kind: 'group'.

Union satisfied by ObservabilityTelemetryQueryResponseRunQueryParametersFiltersObject or ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeaf.

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeaf

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeaf struct {
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key string `json:"key" api:"required"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation `json:"operation" api:"required"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafType `json:"type" api:"required"`
	// Discriminator for leaf filter nodes. Always 'filter' when present; may be
	// omitted.
	Kind ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafKind `json:"kind"`
	// Comparison value. Must match actual values in your data — verify with the values
	// endpoint. Ensure the value type (string/number/boolean) matches the field type.
	// String comparisons are case-sensitive. Regex uses RE2 syntax (no
	// lookaheads/lookbehinds).
	Value ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafValueUnion `json:"value"`
	JSON  observabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafJSON       `json:"-"`
}

A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.

func (*ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeaf) UnmarshalJSON

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafKind

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafKind string

Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.

const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafKindFilter ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafKind = "filter"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafKind) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationIncludes            ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "includes"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationNotIncludes         ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "not_includes"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationStartsWith          ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "starts_with"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationRegex               ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "regex"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationExists              ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "exists"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationIsNull              ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "is_null"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationIn                  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "in"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationNotIn               ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "not_in"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationEq                  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "eq"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationNeq                 ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "neq"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationGt                  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "gt"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationGte                 ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "gte"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationLt                  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "lt"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationLte                 ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "lte"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationEquals              ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "="
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationNotEquals           ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "!="
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationGreater             ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = ">"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationGreaterOrEquals     ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = ">="
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationLess                ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "<"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationLessOrEquals        ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "<="
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationIncludesUppercase   ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "INCLUDES"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationDoesNotInclude      ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationMatchRegex          ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "MATCH_REGEX"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationExistsUppercase     ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "EXISTS"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationDoesNotExist        ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationInUppercase         ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "IN"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationNotInUppercase      ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "NOT_IN"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperationStartsWithUppercase ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafOperation) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafType

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafTypeString  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafType = "string"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafTypeNumber  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafType = "number"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafTypeBoolean ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafType = "boolean"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafType) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafValueUnion

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafValueUnion interface {
	ImplementsObservabilityTelemetryQueryResponseRunQueryParametersFiltersWorkersObservabilityFilterLeafValueUnion()
}

Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).

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

type ObservabilityTelemetryQueryResponseRunQueryParametersGroupBy

type ObservabilityTelemetryQueryResponseRunQueryParametersGroupBy struct {
	Type  ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysType `json:"type" api:"required"`
	Value string                                                            `json:"value" api:"required"`
	JSON  observabilityTelemetryQueryResponseRunQueryParametersGroupByJSON  `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseRunQueryParametersGroupBy) UnmarshalJSON

type ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysType

type ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysType string
const (
	ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysTypeString  ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysType = "string"
	ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysTypeNumber  ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysType = "number"
	ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysTypeBoolean ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysType = "boolean"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysType) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersHaving

type ObservabilityTelemetryQueryResponseRunQueryParametersHaving struct {
	Key       string                                                                `json:"key" api:"required"`
	Operation ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation `json:"operation" api:"required"`
	Value     float64                                                               `json:"value" api:"required"`
	JSON      observabilityTelemetryQueryResponseRunQueryParametersHavingJSON       `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseRunQueryParametersHaving) UnmarshalJSON

type ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation

type ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation string
const (
	ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperationEq  ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation = "eq"
	ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperationNeq ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation = "neq"
	ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperationGt  ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation = "gt"
	ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperationGte ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation = "gte"
	ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperationLt  ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation = "lt"
	ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperationLte ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation = "lte"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersNeedle

type ObservabilityTelemetryQueryResponseRunQueryParametersNeedle struct {
	Value     ObservabilityTelemetryQueryResponseRunQueryParametersNeedleValue `json:"value" api:"required"`
	IsRegex   bool                                                             `json:"isRegex"`
	MatchCase bool                                                             `json:"matchCase"`
	JSON      observabilityTelemetryQueryResponseRunQueryParametersNeedleJSON  `json:"-"`
}

Define an expression to search using full-text search.

func (*ObservabilityTelemetryQueryResponseRunQueryParametersNeedle) UnmarshalJSON

type ObservabilityTelemetryQueryResponseRunQueryParametersNeedleValue

type ObservabilityTelemetryQueryResponseRunQueryParametersNeedleValue struct {
	JSON observabilityTelemetryQueryResponseRunQueryParametersNeedleValueJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseRunQueryParametersNeedleValue) UnmarshalJSON

type ObservabilityTelemetryQueryResponseRunQueryParametersOrderBy

type ObservabilityTelemetryQueryResponseRunQueryParametersOrderBy struct {
	// Configure which Calculation to order the results by.
	Value string `json:"value" api:"required"`
	// Set the order of the results
	Order ObservabilityTelemetryQueryResponseRunQueryParametersOrderByOrder `json:"order"`
	JSON  observabilityTelemetryQueryResponseRunQueryParametersOrderByJSON  `json:"-"`
}

Configure the order of the results returned by the query.

func (*ObservabilityTelemetryQueryResponseRunQueryParametersOrderBy) UnmarshalJSON

type ObservabilityTelemetryQueryResponseRunQueryParametersOrderByOrder

type ObservabilityTelemetryQueryResponseRunQueryParametersOrderByOrder string

Set the order of the results

const (
	ObservabilityTelemetryQueryResponseRunQueryParametersOrderByOrderAsc  ObservabilityTelemetryQueryResponseRunQueryParametersOrderByOrder = "asc"
	ObservabilityTelemetryQueryResponseRunQueryParametersOrderByOrderDesc ObservabilityTelemetryQueryResponseRunQueryParametersOrderByOrder = "desc"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersOrderByOrder) IsKnown

type ObservabilityTelemetryQueryResponseRunStatistics

type ObservabilityTelemetryQueryResponseRunStatistics struct {
	// Number of uncompressed bytes read from the table.
	BytesRead float64 `json:"bytes_read" api:"required"`
	// Time in seconds for the query to run.
	Elapsed float64 `json:"elapsed" api:"required"`
	// Number of rows scanned from the table.
	RowsRead float64 `json:"rows_read" api:"required"`
	// The level of Adaptive Bit Rate (ABR) sampling used for the query. If empty the
	// ABR level is 1
	AbrLevel float64                                              `json:"abr_level"`
	JSON     observabilityTelemetryQueryResponseRunStatisticsJSON `json:"-"`
}

Query performance statistics from the database (does not include network latency).

func (*ObservabilityTelemetryQueryResponseRunStatistics) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseRunStatus

type ObservabilityTelemetryQueryResponseRunStatus string

Current execution status of the query run.

const (
	ObservabilityTelemetryQueryResponseRunStatusStarted   ObservabilityTelemetryQueryResponseRunStatus = "STARTED"
	ObservabilityTelemetryQueryResponseRunStatusCompleted ObservabilityTelemetryQueryResponseRunStatus = "COMPLETED"
)

func (ObservabilityTelemetryQueryResponseRunStatus) IsKnown

type ObservabilityTelemetryQueryResponseRunTimeframe

type ObservabilityTelemetryQueryResponseRunTimeframe struct {
	// Start timestamp for the query timeframe (Unix timestamp in milliseconds)
	From float64 `json:"from" api:"required"`
	// End timestamp for the query timeframe (Unix timestamp in milliseconds)
	To   float64                                             `json:"to" api:"required"`
	JSON observabilityTelemetryQueryResponseRunTimeframeJSON `json:"-"`
}

Time range for the query execution

func (*ObservabilityTelemetryQueryResponseRunTimeframe) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseStatistics

type ObservabilityTelemetryQueryResponseStatistics struct {
	// Number of uncompressed bytes read from the table.
	BytesRead float64 `json:"bytes_read" api:"required"`
	// Time in seconds for the query to run.
	Elapsed float64 `json:"elapsed" api:"required"`
	// Number of rows scanned from the table.
	RowsRead float64 `json:"rows_read" api:"required"`
	// The level of Adaptive Bit Rate (ABR) sampling used for the query. If empty the
	// ABR level is 1
	AbrLevel float64                                           `json:"abr_level"`
	JSON     observabilityTelemetryQueryResponseStatisticsJSON `json:"-"`
}

Query performance statistics from the database. Includes execution time, rows scanned, and bytes read. Does not include network latency.

func (*ObservabilityTelemetryQueryResponseStatistics) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseTrace

type ObservabilityTelemetryQueryResponseTrace struct {
	// Name of the root span that initiated the trace.
	RootSpanName string `json:"rootSpanName" api:"required"`
	// Logical transaction name for the root span.
	RootTransactionName string `json:"rootTransactionName" api:"required"`
	// List of Worker services involved in the trace.
	Service []string `json:"service" api:"required"`
	// Total number of spans in the trace.
	Spans float64 `json:"spans" api:"required"`
	// Total duration of the trace in milliseconds.
	TraceDurationMs float64 `json:"traceDurationMs" api:"required"`
	// Trace end time as a Unix epoch in milliseconds.
	TraceEndMs float64 `json:"traceEndMs" api:"required"`
	// Unique identifier for the distributed trace.
	TraceID string `json:"traceId" api:"required"`
	// Trace start time as a Unix epoch in milliseconds.
	TraceStartMs float64 `json:"traceStartMs" api:"required"`
	// Error messages encountered during the trace, if any.
	Errors []string                                     `json:"errors"`
	JSON   observabilityTelemetryQueryResponseTraceJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseTrace) UnmarshalJSON

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

type ObservabilityTelemetryService

type ObservabilityTelemetryService struct {
	Options []option.RequestOption
}

ObservabilityTelemetryService 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 NewObservabilityTelemetryService method instead.

func NewObservabilityTelemetryService

func NewObservabilityTelemetryService(opts ...option.RequestOption) (r *ObservabilityTelemetryService)

NewObservabilityTelemetryService 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 (*ObservabilityTelemetryService) Keys

List all the keys in your telemetry events.

func (*ObservabilityTelemetryService) KeysAutoPaging

List all the keys in your telemetry events.

func (*ObservabilityTelemetryService) Query

Run a temporary or saved query.

func (*ObservabilityTelemetryService) Values

List unique values found in your events.

func (*ObservabilityTelemetryService) ValuesAutoPaging

List unique values found in your events.

type ObservabilityTelemetryValuesParams

type ObservabilityTelemetryValuesParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Leave this empty to use the default datasets
	Datasets  param.Field[[]string]                                    `json:"datasets" api:"required"`
	Key       param.Field[string]                                      `json:"key" api:"required"`
	Timeframe param.Field[ObservabilityTelemetryValuesParamsTimeframe] `json:"timeframe" api:"required"`
	Type      param.Field[ObservabilityTelemetryValuesParamsType]      `json:"type" api:"required"`
	// Apply filters before listing values. Supports nested groups via kind: 'group'.
	// Maximum nesting depth is 4.
	Filters param.Field[[]ObservabilityTelemetryValuesParamsFilterUnion] `json:"filters"`
	Limit   param.Field[float64]                                         `json:"limit"`
	// Full-text search expression to match events containing the specified text or
	// pattern.
	Needle param.Field[ObservabilityTelemetryValuesParamsNeedle] `json:"needle"`
}

func (ObservabilityTelemetryValuesParams) MarshalJSON

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

type ObservabilityTelemetryValuesParamsFilter

type ObservabilityTelemetryValuesParamsFilter struct {
	FilterCombination param.Field[ObservabilityTelemetryValuesParamsFiltersFilterCombination] `json:"filterCombination"`
	Filters           param.Field[interface{}]                                                `json:"filters"`
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key  param.Field[string]                                        `json:"key"`
	Kind param.Field[ObservabilityTelemetryValuesParamsFiltersKind] `json:"kind"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryValuesParamsFiltersOperation] `json:"operation"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type  param.Field[ObservabilityTelemetryValuesParamsFiltersType] `json:"type"`
	Value param.Field[interface{}]                                   `json:"value"`
}

Supports nested groups via kind: 'group'.

func (ObservabilityTelemetryValuesParamsFilter) MarshalJSON

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

type ObservabilityTelemetryValuesParamsFilterUnion

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

Supports nested groups via kind: 'group'.

Satisfied by workers.ObservabilityTelemetryValuesParamsFiltersObject, workers.ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeaf, ObservabilityTelemetryValuesParamsFilter.

type ObservabilityTelemetryValuesParamsFiltersFilterCombination

type ObservabilityTelemetryValuesParamsFiltersFilterCombination string
const (
	ObservabilityTelemetryValuesParamsFiltersFilterCombinationAnd          ObservabilityTelemetryValuesParamsFiltersFilterCombination = "and"
	ObservabilityTelemetryValuesParamsFiltersFilterCombinationOr           ObservabilityTelemetryValuesParamsFiltersFilterCombination = "or"
	ObservabilityTelemetryValuesParamsFiltersFilterCombinationAndUppercase ObservabilityTelemetryValuesParamsFiltersFilterCombination = "AND"
	ObservabilityTelemetryValuesParamsFiltersFilterCombinationOrUppercase  ObservabilityTelemetryValuesParamsFiltersFilterCombination = "OR"
)

func (ObservabilityTelemetryValuesParamsFiltersFilterCombination) IsKnown

type ObservabilityTelemetryValuesParamsFiltersKind

type ObservabilityTelemetryValuesParamsFiltersKind string
const (
	ObservabilityTelemetryValuesParamsFiltersKindGroup  ObservabilityTelemetryValuesParamsFiltersKind = "group"
	ObservabilityTelemetryValuesParamsFiltersKindFilter ObservabilityTelemetryValuesParamsFiltersKind = "filter"
)

func (ObservabilityTelemetryValuesParamsFiltersKind) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObject

type ObservabilityTelemetryValuesParamsFiltersObject struct {
	FilterCombination param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFilterCombination] `json:"filterCombination" api:"required"`
	Filters           param.Field[[]ObservabilityTelemetryValuesParamsFiltersObjectFilterUnion]     `json:"filters" api:"required"`
	Kind              param.Field[ObservabilityTelemetryValuesParamsFiltersObjectKind]              `json:"kind" api:"required"`
}

func (ObservabilityTelemetryValuesParamsFiltersObject) MarshalJSON

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

type ObservabilityTelemetryValuesParamsFiltersObjectFilter

type ObservabilityTelemetryValuesParamsFiltersObjectFilter struct {
	FilterCombination param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombination] `json:"filterCombination"`
	Filters           param.Field[interface{}]                                                             `json:"filters"`
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key  param.Field[string]                                                     `json:"key"`
	Kind param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFiltersKind] `json:"kind"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation] `json:"operation"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type  param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFiltersType] `json:"type"`
	Value param.Field[interface{}]                                                `json:"value"`
}

Supports nested groups via kind: 'group'.

func (ObservabilityTelemetryValuesParamsFiltersObjectFilter) MarshalJSON

type ObservabilityTelemetryValuesParamsFiltersObjectFilterCombination

type ObservabilityTelemetryValuesParamsFiltersObjectFilterCombination string
const (
	ObservabilityTelemetryValuesParamsFiltersObjectFilterCombinationAnd          ObservabilityTelemetryValuesParamsFiltersObjectFilterCombination = "and"
	ObservabilityTelemetryValuesParamsFiltersObjectFilterCombinationOr           ObservabilityTelemetryValuesParamsFiltersObjectFilterCombination = "or"
	ObservabilityTelemetryValuesParamsFiltersObjectFilterCombinationAndUppercase ObservabilityTelemetryValuesParamsFiltersObjectFilterCombination = "AND"
	ObservabilityTelemetryValuesParamsFiltersObjectFilterCombinationOrUppercase  ObservabilityTelemetryValuesParamsFiltersObjectFilterCombination = "OR"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectFilterCombination) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObjectFilterUnion

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

Supports nested groups via kind: 'group'.

Satisfied by workers.ObservabilityTelemetryValuesParamsFiltersObjectFiltersObject, workers.ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeaf, ObservabilityTelemetryValuesParamsFiltersObjectFilter.

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombination

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombination string
const (
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombinationAnd          ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombination = "and"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombinationOr           ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombination = "or"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombinationAndUppercase ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombination = "AND"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombinationOrUppercase  ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombination = "OR"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersFilterCombination) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersKind

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersKind string
const (
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersKindGroup  ObservabilityTelemetryValuesParamsFiltersObjectFiltersKind = "group"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersKindFilter ObservabilityTelemetryValuesParamsFiltersObjectFiltersKind = "filter"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersKind) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersObject

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersObject struct {
	FilterCombination param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombination] `json:"filterCombination" api:"required"`
	Filters           param.Field[[]interface{}]                                                                 `json:"filters" api:"required"`
	Kind              param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectKind]              `json:"kind" api:"required"`
}

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersObject) MarshalJSON

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombination

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombination string
const (
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombinationAnd          ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombination = "and"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombinationOr           ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombination = "or"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombinationAndUppercase ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombination = "AND"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombinationOrUppercase  ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombination = "OR"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectFilterCombination) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectKind

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectKind string
const (
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectKindGroup ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectKind = "group"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersObjectKind) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationIncludes            ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "includes"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationNotIncludes         ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "not_includes"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationStartsWith          ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "starts_with"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationRegex               ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "regex"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationExists              ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "exists"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationIsNull              ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "is_null"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationIn                  ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "in"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationNotIn               ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "not_in"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationEq                  ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "eq"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationNeq                 ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "neq"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationGt                  ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "gt"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationGte                 ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "gte"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationLt                  ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "lt"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationLte                 ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "lte"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationEquals              ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "="
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationNotEquals           ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "!="
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationGreater             ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = ">"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationGreaterOrEquals     ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = ">="
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationLess                ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "<"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationLessOrEquals        ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "<="
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationIncludesUppercase   ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "INCLUDES"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationDoesNotInclude      ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationMatchRegex          ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "MATCH_REGEX"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationExistsUppercase     ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "EXISTS"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationDoesNotExist        ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationInUppercase         ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "IN"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationNotInUppercase      ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "NOT_IN"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperationStartsWithUppercase ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersOperation) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersType

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersTypeString  ObservabilityTelemetryValuesParamsFiltersObjectFiltersType = "string"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersTypeNumber  ObservabilityTelemetryValuesParamsFiltersObjectFiltersType = "number"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersTypeBoolean ObservabilityTelemetryValuesParamsFiltersObjectFiltersType = "boolean"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersType) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeaf

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeaf struct {
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key param.Field[string] `json:"key" api:"required"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation] `json:"operation" api:"required"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType] `json:"type" api:"required"`
	// Discriminator for leaf filter nodes. Always 'filter' when present; may be
	// omitted.
	Kind param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKind] `json:"kind"`
	// Comparison value. Must match actual values in your data — verify with the values
	// endpoint. Ensure the value type (string/number/boolean) matches the field type.
	// String comparisons are case-sensitive. Regex uses RE2 syntax (no
	// lookaheads/lookbehinds).
	Value param.Field[ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion] `json:"value"`
}

A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeaf) MarshalJSON

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKind

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKind string

Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.

const (
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKindFilter ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKind = "filter"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafKind) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIncludes            ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "includes"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotIncludes         ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "not_includes"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationStartsWith          ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "starts_with"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationRegex               ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "regex"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationExists              ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "exists"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIsNull              ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "is_null"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIn                  ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "in"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotIn               ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "not_in"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationEq                  ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "eq"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNeq                 ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "neq"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGt                  ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "gt"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGte                 ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "gte"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLt                  ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "lt"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLte                 ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "lte"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationEquals              ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "="
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotEquals           ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "!="
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGreater             ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = ">"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationGreaterOrEquals     ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = ">="
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLess                ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "<"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationLessOrEquals        ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "<="
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationIncludesUppercase   ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "INCLUDES"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationDoesNotInclude      ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationMatchRegex          ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "MATCH_REGEX"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationExistsUppercase     ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "EXISTS"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationDoesNotExist        ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationInUppercase         ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "IN"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationNotInUppercase      ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "NOT_IN"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperationStartsWithUppercase ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafOperation) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafTypeString  ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType = "string"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafTypeNumber  ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType = "number"
	ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafTypeBoolean ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType = "boolean"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafType) IsKnown

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion

type ObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion interface {
	ImplementsObservabilityTelemetryValuesParamsFiltersObjectFiltersWorkersObservabilityFilterLeafValueUnion()
}

Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityTelemetryValuesParamsFiltersObjectKind

type ObservabilityTelemetryValuesParamsFiltersObjectKind string
const (
	ObservabilityTelemetryValuesParamsFiltersObjectKindGroup ObservabilityTelemetryValuesParamsFiltersObjectKind = "group"
)

func (ObservabilityTelemetryValuesParamsFiltersObjectKind) IsKnown

type ObservabilityTelemetryValuesParamsFiltersOperation

type ObservabilityTelemetryValuesParamsFiltersOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryValuesParamsFiltersOperationIncludes            ObservabilityTelemetryValuesParamsFiltersOperation = "includes"
	ObservabilityTelemetryValuesParamsFiltersOperationNotIncludes         ObservabilityTelemetryValuesParamsFiltersOperation = "not_includes"
	ObservabilityTelemetryValuesParamsFiltersOperationStartsWith          ObservabilityTelemetryValuesParamsFiltersOperation = "starts_with"
	ObservabilityTelemetryValuesParamsFiltersOperationRegex               ObservabilityTelemetryValuesParamsFiltersOperation = "regex"
	ObservabilityTelemetryValuesParamsFiltersOperationExists              ObservabilityTelemetryValuesParamsFiltersOperation = "exists"
	ObservabilityTelemetryValuesParamsFiltersOperationIsNull              ObservabilityTelemetryValuesParamsFiltersOperation = "is_null"
	ObservabilityTelemetryValuesParamsFiltersOperationIn                  ObservabilityTelemetryValuesParamsFiltersOperation = "in"
	ObservabilityTelemetryValuesParamsFiltersOperationNotIn               ObservabilityTelemetryValuesParamsFiltersOperation = "not_in"
	ObservabilityTelemetryValuesParamsFiltersOperationEq                  ObservabilityTelemetryValuesParamsFiltersOperation = "eq"
	ObservabilityTelemetryValuesParamsFiltersOperationNeq                 ObservabilityTelemetryValuesParamsFiltersOperation = "neq"
	ObservabilityTelemetryValuesParamsFiltersOperationGt                  ObservabilityTelemetryValuesParamsFiltersOperation = "gt"
	ObservabilityTelemetryValuesParamsFiltersOperationGte                 ObservabilityTelemetryValuesParamsFiltersOperation = "gte"
	ObservabilityTelemetryValuesParamsFiltersOperationLt                  ObservabilityTelemetryValuesParamsFiltersOperation = "lt"
	ObservabilityTelemetryValuesParamsFiltersOperationLte                 ObservabilityTelemetryValuesParamsFiltersOperation = "lte"
	ObservabilityTelemetryValuesParamsFiltersOperationEquals              ObservabilityTelemetryValuesParamsFiltersOperation = "="
	ObservabilityTelemetryValuesParamsFiltersOperationNotEquals           ObservabilityTelemetryValuesParamsFiltersOperation = "!="
	ObservabilityTelemetryValuesParamsFiltersOperationGreater             ObservabilityTelemetryValuesParamsFiltersOperation = ">"
	ObservabilityTelemetryValuesParamsFiltersOperationGreaterOrEquals     ObservabilityTelemetryValuesParamsFiltersOperation = ">="
	ObservabilityTelemetryValuesParamsFiltersOperationLess                ObservabilityTelemetryValuesParamsFiltersOperation = "<"
	ObservabilityTelemetryValuesParamsFiltersOperationLessOrEquals        ObservabilityTelemetryValuesParamsFiltersOperation = "<="
	ObservabilityTelemetryValuesParamsFiltersOperationIncludesUppercase   ObservabilityTelemetryValuesParamsFiltersOperation = "INCLUDES"
	ObservabilityTelemetryValuesParamsFiltersOperationDoesNotInclude      ObservabilityTelemetryValuesParamsFiltersOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryValuesParamsFiltersOperationMatchRegex          ObservabilityTelemetryValuesParamsFiltersOperation = "MATCH_REGEX"
	ObservabilityTelemetryValuesParamsFiltersOperationExistsUppercase     ObservabilityTelemetryValuesParamsFiltersOperation = "EXISTS"
	ObservabilityTelemetryValuesParamsFiltersOperationDoesNotExist        ObservabilityTelemetryValuesParamsFiltersOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryValuesParamsFiltersOperationInUppercase         ObservabilityTelemetryValuesParamsFiltersOperation = "IN"
	ObservabilityTelemetryValuesParamsFiltersOperationNotInUppercase      ObservabilityTelemetryValuesParamsFiltersOperation = "NOT_IN"
	ObservabilityTelemetryValuesParamsFiltersOperationStartsWithUppercase ObservabilityTelemetryValuesParamsFiltersOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryValuesParamsFiltersOperation) IsKnown

type ObservabilityTelemetryValuesParamsFiltersType

type ObservabilityTelemetryValuesParamsFiltersType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryValuesParamsFiltersTypeString  ObservabilityTelemetryValuesParamsFiltersType = "string"
	ObservabilityTelemetryValuesParamsFiltersTypeNumber  ObservabilityTelemetryValuesParamsFiltersType = "number"
	ObservabilityTelemetryValuesParamsFiltersTypeBoolean ObservabilityTelemetryValuesParamsFiltersType = "boolean"
)

func (ObservabilityTelemetryValuesParamsFiltersType) IsKnown

type ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeaf

type ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeaf struct {
	// Filter field name. Use verified keys from previous query results or the keys
	// endpoint. Common keys include $metadata.service, $metadata.origin,
	// $metadata.trigger, $metadata.message, and $metadata.error.
	Key param.Field[string] `json:"key" api:"required"`
	// Comparison operator. String operators: includes, not_includes, starts_with,
	// regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated
	// values). Numeric: eq, neq, gt, gte, lt, lte.
	Operation param.Field[ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation] `json:"operation" api:"required"`
	// Data type of the filter field. Must match the actual type of the key being
	// filtered.
	Type param.Field[ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafType] `json:"type" api:"required"`
	// Discriminator for leaf filter nodes. Always 'filter' when present; may be
	// omitted.
	Kind param.Field[ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafKind] `json:"kind"`
	// Comparison value. Must match actual values in your data — verify with the values
	// endpoint. Ensure the value type (string/number/boolean) matches the field type.
	// String comparisons are case-sensitive. Regex uses RE2 syntax (no
	// lookaheads/lookbehinds).
	Value param.Field[ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafValueUnion] `json:"value"`
}

A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.

func (ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeaf) MarshalJSON

type ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafKind

type ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafKind string

Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.

const (
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafKindFilter ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafKind = "filter"
)

func (ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafKind) IsKnown

type ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation

type ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation string

Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.

const (
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationIncludes            ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "includes"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationNotIncludes         ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "not_includes"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationStartsWith          ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "starts_with"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationRegex               ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "regex"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationExists              ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "exists"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationIsNull              ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "is_null"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationIn                  ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "in"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationNotIn               ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "not_in"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationEq                  ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "eq"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationNeq                 ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "neq"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationGt                  ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "gt"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationGte                 ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "gte"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationLt                  ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "lt"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationLte                 ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "lte"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationEquals              ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "="
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationNotEquals           ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "!="
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationGreater             ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = ">"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationGreaterOrEquals     ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = ">="
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationLess                ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "<"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationLessOrEquals        ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "<="
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationIncludesUppercase   ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "INCLUDES"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationDoesNotInclude      ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_INCLUDE"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationMatchRegex          ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "MATCH_REGEX"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationExistsUppercase     ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "EXISTS"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationDoesNotExist        ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "DOES_NOT_EXIST"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationInUppercase         ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "IN"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationNotInUppercase      ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "NOT_IN"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperationStartsWithUppercase ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation = "STARTS_WITH"
)

func (ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafOperation) IsKnown

type ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafType

type ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafType string

Data type of the filter field. Must match the actual type of the key being filtered.

const (
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafTypeString  ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafType = "string"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafTypeNumber  ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafType = "number"
	ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafTypeBoolean ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafType = "boolean"
)

func (ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafType) IsKnown

type ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafValueUnion

type ObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafValueUnion interface {
	ImplementsObservabilityTelemetryValuesParamsFiltersWorkersObservabilityFilterLeafValueUnion()
}

Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityTelemetryValuesParamsNeedle

type ObservabilityTelemetryValuesParamsNeedle struct {
	// The text or pattern to search for.
	Value param.Field[ObservabilityTelemetryValuesParamsNeedleValueUnion] `json:"value" api:"required"`
	// When true, treats the value as a regular expression (RE2 syntax).
	IsRegex param.Field[bool] `json:"isRegex"`
	// When true, performs a case-sensitive search. Defaults to case-insensitive.
	MatchCase param.Field[bool] `json:"matchCase"`
}

Full-text search expression to match events containing the specified text or pattern.

func (ObservabilityTelemetryValuesParamsNeedle) MarshalJSON

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

type ObservabilityTelemetryValuesParamsNeedleValueUnion

type ObservabilityTelemetryValuesParamsNeedleValueUnion interface {
	ImplementsObservabilityTelemetryValuesParamsNeedleValueUnion()
}

The text or pattern to search for.

Satisfied by shared.UnionString, shared.UnionFloat, shared.UnionBool.

type ObservabilityTelemetryValuesParamsTimeframe

type ObservabilityTelemetryValuesParamsTimeframe struct {
	From param.Field[float64] `json:"from" api:"required"`
	To   param.Field[float64] `json:"to" api:"required"`
}

func (ObservabilityTelemetryValuesParamsTimeframe) MarshalJSON

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

type ObservabilityTelemetryValuesParamsType

type ObservabilityTelemetryValuesParamsType string
const (
	ObservabilityTelemetryValuesParamsTypeString  ObservabilityTelemetryValuesParamsType = "string"
	ObservabilityTelemetryValuesParamsTypeBoolean ObservabilityTelemetryValuesParamsType = "boolean"
	ObservabilityTelemetryValuesParamsTypeNumber  ObservabilityTelemetryValuesParamsType = "number"
)

func (ObservabilityTelemetryValuesParamsType) IsKnown

type ObservabilityTelemetryValuesResponse

type ObservabilityTelemetryValuesResponse struct {
	Dataset string                                         `json:"dataset" api:"required"`
	Key     string                                         `json:"key" api:"required"`
	Type    ObservabilityTelemetryValuesResponseType       `json:"type" api:"required"`
	Value   ObservabilityTelemetryValuesResponseValueUnion `json:"value" api:"required"`
	JSON    observabilityTelemetryValuesResponseJSON       `json:"-"`
}

func (*ObservabilityTelemetryValuesResponse) UnmarshalJSON

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

type ObservabilityTelemetryValuesResponseType

type ObservabilityTelemetryValuesResponseType string
const (
	ObservabilityTelemetryValuesResponseTypeString  ObservabilityTelemetryValuesResponseType = "string"
	ObservabilityTelemetryValuesResponseTypeBoolean ObservabilityTelemetryValuesResponseType = "boolean"
	ObservabilityTelemetryValuesResponseTypeNumber  ObservabilityTelemetryValuesResponseType = "number"
)

func (ObservabilityTelemetryValuesResponseType) IsKnown

type ObservabilityTelemetryValuesResponseValueUnion

type ObservabilityTelemetryValuesResponseValueUnion interface {
	ImplementsObservabilityTelemetryValuesResponseValueUnion()
}

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

type Permission

type Permission = shared.Permission

This is an alias to an internal type.

type PermissionGrant

type PermissionGrant = shared.PermissionGrant

This is an alias to an internal type.

type PermissionGrantParam

type PermissionGrantParam = shared.PermissionGrantParam

This is an alias to an internal type.

type RatePlan

type RatePlan = shared.RatePlan

The rate plan applied to the subscription.

This is an alias to an internal type.

type RatePlanID

type RatePlanID = shared.RatePlanID

The ID of the rate plan.

This is an alias to an internal type.

type RatePlanParam

type RatePlanParam = shared.RatePlanParam

The rate plan applied to the subscription.

This is an alias to an internal type.

type ResponseInfo

type ResponseInfo = shared.ResponseInfo

This is an alias to an internal type.

type ResponseInfoSource

type ResponseInfoSource = shared.ResponseInfoSource

This is an alias to an internal type.

type Role

type Role = shared.Role

This is an alias to an internal type.

type RoleParam

type RoleParam = shared.RoleParam

This is an alias to an internal type.

type RolePermissions

type RolePermissions = shared.RolePermissions

This is an alias to an internal type.

type RolePermissionsParam

type RolePermissionsParam = shared.RolePermissionsParam

This is an alias to an internal type.

type RouteDeleteParams

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

type RouteDeleteResponse

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

func (*RouteDeleteResponse) UnmarshalJSON

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

type RouteDeleteResponseEnvelope

type RouteDeleteResponseEnvelope struct {
	Errors   []RouteDeleteResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []RouteDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   RouteDeleteResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success RouteDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    routeDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*RouteDeleteResponseEnvelope) UnmarshalJSON

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

type RouteDeleteResponseEnvelopeErrors

type RouteDeleteResponseEnvelopeErrors struct {
	Code             int64                                   `json:"code" api:"required"`
	Message          string                                  `json:"message" api:"required"`
	DocumentationURL string                                  `json:"documentation_url"`
	Source           RouteDeleteResponseEnvelopeErrorsSource `json:"source"`
	JSON             routeDeleteResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*RouteDeleteResponseEnvelopeErrors) UnmarshalJSON

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

type RouteDeleteResponseEnvelopeErrorsSource

type RouteDeleteResponseEnvelopeErrorsSource struct {
	Pointer string                                      `json:"pointer"`
	JSON    routeDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*RouteDeleteResponseEnvelopeErrorsSource) UnmarshalJSON

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

type RouteDeleteResponseEnvelopeMessages

type RouteDeleteResponseEnvelopeMessages struct {
	Code             int64                                     `json:"code" api:"required"`
	Message          string                                    `json:"message" api:"required"`
	DocumentationURL string                                    `json:"documentation_url"`
	Source           RouteDeleteResponseEnvelopeMessagesSource `json:"source"`
	JSON             routeDeleteResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*RouteDeleteResponseEnvelopeMessages) UnmarshalJSON

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

type RouteDeleteResponseEnvelopeMessagesSource

type RouteDeleteResponseEnvelopeMessagesSource struct {
	Pointer string                                        `json:"pointer"`
	JSON    routeDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*RouteDeleteResponseEnvelopeMessagesSource) UnmarshalJSON

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

type RouteDeleteResponseEnvelopeSuccess

type RouteDeleteResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	RouteDeleteResponseEnvelopeSuccessTrue RouteDeleteResponseEnvelopeSuccess = true
)

func (RouteDeleteResponseEnvelopeSuccess) IsKnown

type RouteGetParams

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

type RouteGetResponse

type RouteGetResponse struct {
	// Identifier.
	ID string `json:"id" api:"required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern string `json:"pattern" api:"required"`
	// Name of the script to run if the route matches.
	Script string               `json:"script"`
	JSON   routeGetResponseJSON `json:"-"`
}

func (*RouteGetResponse) UnmarshalJSON

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

type RouteGetResponseEnvelope

type RouteGetResponseEnvelope struct {
	Errors   []RouteGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []RouteGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   RouteGetResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success RouteGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    routeGetResponseEnvelopeJSON    `json:"-"`
}

func (*RouteGetResponseEnvelope) UnmarshalJSON

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

type RouteGetResponseEnvelopeErrors

type RouteGetResponseEnvelopeErrors struct {
	Code             int64                                `json:"code" api:"required"`
	Message          string                               `json:"message" api:"required"`
	DocumentationURL string                               `json:"documentation_url"`
	Source           RouteGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             routeGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*RouteGetResponseEnvelopeErrors) UnmarshalJSON

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

type RouteGetResponseEnvelopeErrorsSource

type RouteGetResponseEnvelopeErrorsSource struct {
	Pointer string                                   `json:"pointer"`
	JSON    routeGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*RouteGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type RouteGetResponseEnvelopeMessages

type RouteGetResponseEnvelopeMessages struct {
	Code             int64                                  `json:"code" api:"required"`
	Message          string                                 `json:"message" api:"required"`
	DocumentationURL string                                 `json:"documentation_url"`
	Source           RouteGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             routeGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*RouteGetResponseEnvelopeMessages) UnmarshalJSON

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

type RouteGetResponseEnvelopeMessagesSource

type RouteGetResponseEnvelopeMessagesSource struct {
	Pointer string                                     `json:"pointer"`
	JSON    routeGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*RouteGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type RouteGetResponseEnvelopeSuccess

type RouteGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	RouteGetResponseEnvelopeSuccessTrue RouteGetResponseEnvelopeSuccess = true
)

func (RouteGetResponseEnvelopeSuccess) IsKnown

type RouteListParams

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

type RouteListResponse

type RouteListResponse struct {
	// Identifier.
	ID string `json:"id" api:"required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern string `json:"pattern" api:"required"`
	// Name of the script to run if the route matches.
	Script string                `json:"script"`
	JSON   routeListResponseJSON `json:"-"`
}

func (*RouteListResponse) UnmarshalJSON

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

type RouteNewParams

type RouteNewParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern param.Field[string] `json:"pattern" api:"required"`
	// Name of the script to run if the route matches.
	Script param.Field[string] `json:"script"`
}

func (RouteNewParams) MarshalJSON

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

type RouteNewResponse

type RouteNewResponse struct {
	// Identifier.
	ID string `json:"id" api:"required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern string `json:"pattern" api:"required"`
	// Name of the script to run if the route matches.
	Script string               `json:"script"`
	JSON   routeNewResponseJSON `json:"-"`
}

func (*RouteNewResponse) UnmarshalJSON

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

type RouteNewResponseEnvelope

type RouteNewResponseEnvelope struct {
	Errors   []RouteNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []RouteNewResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   RouteNewResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success RouteNewResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    routeNewResponseEnvelopeJSON    `json:"-"`
}

func (*RouteNewResponseEnvelope) UnmarshalJSON

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

type RouteNewResponseEnvelopeErrors

type RouteNewResponseEnvelopeErrors struct {
	Code             int64                                `json:"code" api:"required"`
	Message          string                               `json:"message" api:"required"`
	DocumentationURL string                               `json:"documentation_url"`
	Source           RouteNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             routeNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*RouteNewResponseEnvelopeErrors) UnmarshalJSON

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

type RouteNewResponseEnvelopeErrorsSource

type RouteNewResponseEnvelopeErrorsSource struct {
	Pointer string                                   `json:"pointer"`
	JSON    routeNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*RouteNewResponseEnvelopeErrorsSource) UnmarshalJSON

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

type RouteNewResponseEnvelopeMessages

type RouteNewResponseEnvelopeMessages struct {
	Code             int64                                  `json:"code" api:"required"`
	Message          string                                 `json:"message" api:"required"`
	DocumentationURL string                                 `json:"documentation_url"`
	Source           RouteNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             routeNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*RouteNewResponseEnvelopeMessages) UnmarshalJSON

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

type RouteNewResponseEnvelopeMessagesSource

type RouteNewResponseEnvelopeMessagesSource struct {
	Pointer string                                     `json:"pointer"`
	JSON    routeNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*RouteNewResponseEnvelopeMessagesSource) UnmarshalJSON

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

type RouteNewResponseEnvelopeSuccess

type RouteNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	RouteNewResponseEnvelopeSuccessTrue RouteNewResponseEnvelopeSuccess = true
)

func (RouteNewResponseEnvelopeSuccess) IsKnown

type RouteService

type RouteService struct {
	Options []option.RequestOption
}

RouteService 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 NewRouteService method instead.

func NewRouteService

func NewRouteService(opts ...option.RequestOption) (r *RouteService)

NewRouteService 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 (*RouteService) Delete

func (r *RouteService) Delete(ctx context.Context, routeID string, body RouteDeleteParams, opts ...option.RequestOption) (res *RouteDeleteResponse, err error)

Deletes a route.

func (*RouteService) Get

func (r *RouteService) Get(ctx context.Context, routeID string, query RouteGetParams, opts ...option.RequestOption) (res *RouteGetResponse, err error)

Returns information about a route, including URL pattern and Worker.

func (*RouteService) List

Returns routes for a zone.

func (*RouteService) ListAutoPaging

Returns routes for a zone.

func (*RouteService) New

func (r *RouteService) New(ctx context.Context, params RouteNewParams, opts ...option.RequestOption) (res *RouteNewResponse, err error)

Creates a route that maps a URL pattern to a Worker.

func (*RouteService) Update

func (r *RouteService) Update(ctx context.Context, routeID string, params RouteUpdateParams, opts ...option.RequestOption) (res *RouteUpdateResponse, err error)

Updates the URL pattern or Worker associated with a route.

type RouteUpdateParams

type RouteUpdateParams struct {
	// Identifier.
	ZoneID param.Field[string] `path:"zone_id" api:"required"`
	// Identifier.
	ID param.Field[string] `json:"id,required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern param.Field[string] `json:"pattern" api:"required"`
	// Name of the script to run if the route matches.
	Script param.Field[string] `json:"script"`
}

func (RouteUpdateParams) MarshalJSON

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

type RouteUpdateResponse

type RouteUpdateResponse struct {
	// Identifier.
	ID string `json:"id" api:"required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern string `json:"pattern" api:"required"`
	// Name of the script to run if the route matches.
	Script string                  `json:"script"`
	JSON   routeUpdateResponseJSON `json:"-"`
}

func (*RouteUpdateResponse) UnmarshalJSON

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

type RouteUpdateResponseEnvelope

type RouteUpdateResponseEnvelope struct {
	Errors   []RouteUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []RouteUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   RouteUpdateResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success RouteUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    routeUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*RouteUpdateResponseEnvelope) UnmarshalJSON

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

type RouteUpdateResponseEnvelopeErrors

type RouteUpdateResponseEnvelopeErrors struct {
	Code             int64                                   `json:"code" api:"required"`
	Message          string                                  `json:"message" api:"required"`
	DocumentationURL string                                  `json:"documentation_url"`
	Source           RouteUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             routeUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*RouteUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type RouteUpdateResponseEnvelopeErrorsSource

type RouteUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                      `json:"pointer"`
	JSON    routeUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*RouteUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

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

type RouteUpdateResponseEnvelopeMessages

type RouteUpdateResponseEnvelopeMessages struct {
	Code             int64                                     `json:"code" api:"required"`
	Message          string                                    `json:"message" api:"required"`
	DocumentationURL string                                    `json:"documentation_url"`
	Source           RouteUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             routeUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*RouteUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type RouteUpdateResponseEnvelopeMessagesSource

type RouteUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                        `json:"pointer"`
	JSON    routeUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*RouteUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

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

type RouteUpdateResponseEnvelopeSuccess

type RouteUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	RouteUpdateResponseEnvelopeSuccessTrue RouteUpdateResponseEnvelopeSuccess = true
)

func (RouteUpdateResponseEnvelopeSuccess) IsKnown

type Script

type Script struct {
	// The name used to identify the script.
	ID string `json:"id"`
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate string `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime. Used to
	// enable upcoming features or opt in or out of specific changes not included in a
	// `compatibility_date`.
	CompatibilityFlags []string `json:"compatibility_flags"`
	// When the script was created.
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// Hashed script content, can be used in a If-None-Match header when updating.
	Etag string `json:"etag"`
	// The names of handlers exported as part of the default export.
	Handlers []string `json:"handlers"`
	// Whether a Worker contains assets.
	HasAssets bool `json:"has_assets"`
	// Whether a Worker contains modules.
	HasModules bool `json:"has_modules"`
	// The client most recently used to deploy this Worker.
	LastDeployedFrom string `json:"last_deployed_from"`
	// Whether Logpush is turned on for the Worker.
	Logpush bool `json:"logpush"`
	// The tag of the Durable Object migration that was most recently applied for this
	// Worker.
	MigrationTag string `json:"migration_tag"`
	// When the script was last modified.
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// Named exports, such as Durable Object class implementations and named
	// entrypoints.
	NamedHandlers []ScriptNamedHandler `json:"named_handlers"`
	// Observability settings for the Worker.
	Observability ScriptObservability `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	// Specify mode='smart' for Smart Placement, or one of region/hostname/host.
	Placement ScriptPlacement `json:"placement"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	// Specify mode='smart' for Smart Placement, or one of region/hostname/host.
	//
	// Deprecated: deprecated
	PlacementMode ScriptPlacementMode `json:"placement_mode"`
	// Status of
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	//
	// Deprecated: deprecated
	PlacementStatus ScriptPlacementStatus `json:"placement_status"`
	// The immutable ID of the script.
	Tag string `json:"tag"`
	// Tags associated with the Worker.
	Tags []string `json:"tags" api:"nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript `json:"tail_consumers" api:"nullable"`
	// Usage model for the Worker invocations.
	UsageModel ScriptUsageModel `json:"usage_model"`
	JSON       scriptJSON       `json:"-"`
}

func (*Script) UnmarshalJSON

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

type ScriptAssetService

type ScriptAssetService struct {
	Options []option.RequestOption
	Upload  *ScriptAssetUploadService
}

ScriptAssetService 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 NewScriptAssetService method instead.

func NewScriptAssetService

func NewScriptAssetService(opts ...option.RequestOption) (r *ScriptAssetService)

NewScriptAssetService 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 ScriptAssetUploadNewParams

type ScriptAssetUploadNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// A manifest ([path]: {hash, size}) map of files to upload. As an example,
	// `/blog/hello-world.html` would be a valid path key.
	Manifest param.Field[map[string]ScriptAssetUploadNewParamsManifest] `json:"manifest" api:"required"`
}

func (ScriptAssetUploadNewParams) MarshalJSON

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

type ScriptAssetUploadNewParamsManifest

type ScriptAssetUploadNewParamsManifest struct {
	// The hash of the file.
	Hash param.Field[string] `json:"hash" api:"required"`
	// The size of the file in bytes.
	Size param.Field[int64] `json:"size" api:"required"`
}

func (ScriptAssetUploadNewParamsManifest) MarshalJSON

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

type ScriptAssetUploadNewResponse

type ScriptAssetUploadNewResponse struct {
	// The requests to make to upload assets.
	Buckets [][]string `json:"buckets"`
	// A JWT to use as authentication for uploading assets.
	JWT  string                           `json:"jwt"`
	JSON scriptAssetUploadNewResponseJSON `json:"-"`
}

func (*ScriptAssetUploadNewResponse) UnmarshalJSON

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

type ScriptAssetUploadNewResponseEnvelope

type ScriptAssetUploadNewResponseEnvelope struct {
	Errors   []ScriptAssetUploadNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptAssetUploadNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success ScriptAssetUploadNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  ScriptAssetUploadNewResponse                `json:"result"`
	JSON    scriptAssetUploadNewResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptAssetUploadNewResponseEnvelope) UnmarshalJSON

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

type ScriptAssetUploadNewResponseEnvelopeErrors

type ScriptAssetUploadNewResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code" api:"required"`
	Message          string                                           `json:"message" api:"required"`
	DocumentationURL string                                           `json:"documentation_url"`
	Source           ScriptAssetUploadNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptAssetUploadNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptAssetUploadNewResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptAssetUploadNewResponseEnvelopeErrorsSource

type ScriptAssetUploadNewResponseEnvelopeErrorsSource struct {
	Pointer string                                               `json:"pointer"`
	JSON    scriptAssetUploadNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptAssetUploadNewResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptAssetUploadNewResponseEnvelopeMessages

type ScriptAssetUploadNewResponseEnvelopeMessages struct {
	Code             int64                                              `json:"code" api:"required"`
	Message          string                                             `json:"message" api:"required"`
	DocumentationURL string                                             `json:"documentation_url"`
	Source           ScriptAssetUploadNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptAssetUploadNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptAssetUploadNewResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptAssetUploadNewResponseEnvelopeMessagesSource

type ScriptAssetUploadNewResponseEnvelopeMessagesSource struct {
	Pointer string                                                 `json:"pointer"`
	JSON    scriptAssetUploadNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptAssetUploadNewResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptAssetUploadNewResponseEnvelopeSuccess

type ScriptAssetUploadNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptAssetUploadNewResponseEnvelopeSuccessTrue ScriptAssetUploadNewResponseEnvelopeSuccess = true
)

func (ScriptAssetUploadNewResponseEnvelopeSuccess) IsKnown

type ScriptAssetUploadService

type ScriptAssetUploadService struct {
	Options []option.RequestOption
}

ScriptAssetUploadService 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 NewScriptAssetUploadService method instead.

func NewScriptAssetUploadService

func NewScriptAssetUploadService(opts ...option.RequestOption) (r *ScriptAssetUploadService)

NewScriptAssetUploadService 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 (*ScriptAssetUploadService) New

Start uploading a collection of assets for use in a Worker version. To learn more about the direct uploads of assets, see https://developers.cloudflare.com/workers/static-assets/direct-upload/.

type ScriptContentGetParams

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

type ScriptContentService

type ScriptContentService struct {
	Options []option.RequestOption
}

ScriptContentService 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 NewScriptContentService method instead.

func NewScriptContentService

func NewScriptContentService(opts ...option.RequestOption) (r *ScriptContentService)

NewScriptContentService 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 (*ScriptContentService) Get

func (r *ScriptContentService) Get(ctx context.Context, scriptName string, query ScriptContentGetParams, opts ...option.RequestOption) (res *http.Response, err error)

Fetch script content only.

func (*ScriptContentService) Update

func (r *ScriptContentService) Update(ctx context.Context, scriptName string, params ScriptContentUpdateParams, opts ...option.RequestOption) (res *Script, err error)

Put script content without touching config or metadata.

type ScriptContentUpdateParams

type ScriptContentUpdateParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// JSON-encoded metadata about the uploaded parts and Worker configuration.
	Metadata param.Field[ScriptContentUpdateParamsMetadata] `json:"metadata" api:"required"`
	// An array of modules (often JavaScript files) comprising a Worker script. At
	// least one module must be present and referenced in the metadata as `main_module`
	// or `body_part` by filename.<br/>Possible Content-Type(s) are:
	// `application/javascript+module`, `text/javascript+module`,
	// `application/javascript`, `text/javascript`, `text/x-python`,
	// `text/x-python-requirement`, `application/wasm`, `text/plain`,
	// `application/octet-stream`, `application/source-map`.
	Files                  param.Field[[]io.Reader] `json:"files" format:"binary"`
	CfWorkerBodyPart       param.Field[string]      `header:"CF-WORKER-BODY-PART"`
	CfWorkerMainModulePart param.Field[string]      `header:"CF-WORKER-MAIN-MODULE-PART"`
}

func (ScriptContentUpdateParams) MarshalMultipart

func (r ScriptContentUpdateParams) MarshalMultipart() (data []byte, contentType string, err error)

type ScriptContentUpdateParamsMetadata

type ScriptContentUpdateParamsMetadata struct {
	// Name of the uploaded file that contains the Worker script (e.g. the file adding
	// a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
	BodyPart param.Field[string] `json:"body_part"`
	// Name of the uploaded file that contains the main module (e.g. the file exporting
	// a `fetch` handler). Indicates a `module syntax` Worker.
	MainModule param.Field[string] `json:"main_module"`
}

JSON-encoded metadata about the uploaded parts and Worker configuration.

func (ScriptContentUpdateParamsMetadata) MarshalJSON

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

type ScriptContentUpdateResponseEnvelope

type ScriptContentUpdateResponseEnvelope struct {
	Errors   []ScriptContentUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptContentUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   Script                                        `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptContentUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptContentUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptContentUpdateResponseEnvelope) UnmarshalJSON

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

type ScriptContentUpdateResponseEnvelopeErrors

type ScriptContentUpdateResponseEnvelopeErrors struct {
	Code             int64                                           `json:"code" api:"required"`
	Message          string                                          `json:"message" api:"required"`
	DocumentationURL string                                          `json:"documentation_url"`
	Source           ScriptContentUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptContentUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptContentUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptContentUpdateResponseEnvelopeErrorsSource

type ScriptContentUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                              `json:"pointer"`
	JSON    scriptContentUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptContentUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptContentUpdateResponseEnvelopeMessages

type ScriptContentUpdateResponseEnvelopeMessages struct {
	Code             int64                                             `json:"code" api:"required"`
	Message          string                                            `json:"message" api:"required"`
	DocumentationURL string                                            `json:"documentation_url"`
	Source           ScriptContentUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptContentUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptContentUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptContentUpdateResponseEnvelopeMessagesSource

type ScriptContentUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                                `json:"pointer"`
	JSON    scriptContentUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptContentUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptContentUpdateResponseEnvelopeSuccess

type ScriptContentUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptContentUpdateResponseEnvelopeSuccessTrue ScriptContentUpdateResponseEnvelopeSuccess = true
)

func (ScriptContentUpdateResponseEnvelopeSuccess) IsKnown

type ScriptDeleteParams

type ScriptDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// If set to true, delete will not be stopped by associated service binding,
	// durable object, or other binding. Any of these associated bindings/durable
	// objects will be deleted along with the script.
	Force param.Field[bool] `query:"force"`
}

func (ScriptDeleteParams) URLQuery

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

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

type ScriptDeleteResponse

type ScriptDeleteResponse = interface{}

type ScriptDeleteResponseEnvelope

type ScriptDeleteResponseEnvelope struct {
	Errors   []ScriptDeleteResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success ScriptDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  ScriptDeleteResponse                `json:"result" api:"nullable"`
	JSON    scriptDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptDeleteResponseEnvelope) UnmarshalJSON

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

type ScriptDeleteResponseEnvelopeErrors

type ScriptDeleteResponseEnvelopeErrors struct {
	Code             int64                                    `json:"code" api:"required"`
	Message          string                                   `json:"message" api:"required"`
	DocumentationURL string                                   `json:"documentation_url"`
	Source           ScriptDeleteResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptDeleteResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptDeleteResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptDeleteResponseEnvelopeErrorsSource

type ScriptDeleteResponseEnvelopeErrorsSource struct {
	Pointer string                                       `json:"pointer"`
	JSON    scriptDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptDeleteResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptDeleteResponseEnvelopeMessages

type ScriptDeleteResponseEnvelopeMessages struct {
	Code             int64                                      `json:"code" api:"required"`
	Message          string                                     `json:"message" api:"required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           ScriptDeleteResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptDeleteResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptDeleteResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptDeleteResponseEnvelopeMessagesSource

type ScriptDeleteResponseEnvelopeMessagesSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    scriptDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptDeleteResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptDeleteResponseEnvelopeSuccess

type ScriptDeleteResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptDeleteResponseEnvelopeSuccessTrue ScriptDeleteResponseEnvelopeSuccess = true
)

func (ScriptDeleteResponseEnvelopeSuccess) IsKnown

type ScriptDeploymentDeleteParams

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

type ScriptDeploymentDeleteResponse

type ScriptDeploymentDeleteResponse struct {
	Errors   []ScriptDeploymentDeleteResponseError   `json:"errors" api:"required"`
	Messages []ScriptDeploymentDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success ScriptDeploymentDeleteResponseSuccess `json:"success" api:"required"`
	JSON    scriptDeploymentDeleteResponseJSON    `json:"-"`
}

func (*ScriptDeploymentDeleteResponse) UnmarshalJSON

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

type ScriptDeploymentDeleteResponseError

type ScriptDeploymentDeleteResponseError struct {
	Code             int64                                      `json:"code" api:"required"`
	Message          string                                     `json:"message" api:"required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           ScriptDeploymentDeleteResponseErrorsSource `json:"source"`
	JSON             scriptDeploymentDeleteResponseErrorJSON    `json:"-"`
}

func (*ScriptDeploymentDeleteResponseError) UnmarshalJSON

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

type ScriptDeploymentDeleteResponseErrorsSource

type ScriptDeploymentDeleteResponseErrorsSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    scriptDeploymentDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*ScriptDeploymentDeleteResponseErrorsSource) UnmarshalJSON

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

type ScriptDeploymentDeleteResponseMessage

type ScriptDeploymentDeleteResponseMessage struct {
	Code             int64                                        `json:"code" api:"required"`
	Message          string                                       `json:"message" api:"required"`
	DocumentationURL string                                       `json:"documentation_url"`
	Source           ScriptDeploymentDeleteResponseMessagesSource `json:"source"`
	JSON             scriptDeploymentDeleteResponseMessageJSON    `json:"-"`
}

func (*ScriptDeploymentDeleteResponseMessage) UnmarshalJSON

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

type ScriptDeploymentDeleteResponseMessagesSource

type ScriptDeploymentDeleteResponseMessagesSource struct {
	Pointer string                                           `json:"pointer"`
	JSON    scriptDeploymentDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*ScriptDeploymentDeleteResponseMessagesSource) UnmarshalJSON

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

type ScriptDeploymentDeleteResponseSuccess

type ScriptDeploymentDeleteResponseSuccess bool

Whether the API call was successful.

const (
	ScriptDeploymentDeleteResponseSuccessTrue ScriptDeploymentDeleteResponseSuccess = true
)

func (ScriptDeploymentDeleteResponseSuccess) IsKnown

type ScriptDeploymentGetParams

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

type ScriptDeploymentGetResponseEnvelope

type ScriptDeploymentGetResponseEnvelope struct {
	Errors   []ScriptDeploymentGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptDeploymentGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   Deployment                                    `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptDeploymentGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptDeploymentGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptDeploymentGetResponseEnvelope) UnmarshalJSON

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

type ScriptDeploymentGetResponseEnvelopeErrors

type ScriptDeploymentGetResponseEnvelopeErrors struct {
	Code             int64                                           `json:"code" api:"required"`
	Message          string                                          `json:"message" api:"required"`
	DocumentationURL string                                          `json:"documentation_url"`
	Source           ScriptDeploymentGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptDeploymentGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptDeploymentGetResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptDeploymentGetResponseEnvelopeErrorsSource

type ScriptDeploymentGetResponseEnvelopeErrorsSource struct {
	Pointer string                                              `json:"pointer"`
	JSON    scriptDeploymentGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptDeploymentGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptDeploymentGetResponseEnvelopeMessages

type ScriptDeploymentGetResponseEnvelopeMessages struct {
	Code             int64                                             `json:"code" api:"required"`
	Message          string                                            `json:"message" api:"required"`
	DocumentationURL string                                            `json:"documentation_url"`
	Source           ScriptDeploymentGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptDeploymentGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptDeploymentGetResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptDeploymentGetResponseEnvelopeMessagesSource

type ScriptDeploymentGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                `json:"pointer"`
	JSON    scriptDeploymentGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptDeploymentGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptDeploymentGetResponseEnvelopeSuccess

type ScriptDeploymentGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptDeploymentGetResponseEnvelopeSuccessTrue ScriptDeploymentGetResponseEnvelopeSuccess = true
)

func (ScriptDeploymentGetResponseEnvelopeSuccess) IsKnown

type ScriptDeploymentListParams

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

type ScriptDeploymentListResponse

type ScriptDeploymentListResponse struct {
	Deployments []Deployment                     `json:"deployments" api:"required"`
	JSON        scriptDeploymentListResponseJSON `json:"-"`
}

func (*ScriptDeploymentListResponse) UnmarshalJSON

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

type ScriptDeploymentListResponseEnvelope

type ScriptDeploymentListResponseEnvelope struct {
	Errors   []ScriptDeploymentListResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptDeploymentListResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptDeploymentListResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptDeploymentListResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptDeploymentListResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptDeploymentListResponseEnvelope) UnmarshalJSON

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

type ScriptDeploymentListResponseEnvelopeErrors

type ScriptDeploymentListResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code" api:"required"`
	Message          string                                           `json:"message" api:"required"`
	DocumentationURL string                                           `json:"documentation_url"`
	Source           ScriptDeploymentListResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptDeploymentListResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptDeploymentListResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptDeploymentListResponseEnvelopeErrorsSource

type ScriptDeploymentListResponseEnvelopeErrorsSource struct {
	Pointer string                                               `json:"pointer"`
	JSON    scriptDeploymentListResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptDeploymentListResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptDeploymentListResponseEnvelopeMessages

type ScriptDeploymentListResponseEnvelopeMessages struct {
	Code             int64                                              `json:"code" api:"required"`
	Message          string                                             `json:"message" api:"required"`
	DocumentationURL string                                             `json:"documentation_url"`
	Source           ScriptDeploymentListResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptDeploymentListResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptDeploymentListResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptDeploymentListResponseEnvelopeMessagesSource

type ScriptDeploymentListResponseEnvelopeMessagesSource struct {
	Pointer string                                                 `json:"pointer"`
	JSON    scriptDeploymentListResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptDeploymentListResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptDeploymentListResponseEnvelopeSuccess

type ScriptDeploymentListResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptDeploymentListResponseEnvelopeSuccessTrue ScriptDeploymentListResponseEnvelopeSuccess = true
)

func (ScriptDeploymentListResponseEnvelopeSuccess) IsKnown

type ScriptDeploymentNewParams

type ScriptDeploymentNewParams struct {
	// Identifier.
	AccountID  param.Field[string] `path:"account_id" api:"required"`
	Deployment DeploymentParam     `json:"deployment" api:"required"`
	// If set to true, the deployment will be created even if normally blocked by
	// something such rolling back to an older version when a secret has changed.
	Force param.Field[bool] `query:"force"`
}

func (ScriptDeploymentNewParams) MarshalJSON

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

func (ScriptDeploymentNewParams) URLQuery

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

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

type ScriptDeploymentNewResponseEnvelope

type ScriptDeploymentNewResponseEnvelope struct {
	Errors   []ScriptDeploymentNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptDeploymentNewResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   Deployment                                    `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptDeploymentNewResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptDeploymentNewResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptDeploymentNewResponseEnvelope) UnmarshalJSON

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

type ScriptDeploymentNewResponseEnvelopeErrors

type ScriptDeploymentNewResponseEnvelopeErrors struct {
	Code             int64                                           `json:"code" api:"required"`
	Message          string                                          `json:"message" api:"required"`
	DocumentationURL string                                          `json:"documentation_url"`
	Source           ScriptDeploymentNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptDeploymentNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptDeploymentNewResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptDeploymentNewResponseEnvelopeErrorsSource

type ScriptDeploymentNewResponseEnvelopeErrorsSource struct {
	Pointer string                                              `json:"pointer"`
	JSON    scriptDeploymentNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptDeploymentNewResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptDeploymentNewResponseEnvelopeMessages

type ScriptDeploymentNewResponseEnvelopeMessages struct {
	Code             int64                                             `json:"code" api:"required"`
	Message          string                                            `json:"message" api:"required"`
	DocumentationURL string                                            `json:"documentation_url"`
	Source           ScriptDeploymentNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptDeploymentNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptDeploymentNewResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptDeploymentNewResponseEnvelopeMessagesSource

type ScriptDeploymentNewResponseEnvelopeMessagesSource struct {
	Pointer string                                                `json:"pointer"`
	JSON    scriptDeploymentNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptDeploymentNewResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptDeploymentNewResponseEnvelopeSuccess

type ScriptDeploymentNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptDeploymentNewResponseEnvelopeSuccessTrue ScriptDeploymentNewResponseEnvelopeSuccess = true
)

func (ScriptDeploymentNewResponseEnvelopeSuccess) IsKnown

type ScriptDeploymentService

type ScriptDeploymentService struct {
	Options []option.RequestOption
}

ScriptDeploymentService 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 NewScriptDeploymentService method instead.

func NewScriptDeploymentService

func NewScriptDeploymentService(opts ...option.RequestOption) (r *ScriptDeploymentService)

NewScriptDeploymentService 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 (*ScriptDeploymentService) Delete

Delete a Worker Deployment. The latest deployment, which is actively serving traffic, cannot be deleted. All other deployments can be deleted.

func (*ScriptDeploymentService) Get

func (r *ScriptDeploymentService) Get(ctx context.Context, scriptName string, deploymentID string, query ScriptDeploymentGetParams, opts ...option.RequestOption) (res *Deployment, err error)

Get information about a Worker Deployment.

func (*ScriptDeploymentService) List

List of Worker Deployments. The first deployment in the list is the latest deployment actively serving traffic.

func (*ScriptDeploymentService) New

func (r *ScriptDeploymentService) New(ctx context.Context, scriptName string, params ScriptDeploymentNewParams, opts ...option.RequestOption) (res *Deployment, err error)

Deployments configure how [Worker Versions](https://developers.cloudflare.com/api/operations/worker-versions-list-versions) are deployed to traffic. A deployment can consist of one or two versions of a Worker.

type ScriptGetParams

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

type ScriptListParams

type ScriptListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where
	// allowed is 'yes' or 'no'.
	Tags param.Field[string] `query:"tags"`
}

func (ScriptListParams) URLQuery

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

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

type ScriptListResponse

type ScriptListResponse struct {
	// The name used to identify the script.
	ID string `json:"id"`
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate string `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime. Used to
	// enable upcoming features or opt in or out of specific changes not included in a
	// `compatibility_date`.
	CompatibilityFlags []string `json:"compatibility_flags"`
	// When the script was created.
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// Hashed script content, can be used in a If-None-Match header when updating.
	Etag string `json:"etag"`
	// The names of handlers exported as part of the default export.
	Handlers []string `json:"handlers"`
	// Whether a Worker contains assets.
	HasAssets bool `json:"has_assets"`
	// Whether a Worker contains modules.
	HasModules bool `json:"has_modules"`
	// The client most recently used to deploy this Worker.
	LastDeployedFrom string `json:"last_deployed_from"`
	// Whether Logpush is turned on for the Worker.
	Logpush bool `json:"logpush"`
	// The tag of the Durable Object migration that was most recently applied for this
	// Worker.
	MigrationTag string `json:"migration_tag"`
	// When the script was last modified.
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// Named exports, such as Durable Object class implementations and named
	// entrypoints.
	NamedHandlers []ScriptListResponseNamedHandler `json:"named_handlers"`
	// Observability settings for the Worker.
	Observability ScriptListResponseObservability `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	// Specify mode='smart' for Smart Placement, or one of region/hostname/host.
	Placement ScriptListResponsePlacement `json:"placement"`
	// Deprecated: deprecated
	PlacementMode ScriptListResponsePlacementMode `json:"placement_mode"`
	// Deprecated: deprecated
	PlacementStatus ScriptListResponsePlacementStatus `json:"placement_status"`
	// Routes associated with the Worker.
	Routes []ScriptListResponseRoute `json:"routes" api:"nullable"`
	// The immutable ID of the script.
	Tag string `json:"tag"`
	// Tags associated with the Worker.
	Tags []string `json:"tags" api:"nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript `json:"tail_consumers" api:"nullable"`
	// Usage model for the Worker invocations.
	UsageModel ScriptListResponseUsageModel `json:"usage_model"`
	JSON       scriptListResponseJSON       `json:"-"`
}

func (*ScriptListResponse) UnmarshalJSON

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

type ScriptListResponseNamedHandler

type ScriptListResponseNamedHandler struct {
	// The names of handlers exported as part of the named export.
	Handlers []string `json:"handlers"`
	// The name of the export.
	Name string                             `json:"name"`
	JSON scriptListResponseNamedHandlerJSON `json:"-"`
}

func (*ScriptListResponseNamedHandler) UnmarshalJSON

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

type ScriptListResponseObservability

type ScriptListResponseObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%).
	// Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Log settings for the Worker.
	Logs ScriptListResponseObservabilityLogs `json:"logs" api:"nullable"`
	// Trace settings for the Worker.
	Traces ScriptListResponseObservabilityTraces `json:"traces" api:"nullable"`
	JSON   scriptListResponseObservabilityJSON   `json:"-"`
}

Observability settings for the Worker.

func (*ScriptListResponseObservability) UnmarshalJSON

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

type ScriptListResponseObservabilityLogs

type ScriptListResponseObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs bool `json:"invocation_logs" api:"required"`
	// A list of destinations where logs will be exported to.
	Destinations []string `json:"destinations"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether log persistence is enabled for the Worker.
	Persist bool                                    `json:"persist"`
	JSON    scriptListResponseObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*ScriptListResponseObservabilityLogs) UnmarshalJSON

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

type ScriptListResponseObservabilityTraces

type ScriptListResponseObservabilityTraces struct {
	// A list of destinations where traces will be exported to.
	Destinations []string `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled bool `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether trace persistence is enabled for the Worker.
	Persist bool                                      `json:"persist"`
	JSON    scriptListResponseObservabilityTracesJSON `json:"-"`
}

Trace settings for the Worker.

func (*ScriptListResponseObservabilityTraces) UnmarshalJSON

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

type ScriptListResponsePlacement

type ScriptListResponsePlacement struct {
	// TCP host and port for targeted placement.
	Host string `json:"host"`
	// HTTP hostname for targeted placement.
	Hostname string `json:"hostname"`
	// The last time the script was analyzed for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	LastAnalyzedAt time.Time `json:"last_analyzed_at" format:"date-time"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptListResponsePlacementMode `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string `json:"region"`
	// Status of
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Status ScriptListResponsePlacementStatus `json:"status"`
	// This field can have the runtime type of
	// [[]ScriptListResponsePlacementObjectTarget].
	Target interface{}                     `json:"target"`
	JSON   scriptListResponsePlacementJSON `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

func (*ScriptListResponsePlacement) UnmarshalJSON

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

type ScriptListResponsePlacementMode

type ScriptListResponsePlacementMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptListResponsePlacementModeSmart    ScriptListResponsePlacementMode = "smart"
	ScriptListResponsePlacementModeTargeted ScriptListResponsePlacementMode = "targeted"
)

func (ScriptListResponsePlacementMode) IsKnown

type ScriptListResponsePlacementObject

type ScriptListResponsePlacementObject struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptListResponsePlacementObjectMode `json:"mode" api:"required"`
	// The last time the script was analyzed for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	LastAnalyzedAt time.Time `json:"last_analyzed_at" format:"date-time"`
	// Status of
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Status ScriptListResponsePlacementObjectStatus `json:"status"`
	JSON   scriptListResponsePlacementObjectJSON   `json:"-"`
}

func (*ScriptListResponsePlacementObject) UnmarshalJSON

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

type ScriptListResponsePlacementObjectMode

type ScriptListResponsePlacementObjectMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptListResponsePlacementObjectModeSmart ScriptListResponsePlacementObjectMode = "smart"
)

func (ScriptListResponsePlacementObjectMode) IsKnown

type ScriptListResponsePlacementObjectStatus

type ScriptListResponsePlacementObjectStatus string

Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptListResponsePlacementObjectStatusSuccess                 ScriptListResponsePlacementObjectStatus = "SUCCESS"
	ScriptListResponsePlacementObjectStatusUnsupportedApplication  ScriptListResponsePlacementObjectStatus = "UNSUPPORTED_APPLICATION"
	ScriptListResponsePlacementObjectStatusInsufficientInvocations ScriptListResponsePlacementObjectStatus = "INSUFFICIENT_INVOCATIONS"
)

func (ScriptListResponsePlacementObjectStatus) IsKnown

type ScriptListResponsePlacementStatus

type ScriptListResponsePlacementStatus string

Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptListResponsePlacementStatusSuccess                 ScriptListResponsePlacementStatus = "SUCCESS"
	ScriptListResponsePlacementStatusUnsupportedApplication  ScriptListResponsePlacementStatus = "UNSUPPORTED_APPLICATION"
	ScriptListResponsePlacementStatusInsufficientInvocations ScriptListResponsePlacementStatus = "INSUFFICIENT_INVOCATIONS"
)

func (ScriptListResponsePlacementStatus) IsKnown

type ScriptListResponsePlacementUnion

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

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

Union satisfied by ScriptListResponsePlacementObject, ScriptListResponsePlacementObject, ScriptListResponsePlacementObject, ScriptListResponsePlacementObject, ScriptListResponsePlacementObject, ScriptListResponsePlacementObject, ScriptListResponsePlacementObject or ScriptListResponsePlacementObject.

type ScriptListResponseRoute

type ScriptListResponseRoute struct {
	// Identifier.
	ID string `json:"id" api:"required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern string `json:"pattern" api:"required"`
	// Name of the script to run if the route matches.
	Script string                      `json:"script"`
	JSON   scriptListResponseRouteJSON `json:"-"`
}

func (*ScriptListResponseRoute) UnmarshalJSON

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

type ScriptListResponseUsageModel

type ScriptListResponseUsageModel string

Usage model for the Worker invocations.

const (
	ScriptListResponseUsageModelStandard ScriptListResponseUsageModel = "standard"
	ScriptListResponseUsageModelBundled  ScriptListResponseUsageModel = "bundled"
	ScriptListResponseUsageModelUnbound  ScriptListResponseUsageModel = "unbound"
)

func (ScriptListResponseUsageModel) IsKnown

func (r ScriptListResponseUsageModel) IsKnown() bool

type ScriptNamedHandler

type ScriptNamedHandler struct {
	// The names of handlers exported as part of the named export.
	Handlers []string `json:"handlers"`
	// The name of the export.
	Name string                 `json:"name"`
	JSON scriptNamedHandlerJSON `json:"-"`
}

func (*ScriptNamedHandler) UnmarshalJSON

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

type ScriptObservability

type ScriptObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%).
	// Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Log settings for the Worker.
	Logs ScriptObservabilityLogs `json:"logs" api:"nullable"`
	// Trace settings for the Worker.
	Traces ScriptObservabilityTraces `json:"traces" api:"nullable"`
	JSON   scriptObservabilityJSON   `json:"-"`
}

Observability settings for the Worker.

func (*ScriptObservability) UnmarshalJSON

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

type ScriptObservabilityLogs

type ScriptObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs bool `json:"invocation_logs" api:"required"`
	// A list of destinations where logs will be exported to.
	Destinations []string `json:"destinations"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether log persistence is enabled for the Worker.
	Persist bool                        `json:"persist"`
	JSON    scriptObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*ScriptObservabilityLogs) UnmarshalJSON

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

type ScriptObservabilityTraces

type ScriptObservabilityTraces struct {
	// A list of destinations where traces will be exported to.
	Destinations []string `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled bool `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether trace persistence is enabled for the Worker.
	Persist bool                          `json:"persist"`
	JSON    scriptObservabilityTracesJSON `json:"-"`
}

Trace settings for the Worker.

func (*ScriptObservabilityTraces) UnmarshalJSON

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

type ScriptPlacement

type ScriptPlacement struct {
	// TCP host and port for targeted placement.
	Host string `json:"host"`
	// HTTP hostname for targeted placement.
	Hostname string `json:"hostname"`
	// The last time the script was analyzed for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	LastAnalyzedAt time.Time `json:"last_analyzed_at" format:"date-time"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptPlacementMode `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string `json:"region"`
	// Status of
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Status ScriptPlacementStatus `json:"status"`
	// This field can have the runtime type of [[]ScriptPlacementObjectTarget].
	Target interface{}         `json:"target"`
	JSON   scriptPlacementJSON `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

func (ScriptPlacement) AsUnion

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

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

func (*ScriptPlacement) UnmarshalJSON

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

type ScriptPlacementMode

type ScriptPlacementMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptPlacementModeSmart    ScriptPlacementMode = "smart"
	ScriptPlacementModeTargeted ScriptPlacementMode = "targeted"
)

func (ScriptPlacementMode) IsKnown

func (r ScriptPlacementMode) IsKnown() bool

type ScriptPlacementObject

type ScriptPlacementObject struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptPlacementObjectMode `json:"mode" api:"required"`
	// The last time the script was analyzed for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	LastAnalyzedAt time.Time `json:"last_analyzed_at" format:"date-time"`
	// Status of
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Status ScriptPlacementObjectStatus `json:"status"`
	JSON   scriptPlacementObjectJSON   `json:"-"`
}

func (*ScriptPlacementObject) UnmarshalJSON

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

type ScriptPlacementObjectMode

type ScriptPlacementObjectMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptPlacementObjectModeSmart ScriptPlacementObjectMode = "smart"
)

func (ScriptPlacementObjectMode) IsKnown

func (r ScriptPlacementObjectMode) IsKnown() bool

type ScriptPlacementObjectStatus

type ScriptPlacementObjectStatus string

Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptPlacementObjectStatusSuccess                 ScriptPlacementObjectStatus = "SUCCESS"
	ScriptPlacementObjectStatusUnsupportedApplication  ScriptPlacementObjectStatus = "UNSUPPORTED_APPLICATION"
	ScriptPlacementObjectStatusInsufficientInvocations ScriptPlacementObjectStatus = "INSUFFICIENT_INVOCATIONS"
)

func (ScriptPlacementObjectStatus) IsKnown

func (r ScriptPlacementObjectStatus) IsKnown() bool

type ScriptPlacementStatus

type ScriptPlacementStatus string

Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptPlacementStatusSuccess                 ScriptPlacementStatus = "SUCCESS"
	ScriptPlacementStatusUnsupportedApplication  ScriptPlacementStatus = "UNSUPPORTED_APPLICATION"
	ScriptPlacementStatusInsufficientInvocations ScriptPlacementStatus = "INSUFFICIENT_INVOCATIONS"
)

func (ScriptPlacementStatus) IsKnown

func (r ScriptPlacementStatus) IsKnown() bool

type ScriptPlacementUnion

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

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

Union satisfied by ScriptPlacementObject, ScriptPlacementObject, ScriptPlacementObject, ScriptPlacementObject, ScriptPlacementObject, ScriptPlacementObject, ScriptPlacementObject or ScriptPlacementObject.

type ScriptScheduleGetParams

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

type ScriptScheduleGetResponse

type ScriptScheduleGetResponse struct {
	Schedules []ScriptScheduleGetResponseSchedule `json:"schedules" api:"required"`
	JSON      scriptScheduleGetResponseJSON       `json:"-"`
}

func (*ScriptScheduleGetResponse) UnmarshalJSON

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

type ScriptScheduleGetResponseEnvelope

type ScriptScheduleGetResponseEnvelope struct {
	Errors   []ScriptScheduleGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptScheduleGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptScheduleGetResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptScheduleGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptScheduleGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptScheduleGetResponseEnvelope) UnmarshalJSON

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

type ScriptScheduleGetResponseEnvelopeErrors

type ScriptScheduleGetResponseEnvelopeErrors struct {
	Code             int64                                         `json:"code" api:"required"`
	Message          string                                        `json:"message" api:"required"`
	DocumentationURL string                                        `json:"documentation_url"`
	Source           ScriptScheduleGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptScheduleGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptScheduleGetResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptScheduleGetResponseEnvelopeErrorsSource

type ScriptScheduleGetResponseEnvelopeErrorsSource struct {
	Pointer string                                            `json:"pointer"`
	JSON    scriptScheduleGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptScheduleGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptScheduleGetResponseEnvelopeMessages

type ScriptScheduleGetResponseEnvelopeMessages struct {
	Code             int64                                           `json:"code" api:"required"`
	Message          string                                          `json:"message" api:"required"`
	DocumentationURL string                                          `json:"documentation_url"`
	Source           ScriptScheduleGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptScheduleGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptScheduleGetResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptScheduleGetResponseEnvelopeMessagesSource

type ScriptScheduleGetResponseEnvelopeMessagesSource struct {
	Pointer string                                              `json:"pointer"`
	JSON    scriptScheduleGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptScheduleGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptScheduleGetResponseEnvelopeSuccess

type ScriptScheduleGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptScheduleGetResponseEnvelopeSuccessTrue ScriptScheduleGetResponseEnvelopeSuccess = true
)

func (ScriptScheduleGetResponseEnvelopeSuccess) IsKnown

type ScriptScheduleGetResponseSchedule

type ScriptScheduleGetResponseSchedule struct {
	Cron       string                                `json:"cron" api:"required"`
	CreatedOn  string                                `json:"created_on"`
	ModifiedOn string                                `json:"modified_on"`
	JSON       scriptScheduleGetResponseScheduleJSON `json:"-"`
}

func (*ScriptScheduleGetResponseSchedule) UnmarshalJSON

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

type ScriptScheduleService

type ScriptScheduleService struct {
	Options []option.RequestOption
}

ScriptScheduleService 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 NewScriptScheduleService method instead.

func NewScriptScheduleService

func NewScriptScheduleService(opts ...option.RequestOption) (r *ScriptScheduleService)

NewScriptScheduleService 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 (*ScriptScheduleService) Get

Fetches Cron Triggers for a Worker.

func (*ScriptScheduleService) Update

Updates Cron Triggers for a Worker.

type ScriptScheduleUpdateParams

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

func (ScriptScheduleUpdateParams) MarshalJSON

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

type ScriptScheduleUpdateParamsBody

type ScriptScheduleUpdateParamsBody struct {
	Cron param.Field[string] `json:"cron" api:"required"`
}

func (ScriptScheduleUpdateParamsBody) MarshalJSON

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

type ScriptScheduleUpdateResponse

type ScriptScheduleUpdateResponse struct {
	Schedules []ScriptScheduleUpdateResponseSchedule `json:"schedules" api:"required"`
	JSON      scriptScheduleUpdateResponseJSON       `json:"-"`
}

func (*ScriptScheduleUpdateResponse) UnmarshalJSON

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

type ScriptScheduleUpdateResponseEnvelope

type ScriptScheduleUpdateResponseEnvelope struct {
	Errors   []ScriptScheduleUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptScheduleUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptScheduleUpdateResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptScheduleUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptScheduleUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptScheduleUpdateResponseEnvelope) UnmarshalJSON

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

type ScriptScheduleUpdateResponseEnvelopeErrors

type ScriptScheduleUpdateResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code" api:"required"`
	Message          string                                           `json:"message" api:"required"`
	DocumentationURL string                                           `json:"documentation_url"`
	Source           ScriptScheduleUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptScheduleUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptScheduleUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptScheduleUpdateResponseEnvelopeErrorsSource

type ScriptScheduleUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                               `json:"pointer"`
	JSON    scriptScheduleUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptScheduleUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptScheduleUpdateResponseEnvelopeMessages

type ScriptScheduleUpdateResponseEnvelopeMessages struct {
	Code             int64                                              `json:"code" api:"required"`
	Message          string                                             `json:"message" api:"required"`
	DocumentationURL string                                             `json:"documentation_url"`
	Source           ScriptScheduleUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptScheduleUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptScheduleUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptScheduleUpdateResponseEnvelopeMessagesSource

type ScriptScheduleUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                                 `json:"pointer"`
	JSON    scriptScheduleUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptScheduleUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptScheduleUpdateResponseEnvelopeSuccess

type ScriptScheduleUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptScheduleUpdateResponseEnvelopeSuccessTrue ScriptScheduleUpdateResponseEnvelopeSuccess = true
)

func (ScriptScheduleUpdateResponseEnvelopeSuccess) IsKnown

type ScriptScheduleUpdateResponseSchedule

type ScriptScheduleUpdateResponseSchedule struct {
	Cron       string                                   `json:"cron" api:"required"`
	CreatedOn  string                                   `json:"created_on"`
	ModifiedOn string                                   `json:"modified_on"`
	JSON       scriptScheduleUpdateResponseScheduleJSON `json:"-"`
}

func (*ScriptScheduleUpdateResponseSchedule) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditParams

type ScriptScriptAndVersionSettingEditParams struct {
	// Identifier.
	AccountID param.Field[string]                                          `path:"account_id" api:"required"`
	Settings  param.Field[ScriptScriptAndVersionSettingEditParamsSettings] `json:"settings"`
}

func (ScriptScriptAndVersionSettingEditParams) MarshalMultipart

func (r ScriptScriptAndVersionSettingEditParams) MarshalMultipart() (data []byte, contentType string, err error)

type ScriptScriptAndVersionSettingEditParamsSettings

type ScriptScriptAndVersionSettingEditParamsSettings struct {
	// Annotations for the Worker version. Annotations are not inherited across
	// settings updates; omitting this field means the new version will have no
	// annotations.
	Annotations param.Field[ScriptScriptAndVersionSettingEditParamsSettingsAnnotations] `json:"annotations"`
	// List of bindings attached to a Worker. You can find more about bindings on our
	// docs:
	// https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
	Bindings param.Field[[]ScriptScriptAndVersionSettingEditParamsSettingsBindingUnion] `json:"bindings"`
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate param.Field[string] `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime. Used to
	// enable upcoming features or opt in or out of specific changes not included in a
	// `compatibility_date`.
	CompatibilityFlags param.Field[[]string] `json:"compatibility_flags"`
	// Limits to apply for this Worker.
	Limits param.Field[ScriptScriptAndVersionSettingEditParamsSettingsLimits] `json:"limits"`
	// Whether Logpush is turned on for the Worker.
	Logpush param.Field[bool] `json:"logpush"`
	// Migrations to apply for Durable Objects associated with this Worker.
	Migrations param.Field[ScriptScriptAndVersionSettingEditParamsSettingsMigrationsUnion] `json:"migrations"`
	// Observability settings for the Worker.
	Observability param.Field[ScriptScriptAndVersionSettingEditParamsSettingsObservability] `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	// Specify mode='smart' for Smart Placement, or one of region/hostname/host.
	Placement param.Field[ScriptScriptAndVersionSettingEditParamsSettingsPlacementUnion] `json:"placement"`
	// Tags associated with the Worker.
	Tags param.Field[[]string] `json:"tags"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers param.Field[[]ConsumerScriptParam] `json:"tail_consumers"`
	// Usage model for the Worker invocations.
	UsageModel param.Field[ScriptScriptAndVersionSettingEditParamsSettingsUsageModel] `json:"usage_model"`
}

func (ScriptScriptAndVersionSettingEditParamsSettings) MarshalJSON

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

type ScriptScriptAndVersionSettingEditParamsSettingsAnnotations

type ScriptScriptAndVersionSettingEditParamsSettingsAnnotations struct {
	// Human-readable message about the version. Truncated to 1000 bytes if longer.
	WorkersMessage param.Field[string] `json:"workers/message"`
	// User-provided identifier for the version. Maximum 100 bytes.
	WorkersTag param.Field[string] `json:"workers/tag"`
}

Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.

func (ScriptScriptAndVersionSettingEditParamsSettingsAnnotations) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBinding

type ScriptScriptAndVersionSettingEditParamsSettingsBinding struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsType] `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID                          param.Field[string]      `json:"id"`
	Algorithm                   param.Field[interface{}] `json:"algorithm"`
	AllowedDestinationAddresses param.Field[interface{}] `json:"allowed_destination_addresses"`
	AllowedSenderAddresses      param.Field[interface{}] `json:"allowed_sender_addresses"`
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID param.Field[string] `json:"app_id"`
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID param.Field[string] `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// Identifier of the D1 database to bind to.
	DatabaseID param.Field[string] `json:"database_id"`
	// The name of the dataset to bind to.
	Dataset param.Field[string] `json:"dataset"`
	// Destination address for the email.
	DestinationAddress param.Field[string] `json:"destination_address" format:"email"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace param.Field[string] `json:"dispatch_namespace"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// The environment of the script_name to bind to.
	Environment param.Field[string] `json:"environment"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormat] `json:"format"`
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name"`
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName param.Field[string]      `json:"instance_name"`
	Json         param.Field[interface{}] `json:"json"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdiction] `json:"jurisdiction"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string]      `json:"key_base64"`
	KeyJwk    param.Field[interface{}] `json:"key_jwk"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace param.Field[string] `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID param.Field[string] `json:"network_id"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName  param.Field[string]      `json:"old_name"`
	Outbound param.Field[interface{}] `json:"outbound"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName param.Field[string] `json:"script_name"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service"`
	// Identifier of the VPC service to bind to.
	ServiceID param.Field[string]      `json:"service_id"`
	Simple    param.Field[interface{}] `json:"simple"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id"`
	// The text value to use.
	Text param.Field[string] `json:"text"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID param.Field[string]      `json:"tunnel_id"`
	Usages   param.Field[interface{}] `json:"usages"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID param.Field[string] `json:"version_id"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name"`
}

A binding to allow the Worker to communicate with resources.

func (ScriptScriptAndVersionSettingEditParamsSettingsBinding) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingUnion

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

A binding to allow the Worker to communicate with resources.

Satisfied by workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAI, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearch, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchNamespace, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssets, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowser, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlob, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespace, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInherit, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImages, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJson, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMedia, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificate, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainText, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelines, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueue, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimit, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2Bucket, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretText, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmail, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindService, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlob, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorize, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecret, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindFlagship, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKey, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflow, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModule, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCService, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCNetwork, ScriptScriptAndVersionSettingEditParamsSettingsBinding.

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormat

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormatRaw   ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormat = "raw"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormatPkcs8 ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormat = "pkcs8"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormatSpki  ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormat = "spki"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormatJwk   ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormat = "jwk"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsFormat) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdiction

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdictionEu          ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdiction = "eu"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdictionFedramp     ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdiction = "fedramp"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdictionFedrampHigh ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdiction = "fedramp-high"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdiction) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeAI                     ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "ai"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeAISearch               ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "ai_search"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeAISearchNamespace      ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "ai_search_namespace"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeAnalyticsEngine        ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "analytics_engine"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeAssets                 ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "assets"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeBrowser                ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "browser"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeD1                     ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "d1"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeDataBlob               ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "data_blob"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeDispatchNamespace      ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "dispatch_namespace"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeDurableObjectNamespace ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "durable_object_namespace"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeHyperdrive             ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "hyperdrive"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeInherit                ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "inherit"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeImages                 ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "images"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeJson                   ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "json"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeKVNamespace            ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "kv_namespace"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeMedia                  ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "media"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeMTLSCertificate        ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "mtls_certificate"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypePlainText              ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "plain_text"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypePipelines              ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "pipelines"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeQueue                  ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "queue"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeRatelimit              ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "ratelimit"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeR2Bucket               ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "r2_bucket"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeSecretText             ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "secret_text"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeSendEmail              ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "send_email"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeService                ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "service"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeTextBlob               ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "text_blob"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeVectorize              ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "vectorize"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeVersionMetadata        ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "version_metadata"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeSecretsStoreSecret     ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "secrets_store_secret"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeFlagship               ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "flagship"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeSecretKey              ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "secret_key"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeWorkflow               ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "workflow"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeWasmModule             ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "wasm_module"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeVPCService             ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "vpc_service"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeVPCNetwork             ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "vpc_network"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAI

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAIType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAI) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearch

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearch struct {
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName param.Field[string] `json:"instance_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchType] `json:"type" api:"required"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace param.Field[string] `json:"namespace"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearch) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchNamespace

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The user-chosen namespace name. Must exist before deploy -- Wrangler handles
	// auto-creation on deploy failure (R2 bucket pattern). The "default" namespace is
	// auto-created by config-api for new accounts. Grants full access (CRUD + search +
	// chat) to all instances within the namespace.
	Namespace param.Field[string] `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchNamespaceType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchNamespace) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchNamespaceType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchNamespaceTypeAISearchNamespace ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchNamespaceType = "ai_search_namespace"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchNamespaceType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchTypeAISearch ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchType = "ai_search"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAISearchType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAIType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAITypeAI ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAIType = "ai"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAIType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine struct {
	// The name of the dataset to bind to.
	Dataset param.Field[string] `json:"dataset" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssets

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssets struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssets) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssetsTypeAssets ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType = "assets"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowser

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowser struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowserType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowser) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowserType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowserType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowserTypeBrowser ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowserType = "browser"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowserType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1 struct {
	// Identifier of the D1 database to bind to.
	DatabaseID param.Field[string] `json:"database_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1Type] `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID param.Field[string] `json:"id"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1Type

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1TypeD1 ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1Type = "d1"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1Type) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlob

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlob) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType] `json:"type" api:"required"`
	// Outbound worker.
	Outbound param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound] `json:"outbound"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params param.Field[[]ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundParam] `json:"params"`
	// Outbound worker.
	Worker param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker] `json:"worker"`
}

Outbound worker.

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundParam

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundParam struct {
	// Name of the parameter.
	Name param.Field[string] `json:"name" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundParam) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Entrypoint to invoke on the outbound worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// Environment of the outbound worker.
	Environment param.Field[string] `json:"environment"`
	// Name of the outbound worker.
	Service param.Field[string] `json:"service"`
}

Outbound worker.

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespace

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespaceType] `json:"type" api:"required"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace param.Field[string] `json:"dispatch_namespace"`
	// The environment of the script_name to bind to.
	Environment param.Field[string] `json:"environment"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName param.Field[string] `json:"script_name"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespace) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespaceType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespaceTypeDurableObjectNamespace ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespaceType = "durable_object_namespace"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespaceType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindFlagship

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindFlagship struct {
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID param.Field[string] `json:"app_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindFlagshipType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindFlagship) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindFlagshipType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindFlagshipType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindFlagshipTypeFlagship ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindFlagshipType = "flagship"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindFlagshipType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID param.Field[string] `json:"id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveTypeHyperdrive ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImages

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImages) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesTypeImages ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInherit

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritType] `json:"type" api:"required"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName param.Field[string] `json:"old_name"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID param.Field[string] `json:"version_id"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInherit) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritTypeInherit ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJson

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json param.Field[interface{}] `json:"json" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJsonType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJson) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJsonType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJsonTypeJson ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJsonType = "json"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJsonType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceTypeKVNamespace ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificate

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificate struct {
	// Identifier of the certificate to bind to.
	CertificateID param.Field[string] `json:"certificate_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificateType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificate) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificateType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificateType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificateTypeMTLSCertificate ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificateType = "mtls_certificate"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificateType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMedia

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMedia struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMediaType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMedia) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMediaType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMediaType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMediaTypeMedia ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMediaType = "media"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMediaType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelines

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelinesType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelines) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelinesType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelinesType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelinesTypePipelines ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelinesType = "pipelines"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelinesType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainText

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainText struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The text value to use.
	Text param.Field[string] `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainText) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextTypePlainText ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueue

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueue struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueueType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueue) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueueType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueueTypeQueue ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueueType = "queue"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueueType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2Bucket

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2Bucket struct {
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketType] `json:"type" api:"required"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdiction] `json:"jurisdiction"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2Bucket) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdiction

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdictionEu          ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdiction = "eu"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdictionFedramp     ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdictionFedrampHigh ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp-high"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimit

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimit struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Identifier of the rate limit namespace to bind to.
	NamespaceID param.Field[string] `json:"namespace_id" api:"required"`
	// The rate limit configuration.
	Simple param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimitSimple] `json:"simple" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimitType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimit) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimitSimple

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimitSimple struct {
	// The limit (requests per period).
	Limit param.Field[float64] `json:"limit" api:"required"`
	// The period in seconds.
	Period param.Field[int64] `json:"period" api:"required"`
	// Duration in seconds to apply the mitigation action after the rate limit is
	// exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400.
	// Must be greater than or equal to the period when non-zero.
	MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
}

The rate limit configuration.

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimitSimple) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimitType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimitType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimitTypeRatelimit ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimitType = "ratelimit"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindRatelimitType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKey

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm param.Field[interface{}] `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormat] `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyType] `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages param.Field[[]ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage] `json:"usages" api:"required"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string] `json:"key_base64"`
	// Key data in
	// [JSON Web Key](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key)
	// format. Required if `format` is "jwk".
	KeyJwk param.Field[interface{}] `json:"key_jwk"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKey) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormat

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormatRaw   ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormat = "raw"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormatPkcs8 ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormatSpki  ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormat = "spki"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormatJwk   ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyTypeSecretKey ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage string
const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsageEncrypt    ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsageDecrypt    ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsageSign       ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage = "sign"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsageVerify     ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage = "verify"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsageDeriveKey  ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsageDeriveBits ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsageWrapKey    ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretText

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The secret value to use.
	Text param.Field[string] `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretTextType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretText) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretTextType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretTextTypeSecretText ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretTextType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecret

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecret struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name" api:"required"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecretType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecret) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecretType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecretType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecretTypeSecretsStoreSecret ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecretType = "secrets_store_secret"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecretType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmail

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailType] `json:"type" api:"required"`
	// List of allowed destination addresses.
	AllowedDestinationAddresses param.Field[[]string] `json:"allowed_destination_addresses" format:"email"`
	// List of allowed sender addresses.
	AllowedSenderAddresses param.Field[[]string] `json:"allowed_sender_addresses" format:"email"`
	// Destination address for the email.
	DestinationAddress param.Field[string] `json:"destination_address" format:"email"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmail) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindService

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindServiceType] `json:"type" api:"required"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// Optional environment if the Worker utilizes one.
	Environment param.Field[string] `json:"environment"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindService) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindServiceType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindServiceTypeService ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindServiceType = "service"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindServiceType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlob

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlob) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCNetwork

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCNetwork struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCNetworkType] `json:"type" api:"required"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID param.Field[string] `json:"network_id"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID param.Field[string] `json:"tunnel_id"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCNetwork) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCNetworkType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCNetworkType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCNetworkTypeVPCNetwork ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCNetworkType = "vpc_network"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCNetworkType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCService

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCService struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Identifier of the VPC service to bind to.
	ServiceID param.Field[string] `json:"service_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCServiceType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCService) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCServiceType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCServiceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCServiceTypeVPCService ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCServiceType = "vpc_service"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVPCServiceType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorize

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorize) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeTypeVectorize ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModule

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleType] `json:"type" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModule) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflow

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflowType] `json:"type" api:"required"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name" api:"required"`
	// Class name of the Workflow. Should only be provided if the Workflow belongs to
	// this script.
	ClassName param.Field[string] `json:"class_name"`
	// Script name that contains the Workflow. If not provided, defaults to this script
	// name.
	ScriptName param.Field[string] `json:"script_name"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflow) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflowType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflowType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflowTypeWorkflow ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflowType = "workflow"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflowType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsLimits

type ScriptScriptAndVersionSettingEditParamsSettingsLimits struct {
	// The amount of CPU time this Worker can use in milliseconds.
	CPUMs param.Field[int64] `json:"cpu_ms"`
	// The number of subrequests this Worker can make per request.
	Subrequests param.Field[int64] `json:"subrequests"`
}

Limits to apply for this Worker.

func (ScriptScriptAndVersionSettingEditParamsSettingsLimits) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsMigrations

type ScriptScriptAndVersionSettingEditParamsSettingsMigrations struct {
	DeletedClasses   param.Field[interface{}] `json:"deleted_classes"`
	NewClasses       param.Field[interface{}] `json:"new_classes"`
	NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes"`
	// Tag to set as the latest migration tag.
	NewTag param.Field[string] `json:"new_tag"`
	// Tag used to verify against the latest migration tag for this Worker. If they
	// don't match, the upload is rejected.
	OldTag             param.Field[string]      `json:"old_tag"`
	RenamedClasses     param.Field[interface{}] `json:"renamed_classes"`
	Steps              param.Field[interface{}] `json:"steps"`
	TransferredClasses param.Field[interface{}] `json:"transferred_classes"`
}

Migrations to apply for Durable Objects associated with this Worker.

func (ScriptScriptAndVersionSettingEditParamsSettingsMigrations) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsMigrationsUnion

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

Migrations to apply for Durable Objects associated with this Worker.

Satisfied by workers.SingleStepMigrationParam, workers.ScriptScriptAndVersionSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations, ScriptScriptAndVersionSettingEditParamsSettingsMigrations.

type ScriptScriptAndVersionSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations

type ScriptScriptAndVersionSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations struct {
	// Tag to set as the latest migration tag.
	NewTag param.Field[string] `json:"new_tag"`
	// Tag used to verify against the latest migration tag for this Worker. If they
	// don't match, the upload is rejected.
	OldTag param.Field[string] `json:"old_tag"`
	// Migrations to apply in order.
	Steps param.Field[[]MigrationStepParam] `json:"steps"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsObservability

type ScriptScriptAndVersionSettingEditParamsSettingsObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%).
	// Default is 1.
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Log settings for the Worker.
	Logs param.Field[ScriptScriptAndVersionSettingEditParamsSettingsObservabilityLogs] `json:"logs"`
	// Trace settings for the Worker.
	Traces param.Field[ScriptScriptAndVersionSettingEditParamsSettingsObservabilityTraces] `json:"traces"`
}

Observability settings for the Worker.

func (ScriptScriptAndVersionSettingEditParamsSettingsObservability) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsObservabilityLogs

type ScriptScriptAndVersionSettingEditParamsSettingsObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs param.Field[bool] `json:"invocation_logs" api:"required"`
	// A list of destinations where logs will be exported to.
	Destinations param.Field[[]string] `json:"destinations"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Whether log persistence is enabled for the Worker.
	Persist param.Field[bool] `json:"persist"`
}

Log settings for the Worker.

func (ScriptScriptAndVersionSettingEditParamsSettingsObservabilityLogs) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsObservabilityTraces

type ScriptScriptAndVersionSettingEditParamsSettingsObservabilityTraces struct {
	// A list of destinations where traces will be exported to.
	Destinations param.Field[[]string] `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Whether trace persistence is enabled for the Worker.
	Persist param.Field[bool] `json:"persist"`
}

Trace settings for the Worker.

func (ScriptScriptAndVersionSettingEditParamsSettingsObservabilityTraces) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsPlacement

type ScriptScriptAndVersionSettingEditParamsSettingsPlacement struct {
	// TCP host and port for targeted placement.
	Host param.Field[string] `json:"host"`
	// HTTP hostname for targeted placement.
	Hostname param.Field[string] `json:"hostname"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode param.Field[ScriptScriptAndVersionSettingEditParamsSettingsPlacementMode] `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region param.Field[string]      `json:"region"`
	Target param.Field[interface{}] `json:"target"`
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacement) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementHost

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementHost struct {
	// TCP host and port for targeted placement.
	Host param.Field[string] `json:"host" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementHost) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementHostname

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementHostname struct {
	// HTTP hostname for targeted placement.
	Hostname param.Field[string] `json:"hostname" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementHostname) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementMode

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementMode struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode param.Field[ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeMode] `json:"mode" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementMode) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeMode

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeModeSmart ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeMode = "smart"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeMode) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementObject

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementObject struct {
	// Targeted placement mode.
	Mode param.Field[ScriptScriptAndVersionSettingEditParamsSettingsPlacementObjectMode] `json:"mode" api:"required"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region param.Field[string] `json:"region" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementObject) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementObjectMode

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementObjectMode string

Targeted placement mode.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsPlacementObjectModeTargeted ScriptScriptAndVersionSettingEditParamsSettingsPlacementObjectMode = "targeted"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementObjectMode) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementRegion

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementRegion struct {
	// Cloud region for targeted placement in format 'provider:region'.
	Region param.Field[string] `json:"region" api:"required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementRegion) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsUsageModel

type ScriptScriptAndVersionSettingEditParamsSettingsUsageModel string

Usage model for the Worker invocations.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsUsageModelStandard ScriptScriptAndVersionSettingEditParamsSettingsUsageModel = "standard"
	ScriptScriptAndVersionSettingEditParamsSettingsUsageModelBundled  ScriptScriptAndVersionSettingEditParamsSettingsUsageModel = "bundled"
	ScriptScriptAndVersionSettingEditParamsSettingsUsageModelUnbound  ScriptScriptAndVersionSettingEditParamsSettingsUsageModel = "unbound"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsUsageModel) IsKnown

type ScriptScriptAndVersionSettingEditResponse

type ScriptScriptAndVersionSettingEditResponse struct {
	// Annotations for the Worker version. Annotations are not inherited across
	// settings updates; omitting this field means the new version will have no
	// annotations.
	Annotations ScriptScriptAndVersionSettingEditResponseAnnotations `json:"annotations"`
	// List of bindings attached to a Worker. You can find more about bindings on our
	// docs:
	// https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
	Bindings []ScriptScriptAndVersionSettingEditResponseBinding `json:"bindings"`
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate string `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime. Used to
	// enable upcoming features or opt in or out of specific changes not included in a
	// `compatibility_date`.
	CompatibilityFlags []string `json:"compatibility_flags"`
	// Limits to apply for this Worker.
	Limits ScriptScriptAndVersionSettingEditResponseLimits `json:"limits"`
	// Whether Logpush is turned on for the Worker.
	Logpush bool `json:"logpush"`
	// Observability settings for the Worker.
	Observability ScriptScriptAndVersionSettingEditResponseObservability `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	// Specify mode='smart' for Smart Placement, or one of region/hostname/host.
	Placement ScriptScriptAndVersionSettingEditResponsePlacement `json:"placement"`
	// Tags associated with the Worker.
	Tags []string `json:"tags" api:"nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript `json:"tail_consumers" api:"nullable"`
	// Usage model for the Worker invocations.
	UsageModel ScriptScriptAndVersionSettingEditResponseUsageModel `json:"usage_model"`
	JSON       scriptScriptAndVersionSettingEditResponseJSON       `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponse) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponseAnnotations

type ScriptScriptAndVersionSettingEditResponseAnnotations struct {
	// Human-readable message about the version. Truncated to 1000 bytes if longer.
	WorkersMessage string `json:"workers/message"`
	// User-provided identifier for the version. Maximum 100 bytes.
	WorkersTag string `json:"workers/tag"`
	// Operation that triggered the creation of the version. This is read-only and set
	// by the server.
	WorkersTriggeredBy string                                                   `json:"workers/triggered_by"`
	JSON               scriptScriptAndVersionSettingEditResponseAnnotationsJSON `json:"-"`
}

Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.

func (*ScriptScriptAndVersionSettingEditResponseAnnotations) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponseBinding

type ScriptScriptAndVersionSettingEditResponseBinding struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsType `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID string `json:"id"`
	// This field can have the runtime type of [interface{}].
	Algorithm interface{} `json:"algorithm"`
	// This field can have the runtime type of [[]string].
	AllowedDestinationAddresses interface{} `json:"allowed_destination_addresses"`
	// This field can have the runtime type of [[]string].
	AllowedSenderAddresses interface{} `json:"allowed_sender_addresses"`
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID string `json:"app_id"`
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// Identifier of the D1 database to bind to.
	DatabaseID string `json:"database_id"`
	// The name of the dataset to bind to.
	Dataset string `json:"dataset"`
	// Destination address for the email.
	DestinationAddress string `json:"destination_address" format:"email"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace string `json:"dispatch_namespace"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint string `json:"entrypoint"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptScriptAndVersionSettingEditResponseBindingsFormat `json:"format"`
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name"`
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName string `json:"instance_name"`
	// This field can have the runtime type of [interface{}].
	Json interface{} `json:"json"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction ScriptScriptAndVersionSettingEditResponseBindingsJurisdiction `json:"jurisdiction"`
	// This field can have the runtime type of [interface{}].
	KeyJwk interface{} `json:"key_jwk"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID string `json:"network_id"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName string `json:"old_name"`
	// This field can have the runtime type of
	// [ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound].
	Outbound interface{} `json:"outbound"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName string `json:"script_name"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name"`
	// Name of Worker to bind to.
	Service string `json:"service"`
	// Identifier of the VPC service to bind to.
	ServiceID string `json:"service_id"`
	// This field can have the runtime type of
	// [ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitSimple].
	Simple interface{} `json:"simple"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id"`
	// The text value to use.
	Text string `json:"text"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID string `json:"tunnel_id"`
	// This field can have the runtime type of
	// [[]ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage].
	Usages interface{} `json:"usages"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID string `json:"version_id"`
	// Name of the Workflow to bind to.
	WorkflowName string                                               `json:"workflow_name"`
	JSON         scriptScriptAndVersionSettingEditResponseBindingJSON `json:"-"`
	// contains filtered or unexported fields
}

A binding to allow the Worker to communicate with resources.

func (ScriptScriptAndVersionSettingEditResponseBinding) AsUnion

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

Possible runtime types of the union are ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAI, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearch, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssets, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowser, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlob, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdrive, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInherit, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImages, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJson, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMedia, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificate, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainText, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelines, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueue, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimit, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2Bucket, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretText, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmail, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindService, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlob, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorize, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadata, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecret, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagship, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKey, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflow, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModule, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCService, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetwork.

func (*ScriptScriptAndVersionSettingEditResponseBinding) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponseBindingsFormat

type ScriptScriptAndVersionSettingEditResponseBindingsFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptScriptAndVersionSettingEditResponseBindingsFormatRaw   ScriptScriptAndVersionSettingEditResponseBindingsFormat = "raw"
	ScriptScriptAndVersionSettingEditResponseBindingsFormatPkcs8 ScriptScriptAndVersionSettingEditResponseBindingsFormat = "pkcs8"
	ScriptScriptAndVersionSettingEditResponseBindingsFormatSpki  ScriptScriptAndVersionSettingEditResponseBindingsFormat = "spki"
	ScriptScriptAndVersionSettingEditResponseBindingsFormatJwk   ScriptScriptAndVersionSettingEditResponseBindingsFormat = "jwk"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsFormat) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsJurisdiction

type ScriptScriptAndVersionSettingEditResponseBindingsJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsJurisdictionEu          ScriptScriptAndVersionSettingEditResponseBindingsJurisdiction = "eu"
	ScriptScriptAndVersionSettingEditResponseBindingsJurisdictionFedramp     ScriptScriptAndVersionSettingEditResponseBindingsJurisdiction = "fedramp"
	ScriptScriptAndVersionSettingEditResponseBindingsJurisdictionFedrampHigh ScriptScriptAndVersionSettingEditResponseBindingsJurisdiction = "fedramp-high"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsJurisdiction) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsType

type ScriptScriptAndVersionSettingEditResponseBindingsType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsTypeAI                     ScriptScriptAndVersionSettingEditResponseBindingsType = "ai"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeAISearch               ScriptScriptAndVersionSettingEditResponseBindingsType = "ai_search"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeAISearchNamespace      ScriptScriptAndVersionSettingEditResponseBindingsType = "ai_search_namespace"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeAnalyticsEngine        ScriptScriptAndVersionSettingEditResponseBindingsType = "analytics_engine"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeAssets                 ScriptScriptAndVersionSettingEditResponseBindingsType = "assets"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeBrowser                ScriptScriptAndVersionSettingEditResponseBindingsType = "browser"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeD1                     ScriptScriptAndVersionSettingEditResponseBindingsType = "d1"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeDataBlob               ScriptScriptAndVersionSettingEditResponseBindingsType = "data_blob"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeDispatchNamespace      ScriptScriptAndVersionSettingEditResponseBindingsType = "dispatch_namespace"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeDurableObjectNamespace ScriptScriptAndVersionSettingEditResponseBindingsType = "durable_object_namespace"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeHyperdrive             ScriptScriptAndVersionSettingEditResponseBindingsType = "hyperdrive"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeInherit                ScriptScriptAndVersionSettingEditResponseBindingsType = "inherit"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeImages                 ScriptScriptAndVersionSettingEditResponseBindingsType = "images"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeJson                   ScriptScriptAndVersionSettingEditResponseBindingsType = "json"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeKVNamespace            ScriptScriptAndVersionSettingEditResponseBindingsType = "kv_namespace"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeMedia                  ScriptScriptAndVersionSettingEditResponseBindingsType = "media"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeMTLSCertificate        ScriptScriptAndVersionSettingEditResponseBindingsType = "mtls_certificate"
	ScriptScriptAndVersionSettingEditResponseBindingsTypePlainText              ScriptScriptAndVersionSettingEditResponseBindingsType = "plain_text"
	ScriptScriptAndVersionSettingEditResponseBindingsTypePipelines              ScriptScriptAndVersionSettingEditResponseBindingsType = "pipelines"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeQueue                  ScriptScriptAndVersionSettingEditResponseBindingsType = "queue"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeRatelimit              ScriptScriptAndVersionSettingEditResponseBindingsType = "ratelimit"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeR2Bucket               ScriptScriptAndVersionSettingEditResponseBindingsType = "r2_bucket"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeSecretText             ScriptScriptAndVersionSettingEditResponseBindingsType = "secret_text"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeSendEmail              ScriptScriptAndVersionSettingEditResponseBindingsType = "send_email"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeService                ScriptScriptAndVersionSettingEditResponseBindingsType = "service"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeTextBlob               ScriptScriptAndVersionSettingEditResponseBindingsType = "text_blob"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeVectorize              ScriptScriptAndVersionSettingEditResponseBindingsType = "vectorize"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeVersionMetadata        ScriptScriptAndVersionSettingEditResponseBindingsType = "version_metadata"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeSecretsStoreSecret     ScriptScriptAndVersionSettingEditResponseBindingsType = "secrets_store_secret"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeFlagship               ScriptScriptAndVersionSettingEditResponseBindingsType = "flagship"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeSecretKey              ScriptScriptAndVersionSettingEditResponseBindingsType = "secret_key"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeWorkflow               ScriptScriptAndVersionSettingEditResponseBindingsType = "workflow"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeWasmModule             ScriptScriptAndVersionSettingEditResponseBindingsType = "wasm_module"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeVPCService             ScriptScriptAndVersionSettingEditResponseBindingsType = "vpc_service"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeVPCNetwork             ScriptScriptAndVersionSettingEditResponseBindingsType = "vpc_network"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsUnion

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

A binding to allow the Worker to communicate with resources.

Union satisfied by ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAI, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearch, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssets, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowser, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlob, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdrive, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInherit, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImages, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJson, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMedia, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificate, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainText, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelines, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueue, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimit, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2Bucket, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretText, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmail, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindService, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlob, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorize, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadata, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecret, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagship, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKey, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflow, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModule, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCService or ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetwork.

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAI

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAIType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAIJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAI) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearch

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearch struct {
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName string `json:"instance_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchType `json:"type" api:"required"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace string                                                                          `json:"namespace"`
	JSON      scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearch) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespace

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The user-chosen namespace name. Must exist before deploy -- Wrangler handles
	// auto-creation on deploy failure (R2 bucket pattern). The "default" namespace is
	// auto-created by config-api for new accounts. Grants full access (CRUD + search +
	// chat) to all instances within the namespace.
	Namespace string `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespaceType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespaceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespace) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespaceType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespaceTypeAISearchNamespace ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespaceType = "ai_search_namespace"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchNamespaceType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchTypeAISearch ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchType = "ai_search"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAISearchType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAIType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAITypeAI ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAIType = "ai"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAIType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine struct {
	// The name of the dataset to bind to.
	Dataset string `json:"dataset" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssets

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssets struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssetsType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssetsJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssets) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssetsType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssetsTypeAssets ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssetsType = "assets"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssetsType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowser

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowser struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowserType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowserJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowser) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowserType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowserType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowserTypeBrowser ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowserType = "browser"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowserType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1 struct {
	// Identifier of the D1 database to bind to.
	DatabaseID string `json:"database_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1Type `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID   string                                                                    `json:"id"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1JSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1Type

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1TypeD1 ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1Type = "d1"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1Type) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlob

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlob) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespace

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the dispatch namespace.
	Namespace string `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType `json:"type" api:"required"`
	// Outbound worker.
	Outbound ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"`
	JSON     scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceJSON     `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params []ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundParam `json:"params"`
	// Outbound worker.
	Worker ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundParam

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundParam struct {
	// Name of the parameter.
	Name string                                                                                                `json:"name" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundParamJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundParam) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Entrypoint to invoke on the outbound worker.
	Entrypoint string `json:"entrypoint"`
	// Environment of the outbound worker.
	Environment string `json:"environment"`
	// Name of the outbound worker.
	Service string                                                                                                 `json:"service"`
	JSON    scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"`
}

Outbound worker.

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespace

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespaceType `json:"type" api:"required"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace string `json:"dispatch_namespace"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName string                                                                                        `json:"script_name"`
	JSON       scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespaceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespace) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespaceType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespaceTypeDurableObjectNamespace ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespaceType = "durable_object_namespace"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespaceType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagship

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagship struct {
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID string `json:"app_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagshipType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagshipJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagship) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagshipType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagshipType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagshipTypeFlagship ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagshipType = "flagship"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindFlagshipType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdrive

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID string `json:"id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdriveType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdriveJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdrive) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdriveType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdriveTypeHyperdrive ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdriveType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImages

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImages) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesTypeImages ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInherit

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritType `json:"type" api:"required"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName string `json:"old_name"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID string                                                                         `json:"version_id"`
	JSON      scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInherit) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritTypeInherit ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJson

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json interface{} `json:"json" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJsonType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJsonJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJson) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJsonType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJsonTypeJson ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJsonType = "json"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJsonType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespace

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespaceType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespaceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespace) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespaceType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespaceTypeKVNamespace ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespaceType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificate

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificate struct {
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificateType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificateJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificate) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificateType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificateType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificateTypeMTLSCertificate ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificateType = "mtls_certificate"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificateType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMedia

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMedia struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMediaType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMediaJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMedia) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMediaType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMediaType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMediaTypeMedia ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMediaType = "media"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMediaType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelines

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelinesType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelinesJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelines) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelinesType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelinesType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelinesTypePipelines ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelinesType = "pipelines"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelinesType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainText

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The text value to use.
	Text string `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainTextType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainTextJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainText) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainTextType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainTextTypePlainText ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainTextType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueue

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueue struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueueType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueueJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueue) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueueType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueueTypeQueue ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueueType = "queue"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueueType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2Bucket

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2Bucket struct {
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketType `json:"type" api:"required"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdiction `json:"jurisdiction"`
	JSON         scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJSON         `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2Bucket) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdiction

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdictionEu          ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdiction = "eu"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdictionFedramp     ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdictionFedrampHigh ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp-high"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimit

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimit struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Identifier of the rate limit namespace to bind to.
	NamespaceID string `json:"namespace_id" api:"required"`
	// The rate limit configuration.
	Simple ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitSimple `json:"simple" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimit) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitSimple

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitSimple struct {
	// The limit (requests per period).
	Limit float64 `json:"limit" api:"required"`
	// The period in seconds.
	Period int64 `json:"period" api:"required"`
	// Duration in seconds to apply the mitigation action after the rate limit is
	// exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400.
	// Must be greater than or equal to the period when non-zero.
	MitigationTimeout int64                                                                                  `json:"mitigation_timeout"`
	JSON              scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitSimpleJSON `json:"-"`
}

The rate limit configuration.

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitSimple) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitTypeRatelimit ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitType = "ratelimit"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindRatelimitType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKey

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm interface{} `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormat `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyType `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage `json:"usages" api:"required"`
	JSON   scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyJSON    `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKey) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormat

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormatRaw   ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormat = "raw"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormatPkcs8 ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormatSpki  ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormat = "spki"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormatJwk   ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyTypeSecretKey ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage string
const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsageEncrypt    ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsageDecrypt    ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsageSign       ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage = "sign"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsageVerify     ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage = "verify"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsageDeriveKey  ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsageDeriveBits ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsageWrapKey    ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretText

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretTextType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretTextJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretText) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretTextType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretTextTypeSecretText ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretTextType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecret

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecret struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name" api:"required"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecretType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecretJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecret) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecretType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecretType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecretTypeSecretsStoreSecret ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecretType = "secrets_store_secret"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecretType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmail

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailType `json:"type" api:"required"`
	// List of allowed destination addresses.
	AllowedDestinationAddresses []string `json:"allowed_destination_addresses" format:"email"`
	// List of allowed sender addresses.
	AllowedSenderAddresses []string `json:"allowed_sender_addresses" format:"email"`
	// Destination address for the email.
	DestinationAddress string                                                                           `json:"destination_address" format:"email"`
	JSON               scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmail) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindService

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of Worker to bind to.
	Service string `json:"service" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindServiceType `json:"type" api:"required"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint string `json:"entrypoint"`
	// Optional environment if the Worker utilizes one.
	Environment string                                                                         `json:"environment"`
	JSON        scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindServiceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindService) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindServiceType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindServiceTypeService ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindServiceType = "service"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindServiceType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlob

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlob) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetwork

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetwork struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetworkType `json:"type" api:"required"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID string `json:"network_id"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID string                                                                            `json:"tunnel_id"`
	JSON     scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetworkJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetwork) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetworkType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetworkType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetworkTypeVPCNetwork ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetworkType = "vpc_network"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCNetworkType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCService

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Identifier of the VPC service to bind to.
	ServiceID string `json:"service_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCServiceType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCServiceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCService) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCServiceType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCServiceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCServiceTypeVPCService ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCServiceType = "vpc_service"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVPCServiceType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorize

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorizeType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorizeJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorize) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorizeType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorizeTypeVectorize ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorizeType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadata

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadata struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadataType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadataJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadataType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadataType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModule

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModule) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleType) IsKnown

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflow

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflowType `json:"type" api:"required"`
	// Name of the Workflow to bind to.
	WorkflowName string `json:"workflow_name" api:"required"`
	// Class name of the Workflow. Should only be provided if the Workflow belongs to
	// this script.
	ClassName string `json:"class_name"`
	// Script name that contains the Workflow. If not provided, defaults to this script
	// name.
	ScriptName string                                                                          `json:"script_name"`
	JSON       scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflowJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflow) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflowType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflowType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflowTypeWorkflow ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflowType = "workflow"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflowType) IsKnown

type ScriptScriptAndVersionSettingEditResponseEnvelope

type ScriptScriptAndVersionSettingEditResponseEnvelope struct {
	Errors   []ScriptScriptAndVersionSettingEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptScriptAndVersionSettingEditResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptScriptAndVersionSettingEditResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptScriptAndVersionSettingEditResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptScriptAndVersionSettingEditResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseEnvelope) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponseEnvelopeErrors

type ScriptScriptAndVersionSettingEditResponseEnvelopeErrors struct {
	Code             int64                                                         `json:"code" api:"required"`
	Message          string                                                        `json:"message" api:"required"`
	DocumentationURL string                                                        `json:"documentation_url"`
	Source           ScriptScriptAndVersionSettingEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptScriptAndVersionSettingEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseEnvelopeErrors) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseEnvelopeErrorsSource

type ScriptScriptAndVersionSettingEditResponseEnvelopeErrorsSource struct {
	Pointer string                                                            `json:"pointer"`
	JSON    scriptScriptAndVersionSettingEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseEnvelopeErrorsSource) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseEnvelopeMessages

type ScriptScriptAndVersionSettingEditResponseEnvelopeMessages struct {
	Code             int64                                                           `json:"code" api:"required"`
	Message          string                                                          `json:"message" api:"required"`
	DocumentationURL string                                                          `json:"documentation_url"`
	Source           ScriptScriptAndVersionSettingEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptScriptAndVersionSettingEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseEnvelopeMessages) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseEnvelopeMessagesSource

type ScriptScriptAndVersionSettingEditResponseEnvelopeMessagesSource struct {
	Pointer string                                                              `json:"pointer"`
	JSON    scriptScriptAndVersionSettingEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseEnvelopeMessagesSource) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseEnvelopeSuccess

type ScriptScriptAndVersionSettingEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptScriptAndVersionSettingEditResponseEnvelopeSuccessTrue ScriptScriptAndVersionSettingEditResponseEnvelopeSuccess = true
)

func (ScriptScriptAndVersionSettingEditResponseEnvelopeSuccess) IsKnown

type ScriptScriptAndVersionSettingEditResponseLimits

type ScriptScriptAndVersionSettingEditResponseLimits struct {
	// The amount of CPU time this Worker can use in milliseconds.
	CPUMs int64 `json:"cpu_ms"`
	// The number of subrequests this Worker can make per request.
	Subrequests int64                                               `json:"subrequests"`
	JSON        scriptScriptAndVersionSettingEditResponseLimitsJSON `json:"-"`
}

Limits to apply for this Worker.

func (*ScriptScriptAndVersionSettingEditResponseLimits) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponseMigrations

type ScriptScriptAndVersionSettingEditResponseMigrations struct {
	// This field can have the runtime type of [[]string].
	DeletedClasses interface{} `json:"deleted_classes"`
	// This field can have the runtime type of [[]string].
	NewClasses interface{} `json:"new_classes"`
	// This field can have the runtime type of [[]string].
	NewSqliteClasses interface{} `json:"new_sqlite_classes"`
	// This field can have the runtime type of [[]SingleStepMigrationRenamedClass].
	RenamedClasses interface{} `json:"renamed_classes"`
	// This field can have the runtime type of [[]MigrationStep].
	Steps interface{} `json:"steps"`
	// This field can have the runtime type of [[]SingleStepMigrationTransferredClass].
	TransferredClasses interface{}                                             `json:"transferred_classes"`
	JSON               scriptScriptAndVersionSettingEditResponseMigrationsJSON `json:"-"`
	// contains filtered or unexported fields
}

Migrations to apply for Durable Objects associated with this Worker.

func (ScriptScriptAndVersionSettingEditResponseMigrations) AsUnion

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

Possible runtime types of the union are SingleStepMigration, ScriptScriptAndVersionSettingEditResponseMigrationsWorkersMultipleStepMigrations.

func (*ScriptScriptAndVersionSettingEditResponseMigrations) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponseMigrationsUnion

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

Migrations to apply for Durable Objects associated with this Worker.

Union satisfied by SingleStepMigration or ScriptScriptAndVersionSettingEditResponseMigrationsWorkersMultipleStepMigrations.

type ScriptScriptAndVersionSettingEditResponseMigrationsWorkersMultipleStepMigrations

type ScriptScriptAndVersionSettingEditResponseMigrationsWorkersMultipleStepMigrations struct {
	JSON scriptScriptAndVersionSettingEditResponseMigrationsWorkersMultipleStepMigrationsJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseMigrationsWorkersMultipleStepMigrations) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseObservability

type ScriptScriptAndVersionSettingEditResponseObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%).
	// Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Log settings for the Worker.
	Logs ScriptScriptAndVersionSettingEditResponseObservabilityLogs `json:"logs" api:"nullable"`
	// Trace settings for the Worker.
	Traces ScriptScriptAndVersionSettingEditResponseObservabilityTraces `json:"traces" api:"nullable"`
	JSON   scriptScriptAndVersionSettingEditResponseObservabilityJSON   `json:"-"`
}

Observability settings for the Worker.

func (*ScriptScriptAndVersionSettingEditResponseObservability) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponseObservabilityLogs

type ScriptScriptAndVersionSettingEditResponseObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs bool `json:"invocation_logs" api:"required"`
	// A list of destinations where logs will be exported to.
	Destinations []string `json:"destinations"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether log persistence is enabled for the Worker.
	Persist bool                                                           `json:"persist"`
	JSON    scriptScriptAndVersionSettingEditResponseObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*ScriptScriptAndVersionSettingEditResponseObservabilityLogs) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseObservabilityTraces

type ScriptScriptAndVersionSettingEditResponseObservabilityTraces struct {
	// A list of destinations where traces will be exported to.
	Destinations []string `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled bool `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether trace persistence is enabled for the Worker.
	Persist bool                                                             `json:"persist"`
	JSON    scriptScriptAndVersionSettingEditResponseObservabilityTracesJSON `json:"-"`
}

Trace settings for the Worker.

func (*ScriptScriptAndVersionSettingEditResponseObservabilityTraces) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponsePlacement

type ScriptScriptAndVersionSettingEditResponsePlacement struct {
	// TCP host and port for targeted placement.
	Host string `json:"host"`
	// HTTP hostname for targeted placement.
	Hostname string `json:"hostname"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptScriptAndVersionSettingEditResponsePlacementModeMode `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string `json:"region"`
	// This field can have the runtime type of
	// [[]ScriptScriptAndVersionSettingEditResponsePlacementObjectTarget].
	Target interface{}                                            `json:"target"`
	JSON   scriptScriptAndVersionSettingEditResponsePlacementJSON `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

func (*ScriptScriptAndVersionSettingEditResponsePlacement) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponsePlacementHost

type ScriptScriptAndVersionSettingEditResponsePlacementHost struct {
	// TCP host and port for targeted placement.
	Host string                                                     `json:"host" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponsePlacementHostJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponsePlacementHost) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponsePlacementHostname

type ScriptScriptAndVersionSettingEditResponsePlacementHostname struct {
	// HTTP hostname for targeted placement.
	Hostname string                                                         `json:"hostname" api:"required"`
	JSON     scriptScriptAndVersionSettingEditResponsePlacementHostnameJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponsePlacementHostname) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponsePlacementMode

type ScriptScriptAndVersionSettingEditResponsePlacementMode struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptScriptAndVersionSettingEditResponsePlacementModeMode `json:"mode" api:"required"`
	JSON scriptScriptAndVersionSettingEditResponsePlacementModeJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponsePlacementMode) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponsePlacementModeMode

type ScriptScriptAndVersionSettingEditResponsePlacementModeMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptScriptAndVersionSettingEditResponsePlacementModeModeSmart ScriptScriptAndVersionSettingEditResponsePlacementModeMode = "smart"
)

func (ScriptScriptAndVersionSettingEditResponsePlacementModeMode) IsKnown

type ScriptScriptAndVersionSettingEditResponsePlacementObject

type ScriptScriptAndVersionSettingEditResponsePlacementObject struct {
	// Targeted placement mode.
	Mode ScriptScriptAndVersionSettingEditResponsePlacementObjectMode `json:"mode" api:"required"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string                                                       `json:"region" api:"required"`
	JSON   scriptScriptAndVersionSettingEditResponsePlacementObjectJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponsePlacementObject) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponsePlacementObjectMode

type ScriptScriptAndVersionSettingEditResponsePlacementObjectMode string

Targeted placement mode.

const (
	ScriptScriptAndVersionSettingEditResponsePlacementObjectModeTargeted ScriptScriptAndVersionSettingEditResponsePlacementObjectMode = "targeted"
)

func (ScriptScriptAndVersionSettingEditResponsePlacementObjectMode) IsKnown

type ScriptScriptAndVersionSettingEditResponsePlacementRegion

type ScriptScriptAndVersionSettingEditResponsePlacementRegion struct {
	// Cloud region for targeted placement in format 'provider:region'.
	Region string                                                       `json:"region" api:"required"`
	JSON   scriptScriptAndVersionSettingEditResponsePlacementRegionJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponsePlacementRegion) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseUsageModel

type ScriptScriptAndVersionSettingEditResponseUsageModel string

Usage model for the Worker invocations.

const (
	ScriptScriptAndVersionSettingEditResponseUsageModelStandard ScriptScriptAndVersionSettingEditResponseUsageModel = "standard"
	ScriptScriptAndVersionSettingEditResponseUsageModelBundled  ScriptScriptAndVersionSettingEditResponseUsageModel = "bundled"
	ScriptScriptAndVersionSettingEditResponseUsageModelUnbound  ScriptScriptAndVersionSettingEditResponseUsageModel = "unbound"
)

func (ScriptScriptAndVersionSettingEditResponseUsageModel) IsKnown

type ScriptScriptAndVersionSettingGetParams

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

type ScriptScriptAndVersionSettingGetResponse

type ScriptScriptAndVersionSettingGetResponse struct {
	// Annotations for the Worker version. Annotations are not inherited across
	// settings updates; omitting this field means the new version will have no
	// annotations.
	Annotations ScriptScriptAndVersionSettingGetResponseAnnotations `json:"annotations"`
	// List of bindings attached to a Worker. You can find more about bindings on our
	// docs:
	// https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
	Bindings []ScriptScriptAndVersionSettingGetResponseBinding `json:"bindings"`
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate string `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime. Used to
	// enable upcoming features or opt in or out of specific changes not included in a
	// `compatibility_date`.
	CompatibilityFlags []string `json:"compatibility_flags"`
	// Limits to apply for this Worker.
	Limits ScriptScriptAndVersionSettingGetResponseLimits `json:"limits"`
	// Whether Logpush is turned on for the Worker.
	Logpush bool `json:"logpush"`
	// Observability settings for the Worker.
	Observability ScriptScriptAndVersionSettingGetResponseObservability `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	// Specify mode='smart' for Smart Placement, or one of region/hostname/host.
	Placement ScriptScriptAndVersionSettingGetResponsePlacement `json:"placement"`
	// Tags associated with the Worker.
	Tags []string `json:"tags" api:"nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript `json:"tail_consumers" api:"nullable"`
	// Usage model for the Worker invocations.
	UsageModel ScriptScriptAndVersionSettingGetResponseUsageModel `json:"usage_model"`
	JSON       scriptScriptAndVersionSettingGetResponseJSON       `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponse) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponseAnnotations

type ScriptScriptAndVersionSettingGetResponseAnnotations struct {
	// Human-readable message about the version. Truncated to 1000 bytes if longer.
	WorkersMessage string `json:"workers/message"`
	// User-provided identifier for the version. Maximum 100 bytes.
	WorkersTag string `json:"workers/tag"`
	// Operation that triggered the creation of the version. This is read-only and set
	// by the server.
	WorkersTriggeredBy string                                                  `json:"workers/triggered_by"`
	JSON               scriptScriptAndVersionSettingGetResponseAnnotationsJSON `json:"-"`
}

Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.

func (*ScriptScriptAndVersionSettingGetResponseAnnotations) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponseBinding

type ScriptScriptAndVersionSettingGetResponseBinding struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsType `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID string `json:"id"`
	// This field can have the runtime type of [interface{}].
	Algorithm interface{} `json:"algorithm"`
	// This field can have the runtime type of [[]string].
	AllowedDestinationAddresses interface{} `json:"allowed_destination_addresses"`
	// This field can have the runtime type of [[]string].
	AllowedSenderAddresses interface{} `json:"allowed_sender_addresses"`
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID string `json:"app_id"`
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// Identifier of the D1 database to bind to.
	DatabaseID string `json:"database_id"`
	// The name of the dataset to bind to.
	Dataset string `json:"dataset"`
	// Destination address for the email.
	DestinationAddress string `json:"destination_address" format:"email"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace string `json:"dispatch_namespace"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint string `json:"entrypoint"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptScriptAndVersionSettingGetResponseBindingsFormat `json:"format"`
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name"`
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName string `json:"instance_name"`
	// This field can have the runtime type of [interface{}].
	Json interface{} `json:"json"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction ScriptScriptAndVersionSettingGetResponseBindingsJurisdiction `json:"jurisdiction"`
	// This field can have the runtime type of [interface{}].
	KeyJwk interface{} `json:"key_jwk"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID string `json:"network_id"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName string `json:"old_name"`
	// This field can have the runtime type of
	// [ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound].
	Outbound interface{} `json:"outbound"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName string `json:"script_name"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name"`
	// Name of Worker to bind to.
	Service string `json:"service"`
	// Identifier of the VPC service to bind to.
	ServiceID string `json:"service_id"`
	// This field can have the runtime type of
	// [ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitSimple].
	Simple interface{} `json:"simple"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id"`
	// The text value to use.
	Text string `json:"text"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID string `json:"tunnel_id"`
	// This field can have the runtime type of
	// [[]ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage].
	Usages interface{} `json:"usages"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID string `json:"version_id"`
	// Name of the Workflow to bind to.
	WorkflowName string                                              `json:"workflow_name"`
	JSON         scriptScriptAndVersionSettingGetResponseBindingJSON `json:"-"`
	// contains filtered or unexported fields
}

A binding to allow the Worker to communicate with resources.

func (ScriptScriptAndVersionSettingGetResponseBinding) AsUnion

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

Possible runtime types of the union are ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAI, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearch, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssets, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowser, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlob, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdrive, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInherit, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImages, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJson, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMedia, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificate, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainText, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelines, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueue, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimit, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2Bucket, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretText, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmail, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindService, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlob, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorize, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadata, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecret, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagship, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKey, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflow, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModule, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCService, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetwork.

func (*ScriptScriptAndVersionSettingGetResponseBinding) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponseBindingsFormat

type ScriptScriptAndVersionSettingGetResponseBindingsFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptScriptAndVersionSettingGetResponseBindingsFormatRaw   ScriptScriptAndVersionSettingGetResponseBindingsFormat = "raw"
	ScriptScriptAndVersionSettingGetResponseBindingsFormatPkcs8 ScriptScriptAndVersionSettingGetResponseBindingsFormat = "pkcs8"
	ScriptScriptAndVersionSettingGetResponseBindingsFormatSpki  ScriptScriptAndVersionSettingGetResponseBindingsFormat = "spki"
	ScriptScriptAndVersionSettingGetResponseBindingsFormatJwk   ScriptScriptAndVersionSettingGetResponseBindingsFormat = "jwk"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsFormat) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsJurisdiction

type ScriptScriptAndVersionSettingGetResponseBindingsJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsJurisdictionEu          ScriptScriptAndVersionSettingGetResponseBindingsJurisdiction = "eu"
	ScriptScriptAndVersionSettingGetResponseBindingsJurisdictionFedramp     ScriptScriptAndVersionSettingGetResponseBindingsJurisdiction = "fedramp"
	ScriptScriptAndVersionSettingGetResponseBindingsJurisdictionFedrampHigh ScriptScriptAndVersionSettingGetResponseBindingsJurisdiction = "fedramp-high"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsJurisdiction) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsType

type ScriptScriptAndVersionSettingGetResponseBindingsType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsTypeAI                     ScriptScriptAndVersionSettingGetResponseBindingsType = "ai"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeAISearch               ScriptScriptAndVersionSettingGetResponseBindingsType = "ai_search"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeAISearchNamespace      ScriptScriptAndVersionSettingGetResponseBindingsType = "ai_search_namespace"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeAnalyticsEngine        ScriptScriptAndVersionSettingGetResponseBindingsType = "analytics_engine"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeAssets                 ScriptScriptAndVersionSettingGetResponseBindingsType = "assets"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeBrowser                ScriptScriptAndVersionSettingGetResponseBindingsType = "browser"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeD1                     ScriptScriptAndVersionSettingGetResponseBindingsType = "d1"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeDataBlob               ScriptScriptAndVersionSettingGetResponseBindingsType = "data_blob"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeDispatchNamespace      ScriptScriptAndVersionSettingGetResponseBindingsType = "dispatch_namespace"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeDurableObjectNamespace ScriptScriptAndVersionSettingGetResponseBindingsType = "durable_object_namespace"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeHyperdrive             ScriptScriptAndVersionSettingGetResponseBindingsType = "hyperdrive"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeInherit                ScriptScriptAndVersionSettingGetResponseBindingsType = "inherit"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeImages                 ScriptScriptAndVersionSettingGetResponseBindingsType = "images"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeJson                   ScriptScriptAndVersionSettingGetResponseBindingsType = "json"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeKVNamespace            ScriptScriptAndVersionSettingGetResponseBindingsType = "kv_namespace"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeMedia                  ScriptScriptAndVersionSettingGetResponseBindingsType = "media"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeMTLSCertificate        ScriptScriptAndVersionSettingGetResponseBindingsType = "mtls_certificate"
	ScriptScriptAndVersionSettingGetResponseBindingsTypePlainText              ScriptScriptAndVersionSettingGetResponseBindingsType = "plain_text"
	ScriptScriptAndVersionSettingGetResponseBindingsTypePipelines              ScriptScriptAndVersionSettingGetResponseBindingsType = "pipelines"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeQueue                  ScriptScriptAndVersionSettingGetResponseBindingsType = "queue"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeRatelimit              ScriptScriptAndVersionSettingGetResponseBindingsType = "ratelimit"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeR2Bucket               ScriptScriptAndVersionSettingGetResponseBindingsType = "r2_bucket"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeSecretText             ScriptScriptAndVersionSettingGetResponseBindingsType = "secret_text"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeSendEmail              ScriptScriptAndVersionSettingGetResponseBindingsType = "send_email"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeService                ScriptScriptAndVersionSettingGetResponseBindingsType = "service"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeTextBlob               ScriptScriptAndVersionSettingGetResponseBindingsType = "text_blob"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeVectorize              ScriptScriptAndVersionSettingGetResponseBindingsType = "vectorize"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeVersionMetadata        ScriptScriptAndVersionSettingGetResponseBindingsType = "version_metadata"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeSecretsStoreSecret     ScriptScriptAndVersionSettingGetResponseBindingsType = "secrets_store_secret"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeFlagship               ScriptScriptAndVersionSettingGetResponseBindingsType = "flagship"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeSecretKey              ScriptScriptAndVersionSettingGetResponseBindingsType = "secret_key"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeWorkflow               ScriptScriptAndVersionSettingGetResponseBindingsType = "workflow"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeWasmModule             ScriptScriptAndVersionSettingGetResponseBindingsType = "wasm_module"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeVPCService             ScriptScriptAndVersionSettingGetResponseBindingsType = "vpc_service"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeVPCNetwork             ScriptScriptAndVersionSettingGetResponseBindingsType = "vpc_network"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsUnion

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

A binding to allow the Worker to communicate with resources.

Union satisfied by ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAI, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearch, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssets, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowser, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlob, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdrive, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInherit, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImages, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJson, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMedia, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificate, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainText, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelines, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueue, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimit, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2Bucket, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretText, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmail, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindService, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlob, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorize, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadata, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecret, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagship, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKey, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflow, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModule, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCService or ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetwork.

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAI

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAIType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAIJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAI) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearch

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearch struct {
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName string `json:"instance_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchType `json:"type" api:"required"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace string                                                                         `json:"namespace"`
	JSON      scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearch) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespace

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The user-chosen namespace name. Must exist before deploy -- Wrangler handles
	// auto-creation on deploy failure (R2 bucket pattern). The "default" namespace is
	// auto-created by config-api for new accounts. Grants full access (CRUD + search +
	// chat) to all instances within the namespace.
	Namespace string `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespaceType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespaceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespace) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespaceType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespaceTypeAISearchNamespace ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespaceType = "ai_search_namespace"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchNamespaceType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchTypeAISearch ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchType = "ai_search"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAISearchType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAIType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAITypeAI ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAIType = "ai"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAIType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine struct {
	// The name of the dataset to bind to.
	Dataset string `json:"dataset" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssets

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssets struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssetsType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssetsJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssets) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssetsType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssetsTypeAssets ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssetsType = "assets"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssetsType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowser

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowser struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowserType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowserJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowser) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowserType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowserType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowserTypeBrowser ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowserType = "browser"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowserType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1 struct {
	// Identifier of the D1 database to bind to.
	DatabaseID string `json:"database_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1Type `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID   string                                                                   `json:"id"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1JSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1Type

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1TypeD1 ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1Type = "d1"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1Type) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlob

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlob) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespace

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the dispatch namespace.
	Namespace string `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType `json:"type" api:"required"`
	// Outbound worker.
	Outbound ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"`
	JSON     scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceJSON     `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params []ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundParam `json:"params"`
	// Outbound worker.
	Worker ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundParam

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundParam struct {
	// Name of the parameter.
	Name string                                                                                               `json:"name" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundParamJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundParam) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Entrypoint to invoke on the outbound worker.
	Entrypoint string `json:"entrypoint"`
	// Environment of the outbound worker.
	Environment string `json:"environment"`
	// Name of the outbound worker.
	Service string                                                                                                `json:"service"`
	JSON    scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"`
}

Outbound worker.

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespace

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespaceType `json:"type" api:"required"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace string `json:"dispatch_namespace"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName string                                                                                       `json:"script_name"`
	JSON       scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespaceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespace) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespaceType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespaceTypeDurableObjectNamespace ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespaceType = "durable_object_namespace"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespaceType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagship

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagship struct {
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID string `json:"app_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagshipType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagshipJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagship) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagshipType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagshipType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagshipTypeFlagship ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagshipType = "flagship"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindFlagshipType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdrive

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID string `json:"id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdriveType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdriveJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdrive) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdriveType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdriveTypeHyperdrive ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdriveType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImages

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImages) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesTypeImages ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInherit

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritType `json:"type" api:"required"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName string `json:"old_name"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID string                                                                        `json:"version_id"`
	JSON      scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInherit) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritTypeInherit ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJson

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json interface{} `json:"json" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJsonType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJsonJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJson) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJsonType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJsonTypeJson ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJsonType = "json"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJsonType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespace

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespaceType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespaceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespace) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespaceType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespaceTypeKVNamespace ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespaceType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificate

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificate struct {
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificateType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificateJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificate) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificateType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificateType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificateTypeMTLSCertificate ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificateType = "mtls_certificate"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificateType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMedia

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMedia struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMediaType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMediaJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMedia) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMediaType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMediaType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMediaTypeMedia ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMediaType = "media"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMediaType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelines

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelinesType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelinesJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelines) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelinesType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelinesType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelinesTypePipelines ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelinesType = "pipelines"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelinesType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainText

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The text value to use.
	Text string `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainTextType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainTextJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainText) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainTextType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainTextTypePlainText ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainTextType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueue

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueue struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueueType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueueJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueue) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueueType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueueTypeQueue ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueueType = "queue"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueueType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2Bucket

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2Bucket struct {
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketType `json:"type" api:"required"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdiction `json:"jurisdiction"`
	JSON         scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJSON         `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2Bucket) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdiction

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdictionEu          ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdiction = "eu"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdictionFedramp     ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdictionFedrampHigh ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp-high"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimit

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimit struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Identifier of the rate limit namespace to bind to.
	NamespaceID string `json:"namespace_id" api:"required"`
	// The rate limit configuration.
	Simple ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitSimple `json:"simple" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimit) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitSimple

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitSimple struct {
	// The limit (requests per period).
	Limit float64 `json:"limit" api:"required"`
	// The period in seconds.
	Period int64 `json:"period" api:"required"`
	// Duration in seconds to apply the mitigation action after the rate limit is
	// exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400.
	// Must be greater than or equal to the period when non-zero.
	MitigationTimeout int64                                                                                 `json:"mitigation_timeout"`
	JSON              scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitSimpleJSON `json:"-"`
}

The rate limit configuration.

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitSimple) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitTypeRatelimit ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitType = "ratelimit"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindRatelimitType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKey

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm interface{} `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormat `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyType `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage `json:"usages" api:"required"`
	JSON   scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyJSON    `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKey) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormat

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormatRaw   ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormat = "raw"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormatPkcs8 ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormatSpki  ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormat = "spki"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormatJwk   ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyTypeSecretKey ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage string
const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsageEncrypt    ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsageDecrypt    ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsageSign       ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage = "sign"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsageVerify     ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage = "verify"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsageDeriveKey  ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsageDeriveBits ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsageWrapKey    ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretText

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretTextType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretTextJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretText) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretTextType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretTextTypeSecretText ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretTextType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecret

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecret struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name" api:"required"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecretType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecretJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecret) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecretType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecretType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecretTypeSecretsStoreSecret ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecretType = "secrets_store_secret"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecretType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmail

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailType `json:"type" api:"required"`
	// List of allowed destination addresses.
	AllowedDestinationAddresses []string `json:"allowed_destination_addresses" format:"email"`
	// List of allowed sender addresses.
	AllowedSenderAddresses []string `json:"allowed_sender_addresses" format:"email"`
	// Destination address for the email.
	DestinationAddress string                                                                          `json:"destination_address" format:"email"`
	JSON               scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmail) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindService

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of Worker to bind to.
	Service string `json:"service" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindServiceType `json:"type" api:"required"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint string `json:"entrypoint"`
	// Optional environment if the Worker utilizes one.
	Environment string                                                                        `json:"environment"`
	JSON        scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindServiceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindService) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindServiceType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindServiceTypeService ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindServiceType = "service"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindServiceType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlob

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlob) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetwork

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetwork struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetworkType `json:"type" api:"required"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID string `json:"network_id"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID string                                                                           `json:"tunnel_id"`
	JSON     scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetworkJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetwork) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetworkType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetworkType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetworkTypeVPCNetwork ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetworkType = "vpc_network"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCNetworkType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCService

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Identifier of the VPC service to bind to.
	ServiceID string `json:"service_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCServiceType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCServiceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCService) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCServiceType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCServiceType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCServiceTypeVPCService ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCServiceType = "vpc_service"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVPCServiceType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorize

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorizeType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorizeJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorize) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorizeType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorizeTypeVectorize ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorizeType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadata

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadata struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadataType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadataJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadataType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadataType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModule

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleType `json:"type" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModule) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleType) IsKnown

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflow

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflowType `json:"type" api:"required"`
	// Name of the Workflow to bind to.
	WorkflowName string `json:"workflow_name" api:"required"`
	// Class name of the Workflow. Should only be provided if the Workflow belongs to
	// this script.
	ClassName string `json:"class_name"`
	// Script name that contains the Workflow. If not provided, defaults to this script
	// name.
	ScriptName string                                                                         `json:"script_name"`
	JSON       scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflowJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflow) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflowType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflowType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflowTypeWorkflow ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflowType = "workflow"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflowType) IsKnown

type ScriptScriptAndVersionSettingGetResponseEnvelope

type ScriptScriptAndVersionSettingGetResponseEnvelope struct {
	Errors   []ScriptScriptAndVersionSettingGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptScriptAndVersionSettingGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptScriptAndVersionSettingGetResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptScriptAndVersionSettingGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptScriptAndVersionSettingGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseEnvelope) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponseEnvelopeErrors

type ScriptScriptAndVersionSettingGetResponseEnvelopeErrors struct {
	Code             int64                                                        `json:"code" api:"required"`
	Message          string                                                       `json:"message" api:"required"`
	DocumentationURL string                                                       `json:"documentation_url"`
	Source           ScriptScriptAndVersionSettingGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptScriptAndVersionSettingGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponseEnvelopeErrorsSource

type ScriptScriptAndVersionSettingGetResponseEnvelopeErrorsSource struct {
	Pointer string                                                           `json:"pointer"`
	JSON    scriptScriptAndVersionSettingGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseEnvelopeErrorsSource) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseEnvelopeMessages

type ScriptScriptAndVersionSettingGetResponseEnvelopeMessages struct {
	Code             int64                                                          `json:"code" api:"required"`
	Message          string                                                         `json:"message" api:"required"`
	DocumentationURL string                                                         `json:"documentation_url"`
	Source           ScriptScriptAndVersionSettingGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptScriptAndVersionSettingGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseEnvelopeMessages) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseEnvelopeMessagesSource

type ScriptScriptAndVersionSettingGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                             `json:"pointer"`
	JSON    scriptScriptAndVersionSettingGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseEnvelopeMessagesSource) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseEnvelopeSuccess

type ScriptScriptAndVersionSettingGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptScriptAndVersionSettingGetResponseEnvelopeSuccessTrue ScriptScriptAndVersionSettingGetResponseEnvelopeSuccess = true
)

func (ScriptScriptAndVersionSettingGetResponseEnvelopeSuccess) IsKnown

type ScriptScriptAndVersionSettingGetResponseLimits

type ScriptScriptAndVersionSettingGetResponseLimits struct {
	// The amount of CPU time this Worker can use in milliseconds.
	CPUMs int64 `json:"cpu_ms"`
	// The number of subrequests this Worker can make per request.
	Subrequests int64                                              `json:"subrequests"`
	JSON        scriptScriptAndVersionSettingGetResponseLimitsJSON `json:"-"`
}

Limits to apply for this Worker.

func (*ScriptScriptAndVersionSettingGetResponseLimits) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponseMigrations

type ScriptScriptAndVersionSettingGetResponseMigrations struct {
	// This field can have the runtime type of [[]string].
	DeletedClasses interface{} `json:"deleted_classes"`
	// This field can have the runtime type of [[]string].
	NewClasses interface{} `json:"new_classes"`
	// This field can have the runtime type of [[]string].
	NewSqliteClasses interface{} `json:"new_sqlite_classes"`
	// This field can have the runtime type of [[]SingleStepMigrationRenamedClass].
	RenamedClasses interface{} `json:"renamed_classes"`
	// This field can have the runtime type of [[]MigrationStep].
	Steps interface{} `json:"steps"`
	// This field can have the runtime type of [[]SingleStepMigrationTransferredClass].
	TransferredClasses interface{}                                            `json:"transferred_classes"`
	JSON               scriptScriptAndVersionSettingGetResponseMigrationsJSON `json:"-"`
	// contains filtered or unexported fields
}

Migrations to apply for Durable Objects associated with this Worker.

func (ScriptScriptAndVersionSettingGetResponseMigrations) AsUnion

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

Possible runtime types of the union are SingleStepMigration, ScriptScriptAndVersionSettingGetResponseMigrationsWorkersMultipleStepMigrations.

func (*ScriptScriptAndVersionSettingGetResponseMigrations) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponseMigrationsUnion

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

Migrations to apply for Durable Objects associated with this Worker.

Union satisfied by SingleStepMigration or ScriptScriptAndVersionSettingGetResponseMigrationsWorkersMultipleStepMigrations.

type ScriptScriptAndVersionSettingGetResponseMigrationsWorkersMultipleStepMigrations

type ScriptScriptAndVersionSettingGetResponseMigrationsWorkersMultipleStepMigrations struct {
	JSON scriptScriptAndVersionSettingGetResponseMigrationsWorkersMultipleStepMigrationsJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseMigrationsWorkersMultipleStepMigrations) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseObservability

type ScriptScriptAndVersionSettingGetResponseObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%).
	// Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Log settings for the Worker.
	Logs ScriptScriptAndVersionSettingGetResponseObservabilityLogs `json:"logs" api:"nullable"`
	// Trace settings for the Worker.
	Traces ScriptScriptAndVersionSettingGetResponseObservabilityTraces `json:"traces" api:"nullable"`
	JSON   scriptScriptAndVersionSettingGetResponseObservabilityJSON   `json:"-"`
}

Observability settings for the Worker.

func (*ScriptScriptAndVersionSettingGetResponseObservability) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponseObservabilityLogs

type ScriptScriptAndVersionSettingGetResponseObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs bool `json:"invocation_logs" api:"required"`
	// A list of destinations where logs will be exported to.
	Destinations []string `json:"destinations"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether log persistence is enabled for the Worker.
	Persist bool                                                          `json:"persist"`
	JSON    scriptScriptAndVersionSettingGetResponseObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*ScriptScriptAndVersionSettingGetResponseObservabilityLogs) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseObservabilityTraces

type ScriptScriptAndVersionSettingGetResponseObservabilityTraces struct {
	// A list of destinations where traces will be exported to.
	Destinations []string `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled bool `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether trace persistence is enabled for the Worker.
	Persist bool                                                            `json:"persist"`
	JSON    scriptScriptAndVersionSettingGetResponseObservabilityTracesJSON `json:"-"`
}

Trace settings for the Worker.

func (*ScriptScriptAndVersionSettingGetResponseObservabilityTraces) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponsePlacement

type ScriptScriptAndVersionSettingGetResponsePlacement struct {
	// TCP host and port for targeted placement.
	Host string `json:"host"`
	// HTTP hostname for targeted placement.
	Hostname string `json:"hostname"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptScriptAndVersionSettingGetResponsePlacementModeMode `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string `json:"region"`
	// This field can have the runtime type of
	// [[]ScriptScriptAndVersionSettingGetResponsePlacementObjectTarget].
	Target interface{}                                           `json:"target"`
	JSON   scriptScriptAndVersionSettingGetResponsePlacementJSON `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

func (*ScriptScriptAndVersionSettingGetResponsePlacement) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponsePlacementHost

type ScriptScriptAndVersionSettingGetResponsePlacementHost struct {
	// TCP host and port for targeted placement.
	Host string                                                    `json:"host" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponsePlacementHostJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponsePlacementHost) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponsePlacementHostname

type ScriptScriptAndVersionSettingGetResponsePlacementHostname struct {
	// HTTP hostname for targeted placement.
	Hostname string                                                        `json:"hostname" api:"required"`
	JSON     scriptScriptAndVersionSettingGetResponsePlacementHostnameJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponsePlacementHostname) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponsePlacementMode

type ScriptScriptAndVersionSettingGetResponsePlacementMode struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptScriptAndVersionSettingGetResponsePlacementModeMode `json:"mode" api:"required"`
	JSON scriptScriptAndVersionSettingGetResponsePlacementModeJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponsePlacementMode) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponsePlacementModeMode

type ScriptScriptAndVersionSettingGetResponsePlacementModeMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptScriptAndVersionSettingGetResponsePlacementModeModeSmart ScriptScriptAndVersionSettingGetResponsePlacementModeMode = "smart"
)

func (ScriptScriptAndVersionSettingGetResponsePlacementModeMode) IsKnown

type ScriptScriptAndVersionSettingGetResponsePlacementObject

type ScriptScriptAndVersionSettingGetResponsePlacementObject struct {
	// Targeted placement mode.
	Mode ScriptScriptAndVersionSettingGetResponsePlacementObjectMode `json:"mode" api:"required"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string                                                      `json:"region" api:"required"`
	JSON   scriptScriptAndVersionSettingGetResponsePlacementObjectJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponsePlacementObject) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponsePlacementObjectMode

type ScriptScriptAndVersionSettingGetResponsePlacementObjectMode string

Targeted placement mode.

const (
	ScriptScriptAndVersionSettingGetResponsePlacementObjectModeTargeted ScriptScriptAndVersionSettingGetResponsePlacementObjectMode = "targeted"
)

func (ScriptScriptAndVersionSettingGetResponsePlacementObjectMode) IsKnown

type ScriptScriptAndVersionSettingGetResponsePlacementRegion

type ScriptScriptAndVersionSettingGetResponsePlacementRegion struct {
	// Cloud region for targeted placement in format 'provider:region'.
	Region string                                                      `json:"region" api:"required"`
	JSON   scriptScriptAndVersionSettingGetResponsePlacementRegionJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponsePlacementRegion) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseUsageModel

type ScriptScriptAndVersionSettingGetResponseUsageModel string

Usage model for the Worker invocations.

const (
	ScriptScriptAndVersionSettingGetResponseUsageModelStandard ScriptScriptAndVersionSettingGetResponseUsageModel = "standard"
	ScriptScriptAndVersionSettingGetResponseUsageModelBundled  ScriptScriptAndVersionSettingGetResponseUsageModel = "bundled"
	ScriptScriptAndVersionSettingGetResponseUsageModelUnbound  ScriptScriptAndVersionSettingGetResponseUsageModel = "unbound"
)

func (ScriptScriptAndVersionSettingGetResponseUsageModel) IsKnown

type ScriptScriptAndVersionSettingService

type ScriptScriptAndVersionSettingService struct {
	Options []option.RequestOption
}

ScriptScriptAndVersionSettingService 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 NewScriptScriptAndVersionSettingService method instead.

func NewScriptScriptAndVersionSettingService

func NewScriptScriptAndVersionSettingService(opts ...option.RequestOption) (r *ScriptScriptAndVersionSettingService)

NewScriptScriptAndVersionSettingService 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 (*ScriptScriptAndVersionSettingService) Edit

Patch metadata or config, such as bindings or usage model.

func (*ScriptScriptAndVersionSettingService) Get

Get metadata and config, such as bindings or usage model.

type ScriptSearchParams

type ScriptSearchParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Worker ID (also called tag) to search for. Only exact matches are returned.
	ID param.Field[string] `query:"id"`
	// Worker name to search for. Both exact and partial matches are returned.
	Name param.Field[string] `query:"name"`
	// Property to sort results by. Results are sorted in ascending order.
	OrderBy param.Field[ScriptSearchParamsOrderBy] `query:"order_by"`
	// Current page.
	Page param.Field[int64] `query:"page"`
	// Items per page.
	PerPage param.Field[int64] `query:"per_page"`
}

func (ScriptSearchParams) URLQuery

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

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

type ScriptSearchParamsOrderBy

type ScriptSearchParamsOrderBy string

Property to sort results by. Results are sorted in ascending order.

const (
	ScriptSearchParamsOrderByCreatedOn  ScriptSearchParamsOrderBy = "created_on"
	ScriptSearchParamsOrderByModifiedOn ScriptSearchParamsOrderBy = "modified_on"
	ScriptSearchParamsOrderByName       ScriptSearchParamsOrderBy = "name"
)

func (ScriptSearchParamsOrderBy) IsKnown

func (r ScriptSearchParamsOrderBy) IsKnown() bool

type ScriptSearchResponse

type ScriptSearchResponse struct {
	// Identifier.
	ID string `json:"id" api:"required"`
	// When the script was created.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// When the script was last modified.
	ModifiedOn time.Time `json:"modified_on" api:"required" format:"date-time"`
	// Name of the script, used in URLs and route configuration.
	ScriptName string `json:"script_name" api:"required"`
	// Whether the environment is the default environment.
	EnvironmentIsDefault bool `json:"environment_is_default"`
	// Name of the environment.
	EnvironmentName string `json:"environment_name"`
	// Name of the service.
	ServiceName string                   `json:"service_name"`
	JSON        scriptSearchResponseJSON `json:"-"`
}

func (*ScriptSearchResponse) UnmarshalJSON

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

type ScriptSearchResponseEnvelope

type ScriptSearchResponseEnvelope struct {
	Errors   []ScriptSearchResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptSearchResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   []ScriptSearchResponse                 `json:"result" api:"required"`
	// Whether the API call was successful.
	Success    ScriptSearchResponseEnvelopeSuccess    `json:"success" api:"required"`
	ResultInfo ScriptSearchResponseEnvelopeResultInfo `json:"result_info"`
	JSON       scriptSearchResponseEnvelopeJSON       `json:"-"`
}

func (*ScriptSearchResponseEnvelope) UnmarshalJSON

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

type ScriptSearchResponseEnvelopeErrors

type ScriptSearchResponseEnvelopeErrors struct {
	Code             int64                                    `json:"code" api:"required"`
	Message          string                                   `json:"message" api:"required"`
	DocumentationURL string                                   `json:"documentation_url"`
	Source           ScriptSearchResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSearchResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSearchResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptSearchResponseEnvelopeErrorsSource

type ScriptSearchResponseEnvelopeErrorsSource struct {
	Pointer string                                       `json:"pointer"`
	JSON    scriptSearchResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSearchResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptSearchResponseEnvelopeMessages

type ScriptSearchResponseEnvelopeMessages struct {
	Code             int64                                      `json:"code" api:"required"`
	Message          string                                     `json:"message" api:"required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           ScriptSearchResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSearchResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSearchResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptSearchResponseEnvelopeMessagesSource

type ScriptSearchResponseEnvelopeMessagesSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    scriptSearchResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSearchResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptSearchResponseEnvelopeResultInfo

type ScriptSearchResponseEnvelopeResultInfo 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       scriptSearchResponseEnvelopeResultInfoJSON `json:"-"`
}

func (*ScriptSearchResponseEnvelopeResultInfo) UnmarshalJSON

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

type ScriptSearchResponseEnvelopeSuccess

type ScriptSearchResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSearchResponseEnvelopeSuccessTrue ScriptSearchResponseEnvelopeSuccess = true
)

func (ScriptSearchResponseEnvelopeSuccess) IsKnown

type ScriptSecretBulkUpdateParams

type ScriptSecretBulkUpdateParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Map of secret names to secret values:
	//
	// - Set to a secret object to create or update.
	// - Set to `null` to delete.
	// - Omit to leave unchanged.
	Secrets param.Field[map[string]ScriptSecretBulkUpdateParamsSecretsUnion] `json:"secrets"`
	// Optional version tags to apply to the new script version.
	VersionTags param.Field[map[string]interface{}] `json:"version_tags"`
}

func (ScriptSecretBulkUpdateParams) MarshalJSON

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

type ScriptSecretBulkUpdateParamsSecrets

type ScriptSecretBulkUpdateParamsSecrets struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type      param.Field[ScriptSecretBulkUpdateParamsSecretsType] `json:"type" api:"required"`
	Algorithm param.Field[interface{}]                             `json:"algorithm"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[ScriptSecretBulkUpdateParamsSecretsFormat] `json:"format"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string]      `json:"key_base64"`
	KeyJwk    param.Field[interface{}] `json:"key_jwk"`
	// The secret value to use.
	Text   param.Field[string]      `json:"text"`
	Usages param.Field[interface{}] `json:"usages"`
}

A secret value accessible through a binding.

func (ScriptSecretBulkUpdateParamsSecrets) MarshalJSON

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

type ScriptSecretBulkUpdateParamsSecretsFormat

type ScriptSecretBulkUpdateParamsSecretsFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretBulkUpdateParamsSecretsFormatRaw   ScriptSecretBulkUpdateParamsSecretsFormat = "raw"
	ScriptSecretBulkUpdateParamsSecretsFormatPkcs8 ScriptSecretBulkUpdateParamsSecretsFormat = "pkcs8"
	ScriptSecretBulkUpdateParamsSecretsFormatSpki  ScriptSecretBulkUpdateParamsSecretsFormat = "spki"
	ScriptSecretBulkUpdateParamsSecretsFormatJwk   ScriptSecretBulkUpdateParamsSecretsFormat = "jwk"
)

func (ScriptSecretBulkUpdateParamsSecretsFormat) IsKnown

type ScriptSecretBulkUpdateParamsSecretsType

type ScriptSecretBulkUpdateParamsSecretsType string

The kind of resource that the binding provides.

const (
	ScriptSecretBulkUpdateParamsSecretsTypeSecretText ScriptSecretBulkUpdateParamsSecretsType = "secret_text"
	ScriptSecretBulkUpdateParamsSecretsTypeSecretKey  ScriptSecretBulkUpdateParamsSecretsType = "secret_key"
)

func (ScriptSecretBulkUpdateParamsSecretsType) IsKnown

type ScriptSecretBulkUpdateParamsSecretsUnion

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

A secret value accessible through a binding.

Satisfied by workers.ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretText, workers.ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKey, ScriptSecretBulkUpdateParamsSecrets.

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKey

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm param.Field[interface{}] `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormat] `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyType] `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages param.Field[[]ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage] `json:"usages" api:"required"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string] `json:"key_base64"`
	// Key data in
	// [JSON Web Key](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key)
	// format. Required if `format` is "jwk".
	KeyJwk param.Field[interface{}] `json:"key_jwk"`
}

func (ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKey) MarshalJSON

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormat

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormatRaw   ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormat = "raw"
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormatPkcs8 ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormatSpki  ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormat = "spki"
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormatJwk   ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyType

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyTypeSecretKey ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyType) IsKnown

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage string
const (
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsageEncrypt    ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsageDecrypt    ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsageSign       ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage = "sign"
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsageVerify     ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage = "verify"
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsageDeriveKey  ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsageDeriveBits ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsageWrapKey    ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretText

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The secret value to use.
	Text param.Field[string] `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretTextType] `json:"type" api:"required"`
}

func (ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretText) MarshalJSON

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretTextType

type ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretTextTypeSecretText ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptSecretBulkUpdateParamsSecretsWorkersBindingKindSecretTextType) IsKnown

type ScriptSecretBulkUpdateResponse

type ScriptSecretBulkUpdateResponse map[string]ScriptSecretBulkUpdateResponseItem

type ScriptSecretBulkUpdateResponseEnvelope

type ScriptSecretBulkUpdateResponseEnvelope struct {
	Errors   []ScriptSecretBulkUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptSecretBulkUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success ScriptSecretBulkUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	// Map of secret names to secret metadata for resulting secrets.
	Result ScriptSecretBulkUpdateResponse             `json:"result"`
	JSON   scriptSecretBulkUpdateResponseEnvelopeJSON `json:"-"`
}

func (*ScriptSecretBulkUpdateResponseEnvelope) UnmarshalJSON

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

type ScriptSecretBulkUpdateResponseEnvelopeErrors

type ScriptSecretBulkUpdateResponseEnvelopeErrors struct {
	Code             int64                                              `json:"code" api:"required"`
	Message          string                                             `json:"message" api:"required"`
	DocumentationURL string                                             `json:"documentation_url"`
	Source           ScriptSecretBulkUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSecretBulkUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSecretBulkUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptSecretBulkUpdateResponseEnvelopeErrorsSource

type ScriptSecretBulkUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                                 `json:"pointer"`
	JSON    scriptSecretBulkUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSecretBulkUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptSecretBulkUpdateResponseEnvelopeMessages

type ScriptSecretBulkUpdateResponseEnvelopeMessages struct {
	Code             int64                                                `json:"code" api:"required"`
	Message          string                                               `json:"message" api:"required"`
	DocumentationURL string                                               `json:"documentation_url"`
	Source           ScriptSecretBulkUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSecretBulkUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSecretBulkUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptSecretBulkUpdateResponseEnvelopeMessagesSource

type ScriptSecretBulkUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                                   `json:"pointer"`
	JSON    scriptSecretBulkUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSecretBulkUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptSecretBulkUpdateResponseEnvelopeSuccess

type ScriptSecretBulkUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSecretBulkUpdateResponseEnvelopeSuccessTrue ScriptSecretBulkUpdateResponseEnvelopeSuccess = true
)

func (ScriptSecretBulkUpdateResponseEnvelopeSuccess) IsKnown

type ScriptSecretBulkUpdateResponseItem

type ScriptSecretBulkUpdateResponseItem struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretBulkUpdateResponseItemType `json:"type" api:"required"`
	// This field can have the runtime type of [interface{}].
	Algorithm interface{} `json:"algorithm"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretBulkUpdateResponseItemFormat `json:"format"`
	// This field can have the runtime type of [interface{}].
	KeyJwk interface{} `json:"key_jwk"`
	// This field can have the runtime type of
	// [[]ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage].
	Usages interface{}                            `json:"usages"`
	JSON   scriptSecretBulkUpdateResponseItemJSON `json:"-"`
	// contains filtered or unexported fields
}

A secret value accessible through a binding.

func (ScriptSecretBulkUpdateResponseItem) AsUnion

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

Possible runtime types of the union are ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretText, ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKey.

func (*ScriptSecretBulkUpdateResponseItem) UnmarshalJSON

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

type ScriptSecretBulkUpdateResponseItemFormat

type ScriptSecretBulkUpdateResponseItemFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretBulkUpdateResponseItemFormatRaw   ScriptSecretBulkUpdateResponseItemFormat = "raw"
	ScriptSecretBulkUpdateResponseItemFormatPkcs8 ScriptSecretBulkUpdateResponseItemFormat = "pkcs8"
	ScriptSecretBulkUpdateResponseItemFormatSpki  ScriptSecretBulkUpdateResponseItemFormat = "spki"
	ScriptSecretBulkUpdateResponseItemFormatJwk   ScriptSecretBulkUpdateResponseItemFormat = "jwk"
)

func (ScriptSecretBulkUpdateResponseItemFormat) IsKnown

type ScriptSecretBulkUpdateResponseItemType

type ScriptSecretBulkUpdateResponseItemType string

The kind of resource that the binding provides.

const (
	ScriptSecretBulkUpdateResponseItemTypeSecretText ScriptSecretBulkUpdateResponseItemType = "secret_text"
	ScriptSecretBulkUpdateResponseItemTypeSecretKey  ScriptSecretBulkUpdateResponseItemType = "secret_key"
)

func (ScriptSecretBulkUpdateResponseItemType) IsKnown

type ScriptSecretBulkUpdateResponseItemUnion

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

A secret value accessible through a binding.

Union satisfied by ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretText or ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKey.

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKey

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm interface{} `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormat `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyType `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage `json:"usages" api:"required"`
	JSON   scriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyJSON    `json:"-"`
}

func (*ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKey) UnmarshalJSON

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormat

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormatRaw   ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormat = "raw"
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormatPkcs8 ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormatSpki  ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormat = "spki"
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormatJwk   ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyType

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyTypeSecretKey ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyType) IsKnown

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage string
const (
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsageEncrypt    ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsageDecrypt    ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsageSign       ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage = "sign"
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsageVerify     ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage = "verify"
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsageDeriveKey  ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsageDeriveBits ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsageWrapKey    ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretText

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretTextType `json:"type" api:"required"`
	JSON scriptSecretBulkUpdateResponseItemWorkersBindingKindSecretTextJSON `json:"-"`
}

func (*ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretText) UnmarshalJSON

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretTextType

type ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretTextTypeSecretText ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptSecretBulkUpdateResponseItemWorkersBindingKindSecretTextType) IsKnown

type ScriptSecretDeleteParams

type ScriptSecretDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Flag that indicates whether the secret name is URL encoded.
	URLEncoded param.Field[bool] `query:"url_encoded"`
}

func (ScriptSecretDeleteParams) URLQuery

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

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

type ScriptSecretDeleteResponse

type ScriptSecretDeleteResponse = interface{}

type ScriptSecretDeleteResponseEnvelope

type ScriptSecretDeleteResponseEnvelope struct {
	Errors   []ScriptSecretDeleteResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptSecretDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success ScriptSecretDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  ScriptSecretDeleteResponse                `json:"result" api:"nullable"`
	JSON    scriptSecretDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSecretDeleteResponseEnvelope) UnmarshalJSON

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

type ScriptSecretDeleteResponseEnvelopeErrors

type ScriptSecretDeleteResponseEnvelopeErrors struct {
	Code             int64                                          `json:"code" api:"required"`
	Message          string                                         `json:"message" api:"required"`
	DocumentationURL string                                         `json:"documentation_url"`
	Source           ScriptSecretDeleteResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSecretDeleteResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSecretDeleteResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptSecretDeleteResponseEnvelopeErrorsSource

type ScriptSecretDeleteResponseEnvelopeErrorsSource struct {
	Pointer string                                             `json:"pointer"`
	JSON    scriptSecretDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSecretDeleteResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptSecretDeleteResponseEnvelopeMessages

type ScriptSecretDeleteResponseEnvelopeMessages struct {
	Code             int64                                            `json:"code" api:"required"`
	Message          string                                           `json:"message" api:"required"`
	DocumentationURL string                                           `json:"documentation_url"`
	Source           ScriptSecretDeleteResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSecretDeleteResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSecretDeleteResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptSecretDeleteResponseEnvelopeMessagesSource

type ScriptSecretDeleteResponseEnvelopeMessagesSource struct {
	Pointer string                                               `json:"pointer"`
	JSON    scriptSecretDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSecretDeleteResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptSecretDeleteResponseEnvelopeSuccess

type ScriptSecretDeleteResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSecretDeleteResponseEnvelopeSuccessTrue ScriptSecretDeleteResponseEnvelopeSuccess = true
)

func (ScriptSecretDeleteResponseEnvelopeSuccess) IsKnown

type ScriptSecretGetParams

type ScriptSecretGetParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Flag that indicates whether the secret name is URL encoded.
	URLEncoded param.Field[bool] `query:"url_encoded"`
}

func (ScriptSecretGetParams) URLQuery

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

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

type ScriptSecretGetResponse

type ScriptSecretGetResponse struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretGetResponseType `json:"type" api:"required"`
	// This field can have the runtime type of [interface{}].
	Algorithm interface{} `json:"algorithm"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretGetResponseFormat `json:"format"`
	// This field can have the runtime type of [interface{}].
	KeyJwk interface{} `json:"key_jwk"`
	// This field can have the runtime type of
	// [[]ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage].
	Usages interface{}                 `json:"usages"`
	JSON   scriptSecretGetResponseJSON `json:"-"`
	// contains filtered or unexported fields
}

A secret value accessible through a binding.

func (ScriptSecretGetResponse) AsUnion

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

Possible runtime types of the union are ScriptSecretGetResponseWorkersBindingKindSecretText, ScriptSecretGetResponseWorkersBindingKindSecretKey.

func (*ScriptSecretGetResponse) UnmarshalJSON

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

type ScriptSecretGetResponseEnvelope

type ScriptSecretGetResponseEnvelope struct {
	Errors   []ScriptSecretGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptSecretGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success ScriptSecretGetResponseEnvelopeSuccess `json:"success" api:"required"`
	// A secret value accessible through a binding.
	Result ScriptSecretGetResponse             `json:"result"`
	JSON   scriptSecretGetResponseEnvelopeJSON `json:"-"`
}

func (*ScriptSecretGetResponseEnvelope) UnmarshalJSON

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

type ScriptSecretGetResponseEnvelopeErrors

type ScriptSecretGetResponseEnvelopeErrors struct {
	Code             int64                                       `json:"code" api:"required"`
	Message          string                                      `json:"message" api:"required"`
	DocumentationURL string                                      `json:"documentation_url"`
	Source           ScriptSecretGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSecretGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSecretGetResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptSecretGetResponseEnvelopeErrorsSource

type ScriptSecretGetResponseEnvelopeErrorsSource struct {
	Pointer string                                          `json:"pointer"`
	JSON    scriptSecretGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSecretGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptSecretGetResponseEnvelopeMessages

type ScriptSecretGetResponseEnvelopeMessages struct {
	Code             int64                                         `json:"code" api:"required"`
	Message          string                                        `json:"message" api:"required"`
	DocumentationURL string                                        `json:"documentation_url"`
	Source           ScriptSecretGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSecretGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSecretGetResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptSecretGetResponseEnvelopeMessagesSource

type ScriptSecretGetResponseEnvelopeMessagesSource struct {
	Pointer string                                            `json:"pointer"`
	JSON    scriptSecretGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSecretGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptSecretGetResponseEnvelopeSuccess

type ScriptSecretGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSecretGetResponseEnvelopeSuccessTrue ScriptSecretGetResponseEnvelopeSuccess = true
)

func (ScriptSecretGetResponseEnvelopeSuccess) IsKnown

type ScriptSecretGetResponseFormat

type ScriptSecretGetResponseFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretGetResponseFormatRaw   ScriptSecretGetResponseFormat = "raw"
	ScriptSecretGetResponseFormatPkcs8 ScriptSecretGetResponseFormat = "pkcs8"
	ScriptSecretGetResponseFormatSpki  ScriptSecretGetResponseFormat = "spki"
	ScriptSecretGetResponseFormatJwk   ScriptSecretGetResponseFormat = "jwk"
)

func (ScriptSecretGetResponseFormat) IsKnown

func (r ScriptSecretGetResponseFormat) IsKnown() bool

type ScriptSecretGetResponseType

type ScriptSecretGetResponseType string

The kind of resource that the binding provides.

const (
	ScriptSecretGetResponseTypeSecretText ScriptSecretGetResponseType = "secret_text"
	ScriptSecretGetResponseTypeSecretKey  ScriptSecretGetResponseType = "secret_key"
)

func (ScriptSecretGetResponseType) IsKnown

func (r ScriptSecretGetResponseType) IsKnown() bool

type ScriptSecretGetResponseUnion

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

A secret value accessible through a binding.

Union satisfied by ScriptSecretGetResponseWorkersBindingKindSecretText or ScriptSecretGetResponseWorkersBindingKindSecretKey.

type ScriptSecretGetResponseWorkersBindingKindSecretKey

type ScriptSecretGetResponseWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm interface{} `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretGetResponseWorkersBindingKindSecretKeyFormat `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretGetResponseWorkersBindingKindSecretKeyType `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage `json:"usages" api:"required"`
	JSON   scriptSecretGetResponseWorkersBindingKindSecretKeyJSON    `json:"-"`
}

func (*ScriptSecretGetResponseWorkersBindingKindSecretKey) UnmarshalJSON

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

type ScriptSecretGetResponseWorkersBindingKindSecretKeyFormat

type ScriptSecretGetResponseWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretGetResponseWorkersBindingKindSecretKeyFormatRaw   ScriptSecretGetResponseWorkersBindingKindSecretKeyFormat = "raw"
	ScriptSecretGetResponseWorkersBindingKindSecretKeyFormatPkcs8 ScriptSecretGetResponseWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptSecretGetResponseWorkersBindingKindSecretKeyFormatSpki  ScriptSecretGetResponseWorkersBindingKindSecretKeyFormat = "spki"
	ScriptSecretGetResponseWorkersBindingKindSecretKeyFormatJwk   ScriptSecretGetResponseWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptSecretGetResponseWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptSecretGetResponseWorkersBindingKindSecretKeyType

type ScriptSecretGetResponseWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptSecretGetResponseWorkersBindingKindSecretKeyTypeSecretKey ScriptSecretGetResponseWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptSecretGetResponseWorkersBindingKindSecretKeyType) IsKnown

type ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage

type ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage string
const (
	ScriptSecretGetResponseWorkersBindingKindSecretKeyUsageEncrypt    ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptSecretGetResponseWorkersBindingKindSecretKeyUsageDecrypt    ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptSecretGetResponseWorkersBindingKindSecretKeyUsageSign       ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage = "sign"
	ScriptSecretGetResponseWorkersBindingKindSecretKeyUsageVerify     ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage = "verify"
	ScriptSecretGetResponseWorkersBindingKindSecretKeyUsageDeriveKey  ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptSecretGetResponseWorkersBindingKindSecretKeyUsageDeriveBits ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptSecretGetResponseWorkersBindingKindSecretKeyUsageWrapKey    ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptSecretGetResponseWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptSecretGetResponseWorkersBindingKindSecretText

type ScriptSecretGetResponseWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretGetResponseWorkersBindingKindSecretTextType `json:"type" api:"required"`
	JSON scriptSecretGetResponseWorkersBindingKindSecretTextJSON `json:"-"`
}

func (*ScriptSecretGetResponseWorkersBindingKindSecretText) UnmarshalJSON

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

type ScriptSecretGetResponseWorkersBindingKindSecretTextType

type ScriptSecretGetResponseWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptSecretGetResponseWorkersBindingKindSecretTextTypeSecretText ScriptSecretGetResponseWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptSecretGetResponseWorkersBindingKindSecretTextType) IsKnown

type ScriptSecretListParams

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

type ScriptSecretListResponse

type ScriptSecretListResponse struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretListResponseType `json:"type" api:"required"`
	// This field can have the runtime type of [interface{}].
	Algorithm interface{} `json:"algorithm"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretListResponseFormat `json:"format"`
	// This field can have the runtime type of [interface{}].
	KeyJwk interface{} `json:"key_jwk"`
	// This field can have the runtime type of
	// [[]ScriptSecretListResponseWorkersBindingKindSecretKeyUsage].
	Usages interface{}                  `json:"usages"`
	JSON   scriptSecretListResponseJSON `json:"-"`
	// contains filtered or unexported fields
}

A secret value accessible through a binding.

func (ScriptSecretListResponse) AsUnion

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

Possible runtime types of the union are ScriptSecretListResponseWorkersBindingKindSecretText, ScriptSecretListResponseWorkersBindingKindSecretKey.

func (*ScriptSecretListResponse) UnmarshalJSON

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

type ScriptSecretListResponseFormat

type ScriptSecretListResponseFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretListResponseFormatRaw   ScriptSecretListResponseFormat = "raw"
	ScriptSecretListResponseFormatPkcs8 ScriptSecretListResponseFormat = "pkcs8"
	ScriptSecretListResponseFormatSpki  ScriptSecretListResponseFormat = "spki"
	ScriptSecretListResponseFormatJwk   ScriptSecretListResponseFormat = "jwk"
)

func (ScriptSecretListResponseFormat) IsKnown

type ScriptSecretListResponseType

type ScriptSecretListResponseType string

The kind of resource that the binding provides.

const (
	ScriptSecretListResponseTypeSecretText ScriptSecretListResponseType = "secret_text"
	ScriptSecretListResponseTypeSecretKey  ScriptSecretListResponseType = "secret_key"
)

func (ScriptSecretListResponseType) IsKnown

func (r ScriptSecretListResponseType) IsKnown() bool

type ScriptSecretListResponseUnion

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

A secret value accessible through a binding.

Union satisfied by ScriptSecretListResponseWorkersBindingKindSecretText or ScriptSecretListResponseWorkersBindingKindSecretKey.

type ScriptSecretListResponseWorkersBindingKindSecretKey

type ScriptSecretListResponseWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm interface{} `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretListResponseWorkersBindingKindSecretKeyFormat `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretListResponseWorkersBindingKindSecretKeyType `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptSecretListResponseWorkersBindingKindSecretKeyUsage `json:"usages" api:"required"`
	JSON   scriptSecretListResponseWorkersBindingKindSecretKeyJSON    `json:"-"`
}

func (*ScriptSecretListResponseWorkersBindingKindSecretKey) UnmarshalJSON

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

type ScriptSecretListResponseWorkersBindingKindSecretKeyFormat

type ScriptSecretListResponseWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretListResponseWorkersBindingKindSecretKeyFormatRaw   ScriptSecretListResponseWorkersBindingKindSecretKeyFormat = "raw"
	ScriptSecretListResponseWorkersBindingKindSecretKeyFormatPkcs8 ScriptSecretListResponseWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptSecretListResponseWorkersBindingKindSecretKeyFormatSpki  ScriptSecretListResponseWorkersBindingKindSecretKeyFormat = "spki"
	ScriptSecretListResponseWorkersBindingKindSecretKeyFormatJwk   ScriptSecretListResponseWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptSecretListResponseWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptSecretListResponseWorkersBindingKindSecretKeyType

type ScriptSecretListResponseWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptSecretListResponseWorkersBindingKindSecretKeyTypeSecretKey ScriptSecretListResponseWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptSecretListResponseWorkersBindingKindSecretKeyType) IsKnown

type ScriptSecretListResponseWorkersBindingKindSecretKeyUsage

type ScriptSecretListResponseWorkersBindingKindSecretKeyUsage string
const (
	ScriptSecretListResponseWorkersBindingKindSecretKeyUsageEncrypt    ScriptSecretListResponseWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptSecretListResponseWorkersBindingKindSecretKeyUsageDecrypt    ScriptSecretListResponseWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptSecretListResponseWorkersBindingKindSecretKeyUsageSign       ScriptSecretListResponseWorkersBindingKindSecretKeyUsage = "sign"
	ScriptSecretListResponseWorkersBindingKindSecretKeyUsageVerify     ScriptSecretListResponseWorkersBindingKindSecretKeyUsage = "verify"
	ScriptSecretListResponseWorkersBindingKindSecretKeyUsageDeriveKey  ScriptSecretListResponseWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptSecretListResponseWorkersBindingKindSecretKeyUsageDeriveBits ScriptSecretListResponseWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptSecretListResponseWorkersBindingKindSecretKeyUsageWrapKey    ScriptSecretListResponseWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptSecretListResponseWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptSecretListResponseWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptSecretListResponseWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptSecretListResponseWorkersBindingKindSecretText

type ScriptSecretListResponseWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretListResponseWorkersBindingKindSecretTextType `json:"type" api:"required"`
	JSON scriptSecretListResponseWorkersBindingKindSecretTextJSON `json:"-"`
}

func (*ScriptSecretListResponseWorkersBindingKindSecretText) UnmarshalJSON

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

type ScriptSecretListResponseWorkersBindingKindSecretTextType

type ScriptSecretListResponseWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptSecretListResponseWorkersBindingKindSecretTextTypeSecretText ScriptSecretListResponseWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptSecretListResponseWorkersBindingKindSecretTextType) IsKnown

type ScriptSecretService

type ScriptSecretService struct {
	Options []option.RequestOption
}

ScriptSecretService 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 NewScriptSecretService method instead.

func NewScriptSecretService

func NewScriptSecretService(opts ...option.RequestOption) (r *ScriptSecretService)

NewScriptSecretService 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 (*ScriptSecretService) BulkUpdate

Create, update, or delete multiple secrets on a script in a single operation using JSON Merge Patch (RFC 7396).

Usage:

- To create or update a secret, set its value to a secret object. - To delete a secret, set its value to `null`. - Secrets not included in the request are left unchanged.

func (*ScriptSecretService) Delete

func (r *ScriptSecretService) Delete(ctx context.Context, scriptName string, secretName string, params ScriptSecretDeleteParams, opts ...option.RequestOption) (res *ScriptSecretDeleteResponse, err error)

Remove a secret from a script.

func (*ScriptSecretService) Get

func (r *ScriptSecretService) Get(ctx context.Context, scriptName string, secretName string, params ScriptSecretGetParams, opts ...option.RequestOption) (res *ScriptSecretGetResponse, err error)

Get a given secret binding (value omitted) on a script.

func (*ScriptSecretService) List

List secrets bound to a script.

func (*ScriptSecretService) ListAutoPaging

List secrets bound to a script.

func (*ScriptSecretService) Update

Add a secret to a script.

type ScriptSecretUpdateParams

type ScriptSecretUpdateParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// A secret value accessible through a binding.
	Body ScriptSecretUpdateParamsBodyUnion `json:"body" api:"required"`
}

func (ScriptSecretUpdateParams) MarshalJSON

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

type ScriptSecretUpdateParamsBody

type ScriptSecretUpdateParamsBody struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type      param.Field[ScriptSecretUpdateParamsBodyType] `json:"type" api:"required"`
	Algorithm param.Field[interface{}]                      `json:"algorithm"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[ScriptSecretUpdateParamsBodyFormat] `json:"format"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string]      `json:"key_base64"`
	KeyJwk    param.Field[interface{}] `json:"key_jwk"`
	// The secret value to use.
	Text   param.Field[string]      `json:"text"`
	Usages param.Field[interface{}] `json:"usages"`
}

A secret value accessible through a binding.

func (ScriptSecretUpdateParamsBody) MarshalJSON

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

type ScriptSecretUpdateParamsBodyFormat

type ScriptSecretUpdateParamsBodyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretUpdateParamsBodyFormatRaw   ScriptSecretUpdateParamsBodyFormat = "raw"
	ScriptSecretUpdateParamsBodyFormatPkcs8 ScriptSecretUpdateParamsBodyFormat = "pkcs8"
	ScriptSecretUpdateParamsBodyFormatSpki  ScriptSecretUpdateParamsBodyFormat = "spki"
	ScriptSecretUpdateParamsBodyFormatJwk   ScriptSecretUpdateParamsBodyFormat = "jwk"
)

func (ScriptSecretUpdateParamsBodyFormat) IsKnown

type ScriptSecretUpdateParamsBodyType

type ScriptSecretUpdateParamsBodyType string

The kind of resource that the binding provides.

const (
	ScriptSecretUpdateParamsBodyTypeSecretText ScriptSecretUpdateParamsBodyType = "secret_text"
	ScriptSecretUpdateParamsBodyTypeSecretKey  ScriptSecretUpdateParamsBodyType = "secret_key"
)

func (ScriptSecretUpdateParamsBodyType) IsKnown

type ScriptSecretUpdateParamsBodyUnion

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

A secret value accessible through a binding.

Satisfied by workers.ScriptSecretUpdateParamsBodyWorkersBindingKindSecretText, workers.ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKey, ScriptSecretUpdateParamsBody.

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKey

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm param.Field[interface{}] `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormat] `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyType] `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages param.Field[[]ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage] `json:"usages" api:"required"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string] `json:"key_base64"`
	// Key data in
	// [JSON Web Key](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key)
	// format. Required if `format` is "jwk".
	KeyJwk param.Field[interface{}] `json:"key_jwk"`
}

func (ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKey) MarshalJSON

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormat

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormatRaw   ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormat = "raw"
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormatPkcs8 ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormatSpki  ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormat = "spki"
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormatJwk   ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyType

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyTypeSecretKey ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyType) IsKnown

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage string
const (
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsageEncrypt    ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsageDecrypt    ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsageSign       ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage = "sign"
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsageVerify     ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage = "verify"
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsageDeriveKey  ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsageDeriveBits ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsageWrapKey    ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretText

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The secret value to use.
	Text param.Field[string] `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptSecretUpdateParamsBodyWorkersBindingKindSecretTextType] `json:"type" api:"required"`
}

func (ScriptSecretUpdateParamsBodyWorkersBindingKindSecretText) MarshalJSON

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretTextType

type ScriptSecretUpdateParamsBodyWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptSecretUpdateParamsBodyWorkersBindingKindSecretTextTypeSecretText ScriptSecretUpdateParamsBodyWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptSecretUpdateParamsBodyWorkersBindingKindSecretTextType) IsKnown

type ScriptSecretUpdateResponse

type ScriptSecretUpdateResponse struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretUpdateResponseType `json:"type" api:"required"`
	// This field can have the runtime type of [interface{}].
	Algorithm interface{} `json:"algorithm"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretUpdateResponseFormat `json:"format"`
	// This field can have the runtime type of [interface{}].
	KeyJwk interface{} `json:"key_jwk"`
	// This field can have the runtime type of
	// [[]ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage].
	Usages interface{}                    `json:"usages"`
	JSON   scriptSecretUpdateResponseJSON `json:"-"`
	// contains filtered or unexported fields
}

A secret value accessible through a binding.

func (ScriptSecretUpdateResponse) AsUnion

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

Possible runtime types of the union are ScriptSecretUpdateResponseWorkersBindingKindSecretText, ScriptSecretUpdateResponseWorkersBindingKindSecretKey.

func (*ScriptSecretUpdateResponse) UnmarshalJSON

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

type ScriptSecretUpdateResponseEnvelope

type ScriptSecretUpdateResponseEnvelope struct {
	Errors   []ScriptSecretUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptSecretUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success ScriptSecretUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	// A secret value accessible through a binding.
	Result ScriptSecretUpdateResponse             `json:"result"`
	JSON   scriptSecretUpdateResponseEnvelopeJSON `json:"-"`
}

func (*ScriptSecretUpdateResponseEnvelope) UnmarshalJSON

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

type ScriptSecretUpdateResponseEnvelopeErrors

type ScriptSecretUpdateResponseEnvelopeErrors struct {
	Code             int64                                          `json:"code" api:"required"`
	Message          string                                         `json:"message" api:"required"`
	DocumentationURL string                                         `json:"documentation_url"`
	Source           ScriptSecretUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSecretUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSecretUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptSecretUpdateResponseEnvelopeErrorsSource

type ScriptSecretUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                             `json:"pointer"`
	JSON    scriptSecretUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSecretUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptSecretUpdateResponseEnvelopeMessages

type ScriptSecretUpdateResponseEnvelopeMessages struct {
	Code             int64                                            `json:"code" api:"required"`
	Message          string                                           `json:"message" api:"required"`
	DocumentationURL string                                           `json:"documentation_url"`
	Source           ScriptSecretUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSecretUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSecretUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptSecretUpdateResponseEnvelopeMessagesSource

type ScriptSecretUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                               `json:"pointer"`
	JSON    scriptSecretUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSecretUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptSecretUpdateResponseEnvelopeSuccess

type ScriptSecretUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSecretUpdateResponseEnvelopeSuccessTrue ScriptSecretUpdateResponseEnvelopeSuccess = true
)

func (ScriptSecretUpdateResponseEnvelopeSuccess) IsKnown

type ScriptSecretUpdateResponseFormat

type ScriptSecretUpdateResponseFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretUpdateResponseFormatRaw   ScriptSecretUpdateResponseFormat = "raw"
	ScriptSecretUpdateResponseFormatPkcs8 ScriptSecretUpdateResponseFormat = "pkcs8"
	ScriptSecretUpdateResponseFormatSpki  ScriptSecretUpdateResponseFormat = "spki"
	ScriptSecretUpdateResponseFormatJwk   ScriptSecretUpdateResponseFormat = "jwk"
)

func (ScriptSecretUpdateResponseFormat) IsKnown

type ScriptSecretUpdateResponseType

type ScriptSecretUpdateResponseType string

The kind of resource that the binding provides.

const (
	ScriptSecretUpdateResponseTypeSecretText ScriptSecretUpdateResponseType = "secret_text"
	ScriptSecretUpdateResponseTypeSecretKey  ScriptSecretUpdateResponseType = "secret_key"
)

func (ScriptSecretUpdateResponseType) IsKnown

type ScriptSecretUpdateResponseUnion

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

A secret value accessible through a binding.

Union satisfied by ScriptSecretUpdateResponseWorkersBindingKindSecretText or ScriptSecretUpdateResponseWorkersBindingKindSecretKey.

type ScriptSecretUpdateResponseWorkersBindingKindSecretKey

type ScriptSecretUpdateResponseWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm interface{} `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormat `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretUpdateResponseWorkersBindingKindSecretKeyType `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage `json:"usages" api:"required"`
	JSON   scriptSecretUpdateResponseWorkersBindingKindSecretKeyJSON    `json:"-"`
}

func (*ScriptSecretUpdateResponseWorkersBindingKindSecretKey) UnmarshalJSON

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

type ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormat

type ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormatRaw   ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormat = "raw"
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormatPkcs8 ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormatSpki  ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormat = "spki"
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormatJwk   ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptSecretUpdateResponseWorkersBindingKindSecretKeyType

type ScriptSecretUpdateResponseWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyTypeSecretKey ScriptSecretUpdateResponseWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptSecretUpdateResponseWorkersBindingKindSecretKeyType) IsKnown

type ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage

type ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage string
const (
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsageEncrypt    ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsageDecrypt    ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsageSign       ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage = "sign"
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsageVerify     ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage = "verify"
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsageDeriveKey  ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsageDeriveBits ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsageWrapKey    ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptSecretUpdateResponseWorkersBindingKindSecretText

type ScriptSecretUpdateResponseWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretUpdateResponseWorkersBindingKindSecretTextType `json:"type" api:"required"`
	JSON scriptSecretUpdateResponseWorkersBindingKindSecretTextJSON `json:"-"`
}

func (*ScriptSecretUpdateResponseWorkersBindingKindSecretText) UnmarshalJSON

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

type ScriptSecretUpdateResponseWorkersBindingKindSecretTextType

type ScriptSecretUpdateResponseWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptSecretUpdateResponseWorkersBindingKindSecretTextTypeSecretText ScriptSecretUpdateResponseWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptSecretUpdateResponseWorkersBindingKindSecretTextType) IsKnown

type ScriptService

type ScriptService struct {
	Options                  []option.RequestOption
	Assets                   *ScriptAssetService
	Subdomain                *ScriptSubdomainService
	Schedules                *ScriptScheduleService
	Tail                     *ScriptTailService
	Content                  *ScriptContentService
	Settings                 *ScriptSettingService
	Deployments              *ScriptDeploymentService
	Versions                 *ScriptVersionService
	Secrets                  *ScriptSecretService
	ScriptAndVersionSettings *ScriptScriptAndVersionSettingService
}

ScriptService 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 NewScriptService method instead.

func NewScriptService

func NewScriptService(opts ...option.RequestOption) (r *ScriptService)

NewScriptService 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 (*ScriptService) Delete

func (r *ScriptService) Delete(ctx context.Context, scriptName string, params ScriptDeleteParams, opts ...option.RequestOption) (res *ScriptDeleteResponse, err error)

Delete your worker. This call has no response body on a successful delete.

func (*ScriptService) Get

func (r *ScriptService) Get(ctx context.Context, scriptName string, query ScriptGetParams, opts ...option.RequestOption) (res *string, err error)

Fetch raw script content for your worker. Note this is the original script content, not JSON encoded.

func (*ScriptService) List

Fetch a list of uploaded workers.

func (*ScriptService) ListAutoPaging

Fetch a list of uploaded workers.

func (*ScriptService) Search

func (r *ScriptService) Search(ctx context.Context, params ScriptSearchParams, opts ...option.RequestOption) (res *[]ScriptSearchResponse, err error)

Search for Workers in an account.

func (*ScriptService) Update

func (r *ScriptService) Update(ctx context.Context, scriptName string, params ScriptUpdateParams, opts ...option.RequestOption) (res *ScriptUpdateResponse, err error)

Upload a worker module. You can find more about the multipart metadata on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/.

type ScriptSetting

type ScriptSetting struct {
	// Whether Logpush is turned on for the Worker.
	Logpush bool `json:"logpush"`
	// Observability settings for the Worker.
	Observability ScriptSettingObservability `json:"observability" api:"nullable"`
	// Tags associated with the Worker.
	Tags []string `json:"tags" api:"nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript  `json:"tail_consumers" api:"nullable"`
	JSON          scriptSettingJSON `json:"-"`
}

func (*ScriptSetting) UnmarshalJSON

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

type ScriptSettingEditParams

type ScriptSettingEditParams struct {
	// Identifier.
	AccountID     param.Field[string] `path:"account_id" api:"required"`
	ScriptSetting ScriptSettingParam  `json:"script_setting" api:"required"`
}

func (ScriptSettingEditParams) MarshalJSON

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

type ScriptSettingEditResponseEnvelope

type ScriptSettingEditResponseEnvelope struct {
	Errors   []ScriptSettingEditResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptSettingEditResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptSetting                               `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptSettingEditResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptSettingEditResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSettingEditResponseEnvelope) UnmarshalJSON

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

type ScriptSettingEditResponseEnvelopeErrors

type ScriptSettingEditResponseEnvelopeErrors struct {
	Code             int64                                         `json:"code" api:"required"`
	Message          string                                        `json:"message" api:"required"`
	DocumentationURL string                                        `json:"documentation_url"`
	Source           ScriptSettingEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSettingEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSettingEditResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptSettingEditResponseEnvelopeErrorsSource

type ScriptSettingEditResponseEnvelopeErrorsSource struct {
	Pointer string                                            `json:"pointer"`
	JSON    scriptSettingEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSettingEditResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptSettingEditResponseEnvelopeMessages

type ScriptSettingEditResponseEnvelopeMessages struct {
	Code             int64                                           `json:"code" api:"required"`
	Message          string                                          `json:"message" api:"required"`
	DocumentationURL string                                          `json:"documentation_url"`
	Source           ScriptSettingEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSettingEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSettingEditResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptSettingEditResponseEnvelopeMessagesSource

type ScriptSettingEditResponseEnvelopeMessagesSource struct {
	Pointer string                                              `json:"pointer"`
	JSON    scriptSettingEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSettingEditResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptSettingEditResponseEnvelopeSuccess

type ScriptSettingEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSettingEditResponseEnvelopeSuccessTrue ScriptSettingEditResponseEnvelopeSuccess = true
)

func (ScriptSettingEditResponseEnvelopeSuccess) IsKnown

type ScriptSettingGetParams

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

type ScriptSettingGetResponseEnvelope

type ScriptSettingGetResponseEnvelope struct {
	Errors   []ScriptSettingGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptSettingGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptSetting                              `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptSettingGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptSettingGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSettingGetResponseEnvelope) UnmarshalJSON

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

type ScriptSettingGetResponseEnvelopeErrors

type ScriptSettingGetResponseEnvelopeErrors struct {
	Code             int64                                        `json:"code" api:"required"`
	Message          string                                       `json:"message" api:"required"`
	DocumentationURL string                                       `json:"documentation_url"`
	Source           ScriptSettingGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSettingGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSettingGetResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptSettingGetResponseEnvelopeErrorsSource

type ScriptSettingGetResponseEnvelopeErrorsSource struct {
	Pointer string                                           `json:"pointer"`
	JSON    scriptSettingGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSettingGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptSettingGetResponseEnvelopeMessages

type ScriptSettingGetResponseEnvelopeMessages struct {
	Code             int64                                          `json:"code" api:"required"`
	Message          string                                         `json:"message" api:"required"`
	DocumentationURL string                                         `json:"documentation_url"`
	Source           ScriptSettingGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSettingGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSettingGetResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptSettingGetResponseEnvelopeMessagesSource

type ScriptSettingGetResponseEnvelopeMessagesSource struct {
	Pointer string                                             `json:"pointer"`
	JSON    scriptSettingGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSettingGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptSettingGetResponseEnvelopeSuccess

type ScriptSettingGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSettingGetResponseEnvelopeSuccessTrue ScriptSettingGetResponseEnvelopeSuccess = true
)

func (ScriptSettingGetResponseEnvelopeSuccess) IsKnown

type ScriptSettingObservability

type ScriptSettingObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%).
	// Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Log settings for the Worker.
	Logs ScriptSettingObservabilityLogs `json:"logs" api:"nullable"`
	// Trace settings for the Worker.
	Traces ScriptSettingObservabilityTraces `json:"traces" api:"nullable"`
	JSON   scriptSettingObservabilityJSON   `json:"-"`
}

Observability settings for the Worker.

func (*ScriptSettingObservability) UnmarshalJSON

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

type ScriptSettingObservabilityLogs

type ScriptSettingObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs bool `json:"invocation_logs" api:"required"`
	// A list of destinations where logs will be exported to.
	Destinations []string `json:"destinations"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether log persistence is enabled for the Worker.
	Persist bool                               `json:"persist"`
	JSON    scriptSettingObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*ScriptSettingObservabilityLogs) UnmarshalJSON

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

type ScriptSettingObservabilityLogsParam

type ScriptSettingObservabilityLogsParam struct {
	// Whether logs are enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs param.Field[bool] `json:"invocation_logs" api:"required"`
	// A list of destinations where logs will be exported to.
	Destinations param.Field[[]string] `json:"destinations"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Whether log persistence is enabled for the Worker.
	Persist param.Field[bool] `json:"persist"`
}

Log settings for the Worker.

func (ScriptSettingObservabilityLogsParam) MarshalJSON

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

type ScriptSettingObservabilityParam

type ScriptSettingObservabilityParam struct {
	// Whether observability is enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%).
	// Default is 1.
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Log settings for the Worker.
	Logs param.Field[ScriptSettingObservabilityLogsParam] `json:"logs"`
	// Trace settings for the Worker.
	Traces param.Field[ScriptSettingObservabilityTracesParam] `json:"traces"`
}

Observability settings for the Worker.

func (ScriptSettingObservabilityParam) MarshalJSON

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

type ScriptSettingObservabilityTraces

type ScriptSettingObservabilityTraces struct {
	// A list of destinations where traces will be exported to.
	Destinations []string `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled bool `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether trace persistence is enabled for the Worker.
	Persist bool                                 `json:"persist"`
	JSON    scriptSettingObservabilityTracesJSON `json:"-"`
}

Trace settings for the Worker.

func (*ScriptSettingObservabilityTraces) UnmarshalJSON

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

type ScriptSettingObservabilityTracesParam

type ScriptSettingObservabilityTracesParam struct {
	// A list of destinations where traces will be exported to.
	Destinations param.Field[[]string] `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Whether trace persistence is enabled for the Worker.
	Persist param.Field[bool] `json:"persist"`
}

Trace settings for the Worker.

func (ScriptSettingObservabilityTracesParam) MarshalJSON

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

type ScriptSettingParam

type ScriptSettingParam struct {
	// Whether Logpush is turned on for the Worker.
	Logpush param.Field[bool] `json:"logpush"`
	// Observability settings for the Worker.
	Observability param.Field[ScriptSettingObservabilityParam] `json:"observability"`
	// Tags associated with the Worker.
	Tags param.Field[[]string] `json:"tags"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers param.Field[[]ConsumerScriptParam] `json:"tail_consumers"`
}

func (ScriptSettingParam) MarshalJSON

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

type ScriptSettingService

type ScriptSettingService struct {
	Options []option.RequestOption
}

ScriptSettingService 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 NewScriptSettingService method instead.

func NewScriptSettingService

func NewScriptSettingService(opts ...option.RequestOption) (r *ScriptSettingService)

NewScriptSettingService 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 (*ScriptSettingService) Edit

func (r *ScriptSettingService) Edit(ctx context.Context, scriptName string, params ScriptSettingEditParams, opts ...option.RequestOption) (res *ScriptSetting, err error)

Patch script-level settings when using [Worker Versions](https://developers.cloudflare.com/api/operations/worker-versions-list-versions). Including but not limited to Logpush and Tail Consumers.

func (*ScriptSettingService) Get

func (r *ScriptSettingService) Get(ctx context.Context, scriptName string, query ScriptSettingGetParams, opts ...option.RequestOption) (res *ScriptSetting, err error)

Get script-level settings when using [Worker Versions](https://developers.cloudflare.com/api/operations/worker-versions-list-versions). Includes Logpush and Tail Consumers.

type ScriptSubdomainDeleteParams

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

type ScriptSubdomainDeleteResponse

type ScriptSubdomainDeleteResponse struct {
	// Whether the Worker is available on the workers.dev subdomain.
	Enabled bool `json:"enabled" api:"required"`
	// Whether the Worker's Preview URLs are available on the workers.dev subdomain.
	PreviewsEnabled bool                              `json:"previews_enabled" api:"required"`
	JSON            scriptSubdomainDeleteResponseJSON `json:"-"`
}

func (*ScriptSubdomainDeleteResponse) UnmarshalJSON

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

type ScriptSubdomainDeleteResponseEnvelope

type ScriptSubdomainDeleteResponseEnvelope struct {
	Errors   []ScriptSubdomainDeleteResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptSubdomainDeleteResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptSubdomainDeleteResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptSubdomainDeleteResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptSubdomainDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSubdomainDeleteResponseEnvelope) UnmarshalJSON

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

type ScriptSubdomainDeleteResponseEnvelopeErrors

type ScriptSubdomainDeleteResponseEnvelopeErrors struct {
	Code             int64                                             `json:"code" api:"required"`
	Message          string                                            `json:"message" api:"required"`
	DocumentationURL string                                            `json:"documentation_url"`
	Source           ScriptSubdomainDeleteResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSubdomainDeleteResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSubdomainDeleteResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptSubdomainDeleteResponseEnvelopeErrorsSource

type ScriptSubdomainDeleteResponseEnvelopeErrorsSource struct {
	Pointer string                                                `json:"pointer"`
	JSON    scriptSubdomainDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSubdomainDeleteResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptSubdomainDeleteResponseEnvelopeMessages

type ScriptSubdomainDeleteResponseEnvelopeMessages struct {
	Code             int64                                               `json:"code" api:"required"`
	Message          string                                              `json:"message" api:"required"`
	DocumentationURL string                                              `json:"documentation_url"`
	Source           ScriptSubdomainDeleteResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSubdomainDeleteResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSubdomainDeleteResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptSubdomainDeleteResponseEnvelopeMessagesSource

type ScriptSubdomainDeleteResponseEnvelopeMessagesSource struct {
	Pointer string                                                  `json:"pointer"`
	JSON    scriptSubdomainDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSubdomainDeleteResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptSubdomainDeleteResponseEnvelopeSuccess

type ScriptSubdomainDeleteResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSubdomainDeleteResponseEnvelopeSuccessTrue ScriptSubdomainDeleteResponseEnvelopeSuccess = true
)

func (ScriptSubdomainDeleteResponseEnvelopeSuccess) IsKnown

type ScriptSubdomainGetParams

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

type ScriptSubdomainGetResponse

type ScriptSubdomainGetResponse struct {
	// Whether the Worker is available on the workers.dev subdomain.
	Enabled bool `json:"enabled" api:"required"`
	// Whether the Worker's Preview URLs are available on the workers.dev subdomain.
	PreviewsEnabled bool                           `json:"previews_enabled" api:"required"`
	JSON            scriptSubdomainGetResponseJSON `json:"-"`
}

func (*ScriptSubdomainGetResponse) UnmarshalJSON

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

type ScriptSubdomainGetResponseEnvelope

type ScriptSubdomainGetResponseEnvelope struct {
	Errors   []ScriptSubdomainGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptSubdomainGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptSubdomainGetResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptSubdomainGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptSubdomainGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSubdomainGetResponseEnvelope) UnmarshalJSON

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

type ScriptSubdomainGetResponseEnvelopeErrors

type ScriptSubdomainGetResponseEnvelopeErrors struct {
	Code             int64                                          `json:"code" api:"required"`
	Message          string                                         `json:"message" api:"required"`
	DocumentationURL string                                         `json:"documentation_url"`
	Source           ScriptSubdomainGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSubdomainGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSubdomainGetResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptSubdomainGetResponseEnvelopeErrorsSource

type ScriptSubdomainGetResponseEnvelopeErrorsSource struct {
	Pointer string                                             `json:"pointer"`
	JSON    scriptSubdomainGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSubdomainGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptSubdomainGetResponseEnvelopeMessages

type ScriptSubdomainGetResponseEnvelopeMessages struct {
	Code             int64                                            `json:"code" api:"required"`
	Message          string                                           `json:"message" api:"required"`
	DocumentationURL string                                           `json:"documentation_url"`
	Source           ScriptSubdomainGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSubdomainGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSubdomainGetResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptSubdomainGetResponseEnvelopeMessagesSource

type ScriptSubdomainGetResponseEnvelopeMessagesSource struct {
	Pointer string                                               `json:"pointer"`
	JSON    scriptSubdomainGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSubdomainGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptSubdomainGetResponseEnvelopeSuccess

type ScriptSubdomainGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSubdomainGetResponseEnvelopeSuccessTrue ScriptSubdomainGetResponseEnvelopeSuccess = true
)

func (ScriptSubdomainGetResponseEnvelopeSuccess) IsKnown

type ScriptSubdomainNewParams

type ScriptSubdomainNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Whether the Worker should be available on the workers.dev subdomain.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// Whether the Worker's Preview URLs should be available on the workers.dev
	// subdomain.
	PreviewsEnabled param.Field[bool] `json:"previews_enabled"`
}

func (ScriptSubdomainNewParams) MarshalJSON

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

type ScriptSubdomainNewResponse

type ScriptSubdomainNewResponse struct {
	// Whether the Worker is available on the workers.dev subdomain.
	Enabled bool `json:"enabled" api:"required"`
	// Whether the Worker's Preview URLs are available on the workers.dev subdomain.
	PreviewsEnabled bool                           `json:"previews_enabled" api:"required"`
	JSON            scriptSubdomainNewResponseJSON `json:"-"`
}

func (*ScriptSubdomainNewResponse) UnmarshalJSON

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

type ScriptSubdomainNewResponseEnvelope

type ScriptSubdomainNewResponseEnvelope struct {
	Errors   []ScriptSubdomainNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptSubdomainNewResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptSubdomainNewResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptSubdomainNewResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptSubdomainNewResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSubdomainNewResponseEnvelope) UnmarshalJSON

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

type ScriptSubdomainNewResponseEnvelopeErrors

type ScriptSubdomainNewResponseEnvelopeErrors struct {
	Code             int64                                          `json:"code" api:"required"`
	Message          string                                         `json:"message" api:"required"`
	DocumentationURL string                                         `json:"documentation_url"`
	Source           ScriptSubdomainNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSubdomainNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSubdomainNewResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptSubdomainNewResponseEnvelopeErrorsSource

type ScriptSubdomainNewResponseEnvelopeErrorsSource struct {
	Pointer string                                             `json:"pointer"`
	JSON    scriptSubdomainNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSubdomainNewResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptSubdomainNewResponseEnvelopeMessages

type ScriptSubdomainNewResponseEnvelopeMessages struct {
	Code             int64                                            `json:"code" api:"required"`
	Message          string                                           `json:"message" api:"required"`
	DocumentationURL string                                           `json:"documentation_url"`
	Source           ScriptSubdomainNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSubdomainNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSubdomainNewResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptSubdomainNewResponseEnvelopeMessagesSource

type ScriptSubdomainNewResponseEnvelopeMessagesSource struct {
	Pointer string                                               `json:"pointer"`
	JSON    scriptSubdomainNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSubdomainNewResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptSubdomainNewResponseEnvelopeSuccess

type ScriptSubdomainNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSubdomainNewResponseEnvelopeSuccessTrue ScriptSubdomainNewResponseEnvelopeSuccess = true
)

func (ScriptSubdomainNewResponseEnvelopeSuccess) IsKnown

type ScriptSubdomainService

type ScriptSubdomainService struct {
	Options []option.RequestOption
}

ScriptSubdomainService 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 NewScriptSubdomainService method instead.

func NewScriptSubdomainService

func NewScriptSubdomainService(opts ...option.RequestOption) (r *ScriptSubdomainService)

NewScriptSubdomainService 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 (*ScriptSubdomainService) Delete

Disable all workers.dev subdomains for a Worker.

func (*ScriptSubdomainService) Get

Get if the Worker is available on the workers.dev subdomain.

func (*ScriptSubdomainService) New

Enable or disable the Worker on the workers.dev subdomain.

type ScriptTailDeleteParams

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

type ScriptTailDeleteResponse

type ScriptTailDeleteResponse struct {
	Errors   []ScriptTailDeleteResponseError   `json:"errors" api:"required"`
	Messages []ScriptTailDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success ScriptTailDeleteResponseSuccess `json:"success" api:"required"`
	JSON    scriptTailDeleteResponseJSON    `json:"-"`
}

func (*ScriptTailDeleteResponse) UnmarshalJSON

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

type ScriptTailDeleteResponseError

type ScriptTailDeleteResponseError struct {
	Code             int64                                `json:"code" api:"required"`
	Message          string                               `json:"message" api:"required"`
	DocumentationURL string                               `json:"documentation_url"`
	Source           ScriptTailDeleteResponseErrorsSource `json:"source"`
	JSON             scriptTailDeleteResponseErrorJSON    `json:"-"`
}

func (*ScriptTailDeleteResponseError) UnmarshalJSON

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

type ScriptTailDeleteResponseErrorsSource

type ScriptTailDeleteResponseErrorsSource struct {
	Pointer string                                   `json:"pointer"`
	JSON    scriptTailDeleteResponseErrorsSourceJSON `json:"-"`
}

func (*ScriptTailDeleteResponseErrorsSource) UnmarshalJSON

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

type ScriptTailDeleteResponseMessage

type ScriptTailDeleteResponseMessage struct {
	Code             int64                                  `json:"code" api:"required"`
	Message          string                                 `json:"message" api:"required"`
	DocumentationURL string                                 `json:"documentation_url"`
	Source           ScriptTailDeleteResponseMessagesSource `json:"source"`
	JSON             scriptTailDeleteResponseMessageJSON    `json:"-"`
}

func (*ScriptTailDeleteResponseMessage) UnmarshalJSON

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

type ScriptTailDeleteResponseMessagesSource

type ScriptTailDeleteResponseMessagesSource struct {
	Pointer string                                     `json:"pointer"`
	JSON    scriptTailDeleteResponseMessagesSourceJSON `json:"-"`
}

func (*ScriptTailDeleteResponseMessagesSource) UnmarshalJSON

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

type ScriptTailDeleteResponseSuccess

type ScriptTailDeleteResponseSuccess bool

Whether the API call was successful.

const (
	ScriptTailDeleteResponseSuccessTrue ScriptTailDeleteResponseSuccess = true
)

func (ScriptTailDeleteResponseSuccess) IsKnown

type ScriptTailGetParams

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

type ScriptTailGetResponse

type ScriptTailGetResponse struct {
	// Identifier.
	ID        string                    `json:"id" api:"required"`
	ExpiresAt string                    `json:"expires_at" api:"required"`
	URL       string                    `json:"url" api:"required"`
	JSON      scriptTailGetResponseJSON `json:"-"`
}

func (*ScriptTailGetResponse) UnmarshalJSON

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

type ScriptTailGetResponseEnvelope

type ScriptTailGetResponseEnvelope struct {
	Errors   []ScriptTailGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptTailGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptTailGetResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptTailGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptTailGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptTailGetResponseEnvelope) UnmarshalJSON

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

type ScriptTailGetResponseEnvelopeErrors

type ScriptTailGetResponseEnvelopeErrors struct {
	Code             int64                                     `json:"code" api:"required"`
	Message          string                                    `json:"message" api:"required"`
	DocumentationURL string                                    `json:"documentation_url"`
	Source           ScriptTailGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptTailGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptTailGetResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptTailGetResponseEnvelopeErrorsSource

type ScriptTailGetResponseEnvelopeErrorsSource struct {
	Pointer string                                        `json:"pointer"`
	JSON    scriptTailGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptTailGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptTailGetResponseEnvelopeMessages

type ScriptTailGetResponseEnvelopeMessages struct {
	Code             int64                                       `json:"code" api:"required"`
	Message          string                                      `json:"message" api:"required"`
	DocumentationURL string                                      `json:"documentation_url"`
	Source           ScriptTailGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptTailGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptTailGetResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptTailGetResponseEnvelopeMessagesSource

type ScriptTailGetResponseEnvelopeMessagesSource struct {
	Pointer string                                          `json:"pointer"`
	JSON    scriptTailGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptTailGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptTailGetResponseEnvelopeSuccess

type ScriptTailGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptTailGetResponseEnvelopeSuccessTrue ScriptTailGetResponseEnvelopeSuccess = true
)

func (ScriptTailGetResponseEnvelopeSuccess) IsKnown

type ScriptTailNewParams

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

func (ScriptTailNewParams) MarshalJSON

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

type ScriptTailNewResponse

type ScriptTailNewResponse struct {
	// Identifier.
	ID        string                    `json:"id" api:"required"`
	ExpiresAt string                    `json:"expires_at" api:"required"`
	URL       string                    `json:"url" api:"required"`
	JSON      scriptTailNewResponseJSON `json:"-"`
}

func (*ScriptTailNewResponse) UnmarshalJSON

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

type ScriptTailNewResponseEnvelope

type ScriptTailNewResponseEnvelope struct {
	Errors   []ScriptTailNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptTailNewResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptTailNewResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptTailNewResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptTailNewResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptTailNewResponseEnvelope) UnmarshalJSON

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

type ScriptTailNewResponseEnvelopeErrors

type ScriptTailNewResponseEnvelopeErrors struct {
	Code             int64                                     `json:"code" api:"required"`
	Message          string                                    `json:"message" api:"required"`
	DocumentationURL string                                    `json:"documentation_url"`
	Source           ScriptTailNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptTailNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptTailNewResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptTailNewResponseEnvelopeErrorsSource

type ScriptTailNewResponseEnvelopeErrorsSource struct {
	Pointer string                                        `json:"pointer"`
	JSON    scriptTailNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptTailNewResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptTailNewResponseEnvelopeMessages

type ScriptTailNewResponseEnvelopeMessages struct {
	Code             int64                                       `json:"code" api:"required"`
	Message          string                                      `json:"message" api:"required"`
	DocumentationURL string                                      `json:"documentation_url"`
	Source           ScriptTailNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptTailNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptTailNewResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptTailNewResponseEnvelopeMessagesSource

type ScriptTailNewResponseEnvelopeMessagesSource struct {
	Pointer string                                          `json:"pointer"`
	JSON    scriptTailNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptTailNewResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptTailNewResponseEnvelopeSuccess

type ScriptTailNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptTailNewResponseEnvelopeSuccessTrue ScriptTailNewResponseEnvelopeSuccess = true
)

func (ScriptTailNewResponseEnvelopeSuccess) IsKnown

type ScriptTailService

type ScriptTailService struct {
	Options []option.RequestOption
}

ScriptTailService 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 NewScriptTailService method instead.

func NewScriptTailService

func NewScriptTailService(opts ...option.RequestOption) (r *ScriptTailService)

NewScriptTailService 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 (*ScriptTailService) Delete

func (r *ScriptTailService) Delete(ctx context.Context, scriptName string, id string, body ScriptTailDeleteParams, opts ...option.RequestOption) (res *ScriptTailDeleteResponse, err error)

Deletes a tail from a Worker.

func (*ScriptTailService) Get

func (r *ScriptTailService) Get(ctx context.Context, scriptName string, query ScriptTailGetParams, opts ...option.RequestOption) (res *ScriptTailGetResponse, err error)

Get list of tails currently deployed on a Worker.

func (*ScriptTailService) New

func (r *ScriptTailService) New(ctx context.Context, scriptName string, params ScriptTailNewParams, opts ...option.RequestOption) (res *ScriptTailNewResponse, err error)

Starts a tail that receives logs and exception from a Worker.

type ScriptUpdateParams

type ScriptUpdateParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// JSON-encoded metadata about the uploaded parts and Worker configuration.
	Metadata param.Field[ScriptUpdateParamsMetadata] `json:"metadata" api:"required"`
	// When set to "strict", the upload will fail if any `inherit` type bindings cannot
	// be resolved against the previous version of the Worker. Without this,
	// unresolvable inherit bindings are silently dropped.
	BindingsInherit param.Field[ScriptUpdateParamsBindingsInherit] `query:"bindings_inherit"`
	// An array of modules (often JavaScript files) comprising a Worker script. At
	// least one module must be present and referenced in the metadata as `main_module`
	// or `body_part` by filename.<br/>Possible Content-Type(s) are:
	// `application/javascript+module`, `text/javascript+module`,
	// `application/javascript`, `text/javascript`, `text/x-python`,
	// `text/x-python-requirement`, `application/wasm`, `text/plain`,
	// `application/octet-stream`, `application/source-map`.
	Files param.Field[[]io.Reader] `json:"files" format:"binary"`
}

func (ScriptUpdateParams) MarshalMultipart

func (r ScriptUpdateParams) MarshalMultipart() (data []byte, contentType string, err error)

func (ScriptUpdateParams) URLQuery

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

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

type ScriptUpdateParamsBindingsInherit

type ScriptUpdateParamsBindingsInherit string

When set to "strict", the upload will fail if any `inherit` type bindings cannot be resolved against the previous version of the Worker. Without this, unresolvable inherit bindings are silently dropped.

const (
	ScriptUpdateParamsBindingsInheritStrict ScriptUpdateParamsBindingsInherit = "strict"
)

func (ScriptUpdateParamsBindingsInherit) IsKnown

type ScriptUpdateParamsMetadata

type ScriptUpdateParamsMetadata struct {
	// Annotations for the version created by this upload.
	Annotations param.Field[ScriptUpdateParamsMetadataAnnotations] `json:"annotations"`
	// Configuration for assets within a Worker.
	Assets param.Field[ScriptUpdateParamsMetadataAssets] `json:"assets"`
	// List of bindings attached to a Worker. You can find more about bindings on our
	// docs:
	// https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
	Bindings param.Field[[]ScriptUpdateParamsMetadataBindingUnion] `json:"bindings"`
	// Name of the uploaded file that contains the script (e.g. the file adding a
	// listener to the `fetch` event). Indicates a `service worker syntax` Worker.
	BodyPart param.Field[string] `json:"body_part"`
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate param.Field[string] `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime. Used to
	// enable upcoming features or opt in or out of specific changes not included in a
	// `compatibility_date`.
	CompatibilityFlags param.Field[[]string] `json:"compatibility_flags"`
	// Retain assets which exist for a previously uploaded Worker version; used in lieu
	// of providing a completion token.
	KeepAssets param.Field[bool] `json:"keep_assets"`
	// List of binding types to keep from previous_upload.
	KeepBindings param.Field[[]string] `json:"keep_bindings"`
	// Limits to apply for this Worker.
	Limits param.Field[ScriptUpdateParamsMetadataLimits] `json:"limits"`
	// Whether Logpush is turned on for the Worker.
	Logpush param.Field[bool] `json:"logpush"`
	// Name of the uploaded file that contains the main module (e.g. the file exporting
	// a `fetch` handler). Indicates a `module syntax` Worker.
	MainModule param.Field[string] `json:"main_module"`
	// Migrations to apply for Durable Objects associated with this Worker.
	Migrations param.Field[ScriptUpdateParamsMetadataMigrationsUnion] `json:"migrations"`
	// Observability settings for the Worker.
	Observability param.Field[ScriptUpdateParamsMetadataObservability] `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	// Specify mode='smart' for Smart Placement, or one of region/hostname/host.
	Placement param.Field[ScriptUpdateParamsMetadataPlacementUnion] `json:"placement"`
	// List of strings to use as tags for this Worker.
	Tags param.Field[[]string] `json:"tags"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers param.Field[[]ConsumerScriptParam] `json:"tail_consumers"`
	// Usage model for the Worker invocations.
	UsageModel param.Field[ScriptUpdateParamsMetadataUsageModel] `json:"usage_model"`
}

JSON-encoded metadata about the uploaded parts and Worker configuration.

func (ScriptUpdateParamsMetadata) MarshalJSON

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

type ScriptUpdateParamsMetadataAnnotations

type ScriptUpdateParamsMetadataAnnotations struct {
	// Human-readable message about the version. Truncated to 1000 bytes if longer.
	WorkersMessage param.Field[string] `json:"workers/message"`
	// User-provided identifier for the version. Maximum 100 bytes.
	WorkersTag param.Field[string] `json:"workers/tag"`
}

Annotations for the version created by this upload.

func (ScriptUpdateParamsMetadataAnnotations) MarshalJSON

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

type ScriptUpdateParamsMetadataAssets

type ScriptUpdateParamsMetadataAssets struct {
	// Configuration for assets within a Worker.
	Config param.Field[ScriptUpdateParamsMetadataAssetsConfig] `json:"config"`
	// Token provided upon successful upload of all files from a registered manifest.
	JWT param.Field[string] `json:"jwt"`
}

Configuration for assets within a Worker.

func (ScriptUpdateParamsMetadataAssets) MarshalJSON

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

type ScriptUpdateParamsMetadataAssetsConfig

type ScriptUpdateParamsMetadataAssetsConfig struct {
	// The contents of a \_headers file (used to attach custom headers on asset
	// responses).
	Headers param.Field[string] `json:"_headers"`
	// The contents of a \_redirects file (used to apply redirects or proxy paths ahead
	// of asset serving).
	Redirects param.Field[string] `json:"_redirects"`
	// Determines the redirects and rewrites of requests for HTML content.
	HTMLHandling param.Field[ScriptUpdateParamsMetadataAssetsConfigHTMLHandling] `json:"html_handling"`
	// Determines the response when a request does not match a static asset, and there
	// is no Worker script.
	NotFoundHandling param.Field[ScriptUpdateParamsMetadataAssetsConfigNotFoundHandling] `json:"not_found_handling"`
	// Contains a list path rules to control routing to either the Worker or assets.
	// Glob (\*) and negative (!) rules are supported. Rules must start with either '/'
	// or '!/'. At least one non-negative rule must be provided, and negative rules
	// have higher precedence than non-negative rules.
	RunWorkerFirst param.Field[ScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstUnion] `json:"run_worker_first"`
	// When true and the incoming request matches an asset, that will be served instead
	// of invoking the Worker script. When false, requests will always invoke the
	// Worker script.
	//
	// Deprecated: deprecated
	ServeDirectly param.Field[bool] `json:"serve_directly"`
}

Configuration for assets within a Worker.

func (ScriptUpdateParamsMetadataAssetsConfig) MarshalJSON

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

type ScriptUpdateParamsMetadataAssetsConfigHTMLHandling

type ScriptUpdateParamsMetadataAssetsConfigHTMLHandling string

Determines the redirects and rewrites of requests for HTML content.

const (
	ScriptUpdateParamsMetadataAssetsConfigHTMLHandlingAutoTrailingSlash  ScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "auto-trailing-slash"
	ScriptUpdateParamsMetadataAssetsConfigHTMLHandlingForceTrailingSlash ScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "force-trailing-slash"
	ScriptUpdateParamsMetadataAssetsConfigHTMLHandlingDropTrailingSlash  ScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "drop-trailing-slash"
	ScriptUpdateParamsMetadataAssetsConfigHTMLHandlingNone               ScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "none"
)

func (ScriptUpdateParamsMetadataAssetsConfigHTMLHandling) IsKnown

type ScriptUpdateParamsMetadataAssetsConfigNotFoundHandling

type ScriptUpdateParamsMetadataAssetsConfigNotFoundHandling string

Determines the response when a request does not match a static asset, and there is no Worker script.

const (
	ScriptUpdateParamsMetadataAssetsConfigNotFoundHandlingNone                  ScriptUpdateParamsMetadataAssetsConfigNotFoundHandling = "none"
	ScriptUpdateParamsMetadataAssetsConfigNotFoundHandling404Page               ScriptUpdateParamsMetadataAssetsConfigNotFoundHandling = "404-page"
	ScriptUpdateParamsMetadataAssetsConfigNotFoundHandlingSinglePageApplication ScriptUpdateParamsMetadataAssetsConfigNotFoundHandling = "single-page-application"
)

func (ScriptUpdateParamsMetadataAssetsConfigNotFoundHandling) IsKnown

type ScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstArray

type ScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstArray []string

func (ScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstArray) ImplementsScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstUnion

func (r ScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstArray) ImplementsScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstUnion()

type ScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstUnion

type ScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstUnion interface {
	ImplementsScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstUnion()
}

Contains a list path rules to control routing to either the Worker or assets. Glob (\*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.

Satisfied by workers.ScriptUpdateParamsMetadataAssetsConfigRunWorkerFirstArray, shared.UnionBool.

type ScriptUpdateParamsMetadataBinding

type ScriptUpdateParamsMetadataBinding struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsType] `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID                          param.Field[string]      `json:"id"`
	Algorithm                   param.Field[interface{}] `json:"algorithm"`
	AllowedDestinationAddresses param.Field[interface{}] `json:"allowed_destination_addresses"`
	AllowedSenderAddresses      param.Field[interface{}] `json:"allowed_sender_addresses"`
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID param.Field[string] `json:"app_id"`
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID param.Field[string] `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// Identifier of the D1 database to bind to.
	DatabaseID param.Field[string] `json:"database_id"`
	// The name of the dataset to bind to.
	Dataset param.Field[string] `json:"dataset"`
	// Destination address for the email.
	DestinationAddress param.Field[string] `json:"destination_address" format:"email"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace param.Field[string] `json:"dispatch_namespace"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// The environment of the script_name to bind to.
	Environment param.Field[string] `json:"environment"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[ScriptUpdateParamsMetadataBindingsFormat] `json:"format"`
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name"`
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName param.Field[string]      `json:"instance_name"`
	Json         param.Field[interface{}] `json:"json"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction param.Field[ScriptUpdateParamsMetadataBindingsJurisdiction] `json:"jurisdiction"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string]      `json:"key_base64"`
	KeyJwk    param.Field[interface{}] `json:"key_jwk"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace param.Field[string] `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID param.Field[string] `json:"network_id"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName  param.Field[string]      `json:"old_name"`
	Outbound param.Field[interface{}] `json:"outbound"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName param.Field[string] `json:"script_name"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service"`
	// Identifier of the VPC service to bind to.
	ServiceID param.Field[string]      `json:"service_id"`
	Simple    param.Field[interface{}] `json:"simple"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id"`
	// The text value to use.
	Text param.Field[string] `json:"text"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID param.Field[string]      `json:"tunnel_id"`
	Usages   param.Field[interface{}] `json:"usages"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID param.Field[string] `json:"version_id"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name"`
}

A binding to allow the Worker to communicate with resources.

func (ScriptUpdateParamsMetadataBinding) MarshalJSON

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

type ScriptUpdateParamsMetadataBindingUnion

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

A binding to allow the Worker to communicate with resources.

Satisfied by workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindAI, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearch, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchNamespace, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowser, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlob, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespace, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindInherit, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindImages, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindMedia, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificate, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelines, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimit, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Bucket, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretText, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmail, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindService, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlob, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecret, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindFlagship, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKey, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflow, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModule, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCService, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCNetwork, ScriptUpdateParamsMetadataBinding.

type ScriptUpdateParamsMetadataBindingsFormat

type ScriptUpdateParamsMetadataBindingsFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptUpdateParamsMetadataBindingsFormatRaw   ScriptUpdateParamsMetadataBindingsFormat = "raw"
	ScriptUpdateParamsMetadataBindingsFormatPkcs8 ScriptUpdateParamsMetadataBindingsFormat = "pkcs8"
	ScriptUpdateParamsMetadataBindingsFormatSpki  ScriptUpdateParamsMetadataBindingsFormat = "spki"
	ScriptUpdateParamsMetadataBindingsFormatJwk   ScriptUpdateParamsMetadataBindingsFormat = "jwk"
)

func (ScriptUpdateParamsMetadataBindingsFormat) IsKnown

type ScriptUpdateParamsMetadataBindingsJurisdiction

type ScriptUpdateParamsMetadataBindingsJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptUpdateParamsMetadataBindingsJurisdictionEu          ScriptUpdateParamsMetadataBindingsJurisdiction = "eu"
	ScriptUpdateParamsMetadataBindingsJurisdictionFedramp     ScriptUpdateParamsMetadataBindingsJurisdiction = "fedramp"
	ScriptUpdateParamsMetadataBindingsJurisdictionFedrampHigh ScriptUpdateParamsMetadataBindingsJurisdiction = "fedramp-high"
)

func (ScriptUpdateParamsMetadataBindingsJurisdiction) IsKnown

type ScriptUpdateParamsMetadataBindingsType

type ScriptUpdateParamsMetadataBindingsType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsTypeAI                     ScriptUpdateParamsMetadataBindingsType = "ai"
	ScriptUpdateParamsMetadataBindingsTypeAISearch               ScriptUpdateParamsMetadataBindingsType = "ai_search"
	ScriptUpdateParamsMetadataBindingsTypeAISearchNamespace      ScriptUpdateParamsMetadataBindingsType = "ai_search_namespace"
	ScriptUpdateParamsMetadataBindingsTypeAnalyticsEngine        ScriptUpdateParamsMetadataBindingsType = "analytics_engine"
	ScriptUpdateParamsMetadataBindingsTypeAssets                 ScriptUpdateParamsMetadataBindingsType = "assets"
	ScriptUpdateParamsMetadataBindingsTypeBrowser                ScriptUpdateParamsMetadataBindingsType = "browser"
	ScriptUpdateParamsMetadataBindingsTypeD1                     ScriptUpdateParamsMetadataBindingsType = "d1"
	ScriptUpdateParamsMetadataBindingsTypeDataBlob               ScriptUpdateParamsMetadataBindingsType = "data_blob"
	ScriptUpdateParamsMetadataBindingsTypeDispatchNamespace      ScriptUpdateParamsMetadataBindingsType = "dispatch_namespace"
	ScriptUpdateParamsMetadataBindingsTypeDurableObjectNamespace ScriptUpdateParamsMetadataBindingsType = "durable_object_namespace"
	ScriptUpdateParamsMetadataBindingsTypeHyperdrive             ScriptUpdateParamsMetadataBindingsType = "hyperdrive"
	ScriptUpdateParamsMetadataBindingsTypeInherit                ScriptUpdateParamsMetadataBindingsType = "inherit"
	ScriptUpdateParamsMetadataBindingsTypeImages                 ScriptUpdateParamsMetadataBindingsType = "images"
	ScriptUpdateParamsMetadataBindingsTypeJson                   ScriptUpdateParamsMetadataBindingsType = "json"
	ScriptUpdateParamsMetadataBindingsTypeKVNamespace            ScriptUpdateParamsMetadataBindingsType = "kv_namespace"
	ScriptUpdateParamsMetadataBindingsTypeMedia                  ScriptUpdateParamsMetadataBindingsType = "media"
	ScriptUpdateParamsMetadataBindingsTypeMTLSCertificate        ScriptUpdateParamsMetadataBindingsType = "mtls_certificate"
	ScriptUpdateParamsMetadataBindingsTypePlainText              ScriptUpdateParamsMetadataBindingsType = "plain_text"
	ScriptUpdateParamsMetadataBindingsTypePipelines              ScriptUpdateParamsMetadataBindingsType = "pipelines"
	ScriptUpdateParamsMetadataBindingsTypeQueue                  ScriptUpdateParamsMetadataBindingsType = "queue"
	ScriptUpdateParamsMetadataBindingsTypeRatelimit              ScriptUpdateParamsMetadataBindingsType = "ratelimit"
	ScriptUpdateParamsMetadataBindingsTypeR2Bucket               ScriptUpdateParamsMetadataBindingsType = "r2_bucket"
	ScriptUpdateParamsMetadataBindingsTypeSecretText             ScriptUpdateParamsMetadataBindingsType = "secret_text"
	ScriptUpdateParamsMetadataBindingsTypeSendEmail              ScriptUpdateParamsMetadataBindingsType = "send_email"
	ScriptUpdateParamsMetadataBindingsTypeService                ScriptUpdateParamsMetadataBindingsType = "service"
	ScriptUpdateParamsMetadataBindingsTypeTextBlob               ScriptUpdateParamsMetadataBindingsType = "text_blob"
	ScriptUpdateParamsMetadataBindingsTypeVectorize              ScriptUpdateParamsMetadataBindingsType = "vectorize"
	ScriptUpdateParamsMetadataBindingsTypeVersionMetadata        ScriptUpdateParamsMetadataBindingsType = "version_metadata"
	ScriptUpdateParamsMetadataBindingsTypeSecretsStoreSecret     ScriptUpdateParamsMetadataBindingsType = "secrets_store_secret"
	ScriptUpdateParamsMetadataBindingsTypeFlagship               ScriptUpdateParamsMetadataBindingsType = "flagship"
	ScriptUpdateParamsMetadataBindingsTypeSecretKey              ScriptUpdateParamsMetadataBindingsType = "secret_key"
	ScriptUpdateParamsMetadataBindingsTypeWorkflow               ScriptUpdateParamsMetadataBindingsType = "workflow"
	ScriptUpdateParamsMetadataBindingsTypeWasmModule             ScriptUpdateParamsMetadataBindingsType = "wasm_module"
	ScriptUpdateParamsMetadataBindingsTypeVPCService             ScriptUpdateParamsMetadataBindingsType = "vpc_service"
	ScriptUpdateParamsMetadataBindingsTypeVPCNetwork             ScriptUpdateParamsMetadataBindingsType = "vpc_network"
)

func (ScriptUpdateParamsMetadataBindingsType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAI

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAI) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearch

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearch struct {
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName param.Field[string] `json:"instance_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchType] `json:"type" api:"required"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace param.Field[string] `json:"namespace"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearch) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchNamespace

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The user-chosen namespace name. Must exist before deploy -- Wrangler handles
	// auto-creation on deploy failure (R2 bucket pattern). The "default" namespace is
	// auto-created by config-api for new accounts. Grants full access (CRUD + search +
	// chat) to all instances within the namespace.
	Namespace param.Field[string] `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchNamespaceType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchNamespace) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchNamespaceType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchNamespaceTypeAISearchNamespace ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchNamespaceType = "ai_search_namespace"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchNamespaceType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchTypeAISearch ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchType = "ai_search"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAISearchType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindAITypeAI ScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType = "ai"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine struct {
	// The name of the dataset to bind to.
	Dataset param.Field[string] `json:"dataset" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsTypeAssets ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType = "assets"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowser

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowser struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowser) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserTypeBrowser ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserType = "browser"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1 struct {
	// Identifier of the D1 database to bind to.
	DatabaseID param.Field[string] `json:"database_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type] `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID param.Field[string] `json:"id"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1TypeD1 ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type = "d1"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlob

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlob) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType] `json:"type" api:"required"`
	// Outbound worker.
	Outbound param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound] `json:"outbound"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params param.Field[[]ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundParam] `json:"params"`
	// Outbound worker.
	Worker param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker] `json:"worker"`
}

Outbound worker.

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundParam

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundParam struct {
	// Name of the parameter.
	Name param.Field[string] `json:"name" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundParam) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Entrypoint to invoke on the outbound worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// Environment of the outbound worker.
	Environment param.Field[string] `json:"environment"`
	// Name of the outbound worker.
	Service param.Field[string] `json:"service"`
}

Outbound worker.

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespace

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType] `json:"type" api:"required"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace param.Field[string] `json:"dispatch_namespace"`
	// The environment of the script_name to bind to.
	Environment param.Field[string] `json:"environment"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName param.Field[string] `json:"script_name"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespace) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceTypeDurableObjectNamespace ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType = "durable_object_namespace"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindFlagship

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindFlagship struct {
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID param.Field[string] `json:"app_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindFlagshipType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindFlagship) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindFlagshipType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindFlagshipType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindFlagshipTypeFlagship ScriptUpdateParamsMetadataBindingsWorkersBindingKindFlagshipType = "flagship"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindFlagshipType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID param.Field[string] `json:"id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveTypeHyperdrive ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindImages

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindImages) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesTypeImages ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindInherit

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritType] `json:"type" api:"required"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName param.Field[string] `json:"old_name"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID param.Field[string] `json:"version_id"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindInherit) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritTypeInherit ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json param.Field[interface{}] `json:"json" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonTypeJson ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType = "json"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceTypeKVNamespace ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificate

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificate struct {
	// Identifier of the certificate to bind to.
	CertificateID param.Field[string] `json:"certificate_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificateType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificate) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificateType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificateType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificateTypeMTLSCertificate ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificateType = "mtls_certificate"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificateType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindMedia

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindMedia struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindMediaType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindMedia) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindMediaType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindMediaType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindMediaTypeMedia ScriptUpdateParamsMetadataBindingsWorkersBindingKindMediaType = "media"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindMediaType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelines

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelinesType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelines) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelinesType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelinesType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelinesTypePipelines ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelinesType = "pipelines"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelinesType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The text value to use.
	Text param.Field[string] `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextTypePlainText ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueTypeQueue ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType = "queue"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Bucket

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Bucket struct {
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketType] `json:"type" api:"required"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction] `json:"jurisdiction"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Bucket) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdictionEu          ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction = "eu"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdictionFedramp     ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdictionFedrampHigh ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp-high"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimit

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimit struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Identifier of the rate limit namespace to bind to.
	NamespaceID param.Field[string] `json:"namespace_id" api:"required"`
	// The rate limit configuration.
	Simple param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimitSimple] `json:"simple" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimitType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimit) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimitSimple

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimitSimple struct {
	// The limit (requests per period).
	Limit param.Field[float64] `json:"limit" api:"required"`
	// The period in seconds.
	Period param.Field[int64] `json:"period" api:"required"`
	// Duration in seconds to apply the mitigation action after the rate limit is
	// exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400.
	// Must be greater than or equal to the period when non-zero.
	MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
}

The rate limit configuration.

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimitSimple) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimitType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimitType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimitTypeRatelimit ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimitType = "ratelimit"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindRatelimitType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKey

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm param.Field[interface{}] `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormat] `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyType] `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages param.Field[[]ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage] `json:"usages" api:"required"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string] `json:"key_base64"`
	// Key data in
	// [JSON Web Key](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key)
	// format. Required if `format` is "jwk".
	KeyJwk param.Field[interface{}] `json:"key_jwk"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKey) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormat

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormatRaw   ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormat = "raw"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormatPkcs8 ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormatSpki  ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormat = "spki"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormatJwk   ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyTypeSecretKey ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage string
const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsageEncrypt    ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsageDecrypt    ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsageSign       ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "sign"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsageVerify     ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "verify"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsageDeriveKey  ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsageDeriveBits ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsageWrapKey    ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretText

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The secret value to use.
	Text param.Field[string] `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretTextType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretText) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretTextType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretTextTypeSecretText ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretTextType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecret

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecret struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name" api:"required"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecret) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretTypeSecretsStoreSecret ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType = "secrets_store_secret"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmail

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailType] `json:"type" api:"required"`
	// List of allowed destination addresses.
	AllowedDestinationAddresses param.Field[[]string] `json:"allowed_destination_addresses" format:"email"`
	// List of allowed sender addresses.
	AllowedSenderAddresses param.Field[[]string] `json:"allowed_sender_addresses" format:"email"`
	// Destination address for the email.
	DestinationAddress param.Field[string] `json:"destination_address" format:"email"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmail) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindService

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType] `json:"type" api:"required"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// Optional environment if the Worker utilizes one.
	Environment param.Field[string] `json:"environment"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindService) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceTypeService ScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType = "service"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlob

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlob) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCNetwork

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCNetwork struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCNetworkType] `json:"type" api:"required"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID param.Field[string] `json:"network_id"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID param.Field[string] `json:"tunnel_id"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCNetwork) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCNetworkType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCNetworkType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCNetworkTypeVPCNetwork ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCNetworkType = "vpc_network"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCNetworkType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCService

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCService struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Identifier of the VPC service to bind to.
	ServiceID param.Field[string] `json:"service_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCServiceType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCService) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCServiceType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCServiceType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCServiceTypeVPCService ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCServiceType = "vpc_service"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindVPCServiceType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeTypeVectorize ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModule

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleType] `json:"type" api:"required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModule) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflow

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflowType] `json:"type" api:"required"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name" api:"required"`
	// Class name of the Workflow. Should only be provided if the Workflow belongs to
	// this script.
	ClassName param.Field[string] `json:"class_name"`
	// Script name that contains the Workflow. If not provided, defaults to this script
	// name.
	ScriptName param.Field[string] `json:"script_name"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflow) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflowType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflowType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflowTypeWorkflow ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflowType = "workflow"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflowType) IsKnown

type ScriptUpdateParamsMetadataLimits

type ScriptUpdateParamsMetadataLimits struct {
	// The amount of CPU time this Worker can use in milliseconds.
	CPUMs param.Field[int64] `json:"cpu_ms"`
	// The number of subrequests this Worker can make per request.
	Subrequests param.Field[int64] `json:"subrequests"`
}

Limits to apply for this Worker.

func (ScriptUpdateParamsMetadataLimits) MarshalJSON

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

type ScriptUpdateParamsMetadataMigrations

type ScriptUpdateParamsMetadataMigrations struct {
	DeletedClasses   param.Field[interface{}] `json:"deleted_classes"`
	NewClasses       param.Field[interface{}] `json:"new_classes"`
	NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes"`
	// Tag to set as the latest migration tag.
	NewTag param.Field[string] `json:"new_tag"`
	// Tag used to verify against the latest migration tag for this Worker. If they
	// don't match, the upload is rejected.
	OldTag             param.Field[string]      `json:"old_tag"`
	RenamedClasses     param.Field[interface{}] `json:"renamed_classes"`
	Steps              param.Field[interface{}] `json:"steps"`
	TransferredClasses param.Field[interface{}] `json:"transferred_classes"`
}

Migrations to apply for Durable Objects associated with this Worker.

func (ScriptUpdateParamsMetadataMigrations) MarshalJSON

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

type ScriptUpdateParamsMetadataMigrationsUnion

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

Migrations to apply for Durable Objects associated with this Worker.

Satisfied by workers.SingleStepMigrationParam, workers.ScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations, ScriptUpdateParamsMetadataMigrations.

type ScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations

type ScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations struct {
	// Tag to set as the latest migration tag.
	NewTag param.Field[string] `json:"new_tag"`
	// Tag used to verify against the latest migration tag for this Worker. If they
	// don't match, the upload is rejected.
	OldTag param.Field[string] `json:"old_tag"`
	// Migrations to apply in order.
	Steps param.Field[[]MigrationStepParam] `json:"steps"`
}

func (ScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations) MarshalJSON

type ScriptUpdateParamsMetadataObservability

type ScriptUpdateParamsMetadataObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%).
	// Default is 1.
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Log settings for the Worker.
	Logs param.Field[ScriptUpdateParamsMetadataObservabilityLogs] `json:"logs"`
	// Trace settings for the Worker.
	Traces param.Field[ScriptUpdateParamsMetadataObservabilityTraces] `json:"traces"`
}

Observability settings for the Worker.

func (ScriptUpdateParamsMetadataObservability) MarshalJSON

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

type ScriptUpdateParamsMetadataObservabilityLogs

type ScriptUpdateParamsMetadataObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs param.Field[bool] `json:"invocation_logs" api:"required"`
	// A list of destinations where logs will be exported to.
	Destinations param.Field[[]string] `json:"destinations"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Whether log persistence is enabled for the Worker.
	Persist param.Field[bool] `json:"persist"`
}

Log settings for the Worker.

func (ScriptUpdateParamsMetadataObservabilityLogs) MarshalJSON

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

type ScriptUpdateParamsMetadataObservabilityTraces

type ScriptUpdateParamsMetadataObservabilityTraces struct {
	// A list of destinations where traces will be exported to.
	Destinations param.Field[[]string] `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Whether trace persistence is enabled for the Worker.
	Persist param.Field[bool] `json:"persist"`
}

Trace settings for the Worker.

func (ScriptUpdateParamsMetadataObservabilityTraces) MarshalJSON

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

type ScriptUpdateParamsMetadataPlacement

type ScriptUpdateParamsMetadataPlacement struct {
	// TCP host and port for targeted placement.
	Host param.Field[string] `json:"host"`
	// HTTP hostname for targeted placement.
	Hostname param.Field[string] `json:"hostname"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode param.Field[ScriptUpdateParamsMetadataPlacementMode] `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region param.Field[string]      `json:"region"`
	Target param.Field[interface{}] `json:"target"`
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

func (ScriptUpdateParamsMetadataPlacement) MarshalJSON

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

type ScriptUpdateParamsMetadataPlacementMode

type ScriptUpdateParamsMetadataPlacementMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptUpdateParamsMetadataPlacementModeSmart    ScriptUpdateParamsMetadataPlacementMode = "smart"
	ScriptUpdateParamsMetadataPlacementModeTargeted ScriptUpdateParamsMetadataPlacementMode = "targeted"
)

func (ScriptUpdateParamsMetadataPlacementMode) IsKnown

type ScriptUpdateParamsMetadataPlacementObject

type ScriptUpdateParamsMetadataPlacementObject struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode param.Field[ScriptUpdateParamsMetadataPlacementObjectMode] `json:"mode" api:"required"`
}

func (ScriptUpdateParamsMetadataPlacementObject) MarshalJSON

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

type ScriptUpdateParamsMetadataPlacementObjectMode

type ScriptUpdateParamsMetadataPlacementObjectMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptUpdateParamsMetadataPlacementObjectModeSmart ScriptUpdateParamsMetadataPlacementObjectMode = "smart"
)

func (ScriptUpdateParamsMetadataPlacementObjectMode) IsKnown

type ScriptUpdateParamsMetadataPlacementObjectStatus

type ScriptUpdateParamsMetadataPlacementObjectStatus string

Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptUpdateParamsMetadataPlacementObjectStatusSuccess                 ScriptUpdateParamsMetadataPlacementObjectStatus = "SUCCESS"
	ScriptUpdateParamsMetadataPlacementObjectStatusUnsupportedApplication  ScriptUpdateParamsMetadataPlacementObjectStatus = "UNSUPPORTED_APPLICATION"
	ScriptUpdateParamsMetadataPlacementObjectStatusInsufficientInvocations ScriptUpdateParamsMetadataPlacementObjectStatus = "INSUFFICIENT_INVOCATIONS"
)

func (ScriptUpdateParamsMetadataPlacementObjectStatus) IsKnown

type ScriptUpdateParamsMetadataPlacementStatus

type ScriptUpdateParamsMetadataPlacementStatus string

Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptUpdateParamsMetadataPlacementStatusSuccess                 ScriptUpdateParamsMetadataPlacementStatus = "SUCCESS"
	ScriptUpdateParamsMetadataPlacementStatusUnsupportedApplication  ScriptUpdateParamsMetadataPlacementStatus = "UNSUPPORTED_APPLICATION"
	ScriptUpdateParamsMetadataPlacementStatusInsufficientInvocations ScriptUpdateParamsMetadataPlacementStatus = "INSUFFICIENT_INVOCATIONS"
)

func (ScriptUpdateParamsMetadataPlacementStatus) IsKnown

type ScriptUpdateParamsMetadataUsageModel

type ScriptUpdateParamsMetadataUsageModel string

Usage model for the Worker invocations.

const (
	ScriptUpdateParamsMetadataUsageModelStandard ScriptUpdateParamsMetadataUsageModel = "standard"
	ScriptUpdateParamsMetadataUsageModelBundled  ScriptUpdateParamsMetadataUsageModel = "bundled"
	ScriptUpdateParamsMetadataUsageModelUnbound  ScriptUpdateParamsMetadataUsageModel = "unbound"
)

func (ScriptUpdateParamsMetadataUsageModel) IsKnown

type ScriptUpdateResponse

type ScriptUpdateResponse struct {
	StartupTimeMs int64 `json:"startup_time_ms" api:"required"`
	// The name used to identify the script.
	ID string `json:"id"`
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate string `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime. Used to
	// enable upcoming features or opt in or out of specific changes not included in a
	// `compatibility_date`.
	CompatibilityFlags []string `json:"compatibility_flags"`
	// When the script was created.
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// The entry point for the script.
	EntryPoint string `json:"entry_point"`
	// Hashed script content, can be used in a If-None-Match header when updating.
	Etag string `json:"etag"`
	// The names of handlers exported as part of the default export.
	Handlers []string `json:"handlers"`
	// Whether a Worker contains assets.
	HasAssets bool `json:"has_assets"`
	// Whether a Worker contains modules.
	HasModules bool `json:"has_modules"`
	// The client most recently used to deploy this Worker.
	LastDeployedFrom string `json:"last_deployed_from"`
	// Whether Logpush is turned on for the Worker.
	Logpush bool `json:"logpush"`
	// The tag of the Durable Object migration that was most recently applied for this
	// Worker.
	MigrationTag string `json:"migration_tag"`
	// When the script was last modified.
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// Named exports, such as Durable Object class implementations and named
	// entrypoints.
	NamedHandlers []ScriptUpdateResponseNamedHandler `json:"named_handlers"`
	// Observability settings for the Worker.
	Observability ScriptUpdateResponseObservability `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	// Specify mode='smart' for Smart Placement, or one of region/hostname/host.
	Placement ScriptUpdateResponsePlacement `json:"placement"`
	// Deprecated: deprecated
	PlacementMode ScriptUpdateResponsePlacementMode `json:"placement_mode"`
	// Deprecated: deprecated
	PlacementStatus ScriptUpdateResponsePlacementStatus `json:"placement_status"`
	// The immutable ID of the script.
	Tag string `json:"tag"`
	// Tags associated with the Worker.
	Tags []string `json:"tags" api:"nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript `json:"tail_consumers" api:"nullable"`
	// Usage model for the Worker invocations.
	UsageModel ScriptUpdateResponseUsageModel `json:"usage_model"`
	JSON       scriptUpdateResponseJSON       `json:"-"`
}

func (*ScriptUpdateResponse) UnmarshalJSON

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

type ScriptUpdateResponseEnvelope

type ScriptUpdateResponseEnvelope struct {
	Errors   []ScriptUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptUpdateResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptUpdateResponseEnvelope) UnmarshalJSON

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

type ScriptUpdateResponseEnvelopeErrors

type ScriptUpdateResponseEnvelopeErrors struct {
	Code             int64                                    `json:"code" api:"required"`
	Message          string                                   `json:"message" api:"required"`
	DocumentationURL string                                   `json:"documentation_url"`
	Source           ScriptUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptUpdateResponseEnvelopeErrorsSource

type ScriptUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                       `json:"pointer"`
	JSON    scriptUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptUpdateResponseEnvelopeMessages

type ScriptUpdateResponseEnvelopeMessages struct {
	Code             int64                                      `json:"code" api:"required"`
	Message          string                                     `json:"message" api:"required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           ScriptUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptUpdateResponseEnvelopeMessagesSource

type ScriptUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    scriptUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptUpdateResponseEnvelopeSuccess

type ScriptUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptUpdateResponseEnvelopeSuccessTrue ScriptUpdateResponseEnvelopeSuccess = true
)

func (ScriptUpdateResponseEnvelopeSuccess) IsKnown

type ScriptUpdateResponseNamedHandler

type ScriptUpdateResponseNamedHandler struct {
	// The names of handlers exported as part of the named export.
	Handlers []string `json:"handlers"`
	// The name of the export.
	Name string                               `json:"name"`
	JSON scriptUpdateResponseNamedHandlerJSON `json:"-"`
}

func (*ScriptUpdateResponseNamedHandler) UnmarshalJSON

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

type ScriptUpdateResponseObservability

type ScriptUpdateResponseObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%).
	// Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Log settings for the Worker.
	Logs ScriptUpdateResponseObservabilityLogs `json:"logs" api:"nullable"`
	// Trace settings for the Worker.
	Traces ScriptUpdateResponseObservabilityTraces `json:"traces" api:"nullable"`
	JSON   scriptUpdateResponseObservabilityJSON   `json:"-"`
}

Observability settings for the Worker.

func (*ScriptUpdateResponseObservability) UnmarshalJSON

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

type ScriptUpdateResponseObservabilityLogs

type ScriptUpdateResponseObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled bool `json:"enabled" api:"required"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs bool `json:"invocation_logs" api:"required"`
	// A list of destinations where logs will be exported to.
	Destinations []string `json:"destinations"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether log persistence is enabled for the Worker.
	Persist bool                                      `json:"persist"`
	JSON    scriptUpdateResponseObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*ScriptUpdateResponseObservabilityLogs) UnmarshalJSON

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

type ScriptUpdateResponseObservabilityTraces

type ScriptUpdateResponseObservabilityTraces struct {
	// A list of destinations where traces will be exported to.
	Destinations []string `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled bool `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
	HeadSamplingRate float64 `json:"head_sampling_rate" api:"nullable"`
	// Whether trace persistence is enabled for the Worker.
	Persist bool                                        `json:"persist"`
	JSON    scriptUpdateResponseObservabilityTracesJSON `json:"-"`
}

Trace settings for the Worker.

func (*ScriptUpdateResponseObservabilityTraces) UnmarshalJSON

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

type ScriptUpdateResponsePlacement

type ScriptUpdateResponsePlacement struct {
	// TCP host and port for targeted placement.
	Host string `json:"host"`
	// HTTP hostname for targeted placement.
	Hostname string `json:"hostname"`
	// The last time the script was analyzed for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	LastAnalyzedAt time.Time `json:"last_analyzed_at" format:"date-time"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptUpdateResponsePlacementMode `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string `json:"region"`
	// Status of
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Status ScriptUpdateResponsePlacementStatus `json:"status"`
	// This field can have the runtime type of
	// [[]ScriptUpdateResponsePlacementObjectTarget].
	Target interface{}                       `json:"target"`
	JSON   scriptUpdateResponsePlacementJSON `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

func (*ScriptUpdateResponsePlacement) UnmarshalJSON

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

type ScriptUpdateResponsePlacementMode

type ScriptUpdateResponsePlacementMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptUpdateResponsePlacementModeSmart    ScriptUpdateResponsePlacementMode = "smart"
	ScriptUpdateResponsePlacementModeTargeted ScriptUpdateResponsePlacementMode = "targeted"
)

func (ScriptUpdateResponsePlacementMode) IsKnown

type ScriptUpdateResponsePlacementObject

type ScriptUpdateResponsePlacementObject struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptUpdateResponsePlacementObjectMode `json:"mode" api:"required"`
	// The last time the script was analyzed for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	LastAnalyzedAt time.Time `json:"last_analyzed_at" format:"date-time"`
	// Status of
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Status ScriptUpdateResponsePlacementObjectStatus `json:"status"`
	JSON   scriptUpdateResponsePlacementObjectJSON   `json:"-"`
}

func (*ScriptUpdateResponsePlacementObject) UnmarshalJSON

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

type ScriptUpdateResponsePlacementObjectMode

type ScriptUpdateResponsePlacementObjectMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptUpdateResponsePlacementObjectModeSmart ScriptUpdateResponsePlacementObjectMode = "smart"
)

func (ScriptUpdateResponsePlacementObjectMode) IsKnown

type ScriptUpdateResponsePlacementObjectStatus

type ScriptUpdateResponsePlacementObjectStatus string

Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptUpdateResponsePlacementObjectStatusSuccess                 ScriptUpdateResponsePlacementObjectStatus = "SUCCESS"
	ScriptUpdateResponsePlacementObjectStatusUnsupportedApplication  ScriptUpdateResponsePlacementObjectStatus = "UNSUPPORTED_APPLICATION"
	ScriptUpdateResponsePlacementObjectStatusInsufficientInvocations ScriptUpdateResponsePlacementObjectStatus = "INSUFFICIENT_INVOCATIONS"
)

func (ScriptUpdateResponsePlacementObjectStatus) IsKnown

type ScriptUpdateResponsePlacementStatus

type ScriptUpdateResponsePlacementStatus string

Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptUpdateResponsePlacementStatusSuccess                 ScriptUpdateResponsePlacementStatus = "SUCCESS"
	ScriptUpdateResponsePlacementStatusUnsupportedApplication  ScriptUpdateResponsePlacementStatus = "UNSUPPORTED_APPLICATION"
	ScriptUpdateResponsePlacementStatusInsufficientInvocations ScriptUpdateResponsePlacementStatus = "INSUFFICIENT_INVOCATIONS"
)

func (ScriptUpdateResponsePlacementStatus) IsKnown

type ScriptUpdateResponseUsageModel

type ScriptUpdateResponseUsageModel string

Usage model for the Worker invocations.

const (
	ScriptUpdateResponseUsageModelStandard ScriptUpdateResponseUsageModel = "standard"
	ScriptUpdateResponseUsageModelBundled  ScriptUpdateResponseUsageModel = "bundled"
	ScriptUpdateResponseUsageModelUnbound  ScriptUpdateResponseUsageModel = "unbound"
)

func (ScriptUpdateResponseUsageModel) IsKnown

type ScriptUsageModel

type ScriptUsageModel string

Usage model for the Worker invocations.

const (
	ScriptUsageModelStandard ScriptUsageModel = "standard"
	ScriptUsageModelBundled  ScriptUsageModel = "bundled"
	ScriptUsageModelUnbound  ScriptUsageModel = "unbound"
)

func (ScriptUsageModel) IsKnown

func (r ScriptUsageModel) IsKnown() bool

type ScriptVersionGetParams

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

type ScriptVersionGetResponse

type ScriptVersionGetResponse struct {
	Resources ScriptVersionGetResponseResources `json:"resources" api:"required"`
	// Unique identifier for the version.
	ID       string                           `json:"id"`
	Metadata ScriptVersionGetResponseMetadata `json:"metadata"`
	// Sequential version number.
	Number float64                      `json:"number"`
	JSON   scriptVersionGetResponseJSON `json:"-"`
}

func (*ScriptVersionGetResponse) UnmarshalJSON

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

type ScriptVersionGetResponseEnvelope

type ScriptVersionGetResponseEnvelope struct {
	Errors   []ScriptVersionGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptVersionGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptVersionGetResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptVersionGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptVersionGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptVersionGetResponseEnvelope) UnmarshalJSON

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

type ScriptVersionGetResponseEnvelopeErrors

type ScriptVersionGetResponseEnvelopeErrors struct {
	Code             int64                                        `json:"code" api:"required"`
	Message          string                                       `json:"message" api:"required"`
	DocumentationURL string                                       `json:"documentation_url"`
	Source           ScriptVersionGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptVersionGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptVersionGetResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptVersionGetResponseEnvelopeErrorsSource

type ScriptVersionGetResponseEnvelopeErrorsSource struct {
	Pointer string                                           `json:"pointer"`
	JSON    scriptVersionGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptVersionGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptVersionGetResponseEnvelopeMessages

type ScriptVersionGetResponseEnvelopeMessages struct {
	Code             int64                                          `json:"code" api:"required"`
	Message          string                                         `json:"message" api:"required"`
	DocumentationURL string                                         `json:"documentation_url"`
	Source           ScriptVersionGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptVersionGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptVersionGetResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptVersionGetResponseEnvelopeMessagesSource

type ScriptVersionGetResponseEnvelopeMessagesSource struct {
	Pointer string                                             `json:"pointer"`
	JSON    scriptVersionGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptVersionGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptVersionGetResponseEnvelopeSuccess

type ScriptVersionGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptVersionGetResponseEnvelopeSuccessTrue ScriptVersionGetResponseEnvelopeSuccess = true
)

func (ScriptVersionGetResponseEnvelopeSuccess) IsKnown

type ScriptVersionGetResponseMetadata

type ScriptVersionGetResponseMetadata struct {
	// Email of the user who created the version.
	AuthorEmail string `json:"author_email"`
	// Identifier of the user who created the version.
	AuthorID string `json:"author_id"`
	// When the version was created.
	CreatedOn string `json:"created_on"`
	// Whether the version can be previewed.
	HasPreview bool `json:"hasPreview"`
	// When the version was last modified.
	ModifiedOn string `json:"modified_on"`
	// The source of the version upload.
	Source ScriptVersionGetResponseMetadataSource `json:"source"`
	JSON   scriptVersionGetResponseMetadataJSON   `json:"-"`
}

func (*ScriptVersionGetResponseMetadata) UnmarshalJSON

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

type ScriptVersionGetResponseMetadataSource

type ScriptVersionGetResponseMetadataSource string

The source of the version upload.

const (
	ScriptVersionGetResponseMetadataSourceUnknown      ScriptVersionGetResponseMetadataSource = "unknown"
	ScriptVersionGetResponseMetadataSourceAPI          ScriptVersionGetResponseMetadataSource = "api"
	ScriptVersionGetResponseMetadataSourceWrangler     ScriptVersionGetResponseMetadataSource = "wrangler"
	ScriptVersionGetResponseMetadataSourceTerraform    ScriptVersionGetResponseMetadataSource = "terraform"
	ScriptVersionGetResponseMetadataSourceDash         ScriptVersionGetResponseMetadataSource = "dash"
	ScriptVersionGetResponseMetadataSourceDashTemplate ScriptVersionGetResponseMetadataSource = "dash_template"
	ScriptVersionGetResponseMetadataSourceIntegration  ScriptVersionGetResponseMetadataSource = "integration"
	ScriptVersionGetResponseMetadataSourceQuickEditor  ScriptVersionGetResponseMetadataSource = "quick_editor"
	ScriptVersionGetResponseMetadataSourcePlayground   ScriptVersionGetResponseMetadataSource = "playground"
	ScriptVersionGetResponseMetadataSourceWorkersci    ScriptVersionGetResponseMetadataSource = "workersci"
)

func (ScriptVersionGetResponseMetadataSource) IsKnown

type ScriptVersionGetResponseResources

type ScriptVersionGetResponseResources struct {
	// List of bindings attached to a Worker. You can find more about bindings on our
	// docs:
	// https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
	Bindings []ScriptVersionGetResponseResourcesBinding `json:"bindings"`
	Script   ScriptVersionGetResponseResourcesScript    `json:"script"`
	// Runtime configuration for the Worker.
	ScriptRuntime ScriptVersionGetResponseResourcesScriptRuntime `json:"script_runtime"`
	JSON          scriptVersionGetResponseResourcesJSON          `json:"-"`
}

func (*ScriptVersionGetResponseResources) UnmarshalJSON

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

type ScriptVersionGetResponseResourcesBinding

type ScriptVersionGetResponseResourcesBinding struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsType `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID string `json:"id"`
	// This field can have the runtime type of [interface{}].
	Algorithm interface{} `json:"algorithm"`
	// This field can have the runtime type of [[]string].
	AllowedDestinationAddresses interface{} `json:"allowed_destination_addresses"`
	// This field can have the runtime type of [[]string].
	AllowedSenderAddresses interface{} `json:"allowed_sender_addresses"`
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID string `json:"app_id"`
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// Identifier of the D1 database to bind to.
	DatabaseID string `json:"database_id"`
	// The name of the dataset to bind to.
	Dataset string `json:"dataset"`
	// Destination address for the email.
	DestinationAddress string `json:"destination_address" format:"email"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace string `json:"dispatch_namespace"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint string `json:"entrypoint"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptVersionGetResponseResourcesBindingsFormat `json:"format"`
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name"`
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName string `json:"instance_name"`
	// This field can have the runtime type of [interface{}].
	Json interface{} `json:"json"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction ScriptVersionGetResponseResourcesBindingsJurisdiction `json:"jurisdiction"`
	// This field can have the runtime type of [interface{}].
	KeyJwk interface{} `json:"key_jwk"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID string `json:"network_id"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName string `json:"old_name"`
	// This field can have the runtime type of
	// [ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound].
	Outbound interface{} `json:"outbound"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName string `json:"script_name"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name"`
	// Name of Worker to bind to.
	Service string `json:"service"`
	// Identifier of the VPC service to bind to.
	ServiceID string `json:"service_id"`
	// This field can have the runtime type of
	// [ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitSimple].
	Simple interface{} `json:"simple"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id"`
	// The text value to use.
	Text string `json:"text"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID string `json:"tunnel_id"`
	// This field can have the runtime type of
	// [[]ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage].
	Usages interface{} `json:"usages"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID string `json:"version_id"`
	// Name of the Workflow to bind to.
	WorkflowName string                                       `json:"workflow_name"`
	JSON         scriptVersionGetResponseResourcesBindingJSON `json:"-"`
	// contains filtered or unexported fields
}

A binding to allow the Worker to communicate with resources.

func (ScriptVersionGetResponseResourcesBinding) AsUnion

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

Possible runtime types of the union are ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAI, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearch, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngine, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssets, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowser, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlob, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdrive, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInherit, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImages, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJson, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMedia, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificate, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainText, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelines, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueue, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimit, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2Bucket, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretText, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmail, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindService, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlob, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorize, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadata, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagship, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKey, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflow, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModule, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCService, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetwork.

func (*ScriptVersionGetResponseResourcesBinding) UnmarshalJSON

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

type ScriptVersionGetResponseResourcesBindingsFormat

type ScriptVersionGetResponseResourcesBindingsFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptVersionGetResponseResourcesBindingsFormatRaw   ScriptVersionGetResponseResourcesBindingsFormat = "raw"
	ScriptVersionGetResponseResourcesBindingsFormatPkcs8 ScriptVersionGetResponseResourcesBindingsFormat = "pkcs8"
	ScriptVersionGetResponseResourcesBindingsFormatSpki  ScriptVersionGetResponseResourcesBindingsFormat = "spki"
	ScriptVersionGetResponseResourcesBindingsFormatJwk   ScriptVersionGetResponseResourcesBindingsFormat = "jwk"
)

func (ScriptVersionGetResponseResourcesBindingsFormat) IsKnown

type ScriptVersionGetResponseResourcesBindingsJurisdiction

type ScriptVersionGetResponseResourcesBindingsJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptVersionGetResponseResourcesBindingsJurisdictionEu          ScriptVersionGetResponseResourcesBindingsJurisdiction = "eu"
	ScriptVersionGetResponseResourcesBindingsJurisdictionFedramp     ScriptVersionGetResponseResourcesBindingsJurisdiction = "fedramp"
	ScriptVersionGetResponseResourcesBindingsJurisdictionFedrampHigh ScriptVersionGetResponseResourcesBindingsJurisdiction = "fedramp-high"
)

func (ScriptVersionGetResponseResourcesBindingsJurisdiction) IsKnown

type ScriptVersionGetResponseResourcesBindingsType

type ScriptVersionGetResponseResourcesBindingsType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsTypeAI                     ScriptVersionGetResponseResourcesBindingsType = "ai"
	ScriptVersionGetResponseResourcesBindingsTypeAISearch               ScriptVersionGetResponseResourcesBindingsType = "ai_search"
	ScriptVersionGetResponseResourcesBindingsTypeAISearchNamespace      ScriptVersionGetResponseResourcesBindingsType = "ai_search_namespace"
	ScriptVersionGetResponseResourcesBindingsTypeAnalyticsEngine        ScriptVersionGetResponseResourcesBindingsType = "analytics_engine"
	ScriptVersionGetResponseResourcesBindingsTypeAssets                 ScriptVersionGetResponseResourcesBindingsType = "assets"
	ScriptVersionGetResponseResourcesBindingsTypeBrowser                ScriptVersionGetResponseResourcesBindingsType = "browser"
	ScriptVersionGetResponseResourcesBindingsTypeD1                     ScriptVersionGetResponseResourcesBindingsType = "d1"
	ScriptVersionGetResponseResourcesBindingsTypeDataBlob               ScriptVersionGetResponseResourcesBindingsType = "data_blob"
	ScriptVersionGetResponseResourcesBindingsTypeDispatchNamespace      ScriptVersionGetResponseResourcesBindingsType = "dispatch_namespace"
	ScriptVersionGetResponseResourcesBindingsTypeDurableObjectNamespace ScriptVersionGetResponseResourcesBindingsType = "durable_object_namespace"
	ScriptVersionGetResponseResourcesBindingsTypeHyperdrive             ScriptVersionGetResponseResourcesBindingsType = "hyperdrive"
	ScriptVersionGetResponseResourcesBindingsTypeInherit                ScriptVersionGetResponseResourcesBindingsType = "inherit"
	ScriptVersionGetResponseResourcesBindingsTypeImages                 ScriptVersionGetResponseResourcesBindingsType = "images"
	ScriptVersionGetResponseResourcesBindingsTypeJson                   ScriptVersionGetResponseResourcesBindingsType = "json"
	ScriptVersionGetResponseResourcesBindingsTypeKVNamespace            ScriptVersionGetResponseResourcesBindingsType = "kv_namespace"
	ScriptVersionGetResponseResourcesBindingsTypeMedia                  ScriptVersionGetResponseResourcesBindingsType = "media"
	ScriptVersionGetResponseResourcesBindingsTypeMTLSCertificate        ScriptVersionGetResponseResourcesBindingsType = "mtls_certificate"
	ScriptVersionGetResponseResourcesBindingsTypePlainText              ScriptVersionGetResponseResourcesBindingsType = "plain_text"
	ScriptVersionGetResponseResourcesBindingsTypePipelines              ScriptVersionGetResponseResourcesBindingsType = "pipelines"
	ScriptVersionGetResponseResourcesBindingsTypeQueue                  ScriptVersionGetResponseResourcesBindingsType = "queue"
	ScriptVersionGetResponseResourcesBindingsTypeRatelimit              ScriptVersionGetResponseResourcesBindingsType = "ratelimit"
	ScriptVersionGetResponseResourcesBindingsTypeR2Bucket               ScriptVersionGetResponseResourcesBindingsType = "r2_bucket"
	ScriptVersionGetResponseResourcesBindingsTypeSecretText             ScriptVersionGetResponseResourcesBindingsType = "secret_text"
	ScriptVersionGetResponseResourcesBindingsTypeSendEmail              ScriptVersionGetResponseResourcesBindingsType = "send_email"
	ScriptVersionGetResponseResourcesBindingsTypeService                ScriptVersionGetResponseResourcesBindingsType = "service"
	ScriptVersionGetResponseResourcesBindingsTypeTextBlob               ScriptVersionGetResponseResourcesBindingsType = "text_blob"
	ScriptVersionGetResponseResourcesBindingsTypeVectorize              ScriptVersionGetResponseResourcesBindingsType = "vectorize"
	ScriptVersionGetResponseResourcesBindingsTypeVersionMetadata        ScriptVersionGetResponseResourcesBindingsType = "version_metadata"
	ScriptVersionGetResponseResourcesBindingsTypeSecretsStoreSecret     ScriptVersionGetResponseResourcesBindingsType = "secrets_store_secret"
	ScriptVersionGetResponseResourcesBindingsTypeFlagship               ScriptVersionGetResponseResourcesBindingsType = "flagship"
	ScriptVersionGetResponseResourcesBindingsTypeSecretKey              ScriptVersionGetResponseResourcesBindingsType = "secret_key"
	ScriptVersionGetResponseResourcesBindingsTypeWorkflow               ScriptVersionGetResponseResourcesBindingsType = "workflow"
	ScriptVersionGetResponseResourcesBindingsTypeWasmModule             ScriptVersionGetResponseResourcesBindingsType = "wasm_module"
	ScriptVersionGetResponseResourcesBindingsTypeVPCService             ScriptVersionGetResponseResourcesBindingsType = "vpc_service"
	ScriptVersionGetResponseResourcesBindingsTypeVPCNetwork             ScriptVersionGetResponseResourcesBindingsType = "vpc_network"
)

func (ScriptVersionGetResponseResourcesBindingsType) IsKnown

type ScriptVersionGetResponseResourcesBindingsUnion

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

A binding to allow the Worker to communicate with resources.

Union satisfied by ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAI, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearch, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngine, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssets, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowser, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlob, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdrive, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInherit, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImages, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJson, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMedia, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificate, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainText, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelines, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueue, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimit, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2Bucket, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretText, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmail, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindService, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlob, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorize, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadata, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagship, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKey, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflow, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModule, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCService or ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetwork.

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAI

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAIType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindAIJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAI) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearch

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearch struct {
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName string `json:"instance_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchType `json:"type" api:"required"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace string                                                                  `json:"namespace"`
	JSON      scriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearch) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespace

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The user-chosen namespace name. Must exist before deploy -- Wrangler handles
	// auto-creation on deploy failure (R2 bucket pattern). The "default" namespace is
	// auto-created by config-api for new accounts. Grants full access (CRUD + search +
	// chat) to all instances within the namespace.
	Namespace string `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespaceType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespaceJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespace) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespaceType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespaceTypeAISearchNamespace ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespaceType = "ai_search_namespace"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchNamespaceType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchTypeAISearch ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchType = "ai_search"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAISearchType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAIType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAITypeAI ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAIType = "ai"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAIType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngine

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngine struct {
	// The name of the dataset to bind to.
	Dataset string `json:"dataset" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngineJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssets

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssets struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssetsType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindAssetsJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssets) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssetsType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssetsTypeAssets ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssetsType = "assets"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssetsType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowser

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowser struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowserType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowserJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowser) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowserType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowserType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowserTypeBrowser ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowserType = "browser"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowserType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1 struct {
	// Identifier of the D1 database to bind to.
	DatabaseID string `json:"database_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1Type `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID   string                                                            `json:"id"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindD1JSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1Type

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1TypeD1 ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1Type = "d1"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1Type) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlob

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlob) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespace

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the dispatch namespace.
	Namespace string `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType `json:"type" api:"required"`
	// Outbound worker.
	Outbound ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"`
	JSON     scriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceJSON     `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params []ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundParam `json:"params"`
	// Outbound worker.
	Worker ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   scriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundParam

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundParam struct {
	// Name of the parameter.
	Name string                                                                                        `json:"name" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundParamJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundParam) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Entrypoint to invoke on the outbound worker.
	Entrypoint string `json:"entrypoint"`
	// Environment of the outbound worker.
	Environment string `json:"environment"`
	// Name of the outbound worker.
	Service string                                                                                         `json:"service"`
	JSON    scriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"`
}

Outbound worker.

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType `json:"type" api:"required"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace string `json:"dispatch_namespace"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName string                                                                                `json:"script_name"`
	JSON       scriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceTypeDurableObjectNamespace ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType = "durable_object_namespace"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagship

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagship struct {
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID string `json:"app_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagshipType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagshipJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagship) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagshipType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagshipType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagshipTypeFlagship ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagshipType = "flagship"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindFlagshipType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdrive

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID string `json:"id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdriveType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdriveJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdrive) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdriveType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdriveTypeHyperdrive ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdriveType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImages

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImages) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesTypeImages ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInherit

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritType `json:"type" api:"required"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName string `json:"old_name"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID string                                                                 `json:"version_id"`
	JSON      scriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInherit) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritTypeInherit ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJson

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json interface{} `json:"json" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJsonType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindJsonJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJson) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJsonType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJsonTypeJson ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJsonType = "json"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJsonType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespace

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespaceType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespaceJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespace) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespaceType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespaceTypeKVNamespace ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespaceType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificate

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificate struct {
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificateType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificateJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificate) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificateType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificateType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificateTypeMTLSCertificate ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificateType = "mtls_certificate"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificateType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMedia

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMedia struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMediaType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindMediaJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMedia) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMediaType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMediaType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMediaTypeMedia ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMediaType = "media"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMediaType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelines

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelinesType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelinesJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelines) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelinesType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelinesType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelinesTypePipelines ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelinesType = "pipelines"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelinesType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainText

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The text value to use.
	Text string `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainTextType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainTextJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainText) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainTextType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainTextTypePlainText ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainTextType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueue

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueue struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueueType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindQueueJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueue) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueueType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueueTypeQueue ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueueType = "queue"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueueType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2Bucket

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2Bucket struct {
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketType `json:"type" api:"required"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction `json:"jurisdiction"`
	JSON         scriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJSON         `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2Bucket) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdictionEu          ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction = "eu"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdictionFedramp     ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdictionFedrampHigh ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp-high"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimit

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimit struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Identifier of the rate limit namespace to bind to.
	NamespaceID string `json:"namespace_id" api:"required"`
	// The rate limit configuration.
	Simple ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitSimple `json:"simple" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimit) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitSimple

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitSimple struct {
	// The limit (requests per period).
	Limit float64 `json:"limit" api:"required"`
	// The period in seconds.
	Period int64 `json:"period" api:"required"`
	// Duration in seconds to apply the mitigation action after the rate limit is
	// exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400.
	// Must be greater than or equal to the period when non-zero.
	MitigationTimeout int64                                                                          `json:"mitigation_timeout"`
	JSON              scriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitSimpleJSON `json:"-"`
}

The rate limit configuration.

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitSimple) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitTypeRatelimit ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitType = "ratelimit"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindRatelimitType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKey

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm interface{} `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormat `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyType `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage `json:"usages" api:"required"`
	JSON   scriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyJSON    `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKey) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormat

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormatRaw   ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormat = "raw"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormatPkcs8 ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormatSpki  ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormat = "spki"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormatJwk   ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyTypeSecretKey ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage string
const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsageEncrypt    ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsageDecrypt    ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsageSign       ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "sign"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsageVerify     ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "verify"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsageDeriveKey  ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsageDeriveBits ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsageWrapKey    ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretText

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretTextType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretTextJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretText) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretTextType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretTextTypeSecretText ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretTextType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name" api:"required"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretTypeSecretsStoreSecret ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType = "secrets_store_secret"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmail

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailType `json:"type" api:"required"`
	// List of allowed destination addresses.
	AllowedDestinationAddresses []string `json:"allowed_destination_addresses" format:"email"`
	// List of allowed sender addresses.
	AllowedSenderAddresses []string `json:"allowed_sender_addresses" format:"email"`
	// Destination address for the email.
	DestinationAddress string                                                                   `json:"destination_address" format:"email"`
	JSON               scriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmail) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindService

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of Worker to bind to.
	Service string `json:"service" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindServiceType `json:"type" api:"required"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint string `json:"entrypoint"`
	// Optional environment if the Worker utilizes one.
	Environment string                                                                 `json:"environment"`
	JSON        scriptVersionGetResponseResourcesBindingsWorkersBindingKindServiceJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindService) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindServiceType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindServiceTypeService ScriptVersionGetResponseResourcesBindingsWorkersBindingKindServiceType = "service"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindServiceType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlob

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlob) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetwork

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetwork struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetworkType `json:"type" api:"required"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID string `json:"network_id"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID string                                                                    `json:"tunnel_id"`
	JSON     scriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetworkJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetwork) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetworkType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetworkType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetworkTypeVPCNetwork ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetworkType = "vpc_network"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCNetworkType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCService

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Identifier of the VPC service to bind to.
	ServiceID string `json:"service_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCServiceType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCServiceJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCService) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCServiceType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCServiceType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCServiceTypeVPCService ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCServiceType = "vpc_service"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVPCServiceType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorize

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorizeType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorizeJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorize) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorizeType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorizeTypeVectorize ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorizeType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadata

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadata struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadataType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadataJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadataType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadataType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModule

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleType `json:"type" api:"required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModule) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleType) IsKnown

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflow

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflowType `json:"type" api:"required"`
	// Name of the Workflow to bind to.
	WorkflowName string `json:"workflow_name" api:"required"`
	// Class name of the Workflow. Should only be provided if the Workflow belongs to
	// this script.
	ClassName string `json:"class_name"`
	// Script name that contains the Workflow. If not provided, defaults to this script
	// name.
	ScriptName string                                                                  `json:"script_name"`
	JSON       scriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflowJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflow) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflowType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflowType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflowTypeWorkflow ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflowType = "workflow"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflowType) IsKnown

type ScriptVersionGetResponseResourcesScript

type ScriptVersionGetResponseResourcesScript struct {
	// Hashed script content
	Etag string `json:"etag"`
	// The names of handlers exported as part of the default export.
	Handlers []string `json:"handlers"`
	// The client most recently used to deploy this Worker.
	LastDeployedFrom string `json:"last_deployed_from"`
	// Named exports, such as Durable Object class implementations and named
	// entrypoints.
	NamedHandlers []ScriptVersionGetResponseResourcesScriptNamedHandler `json:"named_handlers"`
	JSON          scriptVersionGetResponseResourcesScriptJSON           `json:"-"`
}

func (*ScriptVersionGetResponseResourcesScript) UnmarshalJSON

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

type ScriptVersionGetResponseResourcesScriptNamedHandler

type ScriptVersionGetResponseResourcesScriptNamedHandler struct {
	// The names of handlers exported as part of the named export.
	Handlers []string `json:"handlers"`
	// The name of the exported class or entrypoint.
	Name string                                                  `json:"name"`
	JSON scriptVersionGetResponseResourcesScriptNamedHandlerJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesScriptNamedHandler) UnmarshalJSON

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

type ScriptVersionGetResponseResourcesScriptRuntime

type ScriptVersionGetResponseResourcesScriptRuntime struct {
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate string `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime.
	CompatibilityFlags []string `json:"compatibility_flags"`
	// Resource limits for the Worker.
	Limits ScriptVersionGetResponseResourcesScriptRuntimeLimits `json:"limits"`
	// The tag of the Durable Object migration that was most recently applied for this
	// Worker.
	MigrationTag string `json:"migration_tag"`
	// Usage model for the Worker invocations.
	UsageModel ScriptVersionGetResponseResourcesScriptRuntimeUsageModel `json:"usage_model"`
	JSON       scriptVersionGetResponseResourcesScriptRuntimeJSON       `json:"-"`
}

Runtime configuration for the Worker.

func (*ScriptVersionGetResponseResourcesScriptRuntime) UnmarshalJSON

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

type ScriptVersionGetResponseResourcesScriptRuntimeLimits

type ScriptVersionGetResponseResourcesScriptRuntimeLimits struct {
	// The amount of CPU time this Worker can use in milliseconds.
	CPUMs int64                                                    `json:"cpu_ms"`
	JSON  scriptVersionGetResponseResourcesScriptRuntimeLimitsJSON `json:"-"`
}

Resource limits for the Worker.

func (*ScriptVersionGetResponseResourcesScriptRuntimeLimits) UnmarshalJSON

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

type ScriptVersionGetResponseResourcesScriptRuntimeUsageModel

type ScriptVersionGetResponseResourcesScriptRuntimeUsageModel string

Usage model for the Worker invocations.

const (
	ScriptVersionGetResponseResourcesScriptRuntimeUsageModelBundled  ScriptVersionGetResponseResourcesScriptRuntimeUsageModel = "bundled"
	ScriptVersionGetResponseResourcesScriptRuntimeUsageModelUnbound  ScriptVersionGetResponseResourcesScriptRuntimeUsageModel = "unbound"
	ScriptVersionGetResponseResourcesScriptRuntimeUsageModelStandard ScriptVersionGetResponseResourcesScriptRuntimeUsageModel = "standard"
)

func (ScriptVersionGetResponseResourcesScriptRuntimeUsageModel) IsKnown

type ScriptVersionListParams

type ScriptVersionListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Only return versions that can be used in a deployment. Ignores pagination.
	Deployable param.Field[bool] `query:"deployable"`
	// Current page.
	Page param.Field[int64] `query:"page"`
	// Items per-page.
	PerPage param.Field[int64] `query:"per_page"`
}

func (ScriptVersionListParams) URLQuery

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

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

type ScriptVersionListResponse

type ScriptVersionListResponse struct {
	// Unique identifier for the version.
	ID       string                            `json:"id"`
	Metadata ScriptVersionListResponseMetadata `json:"metadata"`
	// Sequential version number.
	Number float64                       `json:"number"`
	JSON   scriptVersionListResponseJSON `json:"-"`
}

func (*ScriptVersionListResponse) UnmarshalJSON

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

type ScriptVersionListResponseMetadata

type ScriptVersionListResponseMetadata struct {
	// Email of the user who created the version.
	AuthorEmail string `json:"author_email"`
	// Identifier of the user who created the version.
	AuthorID string `json:"author_id"`
	// When the version was created.
	CreatedOn string `json:"created_on"`
	// Whether the version can be previewed.
	HasPreview bool `json:"hasPreview"`
	// When the version was last modified.
	ModifiedOn string `json:"modified_on"`
	// The source of the version upload.
	Source ScriptVersionListResponseMetadataSource `json:"source"`
	JSON   scriptVersionListResponseMetadataJSON   `json:"-"`
}

func (*ScriptVersionListResponseMetadata) UnmarshalJSON

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

type ScriptVersionListResponseMetadataSource

type ScriptVersionListResponseMetadataSource string

The source of the version upload.

const (
	ScriptVersionListResponseMetadataSourceUnknown      ScriptVersionListResponseMetadataSource = "unknown"
	ScriptVersionListResponseMetadataSourceAPI          ScriptVersionListResponseMetadataSource = "api"
	ScriptVersionListResponseMetadataSourceWrangler     ScriptVersionListResponseMetadataSource = "wrangler"
	ScriptVersionListResponseMetadataSourceTerraform    ScriptVersionListResponseMetadataSource = "terraform"
	ScriptVersionListResponseMetadataSourceDash         ScriptVersionListResponseMetadataSource = "dash"
	ScriptVersionListResponseMetadataSourceDashTemplate ScriptVersionListResponseMetadataSource = "dash_template"
	ScriptVersionListResponseMetadataSourceIntegration  ScriptVersionListResponseMetadataSource = "integration"
	ScriptVersionListResponseMetadataSourceQuickEditor  ScriptVersionListResponseMetadataSource = "quick_editor"
	ScriptVersionListResponseMetadataSourcePlayground   ScriptVersionListResponseMetadataSource = "playground"
	ScriptVersionListResponseMetadataSourceWorkersci    ScriptVersionListResponseMetadataSource = "workersci"
)

func (ScriptVersionListResponseMetadataSource) IsKnown

type ScriptVersionNewParams

type ScriptVersionNewParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// JSON-encoded metadata about the uploaded parts and Worker configuration.
	Metadata param.Field[ScriptVersionNewParamsMetadata] `json:"metadata" api:"required"`
	// When set to "strict", the upload will fail if any `inherit` type bindings cannot
	// be resolved against the previous version of the Worker. Without this,
	// unresolvable inherit bindings are silently dropped.
	BindingsInherit param.Field[ScriptVersionNewParamsBindingsInherit] `query:"bindings_inherit"`
	// An array of modules (often JavaScript files) comprising a Worker script. At
	// least one module must be present and referenced in the metadata as `main_module`
	// or `body_part` by filename.<br/>Possible Content-Type(s) are:
	// `application/javascript+module`, `text/javascript+module`,
	// `application/javascript`, `text/javascript`, `text/x-python`,
	// `text/x-python-requirement`, `application/wasm`, `text/plain`,
	// `application/octet-stream`, `application/source-map`.
	Files param.Field[[]io.Reader] `json:"files" format:"binary"`
}

func (ScriptVersionNewParams) MarshalMultipart

func (r ScriptVersionNewParams) MarshalMultipart() (data []byte, contentType string, err error)

func (ScriptVersionNewParams) URLQuery

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

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

type ScriptVersionNewParamsBindingsInherit

type ScriptVersionNewParamsBindingsInherit string

When set to "strict", the upload will fail if any `inherit` type bindings cannot be resolved against the previous version of the Worker. Without this, unresolvable inherit bindings are silently dropped.

const (
	ScriptVersionNewParamsBindingsInheritStrict ScriptVersionNewParamsBindingsInherit = "strict"
)

func (ScriptVersionNewParamsBindingsInherit) IsKnown

type ScriptVersionNewParamsMetadata

type ScriptVersionNewParamsMetadata struct {
	// Name of the uploaded file that contains the main module (e.g. the file exporting
	// a `fetch` handler). Indicates a `module syntax` Worker, which is required for
	// Version Upload.
	MainModule  param.Field[string]                                    `json:"main_module" api:"required"`
	Annotations param.Field[ScriptVersionNewParamsMetadataAnnotations] `json:"annotations"`
	// List of bindings attached to a Worker. You can find more about bindings on our
	// docs:
	// https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
	Bindings param.Field[[]ScriptVersionNewParamsMetadataBindingUnion] `json:"bindings"`
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate param.Field[string] `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime. Used to
	// enable upcoming features or opt in or out of specific changes not included in a
	// `compatibility_date`.
	CompatibilityFlags param.Field[[]string] `json:"compatibility_flags"`
	// List of binding types to keep from previous_upload.
	KeepBindings param.Field[[]string] `json:"keep_bindings"`
	// Usage model for the Worker invocations.
	UsageModel param.Field[ScriptVersionNewParamsMetadataUsageModel] `json:"usage_model"`
}

JSON-encoded metadata about the uploaded parts and Worker configuration.

func (ScriptVersionNewParamsMetadata) MarshalJSON

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

type ScriptVersionNewParamsMetadataAnnotations

type ScriptVersionNewParamsMetadataAnnotations struct {
	// Associated alias for a version.
	WorkersAlias param.Field[string] `json:"workers/alias"`
	// Human-readable message about the version. Truncated to 1000 bytes if longer.
	WorkersMessage param.Field[string] `json:"workers/message"`
	// User-provided identifier for the version. Maximum 100 bytes.
	WorkersTag param.Field[string] `json:"workers/tag"`
}

func (ScriptVersionNewParamsMetadataAnnotations) MarshalJSON

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

type ScriptVersionNewParamsMetadataBinding

type ScriptVersionNewParamsMetadataBinding struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsType] `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID                          param.Field[string]      `json:"id"`
	Algorithm                   param.Field[interface{}] `json:"algorithm"`
	AllowedDestinationAddresses param.Field[interface{}] `json:"allowed_destination_addresses"`
	AllowedSenderAddresses      param.Field[interface{}] `json:"allowed_sender_addresses"`
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID param.Field[string] `json:"app_id"`
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID param.Field[string] `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// Identifier of the D1 database to bind to.
	DatabaseID param.Field[string] `json:"database_id"`
	// The name of the dataset to bind to.
	Dataset param.Field[string] `json:"dataset"`
	// Destination address for the email.
	DestinationAddress param.Field[string] `json:"destination_address" format:"email"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace param.Field[string] `json:"dispatch_namespace"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// The environment of the script_name to bind to.
	Environment param.Field[string] `json:"environment"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[ScriptVersionNewParamsMetadataBindingsFormat] `json:"format"`
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name"`
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName param.Field[string]      `json:"instance_name"`
	Json         param.Field[interface{}] `json:"json"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction param.Field[ScriptVersionNewParamsMetadataBindingsJurisdiction] `json:"jurisdiction"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string]      `json:"key_base64"`
	KeyJwk    param.Field[interface{}] `json:"key_jwk"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace param.Field[string] `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID param.Field[string] `json:"network_id"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName  param.Field[string]      `json:"old_name"`
	Outbound param.Field[interface{}] `json:"outbound"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName param.Field[string] `json:"script_name"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service"`
	// Identifier of the VPC service to bind to.
	ServiceID param.Field[string]      `json:"service_id"`
	Simple    param.Field[interface{}] `json:"simple"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id"`
	// The text value to use.
	Text param.Field[string] `json:"text"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID param.Field[string]      `json:"tunnel_id"`
	Usages   param.Field[interface{}] `json:"usages"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID param.Field[string] `json:"version_id"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name"`
}

A binding to allow the Worker to communicate with resources.

func (ScriptVersionNewParamsMetadataBinding) MarshalJSON

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

type ScriptVersionNewParamsMetadataBindingUnion

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

A binding to allow the Worker to communicate with resources.

Satisfied by workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAI, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearch, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchNamespace, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngine, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssets, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowser, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlob, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespace, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespace, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdrive, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInherit, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImages, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespace, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMedia, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificate, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainText, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelines, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueue, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimit, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2Bucket, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretText, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmail, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindService, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlob, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorize, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadata, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecret, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindFlagship, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKey, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflow, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModule, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCService, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCNetwork, ScriptVersionNewParamsMetadataBinding.

type ScriptVersionNewParamsMetadataBindingsFormat

type ScriptVersionNewParamsMetadataBindingsFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptVersionNewParamsMetadataBindingsFormatRaw   ScriptVersionNewParamsMetadataBindingsFormat = "raw"
	ScriptVersionNewParamsMetadataBindingsFormatPkcs8 ScriptVersionNewParamsMetadataBindingsFormat = "pkcs8"
	ScriptVersionNewParamsMetadataBindingsFormatSpki  ScriptVersionNewParamsMetadataBindingsFormat = "spki"
	ScriptVersionNewParamsMetadataBindingsFormatJwk   ScriptVersionNewParamsMetadataBindingsFormat = "jwk"
)

func (ScriptVersionNewParamsMetadataBindingsFormat) IsKnown

type ScriptVersionNewParamsMetadataBindingsJurisdiction

type ScriptVersionNewParamsMetadataBindingsJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptVersionNewParamsMetadataBindingsJurisdictionEu          ScriptVersionNewParamsMetadataBindingsJurisdiction = "eu"
	ScriptVersionNewParamsMetadataBindingsJurisdictionFedramp     ScriptVersionNewParamsMetadataBindingsJurisdiction = "fedramp"
	ScriptVersionNewParamsMetadataBindingsJurisdictionFedrampHigh ScriptVersionNewParamsMetadataBindingsJurisdiction = "fedramp-high"
)

func (ScriptVersionNewParamsMetadataBindingsJurisdiction) IsKnown

type ScriptVersionNewParamsMetadataBindingsType

type ScriptVersionNewParamsMetadataBindingsType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsTypeAI                     ScriptVersionNewParamsMetadataBindingsType = "ai"
	ScriptVersionNewParamsMetadataBindingsTypeAISearch               ScriptVersionNewParamsMetadataBindingsType = "ai_search"
	ScriptVersionNewParamsMetadataBindingsTypeAISearchNamespace      ScriptVersionNewParamsMetadataBindingsType = "ai_search_namespace"
	ScriptVersionNewParamsMetadataBindingsTypeAnalyticsEngine        ScriptVersionNewParamsMetadataBindingsType = "analytics_engine"
	ScriptVersionNewParamsMetadataBindingsTypeAssets                 ScriptVersionNewParamsMetadataBindingsType = "assets"
	ScriptVersionNewParamsMetadataBindingsTypeBrowser                ScriptVersionNewParamsMetadataBindingsType = "browser"
	ScriptVersionNewParamsMetadataBindingsTypeD1                     ScriptVersionNewParamsMetadataBindingsType = "d1"
	ScriptVersionNewParamsMetadataBindingsTypeDataBlob               ScriptVersionNewParamsMetadataBindingsType = "data_blob"
	ScriptVersionNewParamsMetadataBindingsTypeDispatchNamespace      ScriptVersionNewParamsMetadataBindingsType = "dispatch_namespace"
	ScriptVersionNewParamsMetadataBindingsTypeDurableObjectNamespace ScriptVersionNewParamsMetadataBindingsType = "durable_object_namespace"
	ScriptVersionNewParamsMetadataBindingsTypeHyperdrive             ScriptVersionNewParamsMetadataBindingsType = "hyperdrive"
	ScriptVersionNewParamsMetadataBindingsTypeInherit                ScriptVersionNewParamsMetadataBindingsType = "inherit"
	ScriptVersionNewParamsMetadataBindingsTypeImages                 ScriptVersionNewParamsMetadataBindingsType = "images"
	ScriptVersionNewParamsMetadataBindingsTypeJson                   ScriptVersionNewParamsMetadataBindingsType = "json"
	ScriptVersionNewParamsMetadataBindingsTypeKVNamespace            ScriptVersionNewParamsMetadataBindingsType = "kv_namespace"
	ScriptVersionNewParamsMetadataBindingsTypeMedia                  ScriptVersionNewParamsMetadataBindingsType = "media"
	ScriptVersionNewParamsMetadataBindingsTypeMTLSCertificate        ScriptVersionNewParamsMetadataBindingsType = "mtls_certificate"
	ScriptVersionNewParamsMetadataBindingsTypePlainText              ScriptVersionNewParamsMetadataBindingsType = "plain_text"
	ScriptVersionNewParamsMetadataBindingsTypePipelines              ScriptVersionNewParamsMetadataBindingsType = "pipelines"
	ScriptVersionNewParamsMetadataBindingsTypeQueue                  ScriptVersionNewParamsMetadataBindingsType = "queue"
	ScriptVersionNewParamsMetadataBindingsTypeRatelimit              ScriptVersionNewParamsMetadataBindingsType = "ratelimit"
	ScriptVersionNewParamsMetadataBindingsTypeR2Bucket               ScriptVersionNewParamsMetadataBindingsType = "r2_bucket"
	ScriptVersionNewParamsMetadataBindingsTypeSecretText             ScriptVersionNewParamsMetadataBindingsType = "secret_text"
	ScriptVersionNewParamsMetadataBindingsTypeSendEmail              ScriptVersionNewParamsMetadataBindingsType = "send_email"
	ScriptVersionNewParamsMetadataBindingsTypeService                ScriptVersionNewParamsMetadataBindingsType = "service"
	ScriptVersionNewParamsMetadataBindingsTypeTextBlob               ScriptVersionNewParamsMetadataBindingsType = "text_blob"
	ScriptVersionNewParamsMetadataBindingsTypeVectorize              ScriptVersionNewParamsMetadataBindingsType = "vectorize"
	ScriptVersionNewParamsMetadataBindingsTypeVersionMetadata        ScriptVersionNewParamsMetadataBindingsType = "version_metadata"
	ScriptVersionNewParamsMetadataBindingsTypeSecretsStoreSecret     ScriptVersionNewParamsMetadataBindingsType = "secrets_store_secret"
	ScriptVersionNewParamsMetadataBindingsTypeFlagship               ScriptVersionNewParamsMetadataBindingsType = "flagship"
	ScriptVersionNewParamsMetadataBindingsTypeSecretKey              ScriptVersionNewParamsMetadataBindingsType = "secret_key"
	ScriptVersionNewParamsMetadataBindingsTypeWorkflow               ScriptVersionNewParamsMetadataBindingsType = "workflow"
	ScriptVersionNewParamsMetadataBindingsTypeWasmModule             ScriptVersionNewParamsMetadataBindingsType = "wasm_module"
	ScriptVersionNewParamsMetadataBindingsTypeVPCService             ScriptVersionNewParamsMetadataBindingsType = "vpc_service"
	ScriptVersionNewParamsMetadataBindingsTypeVPCNetwork             ScriptVersionNewParamsMetadataBindingsType = "vpc_network"
)

func (ScriptVersionNewParamsMetadataBindingsType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAI

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAIType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAI) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearch

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearch struct {
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName param.Field[string] `json:"instance_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchType] `json:"type" api:"required"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace param.Field[string] `json:"namespace"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearch) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchNamespace

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The user-chosen namespace name. Must exist before deploy -- Wrangler handles
	// auto-creation on deploy failure (R2 bucket pattern). The "default" namespace is
	// auto-created by config-api for new accounts. Grants full access (CRUD + search +
	// chat) to all instances within the namespace.
	Namespace param.Field[string] `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchNamespaceType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchNamespace) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchNamespaceType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchNamespaceTypeAISearchNamespace ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchNamespaceType = "ai_search_namespace"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchNamespaceType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchTypeAISearch ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchType = "ai_search"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAISearchType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAIType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAITypeAI ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAIType = "ai"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAIType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngine

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngine struct {
	// The name of the dataset to bind to.
	Dataset param.Field[string] `json:"dataset" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngine) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssets

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssets struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssetsType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssets) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssetsType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssetsTypeAssets ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssetsType = "assets"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssetsType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowser

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowser struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowserType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowser) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowserType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowserType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowserTypeBrowser ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowserType = "browser"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowserType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1 struct {
	// Identifier of the D1 database to bind to.
	DatabaseID param.Field[string] `json:"database_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1Type] `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID param.Field[string] `json:"id"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1Type

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1TypeD1 ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1Type = "d1"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1Type) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlob

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlob) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespace

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType] `json:"type" api:"required"`
	// Outbound worker.
	Outbound param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound] `json:"outbound"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespace) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params param.Field[[]ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundParam] `json:"params"`
	// Outbound worker.
	Worker param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker] `json:"worker"`
}

Outbound worker.

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundParam

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundParam struct {
	// Name of the parameter.
	Name param.Field[string] `json:"name" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundParam) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Entrypoint to invoke on the outbound worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// Environment of the outbound worker.
	Environment param.Field[string] `json:"environment"`
	// Name of the outbound worker.
	Service param.Field[string] `json:"service"`
}

Outbound worker.

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespace

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType] `json:"type" api:"required"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace param.Field[string] `json:"dispatch_namespace"`
	// The environment of the script_name to bind to.
	Environment param.Field[string] `json:"environment"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName param.Field[string] `json:"script_name"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespace) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceTypeDurableObjectNamespace ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType = "durable_object_namespace"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindFlagship

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindFlagship struct {
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID param.Field[string] `json:"app_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindFlagshipType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindFlagship) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindFlagshipType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindFlagshipType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindFlagshipTypeFlagship ScriptVersionNewParamsMetadataBindingsWorkersBindingKindFlagshipType = "flagship"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindFlagshipType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdrive

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID param.Field[string] `json:"id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdriveType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdrive) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdriveType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdriveTypeHyperdrive ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdriveType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImages

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImages) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesTypeImages ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInherit

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritType] `json:"type" api:"required"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName param.Field[string] `json:"old_name"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID param.Field[string] `json:"version_id"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInherit) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritTypeInherit ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json param.Field[interface{}] `json:"json" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonTypeJson ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonType = "json"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespace

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespaceType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespace) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespaceType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespaceTypeKVNamespace ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespaceType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificate

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificate struct {
	// Identifier of the certificate to bind to.
	CertificateID param.Field[string] `json:"certificate_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificateType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificate) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificateType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificateType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificateTypeMTLSCertificate ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificateType = "mtls_certificate"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificateType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMedia

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMedia struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMediaType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMedia) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMediaType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMediaType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMediaTypeMedia ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMediaType = "media"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMediaType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelines

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelinesType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelines) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelinesType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelinesType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelinesTypePipelines ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelinesType = "pipelines"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelinesType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainText

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainText struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The text value to use.
	Text param.Field[string] `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainTextType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainText) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainTextType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainTextTypePlainText ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainTextType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueue

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueue struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueueType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueue) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueueType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueueTypeQueue ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueueType = "queue"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueueType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2Bucket

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2Bucket struct {
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketType] `json:"type" api:"required"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction] `json:"jurisdiction"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2Bucket) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdictionEu          ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction = "eu"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdictionFedramp     ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdictionFedrampHigh ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp-high"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimit

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimit struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Identifier of the rate limit namespace to bind to.
	NamespaceID param.Field[string] `json:"namespace_id" api:"required"`
	// The rate limit configuration.
	Simple param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimitSimple] `json:"simple" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimitType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimit) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimitSimple

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimitSimple struct {
	// The limit (requests per period).
	Limit param.Field[float64] `json:"limit" api:"required"`
	// The period in seconds.
	Period param.Field[int64] `json:"period" api:"required"`
	// Duration in seconds to apply the mitigation action after the rate limit is
	// exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400.
	// Must be greater than or equal to the period when non-zero.
	MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
}

The rate limit configuration.

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimitSimple) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimitType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimitType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimitTypeRatelimit ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimitType = "ratelimit"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindRatelimitType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKey

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm param.Field[interface{}] `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormat] `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyType] `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages param.Field[[]ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage] `json:"usages" api:"required"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string] `json:"key_base64"`
	// Key data in
	// [JSON Web Key](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key)
	// format. Required if `format` is "jwk".
	KeyJwk param.Field[interface{}] `json:"key_jwk"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKey) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormat

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormatRaw   ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormat = "raw"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormatPkcs8 ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormatSpki  ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormat = "spki"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormatJwk   ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyTypeSecretKey ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage string
const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsageEncrypt    ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsageDecrypt    ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsageSign       ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "sign"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsageVerify     ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "verify"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsageDeriveKey  ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsageDeriveBits ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsageWrapKey    ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretText

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The secret value to use.
	Text param.Field[string] `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretTextType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretText) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretTextType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretTextTypeSecretText ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretTextType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecret

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecret struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name" api:"required"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecret) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretTypeSecretsStoreSecret ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType = "secrets_store_secret"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmail

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailType] `json:"type" api:"required"`
	// List of allowed destination addresses.
	AllowedDestinationAddresses param.Field[[]string] `json:"allowed_destination_addresses" format:"email"`
	// List of allowed sender addresses.
	AllowedSenderAddresses param.Field[[]string] `json:"allowed_sender_addresses" format:"email"`
	// Destination address for the email.
	DestinationAddress param.Field[string] `json:"destination_address" format:"email"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmail) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindService

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindServiceType] `json:"type" api:"required"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// Optional environment if the Worker utilizes one.
	Environment param.Field[string] `json:"environment"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindService) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindServiceType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindServiceTypeService ScriptVersionNewParamsMetadataBindingsWorkersBindingKindServiceType = "service"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindServiceType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlob

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlob) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCNetwork

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCNetwork struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCNetworkType] `json:"type" api:"required"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID param.Field[string] `json:"network_id"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID param.Field[string] `json:"tunnel_id"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCNetwork) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCNetworkType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCNetworkType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCNetworkTypeVPCNetwork ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCNetworkType = "vpc_network"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCNetworkType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCService

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCService struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Identifier of the VPC service to bind to.
	ServiceID param.Field[string] `json:"service_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCServiceType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCService) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCServiceType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCServiceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCServiceTypeVPCService ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCServiceType = "vpc_service"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVPCServiceType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorize

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorizeType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorize) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorizeType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorizeTypeVectorize ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorizeType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadata

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadata struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadataType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadata) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadataType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadataType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModule

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleType] `json:"type" api:"required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModule) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflow

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflowType] `json:"type" api:"required"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name" api:"required"`
	// Class name of the Workflow. Should only be provided if the Workflow belongs to
	// this script.
	ClassName param.Field[string] `json:"class_name"`
	// Script name that contains the Workflow. If not provided, defaults to this script
	// name.
	ScriptName param.Field[string] `json:"script_name"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflow) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflowType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflowType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflowTypeWorkflow ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflowType = "workflow"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflowType) IsKnown

type ScriptVersionNewParamsMetadataUsageModel

type ScriptVersionNewParamsMetadataUsageModel string

Usage model for the Worker invocations.

const (
	ScriptVersionNewParamsMetadataUsageModelStandard ScriptVersionNewParamsMetadataUsageModel = "standard"
	ScriptVersionNewParamsMetadataUsageModelBundled  ScriptVersionNewParamsMetadataUsageModel = "bundled"
	ScriptVersionNewParamsMetadataUsageModelUnbound  ScriptVersionNewParamsMetadataUsageModel = "unbound"
)

func (ScriptVersionNewParamsMetadataUsageModel) IsKnown

type ScriptVersionNewResponse

type ScriptVersionNewResponse struct {
	Resources ScriptVersionNewResponseResources `json:"resources" api:"required"`
	// Unique identifier for the version.
	ID       string                           `json:"id"`
	Metadata ScriptVersionNewResponseMetadata `json:"metadata"`
	// Sequential version number.
	Number float64 `json:"number"`
	// Time in milliseconds spent on
	// [Worker startup](https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time).
	StartupTimeMs int64                        `json:"startup_time_ms"`
	JSON          scriptVersionNewResponseJSON `json:"-"`
}

func (*ScriptVersionNewResponse) UnmarshalJSON

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

type ScriptVersionNewResponseEnvelope

type ScriptVersionNewResponseEnvelope struct {
	Errors   []ScriptVersionNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []ScriptVersionNewResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   ScriptVersionNewResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success ScriptVersionNewResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    scriptVersionNewResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptVersionNewResponseEnvelope) UnmarshalJSON

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

type ScriptVersionNewResponseEnvelopeErrors

type ScriptVersionNewResponseEnvelopeErrors struct {
	Code             int64                                        `json:"code" api:"required"`
	Message          string                                       `json:"message" api:"required"`
	DocumentationURL string                                       `json:"documentation_url"`
	Source           ScriptVersionNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptVersionNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptVersionNewResponseEnvelopeErrors) UnmarshalJSON

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

type ScriptVersionNewResponseEnvelopeErrorsSource

type ScriptVersionNewResponseEnvelopeErrorsSource struct {
	Pointer string                                           `json:"pointer"`
	JSON    scriptVersionNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptVersionNewResponseEnvelopeErrorsSource) UnmarshalJSON

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

type ScriptVersionNewResponseEnvelopeMessages

type ScriptVersionNewResponseEnvelopeMessages struct {
	Code             int64                                          `json:"code" api:"required"`
	Message          string                                         `json:"message" api:"required"`
	DocumentationURL string                                         `json:"documentation_url"`
	Source           ScriptVersionNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptVersionNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptVersionNewResponseEnvelopeMessages) UnmarshalJSON

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

type ScriptVersionNewResponseEnvelopeMessagesSource

type ScriptVersionNewResponseEnvelopeMessagesSource struct {
	Pointer string                                             `json:"pointer"`
	JSON    scriptVersionNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptVersionNewResponseEnvelopeMessagesSource) UnmarshalJSON

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

type ScriptVersionNewResponseEnvelopeSuccess

type ScriptVersionNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptVersionNewResponseEnvelopeSuccessTrue ScriptVersionNewResponseEnvelopeSuccess = true
)

func (ScriptVersionNewResponseEnvelopeSuccess) IsKnown

type ScriptVersionNewResponseMetadata

type ScriptVersionNewResponseMetadata struct {
	// Email of the user who created the version.
	AuthorEmail string `json:"author_email"`
	// Identifier of the user who created the version.
	AuthorID string `json:"author_id"`
	// When the version was created.
	CreatedOn string `json:"created_on"`
	// Whether the version can be previewed.
	HasPreview bool `json:"hasPreview"`
	// When the version was last modified.
	ModifiedOn string `json:"modified_on"`
	// The source of the version upload.
	Source ScriptVersionNewResponseMetadataSource `json:"source"`
	JSON   scriptVersionNewResponseMetadataJSON   `json:"-"`
}

func (*ScriptVersionNewResponseMetadata) UnmarshalJSON

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

type ScriptVersionNewResponseMetadataSource

type ScriptVersionNewResponseMetadataSource string

The source of the version upload.

const (
	ScriptVersionNewResponseMetadataSourceUnknown      ScriptVersionNewResponseMetadataSource = "unknown"
	ScriptVersionNewResponseMetadataSourceAPI          ScriptVersionNewResponseMetadataSource = "api"
	ScriptVersionNewResponseMetadataSourceWrangler     ScriptVersionNewResponseMetadataSource = "wrangler"
	ScriptVersionNewResponseMetadataSourceTerraform    ScriptVersionNewResponseMetadataSource = "terraform"
	ScriptVersionNewResponseMetadataSourceDash         ScriptVersionNewResponseMetadataSource = "dash"
	ScriptVersionNewResponseMetadataSourceDashTemplate ScriptVersionNewResponseMetadataSource = "dash_template"
	ScriptVersionNewResponseMetadataSourceIntegration  ScriptVersionNewResponseMetadataSource = "integration"
	ScriptVersionNewResponseMetadataSourceQuickEditor  ScriptVersionNewResponseMetadataSource = "quick_editor"
	ScriptVersionNewResponseMetadataSourcePlayground   ScriptVersionNewResponseMetadataSource = "playground"
	ScriptVersionNewResponseMetadataSourceWorkersci    ScriptVersionNewResponseMetadataSource = "workersci"
)

func (ScriptVersionNewResponseMetadataSource) IsKnown

type ScriptVersionNewResponseResources

type ScriptVersionNewResponseResources struct {
	// List of bindings attached to a Worker. You can find more about bindings on our
	// docs:
	// https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
	Bindings []ScriptVersionNewResponseResourcesBinding `json:"bindings"`
	Script   ScriptVersionNewResponseResourcesScript    `json:"script"`
	// Runtime configuration for the Worker.
	ScriptRuntime ScriptVersionNewResponseResourcesScriptRuntime `json:"script_runtime"`
	JSON          scriptVersionNewResponseResourcesJSON          `json:"-"`
}

func (*ScriptVersionNewResponseResources) UnmarshalJSON

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

type ScriptVersionNewResponseResourcesBinding

type ScriptVersionNewResponseResourcesBinding struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsType `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID string `json:"id"`
	// This field can have the runtime type of [interface{}].
	Algorithm interface{} `json:"algorithm"`
	// This field can have the runtime type of [[]string].
	AllowedDestinationAddresses interface{} `json:"allowed_destination_addresses"`
	// This field can have the runtime type of [[]string].
	AllowedSenderAddresses interface{} `json:"allowed_sender_addresses"`
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID string `json:"app_id"`
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// Identifier of the D1 database to bind to.
	DatabaseID string `json:"database_id"`
	// The name of the dataset to bind to.
	Dataset string `json:"dataset"`
	// Destination address for the email.
	DestinationAddress string `json:"destination_address" format:"email"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace string `json:"dispatch_namespace"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint string `json:"entrypoint"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptVersionNewResponseResourcesBindingsFormat `json:"format"`
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name"`
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName string `json:"instance_name"`
	// This field can have the runtime type of [interface{}].
	Json interface{} `json:"json"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction ScriptVersionNewResponseResourcesBindingsJurisdiction `json:"jurisdiction"`
	// This field can have the runtime type of [interface{}].
	KeyJwk interface{} `json:"key_jwk"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID string `json:"network_id"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName string `json:"old_name"`
	// This field can have the runtime type of
	// [ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound].
	Outbound interface{} `json:"outbound"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName string `json:"script_name"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name"`
	// Name of Worker to bind to.
	Service string `json:"service"`
	// Identifier of the VPC service to bind to.
	ServiceID string `json:"service_id"`
	// This field can have the runtime type of
	// [ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitSimple].
	Simple interface{} `json:"simple"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id"`
	// The text value to use.
	Text string `json:"text"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID string `json:"tunnel_id"`
	// This field can have the runtime type of
	// [[]ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage].
	Usages interface{} `json:"usages"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID string `json:"version_id"`
	// Name of the Workflow to bind to.
	WorkflowName string                                       `json:"workflow_name"`
	JSON         scriptVersionNewResponseResourcesBindingJSON `json:"-"`
	// contains filtered or unexported fields
}

A binding to allow the Worker to communicate with resources.

func (ScriptVersionNewResponseResourcesBinding) AsUnion

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

Possible runtime types of the union are ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAI, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearch, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngine, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssets, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowser, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlob, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdrive, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInherit, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImages, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJson, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMedia, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificate, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainText, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelines, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueue, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimit, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2Bucket, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretText, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmail, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindService, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlob, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorize, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadata, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagship, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKey, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflow, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModule, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCService, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetwork.

func (*ScriptVersionNewResponseResourcesBinding) UnmarshalJSON

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

type ScriptVersionNewResponseResourcesBindingsFormat

type ScriptVersionNewResponseResourcesBindingsFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptVersionNewResponseResourcesBindingsFormatRaw   ScriptVersionNewResponseResourcesBindingsFormat = "raw"
	ScriptVersionNewResponseResourcesBindingsFormatPkcs8 ScriptVersionNewResponseResourcesBindingsFormat = "pkcs8"
	ScriptVersionNewResponseResourcesBindingsFormatSpki  ScriptVersionNewResponseResourcesBindingsFormat = "spki"
	ScriptVersionNewResponseResourcesBindingsFormatJwk   ScriptVersionNewResponseResourcesBindingsFormat = "jwk"
)

func (ScriptVersionNewResponseResourcesBindingsFormat) IsKnown

type ScriptVersionNewResponseResourcesBindingsJurisdiction

type ScriptVersionNewResponseResourcesBindingsJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptVersionNewResponseResourcesBindingsJurisdictionEu          ScriptVersionNewResponseResourcesBindingsJurisdiction = "eu"
	ScriptVersionNewResponseResourcesBindingsJurisdictionFedramp     ScriptVersionNewResponseResourcesBindingsJurisdiction = "fedramp"
	ScriptVersionNewResponseResourcesBindingsJurisdictionFedrampHigh ScriptVersionNewResponseResourcesBindingsJurisdiction = "fedramp-high"
)

func (ScriptVersionNewResponseResourcesBindingsJurisdiction) IsKnown

type ScriptVersionNewResponseResourcesBindingsType

type ScriptVersionNewResponseResourcesBindingsType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsTypeAI                     ScriptVersionNewResponseResourcesBindingsType = "ai"
	ScriptVersionNewResponseResourcesBindingsTypeAISearch               ScriptVersionNewResponseResourcesBindingsType = "ai_search"
	ScriptVersionNewResponseResourcesBindingsTypeAISearchNamespace      ScriptVersionNewResponseResourcesBindingsType = "ai_search_namespace"
	ScriptVersionNewResponseResourcesBindingsTypeAnalyticsEngine        ScriptVersionNewResponseResourcesBindingsType = "analytics_engine"
	ScriptVersionNewResponseResourcesBindingsTypeAssets                 ScriptVersionNewResponseResourcesBindingsType = "assets"
	ScriptVersionNewResponseResourcesBindingsTypeBrowser                ScriptVersionNewResponseResourcesBindingsType = "browser"
	ScriptVersionNewResponseResourcesBindingsTypeD1                     ScriptVersionNewResponseResourcesBindingsType = "d1"
	ScriptVersionNewResponseResourcesBindingsTypeDataBlob               ScriptVersionNewResponseResourcesBindingsType = "data_blob"
	ScriptVersionNewResponseResourcesBindingsTypeDispatchNamespace      ScriptVersionNewResponseResourcesBindingsType = "dispatch_namespace"
	ScriptVersionNewResponseResourcesBindingsTypeDurableObjectNamespace ScriptVersionNewResponseResourcesBindingsType = "durable_object_namespace"
	ScriptVersionNewResponseResourcesBindingsTypeHyperdrive             ScriptVersionNewResponseResourcesBindingsType = "hyperdrive"
	ScriptVersionNewResponseResourcesBindingsTypeInherit                ScriptVersionNewResponseResourcesBindingsType = "inherit"
	ScriptVersionNewResponseResourcesBindingsTypeImages                 ScriptVersionNewResponseResourcesBindingsType = "images"
	ScriptVersionNewResponseResourcesBindingsTypeJson                   ScriptVersionNewResponseResourcesBindingsType = "json"
	ScriptVersionNewResponseResourcesBindingsTypeKVNamespace            ScriptVersionNewResponseResourcesBindingsType = "kv_namespace"
	ScriptVersionNewResponseResourcesBindingsTypeMedia                  ScriptVersionNewResponseResourcesBindingsType = "media"
	ScriptVersionNewResponseResourcesBindingsTypeMTLSCertificate        ScriptVersionNewResponseResourcesBindingsType = "mtls_certificate"
	ScriptVersionNewResponseResourcesBindingsTypePlainText              ScriptVersionNewResponseResourcesBindingsType = "plain_text"
	ScriptVersionNewResponseResourcesBindingsTypePipelines              ScriptVersionNewResponseResourcesBindingsType = "pipelines"
	ScriptVersionNewResponseResourcesBindingsTypeQueue                  ScriptVersionNewResponseResourcesBindingsType = "queue"
	ScriptVersionNewResponseResourcesBindingsTypeRatelimit              ScriptVersionNewResponseResourcesBindingsType = "ratelimit"
	ScriptVersionNewResponseResourcesBindingsTypeR2Bucket               ScriptVersionNewResponseResourcesBindingsType = "r2_bucket"
	ScriptVersionNewResponseResourcesBindingsTypeSecretText             ScriptVersionNewResponseResourcesBindingsType = "secret_text"
	ScriptVersionNewResponseResourcesBindingsTypeSendEmail              ScriptVersionNewResponseResourcesBindingsType = "send_email"
	ScriptVersionNewResponseResourcesBindingsTypeService                ScriptVersionNewResponseResourcesBindingsType = "service"
	ScriptVersionNewResponseResourcesBindingsTypeTextBlob               ScriptVersionNewResponseResourcesBindingsType = "text_blob"
	ScriptVersionNewResponseResourcesBindingsTypeVectorize              ScriptVersionNewResponseResourcesBindingsType = "vectorize"
	ScriptVersionNewResponseResourcesBindingsTypeVersionMetadata        ScriptVersionNewResponseResourcesBindingsType = "version_metadata"
	ScriptVersionNewResponseResourcesBindingsTypeSecretsStoreSecret     ScriptVersionNewResponseResourcesBindingsType = "secrets_store_secret"
	ScriptVersionNewResponseResourcesBindingsTypeFlagship               ScriptVersionNewResponseResourcesBindingsType = "flagship"
	ScriptVersionNewResponseResourcesBindingsTypeSecretKey              ScriptVersionNewResponseResourcesBindingsType = "secret_key"
	ScriptVersionNewResponseResourcesBindingsTypeWorkflow               ScriptVersionNewResponseResourcesBindingsType = "workflow"
	ScriptVersionNewResponseResourcesBindingsTypeWasmModule             ScriptVersionNewResponseResourcesBindingsType = "wasm_module"
	ScriptVersionNewResponseResourcesBindingsTypeVPCService             ScriptVersionNewResponseResourcesBindingsType = "vpc_service"
	ScriptVersionNewResponseResourcesBindingsTypeVPCNetwork             ScriptVersionNewResponseResourcesBindingsType = "vpc_network"
)

func (ScriptVersionNewResponseResourcesBindingsType) IsKnown

type ScriptVersionNewResponseResourcesBindingsUnion

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

A binding to allow the Worker to communicate with resources.

Union satisfied by ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAI, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearch, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngine, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssets, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowser, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlob, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdrive, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInherit, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImages, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJson, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMedia, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificate, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainText, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelines, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueue, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimit, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2Bucket, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretText, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmail, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindService, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlob, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorize, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadata, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagship, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKey, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflow, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModule, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCService or ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetwork.

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAI

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAIType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindAIJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAI) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearch

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearch struct {
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName string `json:"instance_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchType `json:"type" api:"required"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace string                                                                  `json:"namespace"`
	JSON      scriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearch) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespace

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The user-chosen namespace name. Must exist before deploy -- Wrangler handles
	// auto-creation on deploy failure (R2 bucket pattern). The "default" namespace is
	// auto-created by config-api for new accounts. Grants full access (CRUD + search +
	// chat) to all instances within the namespace.
	Namespace string `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespaceType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespaceJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespace) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespaceType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespaceTypeAISearchNamespace ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespaceType = "ai_search_namespace"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchNamespaceType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchTypeAISearch ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchType = "ai_search"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAISearchType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAIType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAITypeAI ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAIType = "ai"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAIType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngine

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngine struct {
	// The name of the dataset to bind to.
	Dataset string `json:"dataset" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngineJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssets

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssets struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssetsType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindAssetsJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssets) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssetsType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssetsTypeAssets ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssetsType = "assets"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssetsType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowser

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowser struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowserType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowserJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowser) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowserType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowserType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowserTypeBrowser ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowserType = "browser"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowserType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1 struct {
	// Identifier of the D1 database to bind to.
	DatabaseID string `json:"database_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1Type `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID   string                                                            `json:"id"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindD1JSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1Type

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1TypeD1 ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1Type = "d1"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1Type) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlob

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlob) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespace

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the dispatch namespace.
	Namespace string `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType `json:"type" api:"required"`
	// Outbound worker.
	Outbound ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"`
	JSON     scriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceJSON     `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params []ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundParam `json:"params"`
	// Outbound worker.
	Worker ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   scriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundParam

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundParam struct {
	// Name of the parameter.
	Name string                                                                                        `json:"name" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundParamJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundParam) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Entrypoint to invoke on the outbound worker.
	Entrypoint string `json:"entrypoint"`
	// Environment of the outbound worker.
	Environment string `json:"environment"`
	// Name of the outbound worker.
	Service string                                                                                         `json:"service"`
	JSON    scriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"`
}

Outbound worker.

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType `json:"type" api:"required"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace string `json:"dispatch_namespace"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName string                                                                                `json:"script_name"`
	JSON       scriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceTypeDurableObjectNamespace ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType = "durable_object_namespace"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagship

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagship struct {
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID string `json:"app_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagshipType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagshipJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagship) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagshipType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagshipType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagshipTypeFlagship ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagshipType = "flagship"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindFlagshipType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdrive

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID string `json:"id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdriveType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdriveJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdrive) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdriveType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdriveTypeHyperdrive ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdriveType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImages

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImages) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesTypeImages ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInherit

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritType `json:"type" api:"required"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName string `json:"old_name"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID string                                                                 `json:"version_id"`
	JSON      scriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInherit) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritTypeInherit ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJson

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json interface{} `json:"json" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJsonType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindJsonJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJson) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJsonType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJsonTypeJson ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJsonType = "json"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJsonType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespace

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespaceType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespaceJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespace) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespaceType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespaceTypeKVNamespace ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespaceType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificate

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificate struct {
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificateType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificateJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificate) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificateType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificateType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificateTypeMTLSCertificate ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificateType = "mtls_certificate"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificateType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMedia

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMedia struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMediaType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindMediaJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMedia) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMediaType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMediaType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMediaTypeMedia ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMediaType = "media"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMediaType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelines

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelinesType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelinesJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelines) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelinesType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelinesType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelinesTypePipelines ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelinesType = "pipelines"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelinesType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainText

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The text value to use.
	Text string `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainTextType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainTextJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainText) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainTextType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainTextTypePlainText ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainTextType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueue

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueue struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueueType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindQueueJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueue) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueueType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueueTypeQueue ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueueType = "queue"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueueType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2Bucket

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2Bucket struct {
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketType `json:"type" api:"required"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction `json:"jurisdiction"`
	JSON         scriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJSON         `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2Bucket) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdictionEu          ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction = "eu"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdictionFedramp     ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdictionFedrampHigh ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp-high"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimit

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimit struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Identifier of the rate limit namespace to bind to.
	NamespaceID string `json:"namespace_id" api:"required"`
	// The rate limit configuration.
	Simple ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitSimple `json:"simple" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimit) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitSimple

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitSimple struct {
	// The limit (requests per period).
	Limit float64 `json:"limit" api:"required"`
	// The period in seconds.
	Period int64 `json:"period" api:"required"`
	// Duration in seconds to apply the mitigation action after the rate limit is
	// exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400.
	// Must be greater than or equal to the period when non-zero.
	MitigationTimeout int64                                                                          `json:"mitigation_timeout"`
	JSON              scriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitSimpleJSON `json:"-"`
}

The rate limit configuration.

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitSimple) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitTypeRatelimit ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitType = "ratelimit"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindRatelimitType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKey

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm interface{} `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormat `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyType `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage `json:"usages" api:"required"`
	JSON   scriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyJSON    `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKey) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormat

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormatRaw   ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormat = "raw"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormatPkcs8 ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormat = "pkcs8"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormatSpki  ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormat = "spki"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormatJwk   ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormat = "jwk"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormat) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyTypeSecretKey ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyType = "secret_key"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage string
const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsageEncrypt    ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "encrypt"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsageDecrypt    ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "decrypt"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsageSign       ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "sign"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsageVerify     ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "verify"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsageDeriveKey  ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "deriveKey"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsageDeriveBits ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "deriveBits"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsageWrapKey    ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "wrapKey"
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsageUnwrapKey  ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretText

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretTextType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretTextJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretText) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretTextType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretTextTypeSecretText ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretTextType = "secret_text"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretTextType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name" api:"required"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretTypeSecretsStoreSecret ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType = "secrets_store_secret"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmail

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailType `json:"type" api:"required"`
	// List of allowed destination addresses.
	AllowedDestinationAddresses []string `json:"allowed_destination_addresses" format:"email"`
	// List of allowed sender addresses.
	AllowedSenderAddresses []string `json:"allowed_sender_addresses" format:"email"`
	// Destination address for the email.
	DestinationAddress string                                                                   `json:"destination_address" format:"email"`
	JSON               scriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmail) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindService

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of Worker to bind to.
	Service string `json:"service" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindServiceType `json:"type" api:"required"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint string `json:"entrypoint"`
	// Optional environment if the Worker utilizes one.
	Environment string                                                                 `json:"environment"`
	JSON        scriptVersionNewResponseResourcesBindingsWorkersBindingKindServiceJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindService) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindServiceType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindServiceTypeService ScriptVersionNewResponseResourcesBindingsWorkersBindingKindServiceType = "service"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindServiceType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlob

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlob) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetwork

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetwork struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetworkType `json:"type" api:"required"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID string `json:"network_id"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID string                                                                    `json:"tunnel_id"`
	JSON     scriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetworkJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetwork) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetworkType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetworkType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetworkTypeVPCNetwork ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetworkType = "vpc_network"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCNetworkType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCService

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Identifier of the VPC service to bind to.
	ServiceID string `json:"service_id" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCServiceType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCServiceJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCService) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCServiceType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCServiceType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCServiceTypeVPCService ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCServiceType = "vpc_service"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVPCServiceType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorize

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorizeType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorizeJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorize) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorizeType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorizeTypeVectorize ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorizeType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadata

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadata struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadataType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadataJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadataType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadataType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModule

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleType `json:"type" api:"required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModule) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleType) IsKnown

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflow

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflowType `json:"type" api:"required"`
	// Name of the Workflow to bind to.
	WorkflowName string `json:"workflow_name" api:"required"`
	// Class name of the Workflow. Should only be provided if the Workflow belongs to
	// this script.
	ClassName string `json:"class_name"`
	// Script name that contains the Workflow. If not provided, defaults to this script
	// name.
	ScriptName string                                                                  `json:"script_name"`
	JSON       scriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflowJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflow) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflowType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflowType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflowTypeWorkflow ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflowType = "workflow"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflowType) IsKnown

type ScriptVersionNewResponseResourcesScript

type ScriptVersionNewResponseResourcesScript struct {
	// Hashed script content
	Etag string `json:"etag"`
	// The names of handlers exported as part of the default export.
	Handlers []string `json:"handlers"`
	// The client most recently used to deploy this Worker.
	LastDeployedFrom string `json:"last_deployed_from"`
	// Named exports, such as Durable Object class implementations and named
	// entrypoints.
	NamedHandlers []ScriptVersionNewResponseResourcesScriptNamedHandler `json:"named_handlers"`
	JSON          scriptVersionNewResponseResourcesScriptJSON           `json:"-"`
}

func (*ScriptVersionNewResponseResourcesScript) UnmarshalJSON

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

type ScriptVersionNewResponseResourcesScriptNamedHandler

type ScriptVersionNewResponseResourcesScriptNamedHandler struct {
	// The names of handlers exported as part of the named export.
	Handlers []string `json:"handlers"`
	// The name of the exported class or entrypoint.
	Name string                                                  `json:"name"`
	JSON scriptVersionNewResponseResourcesScriptNamedHandlerJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesScriptNamedHandler) UnmarshalJSON

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

type ScriptVersionNewResponseResourcesScriptRuntime

type ScriptVersionNewResponseResourcesScriptRuntime struct {
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate string `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime.
	CompatibilityFlags []string `json:"compatibility_flags"`
	// Resource limits for the Worker.
	Limits ScriptVersionNewResponseResourcesScriptRuntimeLimits `json:"limits"`
	// The tag of the Durable Object migration that was most recently applied for this
	// Worker.
	MigrationTag string `json:"migration_tag"`
	// Usage model for the Worker invocations.
	UsageModel ScriptVersionNewResponseResourcesScriptRuntimeUsageModel `json:"usage_model"`
	JSON       scriptVersionNewResponseResourcesScriptRuntimeJSON       `json:"-"`
}

Runtime configuration for the Worker.

func (*ScriptVersionNewResponseResourcesScriptRuntime) UnmarshalJSON

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

type ScriptVersionNewResponseResourcesScriptRuntimeLimits

type ScriptVersionNewResponseResourcesScriptRuntimeLimits struct {
	// The amount of CPU time this Worker can use in milliseconds.
	CPUMs int64                                                    `json:"cpu_ms"`
	JSON  scriptVersionNewResponseResourcesScriptRuntimeLimitsJSON `json:"-"`
}

Resource limits for the Worker.

func (*ScriptVersionNewResponseResourcesScriptRuntimeLimits) UnmarshalJSON

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

type ScriptVersionNewResponseResourcesScriptRuntimeUsageModel

type ScriptVersionNewResponseResourcesScriptRuntimeUsageModel string

Usage model for the Worker invocations.

const (
	ScriptVersionNewResponseResourcesScriptRuntimeUsageModelBundled  ScriptVersionNewResponseResourcesScriptRuntimeUsageModel = "bundled"
	ScriptVersionNewResponseResourcesScriptRuntimeUsageModelUnbound  ScriptVersionNewResponseResourcesScriptRuntimeUsageModel = "unbound"
	ScriptVersionNewResponseResourcesScriptRuntimeUsageModelStandard ScriptVersionNewResponseResourcesScriptRuntimeUsageModel = "standard"
)

func (ScriptVersionNewResponseResourcesScriptRuntimeUsageModel) IsKnown

type ScriptVersionService

type ScriptVersionService struct {
	Options []option.RequestOption
}

ScriptVersionService 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 NewScriptVersionService method instead.

func NewScriptVersionService

func NewScriptVersionService(opts ...option.RequestOption) (r *ScriptVersionService)

NewScriptVersionService 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 (*ScriptVersionService) Get

func (r *ScriptVersionService) Get(ctx context.Context, scriptName string, versionID string, query ScriptVersionGetParams, opts ...option.RequestOption) (res *ScriptVersionGetResponse, err error)

Retrieves detailed information about a specific version of a Workers script.

func (*ScriptVersionService) List

List of Worker Versions. The first version in the list is the latest version.

func (*ScriptVersionService) ListAutoPaging

List of Worker Versions. The first version in the list is the latest version.

func (*ScriptVersionService) New

Upload a Worker Version without deploying to Cloudflare's network. You can find more about the multipart metadata on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/.

type SingleStepMigration

type SingleStepMigration struct {
	JSON singleStepMigrationJSON `json:"-"`
}

A single set of migrations to apply.

func (SingleStepMigration) ImplementsDispatchNamespaceScriptSettingEditResponseMigrations

func (r SingleStepMigration) ImplementsDispatchNamespaceScriptSettingEditResponseMigrations()

func (SingleStepMigration) ImplementsDispatchNamespaceScriptSettingGetResponseMigrations

func (r SingleStepMigration) ImplementsDispatchNamespaceScriptSettingGetResponseMigrations()

func (*SingleStepMigration) UnmarshalJSON

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

type SingleStepMigrationParam

type SingleStepMigrationParam struct {
	// A list of classes to delete Durable Object namespaces from.
	DeletedClasses param.Field[[]string] `json:"deleted_classes"`
	// A list of classes to create Durable Object namespaces from.
	NewClasses param.Field[[]string] `json:"new_classes"`
	// A list of classes to create Durable Object namespaces with SQLite from.
	NewSqliteClasses param.Field[[]string] `json:"new_sqlite_classes"`
	// Tag to set as the latest migration tag.
	NewTag param.Field[string] `json:"new_tag"`
	// Tag used to verify against the latest migration tag for this Worker. If they
	// don't match, the upload is rejected.
	OldTag param.Field[string] `json:"old_tag"`
	// A list of classes with Durable Object namespaces that were renamed.
	RenamedClasses param.Field[[]SingleStepMigrationRenamedClassParam] `json:"renamed_classes"`
	// A list of transfers for Durable Object namespaces from a different Worker and
	// class to a class defined in this Worker.
	TransferredClasses param.Field[[]SingleStepMigrationTransferredClassParam] `json:"transferred_classes"`
}

A single set of migrations to apply.

func (SingleStepMigrationParam) ImplementsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion

func (r SingleStepMigrationParam) ImplementsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion()

func (SingleStepMigrationParam) ImplementsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion

func (r SingleStepMigrationParam) ImplementsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion()

func (SingleStepMigrationParam) MarshalJSON

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

type SingleStepMigrationRenamedClass

type SingleStepMigrationRenamedClass struct {
	JSON singleStepMigrationRenamedClassJSON `json:"-"`
}

func (*SingleStepMigrationRenamedClass) UnmarshalJSON

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

type SingleStepMigrationRenamedClassParam

type SingleStepMigrationRenamedClassParam struct {
	From param.Field[string] `json:"from"`
	To   param.Field[string] `json:"to"`
}

func (SingleStepMigrationRenamedClassParam) MarshalJSON

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

type SingleStepMigrationTransferredClass

type SingleStepMigrationTransferredClass struct {
	JSON singleStepMigrationTransferredClassJSON `json:"-"`
}

func (*SingleStepMigrationTransferredClass) UnmarshalJSON

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

type SingleStepMigrationTransferredClassParam

type SingleStepMigrationTransferredClassParam struct {
	From       param.Field[string] `json:"from"`
	FromScript param.Field[string] `json:"from_script"`
	To         param.Field[string] `json:"to"`
}

func (SingleStepMigrationTransferredClassParam) MarshalJSON

func (r SingleStepMigrationTransferredClassParam) MarshalJSON() (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 SubdomainDeleteParams

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

type SubdomainGetParams

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

type SubdomainGetResponse

type SubdomainGetResponse struct {
	Subdomain string                   `json:"subdomain" api:"required"`
	JSON      subdomainGetResponseJSON `json:"-"`
}

func (*SubdomainGetResponse) UnmarshalJSON

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

type SubdomainGetResponseEnvelope

type SubdomainGetResponseEnvelope struct {
	Errors   []SubdomainGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []SubdomainGetResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   SubdomainGetResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success SubdomainGetResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    subdomainGetResponseEnvelopeJSON    `json:"-"`
}

func (*SubdomainGetResponseEnvelope) UnmarshalJSON

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

type SubdomainGetResponseEnvelopeErrors

type SubdomainGetResponseEnvelopeErrors struct {
	Code             int64                                    `json:"code" api:"required"`
	Message          string                                   `json:"message" api:"required"`
	DocumentationURL string                                   `json:"documentation_url"`
	Source           SubdomainGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             subdomainGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*SubdomainGetResponseEnvelopeErrors) UnmarshalJSON

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

type SubdomainGetResponseEnvelopeErrorsSource

type SubdomainGetResponseEnvelopeErrorsSource struct {
	Pointer string                                       `json:"pointer"`
	JSON    subdomainGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*SubdomainGetResponseEnvelopeErrorsSource) UnmarshalJSON

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

type SubdomainGetResponseEnvelopeMessages

type SubdomainGetResponseEnvelopeMessages struct {
	Code             int64                                      `json:"code" api:"required"`
	Message          string                                     `json:"message" api:"required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           SubdomainGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             subdomainGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*SubdomainGetResponseEnvelopeMessages) UnmarshalJSON

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

type SubdomainGetResponseEnvelopeMessagesSource

type SubdomainGetResponseEnvelopeMessagesSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    subdomainGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*SubdomainGetResponseEnvelopeMessagesSource) UnmarshalJSON

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

type SubdomainGetResponseEnvelopeSuccess

type SubdomainGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	SubdomainGetResponseEnvelopeSuccessTrue SubdomainGetResponseEnvelopeSuccess = true
)

func (SubdomainGetResponseEnvelopeSuccess) IsKnown

type SubdomainService

type SubdomainService struct {
	Options []option.RequestOption
}

SubdomainService 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 NewSubdomainService method instead.

func NewSubdomainService

func NewSubdomainService(opts ...option.RequestOption) (r *SubdomainService)

NewSubdomainService 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 (*SubdomainService) Delete

func (r *SubdomainService) Delete(ctx context.Context, body SubdomainDeleteParams, opts ...option.RequestOption) (err error)

Deletes a Workers subdomain for an account.

func (*SubdomainService) Get

Returns a Workers subdomain for an account.

func (*SubdomainService) Update

Creates a Workers subdomain for an account.

type SubdomainUpdateParams

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

func (SubdomainUpdateParams) MarshalJSON

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

type SubdomainUpdateResponse

type SubdomainUpdateResponse struct {
	Subdomain string                      `json:"subdomain" api:"required"`
	JSON      subdomainUpdateResponseJSON `json:"-"`
}

func (*SubdomainUpdateResponse) UnmarshalJSON

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

type SubdomainUpdateResponseEnvelope

type SubdomainUpdateResponseEnvelope struct {
	Errors   []SubdomainUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []SubdomainUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	Result   SubdomainUpdateResponse                   `json:"result" api:"required"`
	// Whether the API call was successful.
	Success SubdomainUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	JSON    subdomainUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*SubdomainUpdateResponseEnvelope) UnmarshalJSON

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

type SubdomainUpdateResponseEnvelopeErrors

type SubdomainUpdateResponseEnvelopeErrors struct {
	Code             int64                                       `json:"code" api:"required"`
	Message          string                                      `json:"message" api:"required"`
	DocumentationURL string                                      `json:"documentation_url"`
	Source           SubdomainUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             subdomainUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*SubdomainUpdateResponseEnvelopeErrors) UnmarshalJSON

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

type SubdomainUpdateResponseEnvelopeErrorsSource

type SubdomainUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                          `json:"pointer"`
	JSON    subdomainUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*SubdomainUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

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

type SubdomainUpdateResponseEnvelopeMessages

type SubdomainUpdateResponseEnvelopeMessages struct {
	Code             int64                                         `json:"code" api:"required"`
	Message          string                                        `json:"message" api:"required"`
	DocumentationURL string                                        `json:"documentation_url"`
	Source           SubdomainUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             subdomainUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*SubdomainUpdateResponseEnvelopeMessages) UnmarshalJSON

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

type SubdomainUpdateResponseEnvelopeMessagesSource

type SubdomainUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                            `json:"pointer"`
	JSON    subdomainUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*SubdomainUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

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

type SubdomainUpdateResponseEnvelopeSuccess

type SubdomainUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	SubdomainUpdateResponseEnvelopeSuccessTrue SubdomainUpdateResponseEnvelopeSuccess = true
)

func (SubdomainUpdateResponseEnvelopeSuccess) IsKnown

type Subscription

type Subscription = shared.Subscription

This is an alias to an internal type.

type SubscriptionFrequency

type SubscriptionFrequency = shared.SubscriptionFrequency

How often the subscription is renewed automatically.

This is an alias to an internal type.

type SubscriptionParam

type SubscriptionParam = shared.SubscriptionParam

This is an alias to an internal type.

type SubscriptionState

type SubscriptionState = shared.SubscriptionState

The state that the subscription is in.

This is an alias to an internal type.

type Token

type Token = shared.Token

This is an alias to an internal type.

type TokenCondition

type TokenCondition = shared.TokenCondition

This is an alias to an internal type.

type TokenConditionCIDRList

type TokenConditionCIDRList = shared.TokenConditionCIDRList

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionCIDRListParam

type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionParam

type TokenConditionParam = shared.TokenConditionParam

This is an alias to an internal type.

type TokenConditionRequestIP

type TokenConditionRequestIP = shared.TokenConditionRequestIP

Client IP restrictions.

This is an alias to an internal type.

type TokenConditionRequestIPParam

type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam

Client IP restrictions.

This is an alias to an internal type.

type TokenParam

type TokenParam = shared.TokenParam

This is an alias to an internal type.

type TokenPolicy

type TokenPolicy = shared.TokenPolicy

This is an alias to an internal type.

type TokenPolicyEffect

type TokenPolicyEffect = shared.TokenPolicyEffect

Allow or deny operations against the resources.

This is an alias to an internal type.

type TokenPolicyParam

type TokenPolicyParam = shared.TokenPolicyParam

This is an alias to an internal type.

type TokenPolicyPermissionGroup

type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup

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

This is an alias to an internal type.

type TokenPolicyPermissionGroupParam

type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam

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

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMeta

type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMetaParam

type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectNested

type TokenPolicyResourcesIAMResourcesTypeObjectNested = shared.TokenPolicyResourcesIAMResourcesTypeObjectNested

Map of nested resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam

type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectNestedParam

Map of nested resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectString

type TokenPolicyResourcesIAMResourcesTypeObjectString = shared.TokenPolicyResourcesIAMResourcesTypeObjectString

Map of simple string resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectStringParam

type TokenPolicyResourcesIAMResourcesTypeObjectStringParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectStringParam

Map of simple string resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesUnion

type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion

A list of resource names that the policy applies to.

This is an alias to an internal type.

type TokenPolicyResourcesUnionParam

type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam

A list of resource names that the policy applies to.

This is an alias to an internal type.

type TokenStatus

type TokenStatus = shared.TokenStatus

Status of the token.

This is an alias to an internal type.

type TokenValue

type TokenValue = shared.TokenValue

The token value.

This is an alias to an internal type.

type Version

type Version struct {
	// Version identifier.
	ID string `json:"id" api:"required" format:"uuid"`
	// When the version was created.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// The integer version number, starting from one.
	Number int64 `json:"number" api:"required"`
	// All routable URLs that always point to this version. Does not include alias
	// URLs, since aliases can be updated to point to a different version.
	URLs []string `json:"urls" api:"required" format:"uri"`
	// Metadata about the version.
	Annotations VersionAnnotations `json:"annotations"`
	// Configuration for assets within a Worker.
	//
	// [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers)
	// and
	// [`_redirects`](https://developers.cloudflare.com/workers/static-assets/redirects/)
	// files should be included as modules named `_headers` and `_redirects` with
	// content type `text/plain`.
	Assets VersionAssets `json:"assets"`
	// List of bindings attached to a Worker. You can find more about bindings on our
	// docs:
	// https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
	Bindings []VersionBinding `json:"bindings"`
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate string `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime. Used to
	// enable upcoming features or opt in or out of specific changes not included in a
	// `compatibility_date`.
	CompatibilityFlags []string `json:"compatibility_flags"`
	// List of containers attached to a Worker. Containers can only be attached to
	// Durable Object classes of this Worker script.
	Containers []VersionContainer `json:"containers"`
	// Resource limits enforced at runtime.
	Limits VersionLimits `json:"limits"`
	// The name of the main module in the `modules` array (e.g. the name of the module
	// that exports a `fetch` handler).
	MainModule string `json:"main_module"`
	// Durable Object migration tag. Set when the version is deployed. Omitted if the
	// version has not been deployed or the Worker does not use Durable Objects.
	MigrationTag string `json:"migration_tag"`
	// Migrations for Durable Objects associated with the version. Migrations are
	// applied when the version is deployed.
	Migrations VersionMigrations `json:"migrations"`
	// Code, sourcemaps, and other content used at runtime.
	//
	// This includes
	// [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers)
	// and
	// [`_redirects`](https://developers.cloudflare.com/workers/static-assets/redirects/)
	// files used to configure
	// [Static Assets](https://developers.cloudflare.com/workers/static-assets/).
	// `_headers` and `_redirects` files should be included as modules named `_headers`
	// and `_redirects` with content type `text/plain`.
	Modules []VersionModule `json:"modules"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	// Specify mode='smart' for Smart Placement, or one of region/hostname/host.
	Placement VersionPlacement `json:"placement"`
	// The client used to create the version.
	Source string `json:"source"`
	// Time in milliseconds spent on
	// [Worker startup](https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time).
	StartupTimeMs int64 `json:"startup_time_ms"`
	// Usage model for the version.
	//
	// Deprecated: deprecated
	UsageModel VersionUsageModel `json:"usage_model"`
	JSON       versionJSON       `json:"-"`
}

func (*Version) UnmarshalJSON

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

type VersionAnnotations

type VersionAnnotations struct {
	// Human-readable message about the version. Truncated to 1000 bytes if longer.
	WorkersMessage string `json:"workers/message"`
	// User-provided identifier for the version. Maximum 100 bytes.
	WorkersTag string `json:"workers/tag"`
	// Operation that triggered the creation of the version.
	WorkersTriggeredBy string                 `json:"workers/triggered_by"`
	JSON               versionAnnotationsJSON `json:"-"`
}

Metadata about the version.

func (*VersionAnnotations) UnmarshalJSON

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

type VersionAnnotationsParam

type VersionAnnotationsParam struct {
	// Human-readable message about the version. Truncated to 1000 bytes if longer.
	WorkersMessage param.Field[string] `json:"workers/message"`
	// User-provided identifier for the version. Maximum 100 bytes.
	WorkersTag param.Field[string] `json:"workers/tag"`
}

Metadata about the version.

func (VersionAnnotationsParam) MarshalJSON

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

type VersionAssets

type VersionAssets struct {
	// Configuration for assets within a Worker.
	Config VersionAssetsConfig `json:"config"`
	// Token provided upon successful upload of all files from a registered manifest.
	JWT  string            `json:"jwt"`
	JSON versionAssetsJSON `json:"-"`
}

Configuration for assets within a Worker.

[`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https://developers.cloudflare.com/workers/static-assets/redirects/) files should be included as modules named `_headers` and `_redirects` with content type `text/plain`.

func (*VersionAssets) UnmarshalJSON

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

type VersionAssetsConfig

type VersionAssetsConfig struct {
	// Determines the redirects and rewrites of requests for HTML content.
	HTMLHandling VersionAssetsConfigHTMLHandling `json:"html_handling"`
	// Determines the response when a request does not match a static asset, and there
	// is no Worker script.
	NotFoundHandling VersionAssetsConfigNotFoundHandling `json:"not_found_handling"`
	// Contains a list path rules to control routing to either the Worker or assets.
	// Glob (\*) and negative (!) rules are supported. Rules must start with either '/'
	// or '!/'. At least one non-negative rule must be provided, and negative rules
	// have higher precedence than non-negative rules.
	RunWorkerFirst VersionAssetsConfigRunWorkerFirstUnion `json:"run_worker_first"`
	JSON           versionAssetsConfigJSON                `json:"-"`
}

Configuration for assets within a Worker.

func (*VersionAssetsConfig) UnmarshalJSON

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

type VersionAssetsConfigHTMLHandling

type VersionAssetsConfigHTMLHandling string

Determines the redirects and rewrites of requests for HTML content.

const (
	VersionAssetsConfigHTMLHandlingAutoTrailingSlash  VersionAssetsConfigHTMLHandling = "auto-trailing-slash"
	VersionAssetsConfigHTMLHandlingForceTrailingSlash VersionAssetsConfigHTMLHandling = "force-trailing-slash"
	VersionAssetsConfigHTMLHandlingDropTrailingSlash  VersionAssetsConfigHTMLHandling = "drop-trailing-slash"
	VersionAssetsConfigHTMLHandlingNone               VersionAssetsConfigHTMLHandling = "none"
)

func (VersionAssetsConfigHTMLHandling) IsKnown

type VersionAssetsConfigNotFoundHandling

type VersionAssetsConfigNotFoundHandling string

Determines the response when a request does not match a static asset, and there is no Worker script.

const (
	VersionAssetsConfigNotFoundHandlingNone                  VersionAssetsConfigNotFoundHandling = "none"
	VersionAssetsConfigNotFoundHandling404Page               VersionAssetsConfigNotFoundHandling = "404-page"
	VersionAssetsConfigNotFoundHandlingSinglePageApplication VersionAssetsConfigNotFoundHandling = "single-page-application"
)

func (VersionAssetsConfigNotFoundHandling) IsKnown

type VersionAssetsConfigParam

type VersionAssetsConfigParam struct {
	// Determines the redirects and rewrites of requests for HTML content.
	HTMLHandling param.Field[VersionAssetsConfigHTMLHandling] `json:"html_handling"`
	// Determines the response when a request does not match a static asset, and there
	// is no Worker script.
	NotFoundHandling param.Field[VersionAssetsConfigNotFoundHandling] `json:"not_found_handling"`
	// Contains a list path rules to control routing to either the Worker or assets.
	// Glob (\*) and negative (!) rules are supported. Rules must start with either '/'
	// or '!/'. At least one non-negative rule must be provided, and negative rules
	// have higher precedence than non-negative rules.
	RunWorkerFirst param.Field[VersionAssetsConfigRunWorkerFirstUnionParam] `json:"run_worker_first"`
}

Configuration for assets within a Worker.

func (VersionAssetsConfigParam) MarshalJSON

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

type VersionAssetsConfigRunWorkerFirstArray

type VersionAssetsConfigRunWorkerFirstArray []string

func (VersionAssetsConfigRunWorkerFirstArray) ImplementsVersionAssetsConfigRunWorkerFirstUnion

func (r VersionAssetsConfigRunWorkerFirstArray) ImplementsVersionAssetsConfigRunWorkerFirstUnion()

type VersionAssetsConfigRunWorkerFirstArrayParam

type VersionAssetsConfigRunWorkerFirstArrayParam []string

func (VersionAssetsConfigRunWorkerFirstArrayParam) ImplementsVersionAssetsConfigRunWorkerFirstUnionParam

func (r VersionAssetsConfigRunWorkerFirstArrayParam) ImplementsVersionAssetsConfigRunWorkerFirstUnionParam()

type VersionAssetsConfigRunWorkerFirstUnion

type VersionAssetsConfigRunWorkerFirstUnion interface {
	ImplementsVersionAssetsConfigRunWorkerFirstUnion()
}

Contains a list path rules to control routing to either the Worker or assets. Glob (\*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.

Union satisfied by VersionAssetsConfigRunWorkerFirstArray or shared.UnionBool.

type VersionAssetsConfigRunWorkerFirstUnionParam

type VersionAssetsConfigRunWorkerFirstUnionParam interface {
	ImplementsVersionAssetsConfigRunWorkerFirstUnionParam()
}

Contains a list path rules to control routing to either the Worker or assets. Glob (\*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.

Satisfied by workers.VersionAssetsConfigRunWorkerFirstArrayParam, shared.UnionBool.

type VersionAssetsParam

type VersionAssetsParam struct {
	// Configuration for assets within a Worker.
	Config param.Field[VersionAssetsConfigParam] `json:"config"`
	// Token provided upon successful upload of all files from a registered manifest.
	JWT param.Field[string] `json:"jwt"`
}

Configuration for assets within a Worker.

[`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https://developers.cloudflare.com/workers/static-assets/redirects/) files should be included as modules named `_headers` and `_redirects` with content type `text/plain`.

func (VersionAssetsParam) MarshalJSON

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

type VersionBinding

type VersionBinding struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsType `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID string `json:"id"`
	// This field can have the runtime type of [interface{}].
	Algorithm interface{} `json:"algorithm"`
	// This field can have the runtime type of [[]string].
	AllowedDestinationAddresses interface{} `json:"allowed_destination_addresses"`
	// This field can have the runtime type of [[]string].
	AllowedSenderAddresses interface{} `json:"allowed_sender_addresses"`
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID string `json:"app_id"`
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// Identifier of the D1 database to bind to.
	DatabaseID string `json:"database_id"`
	// The name of the dataset to bind to.
	Dataset string `json:"dataset"`
	// Destination address for the email.
	DestinationAddress string `json:"destination_address" format:"email"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace string `json:"dispatch_namespace"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint string `json:"entrypoint"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format VersionBindingsFormat `json:"format"`
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name"`
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName string `json:"instance_name"`
	// This field can have the runtime type of [interface{}].
	Json interface{} `json:"json"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction VersionBindingsJurisdiction `json:"jurisdiction"`
	// This field can have the runtime type of [interface{}].
	KeyJwk interface{} `json:"key_jwk"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID string `json:"network_id"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName string `json:"old_name"`
	// This field can have the runtime type of
	// [VersionBindingsWorkersBindingKindDispatchNamespaceOutbound].
	Outbound interface{} `json:"outbound"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName string `json:"script_name"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name"`
	// Name of Worker to bind to.
	Service string `json:"service"`
	// Identifier of the VPC service to bind to.
	ServiceID string `json:"service_id"`
	// This field can have the runtime type of
	// [VersionBindingsWorkersBindingKindRatelimitSimple].
	Simple interface{} `json:"simple"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id"`
	// The text value to use.
	Text string `json:"text"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID string `json:"tunnel_id"`
	// This field can have the runtime type of
	// [[]VersionBindingsWorkersBindingKindSecretKeyUsage].
	Usages interface{} `json:"usages"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID string `json:"version_id"`
	// Name of the Workflow to bind to.
	WorkflowName string             `json:"workflow_name"`
	JSON         versionBindingJSON `json:"-"`
	// contains filtered or unexported fields
}

A binding to allow the Worker to communicate with resources.

func (VersionBinding) AsUnion

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

Possible runtime types of the union are VersionBindingsWorkersBindingKindAI, VersionBindingsWorkersBindingKindAISearch, VersionBindingsWorkersBindingKindAISearchNamespace, VersionBindingsWorkersBindingKindAnalyticsEngine, VersionBindingsWorkersBindingKindAssets, VersionBindingsWorkersBindingKindBrowser, VersionBindingsWorkersBindingKindD1, VersionBindingsWorkersBindingKindDataBlob, VersionBindingsWorkersBindingKindDispatchNamespace, VersionBindingsWorkersBindingKindDurableObjectNamespace, VersionBindingsWorkersBindingKindHyperdrive, VersionBindingsWorkersBindingKindInherit, VersionBindingsWorkersBindingKindImages, VersionBindingsWorkersBindingKindJson, VersionBindingsWorkersBindingKindKVNamespace, VersionBindingsWorkersBindingKindMedia, VersionBindingsWorkersBindingKindMTLSCertificate, VersionBindingsWorkersBindingKindPlainText, VersionBindingsWorkersBindingKindPipelines, VersionBindingsWorkersBindingKindQueue, VersionBindingsWorkersBindingKindRatelimit, VersionBindingsWorkersBindingKindR2Bucket, VersionBindingsWorkersBindingKindSecretText, VersionBindingsWorkersBindingKindSendEmail, VersionBindingsWorkersBindingKindService, VersionBindingsWorkersBindingKindTextBlob, VersionBindingsWorkersBindingKindVectorize, VersionBindingsWorkersBindingKindVersionMetadata, VersionBindingsWorkersBindingKindSecretsStoreSecret, VersionBindingsWorkersBindingKindFlagship, VersionBindingsWorkersBindingKindSecretKey, VersionBindingsWorkersBindingKindWorkflow, VersionBindingsWorkersBindingKindWasmModule, VersionBindingsWorkersBindingKindVPCService, VersionBindingsWorkersBindingKindVPCNetwork.

func (*VersionBinding) UnmarshalJSON

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

type VersionBindingParam

type VersionBindingParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsType] `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID                          param.Field[string]      `json:"id"`
	Algorithm                   param.Field[interface{}] `json:"algorithm"`
	AllowedDestinationAddresses param.Field[interface{}] `json:"allowed_destination_addresses"`
	AllowedSenderAddresses      param.Field[interface{}] `json:"allowed_sender_addresses"`
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID param.Field[string] `json:"app_id"`
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID param.Field[string] `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// Identifier of the D1 database to bind to.
	DatabaseID param.Field[string] `json:"database_id"`
	// The name of the dataset to bind to.
	Dataset param.Field[string] `json:"dataset"`
	// Destination address for the email.
	DestinationAddress param.Field[string] `json:"destination_address" format:"email"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace param.Field[string] `json:"dispatch_namespace"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// The environment of the script_name to bind to.
	Environment param.Field[string] `json:"environment"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[VersionBindingsFormat] `json:"format"`
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name"`
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName param.Field[string]      `json:"instance_name"`
	Json         param.Field[interface{}] `json:"json"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction param.Field[VersionBindingsJurisdiction] `json:"jurisdiction"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string]      `json:"key_base64"`
	KeyJwk    param.Field[interface{}] `json:"key_jwk"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace param.Field[string] `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID param.Field[string] `json:"network_id"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName  param.Field[string]      `json:"old_name"`
	Outbound param.Field[interface{}] `json:"outbound"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName param.Field[string] `json:"script_name"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service"`
	// Identifier of the VPC service to bind to.
	ServiceID param.Field[string]      `json:"service_id"`
	Simple    param.Field[interface{}] `json:"simple"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id"`
	// The text value to use.
	Text param.Field[string] `json:"text"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID param.Field[string]      `json:"tunnel_id"`
	Usages   param.Field[interface{}] `json:"usages"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID param.Field[string] `json:"version_id"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name"`
}

A binding to allow the Worker to communicate with resources.

func (VersionBindingParam) MarshalJSON

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

type VersionBindingsFormat

type VersionBindingsFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	VersionBindingsFormatRaw   VersionBindingsFormat = "raw"
	VersionBindingsFormatPkcs8 VersionBindingsFormat = "pkcs8"
	VersionBindingsFormatSpki  VersionBindingsFormat = "spki"
	VersionBindingsFormatJwk   VersionBindingsFormat = "jwk"
)

func (VersionBindingsFormat) IsKnown

func (r VersionBindingsFormat) IsKnown() bool

type VersionBindingsJurisdiction

type VersionBindingsJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	VersionBindingsJurisdictionEu          VersionBindingsJurisdiction = "eu"
	VersionBindingsJurisdictionFedramp     VersionBindingsJurisdiction = "fedramp"
	VersionBindingsJurisdictionFedrampHigh VersionBindingsJurisdiction = "fedramp-high"
)

func (VersionBindingsJurisdiction) IsKnown

func (r VersionBindingsJurisdiction) IsKnown() bool

type VersionBindingsType

type VersionBindingsType string

The kind of resource that the binding provides.

const (
	VersionBindingsTypeAI                     VersionBindingsType = "ai"
	VersionBindingsTypeAISearch               VersionBindingsType = "ai_search"
	VersionBindingsTypeAISearchNamespace      VersionBindingsType = "ai_search_namespace"
	VersionBindingsTypeAnalyticsEngine        VersionBindingsType = "analytics_engine"
	VersionBindingsTypeAssets                 VersionBindingsType = "assets"
	VersionBindingsTypeBrowser                VersionBindingsType = "browser"
	VersionBindingsTypeD1                     VersionBindingsType = "d1"
	VersionBindingsTypeDataBlob               VersionBindingsType = "data_blob"
	VersionBindingsTypeDispatchNamespace      VersionBindingsType = "dispatch_namespace"
	VersionBindingsTypeDurableObjectNamespace VersionBindingsType = "durable_object_namespace"
	VersionBindingsTypeHyperdrive             VersionBindingsType = "hyperdrive"
	VersionBindingsTypeInherit                VersionBindingsType = "inherit"
	VersionBindingsTypeImages                 VersionBindingsType = "images"
	VersionBindingsTypeJson                   VersionBindingsType = "json"
	VersionBindingsTypeKVNamespace            VersionBindingsType = "kv_namespace"
	VersionBindingsTypeMedia                  VersionBindingsType = "media"
	VersionBindingsTypeMTLSCertificate        VersionBindingsType = "mtls_certificate"
	VersionBindingsTypePlainText              VersionBindingsType = "plain_text"
	VersionBindingsTypePipelines              VersionBindingsType = "pipelines"
	VersionBindingsTypeQueue                  VersionBindingsType = "queue"
	VersionBindingsTypeRatelimit              VersionBindingsType = "ratelimit"
	VersionBindingsTypeR2Bucket               VersionBindingsType = "r2_bucket"
	VersionBindingsTypeSecretText             VersionBindingsType = "secret_text"
	VersionBindingsTypeSendEmail              VersionBindingsType = "send_email"
	VersionBindingsTypeService                VersionBindingsType = "service"
	VersionBindingsTypeTextBlob               VersionBindingsType = "text_blob"
	VersionBindingsTypeVectorize              VersionBindingsType = "vectorize"
	VersionBindingsTypeVersionMetadata        VersionBindingsType = "version_metadata"
	VersionBindingsTypeSecretsStoreSecret     VersionBindingsType = "secrets_store_secret"
	VersionBindingsTypeFlagship               VersionBindingsType = "flagship"
	VersionBindingsTypeSecretKey              VersionBindingsType = "secret_key"
	VersionBindingsTypeWorkflow               VersionBindingsType = "workflow"
	VersionBindingsTypeWasmModule             VersionBindingsType = "wasm_module"
	VersionBindingsTypeVPCService             VersionBindingsType = "vpc_service"
	VersionBindingsTypeVPCNetwork             VersionBindingsType = "vpc_network"
)

func (VersionBindingsType) IsKnown

func (r VersionBindingsType) IsKnown() bool

type VersionBindingsUnion

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

A binding to allow the Worker to communicate with resources.

Union satisfied by VersionBindingsWorkersBindingKindAI, VersionBindingsWorkersBindingKindAISearch, VersionBindingsWorkersBindingKindAISearchNamespace, VersionBindingsWorkersBindingKindAnalyticsEngine, VersionBindingsWorkersBindingKindAssets, VersionBindingsWorkersBindingKindBrowser, VersionBindingsWorkersBindingKindD1, VersionBindingsWorkersBindingKindDataBlob, VersionBindingsWorkersBindingKindDispatchNamespace, VersionBindingsWorkersBindingKindDurableObjectNamespace, VersionBindingsWorkersBindingKindHyperdrive, VersionBindingsWorkersBindingKindInherit, VersionBindingsWorkersBindingKindImages, VersionBindingsWorkersBindingKindJson, VersionBindingsWorkersBindingKindKVNamespace, VersionBindingsWorkersBindingKindMedia, VersionBindingsWorkersBindingKindMTLSCertificate, VersionBindingsWorkersBindingKindPlainText, VersionBindingsWorkersBindingKindPipelines, VersionBindingsWorkersBindingKindQueue, VersionBindingsWorkersBindingKindRatelimit, VersionBindingsWorkersBindingKindR2Bucket, VersionBindingsWorkersBindingKindSecretText, VersionBindingsWorkersBindingKindSendEmail, VersionBindingsWorkersBindingKindService, VersionBindingsWorkersBindingKindTextBlob, VersionBindingsWorkersBindingKindVectorize, VersionBindingsWorkersBindingKindVersionMetadata, VersionBindingsWorkersBindingKindSecretsStoreSecret, VersionBindingsWorkersBindingKindFlagship, VersionBindingsWorkersBindingKindSecretKey, VersionBindingsWorkersBindingKindWorkflow, VersionBindingsWorkersBindingKindWasmModule, VersionBindingsWorkersBindingKindVPCService or VersionBindingsWorkersBindingKindVPCNetwork.

type VersionBindingsUnionParam

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

A binding to allow the Worker to communicate with resources.

Satisfied by workers.VersionBindingsWorkersBindingKindAIParam, workers.VersionBindingsWorkersBindingKindAISearchParam, workers.VersionBindingsWorkersBindingKindAISearchNamespaceParam, workers.VersionBindingsWorkersBindingKindAnalyticsEngineParam, workers.VersionBindingsWorkersBindingKindAssetsParam, workers.VersionBindingsWorkersBindingKindBrowserParam, workers.VersionBindingsWorkersBindingKindD1Param, workers.VersionBindingsWorkersBindingKindDataBlobParam, workers.VersionBindingsWorkersBindingKindDispatchNamespaceParam, workers.VersionBindingsWorkersBindingKindDurableObjectNamespaceParam, workers.VersionBindingsWorkersBindingKindHyperdriveParam, workers.VersionBindingsWorkersBindingKindInheritParam, workers.VersionBindingsWorkersBindingKindImagesParam, workers.VersionBindingsWorkersBindingKindJsonParam, workers.VersionBindingsWorkersBindingKindKVNamespaceParam, workers.VersionBindingsWorkersBindingKindMediaParam, workers.VersionBindingsWorkersBindingKindMTLSCertificateParam, workers.VersionBindingsWorkersBindingKindPlainTextParam, workers.VersionBindingsWorkersBindingKindPipelinesParam, workers.VersionBindingsWorkersBindingKindQueueParam, workers.VersionBindingsWorkersBindingKindRatelimitParam, workers.VersionBindingsWorkersBindingKindR2BucketParam, workers.VersionBindingsWorkersBindingKindSecretTextParam, workers.VersionBindingsWorkersBindingKindSendEmailParam, workers.VersionBindingsWorkersBindingKindServiceParam, workers.VersionBindingsWorkersBindingKindTextBlobParam, workers.VersionBindingsWorkersBindingKindVectorizeParam, workers.VersionBindingsWorkersBindingKindVersionMetadataParam, workers.VersionBindingsWorkersBindingKindSecretsStoreSecretParam, workers.VersionBindingsWorkersBindingKindFlagshipParam, workers.VersionBindingsWorkersBindingKindSecretKeyParam, workers.VersionBindingsWorkersBindingKindWorkflowParam, workers.VersionBindingsWorkersBindingKindWasmModuleParam, workers.VersionBindingsWorkersBindingKindVPCServiceParam, workers.VersionBindingsWorkersBindingKindVPCNetworkParam, VersionBindingParam.

type VersionBindingsWorkersBindingKindAI

type VersionBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindAIType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindAIJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindAI) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindAIParam

type VersionBindingsWorkersBindingKindAIParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindAIType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindAIParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindAISearch

type VersionBindingsWorkersBindingKindAISearch struct {
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName string `json:"instance_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindAISearchType `json:"type" api:"required"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace string                                        `json:"namespace"`
	JSON      versionBindingsWorkersBindingKindAISearchJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindAISearch) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindAISearchNamespace

type VersionBindingsWorkersBindingKindAISearchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The user-chosen namespace name. Must exist before deploy -- Wrangler handles
	// auto-creation on deploy failure (R2 bucket pattern). The "default" namespace is
	// auto-created by config-api for new accounts. Grants full access (CRUD + search +
	// chat) to all instances within the namespace.
	Namespace string `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindAISearchNamespaceType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindAISearchNamespaceJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindAISearchNamespace) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindAISearchNamespaceParam

type VersionBindingsWorkersBindingKindAISearchNamespaceParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The user-chosen namespace name. Must exist before deploy -- Wrangler handles
	// auto-creation on deploy failure (R2 bucket pattern). The "default" namespace is
	// auto-created by config-api for new accounts. Grants full access (CRUD + search +
	// chat) to all instances within the namespace.
	Namespace param.Field[string] `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindAISearchNamespaceType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindAISearchNamespaceParam) MarshalJSON

type VersionBindingsWorkersBindingKindAISearchNamespaceType

type VersionBindingsWorkersBindingKindAISearchNamespaceType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindAISearchNamespaceTypeAISearchNamespace VersionBindingsWorkersBindingKindAISearchNamespaceType = "ai_search_namespace"
)

func (VersionBindingsWorkersBindingKindAISearchNamespaceType) IsKnown

type VersionBindingsWorkersBindingKindAISearchParam

type VersionBindingsWorkersBindingKindAISearchParam struct {
	// The user-chosen instance name. Must exist at deploy time. The worker can search,
	// chat, update, and manage items/jobs on this instance.
	InstanceName param.Field[string] `json:"instance_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindAISearchType] `json:"type" api:"required"`
	// The namespace the instance belongs to. Defaults to "default" if omitted.
	// Customers who don't use namespaces can simply omit this field.
	Namespace param.Field[string] `json:"namespace"`
}

func (VersionBindingsWorkersBindingKindAISearchParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindAISearchType

type VersionBindingsWorkersBindingKindAISearchType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindAISearchTypeAISearch VersionBindingsWorkersBindingKindAISearchType = "ai_search"
)

func (VersionBindingsWorkersBindingKindAISearchType) IsKnown

type VersionBindingsWorkersBindingKindAIType

type VersionBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindAITypeAI VersionBindingsWorkersBindingKindAIType = "ai"
)

func (VersionBindingsWorkersBindingKindAIType) IsKnown

type VersionBindingsWorkersBindingKindAnalyticsEngine

type VersionBindingsWorkersBindingKindAnalyticsEngine struct {
	// The name of the dataset to bind to.
	Dataset string `json:"dataset" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindAnalyticsEngineType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindAnalyticsEngineJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindAnalyticsEngineParam

type VersionBindingsWorkersBindingKindAnalyticsEngineParam struct {
	// The name of the dataset to bind to.
	Dataset param.Field[string] `json:"dataset" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindAnalyticsEngineType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindAnalyticsEngineParam) MarshalJSON

type VersionBindingsWorkersBindingKindAnalyticsEngineType

type VersionBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine VersionBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (VersionBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type VersionBindingsWorkersBindingKindAssets

type VersionBindingsWorkersBindingKindAssets struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindAssetsType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindAssetsJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindAssets) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindAssetsParam

type VersionBindingsWorkersBindingKindAssetsParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindAssetsType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindAssetsParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindAssetsType

type VersionBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindAssetsTypeAssets VersionBindingsWorkersBindingKindAssetsType = "assets"
)

func (VersionBindingsWorkersBindingKindAssetsType) IsKnown

type VersionBindingsWorkersBindingKindBrowser

type VersionBindingsWorkersBindingKindBrowser struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindBrowserType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindBrowserJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindBrowser) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindBrowserParam

type VersionBindingsWorkersBindingKindBrowserParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindBrowserType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindBrowserParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindBrowserType

type VersionBindingsWorkersBindingKindBrowserType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindBrowserTypeBrowser VersionBindingsWorkersBindingKindBrowserType = "browser"
)

func (VersionBindingsWorkersBindingKindBrowserType) IsKnown

type VersionBindingsWorkersBindingKindD1

type VersionBindingsWorkersBindingKindD1 struct {
	// Identifier of the D1 database to bind to.
	DatabaseID string `json:"database_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindD1Type `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID   string                                  `json:"id"`
	JSON versionBindingsWorkersBindingKindD1JSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindD1) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindD1Param

type VersionBindingsWorkersBindingKindD1Param struct {
	// Identifier of the D1 database to bind to.
	DatabaseID param.Field[string] `json:"database_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindD1Type] `json:"type" api:"required"`
	// Identifier of the D1 database to bind to.
	//
	// Deprecated: This property has been renamed to `database_id`.
	ID param.Field[string] `json:"id"`
}

func (VersionBindingsWorkersBindingKindD1Param) MarshalJSON

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

type VersionBindingsWorkersBindingKindD1Type

type VersionBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindD1TypeD1 VersionBindingsWorkersBindingKindD1Type = "d1"
)

func (VersionBindingsWorkersBindingKindD1Type) IsKnown

type VersionBindingsWorkersBindingKindDataBlob

type VersionBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type VersionBindingsWorkersBindingKindDataBlobType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindDataBlobJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindDataBlob) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindDataBlobParam

type VersionBindingsWorkersBindingKindDataBlobParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[VersionBindingsWorkersBindingKindDataBlobType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindDataBlobParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindDataBlobType

type VersionBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindDataBlobTypeDataBlob VersionBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (VersionBindingsWorkersBindingKindDataBlobType) IsKnown

type VersionBindingsWorkersBindingKindDispatchNamespace

type VersionBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the dispatch namespace.
	Namespace string `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindDispatchNamespaceType `json:"type" api:"required"`
	// Outbound worker.
	Outbound VersionBindingsWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"`
	JSON     versionBindingsWorkersBindingKindDispatchNamespaceJSON     `json:"-"`
}

func (*VersionBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindDispatchNamespaceOutbound

type VersionBindingsWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params []VersionBindingsWorkersBindingKindDispatchNamespaceOutboundParam `json:"params"`
	// Outbound worker.
	Worker VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   versionBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*VersionBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type VersionBindingsWorkersBindingKindDispatchNamespaceOutboundParam

type VersionBindingsWorkersBindingKindDispatchNamespaceOutboundParam struct {
	// Name of the parameter.
	Name string                                                              `json:"name" api:"required"`
	JSON versionBindingsWorkersBindingKindDispatchNamespaceOutboundParamJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindDispatchNamespaceOutboundParam) UnmarshalJSON

type VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Entrypoint to invoke on the outbound worker.
	Entrypoint string `json:"entrypoint"`
	// Environment of the outbound worker.
	Environment string `json:"environment"`
	// Name of the outbound worker.
	Service string                                                               `json:"service"`
	JSON    versionBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"`
}

Outbound worker.

func (*VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON

type VersionBindingsWorkersBindingKindDispatchNamespaceParam

type VersionBindingsWorkersBindingKindDispatchNamespaceParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindDispatchNamespaceType] `json:"type" api:"required"`
	// Outbound worker.
	Outbound param.Field[VersionBindingsWorkersBindingKindDispatchNamespaceOutboundParam] `json:"outbound"`
}

func (VersionBindingsWorkersBindingKindDispatchNamespaceParam) MarshalJSON

type VersionBindingsWorkersBindingKindDispatchNamespaceType

type VersionBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace VersionBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (VersionBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type VersionBindingsWorkersBindingKindDurableObjectNamespace

type VersionBindingsWorkersBindingKindDurableObjectNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindDurableObjectNamespaceType `json:"type" api:"required"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace string `json:"dispatch_namespace"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName string                                                      `json:"script_name"`
	JSON       versionBindingsWorkersBindingKindDurableObjectNamespaceJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindDurableObjectNamespace) UnmarshalJSON

type VersionBindingsWorkersBindingKindDurableObjectNamespaceParam

type VersionBindingsWorkersBindingKindDurableObjectNamespaceParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindDurableObjectNamespaceType] `json:"type" api:"required"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// The dispatch namespace the Durable Object script belongs to.
	DispatchNamespace param.Field[string] `json:"dispatch_namespace"`
	// The environment of the script_name to bind to.
	Environment param.Field[string] `json:"environment"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id"`
	// The script where the Durable Object is defined, if it is external to this
	// Worker.
	ScriptName param.Field[string] `json:"script_name"`
}

func (VersionBindingsWorkersBindingKindDurableObjectNamespaceParam) MarshalJSON

type VersionBindingsWorkersBindingKindDurableObjectNamespaceType

type VersionBindingsWorkersBindingKindDurableObjectNamespaceType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindDurableObjectNamespaceTypeDurableObjectNamespace VersionBindingsWorkersBindingKindDurableObjectNamespaceType = "durable_object_namespace"
)

func (VersionBindingsWorkersBindingKindDurableObjectNamespaceType) IsKnown

type VersionBindingsWorkersBindingKindFlagship

type VersionBindingsWorkersBindingKindFlagship struct {
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID string `json:"app_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindFlagshipType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindFlagshipJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindFlagship) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindFlagshipParam

type VersionBindingsWorkersBindingKindFlagshipParam struct {
	// ID of the Flagship app to bind to for feature flag evaluation.
	AppID param.Field[string] `json:"app_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindFlagshipType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindFlagshipParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindFlagshipType

type VersionBindingsWorkersBindingKindFlagshipType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindFlagshipTypeFlagship VersionBindingsWorkersBindingKindFlagshipType = "flagship"
)

func (VersionBindingsWorkersBindingKindFlagshipType) IsKnown

type VersionBindingsWorkersBindingKindHyperdrive

type VersionBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID string `json:"id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindHyperdriveType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindHyperdriveJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindHyperdrive) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindHyperdriveParam

type VersionBindingsWorkersBindingKindHyperdriveParam struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID param.Field[string] `json:"id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindHyperdriveType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindHyperdriveParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindHyperdriveType

type VersionBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindHyperdriveTypeHyperdrive VersionBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (VersionBindingsWorkersBindingKindHyperdriveType) IsKnown

type VersionBindingsWorkersBindingKindImages

type VersionBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindImagesType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindImagesJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindImages) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindImagesParam

type VersionBindingsWorkersBindingKindImagesParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindImagesType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindImagesParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindImagesType

type VersionBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindImagesTypeImages VersionBindingsWorkersBindingKindImagesType = "images"
)

func (VersionBindingsWorkersBindingKindImagesType) IsKnown

type VersionBindingsWorkersBindingKindInherit

type VersionBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindInheritType `json:"type" api:"required"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName string `json:"old_name"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID string                                       `json:"version_id"`
	JSON      versionBindingsWorkersBindingKindInheritJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindInherit) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindInheritParam

type VersionBindingsWorkersBindingKindInheritParam struct {
	// The name of the inherited binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindInheritType] `json:"type" api:"required"`
	// The old name of the inherited binding. If set, the binding will be renamed from
	// `old_name` to `name` in the new version. If not set, the binding will keep the
	// same name between versions.
	OldName param.Field[string] `json:"old_name"`
	// Identifier for the version to inherit the binding from, which can be the version
	// ID or the literal "latest" to inherit from the latest version. Defaults to
	// inheriting the binding from the latest version.
	VersionID param.Field[string] `json:"version_id"`
}

func (VersionBindingsWorkersBindingKindInheritParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindInheritType

type VersionBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindInheritTypeInherit VersionBindingsWorkersBindingKindInheritType = "inherit"
)

func (VersionBindingsWorkersBindingKindInheritType) IsKnown

type VersionBindingsWorkersBindingKindJson

type VersionBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json interface{} `json:"json" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindJsonType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindJsonJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindJson) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindJsonParam

type VersionBindingsWorkersBindingKindJsonParam struct {
	// JSON data to use.
	Json param.Field[interface{}] `json:"json" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindJsonType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindJsonParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindJsonType

type VersionBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindJsonTypeJson VersionBindingsWorkersBindingKindJsonType = "json"
)

func (VersionBindingsWorkersBindingKindJsonType) IsKnown

type VersionBindingsWorkersBindingKindKVNamespace

type VersionBindingsWorkersBindingKindKVNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindKVNamespaceType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindKVNamespaceJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindKVNamespace) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindKVNamespaceParam

type VersionBindingsWorkersBindingKindKVNamespaceParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindKVNamespaceType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindKVNamespaceParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindKVNamespaceType

type VersionBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindKVNamespaceTypeKVNamespace VersionBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (VersionBindingsWorkersBindingKindKVNamespaceType) IsKnown

type VersionBindingsWorkersBindingKindMTLSCertificate

type VersionBindingsWorkersBindingKindMTLSCertificate struct {
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindMTLSCertificateType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindMTLSCertificateJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindMTLSCertificate) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindMTLSCertificateParam

type VersionBindingsWorkersBindingKindMTLSCertificateParam struct {
	// Identifier of the certificate to bind to.
	CertificateID param.Field[string] `json:"certificate_id" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindMTLSCertificateType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindMTLSCertificateParam) MarshalJSON

type VersionBindingsWorkersBindingKindMTLSCertificateType

type VersionBindingsWorkersBindingKindMTLSCertificateType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindMTLSCertificateTypeMTLSCertificate VersionBindingsWorkersBindingKindMTLSCertificateType = "mtls_certificate"
)

func (VersionBindingsWorkersBindingKindMTLSCertificateType) IsKnown

type VersionBindingsWorkersBindingKindMedia

type VersionBindingsWorkersBindingKindMedia struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindMediaType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindMediaJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindMedia) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindMediaParam

type VersionBindingsWorkersBindingKindMediaParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindMediaType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindMediaParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindMediaType

type VersionBindingsWorkersBindingKindMediaType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindMediaTypeMedia VersionBindingsWorkersBindingKindMediaType = "media"
)

func (VersionBindingsWorkersBindingKindMediaType) IsKnown

type VersionBindingsWorkersBindingKindPipelines

type VersionBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindPipelinesType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindPipelinesJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindPipelines) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindPipelinesParam

type VersionBindingsWorkersBindingKindPipelinesParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindPipelinesType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindPipelinesParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindPipelinesType

type VersionBindingsWorkersBindingKindPipelinesType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindPipelinesTypePipelines VersionBindingsWorkersBindingKindPipelinesType = "pipelines"
)

func (VersionBindingsWorkersBindingKindPipelinesType) IsKnown

type VersionBindingsWorkersBindingKindPlainText

type VersionBindingsWorkersBindingKindPlainText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The text value to use.
	Text string `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindPlainTextType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindPlainTextJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindPlainText) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindPlainTextParam

type VersionBindingsWorkersBindingKindPlainTextParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The text value to use.
	Text param.Field[string] `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindPlainTextType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindPlainTextParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindPlainTextType

type VersionBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindPlainTextTypePlainText VersionBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (VersionBindingsWorkersBindingKindPlainTextType) IsKnown

type VersionBindingsWorkersBindingKindQueue

type VersionBindingsWorkersBindingKindQueue struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindQueueType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindQueueJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindQueue) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindQueueParam

type VersionBindingsWorkersBindingKindQueueParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindQueueType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindQueueParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindQueueType

type VersionBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindQueueTypeQueue VersionBindingsWorkersBindingKindQueueType = "queue"
)

func (VersionBindingsWorkersBindingKindQueueType) IsKnown

type VersionBindingsWorkersBindingKindR2Bucket

type VersionBindingsWorkersBindingKindR2Bucket struct {
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindR2BucketType `json:"type" api:"required"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction VersionBindingsWorkersBindingKindR2BucketJurisdiction `json:"jurisdiction"`
	JSON         versionBindingsWorkersBindingKindR2BucketJSON         `json:"-"`
}

func (*VersionBindingsWorkersBindingKindR2Bucket) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindR2BucketJurisdiction

type VersionBindingsWorkersBindingKindR2BucketJurisdiction string

The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket.

const (
	VersionBindingsWorkersBindingKindR2BucketJurisdictionEu          VersionBindingsWorkersBindingKindR2BucketJurisdiction = "eu"
	VersionBindingsWorkersBindingKindR2BucketJurisdictionFedramp     VersionBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp"
	VersionBindingsWorkersBindingKindR2BucketJurisdictionFedrampHigh VersionBindingsWorkersBindingKindR2BucketJurisdiction = "fedramp-high"
)

func (VersionBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown

type VersionBindingsWorkersBindingKindR2BucketParam

type VersionBindingsWorkersBindingKindR2BucketParam struct {
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindR2BucketType] `json:"type" api:"required"`
	// The
	// [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
	// of the R2 bucket.
	Jurisdiction param.Field[VersionBindingsWorkersBindingKindR2BucketJurisdiction] `json:"jurisdiction"`
}

func (VersionBindingsWorkersBindingKindR2BucketParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindR2BucketType

type VersionBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindR2BucketTypeR2Bucket VersionBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (VersionBindingsWorkersBindingKindR2BucketType) IsKnown

type VersionBindingsWorkersBindingKindRatelimit

type VersionBindingsWorkersBindingKindRatelimit struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Identifier of the rate limit namespace to bind to.
	NamespaceID string `json:"namespace_id" api:"required"`
	// The rate limit configuration.
	Simple VersionBindingsWorkersBindingKindRatelimitSimple `json:"simple" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindRatelimitType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindRatelimitJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindRatelimit) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindRatelimitParam

type VersionBindingsWorkersBindingKindRatelimitParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Identifier of the rate limit namespace to bind to.
	NamespaceID param.Field[string] `json:"namespace_id" api:"required"`
	// The rate limit configuration.
	Simple param.Field[VersionBindingsWorkersBindingKindRatelimitSimpleParam] `json:"simple" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindRatelimitType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindRatelimitParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindRatelimitSimple

type VersionBindingsWorkersBindingKindRatelimitSimple struct {
	// The limit (requests per period).
	Limit float64 `json:"limit" api:"required"`
	// The period in seconds.
	Period int64 `json:"period" api:"required"`
	// Duration in seconds to apply the mitigation action after the rate limit is
	// exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400.
	// Must be greater than or equal to the period when non-zero.
	MitigationTimeout int64                                                `json:"mitigation_timeout"`
	JSON              versionBindingsWorkersBindingKindRatelimitSimpleJSON `json:"-"`
}

The rate limit configuration.

func (*VersionBindingsWorkersBindingKindRatelimitSimple) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindRatelimitSimpleParam

type VersionBindingsWorkersBindingKindRatelimitSimpleParam struct {
	// The limit (requests per period).
	Limit param.Field[float64] `json:"limit" api:"required"`
	// The period in seconds.
	Period param.Field[int64] `json:"period" api:"required"`
	// Duration in seconds to apply the mitigation action after the rate limit is
	// exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400.
	// Must be greater than or equal to the period when non-zero.
	MitigationTimeout param.Field[int64] `json:"mitigation_timeout"`
}

The rate limit configuration.

func (VersionBindingsWorkersBindingKindRatelimitSimpleParam) MarshalJSON

type VersionBindingsWorkersBindingKindRatelimitType

type VersionBindingsWorkersBindingKindRatelimitType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindRatelimitTypeRatelimit VersionBindingsWorkersBindingKindRatelimitType = "ratelimit"
)

func (VersionBindingsWorkersBindingKindRatelimitType) IsKnown

type VersionBindingsWorkersBindingKindSecretKey

type VersionBindingsWorkersBindingKindSecretKey struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm interface{} `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format VersionBindingsWorkersBindingKindSecretKeyFormat `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindSecretKeyType `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []VersionBindingsWorkersBindingKindSecretKeyUsage `json:"usages" api:"required"`
	JSON   versionBindingsWorkersBindingKindSecretKeyJSON    `json:"-"`
}

func (*VersionBindingsWorkersBindingKindSecretKey) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindSecretKeyFormat

type VersionBindingsWorkersBindingKindSecretKeyFormat string

Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).

const (
	VersionBindingsWorkersBindingKindSecretKeyFormatRaw   VersionBindingsWorkersBindingKindSecretKeyFormat = "raw"
	VersionBindingsWorkersBindingKindSecretKeyFormatPkcs8 VersionBindingsWorkersBindingKindSecretKeyFormat = "pkcs8"
	VersionBindingsWorkersBindingKindSecretKeyFormatSpki  VersionBindingsWorkersBindingKindSecretKeyFormat = "spki"
	VersionBindingsWorkersBindingKindSecretKeyFormatJwk   VersionBindingsWorkersBindingKindSecretKeyFormat = "jwk"
)

func (VersionBindingsWorkersBindingKindSecretKeyFormat) IsKnown

type VersionBindingsWorkersBindingKindSecretKeyParam

type VersionBindingsWorkersBindingKindSecretKeyParam struct {
	// Algorithm-specific key parameters.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm).
	Algorithm param.Field[interface{}] `json:"algorithm" api:"required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format param.Field[VersionBindingsWorkersBindingKindSecretKeyFormat] `json:"format" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindSecretKeyType] `json:"type" api:"required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages param.Field[[]VersionBindingsWorkersBindingKindSecretKeyUsage] `json:"usages" api:"required"`
	// Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".
	KeyBase64 param.Field[string] `json:"key_base64"`
	// Key data in
	// [JSON Web Key](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key)
	// format. Required if `format` is "jwk".
	KeyJwk param.Field[interface{}] `json:"key_jwk"`
}

func (VersionBindingsWorkersBindingKindSecretKeyParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindSecretKeyType

type VersionBindingsWorkersBindingKindSecretKeyType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindSecretKeyTypeSecretKey VersionBindingsWorkersBindingKindSecretKeyType = "secret_key"
)

func (VersionBindingsWorkersBindingKindSecretKeyType) IsKnown

type VersionBindingsWorkersBindingKindSecretKeyUsage

type VersionBindingsWorkersBindingKindSecretKeyUsage string
const (
	VersionBindingsWorkersBindingKindSecretKeyUsageEncrypt    VersionBindingsWorkersBindingKindSecretKeyUsage = "encrypt"
	VersionBindingsWorkersBindingKindSecretKeyUsageDecrypt    VersionBindingsWorkersBindingKindSecretKeyUsage = "decrypt"
	VersionBindingsWorkersBindingKindSecretKeyUsageSign       VersionBindingsWorkersBindingKindSecretKeyUsage = "sign"
	VersionBindingsWorkersBindingKindSecretKeyUsageVerify     VersionBindingsWorkersBindingKindSecretKeyUsage = "verify"
	VersionBindingsWorkersBindingKindSecretKeyUsageDeriveKey  VersionBindingsWorkersBindingKindSecretKeyUsage = "deriveKey"
	VersionBindingsWorkersBindingKindSecretKeyUsageDeriveBits VersionBindingsWorkersBindingKindSecretKeyUsage = "deriveBits"
	VersionBindingsWorkersBindingKindSecretKeyUsageWrapKey    VersionBindingsWorkersBindingKindSecretKeyUsage = "wrapKey"
	VersionBindingsWorkersBindingKindSecretKeyUsageUnwrapKey  VersionBindingsWorkersBindingKindSecretKeyUsage = "unwrapKey"
)

func (VersionBindingsWorkersBindingKindSecretKeyUsage) IsKnown

type VersionBindingsWorkersBindingKindSecretText

type VersionBindingsWorkersBindingKindSecretText struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindSecretTextType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindSecretTextJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindSecretText) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindSecretTextParam

type VersionBindingsWorkersBindingKindSecretTextParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The secret value to use.
	Text param.Field[string] `json:"text" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindSecretTextType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindSecretTextParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindSecretTextType

type VersionBindingsWorkersBindingKindSecretTextType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindSecretTextTypeSecretText VersionBindingsWorkersBindingKindSecretTextType = "secret_text"
)

func (VersionBindingsWorkersBindingKindSecretTextType) IsKnown

type VersionBindingsWorkersBindingKindSecretsStoreSecret

type VersionBindingsWorkersBindingKindSecretsStoreSecret struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name" api:"required"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindSecretsStoreSecretType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindSecretsStoreSecretJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindSecretsStoreSecret) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindSecretsStoreSecretParam

type VersionBindingsWorkersBindingKindSecretsStoreSecretParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name" api:"required"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindSecretsStoreSecretType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindSecretsStoreSecretParam) MarshalJSON

type VersionBindingsWorkersBindingKindSecretsStoreSecretType

type VersionBindingsWorkersBindingKindSecretsStoreSecretType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindSecretsStoreSecretTypeSecretsStoreSecret VersionBindingsWorkersBindingKindSecretsStoreSecretType = "secrets_store_secret"
)

func (VersionBindingsWorkersBindingKindSecretsStoreSecretType) IsKnown

type VersionBindingsWorkersBindingKindSendEmail

type VersionBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindSendEmailType `json:"type" api:"required"`
	// List of allowed destination addresses.
	AllowedDestinationAddresses []string `json:"allowed_destination_addresses" format:"email"`
	// List of allowed sender addresses.
	AllowedSenderAddresses []string `json:"allowed_sender_addresses" format:"email"`
	// Destination address for the email.
	DestinationAddress string                                         `json:"destination_address" format:"email"`
	JSON               versionBindingsWorkersBindingKindSendEmailJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindSendEmail) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindSendEmailParam

type VersionBindingsWorkersBindingKindSendEmailParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindSendEmailType] `json:"type" api:"required"`
	// List of allowed destination addresses.
	AllowedDestinationAddresses param.Field[[]string] `json:"allowed_destination_addresses" format:"email"`
	// List of allowed sender addresses.
	AllowedSenderAddresses param.Field[[]string] `json:"allowed_sender_addresses" format:"email"`
	// Destination address for the email.
	DestinationAddress param.Field[string] `json:"destination_address" format:"email"`
}

func (VersionBindingsWorkersBindingKindSendEmailParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindSendEmailType

type VersionBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindSendEmailTypeSendEmail VersionBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (VersionBindingsWorkersBindingKindSendEmailType) IsKnown

type VersionBindingsWorkersBindingKindService

type VersionBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Name of Worker to bind to.
	Service string `json:"service" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindServiceType `json:"type" api:"required"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint string `json:"entrypoint"`
	// Optional environment if the Worker utilizes one.
	Environment string                                       `json:"environment"`
	JSON        versionBindingsWorkersBindingKindServiceJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindService) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindServiceParam

type VersionBindingsWorkersBindingKindServiceParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindServiceType] `json:"type" api:"required"`
	// Entrypoint to invoke on the target Worker.
	Entrypoint param.Field[string] `json:"entrypoint"`
	// Optional environment if the Worker utilizes one.
	Environment param.Field[string] `json:"environment"`
}

func (VersionBindingsWorkersBindingKindServiceParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindServiceType

type VersionBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindServiceTypeService VersionBindingsWorkersBindingKindServiceType = "service"
)

func (VersionBindingsWorkersBindingKindServiceType) IsKnown

type VersionBindingsWorkersBindingKindTextBlob

type VersionBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type VersionBindingsWorkersBindingKindTextBlobType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindTextBlobJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindTextBlob) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindTextBlobParam

type VersionBindingsWorkersBindingKindTextBlobParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[VersionBindingsWorkersBindingKindTextBlobType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindTextBlobParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindTextBlobType

type VersionBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindTextBlobTypeTextBlob VersionBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (VersionBindingsWorkersBindingKindTextBlobType) IsKnown

type VersionBindingsWorkersBindingKindVPCNetwork

type VersionBindingsWorkersBindingKindVPCNetwork struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindVPCNetworkType `json:"type" api:"required"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID string `json:"network_id"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID string                                          `json:"tunnel_id"`
	JSON     versionBindingsWorkersBindingKindVPCNetworkJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindVPCNetwork) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindVPCNetworkParam

type VersionBindingsWorkersBindingKindVPCNetworkParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindVPCNetworkType] `json:"type" api:"required"`
	// Identifier of the network to bind to. Only "cf1:network" is currently supported.
	// Mutually exclusive with tunnel_id.
	NetworkID param.Field[string] `json:"network_id"`
	// UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id.
	TunnelID param.Field[string] `json:"tunnel_id"`
}

func (VersionBindingsWorkersBindingKindVPCNetworkParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindVPCNetworkType

type VersionBindingsWorkersBindingKindVPCNetworkType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindVPCNetworkTypeVPCNetwork VersionBindingsWorkersBindingKindVPCNetworkType = "vpc_network"
)

func (VersionBindingsWorkersBindingKindVPCNetworkType) IsKnown

type VersionBindingsWorkersBindingKindVPCService

type VersionBindingsWorkersBindingKindVPCService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// Identifier of the VPC service to bind to.
	ServiceID string `json:"service_id" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindVPCServiceType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindVPCServiceJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindVPCService) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindVPCServiceParam

type VersionBindingsWorkersBindingKindVPCServiceParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// Identifier of the VPC service to bind to.
	ServiceID param.Field[string] `json:"service_id" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindVPCServiceType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindVPCServiceParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindVPCServiceType

type VersionBindingsWorkersBindingKindVPCServiceType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindVPCServiceTypeVPCService VersionBindingsWorkersBindingKindVPCServiceType = "vpc_service"
)

func (VersionBindingsWorkersBindingKindVPCServiceType) IsKnown

type VersionBindingsWorkersBindingKindVectorize

type VersionBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindVectorizeType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindVectorizeJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindVectorize) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindVectorizeParam

type VersionBindingsWorkersBindingKindVectorizeParam struct {
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name" api:"required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindVectorizeType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindVectorizeParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindVectorizeType

type VersionBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindVectorizeTypeVectorize VersionBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (VersionBindingsWorkersBindingKindVectorizeType) IsKnown

type VersionBindingsWorkersBindingKindVersionMetadata

type VersionBindingsWorkersBindingKindVersionMetadata struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindVersionMetadataType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindVersionMetadataJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindVersionMetadataParam

type VersionBindingsWorkersBindingKindVersionMetadataParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindVersionMetadataType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindVersionMetadataParam) MarshalJSON

type VersionBindingsWorkersBindingKindVersionMetadataType

type VersionBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata VersionBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (VersionBindingsWorkersBindingKindVersionMetadataType) IsKnown

type VersionBindingsWorkersBindingKindWasmModule

type VersionBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part string `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type VersionBindingsWorkersBindingKindWasmModuleType `json:"type" api:"required"`
	JSON versionBindingsWorkersBindingKindWasmModuleJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindWasmModule) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindWasmModuleParam

type VersionBindingsWorkersBindingKindWasmModuleParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part param.Field[string] `json:"part" api:"required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[VersionBindingsWorkersBindingKindWasmModuleType] `json:"type" api:"required"`
}

func (VersionBindingsWorkersBindingKindWasmModuleParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindWasmModuleType

type VersionBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindWasmModuleTypeWasmModule VersionBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (VersionBindingsWorkersBindingKindWasmModuleType) IsKnown

type VersionBindingsWorkersBindingKindWorkflow

type VersionBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindWorkflowType `json:"type" api:"required"`
	// Name of the Workflow to bind to.
	WorkflowName string `json:"workflow_name" api:"required"`
	// Class name of the Workflow. Should only be provided if the Workflow belongs to
	// this script.
	ClassName string `json:"class_name"`
	// Script name that contains the Workflow. If not provided, defaults to this script
	// name.
	ScriptName string                                        `json:"script_name"`
	JSON       versionBindingsWorkersBindingKindWorkflowJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindWorkflow) UnmarshalJSON

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

type VersionBindingsWorkersBindingKindWorkflowParam

type VersionBindingsWorkersBindingKindWorkflowParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name" api:"required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindWorkflowType] `json:"type" api:"required"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name" api:"required"`
	// Class name of the Workflow. Should only be provided if the Workflow belongs to
	// this script.
	ClassName param.Field[string] `json:"class_name"`
	// Script name that contains the Workflow. If not provided, defaults to this script
	// name.
	ScriptName param.Field[string] `json:"script_name"`
}

func (VersionBindingsWorkersBindingKindWorkflowParam) MarshalJSON

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

type VersionBindingsWorkersBindingKindWorkflowType

type VersionBindingsWorkersBindingKindWorkflowType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindWorkflowTypeWorkflow VersionBindingsWorkersBindingKindWorkflowType = "workflow"
)

func (VersionBindingsWorkersBindingKindWorkflowType) IsKnown

type VersionContainer

type VersionContainer struct {
	// Select which Durable Object class should get this container attached.
	ClassName string               `json:"class_name" api:"required"`
	JSON      versionContainerJSON `json:"-"`
}

Container configuration for a Worker.

func (*VersionContainer) UnmarshalJSON

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

type VersionContainerParam

type VersionContainerParam struct {
	// Select which Durable Object class should get this container attached.
	ClassName param.Field[string] `json:"class_name" api:"required"`
}

Container configuration for a Worker.

func (VersionContainerParam) MarshalJSON

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

type VersionLimits

type VersionLimits struct {
	// CPU time limit in milliseconds.
	CPUMs int64 `json:"cpu_ms"`
	// Subrequest limit per request.
	Subrequests int64             `json:"subrequests"`
	JSON        versionLimitsJSON `json:"-"`
}

Resource limits enforced at runtime.

func (*VersionLimits) UnmarshalJSON

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

type VersionLimitsParam

type VersionLimitsParam struct {
	// CPU time limit in milliseconds.
	CPUMs param.Field[int64] `json:"cpu_ms"`
	// Subrequest limit per request.
	Subrequests param.Field[int64] `json:"subrequests"`
}

Resource limits enforced at runtime.

func (VersionLimitsParam) MarshalJSON

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

type VersionMigrations

type VersionMigrations struct {
	// This field can have the runtime type of [[]string].
	DeletedClasses interface{} `json:"deleted_classes"`
	// This field can have the runtime type of [[]string].
	NewClasses interface{} `json:"new_classes"`
	// This field can have the runtime type of [[]string].
	NewSqliteClasses interface{} `json:"new_sqlite_classes"`
	// This field can have the runtime type of [[]SingleStepMigrationRenamedClass].
	RenamedClasses interface{} `json:"renamed_classes"`
	// This field can have the runtime type of [[]MigrationStep].
	Steps interface{} `json:"steps"`
	// This field can have the runtime type of [[]SingleStepMigrationTransferredClass].
	TransferredClasses interface{}           `json:"transferred_classes"`
	JSON               versionMigrationsJSON `json:"-"`
	// contains filtered or unexported fields
}

Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.

func (VersionMigrations) AsUnion

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

Possible runtime types of the union are SingleStepMigration, VersionMigrationsWorkersMultipleStepMigrations.

func (*VersionMigrations) UnmarshalJSON

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

type VersionMigrationsParam

type VersionMigrationsParam struct {
	DeletedClasses   param.Field[interface{}] `json:"deleted_classes"`
	NewClasses       param.Field[interface{}] `json:"new_classes"`
	NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes"`
	// Tag to set as the latest migration tag.
	NewTag param.Field[string] `json:"new_tag"`
	// Tag used to verify against the latest migration tag for this Worker. If they
	// don't match, the upload is rejected.
	OldTag             param.Field[string]      `json:"old_tag"`
	RenamedClasses     param.Field[interface{}] `json:"renamed_classes"`
	Steps              param.Field[interface{}] `json:"steps"`
	TransferredClasses param.Field[interface{}] `json:"transferred_classes"`
}

Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.

func (VersionMigrationsParam) MarshalJSON

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

type VersionMigrationsUnion

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

Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.

Union satisfied by SingleStepMigration or VersionMigrationsWorkersMultipleStepMigrations.

type VersionMigrationsUnionParam

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

Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.

Satisfied by workers.SingleStepMigrationParam, workers.VersionMigrationsWorkersMultipleStepMigrationsParam, VersionMigrationsParam.

type VersionMigrationsWorkersMultipleStepMigrations

type VersionMigrationsWorkersMultipleStepMigrations struct {
	JSON versionMigrationsWorkersMultipleStepMigrationsJSON `json:"-"`
}

func (*VersionMigrationsWorkersMultipleStepMigrations) UnmarshalJSON

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

type VersionMigrationsWorkersMultipleStepMigrationsParam

type VersionMigrationsWorkersMultipleStepMigrationsParam struct {
	// Tag to set as the latest migration tag.
	NewTag param.Field[string] `json:"new_tag"`
	// Tag used to verify against the latest migration tag for this Worker. If they
	// don't match, the upload is rejected.
	OldTag param.Field[string] `json:"old_tag"`
	// Migrations to apply in order.
	Steps param.Field[[]MigrationStepParam] `json:"steps"`
}

func (VersionMigrationsWorkersMultipleStepMigrationsParam) MarshalJSON

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

type VersionModule

type VersionModule struct {
	// The base64-encoded module content.
	ContentBase64 string `json:"content_base64" api:"required" format:"byte"`
	// The content type of the module.
	ContentType string `json:"content_type" api:"required"`
	// The name of the module.
	Name string            `json:"name" api:"required"`
	JSON versionModuleJSON `json:"-"`
}

func (*VersionModule) UnmarshalJSON

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

type VersionModuleParam

type VersionModuleParam struct {
	// The base64-encoded module content.
	ContentBase64 param.Field[string] `json:"content_base64" api:"required" format:"byte"`
	// The content type of the module.
	ContentType param.Field[string] `json:"content_type" api:"required"`
	// The name of the module.
	Name param.Field[string] `json:"name" api:"required"`
}

func (VersionModuleParam) MarshalJSON

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

type VersionParam

type VersionParam struct {
	// Metadata about the version.
	Annotations param.Field[VersionAnnotationsParam] `json:"annotations"`
	// Configuration for assets within a Worker.
	//
	// [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers)
	// and
	// [`_redirects`](https://developers.cloudflare.com/workers/static-assets/redirects/)
	// files should be included as modules named `_headers` and `_redirects` with
	// content type `text/plain`.
	Assets param.Field[VersionAssetsParam] `json:"assets"`
	// List of bindings attached to a Worker. You can find more about bindings on our
	// docs:
	// https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
	Bindings param.Field[[]VersionBindingsUnionParam] `json:"bindings"`
	// Date indicating targeted support in the Workers runtime. Backwards incompatible
	// fixes to the runtime following this date will not affect this Worker.
	CompatibilityDate param.Field[string] `json:"compatibility_date"`
	// Flags that enable or disable certain features in the Workers runtime. Used to
	// enable upcoming features or opt in or out of specific changes not included in a
	// `compatibility_date`.
	CompatibilityFlags param.Field[[]string] `json:"compatibility_flags"`
	// List of containers attached to a Worker. Containers can only be attached to
	// Durable Object classes of this Worker script.
	Containers param.Field[[]VersionContainerParam] `json:"containers"`
	// Resource limits enforced at runtime.
	Limits param.Field[VersionLimitsParam] `json:"limits"`
	// The name of the main module in the `modules` array (e.g. the name of the module
	// that exports a `fetch` handler).
	MainModule param.Field[string] `json:"main_module"`
	// Migrations for Durable Objects associated with the version. Migrations are
	// applied when the version is deployed.
	Migrations param.Field[VersionMigrationsUnionParam] `json:"migrations"`
	// Code, sourcemaps, and other content used at runtime.
	//
	// This includes
	// [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers)
	// and
	// [`_redirects`](https://developers.cloudflare.com/workers/static-assets/redirects/)
	// files used to configure
	// [Static Assets](https://developers.cloudflare.com/workers/static-assets/).
	// `_headers` and `_redirects` files should be included as modules named `_headers`
	// and `_redirects` with content type `text/plain`.
	Modules param.Field[[]VersionModuleParam] `json:"modules"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	// Specify mode='smart' for Smart Placement, or one of region/hostname/host.
	Placement param.Field[VersionPlacementUnionParam] `json:"placement"`
	// Usage model for the version.
	//
	// Deprecated: deprecated
	UsageModel param.Field[VersionUsageModel] `json:"usage_model"`
}

func (VersionParam) MarshalJSON

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

type VersionPlacement

type VersionPlacement struct {
	// TCP host and port for targeted placement.
	Host string `json:"host"`
	// HTTP hostname for targeted placement.
	Hostname string `json:"hostname"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode VersionPlacementModeMode `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string `json:"region"`
	// This field can have the runtime type of [[]VersionPlacementObjectTarget].
	Target interface{}          `json:"target"`
	JSON   versionPlacementJSON `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

func (VersionPlacement) AsUnion

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

Possible runtime types of the union are VersionPlacementMode, VersionPlacementRegion, VersionPlacementHostname, VersionPlacementHost, VersionPlacementObject, VersionPlacementObject, VersionPlacementObject, VersionPlacementObject.

func (*VersionPlacement) UnmarshalJSON

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

type VersionPlacementHost

type VersionPlacementHost struct {
	// TCP host and port for targeted placement.
	Host string                   `json:"host" api:"required"`
	JSON versionPlacementHostJSON `json:"-"`
}

func (*VersionPlacementHost) UnmarshalJSON

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

type VersionPlacementHostParam

type VersionPlacementHostParam struct {
	// TCP host and port for targeted placement.
	Host param.Field[string] `json:"host" api:"required"`
}

func (VersionPlacementHostParam) MarshalJSON

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

type VersionPlacementHostname

type VersionPlacementHostname struct {
	// HTTP hostname for targeted placement.
	Hostname string                       `json:"hostname" api:"required"`
	JSON     versionPlacementHostnameJSON `json:"-"`
}

func (*VersionPlacementHostname) UnmarshalJSON

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

type VersionPlacementHostnameParam

type VersionPlacementHostnameParam struct {
	// HTTP hostname for targeted placement.
	Hostname param.Field[string] `json:"hostname" api:"required"`
}

func (VersionPlacementHostnameParam) MarshalJSON

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

type VersionPlacementMode

type VersionPlacementMode struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode VersionPlacementModeMode `json:"mode" api:"required"`
	JSON versionPlacementModeJSON `json:"-"`
}

func (*VersionPlacementMode) UnmarshalJSON

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

type VersionPlacementModeMode

type VersionPlacementModeMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	VersionPlacementModeModeSmart VersionPlacementModeMode = "smart"
)

func (VersionPlacementModeMode) IsKnown

func (r VersionPlacementModeMode) IsKnown() bool

type VersionPlacementModeParam

type VersionPlacementModeParam struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode param.Field[VersionPlacementModeMode] `json:"mode" api:"required"`
}

func (VersionPlacementModeParam) MarshalJSON

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

type VersionPlacementObject

type VersionPlacementObject struct {
	// Targeted placement mode.
	Mode VersionPlacementObjectMode `json:"mode" api:"required"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string                     `json:"region" api:"required"`
	JSON   versionPlacementObjectJSON `json:"-"`
}

func (*VersionPlacementObject) UnmarshalJSON

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

type VersionPlacementObjectMode

type VersionPlacementObjectMode string

Targeted placement mode.

const (
	VersionPlacementObjectModeTargeted VersionPlacementObjectMode = "targeted"
)

func (VersionPlacementObjectMode) IsKnown

func (r VersionPlacementObjectMode) IsKnown() bool

type VersionPlacementObjectParam

type VersionPlacementObjectParam struct {
	// Targeted placement mode.
	Mode param.Field[VersionPlacementObjectMode] `json:"mode" api:"required"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region param.Field[string] `json:"region" api:"required"`
}

func (VersionPlacementObjectParam) MarshalJSON

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

type VersionPlacementParam

type VersionPlacementParam struct {
	// TCP host and port for targeted placement.
	Host param.Field[string] `json:"host"`
	// HTTP hostname for targeted placement.
	Hostname param.Field[string] `json:"hostname"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode param.Field[VersionPlacementMode] `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region param.Field[string]      `json:"region"`
	Target param.Field[interface{}] `json:"target"`
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

func (VersionPlacementParam) MarshalJSON

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

type VersionPlacementRegion

type VersionPlacementRegion struct {
	// Cloud region for targeted placement in format 'provider:region'.
	Region string                     `json:"region" api:"required"`
	JSON   versionPlacementRegionJSON `json:"-"`
}

func (*VersionPlacementRegion) UnmarshalJSON

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

type VersionPlacementRegionParam

type VersionPlacementRegionParam struct {
	// Cloud region for targeted placement in format 'provider:region'.
	Region param.Field[string] `json:"region" api:"required"`
}

func (VersionPlacementRegionParam) MarshalJSON

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

type VersionPlacementUnion

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

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host.

Union satisfied by VersionPlacementMode, VersionPlacementRegion, VersionPlacementHostname, VersionPlacementHost, VersionPlacementObject, VersionPlacementObject, VersionPlacementObject or VersionPlacementObject.

type VersionUsageModel

type VersionUsageModel string

Usage model for the version.

const (
	VersionUsageModelStandard VersionUsageModel = "standard"
	VersionUsageModelBundled  VersionUsageModel = "bundled"
	VersionUsageModelUnbound  VersionUsageModel = "unbound"
)

func (VersionUsageModel) IsKnown

func (r VersionUsageModel) IsKnown() bool

type Worker

type Worker struct {
	// Immutable ID of the Worker.
	ID string `json:"id" api:"required"`
	// When the Worker was created.
	CreatedOn time.Time `json:"created_on" api:"required" format:"date-time"`
	// Whether logpush is enabled for the Worker.
	Logpush bool `json:"logpush" api:"required"`
	// Name of the Worker.
	Name string `json:"name" api:"required"`
	// Observability settings for the Worker.
	Observability WorkerObservability `json:"observability" api:"required"`
	// Other resources that reference the Worker and depend on it existing.
	References WorkerReferences `json:"references" api:"required"`
	// Subdomain settings for the Worker.
	Subdomain WorkerSubdomain `json:"subdomain" api:"required"`
	// Tags associated with the Worker.
	Tags []string `json:"tags" api:"required"`
	// Other Workers that should consume logs from the Worker.
	TailConsumers []WorkerTailConsumer `json:"tail_consumers" api:"required"`
	// When the Worker was most recently updated.
	UpdatedOn time.Time `json:"updated_on" api:"required" format:"date-time"`
	// When the Worker's most recent deployment was created. `null` if the Worker has
	// never been deployed.
	DeployedOn time.Time  `json:"deployed_on" api:"nullable" format:"date-time"`
	JSON       workerJSON `json:"-"`
}

func (*Worker) UnmarshalJSON

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

type WorkerMetadataParam

type WorkerMetadataParam struct {
	// Name of the part in the multipart request that contains the script (e.g. the
	// file adding a listener to the `fetch` event). Indicates a
	// `service worker syntax` Worker.
	BodyPart param.Field[string] `json:"body_part"`
	// Name of the part in the multipart request that contains the main module (e.g.
	// the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
	MainModule param.Field[string] `json:"main_module"`
}

JSON-encoded metadata about the uploaded parts and Worker configuration.

func (WorkerMetadataParam) MarshalJSON

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

type WorkerObservability

type WorkerObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled bool `json:"enabled"`
	// The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
	HeadSamplingRate float64 `json:"head_sampling_rate"`
	// Log settings for the Worker.
	Logs WorkerObservabilityLogs `json:"logs"`
	// Trace settings for the Worker.
	Traces WorkerObservabilityTraces `json:"traces"`
	JSON   workerObservabilityJSON   `json:"-"`
}

Observability settings for the Worker.

func (*WorkerObservability) UnmarshalJSON

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

type WorkerObservabilityLogs

type WorkerObservabilityLogs struct {
	// A list of destinations where logs will be exported to.
	Destinations []string `json:"destinations"`
	// Whether logs are enabled for the Worker.
	Enabled bool `json:"enabled"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
	HeadSamplingRate float64 `json:"head_sampling_rate"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs bool `json:"invocation_logs"`
	// Whether log persistence is enabled for the Worker.
	Persist bool                        `json:"persist"`
	JSON    workerObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*WorkerObservabilityLogs) UnmarshalJSON

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

type WorkerObservabilityLogsParam

type WorkerObservabilityLogsParam struct {
	// A list of destinations where logs will be exported to.
	Destinations param.Field[[]string] `json:"destinations"`
	// Whether logs are enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled"`
	// The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Whether
	// [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs)
	// are enabled for the Worker.
	InvocationLogs param.Field[bool] `json:"invocation_logs"`
	// Whether log persistence is enabled for the Worker.
	Persist param.Field[bool] `json:"persist"`
}

Log settings for the Worker.

func (WorkerObservabilityLogsParam) MarshalJSON

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

type WorkerObservabilityParam

type WorkerObservabilityParam struct {
	// Whether observability is enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled"`
	// The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Log settings for the Worker.
	Logs param.Field[WorkerObservabilityLogsParam] `json:"logs"`
	// Trace settings for the Worker.
	Traces param.Field[WorkerObservabilityTracesParam] `json:"traces"`
}

Observability settings for the Worker.

func (WorkerObservabilityParam) MarshalJSON

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

type WorkerObservabilityTraces

type WorkerObservabilityTraces struct {
	// A list of destinations where traces will be exported to.
	Destinations []string `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled bool `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
	HeadSamplingRate float64 `json:"head_sampling_rate"`
	// Whether trace persistence is enabled for the Worker.
	Persist bool                          `json:"persist"`
	JSON    workerObservabilityTracesJSON `json:"-"`
}

Trace settings for the Worker.

func (*WorkerObservabilityTraces) UnmarshalJSON

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

type WorkerObservabilityTracesParam

type WorkerObservabilityTracesParam struct {
	// A list of destinations where traces will be exported to.
	Destinations param.Field[[]string] `json:"destinations"`
	// Whether traces are enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled"`
	// The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).
	HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"`
	// Whether trace persistence is enabled for the Worker.
	Persist param.Field[bool] `json:"persist"`
}

Trace settings for the Worker.

func (WorkerObservabilityTracesParam) MarshalJSON

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

type WorkerParam

type WorkerParam struct {
	// Whether logpush is enabled for the Worker.
	Logpush param.Field[bool] `json:"logpush" api:"required"`
	// Name of the Worker.
	Name param.Field[string] `json:"name" api:"required"`
	// Observability settings for the Worker.
	Observability param.Field[WorkerObservabilityParam] `json:"observability" api:"required"`
	// Subdomain settings for the Worker.
	Subdomain param.Field[WorkerSubdomainParam] `json:"subdomain" api:"required"`
	// Tags associated with the Worker.
	Tags param.Field[[]string] `json:"tags" api:"required"`
	// Other Workers that should consume logs from the Worker.
	TailConsumers param.Field[[]WorkerTailConsumerParam] `json:"tail_consumers" api:"required"`
}

func (WorkerParam) MarshalJSON

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

type WorkerReferences

type WorkerReferences struct {
	// Other Workers that reference the Worker as an outbound for a dispatch namespace.
	DispatchNamespaceOutbounds []WorkerReferencesDispatchNamespaceOutbound `json:"dispatch_namespace_outbounds" api:"required"`
	// Custom domains connected to the Worker.
	Domains []WorkerReferencesDomain `json:"domains" api:"required"`
	// Other Workers that reference Durable Object classes implemented by the Worker.
	DurableObjects []WorkerReferencesDurableObject `json:"durable_objects" api:"required"`
	// Queues that send messages to the Worker.
	Queues []WorkerReferencesQueue `json:"queues" api:"required"`
	// Other Workers that reference the Worker using
	// [service bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
	Workers []WorkerReferencesWorker `json:"workers" api:"required"`
	JSON    workerReferencesJSON     `json:"-"`
}

Other resources that reference the Worker and depend on it existing.

func (*WorkerReferences) UnmarshalJSON

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

type WorkerReferencesDispatchNamespaceOutbound

type WorkerReferencesDispatchNamespaceOutbound struct {
	// ID of the dispatch namespace.
	NamespaceID string `json:"namespace_id" api:"required"`
	// Name of the dispatch namespace.
	NamespaceName string `json:"namespace_name" api:"required"`
	// ID of the Worker using the dispatch namespace.
	WorkerID string `json:"worker_id" api:"required"`
	// Name of the Worker using the dispatch namespace.
	WorkerName string                                        `json:"worker_name" api:"required"`
	JSON       workerReferencesDispatchNamespaceOutboundJSON `json:"-"`
}

func (*WorkerReferencesDispatchNamespaceOutbound) UnmarshalJSON

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

type WorkerReferencesDispatchNamespaceOutboundParam

type WorkerReferencesDispatchNamespaceOutboundParam struct {
	// ID of the dispatch namespace.
	NamespaceID param.Field[string] `json:"namespace_id" api:"required"`
	// Name of the dispatch namespace.
	NamespaceName param.Field[string] `json:"namespace_name" api:"required"`
	// ID of the Worker using the dispatch namespace.
	WorkerID param.Field[string] `json:"worker_id" api:"required"`
	// Name of the Worker using the dispatch namespace.
	WorkerName param.Field[string] `json:"worker_name" api:"required"`
}

func (WorkerReferencesDispatchNamespaceOutboundParam) MarshalJSON

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

type WorkerReferencesDomain

type WorkerReferencesDomain struct {
	// ID of the custom domain.
	ID string `json:"id" api:"required"`
	// ID of the TLS certificate issued for the custom domain.
	CertificateID string `json:"certificate_id" api:"required"`
	// Full hostname of the custom domain, including the zone name.
	Hostname string `json:"hostname" api:"required"`
	// ID of the zone.
	ZoneID string `json:"zone_id" api:"required"`
	// Name of the zone.
	ZoneName string                     `json:"zone_name" api:"required"`
	JSON     workerReferencesDomainJSON `json:"-"`
}

func (*WorkerReferencesDomain) UnmarshalJSON

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

type WorkerReferencesDomainParam

type WorkerReferencesDomainParam struct {
	// ID of the custom domain.
	ID param.Field[string] `json:"id" api:"required"`
	// ID of the TLS certificate issued for the custom domain.
	CertificateID param.Field[string] `json:"certificate_id" api:"required"`
	// Full hostname of the custom domain, including the zone name.
	Hostname param.Field[string] `json:"hostname" api:"required"`
	// ID of the zone.
	ZoneID param.Field[string] `json:"zone_id" api:"required"`
	// Name of the zone.
	ZoneName param.Field[string] `json:"zone_name" api:"required"`
}

func (WorkerReferencesDomainParam) MarshalJSON

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

type WorkerReferencesDurableObject

type WorkerReferencesDurableObject struct {
	// ID of the Durable Object namespace being used.
	NamespaceID string `json:"namespace_id" api:"required"`
	// Name of the Durable Object namespace being used.
	NamespaceName string `json:"namespace_name" api:"required"`
	// ID of the Worker using the Durable Object implementation.
	WorkerID string `json:"worker_id" api:"required"`
	// Name of the Worker using the Durable Object implementation.
	WorkerName string                            `json:"worker_name" api:"required"`
	JSON       workerReferencesDurableObjectJSON `json:"-"`
}

func (*WorkerReferencesDurableObject) UnmarshalJSON

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

type WorkerReferencesDurableObjectParam

type WorkerReferencesDurableObjectParam struct {
	// ID of the Durable Object namespace being used.
	NamespaceID param.Field[string] `json:"namespace_id" api:"required"`
	// Name of the Durable Object namespace being used.
	NamespaceName param.Field[string] `json:"namespace_name" api:"required"`
	// ID of the Worker using the Durable Object implementation.
	WorkerID param.Field[string] `json:"worker_id" api:"required"`
	// Name of the Worker using the Durable Object implementation.
	WorkerName param.Field[string] `json:"worker_name" api:"required"`
}

func (WorkerReferencesDurableObjectParam) MarshalJSON

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

type WorkerReferencesParam

type WorkerReferencesParam struct {
	// Other Workers that reference the Worker as an outbound for a dispatch namespace.
	DispatchNamespaceOutbounds param.Field[[]WorkerReferencesDispatchNamespaceOutboundParam] `json:"dispatch_namespace_outbounds" api:"required"`
	// Custom domains connected to the Worker.
	Domains param.Field[[]WorkerReferencesDomainParam] `json:"domains" api:"required"`
	// Other Workers that reference Durable Object classes implemented by the Worker.
	DurableObjects param.Field[[]WorkerReferencesDurableObjectParam] `json:"durable_objects" api:"required"`
	// Queues that send messages to the Worker.
	Queues param.Field[[]WorkerReferencesQueueParam] `json:"queues" api:"required"`
	// Other Workers that reference the Worker using
	// [service bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
	Workers param.Field[[]WorkerReferencesWorkerParam] `json:"workers" api:"required"`
}

Other resources that reference the Worker and depend on it existing.

func (WorkerReferencesParam) MarshalJSON

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

type WorkerReferencesQueue

type WorkerReferencesQueue struct {
	// ID of the queue consumer configuration.
	QueueConsumerID string `json:"queue_consumer_id" api:"required"`
	// ID of the queue.
	QueueID string `json:"queue_id" api:"required"`
	// Name of the queue.
	QueueName string                    `json:"queue_name" api:"required"`
	JSON      workerReferencesQueueJSON `json:"-"`
}

func (*WorkerReferencesQueue) UnmarshalJSON

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

type WorkerReferencesQueueParam

type WorkerReferencesQueueParam struct {
	// ID of the queue consumer configuration.
	QueueConsumerID param.Field[string] `json:"queue_consumer_id" api:"required"`
	// ID of the queue.
	QueueID param.Field[string] `json:"queue_id" api:"required"`
	// Name of the queue.
	QueueName param.Field[string] `json:"queue_name" api:"required"`
}

func (WorkerReferencesQueueParam) MarshalJSON

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

type WorkerReferencesWorker

type WorkerReferencesWorker struct {
	// ID of the referencing Worker.
	ID string `json:"id" api:"required"`
	// Name of the referencing Worker.
	Name string                     `json:"name" api:"required"`
	JSON workerReferencesWorkerJSON `json:"-"`
}

func (*WorkerReferencesWorker) UnmarshalJSON

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

type WorkerReferencesWorkerParam

type WorkerReferencesWorkerParam struct {
	// ID of the referencing Worker.
	ID param.Field[string] `json:"id" api:"required"`
	// Name of the referencing Worker.
	Name param.Field[string] `json:"name" api:"required"`
}

func (WorkerReferencesWorkerParam) MarshalJSON

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

type WorkerService

type WorkerService struct {
	Options         []option.RequestOption
	Beta            *BetaService
	Routes          *RouteService
	Assets          *AssetService
	Scripts         *ScriptService
	AccountSettings *AccountSettingService
	Domains         *DomainService
	Subdomains      *SubdomainService
	Observability   *ObservabilityService
}

WorkerService 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 NewWorkerService method instead.

func NewWorkerService

func NewWorkerService(opts ...option.RequestOption) (r *WorkerService)

NewWorkerService 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 WorkerSubdomain

type WorkerSubdomain struct {
	// Whether the \*.workers.dev subdomain is enabled for the Worker.
	Enabled bool `json:"enabled"`
	// Whether
	// [preview URLs](https://developers.cloudflare.com/workers/configuration/previews/)
	// are enabled for the Worker.
	PreviewsEnabled bool                `json:"previews_enabled"`
	JSON            workerSubdomainJSON `json:"-"`
}

Subdomain settings for the Worker.

func (*WorkerSubdomain) UnmarshalJSON

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

type WorkerSubdomainParam

type WorkerSubdomainParam struct {
	// Whether the \*.workers.dev subdomain is enabled for the Worker.
	Enabled param.Field[bool] `json:"enabled"`
	// Whether
	// [preview URLs](https://developers.cloudflare.com/workers/configuration/previews/)
	// are enabled for the Worker.
	PreviewsEnabled param.Field[bool] `json:"previews_enabled"`
}

Subdomain settings for the Worker.

func (WorkerSubdomainParam) MarshalJSON

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

type WorkerTailConsumer

type WorkerTailConsumer struct {
	// Name of the consumer Worker.
	Name string                 `json:"name" api:"required"`
	JSON workerTailConsumerJSON `json:"-"`
}

func (*WorkerTailConsumer) UnmarshalJSON

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

type WorkerTailConsumerParam

type WorkerTailConsumerParam struct {
	// Name of the consumer Worker.
	Name param.Field[string] `json:"name" api:"required"`
}

func (WorkerTailConsumerParam) MarshalJSON

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

Jump to

Keyboard shortcuts

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