Documentation

NetworksnetworkIdappliancefirewalloneToManyNatRulesPortRules implements ModelInterface, ArrayAccess

NetworksnetworkIdappliancefirewalloneToManyNatRulesPortRules Class Doc Comment

Tags
category

Class

author

Swagger Codegen team

link
https://github.com/swagger-api/swagger-codegen

Interfaces, Classes and Traits

ModelInterface
Interface abstracting model access.
ArrayAccess

Table of Contents

DISCRIMINATOR  = null
PROTOCOL_TCP  = 'tcp'
PROTOCOL_UDP  = 'udp'
$attributeMap  : array<string|int, string>
Array of attributes where the key is the local name, and the value is the original name
$container  : array<string|int, mixed>
Associative array for storing property values
$getters  : array<string|int, string>
Array of attributes to getter functions (for serialization of requests)
$setters  : array<string|int, string>
Array of attributes to setter functions (for deserialization of responses)
$swaggerFormats  : array<string|int, string>
Array of property to format mappings. Used for (de)serialization
$swaggerModelName  : string
The original name of the model.
$swaggerTypes  : array<string|int, string>
Array of property to type mappings. Used for (de)serialization
__construct()  : mixed
Constructor
__toString()  : string
Gets the string presentation of the object
attributeMap()  : array<string|int, mixed>
Array of attributes where the key is the local name, and the value is the original name
getAllowedIps()  : array<string|int, string>
Gets allowed_ips
getLocalIp()  : string
Gets local_ip
getLocalPort()  : string
Gets local_port
getModelName()  : string
The original name of the model.
getName()  : string
Gets name
getProtocol()  : string
Gets protocol
getProtocolAllowableValues()  : array<string|int, string>
Gets allowable values of the enum
getPublicPort()  : string
Gets public_port
getters()  : array<string|int, mixed>
Array of attributes to getter functions (for serialization of requests)
listInvalidProperties()  : array<string|int, mixed>
Show all the invalid properties with reasons.
offsetExists()  : bool
Returns true if offset exists. False otherwise.
offsetGet()  : mixed
Gets offset.
offsetSet()  : void
Sets value based on offset.
offsetUnset()  : void
Unsets offset.
setAllowedIps()  : $this
Sets allowed_ips
setLocalIp()  : $this
Sets local_ip
setLocalPort()  : $this
Sets local_port
setName()  : $this
Sets name
setProtocol()  : $this
Sets protocol
setPublicPort()  : $this
Sets public_port
setters()  : array<string|int, mixed>
Array of attributes to setter functions (for deserialization of responses)
swaggerFormats()  : array<string|int, mixed>
Array of property to format mappings. Used for (de)serialization
swaggerTypes()  : array<string|int, mixed>
Array of property to type mappings. Used for (de)serialization
valid()  : bool
Validate all the properties in the model return true if all passed

Constants

Properties

$attributeMap

Array of attributes where the key is the local name, and the value is the original name

protected static array<string|int, string> $attributeMap = ['name' => 'name', 'protocol' => 'protocol', 'public_port' => 'publicPort', 'local_ip' => 'localIp', 'local_port' => 'localPort', 'allowed_ips' => 'allowedIps']

$getters

Array of attributes to getter functions (for serialization of requests)

protected static array<string|int, string> $getters = ['name' => 'getName', 'protocol' => 'getProtocol', 'public_port' => 'getPublicPort', 'local_ip' => 'getLocalIp', 'local_port' => 'getLocalPort', 'allowed_ips' => 'getAllowedIps']

$setters

Array of attributes to setter functions (for deserialization of responses)

protected static array<string|int, string> $setters = ['name' => 'setName', 'protocol' => 'setProtocol', 'public_port' => 'setPublicPort', 'local_ip' => 'setLocalIp', 'local_port' => 'setLocalPort', 'allowed_ips' => 'setAllowedIps']

$swaggerFormats

Array of property to format mappings. Used for (de)serialization

protected static array<string|int, string> $swaggerFormats = ['name' => null, 'protocol' => null, 'public_port' => null, 'local_ip' => null, 'local_port' => null, 'allowed_ips' => null]

$swaggerTypes

Array of property to type mappings. Used for (de)serialization

protected static array<string|int, string> $swaggerTypes = ['name' => 'string', 'protocol' => 'string', 'public_port' => 'string', 'local_ip' => 'string', 'local_port' => 'string', 'allowed_ips' => 'string[]']

Methods

setAllowedIps()

Sets allowed_ips

public setAllowedIps(array<string|int, string> $allowed_ips) : $this
Parameters
$allowed_ips : array<string|int, string>

Remote IP addresses or ranges that are permitted to access the internal resource via this port forwarding rule, or 'any'

Return values
$this

setLocalPort()

Sets local_port

public setLocalPort(string $local_port) : $this
Parameters
$local_port : string

Destination port of the forwarded traffic that will be sent from the MX to the specified host on the LAN. If you simply wish to forward the traffic without translating the port, this should be the same as the Public port

Return values
$this

Search results