Package com.dtsx.astra.sdk.db
Class DbRegionsClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.db.DbRegionsClient
Group operation to list db regions
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Get Available Regions.static final String
Get Available Regions.static final com.fasterxml.jackson.core.type.TypeReference<List<DatabaseRegion>>
List of regions.Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, token
-
Constructor Summary
ConstructorDescriptionDbRegionsClient
(String token) As immutable object use builder to initiate the object.DbRegionsClient
(String token, ApiLocator.AstraEnvironment env) As immutable object use builder to initiate the object. -
Method Summary
Modifier and TypeMethodDescriptionfindAll()
Returns supported regions and availability for a given user and organizationMap regions from plain list to Tier/Cloud/Region Structure.List serverless regions.Methods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getToken, HEAD, PATCH, POST, POST, PUT
-
Field Details
-
PATH_REGIONS
Get Available Regions.- See Also:
-
PATH_REGIONS_SERVERLESS
Get Available Regions.- See Also:
-
TYPE_LIST_REGION
public static final com.fasterxml.jackson.core.type.TypeReference<List<DatabaseRegion>> TYPE_LIST_REGIONList of regions.
-
-
Constructor Details
-
DbRegionsClient
As immutable object use builder to initiate the object.- Parameters:
token
- authenticated token
-
DbRegionsClient
As immutable object use builder to initiate the object.- Parameters:
env
- define target environment to be usedtoken
- authenticated token
-
-
Method Details
-
findAll
Returns supported regions and availability for a given user and organization- Returns:
- supported regions and availability
-
findAllServerless
List serverless regions.- Returns:
- serverless region
-
findAllAsMap
Map regions from plain list to Tier/Cloud/Region Structure.- Returns:
- regions organized by cloud providers
-