EthernetConnectivityBase extends Model
Table of Contents
- SOURCE_DEFAULT = 2
- DEFAULT (Auto-Generated)
- SOURCE_OTHERS = 1
- OTHERS (From shell console and other origins)
- SOURCE_REMOTE = 0
- REMOTE (Configuration provided by Cloud)
- SOURCE_TOOLS = 3
- TOOLS (Factory, AAT or secure-control)
- TYPE_PARTLY_DYNAMIC = 2
- PARTLY_DYNAMIC
- TYPE_STATIC = 1
- STATIC
- $dns1 : string|null
- DNS n°1 of the ethernet connectivity, required if the type is STATIC
- $dns2 : string|null
- DNS n°2 of the ethernet connectivity, only applicable if the type is STATIC. This field can be unset by setting the value as an empty string.
- $gateway : string|null
- Gateway of the ethernet connectivity, required if the type is STATIC
- $ip : string|null
- IP address of the ethernet connectivity, required if the type is STATIC
- $mask : string|null
- Subnet mask of the ethernet connectivity, required if the type is STATIC
- $mtu : int|null
- MTU of the ethernet connectivity, required if the type is PARTLY_DYNAMIC. This field can be unset by setting the value to null.
- $name : string|null
- The name of the configuration
- $source : int|null
- Configuration origin of the connectivity
- $type : int|null
- Token's type of an ethernet connectivity configuration
- from() : static
- Initializing a model from an array
- getDns1() : string
- Getter for dns1
- getDns2() : string
- Getter for dns2
- getGateway() : string
- Getter for gateway
- getIp() : string
- Getter for ip
- getMask() : string
- Getter for mask
- getMtu() : int
- Getter for mtu
- getName() : string
- Getter for name
- getSource() : int
- Getter for source
- getType() : int
- Getter for type
- jsonSerialize() : array<string|int, mixed>
- setDns1() : static
- Setter for dns1
- setDns2() : static
- Setter for dns2
- setGateway() : static
- Setter for gateway
- setIp() : static
- Setter for ip
- setMask() : static
- Setter for mask
- setMtu() : static
- Setter for mtu
- setName() : static
- Setter for name
- setSource() : static
- Setter for source
- setType() : static
- Setter for type
Constants
SOURCE_DEFAULT
DEFAULT (Auto-Generated)
public
mixed
SOURCE_DEFAULT
= 2
SOURCE_OTHERS
OTHERS (From shell console and other origins)
public
mixed
SOURCE_OTHERS
= 1
SOURCE_REMOTE
REMOTE (Configuration provided by Cloud)
public
mixed
SOURCE_REMOTE
= 0
SOURCE_TOOLS
TOOLS (Factory, AAT or secure-control)
public
mixed
SOURCE_TOOLS
= 3
TYPE_PARTLY_DYNAMIC
PARTLY_DYNAMIC
public
mixed
TYPE_PARTLY_DYNAMIC
= 2
TYPE_STATIC
STATIC
public
mixed
TYPE_STATIC
= 1
Properties
$dns1
DNS n°1 of the ethernet connectivity, required if the type is STATIC
protected
string|null
$dns1
= null
$dns2
DNS n°2 of the ethernet connectivity, only applicable if the type is STATIC. This field can be unset by setting the value as an empty string.
protected
string|null
$dns2
= null
$gateway
Gateway of the ethernet connectivity, required if the type is STATIC
protected
string|null
$gateway
= null
$ip
IP address of the ethernet connectivity, required if the type is STATIC
protected
string|null
$ip
= null
$mask
Subnet mask of the ethernet connectivity, required if the type is STATIC
protected
string|null
$mask
= null
$mtu
MTU of the ethernet connectivity, required if the type is PARTLY_DYNAMIC. This field can be unset by setting the value to null.
protected
int|null
$mtu
= null
$name
The name of the configuration
protected
string|null
$name
= null
$source
Configuration origin of the connectivity
protected
int|null
$source
= null
$type
Token's type of an ethernet connectivity configuration
protected
int|null
$type
= null
Methods
from()
Initializing a model from an array
public
static from(array<string|int, mixed> $params) : static
Parameters
- $params : array<string|int, mixed>
-
Pass this parameter if you want to initial property value from an array. See API reference for all property names and types
Tags
Return values
static —getDns1()
Getter for dns1
public
getDns1() : string
Return values
string —DNS n°1 of the ethernet connectivity, required if the type is STATIC
getDns2()
Getter for dns2
public
getDns2() : string
Return values
string —DNS n°2 of the ethernet connectivity, only applicable if the type is STATIC. This field can be unset by setting the value as an empty string.
getGateway()
Getter for gateway
public
getGateway() : string
Return values
string —Gateway of the ethernet connectivity, required if the type is STATIC
getIp()
Getter for ip
public
getIp() : string
Return values
string —IP address of the ethernet connectivity, required if the type is STATIC
getMask()
Getter for mask
public
getMask() : string
Return values
string —Subnet mask of the ethernet connectivity, required if the type is STATIC
getMtu()
Getter for mtu
public
getMtu() : int
Return values
int —MTU of the ethernet connectivity, required if the type is PARTLY_DYNAMIC. This field can be unset by setting the value to null.
getName()
Getter for name
public
getName() : string
Return values
string —The name of the configuration
getSource()
Getter for source
public
getSource() : int
Return values
int —Configuration origin of the connectivity
getType()
Getter for type
public
getType() : int
Return values
int —Token's type of an ethernet connectivity configuration
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —setDns1()
Setter for dns1
public
setDns1(string $dns1) : static
Parameters
- $dns1 : string
-
DNS n°1 of the ethernet connectivity, required if the type is STATIC
Return values
static —To use in method chains
setDns2()
Setter for dns2
public
setDns2(string $dns2) : static
Parameters
- $dns2 : string
-
DNS n°2 of the ethernet connectivity, only applicable if the type is STATIC. This field can be unset by setting the value as an empty string.
Return values
static —To use in method chains
setGateway()
Setter for gateway
public
setGateway(string $gateway) : static
Parameters
- $gateway : string
-
Gateway of the ethernet connectivity, required if the type is STATIC
Return values
static —To use in method chains
setIp()
Setter for ip
public
setIp(string $ip) : static
Parameters
- $ip : string
-
IP address of the ethernet connectivity, required if the type is STATIC
Return values
static —To use in method chains
setMask()
Setter for mask
public
setMask(string $mask) : static
Parameters
- $mask : string
-
Subnet mask of the ethernet connectivity, required if the type is STATIC
Return values
static —To use in method chains
setMtu()
Setter for mtu
public
setMtu(int $mtu) : static
Parameters
- $mtu : int
-
MTU of the ethernet connectivity, required if the type is PARTLY_DYNAMIC. This field can be unset by setting the value to null.
Return values
static —To use in method chains
setName()
Setter for name
public
setName(string $name) : static
Parameters
- $name : string
-
The name of the configuration
Return values
static —To use in method chains
setSource()
Setter for source
public
setSource(int $source) : static
Parameters
- $source : int
-
Configuration origin of the connectivity
Return values
static —To use in method chains
setType()
Setter for type
public
setType(int $type) : static
Parameters
- $type : int
-
Token's type of an ethernet connectivity configuration
Return values
static —To use in method chains