Skip to content

Latest commit

 

History

History
128 lines (71 loc) · 4.37 KB

File metadata and controls

128 lines (71 loc) · 4.37 KB

ContainerOriginProtectionConfig

Properties

Name Type Description Notes
Enabled Pointer to bool Whether origin protection is enabled. Defaults to true if this config object is provided. [optional] [default to true]
IpAllow Pointer to []string List of IP addresses or CIDR ranges that can bypass origin protection for direct access (e.g., VPN IPs) [optional]
RedirectHost Pointer to NullableString Optional bare host (e.g. www.example.com). When set, requests denied by origin protection are 302-redirected to https://<redirectHost> with path and query preserved, instead of receiving a 403. Allowed IPs and valid-header (CDN) traffic are unaffected. [optional]

Methods

NewContainerOriginProtectionConfig

func NewContainerOriginProtectionConfig() *ContainerOriginProtectionConfig

NewContainerOriginProtectionConfig instantiates a new ContainerOriginProtectionConfig 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

NewContainerOriginProtectionConfigWithDefaults

func NewContainerOriginProtectionConfigWithDefaults() *ContainerOriginProtectionConfig

NewContainerOriginProtectionConfigWithDefaults instantiates a new ContainerOriginProtectionConfig 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

GetEnabled

func (o *ContainerOriginProtectionConfig) GetEnabled() bool

GetEnabled returns the Enabled field if non-nil, zero value otherwise.

GetEnabledOk

func (o *ContainerOriginProtectionConfig) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetEnabled

func (o *ContainerOriginProtectionConfig) SetEnabled(v bool)

SetEnabled sets Enabled field to given value.

HasEnabled

func (o *ContainerOriginProtectionConfig) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

GetIpAllow

func (o *ContainerOriginProtectionConfig) GetIpAllow() []string

GetIpAllow returns the IpAllow field if non-nil, zero value otherwise.

GetIpAllowOk

func (o *ContainerOriginProtectionConfig) GetIpAllowOk() (*[]string, bool)

GetIpAllowOk returns a tuple with the IpAllow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIpAllow

func (o *ContainerOriginProtectionConfig) SetIpAllow(v []string)

SetIpAllow sets IpAllow field to given value.

HasIpAllow

func (o *ContainerOriginProtectionConfig) HasIpAllow() bool

HasIpAllow returns a boolean if a field has been set.

SetIpAllowNil

func (o *ContainerOriginProtectionConfig) SetIpAllowNil(b bool)

SetIpAllowNil sets the value for IpAllow to be an explicit nil

UnsetIpAllow

func (o *ContainerOriginProtectionConfig) UnsetIpAllow()

UnsetIpAllow ensures that no value is present for IpAllow, not even an explicit nil

GetRedirectHost

func (o *ContainerOriginProtectionConfig) GetRedirectHost() string

GetRedirectHost returns the RedirectHost field if non-nil, zero value otherwise.

GetRedirectHostOk

func (o *ContainerOriginProtectionConfig) GetRedirectHostOk() (*string, bool)

GetRedirectHostOk returns a tuple with the RedirectHost field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRedirectHost

func (o *ContainerOriginProtectionConfig) SetRedirectHost(v string)

SetRedirectHost sets RedirectHost field to given value.

HasRedirectHost

func (o *ContainerOriginProtectionConfig) HasRedirectHost() bool

HasRedirectHost returns a boolean if a field has been set.

SetRedirectHostNil

func (o *ContainerOriginProtectionConfig) SetRedirectHostNil(b bool)

SetRedirectHostNil sets the value for RedirectHost to be an explicit nil

UnsetRedirectHost

func (o *ContainerOriginProtectionConfig) UnsetRedirectHost()

UnsetRedirectHost ensures that no value is present for RedirectHost, not even an explicit nil

[Back to Model list] [Back to API list] [Back to README]