Class DbRegionsClient

java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.db.DbRegionsClient

public class DbRegionsClient extends AbstractApiClient
Group operation to list db regions
  • Field Details

    • PATH_REGIONS

      public static final String PATH_REGIONS
      Get Available Regions.
      See Also:
    • PATH_REGIONS_SERVERLESS

      public static final String PATH_REGIONS_SERVERLESS
      Get Available Regions.
      See Also:
    • TYPE_LIST_REGION

      public static final com.fasterxml.jackson.core.type.TypeReference<List<DatabaseRegion>> TYPE_LIST_REGION
      List of regions.
  • Constructor Details

    • DbRegionsClient

      public DbRegionsClient(String token)
      As immutable object use builder to initiate the object.
      Parameters:
      token - authenticated token
    • DbRegionsClient

      public DbRegionsClient(String token, ApiLocator.AstraEnvironment env)
      As immutable object use builder to initiate the object.
      Parameters:
      env - define target environment to be used
      token - authenticated token
  • Method Details

    • findAll

      public Stream<DatabaseRegion> findAll()
      Returns supported regions and availability for a given user and organization
      Returns:
      supported regions and availability
    • findAllServerless

      public Stream<DatabaseRegionServerless> findAllServerless()
      List serverless regions.
      Returns:
      serverless region
    • findAllAsMap

      public Map<String,Map<CloudProviderType,List<DatabaseRegion>>> findAllAsMap()
      Map regions from plain list to Tier/Cloud/Region Structure.
      Returns:
      regions organized by cloud providers