Package com.dtsx.astra.sdk.streaming
Class ClustersClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.streaming.ClustersClient
Client to work with clusters.
- Author:
- Cedrick LUNVEN (@clunven)
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, token
-
Constructor Summary
ConstructorDescriptionClustersClient
(String token) As immutable object use builder to initiate the object.ClustersClient
(String token, ApiLocator.AstraEnvironment env) As immutable object use builder to initiate the object. -
Method Summary
Methods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getToken, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
ClustersClient
As immutable object use builder to initiate the object.- Parameters:
token
- authenticated token
-
ClustersClient
As immutable object use builder to initiate the object.- Parameters:
env
- define target environment to be usedtoken
- authenticated token
-
-
Method Details
-
findAll
Operations on clusters.- Returns:
- list clusters.
-
find
Find a tenant from ids name.- Parameters:
clusterName
- name fo the cluster- Returns:
- tenant
-
exist
Check if a role is present- Parameters:
clusterName
- name fo the cluster- Returns:
- if the tenant exist
-
getApiDevopsEndpointClusters
Endpoint to access schema for namespace.- Returns:
- endpoint
-