All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.bmc.globallydistributeddatabase.ShardedDatabaseService Maven / Gradle / Ivy

Go to download

This project contains the SDK used for Oracle Cloud Infrastructure Globally Distributed Database

There is a newer version: 3.54.0
Show newest version
/**
 * Copyright (c) 2016, 2024, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */
package com.oracle.bmc.globallydistributeddatabase;

import com.oracle.bmc.globallydistributeddatabase.requests.*;
import com.oracle.bmc.globallydistributeddatabase.responses.*;

/**
 * Use the Globally Distributed Database service APIs to create and manage distributed databases.
 * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by
 * default if no circuit breaker configuration is defined by the user.
 */
@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230301")
public interface ShardedDatabaseService extends AutoCloseable {

    /** Rebuilds the client from scratch. Useful to refresh certificates. */
    void refreshClient();

    /**
     * Sets the endpoint to call (ex, https://www.example.com).
     *
     * @param endpoint The endpoint of the service.
     */
    void setEndpoint(String endpoint);

    /** Gets the set endpoint for REST call (ex, https://www.example.com) */
    String getEndpoint();

    /**
     * Sets the region to call (ex, Region.US_PHOENIX_1).
     *
     * 

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the * endpoint. If the service is not available in this Region, however, an * IllegalArgumentException will be raised. * * @param region The region of the service. */ void setRegion(com.oracle.bmc.Region region); /** * Sets the region to call (ex, 'us-phoenix-1'). * *

Note, this will first try to map the region ID to a known Region and call {@link * #setRegion(Region) setRegion}. * *

If no known Region could be determined, it will create an endpoint based on the default * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} * and then call {@link #setEndpoint(String) setEndpoint}. * * @param regionId The public region ID. */ void setRegion(String regionId); /** * Determines whether realm specific endpoint should be used or not. Set * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm * specific endpoint template, otherwise set it to "false" * * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint * template */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** * Move the private endpoint to the specified compartment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ChangePrivateEndpointCompartment API. */ ChangePrivateEndpointCompartmentResponse changePrivateEndpointCompartment( ChangePrivateEndpointCompartmentRequest request); /** * Move the sharded database database and its dependent resources to the specified compartment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ChangeShardedDatabaseCompartment API. */ ChangeShardedDatabaseCompartmentResponse changeShardedDatabaseCompartment( ChangeShardedDatabaseCompartmentRequest request); /** * Configure new Global Service Manager(GSM aka shard manager) instances for the sharded * database. Specify the names of old GSM instances that need to be replaced via parameter * oldGsmNames in the request payload. Also specify whether rotated GSM instances shall be * provisioned with latest image of GSM software or the image used by existing GSM instances * shall be used. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ConfigureShardedDatabaseGsms API. */ ConfigureShardedDatabaseGsmsResponse configureShardedDatabaseGsms( ConfigureShardedDatabaseGsmsRequest request); /** * Once all components of sharded database are provisioned, and signed GSM certificates are * successfully uploaded, this api shall be invoked to configure sharding on the sharded * database. Note that this 'ConfigureSharding' API also needs to be invoked after successfully * adding a new shard to the sharded database using PATCH api. If this API is not invoked after * successfully adding a new shard, then that new shard will not be a participant in sharding * topology of the sharded database. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use ConfigureSharding * API. */ ConfigureShardingResponse configureSharding(ConfigureShardingRequest request); /** * Creates a PrivateEndpoint. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * CreatePrivateEndpoint API. */ CreatePrivateEndpointResponse createPrivateEndpoint(CreatePrivateEndpointRequest request); /** * Creates a Sharded Database. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * CreateShardedDatabase API. */ CreateShardedDatabaseResponse createShardedDatabase(CreateShardedDatabaseRequest request); /** * Delete the given private endpoint. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * DeletePrivateEndpoint API. */ DeletePrivateEndpointResponse deletePrivateEndpoint(DeletePrivateEndpointRequest request); /** * Terminate the given sharded databases. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * DeleteShardedDatabase API. */ DeleteShardedDatabaseResponse deleteShardedDatabase(DeleteShardedDatabaseRequest request); /** * Generate the common certificate signing request for GSMs. Download the .csr file * from API response. Users can use this .csr file to generate the CA signed certificate, and as * a next step use 'uploadSignedCertificateAndGenerateWallet' API to upload the CA signed * certificate to GSM, and generate wallets for the GSM instances of the sharded database. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * DownloadGsmCertificateSigningRequest API. */ DownloadGsmCertificateSigningRequestResponse downloadGsmCertificateSigningRequest( DownloadGsmCertificateSigningRequestRequest request); /** * Gets the Sharded Database Connection Strings. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * FetchConnectionString API. */ FetchConnectionStringResponse fetchConnectionString(FetchConnectionStringRequest request); /** * List of cloudAutonomousVMClusters for the given tenancy, that can be sharded. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * FetchShardableCloudAutonomousVmClusters API. */ FetchShardableCloudAutonomousVmClustersResponse fetchShardableCloudAutonomousVmClusters( FetchShardableCloudAutonomousVmClustersRequest request); /** * Generate the certificate signing request for GSM instances of the sharded database. Once * certificate signing request is generated, then customers can download the certificate signing * request using 'downloadGsmCertificateSigningRequest' api call. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * GenerateGsmCertificateSigningRequest API. */ GenerateGsmCertificateSigningRequestResponse generateGsmCertificateSigningRequest( GenerateGsmCertificateSigningRequestRequest request); /** * Generate the wallet associated with sharded database. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use GenerateWallet API. */ GenerateWalletResponse generateWallet(GenerateWalletRequest request); /** * Get the PrivateEndpoint resource. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use GetPrivateEndpoint * API. */ GetPrivateEndpointResponse getPrivateEndpoint(GetPrivateEndpointRequest request); /** * Gets the details of the Sharded database identified by given id. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use GetShardedDatabase * API. */ GetShardedDatabaseResponse getShardedDatabase(GetShardedDatabaseRequest request); /** * Gets details of the work request with the given ID. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use GetWorkRequest API. */ GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); /** * List of PrivateEndpoints. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ListPrivateEndpoints API. */ ListPrivateEndpointsResponse listPrivateEndpoints(ListPrivateEndpointsRequest request); /** * List of Sharded databases. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ListShardedDatabases API. */ ListShardedDatabasesResponse listShardedDatabases(ListShardedDatabasesRequest request); /** * Returns a (paginated) list of errors for the work request with the given ID. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ListWorkRequestErrors API. */ ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); /** * Returns a (paginated) list of logs for the work request with the given ID. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use ListWorkRequestLogs * API. */ ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); /** * Lists the work requests in a compartment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use ListWorkRequests * API. */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); /** * Patch operation to add, remove or update shards to the sharded database topology. In single * patch operation, multiple shards can be either added, or removed or updated. Combination of * inserts, update and remove in single operation is not allowed. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * PatchShardedDatabase API. */ PatchShardedDatabaseResponse patchShardedDatabase(PatchShardedDatabaseRequest request); /** * Sharded database pre-validation request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * PrevalidateShardedDatabase API. */ PrevalidateShardedDatabaseResponse prevalidateShardedDatabase( PrevalidateShardedDatabaseRequest request); /** * API to reinstate the proxy instances associated with the private endpoint. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ReinstateProxyInstance API. */ ReinstateProxyInstanceResponse reinstateProxyInstance(ReinstateProxyInstanceRequest request); /** * Start the shards, catalog and GSMs of Sharded Database. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * StartShardedDatabase API. */ StartShardedDatabaseResponse startShardedDatabase(StartShardedDatabaseRequest request); /** * Stop the shards, catalog and GSM instances for the sharded database. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use StopShardedDatabase * API. */ StopShardedDatabaseResponse stopShardedDatabase(StopShardedDatabaseRequest request); /** * Updates the configuration of privateendpoint. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * UpdatePrivateEndpoint API. */ UpdatePrivateEndpointResponse updatePrivateEndpoint(UpdatePrivateEndpointRequest request); /** * Updates the configuration of sharded database. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * UpdateShardedDatabase API. */ UpdateShardedDatabaseResponse updateShardedDatabase(UpdateShardedDatabaseRequest request); /** * Upload the CA signed certificate to the GSM instances and generate wallets for GSM instances * of the sharded database. Customer shall provide the CA signed certificate key details by * adding the certificate in request body. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * UploadSignedCertificateAndGenerateWallet API. */ UploadSignedCertificateAndGenerateWalletResponse uploadSignedCertificateAndGenerateWallet( UploadSignedCertificateAndGenerateWalletRequest request); /** * Validate the network connectivity between components of sharded database. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use ValidateNetwork * API. */ ValidateNetworkResponse validateNetwork(ValidateNetworkRequest request); /** * Gets the pre-configured waiters available for resources for this service. * * @return The service waiters. */ ShardedDatabaseServiceWaiters getWaiters(); /** * Gets the pre-configured paginators available for list operations in this service which may * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} * interface so that service responses, or resources/records, can be iterated through without * having to manually deal with pagination and page tokens. * * @return The service paginators. */ ShardedDatabaseServicePaginators getPaginators(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy