Class OracleDatabaseClient (0.3.0)

GitHub RepositoryProduct Reference

Service Description: Service describing handlers for resources

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:


 // 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().

Methods
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.

  • listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listCloudExadataInfrastructures(LocationName parent)

  • listCloudExadataInfrastructures(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listCloudExadataInfrastructuresPagedCallable()

  • listCloudExadataInfrastructuresCallable()

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.

  • getCloudExadataInfrastructure(GetCloudExadataInfrastructureRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getCloudExadataInfrastructure(CloudExadataInfrastructureName name)

  • getCloudExadataInfrastructure(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getCloudExadataInfrastructureCallable()

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.

  • createCloudExadataInfrastructureAsync(CreateCloudExadataInfrastructureRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createCloudExadataInfrastructureAsync(LocationName parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId)

  • createCloudExadataInfrastructureAsync(String parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createCloudExadataInfrastructureOperationCallable()

  • createCloudExadataInfrastructureCallable()

DeleteCloudExadataInfrastructure

Deletes a single Exadata Infrastructure.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteCloudExadataInfrastructureAsync(DeleteCloudExadataInfrastructureRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteCloudExadataInfrastructureAsync(CloudExadataInfrastructureName name)

  • deleteCloudExadataInfrastructureAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteCloudExadataInfrastructureOperationCallable()

  • deleteCloudExadataInfrastructureCallable()

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.

  • listCloudVmClusters(ListCloudVmClustersRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listCloudVmClusters(LocationName parent)

  • listCloudVmClusters(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listCloudVmClustersPagedCallable()

  • listCloudVmClustersCallable()

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.

  • getCloudVmCluster(GetCloudVmClusterRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getCloudVmCluster(CloudVmClusterName name)

  • getCloudVmCluster(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getCloudVmClusterCallable()

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.

  • createCloudVmClusterAsync(CreateCloudVmClusterRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createCloudVmClusterAsync(LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId)

  • createCloudVmClusterAsync(String parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createCloudVmClusterOperationCallable()

  • createCloudVmClusterCallable()

DeleteCloudVmCluster

Deletes a single VM Cluster.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteCloudVmClusterAsync(DeleteCloudVmClusterRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteCloudVmClusterAsync(CloudVmClusterName name)

  • deleteCloudVmClusterAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteCloudVmClusterOperationCallable()

  • deleteCloudVmClusterCallable()

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.

  • listEntitlements(ListEntitlementsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listEntitlements(LocationName parent)

  • listEntitlements(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listEntitlementsPagedCallable()

  • listEntitlementsCallable()

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.

  • listDbServers(ListDbServersRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listDbServers(CloudExadataInfrastructureName parent)

  • listDbServers(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listDbServersPagedCallable()

  • listDbServersCallable()

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.

  • listDbNodes(ListDbNodesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listDbNodes(CloudVmClusterName parent)

  • listDbNodes(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listDbNodesPagedCallable()

  • listDbNodesCallable()

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.

  • listGiVersions(ListGiVersionsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listGiVersions(LocationName parent)

  • listGiVersions(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listGiVersionsPagedCallable()

  • listGiVersionsCallable()

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.

  • listDbSystemShapes(ListDbSystemShapesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listDbSystemShapes(LocationName parent)

  • listDbSystemShapes(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listDbSystemShapesPagedCallable()

  • listDbSystemShapesCallable()

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.

  • listAutonomousDatabases(ListAutonomousDatabasesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listAutonomousDatabases(LocationName parent)

  • listAutonomousDatabases(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listAutonomousDatabasesPagedCallable()

  • listAutonomousDatabasesCallable()

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.

  • getAutonomousDatabase(GetAutonomousDatabaseRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getAutonomousDatabase(AutonomousDatabaseName name)

  • getAutonomousDatabase(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getAutonomousDatabaseCallable()

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.

  • createAutonomousDatabaseAsync(CreateAutonomousDatabaseRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createAutonomousDatabaseAsync(LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId)

  • createAutonomousDatabaseAsync(String parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createAutonomousDatabaseOperationCallable()

  • createAutonomousDatabaseCallable()

DeleteAutonomousDatabase

Deletes a single Autonomous Database.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteAutonomousDatabaseAsync(DeleteAutonomousDatabaseRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteAutonomousDatabaseAsync(AutonomousDatabaseName name)

  • deleteAutonomousDatabaseAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteAutonomousDatabaseOperationCallable()

  • deleteAutonomousDatabaseCallable()

RestoreAutonomousDatabase

Restores a single Autonomous Database.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • restoreAutonomousDatabaseAsync(RestoreAutonomousDatabaseRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, Timestamp restoreTime)

  • restoreAutonomousDatabaseAsync(String name, Timestamp restoreTime)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • restoreAutonomousDatabaseOperationCallable()

  • restoreAutonomousDatabaseCallable()

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.

  • generateAutonomousDatabaseWallet(GenerateAutonomousDatabaseWalletRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • generateAutonomousDatabaseWallet(AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password)

  • generateAutonomousDatabaseWallet(String name, GenerateType type, boolean isRegional, String password)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • generateAutonomousDatabaseWalletCallable()

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.

  • listAutonomousDbVersions(ListAutonomousDbVersionsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listAutonomousDbVersions(LocationName parent)

  • listAutonomousDbVersions(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listAutonomousDbVersionsPagedCallable()

  • listAutonomousDbVersionsCallable()

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.

  • listAutonomousDatabaseCharacterSets(ListAutonomousDatabaseCharacterSetsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listAutonomousDatabaseCharacterSets(LocationName parent)

  • listAutonomousDatabaseCharacterSets(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listAutonomousDatabaseCharacterSetsPagedCallable()

  • listAutonomousDatabaseCharacterSetsCallable()

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.

  • listAutonomousDatabaseBackups(ListAutonomousDatabaseBackupsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listAutonomousDatabaseBackups(LocationName parent)

  • listAutonomousDatabaseBackups(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listAutonomousDatabaseBackupsPagedCallable()

  • listAutonomousDatabaseBackupsCallable()

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.

  • listLocations(ListLocationsRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listLocationsPagedCallable()

  • listLocationsCallable()

GetLocation

Gets information about a location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getLocation(GetLocationRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getLocationCallable()

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:


 // 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:


 // 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.

Inheritance

java.lang.Object > OracleDatabaseClient

Static Methods

create()

public static final OracleDatabaseClient create()

Constructs an instance of OracleDatabaseClient with default settings.

Returns
Type Description
OracleDatabaseClient
Exceptions
Type Description
IOException

create(OracleDatabaseSettings settings)

public static final OracleDatabaseClient create(OracleDatabaseSettings settings)

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.

Parameter
Name Description
settings OracleDatabaseSettings
Returns
Type Description
OracleDatabaseClient
Exceptions
Type Description
IOException

create(OracleDatabaseStub stub)

public static final OracleDatabaseClient create(OracleDatabaseStub stub)

Constructs an instance of OracleDatabaseClient, using the given stub for making calls. This is for advanced usage - prefer using create(OracleDatabaseSettings).

Parameter
Name Description
stub OracleDatabaseStub
Returns
Type Description
OracleDatabaseClient

Constructors

OracleDatabaseClient(OracleDatabaseSettings settings)

protected OracleDatabaseClient(OracleDatabaseSettings settings)

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.

Parameter
Name Description
settings OracleDatabaseSettings

OracleDatabaseClient(OracleDatabaseStub stub)

protected OracleDatabaseClient(OracleDatabaseStub stub)
Parameter
Name Description
stub OracleDatabaseStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()

createAutonomousDatabaseAsync(CreateAutonomousDatabaseRequest request)

public final OperationFuture<AutonomousDatabase,OperationMetadata> createAutonomousDatabaseAsync(CreateAutonomousDatabaseRequest request)

Creates a new Autonomous Database in a given project and location.

Sample 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();
 }
 
Parameter
Name Description
request CreateAutonomousDatabaseRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<AutonomousDatabase,OperationMetadata>

createAutonomousDatabaseAsync(LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId)

public final OperationFuture<AutonomousDatabase,OperationMetadata> createAutonomousDatabaseAsync(LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId)

Creates a new Autonomous Database in a given project and location.

Sample 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();
 }
 
Parameters
Name Description
parent LocationName

Required. The name of the parent in the following format: projects/{project}/locations/{location}.

autonomousDatabase AutonomousDatabase

Required. The Autonomous Database being created.

autonomousDatabaseId String

Required. The ID of the Autonomous Database to create. This value is restricted to (^a-z?$) 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.

Returns
Type Description
OperationFuture<AutonomousDatabase,OperationMetadata>

createAutonomousDatabaseAsync(String parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId)

public final OperationFuture<AutonomousDatabase,OperationMetadata> createAutonomousDatabaseAsync(String parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId)

Creates a new Autonomous Database in a given project and location.

Sample 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();
 }
 
Parameters
Name Description
parent String

Required. The name of the parent in the following format: projects/{project}/locations/{location}.

autonomousDatabase AutonomousDatabase

Required. The Autonomous Database being created.

autonomousDatabaseId String

Required. The ID of the Autonomous Database to create. This value is restricted to (^a-z?$) 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.

Returns
Type Description
OperationFuture<AutonomousDatabase,OperationMetadata>

createAutonomousDatabaseCallable()

public final UnaryCallable<CreateAutonomousDatabaseRequest,Operation> createAutonomousDatabaseCallable()

Creates a new Autonomous Database in a given project and location.

Sample 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<Operation> future =
       oracleDatabaseClient.createAutonomousDatabaseCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateAutonomousDatabaseRequest,Operation>

createAutonomousDatabaseOperationCallable()

public final OperationCallable<CreateAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> createAutonomousDatabaseOperationCallable()

Creates a new Autonomous Database in a given project and location.

Sample 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<AutonomousDatabase, OperationMetadata> future =
       oracleDatabaseClient.createAutonomousDatabaseOperationCallable().futureCall(request);
   // Do something.
   AutonomousDatabase response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata>

createCloudExadataInfrastructureAsync(CreateCloudExadataInfrastructureRequest request)

public final OperationFuture<CloudExadataInfrastructure,OperationMetadata> createCloudExadataInfrastructureAsync(CreateCloudExadataInfrastructureRequest request)

Creates a new Exadata Infrastructure in a given project and location.

Sample 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();
 }
 
Parameter
Name Description
request CreateCloudExadataInfrastructureRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<CloudExadataInfrastructure,OperationMetadata>

createCloudExadataInfrastructureAsync(LocationName parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId)

public final OperationFuture<CloudExadataInfrastructure,OperationMetadata> createCloudExadataInfrastructureAsync(LocationName parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId)

Creates a new Exadata Infrastructure in a given project and location.

Sample 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();
 }
 
Parameters
Name Description
parent LocationName

Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}.

cloudExadataInfrastructure CloudExadataInfrastructure

Required. Details of the Exadata Infrastructure instance to create.

cloudExadataInfrastructureId String

Required. The ID of the Exadata Infrastructure to create. This value is restricted to (^a-z?$) 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.

Returns
Type Description
OperationFuture<CloudExadataInfrastructure,OperationMetadata>

createCloudExadataInfrastructureAsync(String parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId)

public final OperationFuture<CloudExadataInfrastructure,OperationMetadata> createCloudExadataInfrastructureAsync(String parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId)

Creates a new Exadata Infrastructure in a given project and location.

Sample 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();
 }
 
Parameters
Name Description
parent String

Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}.

cloudExadataInfrastructure CloudExadataInfrastructure

Required. Details of the Exadata Infrastructure instance to create.

cloudExadataInfrastructureId String

Required. The ID of the Exadata Infrastructure to create. This value is restricted to (^a-z?$) 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.

Returns
Type Description
OperationFuture<CloudExadataInfrastructure,OperationMetadata>

createCloudExadataInfrastructureCallable()

public final UnaryCallable<CreateCloudExadataInfrastructureRequest,Operation> createCloudExadataInfrastructureCallable()

Creates a new Exadata Infrastructure in a given project and location.

Sample 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<Operation> future =
       oracleDatabaseClient.createCloudExadataInfrastructureCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateCloudExadataInfrastructureRequest,Operation>

createCloudExadataInfrastructureOperationCallable()

public final OperationCallable<CreateCloudExadataInfrastructureRequest,CloudExadataInfrastructure,OperationMetadata> createCloudExadataInfrastructureOperationCallable()

Creates a new Exadata Infrastructure in a given project and location.

Sample 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<CloudExadataInfrastructure, OperationMetadata> future =
       oracleDatabaseClient
           .createCloudExadataInfrastructureOperationCallable()
           .futureCall(request);
   // Do something.
   CloudExadataInfrastructure response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateCloudExadataInfrastructureRequest,CloudExadataInfrastructure,OperationMetadata>

createCloudVmClusterAsync(CreateCloudVmClusterRequest request)

public final OperationFuture<CloudVmCluster,OperationMetadata> createCloudVmClusterAsync(CreateCloudVmClusterRequest request)

Creates a new VM Cluster in a given project and location.

Sample 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();
 }
 
Parameter
Name Description
request CreateCloudVmClusterRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<CloudVmCluster,OperationMetadata>

createCloudVmClusterAsync(LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId)

public final OperationFuture<CloudVmCluster,OperationMetadata> createCloudVmClusterAsync(LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId)

Creates a new VM Cluster in a given project and location.

Sample 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();
 }
 
Parameters
Name Description
parent LocationName

Required. The name of the parent in the following format: projects/{project}/locations/{location}.

cloudVmCluster CloudVmCluster

Required. The resource being created

cloudVmClusterId String

Required. The ID of the VM Cluster to create. This value is restricted to (^a-z?$) 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.

Returns
Type Description
OperationFuture<CloudVmCluster,OperationMetadata>

createCloudVmClusterAsync(String parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId)

public final OperationFuture<CloudVmCluster,OperationMetadata> createCloudVmClusterAsync(String parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId)

Creates a new VM Cluster in a given project and location.

Sample 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();
 }
 
Parameters
Name Description
parent String

Required. The name of the parent in the following format: projects/{project}/locations/{location}.

cloudVmCluster CloudVmCluster

Required. The resource being created

cloudVmClusterId String

Required. The ID of the VM Cluster to create. This value is restricted to (^a-z?$) 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.

Returns
Type Description
OperationFuture<CloudVmCluster,OperationMetadata>

createCloudVmClusterCallable()

public final UnaryCallable<CreateCloudVmClusterRequest,Operation> createCloudVmClusterCallable()

Creates a new VM Cluster in a given project and location.

Sample 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<Operation> future =
       oracleDatabaseClient.createCloudVmClusterCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateCloudVmClusterRequest,Operation>

createCloudVmClusterOperationCallable()

public final OperationCallable<CreateCloudVmClusterRequest,CloudVmCluster,OperationMetadata> createCloudVmClusterOperationCallable()

Creates a new VM Cluster in a given project and location.

Sample 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<CloudVmCluster, OperationMetadata> future =
       oracleDatabaseClient.createCloudVmClusterOperationCallable().futureCall(request);
   // Do something.
   CloudVmCluster response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateCloudVmClusterRequest,CloudVmCluster,OperationMetadata>

deleteAutonomousDatabaseAsync(AutonomousDatabaseName name)

public final OperationFuture<Empty,OperationMetadata> deleteAutonomousDatabaseAsync(AutonomousDatabaseName name)

Deletes a single Autonomous Database.

Sample 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();
 }
 
Parameter
Name Description
name AutonomousDatabaseName

Required. The name of the resource in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteAutonomousDatabaseAsync(DeleteAutonomousDatabaseRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteAutonomousDatabaseAsync(DeleteAutonomousDatabaseRequest request)

Deletes a single Autonomous Database.

Sample 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();
 }
 
Parameter
Name Description
request DeleteAutonomousDatabaseRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteAutonomousDatabaseAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteAutonomousDatabaseAsync(String name)

Deletes a single Autonomous Database.

Sample 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();
 }
 
Parameter
Name Description
name String

Required. The name of the resource in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteAutonomousDatabaseCallable()

public final UnaryCallable<DeleteAutonomousDatabaseRequest,Operation> deleteAutonomousDatabaseCallable()

Deletes a single Autonomous Database.

Sample 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<Operation> future =
       oracleDatabaseClient.deleteAutonomousDatabaseCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteAutonomousDatabaseRequest,Operation>

deleteAutonomousDatabaseOperationCallable()

public final OperationCallable<DeleteAutonomousDatabaseRequest,Empty,OperationMetadata> deleteAutonomousDatabaseOperationCallable()

Deletes a single Autonomous Database.

Sample 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<Empty, OperationMetadata> future =
       oracleDatabaseClient.deleteAutonomousDatabaseOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteAutonomousDatabaseRequest,Empty,OperationMetadata>

deleteCloudExadataInfrastructureAsync(CloudExadataInfrastructureName name)

public final OperationFuture<Empty,OperationMetadata> deleteCloudExadataInfrastructureAsync(CloudExadataInfrastructureName name)

Deletes a single Exadata Infrastructure.

Sample 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();
 }
 
Parameter
Name Description
name CloudExadataInfrastructureName

Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCloudExadataInfrastructureAsync(DeleteCloudExadataInfrastructureRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteCloudExadataInfrastructureAsync(DeleteCloudExadataInfrastructureRequest request)

Deletes a single Exadata Infrastructure.

Sample 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();
 }
 
Parameter
Name Description
request DeleteCloudExadataInfrastructureRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCloudExadataInfrastructureAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteCloudExadataInfrastructureAsync(String name)

Deletes a single Exadata Infrastructure.

Sample 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();
 }
 
Parameter
Name Description
name String

Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCloudExadataInfrastructureCallable()

public final UnaryCallable<DeleteCloudExadataInfrastructureRequest,Operation> deleteCloudExadataInfrastructureCallable()

Deletes a single Exadata Infrastructure.

Sample 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<Operation> future =
       oracleDatabaseClient.deleteCloudExadataInfrastructureCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteCloudExadataInfrastructureRequest,Operation>

deleteCloudExadataInfrastructureOperationCallable()

public final OperationCallable<DeleteCloudExadataInfrastructureRequest,Empty,OperationMetadata> deleteCloudExadataInfrastructureOperationCallable()

Deletes a single Exadata Infrastructure.

Sample 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<Empty, OperationMetadata> future =
       oracleDatabaseClient
           .deleteCloudExadataInfrastructureOperationCallable()
           .futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteCloudExadataInfrastructureRequest,Empty,OperationMetadata>

deleteCloudVmClusterAsync(CloudVmClusterName name)

public final OperationFuture<Empty,OperationMetadata> deleteCloudVmClusterAsync(CloudVmClusterName name)

Deletes a single VM Cluster.

Sample 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();
 }
 
Parameter
Name Description
name CloudVmClusterName

Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCloudVmClusterAsync(DeleteCloudVmClusterRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteCloudVmClusterAsync(DeleteCloudVmClusterRequest request)

Deletes a single VM Cluster.

Sample 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();
 }
 
Parameter
Name Description
request DeleteCloudVmClusterRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCloudVmClusterAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteCloudVmClusterAsync(String name)

Deletes a single VM Cluster.

Sample 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();
 }
 
Parameter
Name Description
name String

Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCloudVmClusterCallable()

public final UnaryCallable<DeleteCloudVmClusterRequest,Operation> deleteCloudVmClusterCallable()

Deletes a single VM Cluster.

Sample 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<Operation> future =
       oracleDatabaseClient.deleteCloudVmClusterCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteCloudVmClusterRequest,Operation>

deleteCloudVmClusterOperationCallable()

public final OperationCallable<DeleteCloudVmClusterRequest,Empty,OperationMetadata> deleteCloudVmClusterOperationCallable()

Deletes a single VM Cluster.

Sample 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<Empty, OperationMetadata> future =
       oracleDatabaseClient.deleteCloudVmClusterOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteCloudVmClusterRequest,Empty,OperationMetadata>

generateAutonomousDatabaseWallet(AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password)

public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet(AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password)

Generates a wallet for an Autonomous Database.

Sample 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);
 }
 
Parameters
Name Description
name AutonomousDatabaseName

Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.

type GenerateType

Optional. The type of wallet generation for the Autonomous Database. The default value is SINGLE.

isRegional boolean

Optional. True when requesting regional connection strings in PDB connect info, applicable to cross-region Data Guard only.

password String

Required. The password used to encrypt the keys inside the wallet. The password must be a minimum of 8 characters.

Returns
Type Description
GenerateAutonomousDatabaseWalletResponse

generateAutonomousDatabaseWallet(GenerateAutonomousDatabaseWalletRequest request)

public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet(GenerateAutonomousDatabaseWalletRequest request)

Generates a wallet for an Autonomous Database.

Sample 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);
 }
 
Parameter
Name Description
request GenerateAutonomousDatabaseWalletRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
GenerateAutonomousDatabaseWalletResponse

generateAutonomousDatabaseWallet(String name, GenerateType type, boolean isRegional, String password)

public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet(String name, GenerateType type, boolean isRegional, String password)

Generates a wallet for an Autonomous Database.

Sample 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);
 }
 
Parameters
Name Description
name String

Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.

type GenerateType

Optional. The type of wallet generation for the Autonomous Database. The default value is SINGLE.

isRegional boolean

Optional. True when requesting regional connection strings in PDB connect info, applicable to cross-region Data Guard only.

password String

Required. The password used to encrypt the keys inside the wallet. The password must be a minimum of 8 characters.

Returns
Type Description
GenerateAutonomousDatabaseWalletResponse

generateAutonomousDatabaseWalletCallable()

public final UnaryCallable<GenerateAutonomousDatabaseWalletRequest,GenerateAutonomousDatabaseWalletResponse> generateAutonomousDatabaseWalletCallable()

Generates a wallet for an Autonomous Database.

Sample 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<GenerateAutonomousDatabaseWalletResponse> future =
       oracleDatabaseClient.generateAutonomousDatabaseWalletCallable().futureCall(request);
   // Do something.
   GenerateAutonomousDatabaseWalletResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GenerateAutonomousDatabaseWalletRequest,GenerateAutonomousDatabaseWalletResponse>

getAutonomousDatabase(AutonomousDatabaseName name)

public final AutonomousDatabase getAutonomousDatabase(AutonomousDatabaseName name)

Gets the details of a single Autonomous Database.

Sample 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);
 }
 
Parameter
Name Description
name AutonomousDatabaseName

Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.

Returns
Type Description
AutonomousDatabase

getAutonomousDatabase(GetAutonomousDatabaseRequest request)

public final AutonomousDatabase getAutonomousDatabase(GetAutonomousDatabaseRequest request)

Gets the details of a single Autonomous Database.

Sample 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);
 }
 
Parameter
Name Description
request GetAutonomousDatabaseRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
AutonomousDatabase

getAutonomousDatabase(String name)

public final AutonomousDatabase getAutonomousDatabase(String name)

Gets the details of a single Autonomous Database.

Sample 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);
 }
 
Parameter
Name Description
name String

Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.

Returns
Type Description
AutonomousDatabase

getAutonomousDatabaseCallable()

public final UnaryCallable<GetAutonomousDatabaseRequest,AutonomousDatabase> getAutonomousDatabaseCallable()

Gets the details of a single Autonomous Database.

Sample 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<AutonomousDatabase> future =
       oracleDatabaseClient.getAutonomousDatabaseCallable().futureCall(request);
   // Do something.
   AutonomousDatabase response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetAutonomousDatabaseRequest,AutonomousDatabase>

getCloudExadataInfrastructure(CloudExadataInfrastructureName name)

public final CloudExadataInfrastructure getCloudExadataInfrastructure(CloudExadataInfrastructureName name)

Gets details of a single Exadata Infrastructure.

Sample 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);
 }
 
Parameter
Name Description
name CloudExadataInfrastructureName

Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.

Returns
Type Description
CloudExadataInfrastructure

getCloudExadataInfrastructure(GetCloudExadataInfrastructureRequest request)

public final CloudExadataInfrastructure getCloudExadataInfrastructure(GetCloudExadataInfrastructureRequest request)

Gets details of a single Exadata Infrastructure.

Sample 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);
 }
 
Parameter
Name Description
request GetCloudExadataInfrastructureRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
CloudExadataInfrastructure

getCloudExadataInfrastructure(String name)

public final CloudExadataInfrastructure getCloudExadataInfrastructure(String name)

Gets details of a single Exadata Infrastructure.

Sample 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);
 }
 
Parameter
Name Description
name String

Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.

Returns
Type Description
CloudExadataInfrastructure

getCloudExadataInfrastructureCallable()

public final UnaryCallable<GetCloudExadataInfrastructureRequest,CloudExadataInfrastructure> getCloudExadataInfrastructureCallable()

Gets details of a single Exadata Infrastructure.

Sample 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<CloudExadataInfrastructure> future =
       oracleDatabaseClient.getCloudExadataInfrastructureCallable().futureCall(request);
   // Do something.
   CloudExadataInfrastructure response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetCloudExadataInfrastructureRequest,CloudExadataInfrastructure>

getCloudVmCluster(CloudVmClusterName name)

public final CloudVmCluster getCloudVmCluster(CloudVmClusterName name)

Gets details of a single VM Cluster.

Sample 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);
 }
 
Parameter
Name Description
name CloudVmClusterName

Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.

Returns
Type Description
CloudVmCluster

getCloudVmCluster(GetCloudVmClusterRequest request)

public final CloudVmCluster getCloudVmCluster(GetCloudVmClusterRequest request)

Gets details of a single VM Cluster.

Sample 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);
 }
 
