Documentation

SecurityGroupManager extends SecurityGroupManagerAbstraction
in package

Table of Contents

$errorLogName  : string
$warningLogName  : string
$apiVersion  : string
API Version
$authenticationManager  : AuthenticationManager
The authentication manager, used to interact with Open Stack APIs
$jobsLogName  : string
The name of the log in which we are going to log actions performed by jobs
$securityGroupDefaults  : array<string|int, mixed>
$securityGroupUseDefaults  : bool
__construct()  : mixed
The Service constructor
delete()  : bool
fetchAllByProject()  : bool
fromOpenStack()  : SecurityGroup
Fill model from OpenStack
getAuthenticationManager()  : AuthenticationManager
getOpenStackSecurityGroup()  : SecurityGroup
hasChanged()  : bool
import()  : SecurityGroup
list()  : Generator
logEntry()  : Activity
logEntryWithoutModel()  : Activity
logError()  : Activity
logWarning()  : Activity
refresh()  : bool
retrieveOrImport()  : SecurityGroup
setAuthenticationManager()  : OpenStackObjectManager
setDefaultRules()  : SecurityGroup
setDefaultsPerProject()  : bool
toOpenStack()  : SecurityGroup
Fill OpenStack from Model
toOpenStackArray()  : array<string|int, mixed>
Return an array to be used vs OpenStack
log()  : array<string|int, Activity>
create()  : void
getSecurityGroupService()  : Service
update()  : void

Properties

$warningLogName

public static string $warningLogName = "warning"

$jobsLogName

The name of the log in which we are going to log actions performed by jobs

protected string $jobsLogName = "jobs"

Methods

list()

public list([array<string|int, mixed>|null $options = null ]) : Generator
Parameters
$options : array<string|int, mixed>|null = null
Return values
Generator

logEntry()

public static logEntry(Model $model, array<string|int, mixed> $properties, string $description, string $event, string $logName) : Activity
Parameters
$model : Model
$properties : array<string|int, mixed>
$description : string
$event : string
$logName : string
Return values
Activity

logEntryWithoutModel()

public static logEntryWithoutModel(array<string|int, mixed> $properties, string $description, string $event, string $logName) : Activity
Parameters
$properties : array<string|int, mixed>
$description : string
$event : string
$logName : string
Return values
Activity

logError()

public static logError(Model $model, array<string|int, mixed> $properties, string $description, string $event) : Activity
Parameters
$model : Model
$properties : array<string|int, mixed>
$description : string
$event : string
Return values
Activity

logWarning()

public static logWarning(Model $model, array<string|int, mixed> $properties, string $description, string $event) : Activity
Parameters
$model : Model
$properties : array<string|int, mixed>
$description : string
$event : string
Return values
Activity

refresh()

public refresh(SecurityGroup $securityGroup[, OperatorResource|null $openStackSecurityGroup = null ]) : bool
Parameters
$securityGroup : SecurityGroup
$openStackSecurityGroup : OperatorResource|null = null
Return values
bool

toOpenStack()

Fill OpenStack from Model

public toOpenStack(SecurityGroup $securityGroup, SecurityGroup $openStackSecurityGroup) : SecurityGroup
Parameters
$securityGroup : SecurityGroup
$openStackSecurityGroup : SecurityGroup
Return values
SecurityGroup

toOpenStackArray()

Return an array to be used vs OpenStack

public toOpenStackArray(SecurityGroup $securityGroup) : array<string|int, mixed>
Parameters
$securityGroup : SecurityGroup
Return values
array<string|int, mixed>

log()

protected log(Model|array<string|int, mixed> $models, array<string|int, mixed> $properties, string $description[, null $logName = null ]) : array<string|int, Activity>
Parameters
$models : Model|array<string|int, mixed>
$properties : array<string|int, mixed>
$description : string
$logName : null = null
Return values
array<string|int, Activity>

getSecurityGroupService()

private getSecurityGroupService() : Service
Return values
Service

Search results