workers

package
v6.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 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,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,required"`
	Messages []AccountSettingGetResponseEnvelopeMessages `json:"messages,required"`
	Result   AccountSettingGetResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success AccountSettingGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    accountSettingGetResponseEnvelopeJSON    `json:"-"`
}

func (*AccountSettingGetResponseEnvelope) UnmarshalJSON

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

type AccountSettingGetResponseEnvelopeErrors

type AccountSettingGetResponseEnvelopeErrors struct {
	Code             int64                                         `json:"code,required"`
	Message          string                                        `json:"message,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,required"`
	Message          string                                          `json:"message,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,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,required"`
	Messages []AccountSettingUpdateResponseEnvelopeMessages `json:"messages,required"`
	Result   AccountSettingUpdateResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success AccountSettingUpdateResponseEnvelopeSuccess `json:"success,required"`
	JSON    accountSettingUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*AccountSettingUpdateResponseEnvelope) UnmarshalJSON

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

type AccountSettingUpdateResponseEnvelopeErrors

type AccountSettingUpdateResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code,required"`
	Message          string                                           `json:"message,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,required"`
	Message          string                                             `json:"message,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,required"`
	// Whether the file contents are base64-encoded. Must be `true`.
	Base64 param.Field[AssetUploadNewParamsBase64] `query:"base64,required"`
	Body   map[string]string                       `json:"body,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,required"`
	Messages []AssetUploadNewResponseEnvelopeMessages `json:"messages,required"`
	// Whether the API call was successful.
	Success AssetUploadNewResponseEnvelopeSuccess `json:"success,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,required"`
	Message          string                                     `json:"message,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,required"`
	Message          string                                       `json:"message,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,required"`
}

type BetaWorkerDeleteResponse

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

func (*BetaWorkerDeleteResponse) UnmarshalJSON

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

type BetaWorkerDeleteResponseError

type BetaWorkerDeleteResponseError struct {
	Code             int64                                `json:"code,required"`
	Message          string                               `json:"message,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,required"`
	Message          string                                 `json:"message,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 added in v6.1.0

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

func (BetaWorkerEditParams) MarshalJSON added in v6.1.0

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

type BetaWorkerEditResponseEnvelope added in v6.1.0

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

func (*BetaWorkerEditResponseEnvelope) UnmarshalJSON added in v6.1.0

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

type BetaWorkerEditResponseEnvelopeErrors added in v6.1.0

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

func (*BetaWorkerEditResponseEnvelopeErrors) UnmarshalJSON added in v6.1.0

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

type BetaWorkerEditResponseEnvelopeErrorsSource added in v6.1.0

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

func (*BetaWorkerEditResponseEnvelopeErrorsSource) UnmarshalJSON added in v6.1.0

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

type BetaWorkerEditResponseEnvelopeMessages added in v6.1.0

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

func (*BetaWorkerEditResponseEnvelopeMessages) UnmarshalJSON added in v6.1.0

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

type BetaWorkerEditResponseEnvelopeMessagesSource added in v6.1.0

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

func (*BetaWorkerEditResponseEnvelopeMessagesSource) UnmarshalJSON added in v6.1.0

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

type BetaWorkerEditResponseEnvelopeSuccess added in v6.1.0

type BetaWorkerEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	BetaWorkerEditResponseEnvelopeSuccessTrue BetaWorkerEditResponseEnvelopeSuccess = true
)

func (BetaWorkerEditResponseEnvelopeSuccess) IsKnown added in v6.1.0

type BetaWorkerGetParams

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

type BetaWorkerGetResponseEnvelope

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

func (*BetaWorkerGetResponseEnvelope) UnmarshalJSON

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

type BetaWorkerGetResponseEnvelopeErrors

type BetaWorkerGetResponseEnvelopeErrors struct {
	Code             int64                                     `json:"code,required"`
	Message          string                                    `json:"message,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,required"`
	Message          string                                      `json:"message,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,required"`
	// 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 BetaWorkerNewParams

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

func (BetaWorkerNewParams) MarshalJSON

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

type BetaWorkerNewResponseEnvelope

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

func (*BetaWorkerNewResponseEnvelope) UnmarshalJSON

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

type BetaWorkerNewResponseEnvelopeErrors

type BetaWorkerNewResponseEnvelopeErrors struct {
	Code             int64                                     `json:"code,required"`
	Message          string                                    `json:"message,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,required"`
	Message          string                                      `json:"message,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 added in v6.1.0

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,required"`
	Worker    WorkerParam         `json:"worker,required"`
}

func (BetaWorkerUpdateParams) MarshalJSON

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

type BetaWorkerUpdateResponseEnvelope

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

func (*BetaWorkerUpdateResponseEnvelope) UnmarshalJSON

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

type BetaWorkerUpdateResponseEnvelopeErrors

type BetaWorkerUpdateResponseEnvelopeErrors struct {
	Code             int64                                        `json:"code,required"`
	Message          string                                       `json:"message,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,required"`
	Message          string                                         `json:"message,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,required"`
}

type BetaWorkerVersionDeleteResponse

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

func (*BetaWorkerVersionDeleteResponse) UnmarshalJSON

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

type BetaWorkerVersionDeleteResponseError

type BetaWorkerVersionDeleteResponseError struct {
	Code             int64                                       `json:"code,required"`
	Message          string                                      `json:"message,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,required"`
	Message          string                                        `json:"message,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,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,required"`
	Messages []BetaWorkerVersionGetResponseEnvelopeMessages `json:"messages,required"`
	Result   Version                                        `json:"result,required"`
	// Whether the API call was successful.
	Success BetaWorkerVersionGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    betaWorkerVersionGetResponseEnvelopeJSON    `json:"-"`
}

func (*BetaWorkerVersionGetResponseEnvelope) UnmarshalJSON

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

type BetaWorkerVersionGetResponseEnvelopeErrors

type BetaWorkerVersionGetResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code,required"`
	Message          string                                           `json:"message,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,required"`
	Message          string                                             `json:"message,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,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,required"`
	Version   VersionParam        `json:"version,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 added in v6.1.0

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,required"`
	Messages []BetaWorkerVersionNewResponseEnvelopeMessages `json:"messages,required"`
	Result   Version                                        `json:"result,required"`
	// Whether the API call was successful.
	Success BetaWorkerVersionNewResponseEnvelopeSuccess `json:"success,required"`
	JSON    betaWorkerVersionNewResponseEnvelopeJSON    `json:"-"`
}

func (*BetaWorkerVersionNewResponseEnvelope) UnmarshalJSON

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

type BetaWorkerVersionNewResponseEnvelopeErrors

type BetaWorkerVersionNewResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code,required"`
	Message          string                                           `json:"message,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,required"`
	Message          string                                             `json:"message,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,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,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,required" format:"uuid"`
	CreatedOn   time.Time             `json:"created_on,required" format:"date-time"`
	Source      string                `json:"source,required"`
	Strategy    DeploymentStrategy    `json:"strategy,required"`
	Versions    []DeploymentVersion   `json:"versions,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 100 bytes.
	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 100 bytes.
	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,required"`
	Versions    param.Field[[]DeploymentVersionParam]   `json:"versions,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,required"`
	VersionID  string                `json:"version_id,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,required"`
	VersionID  param.Field[string]  `json:"version_id,required" format:"uuid"`
}

func (DeploymentVersionParam) MarshalJSON

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

type Domain

type Domain struct {
	// Identifer of the Worker Domain.
	ID string `json:"id"`
	// Worker environment associated with the zone and hostname.
	//
	// Deprecated: deprecated
	Environment string `json:"environment"`
	// Hostname of the Worker Domain.
	Hostname string `json:"hostname"`
	// Worker service associated with the zone and hostname.
	Service string `json:"service"`
	// Identifier of the zone.
	ZoneID string `json:"zone_id"`
	// Name of the zone.
	ZoneName string     `json:"zone_name"`
	JSON     domainJSON `json:"-"`
}

func (*Domain) UnmarshalJSON

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

type DomainDeleteParams

type DomainDeleteParams struct {
	// Identifer of the account.
	AccountID param.Field[string] `path:"account_id,required"`
}

type DomainGetParams

type DomainGetParams struct {
	// Identifer of the account.
	AccountID param.Field[string] `path:"account_id,required"`
}

type DomainGetResponseEnvelope

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

func (*DomainGetResponseEnvelope) UnmarshalJSON

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

type DomainGetResponseEnvelopeErrors

