Class DbAccessListsClient

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

public class DbAccessListsClient extends AbstractApiClient
Operations on Access List.
  • Constructor Details

    • DbAccessListsClient

      public DbAccessListsClient(String token, String databaseId)
      As immutable object use builder to initiate the object.
      Parameters:
      token - authenticated token
      databaseId - database identifier
    • DbAccessListsClient

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

    • get

      public AccessList get()
      Retrieve the access list for a DB.
      Returns:
      current access list
    • addAddress

      public void addAddress(AccessListAddressRequest... newAddressed)
      Create a new Address for the DB.
      Parameters:
      newAddressed - address to be added
      See Also:
    • delete

      public void delete()
      Delete the addresses List.
      See Also:
    • replaceAddresses

      public void replaceAddresses(AccessListAddressRequest... addresses)
      Replace the addresses for a DB
      Parameters:
      addresses - address to be added
      See Also:
    • update

      public void update(AccessListAddressRequest... addresses)
      Replace the addresses for a DB
      Parameters:
      addresses - address to be updated
      See Also:
    • getApiDevopsEndpointAccessListsDb

      public String getApiDevopsEndpointAccessListsDb()
      Endpoint to access schema for namespace.
      Returns:
      endpoint