PHP Class Scalr\Service\OpenStack\Services\AbstractService

Since: 04.12.2012
Author: Vitaliy Demidov ([email protected])
Afficher le fichier Open project: scalr/scalr Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( OpenStack $openstack ) Constructor
__get ( string $name ) Used to retrieve service handlers
getApiHandler ( ) : object Gets an API Handler for the service
getAvailableHandlers ( ) : array Gets the list of available handlers
getEndpointUrl ( ) : string Gets endpoint url.
getName ( ) : string Gets service interface name.
getOpenStack ( ) : OpenStack Gets an OpenStack instance
getSupportedVersions ( )
getTenantId ( ) : string Gets an identifier of the tenant for current authenticated token
getVersion ( )
isExtensionSupported ( StringType | string $extensionName ) : boolean Checks whether given extension is supported by the service.
listExtensions ( ) : array List Extensions action
setVersion ( $version )

Méthodes protégées

Méthode Description
getOriginalServiceName ( string $class ) : string Gets an original service name

Method Details

__construct() public méthode

Constructor
public __construct ( OpenStack $openstack )
$openstack Scalr\Service\OpenStack\OpenStack

__get() public méthode

Used to retrieve service handlers
public __get ( string $name )
$name string

getApiHandler() public méthode

Gets an API Handler for the service
public getApiHandler ( ) : object
Résultat object Returns an API Handler for the service

getAvailableHandlers() public méthode

Gets the list of available handlers
public getAvailableHandlers ( ) : array
Résultat array Returns the list of available handlers

getEndpointUrl() public méthode

Gets endpoint url.
public getEndpointUrl ( ) : string
Résultat string Returns Endpoint url without trailing slash

getName() public static méthode

Returned name must start with the lower case letter.
public static getName ( ) : string
Résultat string Returns service interface name.

getOpenStack() public méthode

Gets an OpenStack instance
public getOpenStack ( ) : OpenStack
Résultat Scalr\Service\OpenStack\OpenStack Returns OpenStack instance

getOriginalServiceName() protected static méthode

Gets an original service name
protected static getOriginalServiceName ( string $class ) : string
$class string A Service class name
Résultat string Returns service name or NULL if class is not a service.

getSupportedVersions() public méthode

getTenantId() public méthode

Gets an identifier of the tenant for current authenticated token
public getTenantId ( ) : string
Résultat string Gets an identifier of the tenant

getVersion() public méthode

public getVersion ( )

isExtensionSupported() public méthode

Checks whether given extension is supported by the service.
public isExtensionSupported ( StringType | string $extensionName ) : boolean
$extensionName StringType | string An extension name
Résultat boolean Returns true if an extension is supported.

listExtensions() public méthode

This operation returns a response body. In the response body, each extension is identified by two unique identifiers, a namespace and an alias. Additionally an extension contains documentation links in various formats
public listExtensions ( ) : array
Résultat array Returns list of available extensions

setVersion() public méthode

public setVersion ( $version )