workers_for_platforms

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 20 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 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 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 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 AuditLog

type AuditLog = shared.AuditLog

This is an alias to an internal type.

type AuditLogAction

type AuditLogAction = shared.AuditLogAction

This is an alias to an internal type.

type AuditLogActor

type AuditLogActor = shared.AuditLogActor

This is an alias to an internal type.

type AuditLogActorType

type AuditLogActorType = shared.AuditLogActorType

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

This is an alias to an internal type.

type AuditLogOwner

type AuditLogOwner = shared.AuditLogOwner

This is an alias to an internal type.

type AuditLogResource

type AuditLogResource = shared.AuditLogResource

This is an alias to an internal type.

type CertificateCA

type CertificateCA = shared.CertificateCA

The Certificate Authority that will issue the certificate

This is an alias to an internal type.

type CertificateRequestType

type CertificateRequestType = shared.CertificateRequestType

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

This is an alias to an internal type.

type CloudflareTunnel

type CloudflareTunnel = shared.CloudflareTunnel

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

This is an alias to an internal type.

type 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 DispatchNamespaceDeleteParams

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

type DispatchNamespaceDeleteResponse

type DispatchNamespaceDeleteResponse = interface{}

type DispatchNamespaceDeleteResponseEnvelope

type DispatchNamespaceDeleteResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceDeleteResponseEnvelopeSuccess `json:"success,required"`
	Result  DispatchNamespaceDeleteResponse                `json:"result,nullable"`
	JSON    dispatchNamespaceDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceDeleteResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceDeleteResponseEnvelopeSuccess

type DispatchNamespaceDeleteResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceDeleteResponseEnvelopeSuccessTrue DispatchNamespaceDeleteResponseEnvelopeSuccess = true
)

func (DispatchNamespaceDeleteResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceGetParams

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

type DispatchNamespaceGetResponse

type DispatchNamespaceGetResponse struct {
	// Identifier
	CreatedBy string `json:"created_by"`
	// When the script was created.
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// Identifier
	ModifiedBy string `json:"modified_by"`
	// When the script was last modified.
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// API Resource UUID tag.
	NamespaceID string `json:"namespace_id"`
	// Name of the Workers for Platforms dispatch namespace.
	NamespaceName string `json:"namespace_name"`
	// The current number of scripts in this Dispatch Namespace
	ScriptCount int64                            `json:"script_count"`
	JSON        dispatchNamespaceGetResponseJSON `json:"-"`
}

func (*DispatchNamespaceGetResponse) UnmarshalJSON

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

type DispatchNamespaceGetResponseEnvelope

type DispatchNamespaceGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceGetResponseEnvelopeSuccess `json:"success,required"`
	Result  DispatchNamespaceGetResponse                `json:"result"`
	JSON    dispatchNamespaceGetResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceGetResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceGetResponseEnvelopeSuccess

type DispatchNamespaceGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceGetResponseEnvelopeSuccessTrue DispatchNamespaceGetResponseEnvelopeSuccess = true
)

func (DispatchNamespaceGetResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceListParams

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

type DispatchNamespaceListResponse

type DispatchNamespaceListResponse struct {
	// Identifier
	CreatedBy string `json:"created_by"`
	// When the script was created.
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// Identifier
	ModifiedBy string `json:"modified_by"`
	// When the script was last modified.
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// API Resource UUID tag.
	NamespaceID string `json:"namespace_id"`
	// Name of the Workers for Platforms dispatch namespace.
	NamespaceName string `json:"namespace_name"`
	// The current number of scripts in this Dispatch Namespace
	ScriptCount int64                             `json:"script_count"`
	JSON        dispatchNamespaceListResponseJSON `json:"-"`
}

func (*DispatchNamespaceListResponse) UnmarshalJSON

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

type DispatchNamespaceNewParams

type DispatchNamespaceNewParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// The name of the dispatch namespace
	Name param.Field[string] `json:"name"`
}

func (DispatchNamespaceNewParams) MarshalJSON

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

type DispatchNamespaceNewResponse

type DispatchNamespaceNewResponse struct {
	// Identifier
	CreatedBy string `json:"created_by"`
	// When the script was created.
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// Identifier
	ModifiedBy string `json:"modified_by"`
	// When the script was last modified.
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// API Resource UUID tag.
	NamespaceID string `json:"namespace_id"`
	// Name of the Workers for Platforms dispatch namespace.
	NamespaceName string `json:"namespace_name"`
	// The current number of scripts in this Dispatch Namespace
	ScriptCount int64                            `json:"script_count"`
	JSON        dispatchNamespaceNewResponseJSON `json:"-"`
}

func (*DispatchNamespaceNewResponse) UnmarshalJSON

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

type DispatchNamespaceNewResponseEnvelope

type DispatchNamespaceNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceNewResponseEnvelopeSuccess `json:"success,required"`
	Result  DispatchNamespaceNewResponse                `json:"result"`
	JSON    dispatchNamespaceNewResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceNewResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceNewResponseEnvelopeSuccess

type DispatchNamespaceNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceNewResponseEnvelopeSuccessTrue DispatchNamespaceNewResponseEnvelopeSuccess = true
)

func (DispatchNamespaceNewResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptAssetUploadNewParams

type DispatchNamespaceScriptAssetUploadNewParams 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]DispatchNamespaceScriptAssetUploadNewParamsManifest] `json:"manifest"`
}

func (DispatchNamespaceScriptAssetUploadNewParams) MarshalJSON

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

type DispatchNamespaceScriptAssetUploadNewParamsManifest

type DispatchNamespaceScriptAssetUploadNewParamsManifest struct {
	// The hash of the file.
	Hash param.Field[string] `json:"hash"`
	// The size of the file in bytes.
	Size param.Field[int64] `json:"size"`
}

func (DispatchNamespaceScriptAssetUploadNewParamsManifest) MarshalJSON

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

type DispatchNamespaceScriptAssetUploadNewResponse

type DispatchNamespaceScriptAssetUploadNewResponse 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 dispatchNamespaceScriptAssetUploadNewResponseJSON `json:"-"`
}

func (*DispatchNamespaceScriptAssetUploadNewResponse) UnmarshalJSON

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

type DispatchNamespaceScriptAssetUploadNewResponseEnvelope

type DispatchNamespaceScriptAssetUploadNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess `json:"success,required"`
	Result  DispatchNamespaceScriptAssetUploadNewResponse                `json:"result"`
	JSON    dispatchNamespaceScriptAssetUploadNewResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceScriptAssetUploadNewResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess

type DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccessTrue DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptAssetUploadService

type DispatchNamespaceScriptAssetUploadService struct {
	Options []option.RequestOption
}

DispatchNamespaceScriptAssetUploadService 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 NewDispatchNamespaceScriptAssetUploadService method instead.

func NewDispatchNamespaceScriptAssetUploadService

func NewDispatchNamespaceScriptAssetUploadService(opts ...option.RequestOption) (r *DispatchNamespaceScriptAssetUploadService)

NewDispatchNamespaceScriptAssetUploadService 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 (*DispatchNamespaceScriptAssetUploadService) 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 DispatchNamespaceScriptBindingGetParams

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

type DispatchNamespaceScriptBindingGetResponse

type DispatchNamespaceScriptBindingGetResponse struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type string `json:"type,required"`
	// Identifier of the D1 database to bind to.
	ID string `json:"id"`
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// The dataset name to bind to.
	Dataset string `json:"dataset"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name"`
	// JSON data to use.
	Json string `json:"json"`
	// Namespace to bind to.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// This field can have the runtime type of
	// [DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound].
	Outbound interface{} `json:"outbound"`
	// 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 Worker to bind to.
	Service string `json:"service"`
	// The text value to use.
	Text string                                        `json:"text"`
	JSON dispatchNamespaceScriptBindingGetResponseJSON `json:"-"`
	// contains filtered or unexported fields
}

A binding to allow the Worker to communicate with resources

