3.2 KiB
CloudflareRouteCreateIn
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Pattern | Pointer to string | Pattern is the URL pattern to bind, e.g. "acme.com/api/_*". | [optional] |
| Script | Pointer to string | Script is the Worker script to dispatch to. Omit it to leave the pattern bound to no script, which is how Cloudflare expresses "bypass the Worker here". | [optional] |
| Zone | Pointer to string | Zone is the 32-hex Cloudflare zone id, from the path. | [optional] |
Methods
NewCloudflareRouteCreateIn
func NewCloudflareRouteCreateIn() *CloudflareRouteCreateIn
NewCloudflareRouteCreateIn instantiates a new CloudflareRouteCreateIn 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
NewCloudflareRouteCreateInWithDefaults
func NewCloudflareRouteCreateInWithDefaults() *CloudflareRouteCreateIn
NewCloudflareRouteCreateInWithDefaults instantiates a new CloudflareRouteCreateIn 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
GetPattern
func (o *CloudflareRouteCreateIn) GetPattern() string
GetPattern returns the Pattern field if non-nil, zero value otherwise.
GetPatternOk
func (o *CloudflareRouteCreateIn) GetPatternOk() (*string, bool)
GetPatternOk returns a tuple with the Pattern field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPattern
func (o *CloudflareRouteCreateIn) SetPattern(v string)
SetPattern sets Pattern field to given value.
HasPattern
func (o *CloudflareRouteCreateIn) HasPattern() bool
HasPattern returns a boolean if a field has been set.
GetScript
func (o *CloudflareRouteCreateIn) GetScript() string
GetScript returns the Script field if non-nil, zero value otherwise.
GetScriptOk
func (o *CloudflareRouteCreateIn) 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 *CloudflareRouteCreateIn) SetScript(v string)
SetScript sets Script field to given value.
HasScript
func (o *CloudflareRouteCreateIn) HasScript() bool
HasScript returns a boolean if a field has been set.
GetZone
func (o *CloudflareRouteCreateIn) GetZone() string
GetZone returns the Zone field if non-nil, zero value otherwise.
GetZoneOk
func (o *CloudflareRouteCreateIn) GetZoneOk() (*string, bool)
GetZoneOk returns a tuple with the Zone field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetZone
func (o *CloudflareRouteCreateIn) SetZone(v string)
SetZone sets Zone field to given value.
HasZone
func (o *CloudflareRouteCreateIn) HasZone() bool
HasZone returns a boolean if a field has been set.