Router
extends AbstractBaseCloudModel
in package
Uses
HasFactory, Notifiable, PowerJoins, SoftDeletes
Table of Contents
- public_network_relation = "public_network_id"
- The name to be used for the public network foreign key
- table = "cloud_os_networking__routers"
- Table name, as constant, used to avoid table name duplication across the source code base.
- table_network_relation = "cloud_os_networking__routers_networks"
- The name of the table to be used for the relation of the routers with other interfaces (i.e. networks)
- $activityLogName : string
- $error_at : Carbon
- $id : int
- $openStackActivityLogName : string
- $attributes : array<string|int, mixed>
- Default attributes
- $casts : array<string|int, string>
- The attributes that should be casted
- $fillable : array<int, string>
- The attributes that are mass assignable.
- $table : string
- Table name
- belongsToDefaultDomain() : bool
- This function will return true if the model is under the default domain, false otherwise
- floatingIps() : HasMany
- getActivitylogOptions() : LogOptions
- Specifies which model properties should be logged in the activy log
- isOwner() : bool
- isReadyToInsert() : bool
- Check if the model is consistent to be updated.
- isReadyToUpdate() : bool
- Check if the model is consistent to be inserted and created
- networks() : BelongsToMany
- project() : BelongsTo
- publicNetwork() : BelongsTo
- retrieveDomain() : Domain|null
- _isReadyToInsert() : bool
- Check if the model is consistent to be updated.
- _isReadyToUpdate() : bool
- Check if the model is consistent to be inserted and created
- boot() : void
- Boot the model and register the events
- newFactory() : RouterFactory
- Get the Factory Class
Constants
public_network_relation
The name to be used for the public network foreign key
public
mixed
public_network_relation
= "public_network_id"
Tags
table
Table name, as constant, used to avoid table name duplication across the source code base.
public
mixed
table
= "cloud_os_networking__routers"
Tags
table_network_relation
The name of the table to be used for the relation of the routers with other interfaces (i.e. networks)
public
mixed
table_network_relation
= "cloud_os_networking__routers_networks"
Tags
Properties
$activityLogName
public
static string
$activityLogName
= "crud"
$error_at
public
Carbon
$error_at
$id
public
int
$id
$openStackActivityLogName
public
static string
$openStackActivityLogName
= 'openstack'
$attributes
Default attributes
protected
array<string|int, mixed>
$attributes
= ['status' => \Athomos\Bennu\Modules\Cloud\OpenStack\Networking\Enums\RouterStatus::Created]
$casts
The attributes that should be casted
protected
array<string|int, string>
$casts
= ['status' => \Athomos\Bennu\Modules\Cloud\OpenStack\Networking\Enums\RouterStatus::class, 'routes' => 'array']
$fillable
The attributes that are mass assignable.
protected
array<int, string>
$fillable
= ['name']
$table
Table name
protected
string
$table
= self::table
Methods
belongsToDefaultDomain()
This function will return true if the model is under the default domain, false otherwise
public
belongsToDefaultDomain() : bool
Tags
Return values
bool —floatingIps()
public
floatingIps() : HasMany
Return values
HasMany —getActivitylogOptions()
Specifies which model properties should be logged in the activy log
public
getActivitylogOptions() : LogOptions
Return values
LogOptions —isOwner()
public
isOwner(AuthUser $authUser) : bool
Parameters
- $authUser : AuthUser
Return values
bool —isReadyToInsert()
Check if the model is consistent to be updated.
public
isReadyToInsert() : bool
Tags
Return values
bool —true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception
isReadyToUpdate()
Check if the model is consistent to be inserted and created
public
isReadyToUpdate() : bool
Tags
Return values
bool —true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception
networks()
public
networks() : BelongsToMany
Return values
BelongsToMany —project()
public
project() : BelongsTo
Return values
BelongsTo —publicNetwork()
public
publicNetwork() : BelongsTo
Return values
BelongsTo —retrieveDomain()
public
retrieveDomain() : Domain|null
Tags
Return values
Domain|null —_isReadyToInsert()
Check if the model is consistent to be updated.
protected
_isReadyToInsert() : bool
Return values
bool —true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception
_isReadyToUpdate()
Check if the model is consistent to be inserted and created
protected
_isReadyToUpdate() : bool
Tags
Return values
bool —true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception
boot()
Boot the model and register the events
protected
static boot() : void
Return values
void —newFactory()
Get the Factory Class
protected
static newFactory() : RouterFactory