public static class OSClientBuilder.ClientV2 extends OSClientBuilder<OSClient,IOSClientBuilder.V2> implements IOSClientBuilder.V2
OSClientBuilder.ClientV2, OSClientBuilder.ClientV3IOSClientBuilder.V2, IOSClientBuilder.V3| Constructor and Description |
|---|
ClientV2() |
| Modifier and Type | Method and Description |
|---|---|
OSClient |
authenticate()
Attempts to connect, authenticated and obtain an authorization access entity which contains a token, service catalog and endpoints
from the controller.
|
OSClientBuilder.ClientV2 |
tenantId(String tenantId)
The tenant/project to authenticate as (some clouds such as HP use tenantId vs tenantName)
|
OSClientBuilder.ClientV2 |
tenantName(String tenantName)
The tenant/project to authenticate as
|
credentials, endpoint, perspective, useNonStrictSSLClient, withConfigequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcredentials, endpoint, perspective, useNonStrictSSLClient, withConfigpublic OSClientBuilder.ClientV2 tenantName(String tenantName)
IOSClientBuilder.V2tenantName in interface IOSClientBuilder.V2tenantName - the tenant/project namepublic OSClientBuilder.ClientV2 tenantId(String tenantId)
IOSClientBuilder.V2tenantId in interface IOSClientBuilder.V2tenantId - the tenant/project idpublic OSClient authenticate() throws AuthenticationException
IOSClientBuilderauthenticate in interface IOSClientBuilder<OSClient,IOSClientBuilder.V2>AuthenticationException - if the credentials or default tenant is invalid