Parameter
Name Description
request GetCloudVmClusterRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
CloudVmCluster

getCloudVmCluster(String name)

public final CloudVmCluster getCloudVmCluster(String name)

Gets details of a single VM Cluster.

Sample 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);
 }
 
Parameter
Name Description
name String

Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.

Returns
Type Description
CloudVmCluster

getCloudVmClusterCallable()

public final UnaryCallable<GetCloudVmClusterRequest,CloudVmCluster> getCloudVmClusterCallable()

Gets details of a single VM Cluster.

Sample 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<CloudVmCluster> future =
       oracleDatabaseClient.getCloudVmClusterCallable().futureCall(request);
   // Do something.
   CloudVmCluster response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetCloudVmClusterRequest,CloudVmCluster>

getHttpJsonOperationsClient()

public final OperationsClient getHttpJsonOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
Type Description
OperationsClient

getLocation(GetLocationRequest request)

public final Location getLocation(GetLocationRequest request)

Gets information about a location.

Sample 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);
 }
 
Parameter
Name Description
request com.google.cloud.location.GetLocationRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
com.google.cloud.location.Location

getLocationCallable()

public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()

Gets information about a location.

Sample 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<Location> future = oracleDatabaseClient.getLocationCallable().futureCall(request);
   // Do something.
   Location response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getSettings()