func (DispatchNamespaceScriptBindingGetResponse) AsUnion

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

Possible runtime types of the union are workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata.

func (*DispatchNamespaceScriptBindingGetResponse) UnmarshalJSON

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

type DispatchNamespaceScriptBindingGetResponseEnvelope

type DispatchNamespaceScriptBindingGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess `json:"success,required"`
	// 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.
	Result []DispatchNamespaceScriptBindingGetResponse           `json:"result"`
	JSON   dispatchNamespaceScriptBindingGetResponseEnvelopeJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess

type DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptBindingGetResponseEnvelopeSuccessTrue DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptBindingGetResponseUnion

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

A binding to allow the Worker to communicate with resources

Union satisfied by workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize or workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata.

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI

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

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAITypeAI DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType = "ai"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine struct {
	// The dataset name 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type        string                                                             `json:"type,required"`
	ExtraFields map[string]interface{}                                             `json:"-,extras"`
	JSON        dispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnyJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets

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

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsTypeAssets DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType = "assets"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering

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

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingTypeBrowserRendering DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingType = "browser_rendering"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1JSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1TypeD1 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type = "d1"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Namespace to bind to.
	Namespace string `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceType `json:"type,required"`
	// Outbound worker.
	Outbound DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"`
	JSON     dispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceJSON     `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params []string `json:"params"`
	// Outbound worker.
	Worker DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   dispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorker

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Environment of the outbound worker.
	Environment string `json:"environment"`
	// Name of the outbound worker.
	Service string                                                                                         `json:"service"`
	JSON    dispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"`
}

Outbound worker.

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceTypeDispatchNamespace DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo struct {
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType `json:"type,required"`
	// 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       dispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoTypeDurableObjectNamespace DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType = "durable_object_namespace"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveTypeHyperdrive DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonTypeJson DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType = "json"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceTypeKVNamespace DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindMtlscertJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTTypeMTLSCertificate DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType = "mtls_certificate"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextTypePlainText DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType = "plain_text"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueTypeQueue DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType = "queue"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2JSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2TypeR2Bucket DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type = "r2_bucket"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The secret value to use.
	Text string `json:"text,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretTypeSecretText DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType = "secret_text"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService struct {
	// Optional environment if the Worker utilizes one.
	Environment string `json:"environment,required"`
	// 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceTypeService DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType = "service"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of Tail Worker to bind to.
	Service string `json:"service,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerTypeTailConsumer DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType = "tail_consumer"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize 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 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType `json:"type,required"`
	JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeJSON `json:"-"`
}

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeTypeVectorize DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType = "vectorize"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType) IsKnown

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata

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

func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata) UnmarshalJSON

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataType

type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataTypeVersionMetadata DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataType) IsKnown

type DispatchNamespaceScriptBindingService

type DispatchNamespaceScriptBindingService struct {
	Options []option.RequestOption
}

DispatchNamespaceScriptBindingService 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 NewDispatchNamespaceScriptBindingService method instead.

func NewDispatchNamespaceScriptBindingService

func NewDispatchNamespaceScriptBindingService(opts ...option.RequestOption) (r *DispatchNamespaceScriptBindingService)

NewDispatchNamespaceScriptBindingService 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 (*DispatchNamespaceScriptBindingService) Get

Fetch script bindings from a script uploaded to a Workers for Platforms namespace.

type DispatchNamespaceScriptContentGetParams

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

type DispatchNamespaceScriptContentService

type DispatchNamespaceScriptContentService struct {
	Options []option.RequestOption
}

DispatchNamespaceScriptContentService 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 NewDispatchNamespaceScriptContentService method instead.

func NewDispatchNamespaceScriptContentService

func NewDispatchNamespaceScriptContentService(opts ...option.RequestOption) (r *DispatchNamespaceScriptContentService)

NewDispatchNamespaceScriptContentService 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 (*DispatchNamespaceScriptContentService) Get

Fetch script content from a script uploaded to a Workers for Platforms namespace.

func (*DispatchNamespaceScriptContentService) Update

Put script content for a script uploaded to a Workers for Platforms namespace.

type DispatchNamespaceScriptContentUpdateParams

type DispatchNamespaceScriptContentUpdateParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// JSON encoded metadata about the uploaded parts and Worker configuration.
	Metadata               param.Field[workers.WorkerMetadataParam] `json:"metadata,required"`
	CfWorkerBodyPart       param.Field[string]                      `header:"CF-WORKER-BODY-PART"`
	CfWorkerMainModulePart param.Field[string]                      `header:"CF-WORKER-MAIN-MODULE-PART"`
}

func (DispatchNamespaceScriptContentUpdateParams) MarshalMultipart

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

type DispatchNamespaceScriptContentUpdateResponseEnvelope

type DispatchNamespaceScriptContentUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess `json:"success,required"`
	Result  workers.Script                                              `json:"result"`
	JSON    dispatchNamespaceScriptContentUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceScriptContentUpdateResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess

type DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccessTrue DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptDeleteParams

type DispatchNamespaceScriptDeleteParams 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 (DispatchNamespaceScriptDeleteParams) URLQuery

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

type DispatchNamespaceScriptGetParams

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

type DispatchNamespaceScriptGetResponseEnvelope

type DispatchNamespaceScriptGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptGetResponseEnvelopeSuccess `json:"success,required"`
	// Details about a worker uploaded to a Workers for Platforms namespace.
	Result Script                                         `json:"result"`
	JSON   dispatchNamespaceScriptGetResponseEnvelopeJSON `json:"-"`
}

func (*DispatchNamespaceScriptGetResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptGetResponseEnvelopeSuccess

type DispatchNamespaceScriptGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptGetResponseEnvelopeSuccessTrue DispatchNamespaceScriptGetResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptGetResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptSecretGetParams

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

type DispatchNamespaceScriptSecretGetResponse

type DispatchNamespaceScriptSecretGetResponse struct {
	// The name of this secret, this is what will be used to access it inside the
	// Worker.
	Name string `json:"name"`
	// The type of secret.
	Type DispatchNamespaceScriptSecretGetResponseType `json:"type"`
	JSON dispatchNamespaceScriptSecretGetResponseJSON `json:"-"`
}

func (*DispatchNamespaceScriptSecretGetResponse) UnmarshalJSON

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

type DispatchNamespaceScriptSecretGetResponseEnvelope

type DispatchNamespaceScriptSecretGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess `json:"success,required"`
	Result  DispatchNamespaceScriptSecretGetResponse                `json:"result"`
	JSON    dispatchNamespaceScriptSecretGetResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceScriptSecretGetResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess

type DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptSecretGetResponseEnvelopeSuccessTrue DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptSecretGetResponseType

type DispatchNamespaceScriptSecretGetResponseType string

The type of secret.

const (
	DispatchNamespaceScriptSecretGetResponseTypeSecretText DispatchNamespaceScriptSecretGetResponseType = "secret_text"
)

func (DispatchNamespaceScriptSecretGetResponseType) IsKnown

type DispatchNamespaceScriptSecretListParams

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

type DispatchNamespaceScriptSecretListResponse

type DispatchNamespaceScriptSecretListResponse struct {
	// The name of this secret, this is what will be used to access it inside the
	// Worker.
	Name string `json:"name"`
	// The type of secret.
	Type DispatchNamespaceScriptSecretListResponseType `json:"type"`
	JSON dispatchNamespaceScriptSecretListResponseJSON `json:"-"`
}

func (*DispatchNamespaceScriptSecretListResponse) UnmarshalJSON

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

type DispatchNamespaceScriptSecretListResponseType

type DispatchNamespaceScriptSecretListResponseType string

The type of secret.

const (
	DispatchNamespaceScriptSecretListResponseTypeSecretText DispatchNamespaceScriptSecretListResponseType = "secret_text"
)

func (DispatchNamespaceScriptSecretListResponseType) IsKnown

type DispatchNamespaceScriptSecretService

type DispatchNamespaceScriptSecretService struct {
	Options []option.RequestOption
}

DispatchNamespaceScriptSecretService 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 NewDispatchNamespaceScriptSecretService method instead.

func NewDispatchNamespaceScriptSecretService

func NewDispatchNamespaceScriptSecretService(opts ...option.RequestOption) (r *DispatchNamespaceScriptSecretService)

NewDispatchNamespaceScriptSecretService 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 (*DispatchNamespaceScriptSecretService) Get

Get secret from a script uploaded to a Workers for Platforms namespace.

func (*DispatchNamespaceScriptSecretService) List

List secrets from a script uploaded to a Workers for Platforms namespace.

func (*DispatchNamespaceScriptSecretService) ListAutoPaging

List secrets from a script uploaded to a Workers for Platforms namespace.

func (*DispatchNamespaceScriptSecretService) Update

Put secrets to a script uploaded to a Workers for Platforms namespace.

type DispatchNamespaceScriptSecretUpdateParams

type DispatchNamespaceScriptSecretUpdateParams struct {
	// Identifier
	AccountID          param.Field[string]     `path:"account_id,required"`
	WorkersSecretModel WorkersSecretModelParam `json:"workers_secret_model,required"`
}

func (DispatchNamespaceScriptSecretUpdateParams) MarshalJSON

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

type DispatchNamespaceScriptSecretUpdateResponse

type DispatchNamespaceScriptSecretUpdateResponse struct {
	// The name of this secret, this is what will be used to access it inside the
	// Worker.
	Name string `json:"name"`
	// The type of secret.
	Type DispatchNamespaceScriptSecretUpdateResponseType `json:"type"`
	JSON dispatchNamespaceScriptSecretUpdateResponseJSON `json:"-"`
}

func (*DispatchNamespaceScriptSecretUpdateResponse) UnmarshalJSON

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

type DispatchNamespaceScriptSecretUpdateResponseEnvelope

type DispatchNamespaceScriptSecretUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess `json:"success,required"`
	Result  DispatchNamespaceScriptSecretUpdateResponse                `json:"result"`
	JSON    dispatchNamespaceScriptSecretUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceScriptSecretUpdateResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess

type DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccessTrue DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptSecretUpdateResponseType

type DispatchNamespaceScriptSecretUpdateResponseType string

The type of secret.

const (
	DispatchNamespaceScriptSecretUpdateResponseTypeSecretText DispatchNamespaceScriptSecretUpdateResponseType = "secret_text"
)

func (DispatchNamespaceScriptSecretUpdateResponseType) IsKnown

type DispatchNamespaceScriptService

DispatchNamespaceScriptService 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 NewDispatchNamespaceScriptService method instead.

func NewDispatchNamespaceScriptService

func NewDispatchNamespaceScriptService(opts ...option.RequestOption) (r *DispatchNamespaceScriptService)

NewDispatchNamespaceScriptService 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 (*DispatchNamespaceScriptService) Delete

func (r *DispatchNamespaceScriptService) Delete(ctx context.Context, dispatchNamespace string, scriptName string, params DispatchNamespaceScriptDeleteParams, opts ...option.RequestOption) (err error)

Delete a worker from a Workers for Platforms namespace. This call has no response body on a successful delete.

func (*DispatchNamespaceScriptService) Get

func (r *DispatchNamespaceScriptService) Get(ctx context.Context, dispatchNamespace string, scriptName string, query DispatchNamespaceScriptGetParams, opts ...option.RequestOption) (res *Script, err error)

Fetch information about a script uploaded to a Workers for Platforms namespace.

func (*DispatchNamespaceScriptService) Update

Upload a worker module to a Workers for Platforms namespace. You can find more about the multipart metadata on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/.

type DispatchNamespaceScriptSettingEditParams

type DispatchNamespaceScriptSettingEditParams struct {
	// Identifier
	AccountID param.Field[string]                                           `path:"account_id,required"`
	Settings  param.Field[DispatchNamespaceScriptSettingEditParamsSettings] `json:"settings"`
}

func (DispatchNamespaceScriptSettingEditParams) MarshalMultipart

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

type DispatchNamespaceScriptSettingEditParamsSettings

type DispatchNamespaceScriptSettingEditParamsSettings 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[[]DispatchNamespaceScriptSettingEditParamsSettingsBindingUnion] `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[DispatchNamespaceScriptSettingEditParamsSettingsLimits] `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[DispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion] `json:"migrations"`
	// Observability settings for the Worker.
	Observability param.Field[DispatchNamespaceScriptSettingEditParamsSettingsObservability] `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Placement param.Field[DispatchNamespaceScriptSettingEditParamsSettingsPlacement] `json:"placement"`
	// Tags to help you manage your Workers
	Tags param.Field[[]string] `json:"tags"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers param.Field[[]workers.ConsumerScriptParam] `json:"tail_consumers"`
	// Usage model for the Worker invocations.
	UsageModel param.Field[DispatchNamespaceScriptSettingEditParamsSettingsUsageModel] `json:"usage_model"`
}

func (DispatchNamespaceScriptSettingEditParamsSettings) MarshalJSON

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

type DispatchNamespaceScriptSettingEditParamsSettingsBinding

type DispatchNamespaceScriptSettingEditParamsSettingsBinding 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[string] `json:"type,required"`
	// Identifier of the D1 database to bind to.
	ID param.Field[string] `json:"id"`
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID param.Field[string] `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// The dataset name to bind to.
	Dataset param.Field[string] `json:"dataset"`
	// The environment of the script_name to bind to.
	Environment param.Field[string] `json:"environment"`
	// 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"`
	// Namespace to bind to.
	Namespace param.Field[string] `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID param.Field[string]      `json:"namespace_id"`
	Outbound    param.Field[interface{}] `json:"outbound"`
	// 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 Worker to bind to.
	Service param.Field[string] `json:"service"`
	// The text value to use.
	Text param.Field[string] `json:"text"`
}

A binding to allow the Worker to communicate with resources

func (DispatchNamespaceScriptSettingEditParamsSettingsBinding) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingUnion

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

A binding to allow the Worker to communicate with resources

Satisfied by workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorize, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata, DispatchNamespaceScriptSettingEditParamsSettingsBinding.

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAI

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAI 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAIType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAI) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAIType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAITypeAI DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAIType = "ai"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAIType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine struct {
	// The dataset name 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAny

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAny 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[string]    `json:"type,required"`
	ExtraFields map[string]interface{} `json:"-,extras"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAny) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssets

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssets 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssets) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsTypeAssets DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType = "assets"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRendering

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRendering 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRendering) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingTypeBrowserRendering DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingType = "browser_rendering"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1Type] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1Type

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1TypeD1 DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1Type = "d1"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1Type) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// Namespace to bind to.
	Namespace param.Field[string] `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType] `json:"type,required"`
	// Outbound worker.
	Outbound param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound] `json:"outbound"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker] `json:"worker"`
}