type DomainGetResponseEnvelopeErrors struct {
	Code             int64                                 `json:"code,required"`
	Message          string                                `json:"message,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,required"`
	Message          string                                  `json:"message,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 {
	// Identifer of the account.
	AccountID param.Field[string] `path:"account_id,required"`
	// Worker environment associated with the zone and hostname.
	Environment param.Field[string] `query:"environment"`
	// Hostname of the Worker Domain.
	Hostname param.Field[string] `query:"hostname"`
	// Worker service associated with the zone and hostname.
	Service param.Field[string] `query:"service"`
	// Identifier of the zone.
	ZoneID param.Field[string] `query:"zone_id"`
	// Name of the zone.
	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 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) (err error)

Detaches a Worker from a zone and hostname.

func (*DomainService) Get

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

Gets a Worker domain.

func (*DomainService) List

Lists all Worker Domains for an account.

func (*DomainService) ListAutoPaging

Lists all Worker Domains for an account.

func (*DomainService) Update

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

Attaches a Worker to a zone and hostname.

type DomainUpdateParams

type DomainUpdateParams struct {
	// Identifer of the account.
	AccountID param.Field[string] `path:"account_id,required"`
	// Hostname of the Worker Domain.
	Hostname param.Field[string] `json:"hostname,required"`
	// Worker service associated with the zone and hostname.
	Service param.Field[string] `json:"service,required"`
	// Identifier of the zone.
	ZoneID param.Field[string] `json:"zone_id,required"`
	// Worker environment associated with the zone and hostname.
	Environment param.Field[string] `json:"environment"`
}

func (DomainUpdateParams) MarshalJSON

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

type DomainUpdateResponseEnvelope

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

func (*DomainUpdateResponseEnvelope) UnmarshalJSON

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

type DomainUpdateResponseEnvelopeErrors

type DomainUpdateResponseEnvelopeErrors struct {
	Code             int64                                    `json:"code,required"`
	Message          string                                   `json:"message,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,required"`
	Message          string                                     `json:"message,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 ObservabilityService

type ObservabilityService struct {
	Options   []option.RequestOption
	Telemetry *ObservabilityTelemetryService
}

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,required"`
	Datasets  param.Field[[]string]                                 `json:"datasets"`
	Filters   param.Field[[]ObservabilityTelemetryKeysParamsFilter] `json:"filters"`
	From      param.Field[float64]                                  `json:"from"`
	// Search for a specific substring in the keys.
	KeyNeedle param.Field[ObservabilityTelemetryKeysParamsKeyNeedle] `json:"keyNeedle"`
	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 {
	Key       param.Field[string]                                            `json:"key,required"`
	Operation param.Field[ObservabilityTelemetryKeysParamsFiltersOperation]  `json:"operation,required"`
	Type      param.Field[ObservabilityTelemetryKeysParamsFiltersType]       `json:"type,required"`
	Value     param.Field[ObservabilityTelemetryKeysParamsFiltersValueUnion] `json:"value"`
}

func (ObservabilityTelemetryKeysParamsFilter) MarshalJSON

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

type ObservabilityTelemetryKeysParamsFiltersOperation

type ObservabilityTelemetryKeysParamsFiltersOperation string
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
const (
	ObservabilityTelemetryKeysParamsFiltersTypeString  ObservabilityTelemetryKeysParamsFiltersType = "string"
	ObservabilityTelemetryKeysParamsFiltersTypeNumber  ObservabilityTelemetryKeysParamsFiltersType = "number"
	ObservabilityTelemetryKeysParamsFiltersTypeBoolean ObservabilityTelemetryKeysParamsFiltersType = "boolean"
)

func (ObservabilityTelemetryKeysParamsFiltersType) IsKnown

type ObservabilityTelemetryKeysParamsFiltersValueUnion

type ObservabilityTelemetryKeysParamsFiltersValueUnion interface {
	ImplementsObservabilityTelemetryKeysParamsFiltersValueUnion()
}

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

type ObservabilityTelemetryKeysParamsKeyNeedle

type ObservabilityTelemetryKeysParamsKeyNeedle struct {
	Value     param.Field[ObservabilityTelemetryKeysParamsKeyNeedleValueUnion] `json:"value,required"`
	IsRegex   param.Field[bool]                                                `json:"isRegex"`
	MatchCase param.Field[bool]                                                `json:"matchCase"`
}

Search for a specific substring in the keys.

func (ObservabilityTelemetryKeysParamsKeyNeedle) MarshalJSON

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

type ObservabilityTelemetryKeysParamsKeyNeedleValueUnion

type ObservabilityTelemetryKeysParamsKeyNeedleValueUnion interface {
	ImplementsObservabilityTelemetryKeysParamsKeyNeedleValueUnion()
}

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

type ObservabilityTelemetryKeysParamsNeedle

type ObservabilityTelemetryKeysParamsNeedle struct {
	Value     param.Field[ObservabilityTelemetryKeysParamsNeedleValueUnion] `json:"value,required"`
	IsRegex   param.Field[bool]                                             `json:"isRegex"`
	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()
}

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

type ObservabilityTelemetryKeysResponse

type ObservabilityTelemetryKeysResponse struct {
	Key        string                                 `json:"key,required"`
	LastSeenAt float64                                `json:"lastSeenAt,required"`
	Type       ObservabilityTelemetryKeysResponseType `json:"type,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,required"`
	// Unique identifier for the query to execute
	QueryID param.Field[string] `json:"queryId,required"`
	// Time range for the query execution
	Timeframe param.Field[ObservabilityTelemetryQueryParamsTimeframe] `json:"timeframe,required"`
	// Whether to include timeseties data in the response
	Chart param.Field[bool] `json:"chart"`
	// Whether to include comparison data with previous time periods
	Compare param.Field[bool] `json:"compare"`
	// Whether to perform a dry run without saving the results of the query. Useful for
	// validation
	Dry param.Field[bool] `json:"dry"`
	// Time granularity for aggregating results (in milliseconds). Controls the
	// bucketing of time-series data
	Granularity param.Field[float64] `json:"granularity"`
	// Whether to ignore time-series data in the results and return only aggregated
	// values
	IgnoreSeries param.Field[bool] `json:"ignoreSeries"`
	// Maximum number of events to return.
	Limit param.Field[float64] `json:"limit"`
	// Cursor for pagination to retrieve the next set of results
	Offset param.Field[string] `json:"offset"`
	// Number of events to skip for pagination. Used in conjunction with offset
	OffsetBy param.Field[float64] `json:"offsetBy"`
	// Direction for offset-based pagination (e.g., 'next', 'prev')
	OffsetDirection param.Field[string] `json:"offsetDirection"`
	// Optional parameters to pass to the query execution
	Parameters param.Field[ObservabilityTelemetryQueryParamsParameters] `json:"parameters"`
	// Type of pattern to search for when using pattern-based views
	PatternType param.Field[ObservabilityTelemetryQueryParamsPatternType] `json:"patternType"`
	// View type for presenting the query results.
	View param.Field[ObservabilityTelemetryQueryParamsView] `json:"view"`
}

func (ObservabilityTelemetryQueryParams) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParameters

type ObservabilityTelemetryQueryParamsParameters struct {
	// Create Calculations to compute as part of the query.
	Calculations param.Field[[]ObservabilityTelemetryQueryParamsParametersCalculation] `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[ObservabilityTelemetryQueryParamsParametersFilterCombination] `json:"filterCombination"`
	// Configure the Filters to apply to the query.
	Filters param.Field[[]ObservabilityTelemetryQueryParamsParametersFilter] `json:"filters"`
	// Define how to group the results of the query.
	GroupBys param.Field[[]ObservabilityTelemetryQueryParamsParametersGroupBy] `json:"groupBys"`
	// Configure the Having clauses that filter on calculations in the query result.
	Havings param.Field[[]ObservabilityTelemetryQueryParamsParametersHaving] `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[ObservabilityTelemetryQueryParamsParametersNeedle] `json:"needle"`
	// Configure the order of the results returned by the query.
	OrderBy param.Field[ObservabilityTelemetryQueryParamsParametersOrderBy] `json:"orderBy"`
}

Optional parameters to pass to the query execution

func (ObservabilityTelemetryQueryParamsParameters) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersCalculation

type ObservabilityTelemetryQueryParamsParametersCalculation struct {
	Operator param.Field[ObservabilityTelemetryQueryParamsParametersCalculationsOperator] `json:"operator,required"`
	Alias    param.Field[string]                                                          `json:"alias"`
	Key      param.Field[string]                                                          `json:"key"`
	KeyType  param.Field[ObservabilityTelemetryQueryParamsParametersCalculationsKeyType]  `json:"keyType"`
}

func (ObservabilityTelemetryQueryParamsParametersCalculation) MarshalJSON

type ObservabilityTelemetryQueryParamsParametersCalculationsKeyType

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

func (ObservabilityTelemetryQueryParamsParametersCalculationsKeyType) IsKnown

type ObservabilityTelemetryQueryParamsParametersCalculationsOperator

type ObservabilityTelemetryQueryParamsParametersCalculationsOperator string
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 {
	Key       param.Field[string]                                                       `json:"key,required"`
	Operation param.Field[ObservabilityTelemetryQueryParamsParametersFiltersOperation]  `json:"operation,required"`
	Type      param.Field[ObservabilityTelemetryQueryParamsParametersFiltersType]       `json:"type,required"`
	Value     param.Field[ObservabilityTelemetryQueryParamsParametersFiltersValueUnion] `json:"value"`
}

func (ObservabilityTelemetryQueryParamsParametersFilter) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersFilterCombination

type ObservabilityTelemetryQueryParamsParametersFilterCombination string

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

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

func (ObservabilityTelemetryQueryParamsParametersFilterCombination) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersOperation

type ObservabilityTelemetryQueryParamsParametersFiltersOperation string
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
const (
	ObservabilityTelemetryQueryParamsParametersFiltersTypeString  ObservabilityTelemetryQueryParamsParametersFiltersType = "string"
	ObservabilityTelemetryQueryParamsParametersFiltersTypeNumber  ObservabilityTelemetryQueryParamsParametersFiltersType = "number"
	ObservabilityTelemetryQueryParamsParametersFiltersTypeBoolean ObservabilityTelemetryQueryParamsParametersFiltersType = "boolean"
)

func (ObservabilityTelemetryQueryParamsParametersFiltersType) IsKnown

type ObservabilityTelemetryQueryParamsParametersFiltersValueUnion

type ObservabilityTelemetryQueryParamsParametersFiltersValueUnion interface {
	ImplementsObservabilityTelemetryQueryParamsParametersFiltersValueUnion()
}

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

type ObservabilityTelemetryQueryParamsParametersGroupBy

type ObservabilityTelemetryQueryParamsParametersGroupBy struct {
	Type  param.Field[ObservabilityTelemetryQueryParamsParametersGroupBysType] `json:"type,required"`
	Value param.Field[string]                                                  `json:"value,required"`
}

func (ObservabilityTelemetryQueryParamsParametersGroupBy) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersGroupBysType

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

func (ObservabilityTelemetryQueryParamsParametersGroupBysType) IsKnown

type ObservabilityTelemetryQueryParamsParametersHaving

type ObservabilityTelemetryQueryParamsParametersHaving struct {
	Key       param.Field[string]                                                      `json:"key,required"`
	Operation param.Field[ObservabilityTelemetryQueryParamsParametersHavingsOperation] `json:"operation,required"`
	Value     param.Field[float64]                                                     `json:"value,required"`
}

func (ObservabilityTelemetryQueryParamsParametersHaving) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersHavingsOperation

type ObservabilityTelemetryQueryParamsParametersHavingsOperation string
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 {
	Value     param.Field[ObservabilityTelemetryQueryParamsParametersNeedleValueUnion] `json:"value,required"`
	IsRegex   param.Field[bool]                                                        `json:"isRegex"`
	MatchCase param.Field[bool]                                                        `json:"matchCase"`
}

Define an expression to search using full-text search.

func (ObservabilityTelemetryQueryParamsParametersNeedle) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersNeedleValueUnion

type ObservabilityTelemetryQueryParamsParametersNeedleValueUnion interface {
	ImplementsObservabilityTelemetryQueryParamsParametersNeedleValueUnion()
}

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

type ObservabilityTelemetryQueryParamsParametersOrderBy

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

Configure the order of the results returned by the query.

func (ObservabilityTelemetryQueryParamsParametersOrderBy) MarshalJSON

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

type ObservabilityTelemetryQueryParamsParametersOrderByOrder

type ObservabilityTelemetryQueryParamsParametersOrderByOrder string

Set the order of the results

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

func (ObservabilityTelemetryQueryParamsParametersOrderByOrder) IsKnown

type ObservabilityTelemetryQueryParamsPatternType

type ObservabilityTelemetryQueryParamsPatternType string

Type of pattern to search for when using pattern-based views

const (
	ObservabilityTelemetryQueryParamsPatternTypeMessage ObservabilityTelemetryQueryParamsPatternType = "message"
	ObservabilityTelemetryQueryParamsPatternTypeError   ObservabilityTelemetryQueryParamsPatternType = "error"
)

func (ObservabilityTelemetryQueryParamsPatternType) IsKnown

type ObservabilityTelemetryQueryParamsTimeframe

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

Time range for the query execution

func (ObservabilityTelemetryQueryParamsTimeframe) MarshalJSON

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

type ObservabilityTelemetryQueryParamsView

type ObservabilityTelemetryQueryParamsView string

View type for presenting the query results.

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

func (ObservabilityTelemetryQueryParamsView) IsKnown

type ObservabilityTelemetryQueryResponse

type ObservabilityTelemetryQueryResponse struct {
	// A Workers Observability Query Object
	Run ObservabilityTelemetryQueryResponseRun `json:"run,required"`
	// The statistics object contains information about query performance from the
	// database, it does not include any network latency
	Statistics   ObservabilityTelemetryQueryResponseStatistics              `json:"statistics,required"`
	Calculations []ObservabilityTelemetryQueryResponseCalculation           `json:"calculations"`
	Compare      []ObservabilityTelemetryQueryResponseCompare               `json:"compare"`
	Events       ObservabilityTelemetryQueryResponseEvents                  `json:"events"`
	Invocations  map[string][]ObservabilityTelemetryQueryResponseInvocation `json:"invocations"`
	Patterns     []ObservabilityTelemetryQueryResponsePattern               `json:"patterns"`
	Traces       []ObservabilityTelemetryQueryResponseTrace                 `json:"traces"`
	JSON         observabilityTelemetryQueryResponseJSON                    `json:"-"`
}

func (*ObservabilityTelemetryQueryResponse) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCalculation

type ObservabilityTelemetryQueryResponseCalculation struct {
	Aggregates  []ObservabilityTelemetryQueryResponseCalculationsAggregate `json:"aggregates,required"`
	Calculation string                                                     `json:"calculation,required"`
	Series      []ObservabilityTelemetryQueryResponseCalculationsSeries    `json:"series,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,required"`
	Interval       float64                                                          `json:"interval,required"`
	SampleInterval float64                                                          `json:"sampleInterval,required"`
	Value          float64                                                          `json:"value,required"`
	Groups         []ObservabilityTelemetryQueryResponseCalculationsAggregatesGroup `json:"groups"`
	JSON           observabilityTelemetryQueryResponseCalculationsAggregateJSON     `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCalculationsAggregate) UnmarshalJSON

type ObservabilityTelemetryQueryResponseCalculationsAggregatesGroup

type ObservabilityTelemetryQueryResponseCalculationsAggregatesGroup struct {
	Key   string                                                                    `json:"key,required"`
	Value ObservabilityTelemetryQueryResponseCalculationsAggregatesGroupsValueUnion `json:"value,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,required"`
	Time string                                                      `json:"time,required"`
	JSON observabilityTelemetryQueryResponseCalculationsSeriesJSON   `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCalculationsSeries) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCalculationsSeriesData

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

func (*ObservabilityTelemetryQueryResponseCalculationsSeriesData) UnmarshalJSON

type ObservabilityTelemetryQueryResponseCalculationsSeriesDataGroup

type ObservabilityTelemetryQueryResponseCalculationsSeriesDataGroup struct {
	Key   string                                                                    `json:"key,required"`
	Value ObservabilityTelemetryQueryResponseCalculationsSeriesDataGroupsValueUnion `json:"value,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,required"`
	Calculation string                                                `json:"calculation,required"`
	Series      []ObservabilityTelemetryQueryResponseCompareSeries    `json:"series,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,required"`
	Interval       float64                                                     `json:"interval,required"`
	SampleInterval float64                                                     `json:"sampleInterval,required"`
	Value          float64                                                     `json:"value,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,required"`
	Value ObservabilityTelemetryQueryResponseCompareAggregatesGroupsValueUnion `json:"value,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,required"`
	Time string                                                 `json:"time,required"`
	JSON observabilityTelemetryQueryResponseCompareSeriesJSON   `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseCompareSeries) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCompareSeriesData

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

func (*ObservabilityTelemetryQueryResponseCompareSeriesData) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseCompareSeriesDataGroup

type ObservabilityTelemetryQueryResponseCompareSeriesDataGroup struct {
	Key   string                                                               `json:"key,required"`
	Value ObservabilityTelemetryQueryResponseCompareSeriesDataGroupsValueUnion `json:"value,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,required"`
	Messages []ObservabilityTelemetryQueryResponseEnvelopeMessages `json:"messages,required"`
	Result   ObservabilityTelemetryQueryResponse                   `json:"result,required"`
	Success  ObservabilityTelemetryQueryResponseEnvelopeSuccess    `json:"success,required"`
	JSON     observabilityTelemetryQueryResponseEnvelopeJSON       `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEnvelope) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEnvelopeErrors

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

func (*ObservabilityTelemetryQueryResponseEnvelopeErrors) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEnvelopeMessages

type ObservabilityTelemetryQueryResponseEnvelopeMessages struct {
	Message ObservabilityTelemetryQueryResponseEnvelopeMessagesMessage `json:"message,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 {
	Count  float64                                           `json:"count"`
	Events []ObservabilityTelemetryQueryResponseEventsEvent  `json:"events"`
	Fields []ObservabilityTelemetryQueryResponseEventsField  `json:"fields"`
	Series []ObservabilityTelemetryQueryResponseEventsSeries `json:"series"`
	JSON   observabilityTelemetryQueryResponseEventsJSON     `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEvents) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEventsEvent

type ObservabilityTelemetryQueryResponseEventsEvent struct {
	Metadata  ObservabilityTelemetryQueryResponseEventsEventsMetadata `json:"$metadata,required"`
	Dataset   string                                                  `json:"dataset,required"`
	Source    interface{}                                             `json:"source,required"`
	Timestamp int64                                                   `json:"timestamp,required"`
	// Cloudflare Containers event information enriches your logs so you can easily
	// identify and debug issues.
	Containers interface{} `json:"$containers"`
	// Cloudflare Workers event information enriches your logs so you can easily
	// identify and debug issues.
	Workers ObservabilityTelemetryQueryResponseEventsEventsWorkers `json:"$workers"`
	JSON    observabilityTelemetryQueryResponseEventsEventJSON     `json:"-"`
}

The data structure of a telemetry event

func (*ObservabilityTelemetryQueryResponseEventsEvent) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEventsEventsMetadata

type ObservabilityTelemetryQueryResponseEventsEventsMetadata struct {
	ID              string                                                      `json:"id,required"`
	Account         string                                                      `json:"account"`
	CloudService    string                                                      `json:"cloudService"`
	ColdStart       int64                                                       `json:"coldStart"`
	Cost            int64                                                       `json:"cost"`
	Duration        int64                                                       `json:"duration"`
	EndTime         int64                                                       `json:"endTime"`
	Error           string                                                      `json:"error"`
	ErrorTemplate   string                                                      `json:"errorTemplate"`
	Fingerprint     string                                                      `json:"fingerprint"`
	Level           string                                                      `json:"level"`
	Message         string                                                      `json:"message"`
	MessageTemplate string                                                      `json:"messageTemplate"`
	MetricName      string                                                      `json:"metricName"`
	Origin          string                                                      `json:"origin"`
	ParentSpanID    string                                                      `json:"parentSpanId"`
	Provider        string                                                      `json:"provider"`
	Region          string                                                      `json:"region"`
	RequestID       string                                                      `json:"requestId"`
	Service         string                                                      `json:"service"`
	SpanID          string                                                      `json:"spanId"`
	SpanName        string                                                      `json:"spanName"`
	StackID         string                                                      `json:"stackId"`
	StartTime       int64                                                       `json:"startTime"`
	StatusCode      int64                                                       `json:"statusCode"`
	TraceDuration   int64                                                       `json:"traceDuration"`
	TraceID         string                                                      `json:"traceId"`
	TransactionName string                                                      `json:"transactionName"`
	Trigger         string                                                      `json:"trigger"`
	Type            string                                                      `json:"type"`
	URL             string                                                      `json:"url"`
	JSON            observabilityTelemetryQueryResponseEventsEventsMetadataJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEventsEventsMetadata) UnmarshalJSON

type ObservabilityTelemetryQueryResponseEventsEventsWorkers

type ObservabilityTelemetryQueryResponseEventsEventsWorkers struct {
	EventType  ObservabilityTelemetryQueryResponseEventsEventsWorkersEventType `json:"eventType,required"`
	RequestID  string                                                          `json:"requestId,required"`
	ScriptName string                                                          `json:"scriptName,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]ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventUnion].
	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"`
	Truncated     bool                                                       `json:"truncated"`
	WallTimeMs    float64                                                    `json:"wallTimeMs"`
	JSON          observabilityTelemetryQueryResponseEventsEventsWorkersJSON `json:"-"`
	// contains filtered or unexported fields
}

Cloudflare Workers event information enriches your logs so you can easily identify and debug 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"
	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,required"`
	RequestID       string                                                                            `json:"requestId,required"`
	ScriptName      string                                                                            `json:"scriptName,required"`
	DurableObjectID string                                                                            `json:"durableObjectId"`
	Entrypoint      string                                                                            `json:"entrypoint"`
	Event           map[string]ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventUnion `json:"event"`
	ExecutionModel  ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectExecutionModel        `json:"executionModel"`
	Outcome         string                                                                            `json:"outcome"`
	ScriptVersion   ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectScriptVersion         `json:"scriptVersion"`
	Truncated       bool                                                                              `json:"truncated"`
	JSON            observabilityTelemetryQueryResponseEventsEventsWorkersObjectJSON                  `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEventsEventsWorkersObject) UnmarshalJSON

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMap

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMap map[string]ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapUnionItem

func (ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMap) ImplementsObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventUnion

func (r ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMap) ImplementsObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventUnion()

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMap

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMap map[string]ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapUnionItem

func (ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMap) ImplementsObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapUnionItem

func (r ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMap) ImplementsObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapUnionItem()

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapArray

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapArray []ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapArrayUnionItem

func (ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapArray) ImplementsObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapUnionItem

func (r ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapArray) ImplementsObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapUnionItem()

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapArrayUnionItem

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapArrayUnionItem interface {
	ImplementsObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapArrayUnionItem()
}

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

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapUnionItem

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapUnionItem interface {
	ImplementsObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapMapUnionItem()
}

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

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapUnionItem

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapUnionItem interface {
	ImplementsObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventMapUnionItem()
}

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

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"
	ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventTypeUnknown   ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType = "unknown"
)

func (ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventType) IsKnown

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventUnion

type ObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventUnion interface {
	ImplementsObservabilityTelemetryQueryResponseEventsEventsWorkersObjectEventUnion()
}

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

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 enriches your logs so you can easily identify and debug issues.

Union satisfied by ObservabilityTelemetryQueryResponseEventsEventsWorkersObject or ObservabilityTelemetryQueryResponseEventsEventsWorkersObject.

type ObservabilityTelemetryQueryResponseEventsField

type ObservabilityTelemetryQueryResponseEventsField struct {
	Key  string                                             `json:"key,required"`
	Type string                                             `json:"type,required"`
	JSON observabilityTelemetryQueryResponseEventsFieldJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseEventsField) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEventsSeries

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

func (*ObservabilityTelemetryQueryResponseEventsSeries) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseEventsSeriesData

type ObservabilityTelemetryQueryResponseEventsSeriesData struct {
	Aggregates     ObservabilityTelemetryQueryResponseEventsSeriesDataAggregates `json:"aggregates,required"`
	Count          float64                                                       `json:"count,required"`
	Interval       float64                                                       `json:"interval,required"`
	SampleInterval float64                                                       `json:"sampleInterval,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,required"`
	// Deprecated: deprecated
	FirstSeen string `json:"_firstSeen,required"`
	// Deprecated: deprecated
	Interval int64 `json:"_interval,required"`
	// Deprecated: deprecated
	LastSeen string `json:"_lastSeen,required"`
	// 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 {
	Metadata  ObservabilityTelemetryQueryResponseInvocationsMetadata `json:"$metadata,required"`
	Dataset   string                                                 `json:"dataset,required"`
	Source    interface{}                                            `json:"source,required"`
	Timestamp int64                                                  `json:"timestamp,required"`
	// Cloudflare Containers event information enriches your logs so you can easily
	// identify and debug issues.
	Containers interface{} `json:"$containers"`
	// Cloudflare Workers event information enriches your logs so you can easily
	// identify and debug issues.
	Workers ObservabilityTelemetryQueryResponseInvocationsWorkers `json:"$workers"`
	JSON    observabilityTelemetryQueryResponseInvocationJSON     `json:"-"`
}

The data structure of a telemetry event

func (*ObservabilityTelemetryQueryResponseInvocation) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseInvocationsMetadata

type ObservabilityTelemetryQueryResponseInvocationsMetadata struct {
	ID              string                                                     `json:"id,required"`
	Account         string                                                     `json:"account"`
	CloudService    string                                                     `json:"cloudService"`
	ColdStart       int64                                                      `json:"coldStart"`
	Cost            int64                                                      `json:"cost"`
	Duration        int64                                                      `json:"duration"`
	EndTime         int64                                                      `json:"endTime"`
	Error           string                                                     `json:"error"`
	ErrorTemplate   string                                                     `json:"errorTemplate"`
	Fingerprint     string                                                     `json:"fingerprint"`
	Level           string                                                     `json:"level"`
	Message         string                                                     `json:"message"`
	MessageTemplate string                                                     `json:"messageTemplate"`
	MetricName      string                                                     `json:"metricName"`
	Origin          string                                                     `json:"origin"`
	ParentSpanID    string                                                     `json:"parentSpanId"`
	Provider        string                                                     `json:"provider"`
	Region          string                                                     `json:"region"`
	RequestID       string                                                     `json:"requestId"`
	Service         string                                                     `json:"service"`
	SpanID          string                                                     `json:"spanId"`
	SpanName        string                                                     `json:"spanName"`
	StackID         string                                                     `json:"stackId"`
	StartTime       int64                                                      `json:"startTime"`
	StatusCode      int64                                                      `json:"statusCode"`
	TraceDuration   int64                                                      `json:"traceDuration"`
	TraceID         string                                                     `json:"traceId"`
	TransactionName string                                                     `json:"transactionName"`
	Trigger         string                                                     `json:"trigger"`
	Type            string                                                     `json:"type"`
	URL             string                                                     `json:"url"`
	JSON            observabilityTelemetryQueryResponseInvocationsMetadataJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseInvocationsMetadata) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseInvocationsWorkers

type ObservabilityTelemetryQueryResponseInvocationsWorkers struct {
	EventType  ObservabilityTelemetryQueryResponseInvocationsWorkersEventType `json:"eventType,required"`
	RequestID  string                                                         `json:"requestId,required"`
	ScriptName string                                                         `json:"scriptName,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]ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventUnion].
	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"`
	Truncated     bool                                                      `json:"truncated"`
	WallTimeMs    float64                                                   `json:"wallTimeMs"`
	JSON          observabilityTelemetryQueryResponseInvocationsWorkersJSON `json:"-"`
	// contains filtered or unexported fields
}

