Package com.dtsx.astra.sdk.db
Class DbAccessListsClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.db.DbAccessListsClient
Operations on Access List.
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, token
-
Constructor Summary
ConstructorDescriptionDbAccessListsClient
(String token, ApiLocator.AstraEnvironment env, String databaseId) As immutable object use builder to initiate the object.DbAccessListsClient
(String token, String databaseId) As immutable object use builder to initiate the object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAddress
(AccessListAddressRequest... newAddressed) Create a new Address for the DB.void
delete()
Delete the addresses List.get()
Retrieve the access list for a DB.Endpoint to access schema for namespace.void
replaceAddresses
(AccessListAddressRequest... addresses) Replace the addresses for a DBvoid
update
(AccessListAddressRequest... addresses) Replace the addresses for a DBMethods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getToken, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
DbAccessListsClient
As immutable object use builder to initiate the object.- Parameters:
token
- authenticated token
-
DbAccessListsClient
As immutable object use builder to initiate the object.- Parameters:
env
- define target environment to be usedtoken
- authenticated token
-
-
Method Details
-
get
Retrieve the access list for a DB.- Returns:
- current access list
-
addAddress
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
Replace the addresses for a DB- Parameters:
addresses
- address to be added- See Also:
-
update
Replace the addresses for a DB- Parameters:
addresses
- address to be updated- See Also:
-
getApiDevopsEndpointAccessListsDb
Endpoint to access schema for namespace.- Returns:
- endpoint
-