Outbound worker.

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker 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 (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo struct {
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoType] `json:"type,required"`
	// 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 (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoTypeDurableObjectNamespace DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoType = "durable_object_namespace"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveTypeHyperdrive DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType = "json"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceTypeKVNamespace DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTTypeMTLSCertificate DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTType = "mtls_certificate"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextTypePlainText DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueue

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueue 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueue) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueTypeQueue DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueType = "queue"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2Type] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2Type

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2Type string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2TypeR2Bucket DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2Type = "r2_bucket"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2Type) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecret

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecret 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecret) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretTypeSecretText DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretType = "secret_text"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindService

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindService struct {
	// Optional environment if the Worker utilizes one.
	Environment param.Field[string] `json:"environment,required"`
	// 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindService) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceTypeService DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceType = "service"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumer

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumer struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// Name of Tail Worker to bind to.
	Service param.Field[string] `json:"service,required"`
	// The kind of resource that the binding provides.
	Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumer) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerTypeTailConsumer DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerType = "tail_consumer"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorize

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorize 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorize) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeTypeVectorize DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata 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[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType] `json:"type,required"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType

type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsLimits

type DispatchNamespaceScriptSettingEditParamsSettingsLimits 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 (DispatchNamespaceScriptSettingEditParamsSettingsLimits) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsMigrations

type DispatchNamespaceScriptSettingEditParamsSettingsMigrations 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 (DispatchNamespaceScriptSettingEditParamsSettingsMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion

func (r DispatchNamespaceScriptSettingEditParamsSettingsMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion()

func (DispatchNamespaceScriptSettingEditParamsSettingsMigrations) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion

type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion interface {
	ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion()
}

Migrations to apply for Durable Objects associated with this Worker.

Satisfied by workers.SingleStepMigrationParam, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations, DispatchNamespaceScriptSettingEditParamsSettingsMigrations.

type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations

type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations 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[[]workers.MigrationStepParam] `json:"steps"`
}

func (DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion

func (r DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion()

func (DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsObservability

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

Observability settings for the Worker.

func (DispatchNamespaceScriptSettingEditParamsSettingsObservability) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsPlacement

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

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

func (DispatchNamespaceScriptSettingEditParamsSettingsPlacement) MarshalJSON

type DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode

type DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode string

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

const (
	DispatchNamespaceScriptSettingEditParamsSettingsPlacementModeSmart DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode = "smart"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode) IsKnown

type DispatchNamespaceScriptSettingEditParamsSettingsUsageModel

type DispatchNamespaceScriptSettingEditParamsSettingsUsageModel string

Usage model for the Worker invocations.

const (
	DispatchNamespaceScriptSettingEditParamsSettingsUsageModelStandard DispatchNamespaceScriptSettingEditParamsSettingsUsageModel = "standard"
)

func (DispatchNamespaceScriptSettingEditParamsSettingsUsageModel) IsKnown

type DispatchNamespaceScriptSettingEditResponse

type DispatchNamespaceScriptSettingEditResponse 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 []DispatchNamespaceScriptSettingEditResponseBinding `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 DispatchNamespaceScriptSettingEditResponseLimits `json:"limits"`
	// Whether Logpush is turned on for the Worker.
	Logpush bool `json:"logpush"`
	// Migrations to apply for Durable Objects associated with this Worker.
	Migrations DispatchNamespaceScriptSettingEditResponseMigrations `json:"migrations"`
	// Observability settings for the Worker.
	Observability DispatchNamespaceScriptSettingEditResponseObservability `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Placement DispatchNamespaceScriptSettingEditResponsePlacement `json:"placement"`
	// Tags to help you manage your Workers
	Tags []string `json:"tags"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []workers.ConsumerScript `json:"tail_consumers"`
	// Usage model for the Worker invocations.
	UsageModel DispatchNamespaceScriptSettingEditResponseUsageModel `json:"usage_model"`
	JSON       dispatchNamespaceScriptSettingEditResponseJSON       `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponse) UnmarshalJSON

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

type DispatchNamespaceScriptSettingEditResponseBinding

type DispatchNamespaceScriptSettingEditResponseBinding struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type string `json:"type,required"`
	// Identifier of the D1 database to bind to.
	ID string `json:"id"`
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// The dataset name to bind to.
	Dataset string `json:"dataset"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name"`
	// JSON data to use.
	Json string `json:"json"`
	// Namespace to bind to.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// This field can have the runtime type of
	// [DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound].
	Outbound interface{} `json:"outbound"`
	// 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 Worker to bind to.
	Service string `json:"service"`
	// The text value to use.
	Text string                                                `json:"text"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingJSON `json:"-"`
	// contains filtered or unexported fields
}

A binding to allow the Worker to communicate with resources

func (DispatchNamespaceScriptSettingEditResponseBinding) AsUnion

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

Possible runtime types of the union are workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata.

func (*DispatchNamespaceScriptSettingEditResponseBinding) UnmarshalJSON

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

type DispatchNamespaceScriptSettingEditResponseBindingsUnion

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

A binding to allow the Worker to communicate with resources

Union satisfied by workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize or workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata.

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI

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

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAITypeAI DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType = "ai"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine struct {
	// The dataset name 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type        string                                                                      `json:"type,required"`
	ExtraFields map[string]interface{}                                                      `json:"-,extras"`
	JSON        dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnyJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets

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

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsTypeAssets DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsType = "assets"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering

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

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingTypeBrowserRendering DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingType = "browser_rendering"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1JSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1TypeD1 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type = "d1"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Namespace to bind to.
	Namespace string `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType `json:"type,required"`
	// Outbound worker.
	Outbound DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"`
	JSON     dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceJSON     `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params []string `json:"params"`
	// Outbound worker.
	Worker DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Environment of the outbound worker.
	Environment string `json:"environment"`
	// Name of the outbound worker.
	Service string                                                                                                  `json:"service"`
	JSON    dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"`
}

Outbound worker.

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo struct {
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType `json:"type,required"`
	// 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       dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoTypeDurableObjectNamespace DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType = "durable_object_namespace"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveTypeHyperdrive DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType = "json"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceTypeKVNamespace DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMtlscertJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTTypeMTLSCertificate DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTType = "mtls_certificate"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextTypePlainText DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueTypeQueue DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueType = "queue"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2JSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2TypeR2Bucket DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type = "r2_bucket"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The secret value to use.
	Text string `json:"text,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretTypeSecretText DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretType = "secret_text"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService struct {
	// Optional environment if the Worker utilizes one.
	Environment string `json:"environment,required"`
	// 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceTypeService DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceType = "service"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of Tail Worker to bind to.
	Service string `json:"service,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerTypeTailConsumer DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerType = "tail_consumer"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize 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 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeTypeVectorize DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeType) IsKnown

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata

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

func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataType

type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataType) IsKnown

type DispatchNamespaceScriptSettingEditResponseEnvelope

type DispatchNamespaceScriptSettingEditResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess `json:"success,required"`
	Result  DispatchNamespaceScriptSettingEditResponse                `json:"result"`
	JSON    dispatchNamespaceScriptSettingEditResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceScriptSettingEditResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess

type DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptSettingEditResponseEnvelopeSuccessTrue DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptSettingEditResponseLimits

type DispatchNamespaceScriptSettingEditResponseLimits struct {
	// The amount of CPU time this Worker can use in milliseconds.
	CPUMs int64                                                `json:"cpu_ms"`
	JSON  dispatchNamespaceScriptSettingEditResponseLimitsJSON `json:"-"`
}

Limits to apply for this Worker.

func (*DispatchNamespaceScriptSettingEditResponseLimits) UnmarshalJSON

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

type DispatchNamespaceScriptSettingEditResponseMigrations

type DispatchNamespaceScriptSettingEditResponseMigrations 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"`
	// Tag to set as the latest migration tag.
	NewTag 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 string `json:"old_tag"`
	// This field can have the runtime type of
	// [[]workers.SingleStepMigrationRenamedClass].
	RenamedClasses interface{} `json:"renamed_classes"`
	// This field can have the runtime type of [[]workers.MigrationStep].
	Steps interface{} `json:"steps"`
	// This field can have the runtime type of
	// [[]workers.SingleStepMigrationTransferredClass].
	TransferredClasses interface{}                                              `json:"transferred_classes"`
	JSON               dispatchNamespaceScriptSettingEditResponseMigrationsJSON `json:"-"`
	// contains filtered or unexported fields
}

Migrations to apply for Durable Objects associated with this Worker.

func (DispatchNamespaceScriptSettingEditResponseMigrations) AsUnion

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

Possible runtime types of the union are workers.SingleStepMigration, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations.

func (*DispatchNamespaceScriptSettingEditResponseMigrations) UnmarshalJSON

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

type DispatchNamespaceScriptSettingEditResponseMigrationsUnion

type DispatchNamespaceScriptSettingEditResponseMigrationsUnion interface {
	ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditResponseMigrations()
}

