Package com.cloudera.cdp.compute.api
Class ComputeClient
- java.lang.Object
-
- com.cloudera.cdp.client.CdpClient
-
- com.cloudera.cdp.compute.api.ComputeClient
-
@Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen", date="2023-09-14T10:47:20.312-07:00") public class ComputeClient extends CdpClient
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Fields inherited from class com.cloudera.cdp.client.CdpClient
NO_EXTENSION
-
-
Constructor Summary
Constructors Constructor Description ComputeClient(CdpCredentials credentials, String endPoint, CdpClientConfiguration clientConfiguration)
ComputeClient(CdpRequestContext<?> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeDeploymentResponse
describeDeployment(DescribeDeploymentRequest input)
Describes a deploymentprotected String
getRequestContentType()
Gets the request Content-Type, used by 'Conent-Type' request header.protected String
getResponseContentType()
Gets the expected response Content-Type, used by 'Accept' request header.protected String
getServiceName()
Gets the service name.ListClustersResponse
listClusters(ListClustersRequest input)
List compute clustersUpgradeDeploymentResponse
upgradeDeployment(UpgradeDeploymentRequest input)
Upgrades a deployment to a different chart.-
Methods inherited from class com.cloudera.cdp.client.CdpClient
invokeAPI, invokeAPI, invokeAPI, invokeAPI, parameterToPair, parameterToPairs, parameterToString, shutdown
-
-
-
-
Field Detail
-
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ComputeClient
public ComputeClient(CdpCredentials credentials, String endPoint, CdpClientConfiguration clientConfiguration)
-
ComputeClient
public ComputeClient(CdpRequestContext<?> context)
-
-
Method Detail
-
getServiceName
protected String getServiceName()
Description copied from class:CdpClient
Gets the service name.- Specified by:
getServiceName
in classCdpClient
- Returns:
- the service name
-
getRequestContentType
protected String getRequestContentType()
Description copied from class:CdpClient
Gets the request Content-Type, used by 'Conent-Type' request header.- Overrides:
getRequestContentType
in classCdpClient
- Returns:
- the request Content-Type
-
getResponseContentType
protected String getResponseContentType()
Description copied from class:CdpClient
Gets the expected response Content-Type, used by 'Accept' request header.- Overrides:
getResponseContentType
in classCdpClient
- Returns:
- the response Content-Type
-
describeDeployment
public DescribeDeploymentResponse describeDeployment(DescribeDeploymentRequest input)
Describes a deployment- Parameters:
input
-- Returns:
- DescribeDeploymentResponse
-
listClusters
public ListClustersResponse listClusters(ListClustersRequest input)
List compute clusters- Parameters:
input
-- Returns:
- ListClustersResponse
-
upgradeDeployment
public UpgradeDeploymentResponse upgradeDeployment(UpgradeDeploymentRequest input)
Upgrades a deployment to a different chart.- Parameters:
input
-- Returns:
- UpgradeDeploymentResponse
-
-