ApplicationCredentialManager
extends ApplicationCredentialManagerAbstraction
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
- $defaultAccessRulesYaml : string|null
- This holds the relative path to the yaml file that contains default access_rules definition, if any
- __construct() : mixed
- delete() : bool
- fromOpenStack() : ApplicationCredential
- Fill model from OpenStack
- getAuthenticationManager() : AuthenticationManager
- getOpenStackApplicationCredential() : ApplicationCredential
- hasChanged() : bool
- import() : ApplicationCredential
- list() : Generator
- logEntry() : Activity
- logEntryWithoutModel() : Activity
- logError() : Activity
- logWarning() : Activity
- refresh() : bool
- retrieveOrImport() : ApplicationCredential
- setAuthenticationManager() : OpenStackObjectManager
- toOpenStackArray() : array<string|int, mixed>
- Prepare an array to be used vs OpenStack
- log() : array<string|int, Activity>
- create() : void
- getIdentityService() : Service
Properties
$errorLogName
public
static string
$errorLogName
= "error"
$warningLogName
public
static string
$warningLogName
= "warning"
$apiVersion
API Version
protected
static string
$apiVersion
= 'v1'
$authenticationManager
The authentication manager, used to interact with Open Stack APIs
protected
AuthenticationManager
$authenticationManager
$jobsLogName
The name of the log in which we are going to log actions performed by jobs
protected
string
$jobsLogName
= "jobs"
$defaultAccessRulesYaml
This holds the relative path to the yaml file that contains default access_rules definition, if any
private
string|null
$defaultAccessRulesYaml
= null
Methods
__construct()
public
__construct(AuthenticationManager $authenticationManager) : mixed
Parameters
- $authenticationManager : AuthenticationManager
Return values
mixed —delete()
public
delete(ApplicationCredential $applicationCredential) : bool
Parameters
- $applicationCredential : ApplicationCredential
Return values
bool —fromOpenStack()
Fill model from OpenStack
public
fromOpenStack(ApplicationCredential $applicationCredential, ApplicationCredential $openStackApplicationCredential) : ApplicationCredential
Parameters
- $applicationCredential : ApplicationCredential
- $openStackApplicationCredential : ApplicationCredential
Tags
Return values
ApplicationCredential —getAuthenticationManager()
public
getAuthenticationManager() : AuthenticationManager
Return values
AuthenticationManager —getOpenStackApplicationCredential()
public
getOpenStackApplicationCredential(string $userId, string $id[, bool $retrieve = false ]) : ApplicationCredential
Parameters
- $userId : string
- $id : string
- $retrieve : bool = false
Return values
ApplicationCredential —hasChanged()
public
hasChanged(ApplicationCredential $applicationCredential) : bool
Parameters
- $applicationCredential : ApplicationCredential
Tags
Return values
bool —import()
public
import(string $user_external_id, string $external_id) : ApplicationCredential
Parameters
- $user_external_id : string
- $external_id : string
Return values
ApplicationCredential —list()
public
list(array<string|int, mixed> $options) : Generator
Parameters
- $options : array<string|int, mixed>
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(ApplicationCredential $applicationCredential[, ApplicationCredential|OperatorResource|null $openStackApplicationCredential = null ]) : bool
Parameters
- $applicationCredential : ApplicationCredential
- $openStackApplicationCredential : ApplicationCredential|OperatorResource|null = null
Return values
bool —retrieveOrImport()
public
retrieveOrImport(string $user_external_id, string $external_id[, bool $refresh = false ]) : ApplicationCredential
Parameters
- $user_external_id : string
- $external_id : string
- $refresh : bool = false
Return values
ApplicationCredential —setAuthenticationManager()
public
setAuthenticationManager([AuthenticationManager|null $authenticationManager = null ]) : OpenStackObjectManager
Parameters
- $authenticationManager : AuthenticationManager|null = null
Return values
OpenStackObjectManager —toOpenStackArray()
Prepare an array to be used vs OpenStack
public
toOpenStackArray(ApplicationCredential $applicationCredential) : array<string|int, mixed>
Parameters
- $applicationCredential : ApplicationCredential
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> —create()
private
create(ApplicationCredential $applicationCredential) : void
Parameters
- $applicationCredential : ApplicationCredential
Tags
Return values
void —getIdentityService()
private
getIdentityService() : Service