Package com.cloudera.cdp.opdb.api
Class OpdbClient
java.lang.Object
com.cloudera.cdp.client.CdpClient
com.cloudera.cdp.opdb.api.OpdbClient
@Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen",
date="2024-09-27T08:40:27.282-07:00")
public class OpdbClient
extends CdpClient
-
Field Summary
Fields inherited from class com.cloudera.cdp.client.CdpClient
NO_EXTENSION
-
Constructor Summary
ConstructorDescriptionOpdbClient
(CdpCredentials credentials, String endPoint, CdpClientConfiguration clientConfiguration) OpdbClient
(CdpRequestContext<?> context) -
Method Summary
Modifier and TypeMethodDescriptionCollect diagnostic data bundles from the databaseCreate opDbReturns client connectivity detailsDescribe a opDbDescribes the upgrade availability.dropDatabase
(DropDatabaseRequest input) drop a opDbprotected String
Gets the request Content-Type, used by 'Conent-Type' request header.protected String
Gets the expected response Content-Type, used by 'Accept' request header.protected String
Gets the service name.List all opDbs in an environmentList all diagnostics associated to the databaseList of environments available for the database creationStarts the databasestopDatabase
(StopDatabaseRequest input) Stops the databaseUpdates the databaseUpgrades the database.Methods inherited from class com.cloudera.cdp.client.CdpClient
invokeAPI, invokeAPI, invokeAPI, invokeAPI, parameterToPair, parameterToPairs, parameterToString, shutdown
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Constructor Details
-
OpdbClient
public OpdbClient(CdpCredentials credentials, String endPoint, CdpClientConfiguration clientConfiguration) -
OpdbClient
-
-
Method Details
-
getServiceName
Description copied from class:CdpClient
Gets the service name.- Specified by:
getServiceName
in classCdpClient
- Returns:
- the service name
-
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
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
-
collectDiagnostics
Collect diagnostic data bundles from the database- Parameters:
input
-- Returns:
- CollectDiagnosticsResponse
-
createDatabase
Create opDb- Parameters:
input
-- Returns:
- CreateDatabaseResponse
-
describeClientConnectivity
public DescribeClientConnectivityResponse describeClientConnectivity(DescribeClientConnectivityRequest input) Returns client connectivity details- Parameters:
input
-- Returns:
- DescribeClientConnectivityResponse
-
describeDatabase
Describe a opDb- Parameters:
input
-- Returns:
- DescribeDatabaseResponse
-
describeUpgradeDatabase
public DescribeUpgradeDatabaseResponse describeUpgradeDatabase(DescribeUpgradeDatabaseRequest input) Describes the upgrade availability.- Parameters:
input
-- Returns:
- DescribeUpgradeDatabaseResponse
-
dropDatabase
drop a opDb- Parameters:
input
-- Returns:
- DropDatabaseResponse
-
listDatabases
List all opDbs in an environment- Parameters:
input
-- Returns:
- ListDatabasesResponse
-
listDiagnostics
List all diagnostics associated to the database- Parameters:
input
-- Returns:
- ListDiagnosticsResponse
-
listSupportedEnvironments
public ListSupportedEnvironmentsResponse listSupportedEnvironments(ListSupportedEnvironmentsRequest input) List of environments available for the database creation- Parameters:
input
-- Returns:
- ListSupportedEnvironmentsResponse
-
startDatabase
Starts the database- Parameters:
input
-- Returns:
- StartDatabaseResponse
-
stopDatabase
Stops the database- Parameters:
input
-- Returns:
- StopDatabaseResponse
-
updateDatabase
Updates the database- Parameters:
input
-- Returns:
- UpdateDatabaseResponse
-
upgradeDatabase
Upgrades the database.- Parameters:
input
-- Returns:
- UpgradeDatabaseResponse
-