FirewallruleProperties

Properties

NameTypeDescriptionNotes

IcmpCode

Pointer to NullableInt32

Defines the allowed code (from 0 to 254) if protocol ICMP or ICMPv6 is chosen. Value null allows all codes.

[optional]

IcmpType

Pointer to NullableInt32

Defines the allowed type (from 0 to 254) if the protocol ICMP or ICMPv6 is chosen. Value null allows all types.

[optional]

IpVersion

Pointer to NullableString

The IP version for this rule. If sourceIp or targetIp are specified, you can omit this value - the IP version will then be deduced from the IP address(es) used; if you specify it anyway, it must match the specified IP address(es). If neither sourceIp nor targetIp are specified, this rule allows traffic only for the specified IP version. If neither sourceIp, targetIp nor ipVersion are specified, this rule will only allow IPv4 traffic.

[optional]

Name

Pointer to string

The name of the resource.

[optional]

PortRangeEnd

Pointer to int32

Defines the end range of the allowed port (from 1 to 65534) if the protocol TCP or UDP is chosen. Leave portRangeStart and portRangeEnd null to allow all ports.

[optional]

PortRangeStart

Pointer to int32

Defines the start range of the allowed port (from 1 to 65534) if protocol TCP or UDP is chosen. Leave portRangeStart and portRangeEnd value null to allow all ports.

[optional]

Protocol

string

The protocol for the rule. Property cannot be modified after it is created (disallowed in update requests).

SourceIp

Pointer to NullableString

Only traffic originating from the respective IP address (or CIDR block) is allowed. Value null allows traffic from any IP address (according to the selected ipVersion).

[optional]

SourceMac

Pointer to NullableString

Only traffic originating from the respective MAC address is allowed. Valid format: aa:bb:cc:dd:ee:ff. Value null allows traffic from any MAC address.

[optional]

TargetIp

Pointer to NullableString

If the target NIC has multiple IP addresses, only the traffic directed to the respective IP address (or CIDR block) of the NIC is allowed. Value null allows traffic to any target IP address (according to the selected ipVersion).

[optional]

Type

Pointer to string

The type of the firewall rule. If not specified, the default INGRESS value is used.

[optional]

Methods

NewFirewallruleProperties

func NewFirewallruleProperties(protocol string, ) *FirewallruleProperties

NewFirewallruleProperties instantiates a new FirewallruleProperties 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

NewFirewallrulePropertiesWithDefaults

func NewFirewallrulePropertiesWithDefaults() *FirewallruleProperties

NewFirewallrulePropertiesWithDefaults instantiates a new FirewallruleProperties 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

GetIcmpCode

func (o *FirewallruleProperties) GetIcmpCode() int32

GetIcmpCode returns the IcmpCode field if non-nil, zero value otherwise.

GetIcmpCodeOk

func (o *FirewallruleProperties) GetIcmpCodeOk() (*int32, bool)

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

SetIcmpCode

func (o *FirewallruleProperties) SetIcmpCode(v int32)

SetIcmpCode sets IcmpCode field to given value.

HasIcmpCode

func (o *FirewallruleProperties) HasIcmpCode() bool

HasIcmpCode returns a boolean if a field has been set.

SetIcmpCodeNil

func (o *FirewallruleProperties) SetIcmpCodeNil()

SetIcmpCodeNil sets the value for IcmpCode to be marshalled as an explicit nil Alternatively IcmpCode can be set directly to the address &Nilint32, which is a sentinel value that is checked when marshalling.

UnsetIcmpCode

func (o *FirewallruleProperties) UnsetIcmpCode()

GetIcmpType

func (o *FirewallruleProperties) GetIcmpType() int32

GetIcmpType returns the IcmpType field if non-nil, zero value otherwise.

GetIcmpTypeOk

func (o *FirewallruleProperties) GetIcmpTypeOk() (*int32, bool)

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

SetIcmpType

func (o *FirewallruleProperties) SetIcmpType(v int32)

SetIcmpType sets IcmpType field to given value.

HasIcmpType

func (o *FirewallruleProperties) HasIcmpType() bool

HasIcmpType returns a boolean if a field has been set.

SetIcmpTypeNil

func (o *FirewallruleProperties) SetIcmpTypeNil()

SetIcmpTypeNil sets the value for IcmpType to be marshalled as an explicit nil Alternatively IcmpType can be set directly to the address &Nilint32, which is a sentinel value that is checked when marshalling.

UnsetIcmpType

func (o *FirewallruleProperties) UnsetIcmpType()

GetIpVersion

func (o *FirewallruleProperties) GetIpVersion() string

GetIpVersion returns the IpVersion field if non-nil, zero value otherwise.

GetIpVersionOk

func (o *FirewallruleProperties) GetIpVersionOk() (*string, bool)

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

SetIpVersion

func (o *FirewallruleProperties) SetIpVersion(v string)

SetIpVersion sets IpVersion field to given value.

HasIpVersion

func (o *FirewallruleProperties) HasIpVersion() bool

HasIpVersion returns a boolean if a field has been set.

SetIpVersionNil

func (o *FirewallruleProperties) SetIpVersionNil()

