Class OSClientSession.OSClientSessionV2
- java.lang.Object
-
- org.openstack4j.openstack.internal.OSClientSession<OSClientSession.OSClientSessionV2,OSClient.OSClientV2>
-
- org.openstack4j.openstack.internal.OSClientSession.OSClientSessionV2
-
- All Implemented Interfaces:
EndpointTokenProvider
,OSClient<OSClient.OSClientV2>
,OSClient.OSClientV2
- Enclosing class:
- OSClientSession<R,T extends OSClient<T>>
public static class OSClientSession.OSClientSessionV2 extends OSClientSession<OSClientSession.OSClientSessionV2,OSClient.OSClientV2> implements OSClient.OSClientV2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.OSClientSession
OSClientSession.OSClientSessionV2, OSClientSession.OSClientSessionV3
-
Nested classes/interfaces inherited from interface org.openstack4j.api.OSClient
OSClient.OSClientV2, OSClient.OSClientV3
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OSClientSession.OSClientSessionV2
createSession(Access access)
static OSClientSession.OSClientSessionV2
createSession(Access access, Facing perspective, CloudProvider provider, Config config)
Access
getAccess()
Returns the Identity V2 Access object assigned during authenticationAuthVersion
getAuthVersion()
String
getEndpoint()
Gets the current endpoint of the Identity serviceString
getEndpoint(ServiceType service)
Gets the endpoint for the specified ServiceTypeSet<ServiceType>
getSupportedServices()
Gets the supported services.String
getTokenId()
Gets the token identifierIdentityService
identity()
Returns the Identity Service API V2-
Methods inherited from class org.openstack4j.openstack.internal.OSClientSession
artifact, barbican, blockStorage, compute, dns, gbp, getConfig, getCurrent, getHeaders, getPerspective, getProvider, headers, heat, images, imagesV2, magnum, murano, networking, objectStorage, octavia, perspective, placement, removeRegion, sahara, senlin, sfc, share, supportsBlockStorage, supportsCompute, supportsDNS, supportsHeat, supportsIdentity, supportsImage, supportsMurano, supportsNetwork, supportsObjectStorage, supportsPlacement, supportsShare, supportsTelemetry, supportsTelemetry_aodh, supportsTrove, tacker, telemetry, trove, useConfig, useRegion, workflow
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstack4j.api.OSClient
artifact, barbican, blockStorage, compute, dns, gbp, headers, heat, images, imagesV2, magnum, murano, networking, objectStorage, octavia, perspective, placement, removeRegion, sahara, senlin, sfc, share, supportsBlockStorage, supportsCompute, supportsHeat, supportsIdentity, supportsImage, supportsMurano, supportsNetwork, supportsObjectStorage, supportsShare, supportsTelemetry, tacker, telemetry, trove, useRegion, workflow
-
-
-
-
Method Detail
-
createSession
public static OSClientSession.OSClientSessionV2 createSession(Access access)
-
createSession
public static OSClientSession.OSClientSessionV2 createSession(Access access, Facing perspective, CloudProvider provider, Config config)
-
getAccess
public Access getAccess()
Description copied from interface:OSClient.OSClientV2
Returns the Identity V2 Access object assigned during authentication- Specified by:
getAccess
in interfaceOSClient.OSClientV2
- Returns:
- the Access object
-
getEndpoint
public String getEndpoint()
Description copied from interface:OSClient
Gets the current endpoint of the Identity service- Specified by:
getEndpoint
in interfaceOSClient<OSClient.OSClientV2>
- Returns:
- the endpoint
-
getAuthVersion
public AuthVersion getAuthVersion()
- Overrides:
getAuthVersion
in classOSClientSession<OSClientSession.OSClientSessionV2,OSClient.OSClientV2>
-
getEndpoint
public String getEndpoint(ServiceType service)
Gets the endpoint for the specified ServiceType- Specified by:
getEndpoint
in interfaceEndpointTokenProvider
- Parameters:
service
- the service to obtain the endpoint for- Returns:
- the endpoint
-
getTokenId
public String getTokenId()
Description copied from interface:EndpointTokenProvider
Gets the token identifier- Specified by:
getTokenId
in interfaceEndpointTokenProvider
- Returns:
- the auth token identifier
-
identity
public IdentityService identity()
Returns the Identity Service API V2- Specified by:
identity
in interfaceOSClient.OSClientV2
- Returns:
- the identity service version 2
-
getSupportedServices
public Set<ServiceType> getSupportedServices()
Description copied from interface:OSClient
Gets the supported services. A set of ServiceTypes will be returned identifying the OpenStack services installed and supported- Specified by:
getSupportedServices
in interfaceOSClient<OSClient.OSClientV2>
- Overrides:
getSupportedServices
in classOSClientSession<OSClientSession.OSClientSessionV2,OSClient.OSClientV2>
- Returns:
- the supported services
-
-