Migrations to apply for Durable Objects associated with this Worker.

Union satisfied by workers.SingleStepMigration or workers_for_platforms.DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations.

type DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations

type DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations struct {
	// Tag to set as the latest migration tag.
	NewTag 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 string `json:"old_tag"`
	// Migrations to apply in order.
	Steps []workers.MigrationStep                                                               `json:"steps"`
	JSON  dispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrationsJSON `json:"-"`
}

func (DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditResponseMigrations

func (r DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditResponseMigrations()

func (*DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponseObservability

type DispatchNamespaceScriptSettingEditResponseObservability 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"`
	JSON             dispatchNamespaceScriptSettingEditResponseObservabilityJSON `json:"-"`
}

Observability settings for the Worker.

func (*DispatchNamespaceScriptSettingEditResponseObservability) UnmarshalJSON

type DispatchNamespaceScriptSettingEditResponsePlacement

type DispatchNamespaceScriptSettingEditResponsePlacement struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode DispatchNamespaceScriptSettingEditResponsePlacementMode `json:"mode"`
	JSON dispatchNamespaceScriptSettingEditResponsePlacementJSON `json:"-"`
}

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

func (*DispatchNamespaceScriptSettingEditResponsePlacement) UnmarshalJSON

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

type DispatchNamespaceScriptSettingEditResponsePlacementMode

type DispatchNamespaceScriptSettingEditResponsePlacementMode string

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

const (
	DispatchNamespaceScriptSettingEditResponsePlacementModeSmart DispatchNamespaceScriptSettingEditResponsePlacementMode = "smart"
)

func (DispatchNamespaceScriptSettingEditResponsePlacementMode) IsKnown

type DispatchNamespaceScriptSettingEditResponseUsageModel

type DispatchNamespaceScriptSettingEditResponseUsageModel string

Usage model for the Worker invocations.

const (
	DispatchNamespaceScriptSettingEditResponseUsageModelStandard DispatchNamespaceScriptSettingEditResponseUsageModel = "standard"
)

func (DispatchNamespaceScriptSettingEditResponseUsageModel) IsKnown

type DispatchNamespaceScriptSettingGetParams

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

type DispatchNamespaceScriptSettingGetResponse

type DispatchNamespaceScriptSettingGetResponse 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 []DispatchNamespaceScriptSettingGetResponseBinding `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 DispatchNamespaceScriptSettingGetResponseLimits `json:"limits"`
	// Whether Logpush is turned on for the Worker.
	Logpush bool `json:"logpush"`
	// Migrations to apply for Durable Objects associated with this Worker.
	Migrations DispatchNamespaceScriptSettingGetResponseMigrations `json:"migrations"`
	// Observability settings for the Worker.
	Observability DispatchNamespaceScriptSettingGetResponseObservability `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Placement DispatchNamespaceScriptSettingGetResponsePlacement `json:"placement"`
	// Tags to help you manage your Workers
	Tags []string `json:"tags"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []workers.ConsumerScript `json:"tail_consumers"`
	// Usage model for the Worker invocations.
	UsageModel DispatchNamespaceScriptSettingGetResponseUsageModel `json:"usage_model"`
	JSON       dispatchNamespaceScriptSettingGetResponseJSON       `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponse) UnmarshalJSON

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

type DispatchNamespaceScriptSettingGetResponseBinding

type DispatchNamespaceScriptSettingGetResponseBinding struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type string `json:"type,required"`
	// Identifier of the D1 database to bind to.
	ID string `json:"id"`
	// R2 bucket to bind to.
	BucketName string `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID string `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name"`
	// The dataset name to bind to.
	Dataset string `json:"dataset"`
	// The environment of the script_name to bind to.
	Environment string `json:"environment"`
	// Name of the Vectorize index to bind to.
	IndexName string `json:"index_name"`
	// JSON data to use.
	Json string `json:"json"`
	// Namespace to bind to.
	Namespace string `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID string `json:"namespace_id"`
	// This field can have the runtime type of
	// [DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound].
	Outbound interface{} `json:"outbound"`
	// 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 Worker to bind to.
	Service string `json:"service"`
	// The text value to use.
	Text string                                               `json:"text"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingJSON `json:"-"`
	// contains filtered or unexported fields
}

A binding to allow the Worker to communicate with resources

func (DispatchNamespaceScriptSettingGetResponseBinding) AsUnion

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

Possible runtime types of the union are workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata.

func (*DispatchNamespaceScriptSettingGetResponseBinding) UnmarshalJSON

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

type DispatchNamespaceScriptSettingGetResponseBindingsUnion

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

A binding to allow the Worker to communicate with resources

Union satisfied by workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize or workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata.

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI

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

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAITypeAI DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType = "ai"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine struct {
	// The dataset name 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type        string                                                                     `json:"type,required"`
	ExtraFields map[string]interface{}                                                     `json:"-,extras"`
	JSON        dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnyJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets

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

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsTypeAssets DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsType = "assets"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering

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

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingTypeBrowserRendering DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingType = "browser_rendering"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1JSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1TypeD1 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type = "d1"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Namespace to bind to.
	Namespace string `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType `json:"type,required"`
	// Outbound worker.
	Outbound DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"`
	JSON     dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceJSON     `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound struct {
	// Pass information from the Dispatch Worker to the Outbound Worker through the
	// parameters.
	Params []string `json:"params"`
	// Outbound worker.
	Worker DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"`
	JSON   dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundJSON   `json:"-"`
}

Outbound worker.

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct {
	// Environment of the outbound worker.
	Environment string `json:"environment"`
	// Name of the outbound worker.
	Service string                                                                                                 `json:"service"`
	JSON    dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"`
}

Outbound worker.

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo struct {
	// The exported class name of the Durable Object.
	ClassName string `json:"class_name,required"`
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType `json:"type,required"`
	// 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       dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoTypeDurableObjectNamespace DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType = "durable_object_namespace"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveTypeHyperdrive DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType = "json"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceTypeKVNamespace DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMtlscertJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTTypeMTLSCertificate DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTType = "mtls_certificate"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextTypePlainText DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueTypeQueue DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType = "queue"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2JSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2TypeR2Bucket DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type = "r2_bucket"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// The secret value to use.
	Text string `json:"text,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretTypeSecretText DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretType = "secret_text"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService struct {
	// Optional environment if the Worker utilizes one.
	Environment string `json:"environment,required"`
	// 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceTypeService DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceType = "service"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer struct {
	// A JavaScript variable name for the binding.
	Name string `json:"name,required"`
	// Name of Tail Worker to bind to.
	Service string `json:"service,required"`
	// The kind of resource that the binding provides.
	Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerTypeTailConsumer DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerType = "tail_consumer"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize 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 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeType `json:"type,required"`
	JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeJSON `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeTypeVectorize DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeType) IsKnown

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata

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

func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataType

type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataType) IsKnown

type DispatchNamespaceScriptSettingGetResponseEnvelope

type DispatchNamespaceScriptSettingGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess `json:"success,required"`
	Result  DispatchNamespaceScriptSettingGetResponse                `json:"result"`
	JSON    dispatchNamespaceScriptSettingGetResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceScriptSettingGetResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess

type DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptSettingGetResponseEnvelopeSuccessTrue DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptSettingGetResponseLimits

type DispatchNamespaceScriptSettingGetResponseLimits struct {
	// The amount of CPU time this Worker can use in milliseconds.
	CPUMs int64                                               `json:"cpu_ms"`
	JSON  dispatchNamespaceScriptSettingGetResponseLimitsJSON `json:"-"`
}

Limits to apply for this Worker.

func (*DispatchNamespaceScriptSettingGetResponseLimits) UnmarshalJSON

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

type DispatchNamespaceScriptSettingGetResponseMigrations

