PHP 클래스 Scalr\Service\OpenStack\Services\AbstractService

부터: 04.12.2012
저자: Vitaliy Demidov ([email protected])
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 메소드들

메소드 설명
__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 )