Cloudflare Workers event information enriches your logs so you can easily identify and debug 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"
	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,required"`
	RequestID       string                                                                           `json:"requestId,required"`
	ScriptName      string                                                                           `json:"scriptName,required"`
	DurableObjectID string                                                                           `json:"durableObjectId"`
	Entrypoint      string                                                                           `json:"entrypoint"`
	Event           map[string]ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventUnion `json:"event"`
	ExecutionModel  ObservabilityTelemetryQueryResponseInvocationsWorkersObjectExecutionModel        `json:"executionModel"`
	Outcome         string                                                                           `json:"outcome"`
	ScriptVersion   ObservabilityTelemetryQueryResponseInvocationsWorkersObjectScriptVersion         `json:"scriptVersion"`
	Truncated       bool                                                                             `json:"truncated"`
	JSON            observabilityTelemetryQueryResponseInvocationsWorkersObjectJSON                  `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseInvocationsWorkersObject) UnmarshalJSON

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMap

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMap map[string]ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapUnionItem

func (ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMap) ImplementsObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventUnion

func (r ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMap) ImplementsObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventUnion()

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMap

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMap map[string]ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapUnionItem

func (ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMap) ImplementsObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapUnionItem

func (r ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMap) ImplementsObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapUnionItem()

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapArray

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapArray []ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapArrayUnionItem

func (ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapArray) ImplementsObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapUnionItem

func (r ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapArray) ImplementsObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapUnionItem()

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapArrayUnionItem

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapArrayUnionItem interface {
	ImplementsObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapArrayUnionItem()
}

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

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapUnionItem

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapUnionItem interface {
	ImplementsObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapMapUnionItem()
}

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

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapUnionItem

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapUnionItem interface {
	ImplementsObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventMapUnionItem()
}

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

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"
	ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventTypeUnknown   ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType = "unknown"
)

func (ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventType) IsKnown

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventUnion

type ObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventUnion interface {
	ImplementsObservabilityTelemetryQueryResponseInvocationsWorkersObjectEventUnion()
}

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

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 enriches your logs so you can easily identify and debug issues.

Union satisfied by ObservabilityTelemetryQueryResponseInvocationsWorkersObject or ObservabilityTelemetryQueryResponseInvocationsWorkersObject.

type ObservabilityTelemetryQueryResponsePattern

type ObservabilityTelemetryQueryResponsePattern struct {
	Count   float64                                             `json:"count,required"`
	Pattern string                                              `json:"pattern,required"`
	Series  []ObservabilityTelemetryQueryResponsePatternsSeries `json:"series,required"`
	Service string                                              `json:"service,required"`
	JSON    observabilityTelemetryQueryResponsePatternJSON      `json:"-"`
}

func (*ObservabilityTelemetryQueryResponsePattern) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponsePatternsSeries

type ObservabilityTelemetryQueryResponsePatternsSeries struct {
	Data ObservabilityTelemetryQueryResponsePatternsSeriesData `json:"data,required"`
	Time string                                                `json:"time,required"`
	JSON observabilityTelemetryQueryResponsePatternsSeriesJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponsePatternsSeries) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponsePatternsSeriesData

type ObservabilityTelemetryQueryResponsePatternsSeriesData struct {
	Count          float64                                                      `json:"count,required"`
	Interval       float64                                                      `json:"interval,required"`
	SampleInterval float64                                                      `json:"sampleInterval,required"`
	Value          float64                                                      `json:"value,required"`
	Groups         []ObservabilityTelemetryQueryResponsePatternsSeriesDataGroup `json:"groups"`
	JSON           observabilityTelemetryQueryResponsePatternsSeriesDataJSON    `json:"-"`
}

func (*ObservabilityTelemetryQueryResponsePatternsSeriesData) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponsePatternsSeriesDataGroup

type ObservabilityTelemetryQueryResponsePatternsSeriesDataGroup struct {
	Key   string                                                                `json:"key,required"`
	Value ObservabilityTelemetryQueryResponsePatternsSeriesDataGroupsValueUnion `json:"value,required"`
	JSON  observabilityTelemetryQueryResponsePatternsSeriesDataGroupJSON        `json:"-"`
}

func (*ObservabilityTelemetryQueryResponsePatternsSeriesDataGroup) UnmarshalJSON

type ObservabilityTelemetryQueryResponsePatternsSeriesDataGroupsValueUnion

type ObservabilityTelemetryQueryResponsePatternsSeriesDataGroupsValueUnion interface {
	ImplementsObservabilityTelemetryQueryResponsePatternsSeriesDataGroupsValueUnion()
}

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

type ObservabilityTelemetryQueryResponseRun

type ObservabilityTelemetryQueryResponseRun struct {
	ID        string `json:"id,required"`
	AccountID string `json:"accountId,required"`
	Dry       bool   `json:"dry,required"`
	// Deprecated: deprecated
	EnvironmentID string                                       `json:"environmentId,required"`
	Granularity   float64                                      `json:"granularity,required"`
	Query         ObservabilityTelemetryQueryResponseRunQuery  `json:"query,required"`
	Status        ObservabilityTelemetryQueryResponseRunStatus `json:"status,required"`
	// Time range for the query execution
	Timeframe ObservabilityTelemetryQueryResponseRunTimeframe `json:"timeframe,required"`
	UserID    string                                          `json:"userId,required"`
	// Deprecated: deprecated
	WorkspaceID string                                           `json:"workspaceId,required"`
	Created     string                                           `json:"created"`
	Statistics  ObservabilityTelemetryQueryResponseRunStatistics `json:"statistics"`
	Updated     string                                           `json:"updated"`
	JSON        observabilityTelemetryQueryResponseRunJSON       `json:"-"`
}

A Workers Observability Query Object

func (*ObservabilityTelemetryQueryResponseRun) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseRunQuery

type ObservabilityTelemetryQueryResponseRunQuery struct {
	// ID of the query
	ID          string `json:"id,required"`
	Created     string `json:"created,required"`
	Description string `json:"description,required,nullable"`
	// ID of your environment
	EnvironmentID string `json:"environmentId,required"`
	// Flag for alerts automatically created
	Generated bool `json:"generated,required,nullable"`
	// Query name
	Name       string                                                `json:"name,required,nullable"`
	Parameters ObservabilityTelemetryQueryResponseRunQueryParameters `json:"parameters,required"`
	Updated    string                                                `json:"updated,required"`
	UserID     string                                                `json:"userId,required"`
	// ID of your workspace
	WorkspaceID string                                          `json:"workspaceId,required"`
	JSON        observabilityTelemetryQueryResponseRunQueryJSON `json:"-"`
}

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.
	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,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 {
	Key       string                                                                 `json:"key,required"`
	Operation ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation  `json:"operation,required"`
	Type      ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType       `json:"type,required"`
	Value     ObservabilityTelemetryQueryResponseRunQueryParametersFiltersValueUnion `json:"value"`
	JSON      observabilityTelemetryQueryResponseRunQueryParametersFilterJSON        `json:"-"`
}

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 ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersOperation string
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
const (
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersTypeString  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType = "string"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersTypeNumber  ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType = "number"
	ObservabilityTelemetryQueryResponseRunQueryParametersFiltersTypeBoolean ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType = "boolean"
)

func (ObservabilityTelemetryQueryResponseRunQueryParametersFiltersType) IsKnown

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersValueUnion

type ObservabilityTelemetryQueryResponseRunQueryParametersFiltersValueUnion interface {
	ImplementsObservabilityTelemetryQueryResponseRunQueryParametersFiltersValueUnion()
}

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

type ObservabilityTelemetryQueryResponseRunQueryParametersGroupBy

type ObservabilityTelemetryQueryResponseRunQueryParametersGroupBy struct {
	Type  ObservabilityTelemetryQueryResponseRunQueryParametersGroupBysType `json:"type,required"`
	Value string                                                            `json:"value,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,required"`
	Operation ObservabilityTelemetryQueryResponseRunQueryParametersHavingsOperation `json:"operation,required"`
	Value     float64                                                               `json:"value,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     ObservabilityTelemetryQueryResponseRunQueryParametersNeedleValueUnion `json:"value,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 ObservabilityTelemetryQueryResponseRunQueryParametersNeedleValueUnion

type ObservabilityTelemetryQueryResponseRunQueryParametersNeedleValueUnion interface {
	ImplementsObservabilityTelemetryQueryResponseRunQueryParametersNeedleValueUnion()
}

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

type ObservabilityTelemetryQueryResponseRunQueryParametersOrderBy

type ObservabilityTelemetryQueryResponseRunQueryParametersOrderBy struct {
	// Configure which Calculation to order the results by.
	Value string `json:"value,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,required"`
	// Time in seconds for the query to run.
	Elapsed float64 `json:"elapsed,required"`
	// Number of rows scanned from the table.
	RowsRead float64 `json:"rows_read,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:"-"`
}

func (*ObservabilityTelemetryQueryResponseRunStatistics) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseRunStatus

type ObservabilityTelemetryQueryResponseRunStatus string
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,required"`
	// End timestamp for the query timeframe (Unix timestamp in milliseconds)
	To   float64                                             `json:"to,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,required"`
	// Time in seconds for the query to run.
	Elapsed float64 `json:"elapsed,required"`
	// Number of rows scanned from the table.
	RowsRead float64 `json:"rows_read,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:"-"`
}

The statistics object contains information about query performance from the database, it does not include any network latency

func (*ObservabilityTelemetryQueryResponseStatistics) UnmarshalJSON

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

type ObservabilityTelemetryQueryResponseTrace added in v6.4.0

type ObservabilityTelemetryQueryResponseTrace struct {
	RootSpanName        string                                       `json:"rootSpanName,required"`
	RootTransactionName string                                       `json:"rootTransactionName,required"`
	Service             []string                                     `json:"service,required"`
	Spans               float64                                      `json:"spans,required"`
	TraceDurationMs     float64                                      `json:"traceDurationMs,required"`
	TraceEndMs          float64                                      `json:"traceEndMs,required"`
	TraceID             string                                       `json:"traceId,required"`
	TraceStartMs        float64                                      `json:"traceStartMs,required"`
	Errors              []string                                     `json:"errors"`
	JSON                observabilityTelemetryQueryResponseTraceJSON `json:"-"`
}

func (*ObservabilityTelemetryQueryResponseTrace) UnmarshalJSON added in v6.4.0

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

Runs 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,required"`
	Datasets  param.Field[[]string]                                    `json:"datasets,required"`
	Key       param.Field[string]                                      `json:"key,required"`
	Timeframe param.Field[ObservabilityTelemetryValuesParamsTimeframe] `json:"timeframe,required"`
	Type      param.Field[ObservabilityTelemetryValuesParamsType]      `json:"type,required"`
	Filters   param.Field[[]ObservabilityTelemetryValuesParamsFilter]  `json:"filters"`
	Limit     param.Field[float64]                                     `json:"limit"`
	// Search for a specific substring in the event.
	Needle param.Field[ObservabilityTelemetryValuesParamsNeedle] `json:"needle"`
}

func (ObservabilityTelemetryValuesParams) MarshalJSON

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

type ObservabilityTelemetryValuesParamsFilter

type ObservabilityTelemetryValuesParamsFilter struct {
	Key       param.Field[string]                                              `json:"key,required"`
	Operation param.Field[ObservabilityTelemetryValuesParamsFiltersOperation]  `json:"operation,required"`
	Type      param.Field[ObservabilityTelemetryValuesParamsFiltersType]       `json:"type,required"`
	Value     param.Field[ObservabilityTelemetryValuesParamsFiltersValueUnion] `json:"value"`
}

func (ObservabilityTelemetryValuesParamsFilter) MarshalJSON

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

type ObservabilityTelemetryValuesParamsFiltersOperation

type ObservabilityTelemetryValuesParamsFiltersOperation string
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
const (
	ObservabilityTelemetryValuesParamsFiltersTypeString  ObservabilityTelemetryValuesParamsFiltersType = "string"
	ObservabilityTelemetryValuesParamsFiltersTypeNumber  ObservabilityTelemetryValuesParamsFiltersType = "number"
	ObservabilityTelemetryValuesParamsFiltersTypeBoolean ObservabilityTelemetryValuesParamsFiltersType = "boolean"
)

func (ObservabilityTelemetryValuesParamsFiltersType) IsKnown

type ObservabilityTelemetryValuesParamsFiltersValueUnion

type ObservabilityTelemetryValuesParamsFiltersValueUnion interface {
	ImplementsObservabilityTelemetryValuesParamsFiltersValueUnion()
}

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

type ObservabilityTelemetryValuesParamsNeedle

type ObservabilityTelemetryValuesParamsNeedle struct {
	Value     param.Field[ObservabilityTelemetryValuesParamsNeedleValueUnion] `json:"value,required"`
	IsRegex   param.Field[bool]                                               `json:"isRegex"`
	MatchCase param.Field[bool]                                               `json:"matchCase"`
}

Search for a specific substring in the event.

func (ObservabilityTelemetryValuesParamsNeedle) MarshalJSON

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

type ObservabilityTelemetryValuesParamsNeedleValueUnion

type ObservabilityTelemetryValuesParamsNeedleValueUnion interface {
	ImplementsObservabilityTelemetryValuesParamsNeedleValueUnion()
}

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

type ObservabilityTelemetryValuesParamsTimeframe

type ObservabilityTelemetryValuesParamsTimeframe struct {
	From param.Field[float64] `json:"from,required"`
	To   param.Field[float64] `json:"to,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,required"`
	Key     string                                         `json:"key,required"`
	Type    ObservabilityTelemetryValuesResponseType       `json:"type,required"`
	Value   ObservabilityTelemetryValuesResponseValueUnion `json:"value,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,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,required"`
	Messages []RouteDeleteResponseEnvelopeMessages `json:"messages,required"`
	Result   RouteDeleteResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success RouteDeleteResponseEnvelopeSuccess `json:"success,required"`
	JSON    routeDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*RouteDeleteResponseEnvelope) UnmarshalJSON

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

type RouteDeleteResponseEnvelopeErrors

type RouteDeleteResponseEnvelopeErrors struct {
	Code             int64                                   `json:"code,required"`
	Message          string                                  `json:"message,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,required"`
	Message          string                                    `json:"message,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,required"`
}

type RouteGetResponse

type RouteGetResponse struct {
	// Identifier.
	ID string `json:"id,required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern string `json:"pattern,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,required"`
	Messages []RouteGetResponseEnvelopeMessages `json:"messages,required"`
	Result   RouteGetResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success RouteGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    routeGetResponseEnvelopeJSON    `json:"-"`
}

func (*RouteGetResponseEnvelope) UnmarshalJSON

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

type RouteGetResponseEnvelopeErrors

type RouteGetResponseEnvelopeErrors struct {
	Code             int64                                `json:"code,required"`
	Message          string                               `json:"message,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,required"`
	Message          string                                 `json:"message,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,required"`
}

type RouteListResponse

type RouteListResponse struct {
	// Identifier.
	ID string `json:"id,required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern string `json:"pattern,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,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,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,required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern string `json:"pattern,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,required"`
	Messages []RouteNewResponseEnvelopeMessages `json:"messages,required"`
	Result   RouteNewResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success RouteNewResponseEnvelopeSuccess `json:"success,required"`
	JSON    routeNewResponseEnvelopeJSON    `json:"-"`
}

func (*RouteNewResponseEnvelope) UnmarshalJSON

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

type RouteNewResponseEnvelopeErrors

type RouteNewResponseEnvelopeErrors struct {
	Code             int64                                `json:"code,required"`
	Message          string                               `json:"message,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,required"`
	Message          string                                 `json:"message,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,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,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,required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern string `json:"pattern,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,required"`
	Messages []RouteUpdateResponseEnvelopeMessages `json:"messages,required"`
	Result   RouteUpdateResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success RouteUpdateResponseEnvelopeSuccess `json:"success,required"`
	JSON    routeUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*RouteUpdateResponseEnvelope) UnmarshalJSON

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

type RouteUpdateResponseEnvelopeErrors

type RouteUpdateResponseEnvelopeErrors struct {
	Code             int64                                   `json:"code,required"`
	Message          string                                  `json:"message,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,required"`
	Message          string                                    `json:"message,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 either mode for Smart Placement, or one of region/hostname/host for
	// targeted placement.
	Placement ScriptPlacement `json:"placement"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	//
	// 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,nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript `json:"tail_consumers,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,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,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,required"`
	// The size of the file in bytes.
	Size param.Field[int64] `json:"size,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,required"`
	Messages []ScriptAssetUploadNewResponseEnvelopeMessages `json:"messages,required"`
	// Whether the API call was successful.
	Success ScriptAssetUploadNewResponseEnvelopeSuccess `json:"success,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,required"`
	Message          string                                           `json:"message,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,required"`
	Message          string                                             `json:"message,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,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,required"`
	// JSON-encoded metadata about the uploaded parts and Worker configuration.
	Metadata param.Field[ScriptContentUpdateParamsMetadata] `json:"metadata,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,required"`
	Messages []ScriptContentUpdateResponseEnvelopeMessages `json:"messages,required"`
	Result   Script                                        `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptContentUpdateResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptContentUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptContentUpdateResponseEnvelope) UnmarshalJSON

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

type ScriptContentUpdateResponseEnvelopeErrors

type ScriptContentUpdateResponseEnvelopeErrors struct {
	Code             int64                                           `json:"code,required"`
	Message          string                                          `json:"message,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,required"`
	Message          string                                            `json:"message,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,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,required"`
	Messages []ScriptDeleteResponseEnvelopeMessages `json:"messages,required"`
	// Whether the API call was successful.
	Success ScriptDeleteResponseEnvelopeSuccess `json:"success,required"`
	Result  ScriptDeleteResponse                `json:"result,nullable"`
	JSON    scriptDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptDeleteResponseEnvelope) UnmarshalJSON

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

type ScriptDeleteResponseEnvelopeErrors

type ScriptDeleteResponseEnvelopeErrors struct {
	Code             int64                                    `json:"code,required"`
	Message          string                                   `json:"message,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,required"`
	Message          string                                     `json:"message,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,required"`
}

type ScriptDeploymentDeleteResponse

type ScriptDeploymentDeleteResponse struct {
	Errors   []ScriptDeploymentDeleteResponseError   `json:"errors,required"`
	Messages []ScriptDeploymentDeleteResponseMessage `json:"messages,required"`
	// Whether the API call was successful.
	Success ScriptDeploymentDeleteResponseSuccess `json:"success,required"`
	JSON    scriptDeploymentDeleteResponseJSON    `json:"-"`
}

func (*ScriptDeploymentDeleteResponse) UnmarshalJSON

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

type ScriptDeploymentDeleteResponseError

type ScriptDeploymentDeleteResponseError struct {
	Code             int64                                      `json:"code,required"`
	Message          string                                     `json:"message,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,required"`
	Message          string                                       `json:"message,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,required"`
}

type ScriptDeploymentGetResponseEnvelope

