PHP Класс Scalr\Service\OpenStack\Services\AbstractService

С версии: 04.12.2012
Автор: Vitaliy Demidov ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
getOriginalServiceName ( string $class ) : string Gets an original service name

Описание методов

__construct() публичный метод

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

__get() публичный метод

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

getApiHandler() публичный метод

Gets an API Handler for the service
public getApiHandler ( ) : object
Результат object Returns an API Handler for the service

getAvailableHandlers() публичный метод

Gets the list of available handlers
public getAvailableHandlers ( ) : array
Результат array Returns the list of available handlers

getEndpointUrl() публичный метод

Gets endpoint url.
public getEndpointUrl ( ) : string
Результат string Returns Endpoint url without trailing slash

getName() публичный статический метод

Returned name must start with the lower case letter.
public static getName ( ) : string
Результат string Returns service interface name.

getOpenStack() публичный метод

Gets an OpenStack instance
public getOpenStack ( ) : OpenStack
Результат Scalr\Service\OpenStack\OpenStack Returns OpenStack instance

getOriginalServiceName() защищенный статический метод

Gets an original service name
protected static getOriginalServiceName ( string $class ) : string
$class string A Service class name
Результат string Returns service name or NULL if class is not a service.

getSupportedVersions() публичный метод

getTenantId() публичный метод

Gets an identifier of the tenant for current authenticated token
public getTenantId ( ) : string
Результат string Gets an identifier of the tenant

getVersion() публичный метод

public getVersion ( )

isExtensionSupported() публичный метод

Checks whether given extension is supported by the service.
public isExtensionSupported ( StringType | string $extensionName ) : boolean
$extensionName StringType | string An extension name
Результат boolean Returns true if an extension is supported.

listExtensions() публичный метод

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
Результат array Returns list of available extensions

setVersion() публичный метод

public setVersion ( $version )