Documentation

NetworksnetworkIdgroupPoliciesFirewallAndTrafficShaping implements ModelInterface, ArrayAccess

NetworksnetworkIdgroupPoliciesFirewallAndTrafficShaping Class Doc Comment

Tags
category

Class

description

The firewall and traffic shaping rules and settings for your policy.

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
SETTINGS_CUSTOM  = 'custom'
SETTINGS_IGNORE  = 'ignore'
SETTINGS_NETWORK_DEFAULT  = 'network default'
$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
getL3FirewallRules()  : array<string|int, NetworksnetworkIdgroupPoliciesFirewallAndTrafficShapingL3FirewallRules>
Gets l3_firewall_rules
getL7FirewallRules()  : array<string|int, NetworksnetworkIdgroupPoliciesFirewallAndTrafficShapingL7FirewallRules>
Gets l7_firewall_rules
getModelName()  : string
The original name of the model.
getSettings()  : string
Gets settings
getSettingsAllowableValues()  : array<string|int, string>
Gets allowable values of the enum
getters()  : array<string|int, mixed>
Array of attributes to getter functions (for serialization of requests)
getTrafficShapingRules()  : array<string|int, NetworksnetworkIdgroupPoliciesFirewallAndTrafficShapingTrafficShapingRules>
Gets traffic_shaping_rules
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.
setL3FirewallRules()  : $this
Sets l3_firewall_rules
setL7FirewallRules()  : $this
Sets l7_firewall_rules
setSettings()  : $this
Sets settings
setters()  : array<string|int, mixed>
Array of attributes to setter functions (for deserialization of responses)
setTrafficShapingRules()  : $this
Sets traffic_shaping_rules
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 = ['settings' => 'settings', 'traffic_shaping_rules' => 'trafficShapingRules', 'l3_firewall_rules' => 'l3FirewallRules', 'l7_firewall_rules' => 'l7FirewallRules']

$getters

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

protected static array<string|int, string> $getters = ['settings' => 'getSettings', 'traffic_shaping_rules' => 'getTrafficShapingRules', 'l3_firewall_rules' => 'getL3FirewallRules', 'l7_firewall_rules' => 'getL7FirewallRules']

$setters

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

protected static array<string|int, string> $setters = ['settings' => 'setSettings', 'traffic_shaping_rules' => 'setTrafficShapingRules', 'l3_firewall_rules' => 'setL3FirewallRules', 'l7_firewall_rules' => 'setL7FirewallRules']

$swaggerFormats

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

protected static array<string|int, string> $swaggerFormats = ['settings' => null, 'traffic_shaping_rules' => null, 'l3_firewall_rules' => null, 'l7_firewall_rules' => null]

$swaggerTypes

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

protected static array<string|int, string> $swaggerTypes = ['settings' => 'string', 'traffic_shaping_rules' => '\Swagger\Client\Model\NetworksnetworkIdgroupPoliciesFirewallAndTrafficShapingTrafficShapingRules[]', 'l3_firewall_rules' => '\Swagger\Client\Model\NetworksnetworkIdgroupPoliciesFirewallAndTrafficShapingL3FirewallRules[]', 'l7_firewall_rules' => '\Swagger\Client\Model\NetworksnetworkIdgroupPoliciesFirewallAndTrafficShapingL7FirewallRules[]']

Methods

__construct()

Constructor

public __construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
$data : array<string|int, mixed> = null

Associated array of property values initializing the model

Return values
mixed

setSettings()

Sets settings

public setSettings(string $settings) : $this
Parameters
$settings : string

How firewall and traffic shaping rules are enforced. Can be 'network default', 'ignore' or 'custom'.

Return values
$this

setTrafficShapingRules()

Sets traffic_shaping_rules

public setTrafficShapingRules(array<string|int, NetworksnetworkIdgroupPoliciesFirewallAndTrafficShapingTrafficShapingRules$traffic_shaping_rules) : $this
Parameters
$traffic_shaping_rules : array<string|int, NetworksnetworkIdgroupPoliciesFirewallAndTrafficShapingTrafficShapingRules>

An array of traffic shaping rules. Rules are applied in the order that they are specified in. An empty list (or null) means no rules. Note that you are allowed a maximum of 8 rules.

Return values
$this

Search results