type ScriptDeploymentGetResponseEnvelope struct {
	Errors   []ScriptDeploymentGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptDeploymentGetResponseEnvelopeMessages `json:"messages,required"`
	Result   Deployment                                    `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptDeploymentGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptDeploymentGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptDeploymentGetResponseEnvelope) UnmarshalJSON

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

type ScriptDeploymentGetResponseEnvelopeErrors

type ScriptDeploymentGetResponseEnvelopeErrors struct {
	Code             int64                                           `json:"code,required"`
	Message          string                                          `json:"message,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,required"`
	Message          string                                            `json:"message,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,required"`
}

type ScriptDeploymentListResponse

type ScriptDeploymentListResponse struct {
	Deployments []Deployment                     `json:"deployments,required"`
	JSON        scriptDeploymentListResponseJSON `json:"-"`
}

func (*ScriptDeploymentListResponse) UnmarshalJSON

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

type ScriptDeploymentListResponseEnvelope

type ScriptDeploymentListResponseEnvelope struct {
	Errors   []ScriptDeploymentListResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptDeploymentListResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptDeploymentListResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptDeploymentListResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptDeploymentListResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptDeploymentListResponseEnvelope) UnmarshalJSON

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

type ScriptDeploymentListResponseEnvelopeErrors

type ScriptDeploymentListResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code,required"`
	Message          string                                           `json:"message,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,required"`
	Message          string                                             `json:"message,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,required"`
	Deployment DeploymentParam     `json:"deployment,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,required"`
	Messages []ScriptDeploymentNewResponseEnvelopeMessages `json:"messages,required"`
	Result   Deployment                                    `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptDeploymentNewResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptDeploymentNewResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptDeploymentNewResponseEnvelope) UnmarshalJSON

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

type ScriptDeploymentNewResponseEnvelopeErrors

type ScriptDeploymentNewResponseEnvelopeErrors struct {
	Code             int64                                           `json:"code,required"`
	Message          string                                          `json:"message,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,required"`
	Message          string                                            `json:"message,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,required"`
}

type ScriptListParams

type ScriptListParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id,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 added in v6.3.0

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 either mode for Smart Placement, or one of region/hostname/host for
	// targeted placement.
	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,nullable"`
	// The immutable ID of the script.
	Tag string `json:"tag"`
	// Tags associated with the Worker.
	Tags []string `json:"tags,nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript `json:"tail_consumers,nullable"`
	// Usage model for the Worker invocations.
	UsageModel ScriptListResponseUsageModel `json:"usage_model"`
	JSON       scriptListResponseJSON       `json:"-"`
}

func (*ScriptListResponse) UnmarshalJSON added in v6.3.0

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

type ScriptListResponseNamedHandler added in v6.3.0

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 added in v6.3.0

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

type ScriptListResponseObservability added in v6.3.0

type ScriptListResponseObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled bool `json:"enabled,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,nullable"`
	// Log settings for the Worker.
	Logs ScriptListResponseObservabilityLogs `json:"logs,nullable"`
	JSON scriptListResponseObservabilityJSON `json:"-"`
}

Observability settings for the Worker.

func (*ScriptListResponseObservability) UnmarshalJSON added in v6.3.0

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

type ScriptListResponseObservabilityLogs added in v6.3.0

type ScriptListResponseObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled bool `json:"enabled,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,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,nullable"`
	// Whether log persistence is enabled for the Worker.
	Persist bool                                    `json:"persist"`
	JSON    scriptListResponseObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*ScriptListResponseObservabilityLogs) UnmarshalJSON added in v6.3.0

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

type ScriptListResponsePlacement added in v6.3.0

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"`
	JSON   scriptListResponsePlacementJSON   `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

func (ScriptListResponsePlacement) AsUnion added in v6.6.0

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

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

func (*ScriptListResponsePlacement) UnmarshalJSON added in v6.3.0

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

type ScriptListResponsePlacementMode added in v6.3.0

type ScriptListResponsePlacementMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptListResponsePlacementModeSmart ScriptListResponsePlacementMode = "smart"
)

func (ScriptListResponsePlacementMode) IsKnown added in v6.3.0

type ScriptListResponsePlacementObject added in v6.6.0

type ScriptListResponsePlacementObject struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptListResponsePlacementObjectMode `json:"mode,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 added in v6.6.0

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

type ScriptListResponsePlacementObjectMode added in v6.6.0

type ScriptListResponsePlacementObjectMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptListResponsePlacementObjectModeSmart ScriptListResponsePlacementObjectMode = "smart"
)

func (ScriptListResponsePlacementObjectMode) IsKnown added in v6.6.0

type ScriptListResponsePlacementObjectStatus added in v6.6.0

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 added in v6.6.0

type ScriptListResponsePlacementStatus added in v6.3.0

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 added in v6.3.0

type ScriptListResponsePlacementUnion added in v6.6.0

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

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

Union satisfied by ScriptListResponsePlacementObject, ScriptListResponsePlacementObject, ScriptListResponsePlacementObject or ScriptListResponsePlacementObject.

type ScriptListResponseRoute added in v6.3.0

type ScriptListResponseRoute struct {
	// Identifier.
	ID string `json:"id,required"`
	// Pattern to match incoming requests against.
	// [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).
	Pattern string `json:"pattern,required"`
	// Name of the script to run if the route matches.
	Script string                      `json:"script"`
	JSON   scriptListResponseRouteJSON `json:"-"`
}

func (*ScriptListResponseRoute) UnmarshalJSON added in v6.3.0

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

type ScriptListResponseUsageModel added in v6.3.0

type ScriptListResponseUsageModel string

Usage model for the Worker invocations.

const (
	ScriptListResponseUsageModelStandard ScriptListResponseUsageModel = "standard"
	ScriptListResponseUsageModelBundled  ScriptListResponseUsageModel = "bundled"
	ScriptListResponseUsageModelUnbound  ScriptListResponseUsageModel = "unbound"
)

func (ScriptListResponseUsageModel) IsKnown added in v6.3.0

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 added in v6.3.0

type ScriptObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled bool `json:"enabled,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,nullable"`
	// Log settings for the Worker.
	Logs ScriptObservabilityLogs `json:"logs,nullable"`
	JSON scriptObservabilityJSON `json:"-"`
}

Observability settings for the Worker.

func (*ScriptObservability) UnmarshalJSON added in v6.3.0

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

type ScriptObservabilityLogs added in v6.3.0

type ScriptObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled bool `json:"enabled,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,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,nullable"`
	// Whether log persistence is enabled for the Worker.
	Persist bool                        `json:"persist"`
	JSON    scriptObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*ScriptObservabilityLogs) UnmarshalJSON added in v6.3.0

func (r *ScriptObservabilityLogs) 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"`
	JSON   scriptPlacementJSON   `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

func (ScriptPlacement) AsUnion added in v6.6.0

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.

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"
)

func (ScriptPlacementMode) IsKnown

func (r ScriptPlacementMode) IsKnown() bool

type ScriptPlacementObject added in v6.6.0

type ScriptPlacementObject struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptPlacementObjectMode `json:"mode,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 added in v6.6.0

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

type ScriptPlacementObjectMode added in v6.6.0

type ScriptPlacementObjectMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptPlacementObjectModeSmart ScriptPlacementObjectMode = "smart"
)

func (ScriptPlacementObjectMode) IsKnown added in v6.6.0

func (r ScriptPlacementObjectMode) IsKnown() bool

type ScriptPlacementObjectStatus added in v6.6.0

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 added in v6.6.0

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 added in v6.6.0

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

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

Union satisfied by ScriptPlacementObject, ScriptPlacementObject, ScriptPlacementObject or ScriptPlacementObject.

type ScriptScheduleGetParams

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

type ScriptScheduleGetResponse

type ScriptScheduleGetResponse struct {
	Schedules []ScriptScheduleGetResponseSchedule `json:"schedules,required"`
	JSON      scriptScheduleGetResponseJSON       `json:"-"`
}

func (*ScriptScheduleGetResponse) UnmarshalJSON

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

type ScriptScheduleGetResponseEnvelope

type ScriptScheduleGetResponseEnvelope struct {
	Errors   []ScriptScheduleGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptScheduleGetResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptScheduleGetResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptScheduleGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptScheduleGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptScheduleGetResponseEnvelope) UnmarshalJSON

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

type ScriptScheduleGetResponseEnvelopeErrors

type ScriptScheduleGetResponseEnvelopeErrors struct {
	Code             int64                                         `json:"code,required"`
	Message          string                                        `json:"message,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,required"`
	Message          string                                          `json:"message,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,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,required"`
	Body      []ScriptScheduleUpdateParamsBody `json:"body,required"`
}

func (ScriptScheduleUpdateParams) MarshalJSON

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

type ScriptScheduleUpdateParamsBody

type ScriptScheduleUpdateParamsBody struct {
	Cron param.Field[string] `json:"cron,required"`
}

func (ScriptScheduleUpdateParamsBody) MarshalJSON

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

type ScriptScheduleUpdateResponse

type ScriptScheduleUpdateResponse struct {
	Schedules []ScriptScheduleUpdateResponseSchedule `json:"schedules,required"`
	JSON      scriptScheduleUpdateResponseJSON       `json:"-"`
}

func (*ScriptScheduleUpdateResponse) UnmarshalJSON

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

type ScriptScheduleUpdateResponseEnvelope

type ScriptScheduleUpdateResponseEnvelope struct {
	Errors   []ScriptScheduleUpdateResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptScheduleUpdateResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptScheduleUpdateResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptScheduleUpdateResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptScheduleUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptScheduleUpdateResponseEnvelope) UnmarshalJSON

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

type ScriptScheduleUpdateResponseEnvelopeErrors

type ScriptScheduleUpdateResponseEnvelopeErrors struct {
	Code             int64                                            `json:"code,required"`
	Message          string                                           `json:"message,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,required"`
	Message          string                                             `json:"message,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,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,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 {
	// 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 either mode for Smart Placement, or one of region/hostname/host for
	// targeted placement.
	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 ScriptScriptAndVersionSettingEditParamsSettingsBinding

type ScriptScriptAndVersionSettingEditParamsSettingsBinding struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsType] `json:"type,required"`
	// Identifier of the D1 database to bind to.
	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"`
	// 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"`
	// 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 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"`
	// JSON data to use.
	Json param.Field[string] `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 name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_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"`
	// 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"`
	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.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssets, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowser, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlob, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespace, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInherit, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImages, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJson, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificate, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainText, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelines, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueue, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2Bucket, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretText, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmail, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindService, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlob, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorize, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecret, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKey, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflow, workers.ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModule, 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 added in v6.1.0

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"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsJurisdiction) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeAI                     ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "ai"
	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"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeMTLSCertificate        ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "mtls_certificate"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypePlainText              ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "plain_text"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypePipelines              ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "pipelines"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeQueue                  ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "queue"
	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"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeSecretKey              ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "secret_key"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeWorkflow               ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "workflow"
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsTypeWasmModule             ScriptScriptAndVersionSettingEditParamsSettingsBindingsType = "wasm_module"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsType) IsKnown

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAI

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAIType] `json:"type,required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAI) MarshalJSON

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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindBrowserType] `json:"type,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.
	ID param.Field[string] `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindD1Type] `json:"type,required"`
}

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 added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobType] `json:"type,required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlob) MarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobType added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDataBlobType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType] `json:"type,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[[]string] `json:"params"`
	// Outbound worker.
	Worker param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker] `json:"worker"`
}

Outbound worker.

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// 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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindDurableObjectNamespaceType] `json:"type,required"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// 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 ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID param.Field[string] `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType] `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesType] `json:"type,required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImages) MarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesType added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesTypeImages ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindImagesType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInherit added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritType] `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritType added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritTypeInherit ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindInheritType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJson

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json param.Field[string] `json:"json,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindJsonType] `json:"type,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,required"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType] `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCertificateType] `json:"type,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 ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelines

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPipelinesType] `json:"type,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,required"`
	// The text value to use.
	Text param.Field[string] `json:"text,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType] `json:"type,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,required"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindQueueType] `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketType] `json:"type,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 added in v6.1.0

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"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketType

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindR2BucketType) 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,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretKeyType] `json:"type,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,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,required"`
	// The secret value to use.
	Text param.Field[string] `json:"text,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretTextType] `json:"type,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,required"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name,required"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSecretsStoreSecretType] `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailType] `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailType added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindSendEmailType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindService

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindServiceType] `json:"type,required"`
	// 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 added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobType] `json:"type,required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlob) MarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobType added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindTextBlobType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorize

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType] `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleType] `json:"type,required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModule) MarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleType added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWasmModuleType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflow

type ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptScriptAndVersionSettingEditParamsSettingsBindingsWorkersBindingKindWorkflowType] `json:"type,required"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name,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"`
}

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,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"`
}

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,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,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 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"`
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacement) MarshalJSON

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementHost added in v6.6.0

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementHost struct {
	// TCP host and port for targeted placement.
	Host param.Field[string] `json:"host,required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementHost) MarshalJSON added in v6.6.0

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementHostname added in v6.6.0

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementHostname struct {
	// HTTP hostname for targeted placement.
	Hostname param.Field[string] `json:"hostname,required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementHostname) MarshalJSON added in v6.6.0

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementMode

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementMode struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode param.Field[ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeMode] `json:"mode,required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementMode) MarshalJSON added in v6.6.0

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeMode added in v6.6.0

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeModeSmart ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeMode = "smart"
)

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementModeMode) IsKnown added in v6.6.0

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementRegion added in v6.6.0

type ScriptScriptAndVersionSettingEditParamsSettingsPlacementRegion struct {
	// Cloud region for targeted placement in format 'provider:region'.
	Region param.Field[string] `json:"region,required"`
}

func (ScriptScriptAndVersionSettingEditParamsSettingsPlacementRegion) MarshalJSON added in v6.6.0

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 {
	// 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 either mode for Smart Placement, or one of region/hostname/host for
	// targeted placement.
	Placement ScriptScriptAndVersionSettingEditResponsePlacement `json:"placement"`
	// Tags associated with the Worker.
	Tags []string `json:"tags,nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript `json:"tail_consumers,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 ScriptScriptAndVersionSettingEditResponseBinding

type ScriptScriptAndVersionSettingEditResponseBinding struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsType `json:"type,required"`
	// Identifier of the D1 database to bind to.
	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"`
	// 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"`
	// 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 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"`
	// JSON data to use.
	Json string `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 name of the dispatch namespace.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_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"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id"`
	// The text value to use.
	Text string `json:"text"`
	// 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, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssets, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowser, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlob, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdrive, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInherit, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImages, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJson, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificate, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainText, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelines, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueue, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2Bucket, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretText, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmail, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindService, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlob, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorize, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadata, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecret, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKey, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflow, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModule.

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 added in v6.1.0

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"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsJurisdiction) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsType

type ScriptScriptAndVersionSettingEditResponseBindingsType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsTypeAI                     ScriptScriptAndVersionSettingEditResponseBindingsType = "ai"
	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"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeMTLSCertificate        ScriptScriptAndVersionSettingEditResponseBindingsType = "mtls_certificate"
	ScriptScriptAndVersionSettingEditResponseBindingsTypePlainText              ScriptScriptAndVersionSettingEditResponseBindingsType = "plain_text"
	ScriptScriptAndVersionSettingEditResponseBindingsTypePipelines              ScriptScriptAndVersionSettingEditResponseBindingsType = "pipelines"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeQueue                  ScriptScriptAndVersionSettingEditResponseBindingsType = "queue"
	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"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeSecretKey              ScriptScriptAndVersionSettingEditResponseBindingsType = "secret_key"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeWorkflow               ScriptScriptAndVersionSettingEditResponseBindingsType = "workflow"
	ScriptScriptAndVersionSettingEditResponseBindingsTypeWasmModule             ScriptScriptAndVersionSettingEditResponseBindingsType = "wasm_module"
)

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, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssets, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowser, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlob, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdrive, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInherit, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImages, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJson, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespace, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificate, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainText, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelines, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueue, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2Bucket, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretText, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmail, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindService, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlob, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorize, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadata, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecret, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKey, ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflow or ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModule.

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAI

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAIType `json:"type,required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAIJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAI) UnmarshalJSON

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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindAssetsType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindBrowserType `json:"type,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.
	ID string `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindD1Type `json:"type,required"`
	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 added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobType `json:"type,required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlob) UnmarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobType added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDataBlobType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespace

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the dispatch namespace.
	Namespace string `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType `json:"type,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 []string `json:"params"`
	// Outbound worker.
	Worker ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// 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,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindDurableObjectNamespaceType `json:"type,required"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// 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 ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdrive

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID string `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindHyperdriveType `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesType `json:"type,required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImages) UnmarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesType added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesTypeImages ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindImagesType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInherit added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritType `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritType added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritTypeInherit ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindInheritType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJson

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json string `json:"json,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindJsonType `json:"type,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,required"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindKVNamespaceType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindMTLSCertificateType `json:"type,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 ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelines

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPipelinesType `json:"type,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,required"`
	// The text value to use.
	Text string `json:"text,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindPlainTextType `json:"type,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,required"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindQueueType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketType `json:"type,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 added in v6.1.0

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"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketType

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindR2BucketType) 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,required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyFormat `json:"format,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyType `json:"type,required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretKeyUsage `json:"usages,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretTextType `json:"type,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,required"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name,required"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSecretsStoreSecretType `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailType `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailType added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindSendEmailType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindService

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of Worker to bind to.
	Service string `json:"service,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindServiceType `json:"type,required"`
	// 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 added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobType `json:"type,required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlob) UnmarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobType added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindTextBlobType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorize

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVectorizeType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindVersionMetadataType `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleType `json:"type,required"`
	JSON scriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModule) UnmarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleType added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWasmModuleType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflow

type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingEditResponseBindingsWorkersBindingKindWorkflowType `json:"type,required"`
	// Name of the Workflow to bind to.
	WorkflowName string `json:"workflow_name,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,required"`
	Messages []ScriptScriptAndVersionSettingEditResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptScriptAndVersionSettingEditResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptScriptAndVersionSettingEditResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptScriptAndVersionSettingEditResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponseEnvelope) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponseEnvelopeErrors

type ScriptScriptAndVersionSettingEditResponseEnvelopeErrors struct {
	Code             int64                                                         `json:"code,required"`
	Message          string                                                        `json:"message,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,required"`
	Message          string                                                          `json:"message,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"`
	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,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,nullable"`
	// Log settings for the Worker.
	Logs ScriptScriptAndVersionSettingEditResponseObservabilityLogs `json:"logs,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,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,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,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 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 ScriptScriptAndVersionSettingEditResponsePlacementMode `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string                                                 `json:"region"`
	JSON   scriptScriptAndVersionSettingEditResponsePlacementJSON `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

func (*ScriptScriptAndVersionSettingEditResponsePlacement) UnmarshalJSON

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

type ScriptScriptAndVersionSettingEditResponsePlacementHost added in v6.6.0

type ScriptScriptAndVersionSettingEditResponsePlacementHost struct {
	// TCP host and port for targeted placement.
	Host string                                                     `json:"host,required"`
	JSON scriptScriptAndVersionSettingEditResponsePlacementHostJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponsePlacementHost) UnmarshalJSON added in v6.6.0

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

type ScriptScriptAndVersionSettingEditResponsePlacementHostname added in v6.6.0

type ScriptScriptAndVersionSettingEditResponsePlacementHostname struct {
	// HTTP hostname for targeted placement.
	Hostname string                                                         `json:"hostname,required"`
	JSON     scriptScriptAndVersionSettingEditResponsePlacementHostnameJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponsePlacementHostname) UnmarshalJSON added in v6.6.0

type ScriptScriptAndVersionSettingEditResponsePlacementMode

type ScriptScriptAndVersionSettingEditResponsePlacementMode struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptScriptAndVersionSettingEditResponsePlacementModeMode `json:"mode,required"`
	JSON scriptScriptAndVersionSettingEditResponsePlacementModeJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponsePlacementMode) UnmarshalJSON added in v6.6.0

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

type ScriptScriptAndVersionSettingEditResponsePlacementModeMode added in v6.6.0

type ScriptScriptAndVersionSettingEditResponsePlacementModeMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptScriptAndVersionSettingEditResponsePlacementModeModeSmart ScriptScriptAndVersionSettingEditResponsePlacementModeMode = "smart"
)

func (ScriptScriptAndVersionSettingEditResponsePlacementModeMode) IsKnown added in v6.6.0

type ScriptScriptAndVersionSettingEditResponsePlacementRegion added in v6.6.0

type ScriptScriptAndVersionSettingEditResponsePlacementRegion struct {
	// Cloud region for targeted placement in format 'provider:region'.
	Region string                                                       `json:"region,required"`
	JSON   scriptScriptAndVersionSettingEditResponsePlacementRegionJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingEditResponsePlacementRegion) UnmarshalJSON added in v6.6.0

type ScriptScriptAndVersionSettingEditResponsePlacementUnion added in v6.6.0

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

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

Union satisfied by ScriptScriptAndVersionSettingEditResponsePlacementMode, ScriptScriptAndVersionSettingEditResponsePlacementRegion, ScriptScriptAndVersionSettingEditResponsePlacementHostname or ScriptScriptAndVersionSettingEditResponsePlacementHost.

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,required"`
}