public final OracleDatabaseSettings getSettings()
Returns
Type Description
OracleDatabaseSettings

getStub()

public OracleDatabaseStub getStub()
Returns
Type Description
OracleDatabaseStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listAutonomousDatabaseBackups(ListAutonomousDatabaseBackupsRequest request)

public final OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups(ListAutonomousDatabaseBackupsRequest request)

Lists the long-term and automatic backups of an Autonomous Database.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListAutonomousDatabaseBackupsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse

listAutonomousDatabaseBackups(LocationName parent)

public final OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups(LocationName parent)

Lists the long-term and automatic backups of an Autonomous Database.

Sample 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The parent value for ListAutonomousDatabaseBackups in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse

listAutonomousDatabaseBackups(String parent)

public final OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups(String parent)

Lists the long-term and automatic backups of an Autonomous Database.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent value for ListAutonomousDatabaseBackups in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse

listAutonomousDatabaseBackupsCallable()

public final UnaryCallable<ListAutonomousDatabaseBackupsRequest,ListAutonomousDatabaseBackupsResponse> listAutonomousDatabaseBackupsCallable()

Lists the long-term and automatic backups of an Autonomous Database.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListAutonomousDatabaseBackupsRequest,ListAutonomousDatabaseBackupsResponse>