type DispatchNamespaceScriptSettingGetResponseMigrations 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"`
	// Tag to set as the latest migration tag.
	NewTag 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 string `json:"old_tag"`
	// This field can have the runtime type of
	// [[]workers.SingleStepMigrationRenamedClass].
	RenamedClasses interface{} `json:"renamed_classes"`
	// This field can have the runtime type of [[]workers.MigrationStep].
	Steps interface{} `json:"steps"`
	// This field can have the runtime type of
	// [[]workers.SingleStepMigrationTransferredClass].
	TransferredClasses interface{}                                             `json:"transferred_classes"`
	JSON               dispatchNamespaceScriptSettingGetResponseMigrationsJSON `json:"-"`
	// contains filtered or unexported fields
}

Migrations to apply for Durable Objects associated with this Worker.

func (DispatchNamespaceScriptSettingGetResponseMigrations) AsUnion

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

Possible runtime types of the union are workers.SingleStepMigration, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations.

func (*DispatchNamespaceScriptSettingGetResponseMigrations) UnmarshalJSON

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

type DispatchNamespaceScriptSettingGetResponseMigrationsUnion

type DispatchNamespaceScriptSettingGetResponseMigrationsUnion interface {
	ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingGetResponseMigrations()
}

Migrations to apply for Durable Objects associated with this Worker.

Union satisfied by workers.SingleStepMigration or workers_for_platforms.DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations.

type DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations

type DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations struct {
	// Tag to set as the latest migration tag.
	NewTag 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 string `json:"old_tag"`
	// Migrations to apply in order.
	Steps []workers.MigrationStep                                                              `json:"steps"`
	JSON  dispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrationsJSON `json:"-"`
}

func (DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingGetResponseMigrations

func (r DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingGetResponseMigrations()

func (*DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations) UnmarshalJSON

type DispatchNamespaceScriptSettingGetResponseObservability

type DispatchNamespaceScriptSettingGetResponseObservability 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"`
	JSON             dispatchNamespaceScriptSettingGetResponseObservabilityJSON `json:"-"`
}

Observability settings for the Worker.

func (*DispatchNamespaceScriptSettingGetResponseObservability) UnmarshalJSON

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

type DispatchNamespaceScriptSettingGetResponsePlacement

type DispatchNamespaceScriptSettingGetResponsePlacement struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode DispatchNamespaceScriptSettingGetResponsePlacementMode `json:"mode"`
	JSON dispatchNamespaceScriptSettingGetResponsePlacementJSON `json:"-"`
}

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

func (*DispatchNamespaceScriptSettingGetResponsePlacement) UnmarshalJSON

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

type DispatchNamespaceScriptSettingGetResponsePlacementMode

type DispatchNamespaceScriptSettingGetResponsePlacementMode string

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

const (
	DispatchNamespaceScriptSettingGetResponsePlacementModeSmart DispatchNamespaceScriptSettingGetResponsePlacementMode = "smart"
)

func (DispatchNamespaceScriptSettingGetResponsePlacementMode) IsKnown

type DispatchNamespaceScriptSettingGetResponseUsageModel

type DispatchNamespaceScriptSettingGetResponseUsageModel string

Usage model for the Worker invocations.

const (
	DispatchNamespaceScriptSettingGetResponseUsageModelStandard DispatchNamespaceScriptSettingGetResponseUsageModel = "standard"
)

func (DispatchNamespaceScriptSettingGetResponseUsageModel) IsKnown

type DispatchNamespaceScriptSettingService

type DispatchNamespaceScriptSettingService struct {
	Options []option.RequestOption
}

DispatchNamespaceScriptSettingService 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 NewDispatchNamespaceScriptSettingService method instead.

func NewDispatchNamespaceScriptSettingService

func NewDispatchNamespaceScriptSettingService(opts ...option.RequestOption) (r *DispatchNamespaceScriptSettingService)

NewDispatchNamespaceScriptSettingService 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 (*DispatchNamespaceScriptSettingService) Edit

Patch script metadata, such as bindings

func (*DispatchNamespaceScriptSettingService) Get

Get script settings from a script uploaded to a Workers for Platforms namespace.

type DispatchNamespaceScriptTagDeleteParams

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

type DispatchNamespaceScriptTagDeleteResponse

type DispatchNamespaceScriptTagDeleteResponse = interface{}

type DispatchNamespaceScriptTagDeleteResponseEnvelope

type DispatchNamespaceScriptTagDeleteResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess `json:"success,required"`
	Result  DispatchNamespaceScriptTagDeleteResponse                `json:"result,nullable"`
	JSON    dispatchNamespaceScriptTagDeleteResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceScriptTagDeleteResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess

type DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccessTrue DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptTagListParams

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

type DispatchNamespaceScriptTagService

type DispatchNamespaceScriptTagService struct {
	Options []option.RequestOption
}

DispatchNamespaceScriptTagService 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 NewDispatchNamespaceScriptTagService method instead.

func NewDispatchNamespaceScriptTagService

func NewDispatchNamespaceScriptTagService(opts ...option.RequestOption) (r *DispatchNamespaceScriptTagService)

NewDispatchNamespaceScriptTagService 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 (*DispatchNamespaceScriptTagService) Delete

Delete script tag for a script uploaded to a Workers for Platforms namespace.

func (*DispatchNamespaceScriptTagService) List

Fetch tags from a script uploaded to a Workers for Platforms namespace.

func (*DispatchNamespaceScriptTagService) ListAutoPaging

Fetch tags from a script uploaded to a Workers for Platforms namespace.

func (*DispatchNamespaceScriptTagService) Update

func (r *DispatchNamespaceScriptTagService) Update(ctx context.Context, dispatchNamespace string, scriptName string, params DispatchNamespaceScriptTagUpdateParams, opts ...option.RequestOption) (res *[]string, err error)

Put script tags for a script uploaded to a Workers for Platforms namespace.

type DispatchNamespaceScriptTagUpdateParams

type DispatchNamespaceScriptTagUpdateParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// Tags to help you manage your Workers
	Body []string `json:"body,required"`
}

func (DispatchNamespaceScriptTagUpdateParams) MarshalJSON

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

type DispatchNamespaceScriptTagUpdateResponseEnvelope

type DispatchNamespaceScriptTagUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess `json:"success,required"`
	Result  []string                                                `json:"result"`
	JSON    dispatchNamespaceScriptTagUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceScriptTagUpdateResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess

type DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccessTrue DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptUpdateParams

type DispatchNamespaceScriptUpdateParams struct {
	// Identifier
	AccountID param.Field[string] `path:"account_id,required"`
	// JSON encoded metadata about the uploaded parts and Worker configuration.
	Metadata param.Field[DispatchNamespaceScriptUpdateParamsMetadata] `json:"metadata,required"`
}

func (DispatchNamespaceScriptUpdateParams) MarshalJSON

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

type DispatchNamespaceScriptUpdateParamsMetadata

type DispatchNamespaceScriptUpdateParamsMetadata struct {
	// Configuration for assets within a Worker
	Assets param.Field[DispatchNamespaceScriptUpdateParamsMetadataAssets] `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[[]DispatchNamespaceScriptUpdateParamsMetadataBindingUnion] `json:"bindings"`
	// 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"`
	// 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"`
	// Whether Logpush is turned on for the Worker.
	Logpush param.Field[bool] `json:"logpush"`
	// 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"`
	// Migrations to apply for Durable Objects associated with this Worker.
	Migrations param.Field[DispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion] `json:"migrations"`
	// Observability settings for the Worker.
	Observability param.Field[DispatchNamespaceScriptUpdateParamsMetadataObservability] `json:"observability"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Placement param.Field[DispatchNamespaceScriptUpdateParamsMetadataPlacement] `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[[]workers.ConsumerScriptParam] `json:"tail_consumers"`
	// Usage model for the Worker invocations.
	UsageModel param.Field[DispatchNamespaceScriptUpdateParamsMetadataUsageModel] `json:"usage_model"`
}

JSON encoded metadata about the uploaded parts and Worker configuration.

func (DispatchNamespaceScriptUpdateParamsMetadata) MarshalJSON

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

