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="2025-01-23T07:12:41.282-08: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 opDbCreates a snapshot for a specific table.Deletes a snapshot.Returns 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 databaseLists instances when a snapshot was restored to a database.Shows snapshot for a table name in a specific location.List of environments available for the database creationRestores a snapshot.Starts 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
-
createSnapshot
Creates a snapshot for a specific table.- Parameters:
input
-- Returns:
- CreateSnapshotResponse
-
deleteSnapshot
Deletes a snapshot.- Parameters:
input
-- Returns:
- DeleteSnapshotResponse
-
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
-
listRestoreSnapshots
Lists instances when a snapshot was restored to a database.- Parameters:
input
-- Returns:
- ListRestoreSnapshotsResponse
-
listSnapshots
Shows snapshot for a table name in a specific location.- Parameters:
input
-- Returns:
- ListSnapshotsResponse
-
listSupportedEnvironments
public ListSupportedEnvironmentsResponse listSupportedEnvironments(ListSupportedEnvironmentsRequest input) List of environments available for the database creation- Parameters:
input
-- Returns:
- ListSupportedEnvironmentsResponse
-
restoreSnapshot
Restores a snapshot.- Parameters:
input
-- Returns:
- RestoreSnapshotResponse
-
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
-