type ScriptScriptAndVersionSettingGetResponse

type ScriptScriptAndVersionSettingGetResponse 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 []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 either mode for Smart Placement, or one of region/hostname/host for
	// targeted placement.
	Placement ScriptScriptAndVersionSettingGetResponsePlacement `json:"placement"`
	// Tags associated with the Worker.
	Tags []string `json:"tags,nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript `json:"tail_consumers,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 ScriptScriptAndVersionSettingGetResponseBinding

type ScriptScriptAndVersionSettingGetResponseBinding struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsType `json:"type,required"`
	// Identifier of the D1 database to bind to.
	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"`
	// 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"`
	// 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 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"`
	// JSON data to use.
	Json string `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 name of the dispatch namespace.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_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"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id"`
	// The text value to use.
	Text string `json:"text"`
	// 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, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssets, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowser, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlob, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdrive, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInherit, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImages, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJson, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificate, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainText, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelines, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueue, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2Bucket, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretText, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmail, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindService, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlob, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorize, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadata, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecret, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKey, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflow, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModule.

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 added in v6.1.0

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"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsJurisdiction) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsType

type ScriptScriptAndVersionSettingGetResponseBindingsType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsTypeAI                     ScriptScriptAndVersionSettingGetResponseBindingsType = "ai"
	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"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeMTLSCertificate        ScriptScriptAndVersionSettingGetResponseBindingsType = "mtls_certificate"
	ScriptScriptAndVersionSettingGetResponseBindingsTypePlainText              ScriptScriptAndVersionSettingGetResponseBindingsType = "plain_text"
	ScriptScriptAndVersionSettingGetResponseBindingsTypePipelines              ScriptScriptAndVersionSettingGetResponseBindingsType = "pipelines"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeQueue                  ScriptScriptAndVersionSettingGetResponseBindingsType = "queue"
	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"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeSecretKey              ScriptScriptAndVersionSettingGetResponseBindingsType = "secret_key"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeWorkflow               ScriptScriptAndVersionSettingGetResponseBindingsType = "workflow"
	ScriptScriptAndVersionSettingGetResponseBindingsTypeWasmModule             ScriptScriptAndVersionSettingGetResponseBindingsType = "wasm_module"
)

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, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssets, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowser, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlob, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdrive, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInherit, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImages, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJson, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespace, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificate, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainText, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelines, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueue, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2Bucket, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretText, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmail, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindService, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlob, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorize, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadata, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecret, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKey, ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflow or ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModule.

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAI

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAIType `json:"type,required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAIJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAI) UnmarshalJSON

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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindAssetsType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindBrowserType `json:"type,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.
	ID string `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindD1Type `json:"type,required"`
	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 added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobType `json:"type,required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlob) UnmarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobType added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDataBlobType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespace

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the dispatch namespace.
	Namespace string `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType `json:"type,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 []string `json:"params"`
	// Outbound worker.
	Worker ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// 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,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindDurableObjectNamespaceType `json:"type,required"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// 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 ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdrive

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID string `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindHyperdriveType `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesType `json:"type,required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImages) UnmarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesType added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesTypeImages ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindImagesType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInherit added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritType `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritType added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritTypeInherit ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindInheritType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJson

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json string `json:"json,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindJsonType `json:"type,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,required"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindKVNamespaceType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindMTLSCertificateType `json:"type,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 ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelines

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPipelinesType `json:"type,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,required"`
	// The text value to use.
	Text string `json:"text,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindPlainTextType `json:"type,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,required"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindQueueType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketType `json:"type,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 added in v6.1.0

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"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketType

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindR2BucketType) 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,required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyFormat `json:"format,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyType `json:"type,required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretKeyUsage `json:"usages,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretTextType `json:"type,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,required"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name,required"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSecretsStoreSecretType `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailType `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailType added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindSendEmailType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindService

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of Worker to bind to.
	Service string `json:"service,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindServiceType `json:"type,required"`
	// 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 added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobType `json:"type,required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlob) UnmarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobType added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindTextBlobType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorize

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVectorizeType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindVersionMetadataType `json:"type,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 added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleType `json:"type,required"`
	JSON scriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModule) UnmarshalJSON added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleType added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWasmModuleType) IsKnown added in v6.1.0

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflow

type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptScriptAndVersionSettingGetResponseBindingsWorkersBindingKindWorkflowType `json:"type,required"`
	// Name of the Workflow to bind to.
	WorkflowName string `json:"workflow_name,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,required"`
	Messages []ScriptScriptAndVersionSettingGetResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptScriptAndVersionSettingGetResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptScriptAndVersionSettingGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptScriptAndVersionSettingGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponseEnvelope) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponseEnvelopeErrors

type ScriptScriptAndVersionSettingGetResponseEnvelopeErrors struct {
	Code             int64                                                        `json:"code,required"`
	Message          string                                                       `json:"message,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,required"`
	Message          string                                                         `json:"message,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"`
	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,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,nullable"`
	// Log settings for the Worker.
	Logs ScriptScriptAndVersionSettingGetResponseObservabilityLogs `json:"logs,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,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,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,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 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 ScriptScriptAndVersionSettingGetResponsePlacementMode `json:"mode"`
	// Cloud region for targeted placement in format 'provider:region'.
	Region string                                                `json:"region"`
	JSON   scriptScriptAndVersionSettingGetResponsePlacementJSON `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

func (*ScriptScriptAndVersionSettingGetResponsePlacement) UnmarshalJSON

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

type ScriptScriptAndVersionSettingGetResponsePlacementHost added in v6.6.0

type ScriptScriptAndVersionSettingGetResponsePlacementHost struct {
	// TCP host and port for targeted placement.
	Host string                                                    `json:"host,required"`
	JSON scriptScriptAndVersionSettingGetResponsePlacementHostJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponsePlacementHost) UnmarshalJSON added in v6.6.0

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

type ScriptScriptAndVersionSettingGetResponsePlacementHostname added in v6.6.0

type ScriptScriptAndVersionSettingGetResponsePlacementHostname struct {
	// HTTP hostname for targeted placement.
	Hostname string                                                        `json:"hostname,required"`
	JSON     scriptScriptAndVersionSettingGetResponsePlacementHostnameJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponsePlacementHostname) UnmarshalJSON added in v6.6.0

type ScriptScriptAndVersionSettingGetResponsePlacementMode

type ScriptScriptAndVersionSettingGetResponsePlacementMode struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptScriptAndVersionSettingGetResponsePlacementModeMode `json:"mode,required"`
	JSON scriptScriptAndVersionSettingGetResponsePlacementModeJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponsePlacementMode) UnmarshalJSON added in v6.6.0

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

type ScriptScriptAndVersionSettingGetResponsePlacementModeMode added in v6.6.0

type ScriptScriptAndVersionSettingGetResponsePlacementModeMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptScriptAndVersionSettingGetResponsePlacementModeModeSmart ScriptScriptAndVersionSettingGetResponsePlacementModeMode = "smart"
)

func (ScriptScriptAndVersionSettingGetResponsePlacementModeMode) IsKnown added in v6.6.0

type ScriptScriptAndVersionSettingGetResponsePlacementRegion added in v6.6.0

type ScriptScriptAndVersionSettingGetResponsePlacementRegion struct {
	// Cloud region for targeted placement in format 'provider:region'.
	Region string                                                      `json:"region,required"`
	JSON   scriptScriptAndVersionSettingGetResponsePlacementRegionJSON `json:"-"`
}

func (*ScriptScriptAndVersionSettingGetResponsePlacementRegion) UnmarshalJSON added in v6.6.0

type ScriptScriptAndVersionSettingGetResponsePlacementUnion added in v6.6.0

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

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

Union satisfied by ScriptScriptAndVersionSettingGetResponsePlacementMode, ScriptScriptAndVersionSettingGetResponsePlacementRegion, ScriptScriptAndVersionSettingGetResponsePlacementHostname or ScriptScriptAndVersionSettingGetResponsePlacementHost.

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 added in v6.1.0

type ScriptSearchParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id,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 added in v6.1.0

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

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

type ScriptSearchParamsOrderBy added in v6.1.0

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 added in v6.1.0

func (r ScriptSearchParamsOrderBy) IsKnown() bool

type ScriptSearchResponse added in v6.1.0

type ScriptSearchResponse struct {
	// When the script was created.
	CreatedOn time.Time `json:"created_on,required" format:"date-time"`
	// When the script was last modified.
	ModifiedOn time.Time `json:"modified_on,required" format:"date-time"`
	// Name of the script, used in URLs and route configuration.
	ScriptName string `json:"script_name,required"`
	// Identifier.
	ScriptTag string `json:"script_tag,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 added in v6.1.0

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

type ScriptSearchResponseEnvelope added in v6.1.0

type ScriptSearchResponseEnvelope struct {
	Errors   []ScriptSearchResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptSearchResponseEnvelopeMessages `json:"messages,required"`
	Result   []ScriptSearchResponse                 `json:"result,required"`
	// Whether the API call was successful.
	Success    ScriptSearchResponseEnvelopeSuccess    `json:"success,required"`
	ResultInfo ScriptSearchResponseEnvelopeResultInfo `json:"result_info"`
	JSON       scriptSearchResponseEnvelopeJSON       `json:"-"`
}

func (*ScriptSearchResponseEnvelope) UnmarshalJSON added in v6.1.0

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

type ScriptSearchResponseEnvelopeErrors added in v6.1.0

type ScriptSearchResponseEnvelopeErrors struct {
	Code             int64                                    `json:"code,required"`
	Message          string                                   `json:"message,required"`
	DocumentationURL string                                   `json:"documentation_url"`
	Source           ScriptSearchResponseEnvelopeErrorsSource `json:"source"`
	JSON             scriptSearchResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScriptSearchResponseEnvelopeErrors) UnmarshalJSON added in v6.1.0

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

type ScriptSearchResponseEnvelopeErrorsSource added in v6.1.0

type ScriptSearchResponseEnvelopeErrorsSource struct {
	Pointer string                                       `json:"pointer"`
	JSON    scriptSearchResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScriptSearchResponseEnvelopeErrorsSource) UnmarshalJSON added in v6.1.0

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

type ScriptSearchResponseEnvelopeMessages added in v6.1.0

type ScriptSearchResponseEnvelopeMessages struct {
	Code             int64                                      `json:"code,required"`
	Message          string                                     `json:"message,required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           ScriptSearchResponseEnvelopeMessagesSource `json:"source"`
	JSON             scriptSearchResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScriptSearchResponseEnvelopeMessages) UnmarshalJSON added in v6.1.0

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

type ScriptSearchResponseEnvelopeMessagesSource added in v6.1.0

type ScriptSearchResponseEnvelopeMessagesSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    scriptSearchResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScriptSearchResponseEnvelopeMessagesSource) UnmarshalJSON added in v6.1.0

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

type ScriptSearchResponseEnvelopeResultInfo added in v6.1.0

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"`
	JSON       scriptSearchResponseEnvelopeResultInfoJSON `json:"-"`
}

func (*ScriptSearchResponseEnvelopeResultInfo) UnmarshalJSON added in v6.1.0

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

type ScriptSearchResponseEnvelopeSuccess added in v6.1.0

type ScriptSearchResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScriptSearchResponseEnvelopeSuccessTrue ScriptSearchResponseEnvelopeSuccess = true
)

func (ScriptSearchResponseEnvelopeSuccess) IsKnown added in v6.1.0

type ScriptSecretDeleteParams

type ScriptSecretDeleteParams struct {
	// Identifier.
	AccountID param.Field[string] `path:"account_id,required"`
	// Flag that indicates whether the secret name is URL encoded.
	URLEncoded param.Field[bool] `query:"url_encoded"`
}

func (ScriptSecretDeleteParams) URLQuery added in v6.1.0

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,required"`
	Messages []ScriptSecretDeleteResponseEnvelopeMessages `json:"messages,required"`
	// Whether the API call was successful.
	Success ScriptSecretDeleteResponseEnvelopeSuccess `json:"success,required"`
	Result  ScriptSecretDeleteResponse                `json:"result,nullable"`
	JSON    scriptSecretDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSecretDeleteResponseEnvelope) UnmarshalJSON

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

type ScriptSecretDeleteResponseEnvelopeErrors

type ScriptSecretDeleteResponseEnvelopeErrors struct {
	Code             int64                                          `json:"code,required"`
	Message          string                                         `json:"message,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,required"`
	Message          string                                           `json:"message,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,required"`
	// Flag that indicates whether the secret name is URL encoded.
	URLEncoded param.Field[bool] `query:"url_encoded"`
}

func (ScriptSecretGetParams) URLQuery added in v6.1.0

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,required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretGetResponseType `json:"type,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,required"`
	Messages []ScriptSecretGetResponseEnvelopeMessages `json:"messages,required"`
	// Whether the API call was successful.
	Success ScriptSecretGetResponseEnvelopeSuccess `json:"success,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,required"`
	Message          string                                      `json:"message,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,required"`
	Message          string                                        `json:"message,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,required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretGetResponseWorkersBindingKindSecretKeyFormat `json:"format,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretGetResponseWorkersBindingKindSecretKeyType `json:"type,required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptSecretGetResponseWorkersBindingKindSecretKeyUsage `json:"usages,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretGetResponseWorkersBindingKindSecretTextType `json:"type,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,required"`
}

type ScriptSecretListResponse

type ScriptSecretListResponse struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretListResponseType `json:"type,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,required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretListResponseWorkersBindingKindSecretKeyFormat `json:"format,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretListResponseWorkersBindingKindSecretKeyType `json:"type,required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptSecretListResponseWorkersBindingKindSecretKeyUsage `json:"usages,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretListResponseWorkersBindingKindSecretTextType `json:"type,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) 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,required"`
	// A secret value accessible through a binding.
	Body ScriptSecretUpdateParamsBodyUnion `json:"body,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,required"`
	// The kind of resource that the binding provides.
	Type      param.Field[ScriptSecretUpdateParamsBodyType] `json:"type,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,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptSecretUpdateParamsBodyWorkersBindingKindSecretKeyType] `json:"type,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,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,required"`
	// The secret value to use.
	Text param.Field[string] `json:"text,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptSecretUpdateParamsBodyWorkersBindingKindSecretTextType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretUpdateResponseType `json:"type,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,required"`
	Messages []ScriptSecretUpdateResponseEnvelopeMessages `json:"messages,required"`
	// Whether the API call was successful.
	Success ScriptSecretUpdateResponseEnvelopeSuccess `json:"success,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,required"`
	Message          string                                         `json:"message,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,required"`
	Message          string                                           `json:"message,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,required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptSecretUpdateResponseWorkersBindingKindSecretKeyFormat `json:"format,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretUpdateResponseWorkersBindingKindSecretKeyType `json:"type,required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptSecretUpdateResponseWorkersBindingKindSecretKeyUsage `json:"usages,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptSecretUpdateResponseWorkersBindingKindSecretTextType `json:"type,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 added in v6.1.0

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,nullable"`
	// Tags associated with the Worker.
	Tags []string `json:"tags,nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript  `json:"tail_consumers,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,required"`
	ScriptSetting ScriptSettingParam  `json:"script_setting,required"`
}

func (ScriptSettingEditParams) MarshalJSON

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

type ScriptSettingEditResponseEnvelope

type ScriptSettingEditResponseEnvelope struct {
	Errors   []ScriptSettingEditResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptSettingEditResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptSetting                               `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptSettingEditResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptSettingEditResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSettingEditResponseEnvelope) UnmarshalJSON

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

type ScriptSettingEditResponseEnvelopeErrors

type ScriptSettingEditResponseEnvelopeErrors struct {
	Code             int64                                         `json:"code,required"`
	Message          string                                        `json:"message,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,required"`
	Message          string                                          `json:"message,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,required"`
}

type ScriptSettingGetResponseEnvelope

type ScriptSettingGetResponseEnvelope struct {
	Errors   []ScriptSettingGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptSettingGetResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptSetting                              `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptSettingGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptSettingGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSettingGetResponseEnvelope) UnmarshalJSON

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

type ScriptSettingGetResponseEnvelopeErrors

type ScriptSettingGetResponseEnvelopeErrors struct {
	Code             int64                                        `json:"code,required"`
	Message          string                                       `json:"message,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,required"`
	Message          string                                         `json:"message,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,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,nullable"`
	// Log settings for the Worker.
	Logs ScriptSettingObservabilityLogs `json:"logs,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,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,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,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,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,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,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"`
}

Observability settings for the Worker.

func (ScriptSettingObservabilityParam) MarshalJSON

func (r ScriptSettingObservabilityParam) 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,required"`
}

type ScriptSubdomainDeleteResponse

type ScriptSubdomainDeleteResponse struct {
	// Whether the Worker is available on the workers.dev subdomain.
	Enabled bool `json:"enabled,required"`
	// Whether the Worker's Preview URLs are available on the workers.dev subdomain.
	PreviewsEnabled bool                              `json:"previews_enabled,required"`
	JSON            scriptSubdomainDeleteResponseJSON `json:"-"`
}

func (*ScriptSubdomainDeleteResponse) UnmarshalJSON

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

type ScriptSubdomainDeleteResponseEnvelope

type ScriptSubdomainDeleteResponseEnvelope struct {
	Errors   []ScriptSubdomainDeleteResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptSubdomainDeleteResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptSubdomainDeleteResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptSubdomainDeleteResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptSubdomainDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSubdomainDeleteResponseEnvelope) UnmarshalJSON

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