type DispatchNamespaceScriptUpdateParamsMetadataAssets

type DispatchNamespaceScriptUpdateParamsMetadataAssets struct {
	// Configuration for assets within a Worker.
	Config param.Field[DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig] `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 (DispatchNamespaceScriptUpdateParamsMetadataAssets) MarshalJSON

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

type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig

type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig struct {
	// Determines the redirects and rewrites of requests for HTML content.
	HTMLHandling param.Field[DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling] `json:"html_handling"`
	// Determines the response when a request does not match a static asset, and there
	// is no Worker script.
	NotFoundHandling param.Field[DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling] `json:"not_found_handling"`
	// 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.
	ServeDirectly param.Field[bool] `json:"serve_directly"`
}

Configuration for assets within a Worker.

func (DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling

type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling string

Determines the redirects and rewrites of requests for HTML content.

const (
	DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandlingAutoTrailingSlash  DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "auto-trailing-slash"
	DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandlingForceTrailingSlash DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "force-trailing-slash"
	DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandlingDropTrailingSlash  DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "drop-trailing-slash"
	DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandlingNone               DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "none"
)

func (DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling

type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling string

Determines the response when a request does not match a static asset, and there is no Worker script.

const (
	DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandlingNone                  DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling = "none"
	DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling404Page               DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling = "404-page"
	DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandlingSinglePageApplication DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling = "single-page-application"
)

func (DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBinding

type DispatchNamespaceScriptUpdateParamsMetadataBinding 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[string] `json:"type,required"`
	// Identifier of the D1 database to bind to.
	ID param.Field[string] `json:"id"`
	// R2 bucket to bind to.
	BucketName param.Field[string] `json:"bucket_name"`
	// Identifier of the certificate to bind to.
	CertificateID param.Field[string] `json:"certificate_id"`
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_name"`
	// The dataset name to bind to.
	Dataset param.Field[string] `json:"dataset"`
	// The environment of the script_name to bind to.
	Environment param.Field[string] `json:"environment"`
	// 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"`
	// Namespace to bind to.
	Namespace param.Field[string] `json:"namespace"`
	// Namespace identifier tag.
	NamespaceID param.Field[string]      `json:"namespace_id"`
	Outbound    param.Field[interface{}] `json:"outbound"`
	// 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 Worker to bind to.
	Service param.Field[string] `json:"service"`
	// The text value to use.
	Text param.Field[string] `json:"text"`
}

A binding to allow the Worker to communicate with resources

func (DispatchNamespaceScriptUpdateParamsMetadataBinding) MarshalJSON

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

type DispatchNamespaceScriptUpdateParamsMetadataBindingUnion

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

A binding to allow the Worker to communicate with resources

Satisfied by workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata, DispatchNamespaceScriptUpdateParamsMetadataBinding.

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAI

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAI 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAI) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAITypeAI DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType = "ai"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine struct {
	// The dataset name 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAny

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAny 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[string]    `json:"type,required"`
	ExtraFields map[string]interface{} `json:"-,extras"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAny) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsTypeAssets DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType = "assets"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRendering

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRendering 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRendering) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingTypeBrowserRendering DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingType = "browser_rendering"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1TypeD1 DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type = "d1"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// Namespace to bind to.
	Namespace param.Field[string] `json:"namespace,required"`
	// The kind of resource that the binding provides.
	Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType] `json:"type,required"`
	// Outbound worker.
	Outbound param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound] `json:"outbound"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker] `json:"worker"`
}