listAutonomousDatabaseBackupsPagedCallable()

public final UnaryCallable<ListAutonomousDatabaseBackupsRequest,OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse> listAutonomousDatabaseBackupsPagedCallable()

Lists the long-term and automatic backups of an Autonomous Database.

Sample 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<AutonomousDatabaseBackup> future =
       oracleDatabaseClient.listAutonomousDatabaseBackupsPagedCallable().futureCall(request);
   // Do something.
   for (AutonomousDatabaseBackup element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListAutonomousDatabaseBackupsRequest,ListAutonomousDatabaseBackupsPagedResponse>

listAutonomousDatabaseCharacterSets(ListAutonomousDatabaseCharacterSetsRequest request)

public final OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets(ListAutonomousDatabaseCharacterSetsRequest request)

Lists Autonomous Database Character Sets in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListAutonomousDatabaseCharacterSetsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse

listAutonomousDatabaseCharacterSets(LocationName parent)

public final OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets(LocationName parent)

Lists Autonomous Database Character Sets in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse

listAutonomousDatabaseCharacterSets(String parent)

public final OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets(String parent)

Lists Autonomous Database Character Sets in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse

listAutonomousDatabaseCharacterSetsCallable()

public final UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,ListAutonomousDatabaseCharacterSetsResponse> listAutonomousDatabaseCharacterSetsCallable()

Lists Autonomous Database Character Sets in a given project and location.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,ListAutonomousDatabaseCharacterSetsResponse>

listAutonomousDatabaseCharacterSetsPagedCallable()

public final UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse> listAutonomousDatabaseCharacterSetsPagedCallable()

Lists Autonomous Database Character Sets in a given project and location.

Sample 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<AutonomousDatabaseCharacterSet> future =
       oracleDatabaseClient
           .listAutonomousDatabaseCharacterSetsPagedCallable()
           .futureCall(request);
   // Do something.
   for (AutonomousDatabaseCharacterSet element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,ListAutonomousDatabaseCharacterSetsPagedResponse>

listAutonomousDatabases(ListAutonomousDatabasesRequest request)

public final OracleDatabaseClient.ListAutonomousDatabasesPagedResponse listAutonomousDatabases(ListAutonomousDatabasesRequest request)

Lists the Autonomous Databases in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListAutonomousDatabasesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDatabasesPagedResponse

listAutonomousDatabases(LocationName parent)

public final OracleDatabaseClient.ListAutonomousDatabasesPagedResponse listAutonomousDatabases(LocationName parent)

Lists the Autonomous Databases in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDatabasesPagedResponse

listAutonomousDatabases(String parent)

public final OracleDatabaseClient.ListAutonomousDatabasesPagedResponse listAutonomousDatabases(String parent)

Lists the Autonomous Databases in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDatabasesPagedResponse

listAutonomousDatabasesCallable()

public final UnaryCallable<ListAutonomousDatabasesRequest,ListAutonomousDatabasesResponse> listAutonomousDatabasesCallable()

Lists the Autonomous Databases in a given project and location.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListAutonomousDatabasesRequest,ListAutonomousDatabasesResponse>

listAutonomousDatabasesPagedCallable()

public final UnaryCallable<ListAutonomousDatabasesRequest,OracleDatabaseClient.ListAutonomousDatabasesPagedResponse> listAutonomousDatabasesPagedCallable()

Lists the Autonomous Databases in a given project and location.

Sample 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<AutonomousDatabase> future =
       oracleDatabaseClient.listAutonomousDatabasesPagedCallable().futureCall(request);
   // Do something.
   for (AutonomousDatabase element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListAutonomousDatabasesRequest,ListAutonomousDatabasesPagedResponse>

listAutonomousDbVersions(ListAutonomousDbVersionsRequest request)

public final OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(ListAutonomousDbVersionsRequest request)

Lists all the available Autonomous Database versions for a project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListAutonomousDbVersionsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse

listAutonomousDbVersions(LocationName parent)

public final OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(LocationName parent)

Lists all the available Autonomous Database versions for a project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse

listAutonomousDbVersions(String parent)

public final OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(String parent)

Lists all the available Autonomous Database versions for a project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse

listAutonomousDbVersionsCallable()

public final UnaryCallable<ListAutonomousDbVersionsRequest,ListAutonomousDbVersionsResponse> listAutonomousDbVersionsCallable()

Lists all the available Autonomous Database versions for a project and location.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListAutonomousDbVersionsRequest,ListAutonomousDbVersionsResponse>

listAutonomousDbVersionsPagedCallable()

public final UnaryCallable<ListAutonomousDbVersionsRequest,OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse> listAutonomousDbVersionsPagedCallable()

Lists all the available Autonomous Database versions for a project and location.

Sample 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<AutonomousDbVersion> future =
       oracleDatabaseClient.listAutonomousDbVersionsPagedCallable().futureCall(request);
   // Do something.
   for (AutonomousDbVersion element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListAutonomousDbVersionsRequest,ListAutonomousDbVersionsPagedResponse>

listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest request)

public final OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest request)

Lists Exadata Infrastructures in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListCloudExadataInfrastructuresRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse

listCloudExadataInfrastructures(LocationName parent)

public final OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(LocationName parent)

Lists Exadata Infrastructures in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse

listCloudExadataInfrastructures(String parent)

public final OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(String parent)

Lists Exadata Infrastructures in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse

listCloudExadataInfrastructuresCallable()

public final UnaryCallable<ListCloudExadataInfrastructuresRequest,ListCloudExadataInfrastructuresResponse> listCloudExadataInfrastructuresCallable()

Lists Exadata Infrastructures in a given project and location.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListCloudExadataInfrastructuresRequest,ListCloudExadataInfrastructuresResponse>

listCloudExadataInfrastructuresPagedCallable()

public final UnaryCallable<ListCloudExadataInfrastructuresRequest,OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse> listCloudExadataInfrastructuresPagedCallable()

Lists Exadata Infrastructures in a given project and location.

Sample 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<CloudExadataInfrastructure> future =
       oracleDatabaseClient.listCloudExadataInfrastructuresPagedCallable().futureCall(request);
   // Do something.
   for (CloudExadataInfrastructure element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListCloudExadataInfrastructuresRequest,ListCloudExadataInfrastructuresPagedResponse>

listCloudVmClusters(ListCloudVmClustersRequest request)

public final OracleDatabaseClient.ListCloudVmClustersPagedResponse listCloudVmClusters(ListCloudVmClustersRequest request)

Lists the VM Clusters in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListCloudVmClustersRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListCloudVmClustersPagedResponse

listCloudVmClusters(LocationName parent)

public final OracleDatabaseClient.ListCloudVmClustersPagedResponse listCloudVmClusters(LocationName parent)

Lists the VM Clusters in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The name of the parent in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListCloudVmClustersPagedResponse

listCloudVmClusters(String parent)

public final OracleDatabaseClient.ListCloudVmClustersPagedResponse listCloudVmClusters(String parent)

Lists the VM Clusters in a given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The name of the parent in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListCloudVmClustersPagedResponse

listCloudVmClustersCallable()

public final UnaryCallable<ListCloudVmClustersRequest,ListCloudVmClustersResponse> listCloudVmClustersCallable()

Lists the VM Clusters in a given project and location.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListCloudVmClustersRequest,ListCloudVmClustersResponse>

listCloudVmClustersPagedCallable()

public final UnaryCallable<ListCloudVmClustersRequest,OracleDatabaseClient.ListCloudVmClustersPagedResponse> listCloudVmClustersPagedCallable()

Lists the VM Clusters in a given project and location.

Sample 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<CloudVmCluster> future =
       oracleDatabaseClient.listCloudVmClustersPagedCallable().futureCall(request);
   // Do something.
   for (CloudVmCluster element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListCloudVmClustersRequest,ListCloudVmClustersPagedResponse>

listDbNodes(CloudVmClusterName parent)

public final OracleDatabaseClient.ListDbNodesPagedResponse listDbNodes(CloudVmClusterName parent)

Lists the database nodes of a VM Cluster.

Sample 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);
   }
 }
 
Parameter
Name Description
parent CloudVmClusterName

Required. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.

Returns
Type Description
OracleDatabaseClient.ListDbNodesPagedResponse

listDbNodes(ListDbNodesRequest request)

public final OracleDatabaseClient.ListDbNodesPagedResponse listDbNodes(ListDbNodesRequest request)

Lists the database nodes of a VM Cluster.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListDbNodesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListDbNodesPagedResponse

listDbNodes(String parent)

public final OracleDatabaseClient.ListDbNodesPagedResponse listDbNodes(String parent)

Lists the database nodes of a VM Cluster.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.

Returns
Type Description
OracleDatabaseClient.ListDbNodesPagedResponse

listDbNodesCallable()

public final UnaryCallable<ListDbNodesRequest,ListDbNodesResponse> listDbNodesCallable()

Lists the database nodes of a VM Cluster.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListDbNodesRequest,ListDbNodesResponse>

listDbNodesPagedCallable()

public final UnaryCallable<ListDbNodesRequest,OracleDatabaseClient.ListDbNodesPagedResponse> listDbNodesPagedCallable()

Lists the database nodes of a VM Cluster.

Sample 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<DbNode> future =
       oracleDatabaseClient.listDbNodesPagedCallable().futureCall(request);
   // Do something.
   for (DbNode element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListDbNodesRequest,ListDbNodesPagedResponse>

listDbServers(CloudExadataInfrastructureName parent)

public final OracleDatabaseClient.ListDbServersPagedResponse listDbServers(CloudExadataInfrastructureName parent)

Lists the database servers of an Exadata Infrastructure instance.

Sample 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);
   }
 }
 
