Documentation

Project extends AbstractBaseCloudModel
in package
Uses HasFactory, Notifiable, PowerJoins, SoftDeletes

Table of Contents

table  = "cloud_os_identity__projects"
Table name, as constant, used to avoid table name duplication across the source code base.
$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
applicationCredentials()  : HasMany
belongsToDefaultDomain()  : bool
This function will return true if the model is under the default domain, false otherwise
billingEntries()  : MorphMany
The entries for which this project is the main owner
blockStorageQuotas()  : HasMany
computeQuotas()  : HasMany
containers()  : HasMany
countPerAuthUser()  : int
This function will return the number of projects for a given AuthUser (Login crendentials) in the system
credentials()  : HasMany
domain()  : BelongsTo
floatingIps()  : HasMany
getActivitylogOptions()  : LogOptions
Specifies which model properties should be logged in the activy log
getCustomerProduct()  : CustomerProduct|null
images()  : HasMany
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
loadBalancerHealthMonitors()  : HasMany
loadBalancerListeners()  : HasMany
loadBalancerPools()  : HasMany
loadBalancers()  : HasMany
networkingQuotas()  : HasMany
networks()  : HasMany
policies()  : HasMany
productOpenStack()  : BelongsTo
projectUserRoles()  : HasMany
retrieveDomain()  : Domain|null
routers()  : HasMany
securityGroups()  : HasMany
servers()  : HasMany
user()  : HasOne
volumes()  : HasMany
whereAuthUser()  : array<string|int, Project>|Collection
This function will return all project for a given AuthUser (Login crendentials) in the system
_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()  : ProjectFactory
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_identity__projects"
Tags
const

string

Properties

$openStackActivityLogName

public static string $openStackActivityLogName = 'openstack'

$attributes

Default attributes

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

$casts

The attributes that should be casted

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

$fillable

The attributes that are mass assignable.

protected array<int, string> $fillable = ['name', 'label', 'description', 'domain_id', 'product_open_stack_id']

$table

Table name

protected string $table = self::table

Methods

applicationCredentials()

public applicationCredentials() : HasMany
Return values
HasMany

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

billingEntries()

The entries for which this project is the main owner

public billingEntries() : MorphMany
Return values
MorphMany

blockStorageQuotas()

public blockStorageQuotas() : HasMany
Return values
HasMany

computeQuotas()

public computeQuotas() : HasMany
Return values
HasMany

containers()

public containers() : HasMany
Return values
HasMany

countPerAuthUser()

This function will return the number of projects for a given AuthUser (Login crendentials) in the system

public countPerAuthUser(AuthUser $authUser) : int
Parameters
$authUser : AuthUser
Return values
int

credentials()

public credentials() : HasMany
Return values
HasMany

domain()

public domain() : BelongsTo
Return values
BelongsTo

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

images()

public images() : HasMany
Return values
HasMany

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

loadBalancerHealthMonitors()

public loadBalancerHealthMonitors() : HasMany
Return values
HasMany

loadBalancerListeners()

public loadBalancerListeners() : HasMany
Return values
HasMany

loadBalancerPools()

public loadBalancerPools() : HasMany
Return values
HasMany

loadBalancers()

public loadBalancers() : HasMany
Return values
HasMany

networkingQuotas()

public networkingQuotas() : HasMany
Return values
HasMany

networks()

public networks() : HasMany
Return values
HasMany

policies()

public policies() : HasMany
Return values
HasMany

productOpenStack()

public productOpenStack() : BelongsTo
Return values
BelongsTo

projectUserRoles()

public projectUserRoles() : HasMany
Return values
HasMany

retrieveDomain()

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

routers()

public routers() : HasMany
Return values
HasMany

securityGroups()

public securityGroups() : HasMany
Return values
HasMany

servers()

public servers() : HasMany
Return values
HasMany

user()

public user() : HasOne
Return values
HasOne

volumes()

public volumes() : HasMany
Return values
HasMany

whereAuthUser()

This function will return all project for a given AuthUser (Login crendentials) in the system

public whereAuthUser(AuthUser $authUser[, mixed $withTrashed = false ]) : array<string|int, Project>|Collection
Parameters
$authUser : AuthUser
$withTrashed : mixed = false
Tags
params

bool $withTrashed

Return values
array<string|int, Project>|Collection

_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
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