Outbound worker.

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker 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 (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo struct {
	// The exported class name of the Durable Object.
	ClassName param.Field[string] `json:"class_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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType] `json:"type,required"`
	// 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 (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoTypeDurableObjectNamespace DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType = "durable_object_namespace"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveTypeHyperdrive DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType = "json"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceTypeKVNamespace DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTTypeMTLSCertificate DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTType = "mtls_certificate"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextTypePlainText DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType = "plain_text"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueTypeQueue DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType = "queue"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2TypeR2Bucket DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type = "r2_bucket"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecret

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecret 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecret) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretTypeSecretText DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretType = "secret_text"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindService

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindService struct {
	// Optional environment if the Worker utilizes one.
	Environment param.Field[string] `json:"environment,required"`
	// 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindService) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceTypeService DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType = "service"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumer

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumer struct {
	// A JavaScript variable name for the binding.
	Name param.Field[string] `json:"name,required"`
	// Name of Tail Worker to bind to.
	Service param.Field[string] `json:"service,required"`
	// The kind of resource that the binding provides.
	Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumer) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerTypeTailConsumer DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerType = "tail_consumer"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeTypeVectorize DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType = "vectorize"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata 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[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType] `json:"type,required"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType

type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType string

The kind of resource that the binding provides.

const (
	DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)

func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataMigrations

type DispatchNamespaceScriptUpdateParamsMetadataMigrations 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 (DispatchNamespaceScriptUpdateParamsMetadataMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion

func (r DispatchNamespaceScriptUpdateParamsMetadataMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion()

func (DispatchNamespaceScriptUpdateParamsMetadataMigrations) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion

type DispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion interface {
	ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion()
}

Migrations to apply for Durable Objects associated with this Worker.

Satisfied by workers.SingleStepMigrationParam, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations, DispatchNamespaceScriptUpdateParamsMetadataMigrations.

type DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations

type DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations 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[[]workers.MigrationStepParam] `json:"steps"`
}

func (DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion

func (r DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion()

func (DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataObservability

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

Observability settings for the Worker.

func (DispatchNamespaceScriptUpdateParamsMetadataObservability) MarshalJSON

type DispatchNamespaceScriptUpdateParamsMetadataPlacement

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

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

func (DispatchNamespaceScriptUpdateParamsMetadataPlacement) MarshalJSON

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

type DispatchNamespaceScriptUpdateParamsMetadataPlacementMode

type DispatchNamespaceScriptUpdateParamsMetadataPlacementMode string

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

const (
	DispatchNamespaceScriptUpdateParamsMetadataPlacementModeSmart DispatchNamespaceScriptUpdateParamsMetadataPlacementMode = "smart"
)

func (DispatchNamespaceScriptUpdateParamsMetadataPlacementMode) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus

type DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus string

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

const (
	DispatchNamespaceScriptUpdateParamsMetadataPlacementStatusSuccess                 DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus = "SUCCESS"
	DispatchNamespaceScriptUpdateParamsMetadataPlacementStatusUnsupportedApplication  DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus = "UNSUPPORTED_APPLICATION"
	DispatchNamespaceScriptUpdateParamsMetadataPlacementStatusInsufficientInvocations DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus = "INSUFFICIENT_INVOCATIONS"
)

func (DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus) IsKnown

type DispatchNamespaceScriptUpdateParamsMetadataUsageModel

type DispatchNamespaceScriptUpdateParamsMetadataUsageModel string

Usage model for the Worker invocations.

const (
	DispatchNamespaceScriptUpdateParamsMetadataUsageModelStandard DispatchNamespaceScriptUpdateParamsMetadataUsageModel = "standard"
)

func (DispatchNamespaceScriptUpdateParamsMetadataUsageModel) IsKnown

type DispatchNamespaceScriptUpdateResponse

type DispatchNamespaceScriptUpdateResponse struct {
	// The id of the script in the Workers system. Usually the script name.
	ID string `json:"id"`
	// 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"`
	// Whether a Worker contains assets.
	HasAssets bool `json:"has_assets"`
	// Whether a Worker contains modules.
	HasModules bool `json:"has_modules"`
	// Whether Logpush is turned on for the Worker.
	Logpush bool `json:"logpush"`
	// When the script was last modified.
	ModifiedOn time.Time `json:"modified_on" format:"date-time"`
	// Configuration for
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Placement DispatchNamespaceScriptUpdateResponsePlacement `json:"placement"`
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	PlacementMode DispatchNamespaceScriptUpdateResponsePlacementMode `json:"placement_mode"`
	// Status of
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	PlacementStatus DispatchNamespaceScriptUpdateResponsePlacementStatus `json:"placement_status"`
	StartupTimeMs   int64                                                `json:"startup_time_ms"`
	// List of Workers that will consume logs from the attached Worker.
	TailConsumers []workers.ConsumerScript `json:"tail_consumers"`
	// Usage model for the Worker invocations.
	UsageModel DispatchNamespaceScriptUpdateResponseUsageModel `json:"usage_model"`
	JSON       dispatchNamespaceScriptUpdateResponseJSON       `json:"-"`
}

func (*DispatchNamespaceScriptUpdateResponse) UnmarshalJSON

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

type DispatchNamespaceScriptUpdateResponseEnvelope

type DispatchNamespaceScriptUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success DispatchNamespaceScriptUpdateResponseEnvelopeSuccess `json:"success,required"`
	Result  DispatchNamespaceScriptUpdateResponse                `json:"result"`
	JSON    dispatchNamespaceScriptUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*DispatchNamespaceScriptUpdateResponseEnvelope) UnmarshalJSON

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

type DispatchNamespaceScriptUpdateResponseEnvelopeSuccess

type DispatchNamespaceScriptUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DispatchNamespaceScriptUpdateResponseEnvelopeSuccessTrue DispatchNamespaceScriptUpdateResponseEnvelopeSuccess = true
)

func (DispatchNamespaceScriptUpdateResponseEnvelopeSuccess) IsKnown

type DispatchNamespaceScriptUpdateResponsePlacement

type DispatchNamespaceScriptUpdateResponsePlacement struct {
	// Enables
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Mode DispatchNamespaceScriptUpdateResponsePlacementMode `json:"mode"`
	// Status of
	// [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
	Status DispatchNamespaceScriptUpdateResponsePlacementStatus `json:"status"`
	JSON   dispatchNamespaceScriptUpdateResponsePlacementJSON   `json:"-"`
}

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

func (*DispatchNamespaceScriptUpdateResponsePlacement) UnmarshalJSON

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

type DispatchNamespaceScriptUpdateResponsePlacementMode

type DispatchNamespaceScriptUpdateResponsePlacementMode string

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

const (
	DispatchNamespaceScriptUpdateResponsePlacementModeSmart DispatchNamespaceScriptUpdateResponsePlacementMode = "smart"
)

func (DispatchNamespaceScriptUpdateResponsePlacementMode) IsKnown

type DispatchNamespaceScriptUpdateResponsePlacementStatus

type DispatchNamespaceScriptUpdateResponsePlacementStatus string

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

const (
	DispatchNamespaceScriptUpdateResponsePlacementStatusSuccess                 DispatchNamespaceScriptUpdateResponsePlacementStatus = "SUCCESS"
	DispatchNamespaceScriptUpdateResponsePlacementStatusUnsupportedApplication  DispatchNamespaceScriptUpdateResponsePlacementStatus = "UNSUPPORTED_APPLICATION"
	DispatchNamespaceScriptUpdateResponsePlacementStatusInsufficientInvocations DispatchNamespaceScriptUpdateResponsePlacementStatus = "INSUFFICIENT_INVOCATIONS"
)

func (DispatchNamespaceScriptUpdateResponsePlacementStatus) IsKnown

type DispatchNamespaceScriptUpdateResponseUsageModel

type DispatchNamespaceScriptUpdateResponseUsageModel string

Usage model for the Worker invocations.

const (
	DispatchNamespaceScriptUpdateResponseUsageModelStandard DispatchNamespaceScriptUpdateResponseUsageModel = "standard"
)

func (DispatchNamespaceScriptUpdateResponseUsageModel) IsKnown

type DispatchNamespaceService

type DispatchNamespaceService struct {
	Options []option.RequestOption
	Scripts *DispatchNamespaceScriptService
}

DispatchNamespaceService 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 NewDispatchNamespaceService method instead.

func NewDispatchNamespaceService

func NewDispatchNamespaceService(opts ...option.RequestOption) (r *DispatchNamespaceService)

NewDispatchNamespaceService 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 (*DispatchNamespaceService) Delete

Delete a Workers for Platforms namespace.

func (*DispatchNamespaceService) Get

Get a Workers for Platforms namespace.

func (*DispatchNamespaceService) List

Fetch a list of Workers for Platforms namespaces.

func (*DispatchNamespaceService) ListAutoPaging

Fetch a list of Workers for Platforms namespaces.

func (*DispatchNamespaceService) New

Create a new Workers for Platforms namespace.

type DispatchService

type DispatchService struct {
	Options    []option.RequestOption
	Namespaces *DispatchNamespaceService
}

DispatchService 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 NewDispatchService method instead.

func NewDispatchService

func NewDispatchService(opts ...option.RequestOption) (r *DispatchService)

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

type Error

type Error = apierror.Error

type ErrorData

type ErrorData = shared.ErrorData

This is an alias to an internal type.

type Member

type Member = shared.Member

This is an alias to an internal type.

type MemberPoliciesAccess

type MemberPoliciesAccess = shared.MemberPoliciesAccess

Allow or deny operations against the resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroup

type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup

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

This is an alias to an internal type.

type MemberPoliciesPermissionGroupsMeta

type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type MemberPoliciesResourceGroup

type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup

A group of scoped resources.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsMeta

type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta

Attributes associated to the resource group.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScope

type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope

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

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScopeObject

type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject

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

This is an alias to an internal type.

type MemberPolicy

type MemberPolicy = shared.MemberPolicy

This is an alias to an internal type.

type MemberStatus

type MemberStatus = shared.MemberStatus

A member's status in the account.

This is an alias to an internal type.

type MemberUser

type MemberUser = shared.MemberUser

Details of the user associated to the membership.

This is an alias to an internal type.

type Permission

type Permission = shared.Permission

This is an alias to an internal type.

type PermissionGrant

type PermissionGrant = shared.PermissionGrant

This is an alias to an internal type.

type PermissionGrantParam

type PermissionGrantParam = shared.PermissionGrantParam

This is an alias to an internal type.

type RatePlan

type RatePlan = shared.RatePlan

The rate plan applied to the subscription.

This is an alias to an internal type.

type 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 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 Script

type Script struct {
	// When the script was created.
	CreatedOn time.Time `json:"created_on" format:"date-time"`
	// Name of the Workers for Platforms dispatch namespace.
	DispatchNamespace string `json:"dispatch_namespace"`
	// When the script was last modified.
	ModifiedOn time.Time      `json:"modified_on" format:"date-time"`
	Script     workers.Script `json:"script"`
	JSON       scriptJSON     `json:"-"`
}

Details about a worker uploaded to a Workers for Platforms namespace.

func (*Script) UnmarshalJSON

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

type SortDirection

type SortDirection = shared.SortDirection

Direction to order DNS records in.

This is an alias to an internal type.

type 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 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 WorkersForPlatformService

type WorkersForPlatformService struct {
	Options  []option.RequestOption
	Dispatch *DispatchService
}

WorkersForPlatformService 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 NewWorkersForPlatformService method instead.

func NewWorkersForPlatformService

func NewWorkersForPlatformService(opts ...option.RequestOption) (r *WorkersForPlatformService)

NewWorkersForPlatformService 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 WorkersSecretModelParam

type WorkersSecretModelParam struct {
	// The name of this secret, this is what will be used to access it inside the
	// Worker.
	Name param.Field[string] `json:"name"`
	// The value of the secret.
	Text param.Field[string] `json:"text"`
	// The type of secret to put.
	Type param.Field[WorkersSecretModelType] `json:"type"`
}

func (WorkersSecretModelParam) MarshalJSON

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

type WorkersSecretModelType

type WorkersSecretModelType string

The type of secret to put.

const (
	WorkersSecretModelTypeSecretText WorkersSecretModelType = "secret_text"
)

func (WorkersSecretModelType) IsKnown

func (r WorkersSecretModelType) IsKnown() bool

Jump to

Keyboard shortcuts

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