This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CloudExadataInfrastructureName name =
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+ * CloudExadataInfrastructure response =
+ * oracleDatabaseClient.getCloudExadataInfrastructure(name);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the OracleDatabaseClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
ListCloudExadataInfrastructures |
+ * Lists Exadata Infrastructures in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetCloudExadataInfrastructure |
+ * Gets details of a single Exadata Infrastructure. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateCloudExadataInfrastructure |
+ * Creates a new Exadata Infrastructure in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteCloudExadataInfrastructure |
+ * Deletes a single Exadata Infrastructure. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListCloudVmClusters |
+ * Lists the VM Clusters in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetCloudVmCluster |
+ * Gets details of a single VM Cluster. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateCloudVmCluster |
+ * Creates a new VM Cluster in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteCloudVmCluster |
+ * Deletes a single VM Cluster. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListEntitlements |
+ * Lists the entitlements in a given project. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListDbServers |
+ * Lists the database servers of an Exadata Infrastructure instance. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListDbNodes |
+ * Lists the database nodes of a VM Cluster. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListGiVersions |
+ * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListDbSystemShapes |
+ * Lists the database system shapes available for the project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListAutonomousDatabases |
+ * Lists the Autonomous Databases in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetAutonomousDatabase |
+ * Gets the details of a single Autonomous Database. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateAutonomousDatabase |
+ * Creates a new Autonomous Database in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteAutonomousDatabase |
+ * Deletes a single Autonomous Database. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
RestoreAutonomousDatabase |
+ * Restores a single Autonomous Database. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GenerateAutonomousDatabaseWallet |
+ * Generates a wallet for an Autonomous Database. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListAutonomousDbVersions |
+ * Lists all the available Autonomous Database versions for a project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListAutonomousDatabaseCharacterSets |
+ * Lists Autonomous Database Character Sets in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListAutonomousDatabaseBackups |
+ * Lists the long-term and automatic backups of an Autonomous Database. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListLocations |
+ * Lists information about the supported locations for this service. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetLocation |
+ * Gets information about a location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of OracleDatabaseSettings to + * create(). For example: + * + *
To customize credentials: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OracleDatabaseSettings oracleDatabaseSettings =
+ * OracleDatabaseSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OracleDatabaseSettings oracleDatabaseSettings =
+ * OracleDatabaseSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class OracleDatabaseClient implements BackgroundResource { + private final OracleDatabaseSettings settings; + private final OracleDatabaseStub stub; + private final OperationsClient httpJsonOperationsClient; + + /** Constructs an instance of OracleDatabaseClient with default settings. */ + public static final OracleDatabaseClient create() throws IOException { + return create(OracleDatabaseSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OracleDatabaseClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final OracleDatabaseClient create(OracleDatabaseSettings settings) + throws IOException { + return new OracleDatabaseClient(settings); + } + + /** + * Constructs an instance of OracleDatabaseClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(OracleDatabaseSettings). + */ + public static final OracleDatabaseClient create(OracleDatabaseStub stub) { + return new OracleDatabaseClient(stub); + } + + /** + * Constructs an instance of OracleDatabaseClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected OracleDatabaseClient(OracleDatabaseSettings settings) throws IOException { + this.settings = settings; + this.stub = ((OracleDatabaseStubSettings) settings.getStubSettings()).createStub(); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected OracleDatabaseClient(OracleDatabaseStub stub) { + this.settings = null; + this.stub = stub; + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final OracleDatabaseSettings getSettings() { + return settings; + } + + public OracleDatabaseStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Exadata Infrastructures in a given project and location. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (CloudExadataInfrastructure element :
+ * oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for CloudExadataInfrastructure in the following
+ * format: projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(
+ LocationName parent) {
+ ListCloudExadataInfrastructuresRequest request =
+ ListCloudExadataInfrastructuresRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCloudExadataInfrastructures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Exadata Infrastructures in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (CloudExadataInfrastructure element :
+ * oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for CloudExadataInfrastructure in the following
+ * format: projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(
+ String parent) {
+ ListCloudExadataInfrastructuresRequest request =
+ ListCloudExadataInfrastructuresRequest.newBuilder().setParent(parent).build();
+ return listCloudExadataInfrastructures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Exadata Infrastructures in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListCloudExadataInfrastructuresRequest request =
+ * ListCloudExadataInfrastructuresRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (CloudExadataInfrastructure element :
+ * oracleDatabaseClient.listCloudExadataInfrastructures(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(
+ ListCloudExadataInfrastructuresRequest request) {
+ return listCloudExadataInfrastructuresPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Exadata Infrastructures in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListCloudExadataInfrastructuresRequest request =
+ * ListCloudExadataInfrastructuresRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listCloudExadataInfrastructuresPagedCallable().futureCall(request);
+ * // Do something.
+ * for (CloudExadataInfrastructure element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresPagedResponse>
+ listCloudExadataInfrastructuresPagedCallable() {
+ return stub.listCloudExadataInfrastructuresPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Exadata Infrastructures in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListCloudExadataInfrastructuresRequest request =
+ * ListCloudExadataInfrastructuresRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListCloudExadataInfrastructuresResponse response =
+ * oracleDatabaseClient.listCloudExadataInfrastructuresCallable().call(request);
+ * for (CloudExadataInfrastructure element : response.getCloudExadataInfrastructuresList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse>
+ listCloudExadataInfrastructuresCallable() {
+ return stub.listCloudExadataInfrastructuresCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Exadata Infrastructure.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CloudExadataInfrastructureName name =
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+ * CloudExadataInfrastructure response =
+ * oracleDatabaseClient.getCloudExadataInfrastructure(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Cloud Exadata Infrastructure in the following format:
+ * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudExadataInfrastructure getCloudExadataInfrastructure(
+ CloudExadataInfrastructureName name) {
+ GetCloudExadataInfrastructureRequest request =
+ GetCloudExadataInfrastructureRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getCloudExadataInfrastructure(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Exadata Infrastructure.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString();
+ * CloudExadataInfrastructure response =
+ * oracleDatabaseClient.getCloudExadataInfrastructure(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Cloud Exadata Infrastructure in the following format:
+ * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudExadataInfrastructure getCloudExadataInfrastructure(String name) {
+ GetCloudExadataInfrastructureRequest request =
+ GetCloudExadataInfrastructureRequest.newBuilder().setName(name).build();
+ return getCloudExadataInfrastructure(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Exadata Infrastructure.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetCloudExadataInfrastructureRequest request =
+ * GetCloudExadataInfrastructureRequest.newBuilder()
+ * .setName(
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString())
+ * .build();
+ * CloudExadataInfrastructure response =
+ * oracleDatabaseClient.getCloudExadataInfrastructure(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudExadataInfrastructure getCloudExadataInfrastructure(
+ GetCloudExadataInfrastructureRequest request) {
+ return getCloudExadataInfrastructureCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Exadata Infrastructure.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetCloudExadataInfrastructureRequest request =
+ * GetCloudExadataInfrastructureRequest.newBuilder()
+ * .setName(
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.getCloudExadataInfrastructureCallable().futureCall(request);
+ * // Do something.
+ * CloudExadataInfrastructure response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * CloudExadataInfrastructure cloudExadataInfrastructure =
+ * CloudExadataInfrastructure.newBuilder().build();
+ * String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409";
+ * CloudExadataInfrastructure response =
+ * oracleDatabaseClient
+ * .createCloudExadataInfrastructureAsync(
+ * parent, cloudExadataInfrastructure, cloudExadataInfrastructureId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for CloudExadataInfrastructure in the following
+ * format: projects/{project}/locations/{location}.
+ * @param cloudExadataInfrastructure Required. Details of the Exadata Infrastructure instance to
+ * create.
+ * @param cloudExadataInfrastructureId Required. The ID of the Exadata Infrastructure to create.
+ * This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+ * characters in length. The value must start with a letter and end with a letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * CloudExadataInfrastructure cloudExadataInfrastructure =
+ * CloudExadataInfrastructure.newBuilder().build();
+ * String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409";
+ * CloudExadataInfrastructure response =
+ * oracleDatabaseClient
+ * .createCloudExadataInfrastructureAsync(
+ * parent, cloudExadataInfrastructure, cloudExadataInfrastructureId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for CloudExadataInfrastructure in the following
+ * format: projects/{project}/locations/{location}.
+ * @param cloudExadataInfrastructure Required. Details of the Exadata Infrastructure instance to
+ * create.
+ * @param cloudExadataInfrastructureId Required. The ID of the Exadata Infrastructure to create.
+ * This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
+ * characters in length. The value must start with a letter and end with a letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateCloudExadataInfrastructureRequest request =
+ * CreateCloudExadataInfrastructureRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
+ * .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * CloudExadataInfrastructure response =
+ * oracleDatabaseClient.createCloudExadataInfrastructureAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateCloudExadataInfrastructureRequest request =
+ * CreateCloudExadataInfrastructureRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
+ * .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * oracleDatabaseClient
+ * .createCloudExadataInfrastructureOperationCallable()
+ * .futureCall(request);
+ * // Do something.
+ * CloudExadataInfrastructure response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata>
+ createCloudExadataInfrastructureOperationCallable() {
+ return stub.createCloudExadataInfrastructureOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Exadata Infrastructure in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateCloudExadataInfrastructureRequest request =
+ * CreateCloudExadataInfrastructureRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
+ * .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.createCloudExadataInfrastructureCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CloudExadataInfrastructureName name =
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+ * oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Cloud Exadata Infrastructure in the following format:
+ * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString();
+ * oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Cloud Exadata Infrastructure in the following format:
+ * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteCloudExadataInfrastructureRequest request =
+ * DeleteCloudExadataInfrastructureRequest.newBuilder()
+ * .setName(
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteCloudExadataInfrastructureRequest request =
+ * DeleteCloudExadataInfrastructureRequest.newBuilder()
+ * .setName(
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * OperationFuture future =
+ * oracleDatabaseClient
+ * .deleteCloudExadataInfrastructureOperationCallable()
+ * .futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteCloudExadataInfrastructureRequest request =
+ * DeleteCloudExadataInfrastructureRequest.newBuilder()
+ * .setName(
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.deleteCloudExadataInfrastructureCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCloudVmClustersPagedResponse listCloudVmClusters(LocationName parent) {
+ ListCloudVmClustersRequest request =
+ ListCloudVmClustersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCloudVmClusters(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the VM Clusters in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCloudVmClustersPagedResponse listCloudVmClusters(String parent) {
+ ListCloudVmClustersRequest request =
+ ListCloudVmClustersRequest.newBuilder().setParent(parent).build();
+ return listCloudVmClusters(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the VM Clusters in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListCloudVmClustersRequest request =
+ * ListCloudVmClustersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (CloudVmCluster element :
+ * oracleDatabaseClient.listCloudVmClusters(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCloudVmClustersPagedResponse listCloudVmClusters(
+ ListCloudVmClustersRequest request) {
+ return listCloudVmClustersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the VM Clusters in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListCloudVmClustersRequest request =
+ * ListCloudVmClustersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listCloudVmClustersPagedCallable().futureCall(request);
+ * // Do something.
+ * for (CloudVmCluster element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListCloudVmClustersRequest request =
+ * ListCloudVmClustersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListCloudVmClustersResponse response =
+ * oracleDatabaseClient.listCloudVmClustersCallable().call(request);
+ * for (CloudVmCluster element : response.getCloudVmClustersList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CloudVmClusterName name =
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
+ * CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Cloud VM Cluster in the following format:
+ * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudVmCluster getCloudVmCluster(CloudVmClusterName name) {
+ GetCloudVmClusterRequest request =
+ GetCloudVmClusterRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getCloudVmCluster(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single VM Cluster.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
+ * CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Cloud VM Cluster in the following format:
+ * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudVmCluster getCloudVmCluster(String name) {
+ GetCloudVmClusterRequest request = GetCloudVmClusterRequest.newBuilder().setName(name).build();
+ return getCloudVmCluster(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single VM Cluster.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetCloudVmClusterRequest request =
+ * GetCloudVmClusterRequest.newBuilder()
+ * .setName(
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+ * .build();
+ * CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CloudVmCluster getCloudVmCluster(GetCloudVmClusterRequest request) {
+ return getCloudVmClusterCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single VM Cluster.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetCloudVmClusterRequest request =
+ * GetCloudVmClusterRequest.newBuilder()
+ * .setName(
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.getCloudVmClusterCallable().futureCall(request);
+ * // Do something.
+ * CloudVmCluster response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build();
+ * String cloudVmClusterId = "cloudVmClusterId-1217103287";
+ * CloudVmCluster response =
+ * oracleDatabaseClient
+ * .createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent in the following format:
+ * projects/{project}/locations/{location}.
+ * @param cloudVmCluster Required. The resource being created
+ * @param cloudVmClusterId Required. The ID of the VM Cluster to create. This value is restricted
+ * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length.
+ * The value must start with a letter and end with a letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build();
+ * String cloudVmClusterId = "cloudVmClusterId-1217103287";
+ * CloudVmCluster response =
+ * oracleDatabaseClient
+ * .createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent in the following format:
+ * projects/{project}/locations/{location}.
+ * @param cloudVmCluster Required. The resource being created
+ * @param cloudVmClusterId Required. The ID of the VM Cluster to create. This value is restricted
+ * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length.
+ * The value must start with a letter and end with a letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateCloudVmClusterRequest request =
+ * CreateCloudVmClusterRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setCloudVmClusterId("cloudVmClusterId-1217103287")
+ * .setCloudVmCluster(CloudVmCluster.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * CloudVmCluster response = oracleDatabaseClient.createCloudVmClusterAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateCloudVmClusterRequest request =
+ * CreateCloudVmClusterRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setCloudVmClusterId("cloudVmClusterId-1217103287")
+ * .setCloudVmCluster(CloudVmCluster.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * oracleDatabaseClient.createCloudVmClusterOperationCallable().futureCall(request);
+ * // Do something.
+ * CloudVmCluster response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateCloudVmClusterRequest request =
+ * CreateCloudVmClusterRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setCloudVmClusterId("cloudVmClusterId-1217103287")
+ * .setCloudVmCluster(CloudVmCluster.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.createCloudVmClusterCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CloudVmClusterName name =
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
+ * oracleDatabaseClient.deleteCloudVmClusterAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Cloud VM Cluster in the following format:
+ * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
+ * oracleDatabaseClient.deleteCloudVmClusterAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Cloud VM Cluster in the following format:
+ * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteCloudVmClusterRequest request =
+ * DeleteCloudVmClusterRequest.newBuilder()
+ * .setName(
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * oracleDatabaseClient.deleteCloudVmClusterAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteCloudVmClusterRequest request =
+ * DeleteCloudVmClusterRequest.newBuilder()
+ * .setName(
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * OperationFuture future =
+ * oracleDatabaseClient.deleteCloudVmClusterOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteCloudVmClusterRequest request =
+ * DeleteCloudVmClusterRequest.newBuilder()
+ * .setName(
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.deleteCloudVmClusterCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the entitlement in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntitlementsPagedResponse listEntitlements(LocationName parent) {
+ ListEntitlementsRequest request =
+ ListEntitlementsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listEntitlements(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the entitlements in a given project.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the entitlement in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntitlementsPagedResponse listEntitlements(String parent) {
+ ListEntitlementsRequest request =
+ ListEntitlementsRequest.newBuilder().setParent(parent).build();
+ return listEntitlements(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the entitlements in a given project.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListEntitlementsRequest request =
+ * ListEntitlementsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Entitlement element : oracleDatabaseClient.listEntitlements(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequest request) {
+ return listEntitlementsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the entitlements in a given project.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListEntitlementsRequest request =
+ * ListEntitlementsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listEntitlementsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Entitlement element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListEntitlementsRequest request =
+ * ListEntitlementsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListEntitlementsResponse response =
+ * oracleDatabaseClient.listEntitlementsCallable().call(request);
+ * for (Entitlement element : response.getEntitlementsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CloudExadataInfrastructureName parent =
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+ * for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for database server in the following format:
+ * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbServersPagedResponse listDbServers(CloudExadataInfrastructureName parent) {
+ ListDbServersRequest request =
+ ListDbServersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDbServers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the database servers of an Exadata Infrastructure instance.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent =
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString();
+ * for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for database server in the following format:
+ * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbServersPagedResponse listDbServers(String parent) {
+ ListDbServersRequest request = ListDbServersRequest.newBuilder().setParent(parent).build();
+ return listDbServers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the database servers of an Exadata Infrastructure instance.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbServersRequest request =
+ * ListDbServersRequest.newBuilder()
+ * .setParent(
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (DbServer element : oracleDatabaseClient.listDbServers(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbServersPagedResponse listDbServers(ListDbServersRequest request) {
+ return listDbServersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the database servers of an Exadata Infrastructure instance.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbServersRequest request =
+ * ListDbServersRequest.newBuilder()
+ * .setParent(
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listDbServersPagedCallable().futureCall(request);
+ * // Do something.
+ * for (DbServer element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbServersRequest request =
+ * ListDbServersRequest.newBuilder()
+ * .setParent(
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListDbServersResponse response = oracleDatabaseClient.listDbServersCallable().call(request);
+ * for (DbServer element : response.getDbServersList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CloudVmClusterName parent =
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
+ * for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for database node in the following format:
+ * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbNodesPagedResponse listDbNodes(CloudVmClusterName parent) {
+ ListDbNodesRequest request =
+ ListDbNodesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDbNodes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the database nodes of a VM Cluster.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent =
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
+ * for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for database node in the following format:
+ * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbNodesPagedResponse listDbNodes(String parent) {
+ ListDbNodesRequest request = ListDbNodesRequest.newBuilder().setParent(parent).build();
+ return listDbNodes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the database nodes of a VM Cluster.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbNodesRequest request =
+ * ListDbNodesRequest.newBuilder()
+ * .setParent(
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (DbNode element : oracleDatabaseClient.listDbNodes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbNodesPagedResponse listDbNodes(ListDbNodesRequest request) {
+ return listDbNodesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the database nodes of a VM Cluster.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbNodesRequest request =
+ * ListDbNodesRequest.newBuilder()
+ * .setParent(
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listDbNodesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (DbNode element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbNodesRequest request =
+ * ListDbNodesRequest.newBuilder()
+ * .setParent(
+ * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListDbNodesResponse response = oracleDatabaseClient.listDbNodesCallable().call(request);
+ * for (DbNode element : response.getDbNodesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for Grid Infrastructure Version in the following
+ * format: Format: projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGiVersionsPagedResponse listGiVersions(LocationName parent) {
+ ListGiVersionsRequest request =
+ ListGiVersionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listGiVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and
+ * location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for Grid Infrastructure Version in the following
+ * format: Format: projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGiVersionsPagedResponse listGiVersions(String parent) {
+ ListGiVersionsRequest request = ListGiVersionsRequest.newBuilder().setParent(parent).build();
+ return listGiVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and
+ * location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGiVersionsRequest request =
+ * ListGiVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (GiVersion element : oracleDatabaseClient.listGiVersions(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGiVersionsPagedResponse listGiVersions(ListGiVersionsRequest request) {
+ return listGiVersionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and
+ * location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGiVersionsRequest request =
+ * ListGiVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listGiVersionsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (GiVersion element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListGiVersionsRequest request =
+ * ListGiVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListGiVersionsResponse response =
+ * oracleDatabaseClient.listGiVersionsCallable().call(request);
+ * for (GiVersion element : response.getGiVersionsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for Database System Shapes in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbSystemShapesPagedResponse listDbSystemShapes(LocationName parent) {
+ ListDbSystemShapesRequest request =
+ ListDbSystemShapesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDbSystemShapes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the database system shapes available for the project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for Database System Shapes in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbSystemShapesPagedResponse listDbSystemShapes(String parent) {
+ ListDbSystemShapesRequest request =
+ ListDbSystemShapesRequest.newBuilder().setParent(parent).build();
+ return listDbSystemShapes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the database system shapes available for the project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbSystemShapesRequest request =
+ * ListDbSystemShapesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDbSystemShapesPagedResponse listDbSystemShapes(
+ ListDbSystemShapesRequest request) {
+ return listDbSystemShapesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the database system shapes available for the project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbSystemShapesRequest request =
+ * ListDbSystemShapesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listDbSystemShapesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (DbSystemShape element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListDbSystemShapesRequest request =
+ * ListDbSystemShapesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListDbSystemShapesResponse response =
+ * oracleDatabaseClient.listDbSystemShapesCallable().call(request);
+ * for (DbSystemShape element : response.getDbSystemShapesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (AutonomousDatabase element :
+ * oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(LocationName parent) {
+ ListAutonomousDatabasesRequest request =
+ ListAutonomousDatabasesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAutonomousDatabases(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the Autonomous Databases in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (AutonomousDatabase element :
+ * oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(String parent) {
+ ListAutonomousDatabasesRequest request =
+ ListAutonomousDatabasesRequest.newBuilder().setParent(parent).build();
+ return listAutonomousDatabases(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the Autonomous Databases in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDatabasesRequest request =
+ * ListAutonomousDatabasesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (AutonomousDatabase element :
+ * oracleDatabaseClient.listAutonomousDatabases(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(
+ ListAutonomousDatabasesRequest request) {
+ return listAutonomousDatabasesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the Autonomous Databases in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDatabasesRequest request =
+ * ListAutonomousDatabasesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listAutonomousDatabasesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (AutonomousDatabase element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDatabasesRequest request =
+ * ListAutonomousDatabasesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListAutonomousDatabasesResponse response =
+ * oracleDatabaseClient.listAutonomousDatabasesCallable().call(request);
+ * for (AutonomousDatabase element : response.getAutonomousDatabasesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * AutonomousDatabaseName name =
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
+ * AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutonomousDatabase getAutonomousDatabase(AutonomousDatabaseName name) {
+ GetAutonomousDatabaseRequest request =
+ GetAutonomousDatabaseRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getAutonomousDatabase(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a single Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
+ * AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutonomousDatabase getAutonomousDatabase(String name) {
+ GetAutonomousDatabaseRequest request =
+ GetAutonomousDatabaseRequest.newBuilder().setName(name).build();
+ return getAutonomousDatabase(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a single Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetAutonomousDatabaseRequest request =
+ * GetAutonomousDatabaseRequest.newBuilder()
+ * .setName(
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+ * .toString())
+ * .build();
+ * AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutonomousDatabase getAutonomousDatabase(GetAutonomousDatabaseRequest request) {
+ return getAutonomousDatabaseCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a single Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetAutonomousDatabaseRequest request =
+ * GetAutonomousDatabaseRequest.newBuilder()
+ * .setName(
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.getAutonomousDatabaseCallable().futureCall(request);
+ * // Do something.
+ * AutonomousDatabase response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build();
+ * String autonomousDatabaseId = "autonomousDatabaseId-1972693114";
+ * AutonomousDatabase response =
+ * oracleDatabaseClient
+ * .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent in the following format:
+ * projects/{project}/locations/{location}.
+ * @param autonomousDatabase Required. The Autonomous Database being created.
+ * @param autonomousDatabaseId Required. The ID of the Autonomous Database to create. This value
+ * is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters
+ * in length. The value must start with a letter and end with a letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build();
+ * String autonomousDatabaseId = "autonomousDatabaseId-1972693114";
+ * AutonomousDatabase response =
+ * oracleDatabaseClient
+ * .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The name of the parent in the following format:
+ * projects/{project}/locations/{location}.
+ * @param autonomousDatabase Required. The Autonomous Database being created.
+ * @param autonomousDatabaseId Required. The ID of the Autonomous Database to create. This value
+ * is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters
+ * in length. The value must start with a letter and end with a letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateAutonomousDatabaseRequest request =
+ * CreateAutonomousDatabaseRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
+ * .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * AutonomousDatabase response =
+ * oracleDatabaseClient.createAutonomousDatabaseAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateAutonomousDatabaseRequest request =
+ * CreateAutonomousDatabaseRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
+ * .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * oracleDatabaseClient.createAutonomousDatabaseOperationCallable().futureCall(request);
+ * // Do something.
+ * AutonomousDatabase response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata>
+ createAutonomousDatabaseOperationCallable() {
+ return stub.createAutonomousDatabaseOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Autonomous Database in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CreateAutonomousDatabaseRequest request =
+ * CreateAutonomousDatabaseRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
+ * .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.createAutonomousDatabaseCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * AutonomousDatabaseName name =
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
+ * oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the resource in the following format:
+ * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
+ * oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the resource in the following format:
+ * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteAutonomousDatabaseRequest request =
+ * DeleteAutonomousDatabaseRequest.newBuilder()
+ * .setName(
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * oracleDatabaseClient.deleteAutonomousDatabaseAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteAutonomousDatabaseRequest request =
+ * DeleteAutonomousDatabaseRequest.newBuilder()
+ * .setName(
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * oracleDatabaseClient.deleteAutonomousDatabaseOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * DeleteAutonomousDatabaseRequest request =
+ * DeleteAutonomousDatabaseRequest.newBuilder()
+ * .setName(
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.deleteAutonomousDatabaseCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * AutonomousDatabaseName name =
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
+ * Timestamp restoreTime = Timestamp.newBuilder().build();
+ * AutonomousDatabase response =
+ * oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+ * @param restoreTime Required. The time and date to restore the database to.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
+ * Timestamp restoreTime = Timestamp.newBuilder().build();
+ * AutonomousDatabase response =
+ * oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+ * @param restoreTime Required. The time and date to restore the database to.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * RestoreAutonomousDatabaseRequest request =
+ * RestoreAutonomousDatabaseRequest.newBuilder()
+ * .setName(
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+ * .toString())
+ * .setRestoreTime(Timestamp.newBuilder().build())
+ * .build();
+ * AutonomousDatabase response =
+ * oracleDatabaseClient.restoreAutonomousDatabaseAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * RestoreAutonomousDatabaseRequest request =
+ * RestoreAutonomousDatabaseRequest.newBuilder()
+ * .setName(
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+ * .toString())
+ * .setRestoreTime(Timestamp.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * oracleDatabaseClient.restoreAutonomousDatabaseOperationCallable().futureCall(request);
+ * // Do something.
+ * AutonomousDatabase response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata>
+ restoreAutonomousDatabaseOperationCallable() {
+ return stub.restoreAutonomousDatabaseOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Restores a single Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * RestoreAutonomousDatabaseRequest request =
+ * RestoreAutonomousDatabaseRequest.newBuilder()
+ * .setName(
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+ * .toString())
+ * .setRestoreTime(Timestamp.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.restoreAutonomousDatabaseCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * AutonomousDatabaseName name =
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
+ * GenerateType type = GenerateType.forNumber(0);
+ * boolean isRegional = true;
+ * String password = "password1216985755";
+ * GenerateAutonomousDatabaseWalletResponse response =
+ * oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+ * @param type Optional. The type of wallet generation for the Autonomous Database. The default
+ * value is SINGLE.
+ * @param isRegional Optional. True when requesting regional connection strings in PDB connect
+ * info, applicable to cross-region Data Guard only.
+ * @param password Required. The password used to encrypt the keys inside the wallet. The password
+ * must be a minimum of 8 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet(
+ AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password) {
+ GenerateAutonomousDatabaseWalletRequest request =
+ GenerateAutonomousDatabaseWalletRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .setType(type)
+ .setIsRegional(isRegional)
+ .setPassword(password)
+ .build();
+ return generateAutonomousDatabaseWallet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Generates a wallet for an Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String name =
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
+ * GenerateType type = GenerateType.forNumber(0);
+ * boolean isRegional = true;
+ * String password = "password1216985755";
+ * GenerateAutonomousDatabaseWalletResponse response =
+ * oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
+ * @param type Optional. The type of wallet generation for the Autonomous Database. The default
+ * value is SINGLE.
+ * @param isRegional Optional. True when requesting regional connection strings in PDB connect
+ * info, applicable to cross-region Data Guard only.
+ * @param password Required. The password used to encrypt the keys inside the wallet. The password
+ * must be a minimum of 8 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet(
+ String name, GenerateType type, boolean isRegional, String password) {
+ GenerateAutonomousDatabaseWalletRequest request =
+ GenerateAutonomousDatabaseWalletRequest.newBuilder()
+ .setName(name)
+ .setType(type)
+ .setIsRegional(isRegional)
+ .setPassword(password)
+ .build();
+ return generateAutonomousDatabaseWallet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Generates a wallet for an Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GenerateAutonomousDatabaseWalletRequest request =
+ * GenerateAutonomousDatabaseWalletRequest.newBuilder()
+ * .setName(
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+ * .toString())
+ * .setType(GenerateType.forNumber(0))
+ * .setIsRegional(true)
+ * .setPassword("password1216985755")
+ * .build();
+ * GenerateAutonomousDatabaseWalletResponse response =
+ * oracleDatabaseClient.generateAutonomousDatabaseWallet(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet(
+ GenerateAutonomousDatabaseWalletRequest request) {
+ return generateAutonomousDatabaseWalletCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Generates a wallet for an Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GenerateAutonomousDatabaseWalletRequest request =
+ * GenerateAutonomousDatabaseWalletRequest.newBuilder()
+ * .setName(
+ * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
+ * .toString())
+ * .setType(GenerateType.forNumber(0))
+ * .setIsRegional(true)
+ * .setPassword("password1216985755")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.generateAutonomousDatabaseWalletCallable().futureCall(request);
+ * // Do something.
+ * GenerateAutonomousDatabaseWalletResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse>
+ generateAutonomousDatabaseWalletCallable() {
+ return stub.generateAutonomousDatabaseWalletCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the available Autonomous Database versions for a project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (AutonomousDbVersion element :
+ * oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(LocationName parent) {
+ ListAutonomousDbVersionsRequest request =
+ ListAutonomousDbVersionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAutonomousDbVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the available Autonomous Database versions for a project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (AutonomousDbVersion element :
+ * oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(String parent) {
+ ListAutonomousDbVersionsRequest request =
+ ListAutonomousDbVersionsRequest.newBuilder().setParent(parent).build();
+ return listAutonomousDbVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the available Autonomous Database versions for a project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDbVersionsRequest request =
+ * ListAutonomousDbVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (AutonomousDbVersion element :
+ * oracleDatabaseClient.listAutonomousDbVersions(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(
+ ListAutonomousDbVersionsRequest request) {
+ return listAutonomousDbVersionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the available Autonomous Database versions for a project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDbVersionsRequest request =
+ * ListAutonomousDbVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listAutonomousDbVersionsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (AutonomousDbVersion element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDbVersionsRequest request =
+ * ListAutonomousDbVersionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListAutonomousDbVersionsResponse response =
+ * oracleDatabaseClient.listAutonomousDbVersionsCallable().call(request);
+ * for (AutonomousDbVersion element : response.getAutonomousDbVersionsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (AutonomousDatabaseCharacterSet element :
+ * oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets(
+ LocationName parent) {
+ ListAutonomousDatabaseCharacterSetsRequest request =
+ ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAutonomousDatabaseCharacterSets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Autonomous Database Character Sets in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (AutonomousDatabaseCharacterSet element :
+ * oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for the Autonomous Database in the following format:
+ * projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets(
+ String parent) {
+ ListAutonomousDatabaseCharacterSetsRequest request =
+ ListAutonomousDatabaseCharacterSetsRequest.newBuilder().setParent(parent).build();
+ return listAutonomousDatabaseCharacterSets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Autonomous Database Character Sets in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDatabaseCharacterSetsRequest request =
+ * ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (AutonomousDatabaseCharacterSet element :
+ * oracleDatabaseClient.listAutonomousDatabaseCharacterSets(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets(
+ ListAutonomousDatabaseCharacterSetsRequest request) {
+ return listAutonomousDatabaseCharacterSetsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Autonomous Database Character Sets in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDatabaseCharacterSetsRequest request =
+ * ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient
+ * .listAutonomousDatabaseCharacterSetsPagedCallable()
+ * .futureCall(request);
+ * // Do something.
+ * for (AutonomousDatabaseCharacterSet element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAutonomousDatabaseCharacterSetsRequest,
+ ListAutonomousDatabaseCharacterSetsPagedResponse>
+ listAutonomousDatabaseCharacterSetsPagedCallable() {
+ return stub.listAutonomousDatabaseCharacterSetsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Autonomous Database Character Sets in a given project and location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDatabaseCharacterSetsRequest request =
+ * ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListAutonomousDatabaseCharacterSetsResponse response =
+ * oracleDatabaseClient.listAutonomousDatabaseCharacterSetsCallable().call(request);
+ * for (AutonomousDatabaseCharacterSet element :
+ * response.getAutonomousDatabaseCharacterSetsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse>
+ listAutonomousDatabaseCharacterSetsCallable() {
+ return stub.listAutonomousDatabaseCharacterSetsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the long-term and automatic backups of an Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (AutonomousDatabaseBackup element :
+ * oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for ListAutonomousDatabaseBackups in the following
+ * format: projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups(
+ LocationName parent) {
+ ListAutonomousDatabaseBackupsRequest request =
+ ListAutonomousDatabaseBackupsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAutonomousDatabaseBackups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the long-term and automatic backups of an Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (AutonomousDatabaseBackup element :
+ * oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent value for ListAutonomousDatabaseBackups in the following
+ * format: projects/{project}/locations/{location}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups(
+ String parent) {
+ ListAutonomousDatabaseBackupsRequest request =
+ ListAutonomousDatabaseBackupsRequest.newBuilder().setParent(parent).build();
+ return listAutonomousDatabaseBackups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the long-term and automatic backups of an Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDatabaseBackupsRequest request =
+ * ListAutonomousDatabaseBackupsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (AutonomousDatabaseBackup element :
+ * oracleDatabaseClient.listAutonomousDatabaseBackups(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups(
+ ListAutonomousDatabaseBackupsRequest request) {
+ return listAutonomousDatabaseBackupsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the long-term and automatic backups of an Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDatabaseBackupsRequest request =
+ * ListAutonomousDatabaseBackupsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listAutonomousDatabaseBackupsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (AutonomousDatabaseBackup element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsPagedResponse>
+ listAutonomousDatabaseBackupsPagedCallable() {
+ return stub.listAutonomousDatabaseBackupsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the long-term and automatic backups of an Autonomous Database.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListAutonomousDatabaseBackupsRequest request =
+ * ListAutonomousDatabaseBackupsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListAutonomousDatabaseBackupsResponse response =
+ * oracleDatabaseClient.listAutonomousDatabaseBackupsCallable().call(request);
+ * for (AutonomousDatabaseBackup element : response.getAutonomousDatabaseBackupsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse>
+ listAutonomousDatabaseBackupsCallable() {
+ return stub.listAutonomousDatabaseBackupsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : oracleDatabaseClient.listLocations(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * oracleDatabaseClient.listLocationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Location element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response = oracleDatabaseClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = oracleDatabaseClient.getLocation(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture future = oracleDatabaseClient.getLocationCallable().futureCall(request);
+ * // Do something.
+ * Location response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getCloudExadataInfrastructure: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OracleDatabaseSettings.Builder oracleDatabaseSettingsBuilder =
+ * OracleDatabaseSettings.newBuilder();
+ * oracleDatabaseSettingsBuilder
+ * .getCloudExadataInfrastructureSettings()
+ * .setRetrySettings(
+ * oracleDatabaseSettingsBuilder
+ * .getCloudExadataInfrastructureSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * OracleDatabaseSettings oracleDatabaseSettings = oracleDatabaseSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createCloudExadataInfrastructure: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OracleDatabaseSettings.Builder oracleDatabaseSettingsBuilder =
+ * OracleDatabaseSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelay(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * oracleDatabaseSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class OracleDatabaseSettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= OracleDatabaseClient =======================
+ *
+ * Service Description: Service describing handlers for resources
+ *
+ * Sample for OracleDatabaseClient:
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonOracleDatabaseCallableFactory
+ implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub {
+ private static final TypeRegistry typeRegistry =
+ TypeRegistry.newBuilder()
+ .add(CloudVmCluster.getDescriptor())
+ .add(Empty.getDescriptor())
+ .add(AutonomousDatabase.getDescriptor())
+ .add(CloudExadataInfrastructure.getDescriptor())
+ .add(OperationMetadata.getDescriptor())
+ .build();
+
+ private static final ApiMethodDescriptor<
+ ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse>
+ listCloudExadataInfrastructuresMethodDescriptor =
+ ApiMethodDescriptor
+ .{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+ * CloudExadataInfrastructureName name =
+ * CloudExadataInfrastructureName.of(
+ * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+ * CloudExadataInfrastructure response =
+ * oracleDatabaseClient.getCloudExadataInfrastructure(name);
+ * }
+ * }
+ */
+@Generated("by gapic-generator-java")
+package com.google.cloud.oracledatabase.v1;
+
+import javax.annotation.Generated;
diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseCallableFactory.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseCallableFactory.java
new file mode 100644
index 000000000000..e4293d62ae20
--- /dev/null
+++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseCallableFactory.java
@@ -0,0 +1,101 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.oracledatabase.v1.stub;
+
+import com.google.api.gax.httpjson.HttpJsonCallSettings;
+import com.google.api.gax.httpjson.HttpJsonCallableFactory;
+import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable;
+import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.httpjson.longrunning.stub.OperationsStub;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * REST callable factory implementation for the OracleDatabase service API.
+ *
+ *