SetIpVersionNil sets the value for IpVersion to be marshalled as an explicit nil Alternatively IpVersion can be set directly to the address &Nilstring, which is a sentinel value that is checked when marshalling.

UnsetIpVersion

func (o *FirewallruleProperties) UnsetIpVersion()

GetName

func (o *FirewallruleProperties) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *FirewallruleProperties) GetNameOk() (*string, bool)

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

SetName

func (o *FirewallruleProperties) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *FirewallruleProperties) HasName() bool

HasName returns a boolean if a field has been set.

GetPortRangeEnd

func (o *FirewallruleProperties) GetPortRangeEnd() int32

GetPortRangeEnd returns the PortRangeEnd field if non-nil, zero value otherwise.

GetPortRangeEndOk

func (o *FirewallruleProperties) GetPortRangeEndOk() (*int32, bool)

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

SetPortRangeEnd

func (o *FirewallruleProperties) SetPortRangeEnd(v int32)

SetPortRangeEnd sets PortRangeEnd field to given value.

HasPortRangeEnd

func (o *FirewallruleProperties) HasPortRangeEnd() bool

HasPortRangeEnd returns a boolean if a field has been set.

GetPortRangeStart

func (o *FirewallruleProperties) GetPortRangeStart() int32

GetPortRangeStart returns the PortRangeStart field if non-nil, zero value otherwise.

GetPortRangeStartOk

func (o *FirewallruleProperties) GetPortRangeStartOk() (*int32, bool)

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

SetPortRangeStart

func (o *FirewallruleProperties) SetPortRangeStart(v int32)

SetPortRangeStart sets PortRangeStart field to given value.

HasPortRangeStart

func (o *FirewallruleProperties) HasPortRangeStart() bool

HasPortRangeStart returns a boolean if a field has been set.

GetProtocol

func (o *FirewallruleProperties) GetProtocol() string

GetProtocol returns the Protocol field if non-nil, zero value otherwise.

GetProtocolOk

func (o *FirewallruleProperties) GetProtocolOk() (*string, bool)

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

SetProtocol

func (o *FirewallruleProperties) SetProtocol(v string)

SetProtocol sets Protocol field to given value.

GetSourceIp

func (o *FirewallruleProperties) GetSourceIp() string

GetSourceIp returns the SourceIp field if non-nil, zero value otherwise.

GetSourceIpOk

func (o *FirewallruleProperties) GetSourceIpOk() (*string, bool)

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

SetSourceIp

func (o *FirewallruleProperties) SetSourceIp(v string)

SetSourceIp sets SourceIp field to given value.

HasSourceIp

func (o *FirewallruleProperties) HasSourceIp() bool

HasSourceIp returns a boolean if a field has been set.

SetSourceIpNil

func (o *FirewallruleProperties) SetSourceIpNil()

SetSourceIpNil sets the value for SourceIp to be marshalled as an explicit nil Alternatively SourceIp can be set directly to the address &Nilstring, which is a sentinel value that is checked when marshalling.

UnsetSourceIp

func (o *FirewallruleProperties) UnsetSourceIp()

GetSourceMac

func (o *FirewallruleProperties) GetSourceMac() string

GetSourceMac returns the SourceMac field if non-nil, zero value otherwise.

GetSourceMacOk

func (o *FirewallruleProperties) GetSourceMacOk() (*string, bool)

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

SetSourceMac

func (o *FirewallruleProperties) SetSourceMac(v string)

SetSourceMac sets SourceMac field to given value.

HasSourceMac

func (o *FirewallruleProperties) HasSourceMac() bool

HasSourceMac returns a boolean if a field has been set.

SetSourceMacNil

func (o *FirewallruleProperties) SetSourceMacNil()

SetSourceMacNil sets the value for SourceMac to be marshalled as an explicit nil Alternatively SourceMac can be set directly to the address &Nilstring, which is a sentinel value that is checked when marshalling.

UnsetSourceMac

func (o *FirewallruleProperties) UnsetSourceMac()

GetTargetIp

func (o *FirewallruleProperties) GetTargetIp() string

GetTargetIp returns the TargetIp field if non-nil, zero value otherwise.

GetTargetIpOk

func (o *FirewallruleProperties) GetTargetIpOk() (*string, bool)

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

SetTargetIp

func (o *FirewallruleProperties) SetTargetIp(v string)

SetTargetIp sets TargetIp field to given value.

HasTargetIp

func (o *FirewallruleProperties) HasTargetIp() bool

HasTargetIp returns a boolean if a field has been set.

SetTargetIpNil

func (o *FirewallruleProperties) SetTargetIpNil()

SetTargetIpNil sets the value for TargetIp to be marshalled as an explicit nil Alternatively TargetIp can be set directly to the address &Nilstring, which is a sentinel value that is checked when marshalling.

UnsetTargetIp

func (o *FirewallruleProperties) UnsetTargetIp()

GetType

func (o *FirewallruleProperties) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

func (o *FirewallruleProperties) GetTypeOk() (*string, bool)

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

SetType

func (o *FirewallruleProperties) SetType(v string)

SetType sets Type field to given value.

HasType

func (o *FirewallruleProperties) HasType() bool

HasType returns a boolean if a field has been set.

Last updated