public class OSClientSession extends Object implements OSClient, EndpointTokenProvider
| Modifier and Type | Method and Description |
|---|---|
BlockStorageService |
blockStorage()
Returns the Block Storage Service API
|
ComputeService |
compute()
Returns the Compute Service API
|
static OSClientSession |
createSession(Access access) |
static OSClientSession |
createSession(Access access,
Facing perspective,
Config config) |
Access |
getAccess() |
Config |
getConfig() |
static OSClientSession |
getCurrent() |
String |
getEndpoint()
Gets the current endpoint of the Identity service
|
String |
getEndpoint(ServiceType service)
Gets the endpoint for the specified ServiceType
|
Facing |
getPerspective() |
Set<ServiceType> |
getSupportedServices()
Gets the supported services.
|
Token |
getToken()
Gets the token that was assigned during authorization
|
String |
getTokenId()
Gets the token identifier
|
HeatService |
heat()
Returns the Heat Service API
|
IdentityService |
identity()
Returns the Identity Service API
|
ImageService |
images()
Returns the Image Service API
|
NetworkingService |
networking()
Returns the Networking Service API
|
ObjectStorageService |
objectStorage()
Returns the Object Storage Service API
|
OSClient |
perspective(Facing perspective)
Changes the Perspective for the current Session (Client)
|
OSClient |
removeRegion()
Removes the current region making all calls no longer resolving to region (if originally set otherwise no-op)
|
SaharaService |
sahara()
Returns the Sahara Service API
|
boolean |
supportsBlockStorage()
Determines if the Block Storage (Cinder) service is supported
|
boolean |
supportsCompute()
Determines if the Compute (Nova) service is supported
|
boolean |
supportsHeat()
Determines if the Orchestration (Heat) service is supported
|
boolean |
supportsIdentity()
Determines if the Identity (Keystone) service is supported
|
boolean |
supportsImage()
Determines if the Image (Glance) service is supported
|
boolean |
supportsNetwork()
Determines if the Network (Neutron) service is supported
|
boolean |
supportsObjectStorage()
Determines if the Object Storage (Swift) service is supported
|
TelemetryService |
telemetry()
Returns the Telemetry Service API
|
OSClient |
useRegion(String region)
Specifies the region that should be used for further invocations with this client.
|
public static OSClientSession createSession(Access access)
public static OSClientSession createSession(Access access, Facing perspective, Config config)
public static OSClientSession getCurrent()
public OSClient useRegion(String region)
RegionEndpointNotFoundException will be
thrownpublic OSClient removeRegion()
removeRegion in interface OSClientpublic Set<ServiceType> getSupportedServices()
getSupportedServices in interface OSClientpublic Facing getPerspective()
public boolean supportsCompute()
supportsCompute in interface OSClientpublic boolean supportsIdentity()
supportsIdentity in interface OSClientpublic boolean supportsNetwork()
supportsNetwork in interface OSClientpublic boolean supportsImage()
supportsImage in interface OSClientpublic boolean supportsHeat()
supportsHeat in interface OSClientpublic boolean supportsBlockStorage()
supportsBlockStorage in interface OSClientpublic boolean supportsObjectStorage()
supportsObjectStorage in interface OSClientpublic Token getToken()
public String getEndpoint()
getEndpoint in interface OSClientpublic String getEndpoint(ServiceType service)
getEndpoint in interface EndpointTokenProviderservice - the service to obtain the endpoint forpublic Config getConfig()
public String getTokenId()
getTokenId in interface EndpointTokenProviderpublic IdentityService identity()
public ComputeService compute()
public NetworkingService networking()
networking in interface OSClientpublic ImageService images()
public Access getAccess()
public BlockStorageService blockStorage()
blockStorage in interface OSClientpublic TelemetryService telemetry()
public HeatService heat()
public ObjectStorageService objectStorage()
objectStorage in interface OSClientpublic SaharaService sahara()
public OSClient perspective(Facing perspective)
OSClientperspective in interface OSClientperspective - the new perspective