Name | Type | Description | Notes |
---|---|---|---|
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
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
func (o *FirewallruleProperties) GetIcmpCode() int32
GetIcmpCode returns the IcmpCode field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetIcmpCode(v int32)
SetIcmpCode sets IcmpCode field to given value.
func (o *FirewallruleProperties) HasIcmpCode() bool
HasIcmpCode returns a boolean if a field has been set.
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.
func (o *FirewallruleProperties) UnsetIcmpCode()
func (o *FirewallruleProperties) GetIcmpType() int32
GetIcmpType returns the IcmpType field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetIcmpType(v int32)
SetIcmpType sets IcmpType field to given value.
func (o *FirewallruleProperties) HasIcmpType() bool
HasIcmpType returns a boolean if a field has been set.
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.
func (o *FirewallruleProperties) UnsetIcmpType()
func (o *FirewallruleProperties) GetIpVersion() string
GetIpVersion returns the IpVersion field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetIpVersion(v string)
SetIpVersion sets IpVersion field to given value.
func (o *FirewallruleProperties) HasIpVersion() bool
HasIpVersion returns a boolean if a field has been set.
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.
func (o *FirewallruleProperties) UnsetIpVersion()
func (o *FirewallruleProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetName(v string)
SetName sets Name field to given value.
func (o *FirewallruleProperties) HasName() bool
HasName returns a boolean if a field has been set.
func (o *FirewallruleProperties) GetPortRangeEnd() int32
GetPortRangeEnd returns the PortRangeEnd field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetPortRangeEnd(v int32)
SetPortRangeEnd sets PortRangeEnd field to given value.
func (o *FirewallruleProperties) HasPortRangeEnd() bool
HasPortRangeEnd returns a boolean if a field has been set.
func (o *FirewallruleProperties) GetPortRangeStart() int32
GetPortRangeStart returns the PortRangeStart field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetPortRangeStart(v int32)
SetPortRangeStart sets PortRangeStart field to given value.
func (o *FirewallruleProperties) HasPortRangeStart() bool
HasPortRangeStart returns a boolean if a field has been set.
func (o *FirewallruleProperties) GetProtocol() string
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetProtocol(v string)
SetProtocol sets Protocol field to given value.
func (o *FirewallruleProperties) GetSourceIp() string
GetSourceIp returns the SourceIp field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetSourceIp(v string)
SetSourceIp sets SourceIp field to given value.
func (o *FirewallruleProperties) HasSourceIp() bool
HasSourceIp returns a boolean if a field has been set.
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.
func (o *FirewallruleProperties) UnsetSourceIp()
func (o *FirewallruleProperties) GetSourceMac() string
GetSourceMac returns the SourceMac field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetSourceMac(v string)
SetSourceMac sets SourceMac field to given value.
func (o *FirewallruleProperties) HasSourceMac() bool
HasSourceMac returns a boolean if a field has been set.
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.
func (o *FirewallruleProperties) UnsetSourceMac()
func (o *FirewallruleProperties) GetTargetIp() string
GetTargetIp returns the TargetIp field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetTargetIp(v string)
SetTargetIp sets TargetIp field to given value.
func (o *FirewallruleProperties) HasTargetIp() bool
HasTargetIp returns a boolean if a field has been set.
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.
func (o *FirewallruleProperties) UnsetTargetIp()
func (o *FirewallruleProperties) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
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.
func (o *FirewallruleProperties) SetType(v string)
SetType sets Type field to given value.
func (o *FirewallruleProperties) HasType() bool
HasType returns a boolean if a field has been set.
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]