Parameter
Name Description
parent CloudExadataInfrastructureName

Required. The parent value for database server in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.

Returns
Type Description
OracleDatabaseClient.ListDbServersPagedResponse

listDbServers(ListDbServersRequest request)

public final OracleDatabaseClient.ListDbServersPagedResponse listDbServers(ListDbServersRequest request)

Lists the database servers of an Exadata Infrastructure instance.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListDbServersRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListDbServersPagedResponse

listDbServers(String parent)

public final OracleDatabaseClient.ListDbServersPagedResponse listDbServers(String parent)

Lists the database servers of an Exadata Infrastructure instance.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent value for database server in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.

Returns
Type Description
OracleDatabaseClient.ListDbServersPagedResponse

listDbServersCallable()

public final UnaryCallable<ListDbServersRequest,ListDbServersResponse> listDbServersCallable()

Lists the database servers of an Exadata Infrastructure instance.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListDbServersRequest,ListDbServersResponse>

listDbServersPagedCallable()

public final UnaryCallable<ListDbServersRequest,OracleDatabaseClient.ListDbServersPagedResponse> listDbServersPagedCallable()

Lists the database servers of an Exadata Infrastructure instance.

Sample 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<DbServer> future =
       oracleDatabaseClient.listDbServersPagedCallable().futureCall(request);
   // Do something.
   for (DbServer element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListDbServersRequest,ListDbServersPagedResponse>

listDbSystemShapes(ListDbSystemShapesRequest request)

public final OracleDatabaseClient.ListDbSystemShapesPagedResponse listDbSystemShapes(ListDbSystemShapesRequest request)

Lists the database system shapes available for the project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListDbSystemShapesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListDbSystemShapesPagedResponse

listDbSystemShapes(LocationName parent)

public final OracleDatabaseClient.ListDbSystemShapesPagedResponse listDbSystemShapes(LocationName parent)

Lists the database system shapes available for the project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListDbSystemShapesPagedResponse

listDbSystemShapes(String parent)

public final OracleDatabaseClient.ListDbSystemShapesPagedResponse listDbSystemShapes(String parent)

Lists the database system shapes available for the project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListDbSystemShapesPagedResponse

listDbSystemShapesCallable()

public final UnaryCallable<ListDbSystemShapesRequest,ListDbSystemShapesResponse> listDbSystemShapesCallable()

Lists the database system shapes available for the project and location.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListDbSystemShapesRequest,ListDbSystemShapesResponse>

listDbSystemShapesPagedCallable()

public final UnaryCallable<ListDbSystemShapesRequest,OracleDatabaseClient.ListDbSystemShapesPagedResponse> listDbSystemShapesPagedCallable()

Lists the database system shapes available for the project and location.

Sample 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<DbSystemShape> future =
       oracleDatabaseClient.listDbSystemShapesPagedCallable().futureCall(request);
   // Do something.
   for (DbSystemShape element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListDbSystemShapesRequest,ListDbSystemShapesPagedResponse>

listEntitlements(ListEntitlementsRequest request)

public final OracleDatabaseClient.ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequest request)

Lists the entitlements in a given project.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListEntitlementsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListEntitlementsPagedResponse

listEntitlements(LocationName parent)

public final OracleDatabaseClient.ListEntitlementsPagedResponse listEntitlements(LocationName parent)

Lists the entitlements in a given project.

Sample 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The parent value for the entitlement in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListEntitlementsPagedResponse

listEntitlements(String parent)

public final OracleDatabaseClient.ListEntitlementsPagedResponse listEntitlements(String parent)

Lists the entitlements in a given project.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent value for the entitlement in the following format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListEntitlementsPagedResponse

listEntitlementsCallable()

public final UnaryCallable<ListEntitlementsRequest,ListEntitlementsResponse> listEntitlementsCallable()

Lists the entitlements in a given project.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListEntitlementsRequest,ListEntitlementsResponse>

listEntitlementsPagedCallable()

public final UnaryCallable<ListEntitlementsRequest,OracleDatabaseClient.ListEntitlementsPagedResponse> listEntitlementsPagedCallable()

Lists the entitlements in a given project.

Sample 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<Entitlement> future =
       oracleDatabaseClient.listEntitlementsPagedCallable().futureCall(request);
   // Do something.
   for (Entitlement element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListEntitlementsRequest,ListEntitlementsPagedResponse>

listGiVersions(ListGiVersionsRequest request)

public final OracleDatabaseClient.ListGiVersionsPagedResponse listGiVersions(ListGiVersionsRequest request)

Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
request ListGiVersionsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListGiVersionsPagedResponse

listGiVersions(LocationName parent)

public final OracleDatabaseClient.ListGiVersionsPagedResponse listGiVersions(LocationName parent)

Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListGiVersionsPagedResponse

listGiVersions(String parent)

public final OracleDatabaseClient.ListGiVersionsPagedResponse listGiVersions(String parent)

Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.

Sample 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);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}.