type ScriptSubdomainDeleteResponseEnvelopeErrors

type ScriptSubdomainDeleteResponseEnvelopeErrors struct {
	Code             int64                                             `json:"code,required"`
	Message          string                                            `json:"message,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,required"`
	Message          string                                              `json:"message,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,required"`
}

type ScriptSubdomainGetResponse

type ScriptSubdomainGetResponse struct {
	// Whether the Worker is available on the workers.dev subdomain.
	Enabled bool `json:"enabled,required"`
	// Whether the Worker's Preview URLs are available on the workers.dev subdomain.
	PreviewsEnabled bool                           `json:"previews_enabled,required"`
	JSON            scriptSubdomainGetResponseJSON `json:"-"`
}

func (*ScriptSubdomainGetResponse) UnmarshalJSON

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

type ScriptSubdomainGetResponseEnvelope

type ScriptSubdomainGetResponseEnvelope struct {
	Errors   []ScriptSubdomainGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptSubdomainGetResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptSubdomainGetResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptSubdomainGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptSubdomainGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSubdomainGetResponseEnvelope) UnmarshalJSON

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

type ScriptSubdomainGetResponseEnvelopeErrors

type ScriptSubdomainGetResponseEnvelopeErrors struct {
	Code             int64                                          `json:"code,required"`
	Message          string                                         `json:"message,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,required"`
	Message          string                                           `json:"message,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,required"`
	// Whether the Worker should be available on the workers.dev subdomain.
	Enabled param.Field[bool] `json:"enabled,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,required"`
	// Whether the Worker's Preview URLs are available on the workers.dev subdomain.
	PreviewsEnabled bool                           `json:"previews_enabled,required"`
	JSON            scriptSubdomainNewResponseJSON `json:"-"`
}

func (*ScriptSubdomainNewResponse) UnmarshalJSON

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

type ScriptSubdomainNewResponseEnvelope

type ScriptSubdomainNewResponseEnvelope struct {
	Errors   []ScriptSubdomainNewResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptSubdomainNewResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptSubdomainNewResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptSubdomainNewResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptSubdomainNewResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptSubdomainNewResponseEnvelope) UnmarshalJSON

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

type ScriptSubdomainNewResponseEnvelopeErrors

type ScriptSubdomainNewResponseEnvelopeErrors struct {
	Code             int64                                          `json:"code,required"`
	Message          string                                         `json:"message,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,required"`
	Message          string                                           `json:"message,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,required"`
}

type ScriptTailDeleteResponse

type ScriptTailDeleteResponse struct {
	Errors   []ScriptTailDeleteResponseError   `json:"errors,required"`
	Messages []ScriptTailDeleteResponseMessage `json:"messages,required"`
	// Whether the API call was successful.
	Success ScriptTailDeleteResponseSuccess `json:"success,required"`
	JSON    scriptTailDeleteResponseJSON    `json:"-"`
}

func (*ScriptTailDeleteResponse) UnmarshalJSON

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

type ScriptTailDeleteResponseError

type ScriptTailDeleteResponseError struct {
	Code             int64                                `json:"code,required"`
	Message          string                               `json:"message,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,required"`
	Message          string                                 `json:"message,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,required"`
}

type ScriptTailGetResponse

type ScriptTailGetResponse struct {
	// Identifier.
	ID        string                    `json:"id,required"`
	ExpiresAt string                    `json:"expires_at,required"`
	URL       string                    `json:"url,required"`
	JSON      scriptTailGetResponseJSON `json:"-"`
}

func (*ScriptTailGetResponse) UnmarshalJSON

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

type ScriptTailGetResponseEnvelope

type ScriptTailGetResponseEnvelope struct {
	Errors   []ScriptTailGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptTailGetResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptTailGetResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptTailGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptTailGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptTailGetResponseEnvelope) UnmarshalJSON

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

type ScriptTailGetResponseEnvelopeErrors

type ScriptTailGetResponseEnvelopeErrors struct {
	Code             int64                                     `json:"code,required"`
	Message          string                                    `json:"message,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,required"`
	Message          string                                      `json:"message,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,required"`
	Body      interface{}         `json:"body,required"`
}

func (ScriptTailNewParams) MarshalJSON

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

type ScriptTailNewResponse

type ScriptTailNewResponse struct {
	// Identifier.
	ID        string                    `json:"id,required"`
	ExpiresAt string                    `json:"expires_at,required"`
	URL       string                    `json:"url,required"`
	JSON      scriptTailNewResponseJSON `json:"-"`
}

func (*ScriptTailNewResponse) UnmarshalJSON

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

type ScriptTailNewResponseEnvelope

type ScriptTailNewResponseEnvelope struct {
	Errors   []ScriptTailNewResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScriptTailNewResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptTailNewResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptTailNewResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptTailNewResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptTailNewResponseEnvelope) UnmarshalJSON

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

type ScriptTailNewResponseEnvelopeErrors

type ScriptTailNewResponseEnvelopeErrors struct {
	Code             int64                                     `json:"code,required"`
	Message          string                                    `json:"message,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,required"`
	Message          string                                      `json:"message,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,required"`
	// JSON-encoded metadata about the uploaded parts and Worker configuration.
	Metadata param.Field[ScriptUpdateParamsMetadata] `json:"metadata,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"`
}

func (ScriptUpdateParams) MarshalMultipart

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

type ScriptUpdateParamsMetadata

type ScriptUpdateParamsMetadata struct {
	// 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 either mode for Smart Placement, or one of region/hostname/host for
	// targeted placement.
	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 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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsType] `json:"type,required"`
	// Identifier of the D1 database to bind to.
	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"`
	// 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"`
	// 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 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"`
	// JSON data to use.
	Json param.Field[string] `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 name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_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"`
	// 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"`
	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.ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowser, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlob, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespace, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindInherit, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindImages, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificate, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelines, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Bucket, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretText, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmail, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindService, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlob, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecret, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKey, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflow, workers.ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModule, 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 added in v6.1.0

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"
)

func (ScriptUpdateParamsMetadataBindingsJurisdiction) IsKnown added in v6.1.0

type ScriptUpdateParamsMetadataBindingsType

type ScriptUpdateParamsMetadataBindingsType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsTypeAI                     ScriptUpdateParamsMetadataBindingsType = "ai"
	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"
	ScriptUpdateParamsMetadataBindingsTypeMTLSCertificate        ScriptUpdateParamsMetadataBindingsType = "mtls_certificate"
	ScriptUpdateParamsMetadataBindingsTypePlainText              ScriptUpdateParamsMetadataBindingsType = "plain_text"
	ScriptUpdateParamsMetadataBindingsTypePipelines              ScriptUpdateParamsMetadataBindingsType = "pipelines"
	ScriptUpdateParamsMetadataBindingsTypeQueue                  ScriptUpdateParamsMetadataBindingsType = "queue"
	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"
	ScriptUpdateParamsMetadataBindingsTypeSecretKey              ScriptUpdateParamsMetadataBindingsType = "secret_key"
	ScriptUpdateParamsMetadataBindingsTypeWorkflow               ScriptUpdateParamsMetadataBindingsType = "workflow"
	ScriptUpdateParamsMetadataBindingsTypeWasmModule             ScriptUpdateParamsMetadataBindingsType = "wasm_module"
)

func (ScriptUpdateParamsMetadataBindingsType) IsKnown

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAI

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType] `json:"type,required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindAI) MarshalJSON

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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserType] `json:"type,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.
	ID param.Field[string] `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type] `json:"type,required"`
}

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 added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobType] `json:"type,required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlob) MarshalJSON added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobType added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDataBlobType) IsKnown added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType] `json:"type,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[[]string] `json:"params"`
	// Outbound worker.
	Worker param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker] `json:"worker"`
}

Outbound worker.

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// 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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType] `json:"type,required"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// 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 ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID param.Field[string] `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType] `json:"type,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 added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesType] `json:"type,required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindImages) MarshalJSON added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesType added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesTypeImages ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindImagesType) IsKnown added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindInherit added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritType] `json:"type,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 added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritType added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritTypeInherit ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindInheritType) IsKnown added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json param.Field[string] `json:"json,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType] `json:"type,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,required"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType] `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCertificateType] `json:"type,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 ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelines

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindPipelinesType] `json:"type,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,required"`
	// The text value to use.
	Text param.Field[string] `json:"text,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType] `json:"type,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,required"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType] `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketType] `json:"type,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 added in v6.1.0

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"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketType

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindR2BucketType) 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,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretKeyType] `json:"type,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,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,required"`
	// The secret value to use.
	Text param.Field[string] `json:"text,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretTextType] `json:"type,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,required"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name,required"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType] `json:"type,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 added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailType] `json:"type,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 added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailType added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindSendEmailType) IsKnown added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindService

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType] `json:"type,required"`
	// 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 added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobType] `json:"type,required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlob) MarshalJSON added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobType added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindTextBlobType) IsKnown added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType] `json:"type,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 added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleType] `json:"type,required"`
}

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModule) MarshalJSON added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleType added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptUpdateParamsMetadataBindingsWorkersBindingKindWasmModuleType) IsKnown added in v6.1.0

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflow

type ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptUpdateParamsMetadataBindingsWorkersBindingKindWorkflowType] `json:"type,required"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name,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"`
}

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,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"`
}

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,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,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 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"`
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

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"
)

func (ScriptUpdateParamsMetadataPlacementMode) IsKnown

type ScriptUpdateParamsMetadataPlacementObject added in v6.6.0

type ScriptUpdateParamsMetadataPlacementObject struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode param.Field[ScriptUpdateParamsMetadataPlacementObjectMode] `json:"mode,required"`
}

func (ScriptUpdateParamsMetadataPlacementObject) MarshalJSON added in v6.6.0

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

type ScriptUpdateParamsMetadataPlacementObjectMode added in v6.6.0

type ScriptUpdateParamsMetadataPlacementObjectMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptUpdateParamsMetadataPlacementObjectModeSmart ScriptUpdateParamsMetadataPlacementObjectMode = "smart"
)

func (ScriptUpdateParamsMetadataPlacementObjectMode) IsKnown added in v6.6.0

type ScriptUpdateParamsMetadataPlacementObjectStatus added in v6.6.0

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 added in v6.6.0

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 ScriptUpdateParamsMetadataPlacementUnion added in v6.6.0

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

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

Satisfied by workers.ScriptUpdateParamsMetadataPlacementObject, workers.ScriptUpdateParamsMetadataPlacementObject, workers.ScriptUpdateParamsMetadataPlacementObject, workers.ScriptUpdateParamsMetadataPlacementObject, ScriptUpdateParamsMetadataPlacement.

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,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 either mode for Smart Placement, or one of region/hostname/host for
	// targeted placement.
	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,nullable"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []ConsumerScript `json:"tail_consumers,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,required"`
	Messages []ScriptUpdateResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptUpdateResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptUpdateResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptUpdateResponseEnvelope) UnmarshalJSON

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

type ScriptUpdateResponseEnvelopeErrors

type ScriptUpdateResponseEnvelopeErrors struct {
	Code             int64                                    `json:"code,required"`
	Message          string                                   `json:"message,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,required"`
	Message          string                                     `json:"message,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 added in v6.3.0

type ScriptUpdateResponseObservability struct {
	// Whether observability is enabled for the Worker.
	Enabled bool `json:"enabled,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,nullable"`
	// Log settings for the Worker.
	Logs ScriptUpdateResponseObservabilityLogs `json:"logs,nullable"`
	JSON scriptUpdateResponseObservabilityJSON `json:"-"`
}

Observability settings for the Worker.

func (*ScriptUpdateResponseObservability) UnmarshalJSON added in v6.3.0

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

type ScriptUpdateResponseObservabilityLogs added in v6.3.0

type ScriptUpdateResponseObservabilityLogs struct {
	// Whether logs are enabled for the Worker.
	Enabled bool `json:"enabled,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,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,nullable"`
	// Whether log persistence is enabled for the Worker.
	Persist bool                                      `json:"persist"`
	JSON    scriptUpdateResponseObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*ScriptUpdateResponseObservabilityLogs) UnmarshalJSON added in v6.3.0

func (r *ScriptUpdateResponseObservabilityLogs) 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"`
	JSON   scriptUpdateResponsePlacementJSON   `json:"-"`
	// contains filtered or unexported fields
}

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

func (ScriptUpdateResponsePlacement) AsUnion added in v6.6.0

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

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

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"
)

func (ScriptUpdateResponsePlacementMode) IsKnown

type ScriptUpdateResponsePlacementObject added in v6.6.0

type ScriptUpdateResponsePlacementObject struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode ScriptUpdateResponsePlacementObjectMode `json:"mode,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 added in v6.6.0

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

type ScriptUpdateResponsePlacementObjectMode added in v6.6.0

type ScriptUpdateResponsePlacementObjectMode string

Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).

const (
	ScriptUpdateResponsePlacementObjectModeSmart ScriptUpdateResponsePlacementObjectMode = "smart"
)

func (ScriptUpdateResponsePlacementObjectMode) IsKnown added in v6.6.0

type ScriptUpdateResponsePlacementObjectStatus added in v6.6.0

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 added in v6.6.0

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 ScriptUpdateResponsePlacementUnion added in v6.6.0

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

Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.

Union satisfied by ScriptUpdateResponsePlacementObject, ScriptUpdateResponsePlacementObject, ScriptUpdateResponsePlacementObject or ScriptUpdateResponsePlacementObject.

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,required"`
}

type ScriptVersionGetResponse

type ScriptVersionGetResponse struct {
	Resources ScriptVersionGetResponseResources `json:"resources,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,required"`
	Messages []ScriptVersionGetResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptVersionGetResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptVersionGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptVersionGetResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptVersionGetResponseEnvelope) UnmarshalJSON

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

type ScriptVersionGetResponseEnvelopeErrors

type ScriptVersionGetResponseEnvelopeErrors struct {
	Code             int64                                        `json:"code,required"`
	Message          string                                       `json:"message,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,required"`
	Message          string                                         `json:"message,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsType `json:"type,required"`
	// Identifier of the D1 database to bind to.
	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"`
	// 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"`
	// 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 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"`
	// JSON data to use.
	Json string `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 name of the dispatch namespace.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_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"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id"`
	// The text value to use.
	Text string `json:"text"`
	// 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, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngine, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssets, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowser, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlob, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdrive, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInherit, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImages, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJson, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificate, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainText, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelines, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueue, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2Bucket, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretText, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmail, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindService, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlob, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorize, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadata, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKey, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflow, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModule.

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 added in v6.1.0

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"
)

func (ScriptVersionGetResponseResourcesBindingsJurisdiction) IsKnown added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsType

type ScriptVersionGetResponseResourcesBindingsType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsTypeAI                     ScriptVersionGetResponseResourcesBindingsType = "ai"
	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"
	ScriptVersionGetResponseResourcesBindingsTypeMTLSCertificate        ScriptVersionGetResponseResourcesBindingsType = "mtls_certificate"
	ScriptVersionGetResponseResourcesBindingsTypePlainText              ScriptVersionGetResponseResourcesBindingsType = "plain_text"
	ScriptVersionGetResponseResourcesBindingsTypePipelines              ScriptVersionGetResponseResourcesBindingsType = "pipelines"
	ScriptVersionGetResponseResourcesBindingsTypeQueue                  ScriptVersionGetResponseResourcesBindingsType = "queue"
	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"
	ScriptVersionGetResponseResourcesBindingsTypeSecretKey              ScriptVersionGetResponseResourcesBindingsType = "secret_key"
	ScriptVersionGetResponseResourcesBindingsTypeWorkflow               ScriptVersionGetResponseResourcesBindingsType = "workflow"
	ScriptVersionGetResponseResourcesBindingsTypeWasmModule             ScriptVersionGetResponseResourcesBindingsType = "wasm_module"
)

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, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngine, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssets, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowser, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlob, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdrive, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInherit, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImages, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJson, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespace, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificate, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainText, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelines, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueue, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2Bucket, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretText, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmail, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindService, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlob, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorize, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadata, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKey, ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflow or ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModule.

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAI

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAIType `json:"type,required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindAIJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAI) UnmarshalJSON

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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindAssetsType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindBrowserType `json:"type,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.
	ID string `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindD1Type `json:"type,required"`
	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 added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobType `json:"type,required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlob) UnmarshalJSON added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobType added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDataBlobType) IsKnown added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespace

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the dispatch namespace.
	Namespace string `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType `json:"type,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 []string `json:"params"`
	// Outbound worker.
	Worker ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   scriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// 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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType `json:"type,required"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// 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 ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdrive

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID string `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindHyperdriveType `json:"type,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 added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesType `json:"type,required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImages) UnmarshalJSON added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesType added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesTypeImages ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindImagesType) IsKnown added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInherit added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritType `json:"type,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 added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritType added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritTypeInherit ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindInheritType) IsKnown added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJson

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json string `json:"json,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindJsonType `json:"type,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,required"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindKVNamespaceType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindMTLSCertificateType `json:"type,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 ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelines

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPipelinesType `json:"type,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,required"`
	// The text value to use.
	Text string `json:"text,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindPlainTextType `json:"type,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,required"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindQueueType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketType `json:"type,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 added in v6.1.0

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"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketType

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindR2BucketType) 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,required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyFormat `json:"format,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyType `json:"type,required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretKeyUsage `json:"usages,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretTextType `json:"type,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,required"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name,required"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType `json:"type,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 added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailType `json:"type,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 added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailType added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindSendEmailType) IsKnown added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindService

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of Worker to bind to.
	Service string `json:"service,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindServiceType `json:"type,required"`
	// 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 added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobType `json:"type,required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlob) UnmarshalJSON added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobType added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindTextBlobType) IsKnown added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorize

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVectorizeType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindVersionMetadataType `json:"type,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 added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleType `json:"type,required"`
	JSON scriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleJSON `json:"-"`
}

func (*ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModule) UnmarshalJSON added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleType added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWasmModuleType) IsKnown added in v6.1.0

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflow

type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionGetResponseResourcesBindingsWorkersBindingKindWorkflowType `json:"type,required"`
	// Name of the Workflow to bind to.
	WorkflowName string `json:"workflow_name,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,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,required"`
	// JSON-encoded metadata about the uploaded parts and Worker configuration.
	Metadata param.Field[ScriptVersionNewParamsMetadata] `json:"metadata,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"`
}

func (ScriptVersionNewParams) MarshalMultipart

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

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,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 100 bytes.
	WorkersMessage param.Field[string] `json:"workers/message"`
	// User-provided identifier for the version.
	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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsType] `json:"type,required"`
	// Identifier of the D1 database to bind to.
	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"`
	// 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"`
	// 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 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"`
	// JSON data to use.
	Json param.Field[string] `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 name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_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"`
	// 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"`
	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.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngine, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssets, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowser, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlob, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespace, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespace, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdrive, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInherit, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImages, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespace, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificate, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainText, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelines, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueue, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2Bucket, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretText, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmail, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindService, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlob, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorize, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadata, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecret, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKey, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflow, workers.ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModule, 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 added in v6.1.0

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"
)

