5.8 KiB
CloudflareWorkerScriptPut
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Bindings | Pointer to interface{} | [optional] | |
| CompatibilityDate | Pointer to string | CompatibilityDate pins which Workers runtime behaviour the script runs under, as a plain calendar date ("2024-01-01"). Absent leaves the account's own default in force. | [optional] |
| CompatibilityFlags | Pointer to []string | CompatibilityFlags turn individual runtime behaviours on or off around that date ("nodejs_compat"), in Cloudflare's own flag vocabulary. Absent means the date alone decides. | [optional] |
| MainModule | Pointer to string | MainModule is the module file the runtime starts at. Absent means "worker.js". | [optional] |
| Script | Pointer to string | Script means two things on this route, and the document says so in both places it appears: the PATH segment names the Worker to publish, and the BODY field carries that Worker's ES-module source — the code itself, never a name or a URL. A blank or absent source is refused; there is no empty Worker. | [optional] |
Methods
NewCloudflareWorkerScriptPut
func NewCloudflareWorkerScriptPut() *CloudflareWorkerScriptPut
NewCloudflareWorkerScriptPut instantiates a new CloudflareWorkerScriptPut object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewCloudflareWorkerScriptPutWithDefaults
func NewCloudflareWorkerScriptPutWithDefaults() *CloudflareWorkerScriptPut
NewCloudflareWorkerScriptPutWithDefaults instantiates a new CloudflareWorkerScriptPut object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetBindings
func (o *CloudflareWorkerScriptPut) GetBindings() interface{}
GetBindings returns the Bindings field if non-nil, zero value otherwise.
GetBindingsOk
func (o *CloudflareWorkerScriptPut) GetBindingsOk() (*interface{}, bool)
GetBindingsOk returns a tuple with the Bindings field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetBindings
func (o *CloudflareWorkerScriptPut) SetBindings(v interface{})
SetBindings sets Bindings field to given value.
HasBindings
func (o *CloudflareWorkerScriptPut) HasBindings() bool
HasBindings returns a boolean if a field has been set.
SetBindingsNil
func (o *CloudflareWorkerScriptPut) SetBindingsNil(b bool)
SetBindingsNil sets the value for Bindings to be an explicit nil
UnsetBindings
func (o *CloudflareWorkerScriptPut) UnsetBindings()
UnsetBindings ensures that no value is present for Bindings, not even an explicit nil
GetCompatibilityDate
func (o *CloudflareWorkerScriptPut) GetCompatibilityDate() string
GetCompatibilityDate returns the CompatibilityDate field if non-nil, zero value otherwise.
GetCompatibilityDateOk
func (o *CloudflareWorkerScriptPut) GetCompatibilityDateOk() (*string, bool)
GetCompatibilityDateOk returns a tuple with the CompatibilityDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCompatibilityDate
func (o *CloudflareWorkerScriptPut) SetCompatibilityDate(v string)
SetCompatibilityDate sets CompatibilityDate field to given value.
HasCompatibilityDate
func (o *CloudflareWorkerScriptPut) HasCompatibilityDate() bool
HasCompatibilityDate returns a boolean if a field has been set.
GetCompatibilityFlags
func (o *CloudflareWorkerScriptPut) GetCompatibilityFlags() []string
GetCompatibilityFlags returns the CompatibilityFlags field if non-nil, zero value otherwise.
GetCompatibilityFlagsOk
func (o *CloudflareWorkerScriptPut) GetCompatibilityFlagsOk() (*[]string, bool)
GetCompatibilityFlagsOk returns a tuple with the CompatibilityFlags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCompatibilityFlags
func (o *CloudflareWorkerScriptPut) SetCompatibilityFlags(v []string)
SetCompatibilityFlags sets CompatibilityFlags field to given value.
HasCompatibilityFlags
func (o *CloudflareWorkerScriptPut) HasCompatibilityFlags() bool
HasCompatibilityFlags returns a boolean if a field has been set.
GetMainModule
func (o *CloudflareWorkerScriptPut) GetMainModule() string
GetMainModule returns the MainModule field if non-nil, zero value otherwise.
GetMainModuleOk
func (o *CloudflareWorkerScriptPut) GetMainModuleOk() (*string, bool)
GetMainModuleOk returns a tuple with the MainModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMainModule
func (o *CloudflareWorkerScriptPut) SetMainModule(v string)
SetMainModule sets MainModule field to given value.
HasMainModule
func (o *CloudflareWorkerScriptPut) HasMainModule() bool
HasMainModule returns a boolean if a field has been set.
GetScript
func (o *CloudflareWorkerScriptPut) GetScript() string
GetScript returns the Script field if non-nil, zero value otherwise.
GetScriptOk
func (o *CloudflareWorkerScriptPut) GetScriptOk() (*string, bool)
GetScriptOk returns a tuple with the Script field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetScript
func (o *CloudflareWorkerScriptPut) SetScript(v string)
SetScript sets Script field to given value.
HasScript
func (o *CloudflareWorkerScriptPut) HasScript() bool
HasScript returns a boolean if a field has been set.