Returns
Type Description
OracleDatabaseClient.ListGiVersionsPagedResponse

listGiVersionsCallable()

public final UnaryCallable<ListGiVersionsRequest,ListGiVersionsResponse> listGiVersionsCallable()

Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListGiVersionsRequest,ListGiVersionsResponse>

listGiVersionsPagedCallable()

public final UnaryCallable<ListGiVersionsRequest,OracleDatabaseClient.ListGiVersionsPagedResponse> listGiVersionsPagedCallable()

Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.

Sample 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<GiVersion> future =
       oracleDatabaseClient.listGiVersionsPagedCallable().futureCall(request);
   // Do something.
   for (GiVersion element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListGiVersionsRequest,ListGiVersionsPagedResponse>

listLocations(ListLocationsRequest request)

public final OracleDatabaseClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

Sample 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);
   }
 }
 
Parameter
Name Description
request com.google.cloud.location.ListLocationsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OracleDatabaseClient.ListLocationsPagedResponse

listLocationsCallable()

public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()

Lists information about the supported locations for this service.

Sample 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>

listLocationsPagedCallable()

public final UnaryCallable<ListLocationsRequest,OracleDatabaseClient.ListLocationsPagedResponse> listLocationsPagedCallable()

Lists information about the supported locations for this service.