func (ScriptVersionNewParamsMetadataBindingsJurisdiction) IsKnown added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsType

type ScriptVersionNewParamsMetadataBindingsType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsTypeAI                     ScriptVersionNewParamsMetadataBindingsType = "ai"
	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"
	ScriptVersionNewParamsMetadataBindingsTypeMTLSCertificate        ScriptVersionNewParamsMetadataBindingsType = "mtls_certificate"
	ScriptVersionNewParamsMetadataBindingsTypePlainText              ScriptVersionNewParamsMetadataBindingsType = "plain_text"
	ScriptVersionNewParamsMetadataBindingsTypePipelines              ScriptVersionNewParamsMetadataBindingsType = "pipelines"
	ScriptVersionNewParamsMetadataBindingsTypeQueue                  ScriptVersionNewParamsMetadataBindingsType = "queue"
	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"
	ScriptVersionNewParamsMetadataBindingsTypeSecretKey              ScriptVersionNewParamsMetadataBindingsType = "secret_key"
	ScriptVersionNewParamsMetadataBindingsTypeWorkflow               ScriptVersionNewParamsMetadataBindingsType = "workflow"
	ScriptVersionNewParamsMetadataBindingsTypeWasmModule             ScriptVersionNewParamsMetadataBindingsType = "wasm_module"
)

func (ScriptVersionNewParamsMetadataBindingsType) IsKnown

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAI

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAIType] `json:"type,required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAI) MarshalJSON

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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindAssetsType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindBrowserType] `json:"type,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.
	ID param.Field[string] `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindD1Type] `json:"type,required"`
}

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 added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobType] `json:"type,required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlob) MarshalJSON added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobType added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDataBlobType) IsKnown added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespace

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType] `json:"type,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[[]string] `json:"params"`
	// Outbound worker.
	Worker param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker] `json:"worker"`
}

Outbound worker.

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// 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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindDurableObjectNamespaceType] `json:"type,required"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// 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 ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdrive

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID param.Field[string] `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindHyperdriveType] `json:"type,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 added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesType] `json:"type,required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImages) MarshalJSON added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesType added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesTypeImages ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindImagesType) IsKnown added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInherit added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritType] `json:"type,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 added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritType added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritTypeInherit ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindInheritType) IsKnown added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json param.Field[string] `json:"json,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindJsonType] `json:"type,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,required"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindKVNamespaceType] `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindMTLSCertificateType] `json:"type,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 ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelines

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPipelinesType] `json:"type,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,required"`
	// The text value to use.
	Text param.Field[string] `json:"text,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindPlainTextType] `json:"type,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,required"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindQueueType] `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketType] `json:"type,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 added in v6.1.0

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"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketType

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindR2BucketType) 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,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretKeyType] `json:"type,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,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,required"`
	// The secret value to use.
	Text param.Field[string] `json:"text,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretTextType] `json:"type,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,required"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name,required"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSecretsStoreSecretType] `json:"type,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 added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailType] `json:"type,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 added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailType added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindSendEmailType) IsKnown added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindService

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindServiceType] `json:"type,required"`
	// 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 added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobType] `json:"type,required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlob) MarshalJSON added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobType added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindTextBlobType) IsKnown added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorize

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName param.Field[string] `json:"index_name,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVectorizeType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindVersionMetadataType] `json:"type,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 added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleType] `json:"type,required"`
}

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModule) MarshalJSON added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleType added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWasmModuleType) IsKnown added in v6.1.0

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflow

type ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[ScriptVersionNewParamsMetadataBindingsWorkersBindingKindWorkflowType] `json:"type,required"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name,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,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,required"`
	Messages []ScriptVersionNewResponseEnvelopeMessages `json:"messages,required"`
	Result   ScriptVersionNewResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success ScriptVersionNewResponseEnvelopeSuccess `json:"success,required"`
	JSON    scriptVersionNewResponseEnvelopeJSON    `json:"-"`
}

func (*ScriptVersionNewResponseEnvelope) UnmarshalJSON

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

type ScriptVersionNewResponseEnvelopeErrors

type ScriptVersionNewResponseEnvelopeErrors struct {
	Code             int64                                        `json:"code,required"`
	Message          string                                       `json:"message,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,required"`
	Message          string                                         `json:"message,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsType `json:"type,required"`
	// Identifier of the D1 database to bind to.
	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"`
	// 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"`
	// 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 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"`
	// JSON data to use.
	Json string `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 name of the dispatch namespace.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_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"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id"`
	// The text value to use.
	Text string `json:"text"`
	// 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, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngine, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssets, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowser, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlob, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdrive, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInherit, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImages, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJson, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificate, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainText, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelines, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueue, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2Bucket, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretText, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmail, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindService, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlob, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorize, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadata, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKey, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflow, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModule.

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 added in v6.1.0

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"
)

func (ScriptVersionNewResponseResourcesBindingsJurisdiction) IsKnown added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsType

type ScriptVersionNewResponseResourcesBindingsType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsTypeAI                     ScriptVersionNewResponseResourcesBindingsType = "ai"
	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"
	ScriptVersionNewResponseResourcesBindingsTypeMTLSCertificate        ScriptVersionNewResponseResourcesBindingsType = "mtls_certificate"
	ScriptVersionNewResponseResourcesBindingsTypePlainText              ScriptVersionNewResponseResourcesBindingsType = "plain_text"
	ScriptVersionNewResponseResourcesBindingsTypePipelines              ScriptVersionNewResponseResourcesBindingsType = "pipelines"
	ScriptVersionNewResponseResourcesBindingsTypeQueue                  ScriptVersionNewResponseResourcesBindingsType = "queue"
	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"
	ScriptVersionNewResponseResourcesBindingsTypeSecretKey              ScriptVersionNewResponseResourcesBindingsType = "secret_key"
	ScriptVersionNewResponseResourcesBindingsTypeWorkflow               ScriptVersionNewResponseResourcesBindingsType = "workflow"
	ScriptVersionNewResponseResourcesBindingsTypeWasmModule             ScriptVersionNewResponseResourcesBindingsType = "wasm_module"
)

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, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngine, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssets, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowser, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlob, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdrive, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInherit, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImages, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJson, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespace, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificate, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainText, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelines, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueue, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2Bucket, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretText, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmail, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindService, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlob, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorize, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadata, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecret, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKey, ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflow or ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModule.

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAI

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAIType `json:"type,required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindAIJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAI) UnmarshalJSON

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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAnalyticsEngineType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindAssetsType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindBrowserType `json:"type,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.
	ID string `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindD1Type `json:"type,required"`
	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 added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobType `json:"type,required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlob) UnmarshalJSON added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobType added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobTypeDataBlob ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDataBlobType) IsKnown added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespace

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the dispatch namespace.
	Namespace string `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceType `json:"type,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 []string `json:"params"`
	// Outbound worker.
	Worker ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   scriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// 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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindDurableObjectNamespaceType `json:"type,required"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// 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 ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdrive

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID string `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindHyperdriveType `json:"type,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 added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesType `json:"type,required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImages) UnmarshalJSON added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesType added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesTypeImages ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesType = "images"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindImagesType) IsKnown added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInherit added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritType `json:"type,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 added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritType added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritTypeInherit ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritType = "inherit"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindInheritType) IsKnown added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJson

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json string `json:"json,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindJsonType `json:"type,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,required"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindKVNamespaceType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindMTLSCertificateType `json:"type,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 ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelines

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPipelinesType `json:"type,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,required"`
	// The text value to use.
	Text string `json:"text,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindPlainTextType `json:"type,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,required"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindQueueType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketType `json:"type,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 added in v6.1.0

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"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketType

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketTypeR2Bucket ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketType = "r2_bucket"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindR2BucketType) 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,required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyFormat `json:"format,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyType `json:"type,required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretKeyUsage `json:"usages,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretTextType `json:"type,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,required"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name,required"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSecretsStoreSecretType `json:"type,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 added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailType `json:"type,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 added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailType added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailTypeSendEmail ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindSendEmailType) IsKnown added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindService

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of Worker to bind to.
	Service string `json:"service,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindServiceType `json:"type,required"`
	// 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 added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobType `json:"type,required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlob) UnmarshalJSON added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobType added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobTypeTextBlob ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindTextBlobType) IsKnown added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorize

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVectorizeType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindVersionMetadataType `json:"type,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 added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleType `json:"type,required"`
	JSON scriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleJSON `json:"-"`
}

func (*ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModule) UnmarshalJSON added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleType added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleTypeWasmModule ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWasmModuleType) IsKnown added in v6.1.0

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflow

type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type ScriptVersionNewResponseResourcesBindingsWorkersBindingKindWorkflowType `json:"type,required"`
	// Name of the Workflow to bind to.
	WorkflowName string `json:"workflow_name,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)

Get Version Detail

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 added in v6.3.0

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

type SubdomainGetParams

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

type SubdomainGetResponse

type SubdomainGetResponse struct {
	Subdomain string                   `json:"subdomain,required"`
	JSON      subdomainGetResponseJSON `json:"-"`
}

func (*SubdomainGetResponse) UnmarshalJSON

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

type SubdomainGetResponseEnvelope

type SubdomainGetResponseEnvelope struct {
	Errors   []SubdomainGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []SubdomainGetResponseEnvelopeMessages `json:"messages,required"`
	Result   SubdomainGetResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success SubdomainGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    subdomainGetResponseEnvelopeJSON    `json:"-"`
}

func (*SubdomainGetResponseEnvelope) UnmarshalJSON

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

type SubdomainGetResponseEnvelopeErrors

type SubdomainGetResponseEnvelopeErrors struct {
	Code             int64                                    `json:"code,required"`
	Message          string                                   `json:"message,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,required"`
	Message          string                                     `json:"message,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 added in v6.3.0

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,required"`
	Subdomain param.Field[string] `json:"subdomain,required"`
}

func (SubdomainUpdateParams) MarshalJSON

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

type SubdomainUpdateResponse

type SubdomainUpdateResponse struct {
	Subdomain string                      `json:"subdomain,required"`
	JSON      subdomainUpdateResponseJSON `json:"-"`
}

func (*SubdomainUpdateResponse) UnmarshalJSON

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

type SubdomainUpdateResponseEnvelope

type SubdomainUpdateResponseEnvelope struct {
	Errors   []SubdomainUpdateResponseEnvelopeErrors   `json:"errors,required"`
	Messages []SubdomainUpdateResponseEnvelopeMessages `json:"messages,required"`
	Result   SubdomainUpdateResponse                   `json:"result,required"`
	// Whether the API call was successful.
	Success SubdomainUpdateResponseEnvelopeSuccess `json:"success,required"`
	JSON    subdomainUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*SubdomainUpdateResponseEnvelope) UnmarshalJSON

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

type SubdomainUpdateResponseEnvelopeErrors

type SubdomainUpdateResponseEnvelopeErrors struct {
	Code             int64                                       `json:"code,required"`
	Message          string                                      `json:"message,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,required"`
	Message          string                                        `json:"message,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,required" format:"uuid"`
	// When the version was created.
	CreatedOn time.Time `json:"created_on,required" format:"date-time"`
	// The integer version number, starting from one.
	Number int64 `json:"number,required"`
	// 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"`
	// 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"`
	// 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"`
	// Placement settings for the version.
	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.
	WorkersMessage string `json:"workers/message"`
	// User-provided identifier for the version.
	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.
	WorkersMessage param.Field[string] `json:"workers/message"`
	// User-provided identifier for the version.
	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,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsType `json:"type,required"`
	// Identifier of the D1 database to bind to.
	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"`
	// 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"`
	// 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 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"`
	// JSON data to use.
	Json string `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 name of the dispatch namespace.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_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"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id"`
	// The text value to use.
	Text string `json:"text"`
	// 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) 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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsType] `json:"type,required"`
	// Identifier of the D1 database to bind to.
	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"`
	// 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"`
	// 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 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"`
	// JSON data to use.
	Json param.Field[string] `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 name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_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"`
	// 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"`
	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 added in v6.1.0

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"
)

func (VersionBindingsJurisdiction) IsKnown added in v6.1.0

func (r VersionBindingsJurisdiction) IsKnown() bool

type VersionBindingsType

type VersionBindingsType string

The kind of resource that the binding provides.

const (
	VersionBindingsTypeAI                     VersionBindingsType = "ai"
	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"
	VersionBindingsTypeMTLSCertificate        VersionBindingsType = "mtls_certificate"
	VersionBindingsTypePlainText              VersionBindingsType = "plain_text"
	VersionBindingsTypePipelines              VersionBindingsType = "pipelines"
	VersionBindingsTypeQueue                  VersionBindingsType = "queue"
	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"
	VersionBindingsTypeSecretKey              VersionBindingsType = "secret_key"
	VersionBindingsTypeWorkflow               VersionBindingsType = "workflow"
	VersionBindingsTypeWasmModule             VersionBindingsType = "wasm_module"
)

func (VersionBindingsType) IsKnown

func (r VersionBindingsType) IsKnown() bool

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.VersionBindingsWorkersBindingKindAnalyticsEngineParam, workers.VersionBindingsWorkersBindingKindAssetsParam, workers.VersionBindingsWorkersBindingKindBrowserParam, workers.VersionBindingsWorkersBindingKindD1Param, workers.VersionBindingsWorkersBindingKindDataBlobParam, workers.VersionBindingsWorkersBindingKindDispatchNamespaceParam, workers.VersionBindingsWorkersBindingKindDurableObjectNamespaceParam, workers.VersionBindingsWorkersBindingKindHyperdriveParam, workers.VersionBindingsWorkersBindingKindInheritParam, workers.VersionBindingsWorkersBindingKindImagesParam, workers.VersionBindingsWorkersBindingKindJsonParam, workers.VersionBindingsWorkersBindingKindKVNamespaceParam, workers.VersionBindingsWorkersBindingKindMTLSCertificateParam, workers.VersionBindingsWorkersBindingKindPlainTextParam, workers.VersionBindingsWorkersBindingKindPipelinesParam, workers.VersionBindingsWorkersBindingKindQueueParam, workers.VersionBindingsWorkersBindingKindR2BucketParam, workers.VersionBindingsWorkersBindingKindSecretTextParam, workers.VersionBindingsWorkersBindingKindSendEmailParam, workers.VersionBindingsWorkersBindingKindServiceParam, workers.VersionBindingsWorkersBindingKindTextBlobParam, workers.VersionBindingsWorkersBindingKindVectorizeParam, workers.VersionBindingsWorkersBindingKindVersionMetadataParam, workers.VersionBindingsWorkersBindingKindSecretsStoreSecretParam, workers.VersionBindingsWorkersBindingKindSecretKeyParam, workers.VersionBindingsWorkersBindingKindWorkflowParam, workers.VersionBindingsWorkersBindingKindWasmModuleParam, VersionBindingParam.

type VersionBindingsWorkersBindingKindAI

type VersionBindingsWorkersBindingKindAI struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindAIType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindAIType] `json:"type,required"`
}

func (VersionBindingsWorkersBindingKindAIParam) MarshalJSON

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

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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindAnalyticsEngineType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindAnalyticsEngineType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindAssetsType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindAssetsType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindBrowserType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindBrowserType] `json:"type,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.
	ID string `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindD1Type `json:"type,required"`
	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.
	ID param.Field[string] `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindD1Type] `json:"type,required"`
}

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 added in v6.1.0

type VersionBindingsWorkersBindingKindDataBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type VersionBindingsWorkersBindingKindDataBlobType `json:"type,required"`
	JSON versionBindingsWorkersBindingKindDataBlobJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindDataBlob) UnmarshalJSON added in v6.1.0

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

type VersionBindingsWorkersBindingKindDataBlobParam added in v6.1.0

type VersionBindingsWorkersBindingKindDataBlobParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the data content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[VersionBindingsWorkersBindingKindDataBlobType] `json:"type,required"`
}

func (VersionBindingsWorkersBindingKindDataBlobParam) MarshalJSON added in v6.1.0

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

type VersionBindingsWorkersBindingKindDataBlobType added in v6.1.0

type VersionBindingsWorkersBindingKindDataBlobType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindDataBlobTypeDataBlob VersionBindingsWorkersBindingKindDataBlobType = "data_blob"
)

func (VersionBindingsWorkersBindingKindDataBlobType) IsKnown added in v6.1.0

type VersionBindingsWorkersBindingKindDispatchNamespace

type VersionBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the dispatch namespace.
	Namespace string `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindDispatchNamespaceType `json:"type,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 []string `json:"params"`
	// Outbound worker.
	Worker VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   versionBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*VersionBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type VersionBindingsWorkersBindingKindDispatchNamespaceOutboundParam

type VersionBindingsWorkersBindingKindDispatchNamespaceOutboundParam struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params param.Field[[]string] `json:"params"`
	// Outbound worker.
	Worker param.Field[VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerParam] `json:"worker"`
}

Outbound worker.

func (VersionBindingsWorkersBindingKindDispatchNamespaceOutboundParam) MarshalJSON

type VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// 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 VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerParam

type VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerParam struct {
	// 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 (VersionBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerParam) MarshalJSON

type VersionBindingsWorkersBindingKindDispatchNamespaceParam

type VersionBindingsWorkersBindingKindDispatchNamespaceParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the dispatch namespace.
	Namespace param.Field[string] `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindDispatchNamespaceType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindDurableObjectNamespaceType `json:"type,required"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// 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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindDurableObjectNamespaceType] `json:"type,required"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// 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 VersionBindingsWorkersBindingKindHyperdrive

type VersionBindingsWorkersBindingKindHyperdrive struct {
	// Identifier of the Hyperdrive connection to bind to.
	ID string `json:"id,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindHyperdriveType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindHyperdriveType] `json:"type,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 added in v6.1.0

type VersionBindingsWorkersBindingKindImages struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindImagesType `json:"type,required"`
	JSON versionBindingsWorkersBindingKindImagesJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindImages) UnmarshalJSON added in v6.1.0

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

type VersionBindingsWorkersBindingKindImagesParam added in v6.1.0

type VersionBindingsWorkersBindingKindImagesParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindImagesType] `json:"type,required"`
}

func (VersionBindingsWorkersBindingKindImagesParam) MarshalJSON added in v6.1.0

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

type VersionBindingsWorkersBindingKindImagesType added in v6.1.0

type VersionBindingsWorkersBindingKindImagesType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindImagesTypeImages VersionBindingsWorkersBindingKindImagesType = "images"
)

func (VersionBindingsWorkersBindingKindImagesType) IsKnown added in v6.1.0

