Documentation

UpdateNetworkApplianceWarmSpare implements ModelInterface, ArrayAccess

UpdateNetworkApplianceWarmSpare 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
$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
getEnabled()  : bool
Gets enabled
getModelName()  : string
The original name of the model.
getSpareSerial()  : string
Gets spare_serial
getters()  : array<string|int, mixed>
Array of attributes to getter functions (for serialization of requests)
getUplinkMode()  : string
Gets uplink_mode
getVirtualIp1()  : string
Gets virtual_ip1
getVirtualIp2()  : string
Gets virtual_ip2
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.
setEnabled()  : $this
Sets enabled
setSpareSerial()  : $this
Sets spare_serial
setters()  : array<string|int, mixed>
Array of attributes to setter functions (for deserialization of responses)
setUplinkMode()  : $this
Sets uplink_mode
setVirtualIp1()  : $this
Sets virtual_ip1
setVirtualIp2()  : $this
Sets virtual_ip2
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 = ['enabled' => 'enabled', 'spare_serial' => 'spareSerial', 'uplink_mode' => 'uplinkMode', 'virtual_ip1' => 'virtualIp1', 'virtual_ip2' => 'virtualIp2']

$getters

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

protected static array<string|int, string> $getters = ['enabled' => 'getEnabled', 'spare_serial' => 'getSpareSerial', 'uplink_mode' => 'getUplinkMode', 'virtual_ip1' => 'getVirtualIp1', 'virtual_ip2' => 'getVirtualIp2']

$setters

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

protected static array<string|int, string> $setters = ['enabled' => 'setEnabled', 'spare_serial' => 'setSpareSerial', 'uplink_mode' => 'setUplinkMode', 'virtual_ip1' => 'setVirtualIp1', 'virtual_ip2' => 'setVirtualIp2']

$swaggerFormats

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

protected static array<string|int, string> $swaggerFormats = ['enabled' => null, 'spare_serial' => null, 'uplink_mode' => null, 'virtual_ip1' => null, 'virtual_ip2' => null]

$swaggerTypes

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

protected static array<string|int, string> $swaggerTypes = ['enabled' => 'bool', 'spare_serial' => 'string', 'uplink_mode' => 'string', 'virtual_ip1' => 'string', 'virtual_ip2' => 'string']

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 —

attributeMap()

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

public static attributeMap() : array<string|int, mixed>
Return values
array<string|int, mixed> —

getters()

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

public static getters() : array<string|int, mixed>
Return values
array<string|int, mixed> —

listInvalidProperties()

Show all the invalid properties with reasons.

public listInvalidProperties() : array<string|int, mixed>
Return values
array<string|int, mixed> —

invalid properties with reasons

offsetExists()

Returns true if offset exists. False otherwise.

public offsetExists(int $offset) : bool
Parameters
$offset : int

Offset

Return values
bool —

offsetSet()

Sets value based on offset.

public offsetSet(int $offset, mixed $value) : void
Parameters
$offset : int

Offset

$value : mixed

Value to be set

Return values
void —

setEnabled()

Sets enabled

public setEnabled(bool $enabled) : $this
Parameters
$enabled : bool

Enable warm spare

Return values
$this —

setSpareSerial()

Sets spare_serial

public setSpareSerial(string $spare_serial) : $this
Parameters
$spare_serial : string

Serial number of the warm spare appliance

Return values
$this —

setters()

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

public static setters() : array<string|int, mixed>
Return values
array<string|int, mixed> —

setUplinkMode()

Sets uplink_mode

public setUplinkMode(string $uplink_mode) : $this
Parameters
$uplink_mode : string

Uplink mode, either virtual or public

Return values
$this —

setVirtualIp1()

Sets virtual_ip1

public setVirtualIp1(string $virtual_ip1) : $this
Parameters
$virtual_ip1 : string

The WAN 1 shared IP

Return values
$this —

setVirtualIp2()

Sets virtual_ip2

public setVirtualIp2(string $virtual_ip2) : $this
Parameters
$virtual_ip2 : string

The WAN 2 shared IP

Return values
$this —

swaggerFormats()

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

public static swaggerFormats() : array<string|int, mixed>
Return values
array<string|int, mixed> —

swaggerTypes()

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

public static swaggerTypes() : array<string|int, mixed>
Return values
array<string|int, mixed> —

valid()

Validate all the properties in the model return true if all passed

public valid() : bool
Return values
bool —

True if all properties are valid

Search results