Package com.dtsx.astra.sdk.streaming
Class AstraStreamingClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.streaming.AstraStreamingClient
Group resources of streaming (tenants, providers).
- Author:
- Cedrick LUNVEN (@clunven)
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, token
-
Constructor Summary
ConstructorDescriptionAstraStreamingClient
(String token) As immutable object use builder to initiate the object.AstraStreamingClient
(String token, ApiLocator.AstraEnvironment env) As immutable object use builder to initiate the object. -
Method Summary
Modifier and TypeMethodDescriptionclusters()
Operation on Streaming Clusters.void
create
(CreateTenant ct) Syntax sugar to helpvoid
Deleting a tenant and cluster.boolean
Check if a role is presentFind a tenant from ids name.findAll()
List tenants in the current instance.Assess a tenant exist and retrieve information.Endpoint to access schema for namespace.Endpoint to access schema for namespace.getEndpointCluster
(String tenantName, String clusterId) Endpoint to access cluster.getEndpointTenant
(String tenantId) Endpoint to access dbs.Operation on Streaming Clusters.regions()
Operation on Streaming regions.Access methods for a tenant.Methods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getToken, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
AstraStreamingClient
As immutable object use builder to initiate the object.- Parameters:
token
- authenticated token
-
AstraStreamingClient
As immutable object use builder to initiate the object.- Parameters:
env
- define target environment to be usedtoken
- authenticated token
-
-
Method Details
-
findAll
List tenants in the current instance.- Returns:
- list of tenants.
-
find
Find a tenant from ids name.- Parameters:
tenantName
- name of the tenant- Returns:
- tenant
-
get
Assess a tenant exist and retrieve information.- Parameters:
tenantName
- name of the tenant- Returns:
- tenant reference
-
create
Syntax sugar to help- Parameters:
ct
- creation request for tenant
-
delete
Deleting a tenant and cluster.- Parameters:
tenantName
- name of the tenant
-
exist
Check if a role is present- Parameters:
tenantName
- name of the tenant- Returns:
- if the tenant exist
-
tenant
Access methods for a tenant.- Parameters:
tenantName
- current tenant- Returns:
- client for a tenant
-
clusters
Operation on Streaming Clusters.- Returns:
- streaming cluster client
-
providers
Operation on Streaming Clusters.- Returns:
- streaming cluster client
-
regions
Operation on Streaming regions.- Returns:
- streaming cluster client
-
getApiDevopsEndpointStreaming
Endpoint to access schema for namespace.- Returns:
- endpoint
-
getApiDevopsEndpointTenants
Endpoint to access schema for namespace.- Returns:
- endpoint
-
getEndpointTenant
Endpoint to access dbs.- Parameters:
tenantId
- identifier for tenant- Returns:
- database endpoint
-
getEndpointCluster
Endpoint to access cluster.- Parameters:
tenantName
- name of the tenantclusterId
- identifier for the cluster.- Returns:
- database endpoint
-