type VersionBindingsWorkersBindingKindInherit added in v6.1.0

type VersionBindingsWorkersBindingKindInherit struct {
	// The name of the inherited binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindInheritType `json:"type,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 added in v6.1.0

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

type VersionBindingsWorkersBindingKindInheritParam added in v6.1.0

type VersionBindingsWorkersBindingKindInheritParam struct {
	// The name of the inherited binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindInheritType] `json:"type,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 added in v6.1.0

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

type VersionBindingsWorkersBindingKindInheritType added in v6.1.0

type VersionBindingsWorkersBindingKindInheritType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindInheritTypeInherit VersionBindingsWorkersBindingKindInheritType = "inherit"
)

func (VersionBindingsWorkersBindingKindInheritType) IsKnown added in v6.1.0

type VersionBindingsWorkersBindingKindJson

type VersionBindingsWorkersBindingKindJson struct {
	// JSON data to use.
	Json string `json:"json,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindJsonType `json:"type,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[string] `json:"json,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindJsonType] `json:"type,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,required"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindKVNamespaceType `json:"type,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,required"`
	// Namespace identifier tag.
	NamespaceID param.Field[string] `json:"namespace_id,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindKVNamespaceType] `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindMTLSCertificateType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindMTLSCertificateType] `json:"type,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 VersionBindingsWorkersBindingKindPipelines

type VersionBindingsWorkersBindingKindPipelines struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of the Pipeline to bind to.
	Pipeline string `json:"pipeline,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindPipelinesType `json:"type,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,required"`
	// Name of the Pipeline to bind to.
	Pipeline param.Field[string] `json:"pipeline,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindPipelinesType] `json:"type,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,required"`
	// The text value to use.
	Text string `json:"text,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindPlainTextType `json:"type,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,required"`
	// The text value to use.
	Text param.Field[string] `json:"text,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindPlainTextType] `json:"type,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,required"`
	// Name of the Queue to bind to.
	QueueName string `json:"queue_name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindQueueType `json:"type,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,required"`
	// Name of the Queue to bind to.
	QueueName param.Field[string] `json:"queue_name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindQueueType] `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindR2BucketType `json:"type,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 added in v6.1.0

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"
)

func (VersionBindingsWorkersBindingKindR2BucketJurisdiction) IsKnown added in v6.1.0

type VersionBindingsWorkersBindingKindR2BucketParam

type VersionBindingsWorkersBindingKindR2BucketParam struct {
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindR2BucketType] `json:"type,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 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,required"`
	// Data format of the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).
	Format VersionBindingsWorkersBindingKindSecretKeyFormat `json:"format,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindSecretKeyType `json:"type,required"`
	// Allowed operations with the key.
	// [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).
	Usages []VersionBindingsWorkersBindingKindSecretKeyUsage `json:"usages,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,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindSecretKeyType] `json:"type,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,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,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindSecretTextType `json:"type,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,required"`
	// The secret value to use.
	Text param.Field[string] `json:"text,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindSecretTextType] `json:"type,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,required"`
	// Name of the secret in the store.
	SecretName string `json:"secret_name,required"`
	// ID of the store containing the secret.
	StoreID string `json:"store_id,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindSecretsStoreSecretType `json:"type,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,required"`
	// Name of the secret in the store.
	SecretName param.Field[string] `json:"secret_name,required"`
	// ID of the store containing the secret.
	StoreID param.Field[string] `json:"store_id,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindSecretsStoreSecretType] `json:"type,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 added in v6.1.0

type VersionBindingsWorkersBindingKindSendEmail struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindSendEmailType `json:"type,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 added in v6.1.0

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

type VersionBindingsWorkersBindingKindSendEmailParam added in v6.1.0

type VersionBindingsWorkersBindingKindSendEmailParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindSendEmailType] `json:"type,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 added in v6.1.0

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

type VersionBindingsWorkersBindingKindSendEmailType added in v6.1.0

type VersionBindingsWorkersBindingKindSendEmailType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindSendEmailTypeSendEmail VersionBindingsWorkersBindingKindSendEmailType = "send_email"
)

func (VersionBindingsWorkersBindingKindSendEmailType) IsKnown added in v6.1.0

type VersionBindingsWorkersBindingKindService

type VersionBindingsWorkersBindingKindService struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of Worker to bind to.
	Service string `json:"service,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindServiceType `json:"type,required"`
	// 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,required"`
	// Name of Worker to bind to.
	Service param.Field[string] `json:"service,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindServiceType] `json:"type,required"`
	// 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 added in v6.1.0

type VersionBindingsWorkersBindingKindTextBlob struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type VersionBindingsWorkersBindingKindTextBlobType `json:"type,required"`
	JSON versionBindingsWorkersBindingKindTextBlobJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindTextBlob) UnmarshalJSON added in v6.1.0

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

type VersionBindingsWorkersBindingKindTextBlobParam added in v6.1.0

type VersionBindingsWorkersBindingKindTextBlobParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the text content. Only accepted for
	// `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[VersionBindingsWorkersBindingKindTextBlobType] `json:"type,required"`
}

func (VersionBindingsWorkersBindingKindTextBlobParam) MarshalJSON added in v6.1.0

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

type VersionBindingsWorkersBindingKindTextBlobType added in v6.1.0

type VersionBindingsWorkersBindingKindTextBlobType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindTextBlobTypeTextBlob VersionBindingsWorkersBindingKindTextBlobType = "text_blob"
)

func (VersionBindingsWorkersBindingKindTextBlobType) IsKnown added in v6.1.0

type VersionBindingsWorkersBindingKindVectorize

type VersionBindingsWorkersBindingKindVectorize struct {
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindVectorizeType `json:"type,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,required"`
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindVectorizeType] `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindVersionMetadataType `json:"type,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindVersionMetadataType] `json:"type,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 added in v6.1.0

type VersionBindingsWorkersBindingKindWasmModule struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part string `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type VersionBindingsWorkersBindingKindWasmModuleType `json:"type,required"`
	JSON versionBindingsWorkersBindingKindWasmModuleJSON `json:"-"`
}

func (*VersionBindingsWorkersBindingKindWasmModule) UnmarshalJSON added in v6.1.0

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

type VersionBindingsWorkersBindingKindWasmModuleParam added in v6.1.0

type VersionBindingsWorkersBindingKindWasmModuleParam struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// The name of the file containing the WebAssembly module content. Only accepted
	// for `service worker syntax` Workers.
	Part param.Field[string] `json:"part,required"`
	// The kind of resource that the binding provides.
	//
	// Deprecated: deprecated
	Type param.Field[VersionBindingsWorkersBindingKindWasmModuleType] `json:"type,required"`
}

func (VersionBindingsWorkersBindingKindWasmModuleParam) MarshalJSON added in v6.1.0

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

type VersionBindingsWorkersBindingKindWasmModuleType added in v6.1.0

type VersionBindingsWorkersBindingKindWasmModuleType string

The kind of resource that the binding provides.

const (
	VersionBindingsWorkersBindingKindWasmModuleTypeWasmModule VersionBindingsWorkersBindingKindWasmModuleType = "wasm_module"
)

func (VersionBindingsWorkersBindingKindWasmModuleType) IsKnown added in v6.1.0

type VersionBindingsWorkersBindingKindWorkflow

type VersionBindingsWorkersBindingKindWorkflow struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type VersionBindingsWorkersBindingKindWorkflowType `json:"type,required"`
	// Name of the Workflow to bind to.
	WorkflowName string `json:"workflow_name,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,required"`
	// The kind of resource that the binding provides.
	Type param.Field[VersionBindingsWorkersBindingKindWorkflowType] `json:"type,required"`
	// Name of the Workflow to bind to.
	WorkflowName param.Field[string] `json:"workflow_name,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 VersionLimits

type VersionLimits struct {
	// CPU time limit in milliseconds.
	CPUMs int64             `json:"cpu_ms,required"`
	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,required"`
}

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,required" format:"byte"`
	// The content type of the module.
	ContentType string `json:"content_type,required"`
	// The name of the module.
	Name string            `json:"name,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,required" format:"byte"`
	// The content type of the module.
	ContentType param.Field[string] `json:"content_type,required"`
	// The name of the module.
	Name param.Field[string] `json:"name,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"`
	// 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"`
	// Placement settings for the version.
	Placement param.Field[VersionPlacementParam] `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 {
	// Placement mode for the version.
	Mode VersionPlacementMode `json:"mode"`
	JSON versionPlacementJSON `json:"-"`
}

Placement settings for the version.

func (*VersionPlacement) UnmarshalJSON

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

type VersionPlacementMode

type VersionPlacementMode string

Placement mode for the version.

const (
	VersionPlacementModeSmart VersionPlacementMode = "smart"
)

func (VersionPlacementMode) IsKnown

func (r VersionPlacementMode) IsKnown() bool

type VersionPlacementParam

type VersionPlacementParam struct {
	// Placement mode for the version.
	Mode param.Field[VersionPlacementMode] `json:"mode"`
}

Placement settings for the version.

func (VersionPlacementParam) MarshalJSON

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

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,required"`
	// When the Worker was created.
	CreatedOn time.Time `json:"created_on,required" format:"date-time"`
	// Whether logpush is enabled for the Worker.
	Logpush bool `json:"logpush,required"`
	// Name of the Worker.
	Name string `json:"name,required"`
	// Observability settings for the Worker.
	Observability WorkerObservability `json:"observability,required"`
	// Other resources that reference the Worker and depend on it existing.
	References WorkerReferences `json:"references,required"`
	// Subdomain settings for the Worker.
	Subdomain WorkerSubdomain `json:"subdomain,required"`
	// Tags associated with the Worker.
	Tags []string `json:"tags,required"`
	// Other Workers that should consume logs from the Worker.
	TailConsumers []WorkerTailConsumer `json:"tail_consumers,required"`
	// When the Worker was most recently updated.
	UpdatedOn time.Time  `json:"updated_on,required" 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"`
	JSON workerObservabilityJSON `json:"-"`
}

Observability settings for the Worker.

func (*WorkerObservability) UnmarshalJSON

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

type WorkerObservabilityLogs

type WorkerObservabilityLogs struct {
	// 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"`
	JSON           workerObservabilityLogsJSON `json:"-"`
}

Log settings for the Worker.

func (*WorkerObservabilityLogs) UnmarshalJSON

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

type WorkerObservabilityLogsParam

type WorkerObservabilityLogsParam struct {
	// 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"`
}

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"`
}

Observability settings for the Worker.

func (WorkerObservabilityParam) MarshalJSON

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

type WorkerParam

type WorkerParam struct {
	// Whether logpush is enabled for the Worker.
	Logpush param.Field[bool] `json:"logpush,required"`
	// Name of the Worker.
	Name param.Field[string] `json:"name,required"`
	// Observability settings for the Worker.
	Observability param.Field[WorkerObservabilityParam] `json:"observability,required"`
	// Subdomain settings for the Worker.
	Subdomain param.Field[WorkerSubdomainParam] `json:"subdomain,required"`
	// Tags associated with the Worker.
	Tags param.Field[[]string] `json:"tags,required"`
	// Other Workers that should consume logs from the Worker.
	TailConsumers param.Field[[]WorkerTailConsumerParam] `json:"tail_consumers,required"`
}

func (WorkerParam) MarshalJSON

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

type WorkerReferences added in v6.2.0

type WorkerReferences struct {
	// Other Workers that reference the Worker as an outbound for a dispatch namespace.
	DispatchNamespaceOutbounds []WorkerReferencesDispatchNamespaceOutbound `json:"dispatch_namespace_outbounds,required"`
	// Custom domains connected to the Worker.
	Domains []WorkerReferencesDomain `json:"domains,required"`
	// Other Workers that reference Durable Object classes implemented by the Worker.
	DurableObjects []WorkerReferencesDurableObject `json:"durable_objects,required"`
	// Queues that send messages to the Worker.
	Queues []WorkerReferencesQueue `json:"queues,required"`
	// Other Workers that reference the Worker using
	// [service bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
	Workers []WorkerReferencesWorker `json:"workers,required"`
	JSON    workerReferencesJSON     `json:"-"`
}

Other resources that reference the Worker and depend on it existing.

func (*WorkerReferences) UnmarshalJSON added in v6.2.0

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

type WorkerReferencesDispatchNamespaceOutbound added in v6.2.0

type WorkerReferencesDispatchNamespaceOutbound struct {
	// ID of the dispatch namespace.
	NamespaceID string `json:"namespace_id,required"`
	// Name of the dispatch namespace.
	NamespaceName string `json:"namespace_name,required"`
	// ID of the Worker using the dispatch namespace.
	WorkerID string `json:"worker_id,required"`
	// Name of the Worker using the dispatch namespace.
	WorkerName string                                        `json:"worker_name,required"`
	JSON       workerReferencesDispatchNamespaceOutboundJSON `json:"-"`
}

func (*WorkerReferencesDispatchNamespaceOutbound) UnmarshalJSON added in v6.2.0

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

type WorkerReferencesDispatchNamespaceOutboundParam added in v6.2.0

type WorkerReferencesDispatchNamespaceOutboundParam struct {
	// ID of the dispatch namespace.
	NamespaceID param.Field[string] `json:"namespace_id,required"`
	// Name of the dispatch namespace.
	NamespaceName param.Field[string] `json:"namespace_name,required"`
	// ID of the Worker using the dispatch namespace.
	WorkerID param.Field[string] `json:"worker_id,required"`
	// Name of the Worker using the dispatch namespace.
	WorkerName param.Field[string] `json:"worker_name,required"`
}

func (WorkerReferencesDispatchNamespaceOutboundParam) MarshalJSON added in v6.2.0

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

type WorkerReferencesDomain added in v6.2.0

type WorkerReferencesDomain struct {
	// ID of the custom domain.
	ID string `json:"id,required"`
	// ID of the TLS certificate issued for the custom domain.
	CertificateID string `json:"certificate_id,required"`
	// Full hostname of the custom domain, including the zone name.
	Hostname string `json:"hostname,required"`
	// ID of the zone.
	ZoneID string `json:"zone_id,required"`
	// Name of the zone.
	ZoneName string                     `json:"zone_name,required"`
	JSON     workerReferencesDomainJSON `json:"-"`
}

func (*WorkerReferencesDomain) UnmarshalJSON added in v6.2.0

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

type WorkerReferencesDomainParam added in v6.2.0

type WorkerReferencesDomainParam struct {
	// ID of the custom domain.
	ID param.Field[string] `json:"id,required"`
	// ID of the TLS certificate issued for the custom domain.
	CertificateID param.Field[string] `json:"certificate_id,required"`
	// Full hostname of the custom domain, including the zone name.
	Hostname param.Field[string] `json:"hostname,required"`
	// ID of the zone.
	ZoneID param.Field[string] `json:"zone_id,required"`
	// Name of the zone.
	ZoneName param.Field[string] `json:"zone_name,required"`
}

func (WorkerReferencesDomainParam) MarshalJSON added in v6.2.0

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

type WorkerReferencesDurableObject added in v6.2.0

type WorkerReferencesDurableObject struct {
	// ID of the Durable Object namespace being used.
	NamespaceID string `json:"namespace_id,required"`
	// Name of the Durable Object namespace being used.
	NamespaceName string `json:"namespace_name,required"`
	// ID of the Worker using the Durable Object implementation.
	WorkerID string `json:"worker_id,required"`
	// Name of the Worker using the Durable Object implementation.
	WorkerName string                            `json:"worker_name,required"`
	JSON       workerReferencesDurableObjectJSON `json:"-"`
}

func (*WorkerReferencesDurableObject) UnmarshalJSON added in v6.2.0

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

type WorkerReferencesDurableObjectParam added in v6.2.0

type WorkerReferencesDurableObjectParam struct {
	// ID of the Durable Object namespace being used.
	NamespaceID param.Field[string] `json:"namespace_id,required"`
	// Name of the Durable Object namespace being used.
	NamespaceName param.Field[string] `json:"namespace_name,required"`
	// ID of the Worker using the Durable Object implementation.
	WorkerID param.Field[string] `json:"worker_id,required"`
	// Name of the Worker using the Durable Object implementation.
	WorkerName param.Field[string] `json:"worker_name,required"`
}

func (WorkerReferencesDurableObjectParam) MarshalJSON added in v6.2.0

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

type WorkerReferencesParam added in v6.2.0

type WorkerReferencesParam struct {
	// Other Workers that reference the Worker as an outbound for a dispatch namespace.
	DispatchNamespaceOutbounds param.Field[[]WorkerReferencesDispatchNamespaceOutboundParam] `json:"dispatch_namespace_outbounds,required"`
	// Custom domains connected to the Worker.
	Domains param.Field[[]WorkerReferencesDomainParam] `json:"domains,required"`
	// Other Workers that reference Durable Object classes implemented by the Worker.
	DurableObjects param.Field[[]WorkerReferencesDurableObjectParam] `json:"durable_objects,required"`
	// Queues that send messages to the Worker.
	Queues param.Field[[]WorkerReferencesQueueParam] `json:"queues,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,required"`
}

Other resources that reference the Worker and depend on it existing.

func (WorkerReferencesParam) MarshalJSON added in v6.2.0

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

type WorkerReferencesQueue added in v6.2.0

type WorkerReferencesQueue struct {
	// ID of the queue consumer configuration.
	QueueConsumerID string `json:"queue_consumer_id,required"`
	// ID of the queue.
	QueueID string `json:"queue_id,required"`
	// Name of the queue.
	QueueName string                    `json:"queue_name,required"`
	JSON      workerReferencesQueueJSON `json:"-"`
}

func (*WorkerReferencesQueue) UnmarshalJSON added in v6.2.0

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

type WorkerReferencesQueueParam added in v6.2.0

type WorkerReferencesQueueParam struct {
	// ID of the queue consumer configuration.
	QueueConsumerID param.Field[string] `json:"queue_consumer_id,required"`
	// ID of the queue.
	QueueID param.Field[string] `json:"queue_id,required"`
	// Name of the queue.
	QueueName param.Field[string] `json:"queue_name,required"`
}

func (WorkerReferencesQueueParam) MarshalJSON added in v6.2.0

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

type WorkerReferencesWorker added in v6.2.0

type WorkerReferencesWorker struct {
	// ID of the referencing Worker.
	ID string `json:"id,required"`
	// Name of the referencing Worker.
	Name string                     `json:"name,required"`
	JSON workerReferencesWorkerJSON `json:"-"`
}

func (*WorkerReferencesWorker) UnmarshalJSON added in v6.2.0

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

type WorkerReferencesWorkerParam added in v6.2.0

type WorkerReferencesWorkerParam struct {
	// ID of the referencing Worker.
	ID param.Field[string] `json:"id,required"`
	// Name of the referencing Worker.
	Name param.Field[string] `json:"name,required"`
}

func (WorkerReferencesWorkerParam) MarshalJSON added in v6.2.0

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,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,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