Package com.dtsx.astra.sdk.db
Class DbPrivateLinksClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.db.DbPrivateLinksClient
Delegate private link operations.
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, observers, token -
Constructor Summary
ConstructorsConstructorDescriptionDbPrivateLinksClient(String token, AstraEnvironment env, String databaseId) As immutable object use builder to initiate the object.DbPrivateLinksClient(String token, String databaseId) As immutable object use builder to initiate the object. -
Method Summary
Modifier and TypeMethodDescriptionvoidTODO Accept a private endpoint connection.voidcreatePrincipal(String region) TODO Add an allowed principal to the service.voidTODO Delete private endpoint connection.voidfindAll()TODO Get info about all private endpoint connections for a specific databasevoidTODO Get info about private endpoints in a region.TODO Get a specific endpoint.Provide a service Name.voidTODO Update private endpoint description.Methods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getOperationName, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
DbPrivateLinksClient
As immutable object use builder to initiate the object.- Parameters:
token- authenticated tokendatabaseId- database identifier
-
DbPrivateLinksClient
As immutable object use builder to initiate the object.- Parameters:
token- authenticated tokenenv- define target environment to be useddatabaseId- database identifier
-
-
Method Details
-
getServiceName
Provide a service Name.- Specified by:
getServiceNamein classAbstractApiClient- Returns:
- service name
-
findAll
public void findAll()TODO Get info about all private endpoint connections for a specific database -
findAll
TODO Get info about private endpoints in a region.- Parameters:
region- current region where add the private link
-
createPrincipal
TODO Add an allowed principal to the service.- Parameters:
region- region where add the principal Configure a private endpoint connection by providing the allowed principal to connect with
-
create
TODO Accept a private endpoint connection.- Parameters:
region- region where add the private endpoint
-
findById
TODO Get a specific endpoint.- Parameters:
region- current regionendpointId- endpoint id fo the region- Returns:
- the private endpoint of exist
-
update
TODO Update private endpoint description.- Parameters:
region- current regionendpointId- endpoint id fo the regionendpoint- new value for the endpoint
-
delete
TODO Delete private endpoint connection.- Parameters:
region- current regionendpointId- endpoint id fo the region
-