Sample 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<Location> future =
       oracleDatabaseClient.listLocationsPagedCallable().futureCall(request);
   // Do something.
   for (Location element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>

restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, Timestamp restoreTime)

public final OperationFuture<AutonomousDatabase,OperationMetadata> restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, Timestamp restoreTime)

Restores a single Autonomous Database.

Sample 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();
 }
 
Parameters
Name Description
name AutonomousDatabaseName

Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.

restoreTime Timestamp

Required. The time and date to restore the database to.

Returns
Type Description
OperationFuture<AutonomousDatabase,OperationMetadata>

restoreAutonomousDatabaseAsync(RestoreAutonomousDatabaseRequest request)

public final OperationFuture<AutonomousDatabase,OperationMetadata> restoreAutonomousDatabaseAsync(RestoreAutonomousDatabaseRequest request)

Restores a single Autonomous Database.

Sample 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();
 }
 
Parameter
Name Description
request RestoreAutonomousDatabaseRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<AutonomousDatabase,OperationMetadata>

restoreAutonomousDatabaseAsync(String name, Timestamp restoreTime)

public final OperationFuture<AutonomousDatabase,OperationMetadata> restoreAutonomousDatabaseAsync(String name, Timestamp restoreTime)

Restores a single Autonomous Database.

Sample 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();
 }
 
Parameters
Name Description
name String

Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.

restoreTime Timestamp

Required. The time and date to restore the database to.

Returns
Type Description
OperationFuture<AutonomousDatabase,OperationMetadata>

restoreAutonomousDatabaseCallable()

public final UnaryCallable<RestoreAutonomousDatabaseRequest,Operation> restoreAutonomousDatabaseCallable()

Restores a single Autonomous Database.

Sample 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<Operation> future =
       oracleDatabaseClient.restoreAutonomousDatabaseCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<RestoreAutonomousDatabaseRequest,Operation>

restoreAutonomousDatabaseOperationCallable()

public final OperationCallable<RestoreAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> restoreAutonomousDatabaseOperationCallable()

Restores a single Autonomous Database.

Sample 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<AutonomousDatabase, OperationMetadata> future =
       oracleDatabaseClient.restoreAutonomousDatabaseOperationCallable().futureCall(request);
   // Do something.
   AutonomousDatabase response = future.get();
 }
 
Returns
Type Description
OperationCallable<RestoreAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()