Documentation

Port extends AbstractBaseCloudModel
in package
Uses HasFactory, Notifiable, PowerJoins, SoftDeletes, FilterQueryString

Table of Contents

table  = "cloud_os_networking__ports"
Table name, as constant, used to avoid table name duplication across the source code base.
$  : string
$  : string
$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.
$filters  : array<string|int, mixed>
$table  : string
Table name
belongsToDefaultDomain()  : bool
This function will return true if the model is under the default domain, false otherwise
fixed_ips()  : HasMany
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
network()  : BelongsTo
retrieveDomain()  : Domain|null
server()  : BelongsTo
_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()  : PortFactory
Get the Factory Class

Constants

table

Table name, as constant, used to avoid table name duplication across the source code base.

public mixed table = "cloud_os_networking__ports"
Tags
const

string

Properties

$

public string $

device_owner

$

public string $

device_id

$openStackActivityLogName

public static string $openStackActivityLogName = 'openstack'

$attributes

Default attributes

protected array<string|int, mixed> $attributes = ['status' => \Athomos\Bennu\Modules\Cloud\OpenStack\Networking\Enums\PortStatus::Created]

$casts

The attributes that should be casted

protected array<string|int, string> $casts = ['status' => \Athomos\Bennu\Modules\Cloud\OpenStack\Networking\Enums\PortStatus::class, 'allowed_address_pairs' => 'array']

$fillable

The attributes that are mass assignable.

protected array<int, string> $fillable = ['name']

$filters

protected array<string|int, mixed> $filters = ['server_id']

$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
throws
NotImplementedException
Return values
bool

fixed_ips()

public fixed_ips() : HasMany
Return values
HasMany

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
throws
ReporterException
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
throws
ReporterException
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

network()

public network() : BelongsTo
Return values
BelongsTo

retrieveDomain()

public retrieveDomain() : Domain|null
Tags
inheritDoc
Return values
Domain|null

server()

public server() : BelongsTo
Return values
BelongsTo

_isReadyToInsert()

Check if the model is consistent to be updated.

protected _isReadyToInsert() : bool
Tags
throws
PortWithoutNetworkException
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
throws
ReporterException
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

Search results