Class OracleDatabaseClient

java.lang.Object
com.google.cloud.oracledatabase.v1.OracleDatabaseClient
All Implemented Interfaces:
BackgroundResource, AutoCloseable

@Generated("by gapic-generator-java") public class OracleDatabaseClient extends Object implements BackgroundResource
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(ExadbVmClusterName 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()

ListMinorVersions

Lists all the valid minor versions for the given project, location, gi version and shape family.

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

  • listMinorVersions(ListMinorVersionsRequest request)

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

  • listMinorVersions(GiVersionName parent)

  • listMinorVersions(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.

  • listMinorVersionsPagedCallable()

  • listMinorVersionsCallable()

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

UpdateAutonomousDatabase

Updates the parameters of a single Autonomous Database.

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

  • updateAutonomousDatabaseAsync(UpdateAutonomousDatabaseRequest request)

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

  • updateAutonomousDatabaseAsync(AutonomousDatabase autonomousDatabase, FieldMask updateMask)

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

  • updateAutonomousDatabaseOperationCallable()

  • updateAutonomousDatabaseCallable()

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

StopAutonomousDatabase

Stops an Autonomous Database.

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

  • stopAutonomousDatabaseAsync(StopAutonomousDatabaseRequest request)

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

  • stopAutonomousDatabaseAsync(AutonomousDatabaseName name)

  • stopAutonomousDatabaseAsync(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.

  • stopAutonomousDatabaseOperationCallable()

  • stopAutonomousDatabaseCallable()

StartAutonomousDatabase

Starts an Autonomous Database.

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

  • startAutonomousDatabaseAsync(StartAutonomousDatabaseRequest request)

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

  • startAutonomousDatabaseAsync(AutonomousDatabaseName name)

  • startAutonomousDatabaseAsync(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.

  • startAutonomousDatabaseOperationCallable()

  • startAutonomousDatabaseCallable()

RestartAutonomousDatabase

Restarts an Autonomous Database.

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

  • restartAutonomousDatabaseAsync(RestartAutonomousDatabaseRequest request)

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

  • restartAutonomousDatabaseAsync(AutonomousDatabaseName name)

  • restartAutonomousDatabaseAsync(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.

  • restartAutonomousDatabaseOperationCallable()

  • restartAutonomousDatabaseCallable()

SwitchoverAutonomousDatabase

Initiates a switchover of specified autonomous database to the associated peer database.

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

  • switchoverAutonomousDatabaseAsync(SwitchoverAutonomousDatabaseRequest request)

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

  • switchoverAutonomousDatabaseAsync(AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase)

  • switchoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase)

  • switchoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase)

  • switchoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase)

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

  • switchoverAutonomousDatabaseOperationCallable()

  • switchoverAutonomousDatabaseCallable()

FailoverAutonomousDatabase

Initiates a failover to target autonomous database from the associated primary database.

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

  • failoverAutonomousDatabaseAsync(FailoverAutonomousDatabaseRequest request)

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

  • failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase)

  • failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase)

  • failoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase)

  • failoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase)

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

  • failoverAutonomousDatabaseOperationCallable()

  • failoverAutonomousDatabaseCallable()

ListOdbNetworks

Lists the ODB Networks in a given project and location.

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

  • listOdbNetworks(ListOdbNetworksRequest request)

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

  • listOdbNetworks(LocationName parent)

  • listOdbNetworks(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.

  • listOdbNetworksPagedCallable()

  • listOdbNetworksCallable()

GetOdbNetwork

Gets details of a single ODB Network.

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

  • getOdbNetwork(GetOdbNetworkRequest request)

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

  • getOdbNetwork(OdbNetworkName name)

  • getOdbNetwork(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.

  • getOdbNetworkCallable()

CreateOdbNetwork

Creates a new ODB Network in a given project and location.

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

  • createOdbNetworkAsync(CreateOdbNetworkRequest request)

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

  • createOdbNetworkAsync(LocationName parent, OdbNetwork odbNetwork, String odbNetworkId)

  • createOdbNetworkAsync(String parent, OdbNetwork odbNetwork, String odbNetworkId)

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

  • createOdbNetworkOperationCallable()

  • createOdbNetworkCallable()

DeleteOdbNetwork

Deletes a single ODB Network.

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

  • deleteOdbNetworkAsync(DeleteOdbNetworkRequest request)

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

  • deleteOdbNetworkAsync(OdbNetworkName name)

  • deleteOdbNetworkAsync(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.

  • deleteOdbNetworkOperationCallable()

  • deleteOdbNetworkCallable()

ListOdbSubnets

Lists all the ODB Subnets in a given ODB Network.

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

  • listOdbSubnets(ListOdbSubnetsRequest request)

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

  • listOdbSubnets(OdbNetworkName parent)

  • listOdbSubnets(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.

  • listOdbSubnetsPagedCallable()

  • listOdbSubnetsCallable()

GetOdbSubnet

Gets details of a single ODB Subnet.

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

  • getOdbSubnet(GetOdbSubnetRequest request)

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

  • getOdbSubnet(OdbSubnetName name)

  • getOdbSubnet(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.

  • getOdbSubnetCallable()

CreateOdbSubnet

Creates a new ODB Subnet in a given ODB Network.

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

  • createOdbSubnetAsync(CreateOdbSubnetRequest request)

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

  • createOdbSubnetAsync(OdbNetworkName parent, OdbSubnet odbSubnet, String odbSubnetId)

  • createOdbSubnetAsync(String parent, OdbSubnet odbSubnet, String odbSubnetId)

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

  • createOdbSubnetOperationCallable()

  • createOdbSubnetCallable()

DeleteOdbSubnet

Deletes a single ODB Subnet.

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

  • deleteOdbSubnetAsync(DeleteOdbSubnetRequest request)

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

  • deleteOdbSubnetAsync(OdbSubnetName name)

  • deleteOdbSubnetAsync(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.

  • deleteOdbSubnetOperationCallable()

  • deleteOdbSubnetCallable()

ListExadbVmClusters

Lists all the Exadb (Exascale) VM Clusters for the given project and location.

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

  • listExadbVmClusters(ListExadbVmClustersRequest request)

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

  • listExadbVmClusters(LocationName parent)

  • listExadbVmClusters(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.

  • listExadbVmClustersPagedCallable()

  • listExadbVmClustersCallable()

GetExadbVmCluster

Gets details of a single Exadb (Exascale) VM Cluster.

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

  • getExadbVmCluster(GetExadbVmClusterRequest request)

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

  • getExadbVmCluster(ExadbVmClusterName name)

  • getExadbVmCluster(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.

  • getExadbVmClusterCallable()

CreateExadbVmCluster

Creates a new Exadb (Exascale) VM Cluster resource.

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

  • createExadbVmClusterAsync(CreateExadbVmClusterRequest request)

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

  • createExadbVmClusterAsync(LocationName parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId)

  • createExadbVmClusterAsync(String parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId)

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

  • createExadbVmClusterOperationCallable()

  • createExadbVmClusterCallable()

DeleteExadbVmCluster

Deletes a single Exadb (Exascale) VM Cluster.

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

  • deleteExadbVmClusterAsync(DeleteExadbVmClusterRequest request)

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

  • deleteExadbVmClusterAsync(ExadbVmClusterName name)

  • deleteExadbVmClusterAsync(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.

  • deleteExadbVmClusterOperationCallable()

  • deleteExadbVmClusterCallable()

UpdateExadbVmCluster

Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count.

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

  • updateExadbVmClusterAsync(UpdateExadbVmClusterRequest request)

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

  • updateExadbVmClusterAsync(ExadbVmCluster exadbVmCluster, FieldMask updateMask)

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

  • updateExadbVmClusterOperationCallable()

  • updateExadbVmClusterCallable()

RemoveVirtualMachineExadbVmCluster

Removes virtual machines from an existing exadb vm cluster.

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

  • removeVirtualMachineExadbVmClusterAsync(RemoveVirtualMachineExadbVmClusterRequest request)

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

  • removeVirtualMachineExadbVmClusterAsync(ExadbVmClusterName name, List<String> hostnames)

  • removeVirtualMachineExadbVmClusterAsync(String name, List<String> hostnames)

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

  • removeVirtualMachineExadbVmClusterOperationCallable()

  • removeVirtualMachineExadbVmClusterCallable()

ListExascaleDbStorageVaults

Lists all the ExascaleDB Storage Vaults for the given project and location.

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

  • listExascaleDbStorageVaults(ListExascaleDbStorageVaultsRequest request)

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

  • listExascaleDbStorageVaults(LocationName parent)

  • listExascaleDbStorageVaults(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.

  • listExascaleDbStorageVaultsPagedCallable()

  • listExascaleDbStorageVaultsCallable()

GetExascaleDbStorageVault

Gets details of a single ExascaleDB Storage Vault.

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

  • getExascaleDbStorageVault(GetExascaleDbStorageVaultRequest request)

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

  • getExascaleDbStorageVault(ExascaleDbStorageVaultName name)

  • getExascaleDbStorageVault(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.

  • getExascaleDbStorageVaultCallable()

CreateExascaleDbStorageVault

Creates a new ExascaleDB Storage Vault resource.

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

  • createExascaleDbStorageVaultAsync(CreateExascaleDbStorageVaultRequest request)

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

  • createExascaleDbStorageVaultAsync(LocationName parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId)

  • createExascaleDbStorageVaultAsync(String parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId)

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

  • createExascaleDbStorageVaultOperationCallable()

  • createExascaleDbStorageVaultCallable()

DeleteExascaleDbStorageVault

Deletes a single ExascaleDB Storage Vault.

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

  • deleteExascaleDbStorageVaultAsync(DeleteExascaleDbStorageVaultRequest request)

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

  • deleteExascaleDbStorageVaultAsync(ExascaleDbStorageVaultName name)

  • deleteExascaleDbStorageVaultAsync(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.

  • deleteExascaleDbStorageVaultOperationCallable()

  • deleteExascaleDbStorageVaultCallable()

ListDbSystemInitialStorageSizes

Lists all the DbSystemInitialStorageSizes for the given project and location.

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

  • listDbSystemInitialStorageSizes(ListDbSystemInitialStorageSizesRequest request)

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

  • listDbSystemInitialStorageSizes(LocationName parent)

  • listDbSystemInitialStorageSizes(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.

  • listDbSystemInitialStorageSizesPagedCallable()

  • listDbSystemInitialStorageSizesCallable()

ListDatabases

Lists all the Databases for the given project, location and DbSystem.

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

  • listDatabases(ListDatabasesRequest request)

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

  • listDatabases(LocationName parent)

  • listDatabases(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.

  • listDatabasesPagedCallable()

  • listDatabasesCallable()

GetDatabase

Gets details of a single Database.

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

  • getDatabase(GetDatabaseRequest request)

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

  • getDatabase(DatabaseName name)

  • getDatabase(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.

  • getDatabaseCallable()

ListPluggableDatabases

Lists all the PluggableDatabases for the given project, location and Container Database.

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

  • listPluggableDatabases(ListPluggableDatabasesRequest request)

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

  • listPluggableDatabases(LocationName parent)

  • listPluggableDatabases(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.

  • listPluggableDatabasesPagedCallable()

  • listPluggableDatabasesCallable()

GetPluggableDatabase

Gets details of a single PluggableDatabase.

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

  • getPluggableDatabase(GetPluggableDatabaseRequest request)

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

  • getPluggableDatabase(PluggableDatabaseName name)

  • getPluggableDatabase(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.

  • getPluggableDatabaseCallable()

ListDbSystems

Lists all the DbSystems for the given project and location.

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

  • listDbSystems(ListDbSystemsRequest request)

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

  • listDbSystems(LocationName parent)

  • listDbSystems(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.

  • listDbSystemsPagedCallable()

  • listDbSystemsCallable()

GetDbSystem

Gets details of a single DbSystem.

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

  • getDbSystem(GetDbSystemRequest request)

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

  • getDbSystem(DbSystemName name)

  • getDbSystem(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.

  • getDbSystemCallable()

CreateDbSystem

Creates a new DbSystem in a given project and location.

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

  • createDbSystemAsync(CreateDbSystemRequest request)

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

  • createDbSystemAsync(LocationName parent, DbSystem dbSystem, String dbSystemId)

  • createDbSystemAsync(String parent, DbSystem dbSystem, String dbSystemId)

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

  • createDbSystemOperationCallable()

  • createDbSystemCallable()

DeleteDbSystem

Deletes a single DbSystem.

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

  • deleteDbSystemAsync(DeleteDbSystemRequest request)

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

  • deleteDbSystemAsync(DbSystemName name)

  • deleteDbSystemAsync(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.

  • deleteDbSystemOperationCallable()

  • deleteDbSystemCallable()

ListDbVersions

List DbVersions for the given project and location.

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

  • listDbVersions(ListDbVersionsRequest request)

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

  • listDbVersions(LocationName parent)

  • listDbVersions(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.

  • listDbVersionsPagedCallable()

  • listDbVersionsCallable()

ListDatabaseCharacterSets

List DatabaseCharacterSets for the given project and location.

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

  • listDatabaseCharacterSets(ListDatabaseCharacterSetsRequest request)

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

  • listDatabaseCharacterSets(LocationName parent)

  • listDatabaseCharacterSets(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.

  • listDatabaseCharacterSetsPagedCallable()

  • listDatabaseCharacterSetsCallable()

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);
 

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:


 // 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.newHttpJsonBuilder().build();
 OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

  • Constructor Details

    • OracleDatabaseClient

      protected OracleDatabaseClient(OracleDatabaseSettings settings) throws IOException
      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.
      Throws:
      IOException
    • OracleDatabaseClient

      protected OracleDatabaseClient(OracleDatabaseStub stub)
  • Method Details

    • create

      public static final OracleDatabaseClient create() throws IOException
      Constructs an instance of OracleDatabaseClient with default settings.
      Throws:
      IOException
    • create

      public static final OracleDatabaseClient create(OracleDatabaseSettings settings) throws IOException
      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.
      Throws:
      IOException
    • create

      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).
    • getSettings

      public final OracleDatabaseSettings getSettings()
    • getStub

      public OracleDatabaseStub getStub()
    • getOperationsClient

      public final OperationsClient getOperationsClient()
      Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
    • getHttpJsonOperationsClient

      @BetaApi 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.
    • listCloudExadataInfrastructures

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listCloudExadataInfrastructures

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listCloudExadataInfrastructures

      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")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         for (CloudExadataInfrastructure element :
             oracleDatabaseClient.listCloudExadataInfrastructures(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         ApiFuture<CloudExadataInfrastructure> future =
             oracleDatabaseClient.listCloudExadataInfrastructuresPagedCallable().futureCall(request);
         // Do something.
         for (CloudExadataInfrastructure element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • 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")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .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;
           }
         }
       }
       
    • getCloudExadataInfrastructure

      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);
       }
       
      Parameters:
      name - Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
      Throws:
      ApiException - if the remote call fails
    • getCloudExadataInfrastructure

      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);
       }
       
      Parameters:
      name - Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
      Throws:
      ApiException - if the remote call fails
    • getCloudExadataInfrastructure

      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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • createCloudExadataInfrastructureAsync

      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:
      parent - Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}.
      cloudExadataInfrastructure - Required. Details of the Exadata Infrastructure instance to create.
      cloudExadataInfrastructureId - Required. The ID of the Exadata Infrastructure to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createCloudExadataInfrastructureAsync

      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:
      parent - Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}.
      cloudExadataInfrastructure - Required. Details of the Exadata Infrastructure instance to create.
      cloudExadataInfrastructureId - Required. The ID of the Exadata Infrastructure to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createCloudExadataInfrastructureAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • deleteCloudExadataInfrastructureAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
      Throws:
      ApiException - if the remote call fails
    • deleteCloudExadataInfrastructureAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
      Throws:
      ApiException - if the remote call fails
    • deleteCloudExadataInfrastructureAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteCloudExadataInfrastructureOperationCallable

      public final OperationCallable<DeleteCloudExadataInfrastructureRequest,com.google.protobuf.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();
       }
       
    • 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();
       }
       
    • listCloudVmClusters

      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);
         }
       }
       
      Parameters:
      parent - Required. The name of the parent in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listCloudVmClusters

      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);
         }
       }
       
      Parameters:
      parent - Required. The name of the parent in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listCloudVmClusters

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • getCloudVmCluster

      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);
       }
       
      Parameters:
      name - Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
      Throws:
      ApiException - if the remote call fails
    • getCloudVmCluster

      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);
       }
       
      Parameters:
      name - Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
      Throws:
      ApiException - if the remote call fails
    • getCloudVmCluster

      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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • createCloudVmClusterAsync

      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:
      parent - Required. The name of the parent in the following format: projects/{project}/locations/{location}.
      cloudVmCluster - Required. The resource being created
      cloudVmClusterId - Required. The ID of the VM Cluster to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createCloudVmClusterAsync

      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:
      parent - Required. The name of the parent in the following format: projects/{project}/locations/{location}.
      cloudVmCluster - Required. The resource being created
      cloudVmClusterId - Required. The ID of the VM Cluster to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createCloudVmClusterAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • deleteCloudVmClusterAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
      Throws:
      ApiException - if the remote call fails
    • deleteCloudVmClusterAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
      Throws:
      ApiException - if the remote call fails
    • deleteCloudVmClusterAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteCloudVmClusterOperationCallable

      public final OperationCallable<DeleteCloudVmClusterRequest,com.google.protobuf.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();
       }
       
    • 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();
       }
       
    • listEntitlements

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the entitlement in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listEntitlements

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the entitlement in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listEntitlements

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • listDbServers

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for database server in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
      Throws:
      ApiException - if the remote call fails
    • listDbServers

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for database server in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
      Throws:
      ApiException - if the remote call fails
    • listDbServers

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • listDbNodes

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. .
      Throws:
      ApiException - if the remote call fails
    • listDbNodes

      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()) {
         ExadbVmClusterName parent =
             ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]");
         for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. .
      Throws:
      ApiException - if the remote call fails
    • listDbNodes

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. .
      Throws:
      ApiException - if the remote call fails
    • listDbNodes

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • listGiVersions

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listGiVersions

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listGiVersions

      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")
                 .setFilter("filter-1274492040")
                 .build();
         for (GiVersion element : oracleDatabaseClient.listGiVersions(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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")
                 .setFilter("filter-1274492040")
                 .build();
         ApiFuture<GiVersion> future =
             oracleDatabaseClient.listGiVersionsPagedCallable().futureCall(request);
         // Do something.
         for (GiVersion element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • 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")
                 .setFilter("filter-1274492040")
                 .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;
           }
         }
       }
       
    • listMinorVersions

      public final OracleDatabaseClient.ListMinorVersionsPagedResponse listMinorVersions(GiVersionName parent)
      Lists all the valid minor versions for the given project, location, gi version and shape family.

      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()) {
         GiVersionName parent = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]");
         for (MinorVersion element : oracleDatabaseClient.listMinorVersions(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the MinorVersion resource with the format: projects/{project}/locations/{location}/giVersions/{gi_version}
      Throws:
      ApiException - if the remote call fails
    • listMinorVersions

      public final OracleDatabaseClient.ListMinorVersionsPagedResponse listMinorVersions(String parent)
      Lists all the valid minor versions for the given project, location, gi version and shape family.

      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 = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString();
         for (MinorVersion element : oracleDatabaseClient.listMinorVersions(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the MinorVersion resource with the format: projects/{project}/locations/{location}/giVersions/{gi_version}
      Throws:
      ApiException - if the remote call fails
    • listMinorVersions

      Lists all the valid minor versions for the given project, location, gi version and shape family.

      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()) {
         ListMinorVersionsRequest request =
             ListMinorVersionsRequest.newBuilder()
                 .setParent(GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         for (MinorVersion element : oracleDatabaseClient.listMinorVersions(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listMinorVersionsPagedCallable

      Lists all the valid minor versions for the given project, location, gi version and shape family.

      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()) {
         ListMinorVersionsRequest request =
             ListMinorVersionsRequest.newBuilder()
                 .setParent(GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         ApiFuture<MinorVersion> future =
             oracleDatabaseClient.listMinorVersionsPagedCallable().futureCall(request);
         // Do something.
         for (MinorVersion element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listMinorVersionsCallable

      public final UnaryCallable<ListMinorVersionsRequest,ListMinorVersionsResponse> listMinorVersionsCallable()
      Lists all the valid minor versions for the given project, location, gi version and shape family.

      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()) {
         ListMinorVersionsRequest request =
             ListMinorVersionsRequest.newBuilder()
                 .setParent(GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         while (true) {
           ListMinorVersionsResponse response =
               oracleDatabaseClient.listMinorVersionsCallable().call(request);
           for (MinorVersion element : response.getMinorVersionsList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • listDbSystemShapes

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listDbSystemShapes

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listDbSystemShapes

      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")
                 .setFilter("filter-1274492040")
                 .build();
         for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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")
                 .setFilter("filter-1274492040")
                 .build();
         ApiFuture<DbSystemShape> future =
             oracleDatabaseClient.listDbSystemShapesPagedCallable().futureCall(request);
         // Do something.
         for (DbSystemShape element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • 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")
                 .setFilter("filter-1274492040")
                 .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;
           }
         }
       }
       
    • listAutonomousDatabases

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listAutonomousDatabases

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listAutonomousDatabases

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • getAutonomousDatabase

      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);
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      Throws:
      ApiException - if the remote call fails
    • getAutonomousDatabase

      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);
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      Throws:
      ApiException - if the remote call fails
    • getAutonomousDatabase

      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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • createAutonomousDatabaseAsync

      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:
      parent - Required. The name of the parent in the following format: projects/{project}/locations/{location}.
      autonomousDatabase - Required. The Autonomous Database being created.
      autonomousDatabaseId - Required. The ID of the Autonomous Database to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createAutonomousDatabaseAsync

      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:
      parent - Required. The name of the parent in the following format: projects/{project}/locations/{location}.
      autonomousDatabase - Required. The Autonomous Database being created.
      autonomousDatabaseId - Required. The ID of the Autonomous Database to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createAutonomousDatabaseAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • updateAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> updateAutonomousDatabaseAsync(AutonomousDatabase autonomousDatabase, com.google.protobuf.FieldMask updateMask)
      Updates the parameters 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()) {
         AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build();
         FieldMask updateMask = FieldMask.newBuilder().build();
         AutonomousDatabase response =
             oracleDatabaseClient.updateAutonomousDatabaseAsync(autonomousDatabase, updateMask).get();
       }
       
      Parameters:
      autonomousDatabase - Required. The resource being updated
      updateMask - Optional. Field mask is used to specify the fields to be overwritten in the Exadata resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
      Throws:
      ApiException - if the remote call fails
    • updateAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> updateAutonomousDatabaseAsync(UpdateAutonomousDatabaseRequest request)
      Updates the parameters 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()) {
         UpdateAutonomousDatabaseRequest request =
             UpdateAutonomousDatabaseRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         AutonomousDatabase response =
             oracleDatabaseClient.updateAutonomousDatabaseAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • updateAutonomousDatabaseOperationCallable

      public final OperationCallable<UpdateAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> updateAutonomousDatabaseOperationCallable()
      Updates the parameters 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()) {
         UpdateAutonomousDatabaseRequest request =
             UpdateAutonomousDatabaseRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<AutonomousDatabase, OperationMetadata> future =
             oracleDatabaseClient.updateAutonomousDatabaseOperationCallable().futureCall(request);
         // Do something.
         AutonomousDatabase response = future.get();
       }
       
    • updateAutonomousDatabaseCallable

      public final UnaryCallable<UpdateAutonomousDatabaseRequest,Operation> updateAutonomousDatabaseCallable()
      Updates the parameters 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()) {
         UpdateAutonomousDatabaseRequest request =
             UpdateAutonomousDatabaseRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.updateAutonomousDatabaseCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • deleteAutonomousDatabaseAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The name of the resource in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      Throws:
      ApiException - if the remote call fails
    • deleteAutonomousDatabaseAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The name of the resource in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      Throws:
      ApiException - if the remote call fails
    • deleteAutonomousDatabaseAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteAutonomousDatabaseOperationCallable

      public final OperationCallable<DeleteAutonomousDatabaseRequest,com.google.protobuf.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();
       }
       
    • 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();
       }
       
    • restoreAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, com.google.protobuf.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 - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      restoreTime - Required. The time and date to restore the database to.
      Throws:
      ApiException - if the remote call fails
    • restoreAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> restoreAutonomousDatabaseAsync(String name, com.google.protobuf.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 - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      restoreTime - Required. The time and date to restore the database to.
      Throws:
      ApiException - if the remote call fails
    • restoreAutonomousDatabaseAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • generateAutonomousDatabaseWallet

      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 - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      type - Optional. The type of wallet generation for the Autonomous Database. The default value is SINGLE.
      isRegional - Optional. True when requesting regional connection strings in PDB connect info, applicable to cross-region Data Guard only.
      password - Required. The password used to encrypt the keys inside the wallet. The password must be a minimum of 8 characters.
      Throws:
      ApiException - if the remote call fails
    • generateAutonomousDatabaseWallet

      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 - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      type - Optional. The type of wallet generation for the Autonomous Database. The default value is SINGLE.
      isRegional - Optional. True when requesting regional connection strings in PDB connect info, applicable to cross-region Data Guard only.
      password - Required. The password used to encrypt the keys inside the wallet. The password must be a minimum of 8 characters.
      Throws:
      ApiException - if the remote call fails
    • generateAutonomousDatabaseWallet

      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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • listAutonomousDbVersions

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listAutonomousDbVersions

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listAutonomousDbVersions

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • listAutonomousDatabaseCharacterSets

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listAutonomousDatabaseCharacterSets

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listAutonomousDatabaseCharacterSets

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • listAutonomousDatabaseBackups

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for ListAutonomousDatabaseBackups in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listAutonomousDatabaseBackups

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent value for ListAutonomousDatabaseBackups in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listAutonomousDatabaseBackups

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • stopAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> stopAutonomousDatabaseAsync(AutonomousDatabaseName name)
      Stops 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]");
         AutonomousDatabase response = oracleDatabaseClient.stopAutonomousDatabaseAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      Throws:
      ApiException - if the remote call fails
    • stopAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> stopAutonomousDatabaseAsync(String name)
      Stops 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();
         AutonomousDatabase response = oracleDatabaseClient.stopAutonomousDatabaseAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      Throws:
      ApiException - if the remote call fails
    • stopAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> stopAutonomousDatabaseAsync(StopAutonomousDatabaseRequest request)
      Stops 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()) {
         StopAutonomousDatabaseRequest request =
             StopAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         AutonomousDatabase response = oracleDatabaseClient.stopAutonomousDatabaseAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • stopAutonomousDatabaseOperationCallable

      public final OperationCallable<StopAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> stopAutonomousDatabaseOperationCallable()
      Stops 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()) {
         StopAutonomousDatabaseRequest request =
             StopAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         OperationFuture<AutonomousDatabase, OperationMetadata> future =
             oracleDatabaseClient.stopAutonomousDatabaseOperationCallable().futureCall(request);
         // Do something.
         AutonomousDatabase response = future.get();
       }
       
    • stopAutonomousDatabaseCallable

      public final UnaryCallable<StopAutonomousDatabaseRequest,Operation> stopAutonomousDatabaseCallable()
      Stops 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()) {
         StopAutonomousDatabaseRequest request =
             StopAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.stopAutonomousDatabaseCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • startAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> startAutonomousDatabaseAsync(AutonomousDatabaseName name)
      Starts 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]");
         AutonomousDatabase response = oracleDatabaseClient.startAutonomousDatabaseAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      Throws:
      ApiException - if the remote call fails
    • startAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> startAutonomousDatabaseAsync(String name)
      Starts 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();
         AutonomousDatabase response = oracleDatabaseClient.startAutonomousDatabaseAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      Throws:
      ApiException - if the remote call fails
    • startAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> startAutonomousDatabaseAsync(StartAutonomousDatabaseRequest request)
      Starts 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()) {
         StartAutonomousDatabaseRequest request =
             StartAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         AutonomousDatabase response =
             oracleDatabaseClient.startAutonomousDatabaseAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • startAutonomousDatabaseOperationCallable

      public final OperationCallable<StartAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> startAutonomousDatabaseOperationCallable()
      Starts 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()) {
         StartAutonomousDatabaseRequest request =
             StartAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         OperationFuture<AutonomousDatabase, OperationMetadata> future =
             oracleDatabaseClient.startAutonomousDatabaseOperationCallable().futureCall(request);
         // Do something.
         AutonomousDatabase response = future.get();
       }
       
    • startAutonomousDatabaseCallable

      public final UnaryCallable<StartAutonomousDatabaseRequest,Operation> startAutonomousDatabaseCallable()
      Starts 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()) {
         StartAutonomousDatabaseRequest request =
             StartAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.startAutonomousDatabaseCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • restartAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> restartAutonomousDatabaseAsync(AutonomousDatabaseName name)
      Restarts 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]");
         AutonomousDatabase response = oracleDatabaseClient.restartAutonomousDatabaseAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      Throws:
      ApiException - if the remote call fails
    • restartAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> restartAutonomousDatabaseAsync(String name)
      Restarts 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();
         AutonomousDatabase response = oracleDatabaseClient.restartAutonomousDatabaseAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      Throws:
      ApiException - if the remote call fails
    • restartAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> restartAutonomousDatabaseAsync(RestartAutonomousDatabaseRequest request)
      Restarts 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()) {
         RestartAutonomousDatabaseRequest request =
             RestartAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         AutonomousDatabase response =
             oracleDatabaseClient.restartAutonomousDatabaseAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • restartAutonomousDatabaseOperationCallable

      public final OperationCallable<RestartAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> restartAutonomousDatabaseOperationCallable()
      Restarts 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()) {
         RestartAutonomousDatabaseRequest request =
             RestartAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         OperationFuture<AutonomousDatabase, OperationMetadata> future =
             oracleDatabaseClient.restartAutonomousDatabaseOperationCallable().futureCall(request);
         // Do something.
         AutonomousDatabase response = future.get();
       }
       
    • restartAutonomousDatabaseCallable

      public final UnaryCallable<RestartAutonomousDatabaseRequest,Operation> restartAutonomousDatabaseCallable()
      Restarts 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()) {
         RestartAutonomousDatabaseRequest request =
             RestartAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.restartAutonomousDatabaseCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • switchoverAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> switchoverAutonomousDatabaseAsync(AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase)
      Initiates a switchover of specified autonomous database to the associated peer 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]");
         AutonomousDatabaseName peerAutonomousDatabase =
             AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
         AutonomousDatabase response =
             oracleDatabaseClient
                 .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase)
                 .get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      peerAutonomousDatabase - Required. The peer database name to switch over to.
      Throws:
      ApiException - if the remote call fails
    • switchoverAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> switchoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase)
      Initiates a switchover of specified autonomous database to the associated peer 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]");
         String peerAutonomousDatabase =
             AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
         AutonomousDatabase response =
             oracleDatabaseClient
                 .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase)
                 .get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      peerAutonomousDatabase - Required. The peer database name to switch over to.
      Throws:
      ApiException - if the remote call fails
    • switchoverAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> switchoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase)
      Initiates a switchover of specified autonomous database to the associated peer 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();
         AutonomousDatabaseName peerAutonomousDatabase =
             AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
         AutonomousDatabase response =
             oracleDatabaseClient
                 .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase)
                 .get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      peerAutonomousDatabase - Required. The peer database name to switch over to.
      Throws:
      ApiException - if the remote call fails
    • switchoverAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> switchoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase)
      Initiates a switchover of specified autonomous database to the associated peer 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();
         String peerAutonomousDatabase =
             AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
         AutonomousDatabase response =
             oracleDatabaseClient
                 .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase)
                 .get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      peerAutonomousDatabase - Required. The peer database name to switch over to.
      Throws:
      ApiException - if the remote call fails
    • switchoverAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> switchoverAutonomousDatabaseAsync(SwitchoverAutonomousDatabaseRequest request)
      Initiates a switchover of specified autonomous database to the associated peer 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()) {
         SwitchoverAutonomousDatabaseRequest request =
             SwitchoverAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .setPeerAutonomousDatabase(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         AutonomousDatabase response =
             oracleDatabaseClient.switchoverAutonomousDatabaseAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • switchoverAutonomousDatabaseOperationCallable

      public final OperationCallable<SwitchoverAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> switchoverAutonomousDatabaseOperationCallable()
      Initiates a switchover of specified autonomous database to the associated peer 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()) {
         SwitchoverAutonomousDatabaseRequest request =
             SwitchoverAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .setPeerAutonomousDatabase(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         OperationFuture<AutonomousDatabase, OperationMetadata> future =
             oracleDatabaseClient.switchoverAutonomousDatabaseOperationCallable().futureCall(request);
         // Do something.
         AutonomousDatabase response = future.get();
       }
       
    • switchoverAutonomousDatabaseCallable

      public final UnaryCallable<SwitchoverAutonomousDatabaseRequest,Operation> switchoverAutonomousDatabaseCallable()
      Initiates a switchover of specified autonomous database to the associated peer 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()) {
         SwitchoverAutonomousDatabaseRequest request =
             SwitchoverAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .setPeerAutonomousDatabase(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.switchoverAutonomousDatabaseCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • failoverAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase)
      Initiates a failover to target autonomous database from the associated primary 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]");
         AutonomousDatabaseName peerAutonomousDatabase =
             AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
         AutonomousDatabase response =
             oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      peerAutonomousDatabase - Required. The peer database name to fail over to.
      Throws:
      ApiException - if the remote call fails
    • failoverAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase)
      Initiates a failover to target autonomous database from the associated primary 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]");
         String peerAutonomousDatabase =
             AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
         AutonomousDatabase response =
             oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      peerAutonomousDatabase - Required. The peer database name to fail over to.
      Throws:
      ApiException - if the remote call fails
    • failoverAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> failoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase)
      Initiates a failover to target autonomous database from the associated primary 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();
         AutonomousDatabaseName peerAutonomousDatabase =
             AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
         AutonomousDatabase response =
             oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      peerAutonomousDatabase - Required. The peer database name to fail over to.
      Throws:
      ApiException - if the remote call fails
    • failoverAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> failoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase)
      Initiates a failover to target autonomous database from the associated primary 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();
         String peerAutonomousDatabase =
             AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
         AutonomousDatabase response =
             oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get();
       }
       
      Parameters:
      name - Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
      peerAutonomousDatabase - Required. The peer database name to fail over to.
      Throws:
      ApiException - if the remote call fails
    • failoverAutonomousDatabaseAsync

      public final OperationFuture<AutonomousDatabase,OperationMetadata> failoverAutonomousDatabaseAsync(FailoverAutonomousDatabaseRequest request)
      Initiates a failover to target autonomous database from the associated primary 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()) {
         FailoverAutonomousDatabaseRequest request =
             FailoverAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .setPeerAutonomousDatabase(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         AutonomousDatabase response =
             oracleDatabaseClient.failoverAutonomousDatabaseAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • failoverAutonomousDatabaseOperationCallable

      public final OperationCallable<FailoverAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> failoverAutonomousDatabaseOperationCallable()
      Initiates a failover to target autonomous database from the associated primary 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()) {
         FailoverAutonomousDatabaseRequest request =
             FailoverAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .setPeerAutonomousDatabase(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         OperationFuture<AutonomousDatabase, OperationMetadata> future =
             oracleDatabaseClient.failoverAutonomousDatabaseOperationCallable().futureCall(request);
         // Do something.
         AutonomousDatabase response = future.get();
       }
       
    • failoverAutonomousDatabaseCallable

      public final UnaryCallable<FailoverAutonomousDatabaseRequest,Operation> failoverAutonomousDatabaseCallable()
      Initiates a failover to target autonomous database from the associated primary 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()) {
         FailoverAutonomousDatabaseRequest request =
             FailoverAutonomousDatabaseRequest.newBuilder()
                 .setName(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .setPeerAutonomousDatabase(
                     AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                         .toString())
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.failoverAutonomousDatabaseCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • listOdbNetworks

      public final OracleDatabaseClient.ListOdbNetworksPagedResponse listOdbNetworks(LocationName parent)
      Lists the ODB Networks 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 (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the ODB Network in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listOdbNetworks

      public final OracleDatabaseClient.ListOdbNetworksPagedResponse listOdbNetworks(String parent)
      Lists the ODB Networks 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 (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the ODB Network in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listOdbNetworks

      Lists the ODB Networks 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()) {
         ListOdbNetworksRequest request =
             ListOdbNetworksRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         for (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listOdbNetworksPagedCallable

      Lists the ODB Networks 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()) {
         ListOdbNetworksRequest request =
             ListOdbNetworksRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         ApiFuture<OdbNetwork> future =
             oracleDatabaseClient.listOdbNetworksPagedCallable().futureCall(request);
         // Do something.
         for (OdbNetwork element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listOdbNetworksCallable

      public final UnaryCallable<ListOdbNetworksRequest,ListOdbNetworksResponse> listOdbNetworksCallable()
      Lists the ODB Networks 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()) {
         ListOdbNetworksRequest request =
             ListOdbNetworksRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         while (true) {
           ListOdbNetworksResponse response =
               oracleDatabaseClient.listOdbNetworksCallable().call(request);
           for (OdbNetwork element : response.getOdbNetworksList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getOdbNetwork

      public final OdbNetwork getOdbNetwork(OdbNetworkName name)
      Gets details of a single ODB Network.

      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()) {
         OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]");
         OdbNetwork response = oracleDatabaseClient.getOdbNetwork(name);
       }
       
      Parameters:
      name - Required. The name of the OdbNetwork in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.
      Throws:
      ApiException - if the remote call fails
    • getOdbNetwork

      public final OdbNetwork getOdbNetwork(String name)
      Gets details of a single ODB Network.

      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 = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString();
         OdbNetwork response = oracleDatabaseClient.getOdbNetwork(name);
       }
       
      Parameters:
      name - Required. The name of the OdbNetwork in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.
      Throws:
      ApiException - if the remote call fails
    • getOdbNetwork

      public final OdbNetwork getOdbNetwork(GetOdbNetworkRequest request)
      Gets details of a single ODB Network.

      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()) {
         GetOdbNetworkRequest request =
             GetOdbNetworkRequest.newBuilder()
                 .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .build();
         OdbNetwork response = oracleDatabaseClient.getOdbNetwork(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getOdbNetworkCallable

      public final UnaryCallable<GetOdbNetworkRequest,OdbNetwork> getOdbNetworkCallable()
      Gets details of a single ODB Network.

      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()) {
         GetOdbNetworkRequest request =
             GetOdbNetworkRequest.newBuilder()
                 .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .build();
         ApiFuture<OdbNetwork> future =
             oracleDatabaseClient.getOdbNetworkCallable().futureCall(request);
         // Do something.
         OdbNetwork response = future.get();
       }
       
    • createOdbNetworkAsync

      public final OperationFuture<OdbNetwork,OperationMetadata> createOdbNetworkAsync(LocationName parent, OdbNetwork odbNetwork, String odbNetworkId)
      Creates a new ODB Network 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]");
         OdbNetwork odbNetwork = OdbNetwork.newBuilder().build();
         String odbNetworkId = "odbNetworkId-169900740";
         OdbNetwork response =
             oracleDatabaseClient.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).get();
       }
       
      Parameters:
      parent - Required. The parent value for the OdbNetwork in the following format: projects/{project}/locations/{location}.
      odbNetwork - Required. Details of the OdbNetwork instance to create.
      odbNetworkId - Required. The ID of the OdbNetwork to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createOdbNetworkAsync

      public final OperationFuture<OdbNetwork,OperationMetadata> createOdbNetworkAsync(String parent, OdbNetwork odbNetwork, String odbNetworkId)
      Creates a new ODB Network 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();
         OdbNetwork odbNetwork = OdbNetwork.newBuilder().build();
         String odbNetworkId = "odbNetworkId-169900740";
         OdbNetwork response =
             oracleDatabaseClient.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).get();
       }
       
      Parameters:
      parent - Required. The parent value for the OdbNetwork in the following format: projects/{project}/locations/{location}.
      odbNetwork - Required. Details of the OdbNetwork instance to create.
      odbNetworkId - Required. The ID of the OdbNetwork to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createOdbNetworkAsync

      public final OperationFuture<OdbNetwork,OperationMetadata> createOdbNetworkAsync(CreateOdbNetworkRequest request)
      Creates a new ODB Network 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()) {
         CreateOdbNetworkRequest request =
             CreateOdbNetworkRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setOdbNetworkId("odbNetworkId-169900740")
                 .setOdbNetwork(OdbNetwork.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OdbNetwork response = oracleDatabaseClient.createOdbNetworkAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • createOdbNetworkOperationCallable

      public final OperationCallable<CreateOdbNetworkRequest,OdbNetwork,OperationMetadata> createOdbNetworkOperationCallable()
      Creates a new ODB Network 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()) {
         CreateOdbNetworkRequest request =
             CreateOdbNetworkRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setOdbNetworkId("odbNetworkId-169900740")
                 .setOdbNetwork(OdbNetwork.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<OdbNetwork, OperationMetadata> future =
             oracleDatabaseClient.createOdbNetworkOperationCallable().futureCall(request);
         // Do something.
         OdbNetwork response = future.get();
       }
       
    • createOdbNetworkCallable

      public final UnaryCallable<CreateOdbNetworkRequest,Operation> createOdbNetworkCallable()
      Creates a new ODB Network 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()) {
         CreateOdbNetworkRequest request =
             CreateOdbNetworkRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setOdbNetworkId("odbNetworkId-169900740")
                 .setOdbNetwork(OdbNetwork.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.createOdbNetworkCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • deleteOdbNetworkAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOdbNetworkAsync(OdbNetworkName name)
      Deletes a single ODB Network.

      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()) {
         OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]");
         oracleDatabaseClient.deleteOdbNetworkAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.
      Throws:
      ApiException - if the remote call fails
    • deleteOdbNetworkAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOdbNetworkAsync(String name)
      Deletes a single ODB Network.

      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 = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString();
         oracleDatabaseClient.deleteOdbNetworkAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.
      Throws:
      ApiException - if the remote call fails
    • deleteOdbNetworkAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOdbNetworkAsync(DeleteOdbNetworkRequest request)
      Deletes a single ODB Network.

      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()) {
         DeleteOdbNetworkRequest request =
             DeleteOdbNetworkRequest.newBuilder()
                 .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .setRequestId("requestId693933066")
                 .build();
         oracleDatabaseClient.deleteOdbNetworkAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteOdbNetworkOperationCallable

      public final OperationCallable<DeleteOdbNetworkRequest,com.google.protobuf.Empty,OperationMetadata> deleteOdbNetworkOperationCallable()
      Deletes a single ODB Network.

      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()) {
         DeleteOdbNetworkRequest request =
             DeleteOdbNetworkRequest.newBuilder()
                 .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<Empty, OperationMetadata> future =
             oracleDatabaseClient.deleteOdbNetworkOperationCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • deleteOdbNetworkCallable

      public final UnaryCallable<DeleteOdbNetworkRequest,Operation> deleteOdbNetworkCallable()
      Deletes a single ODB Network.

      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()) {
         DeleteOdbNetworkRequest request =
             DeleteOdbNetworkRequest.newBuilder()
                 .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.deleteOdbNetworkCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • listOdbSubnets

      Lists all the ODB Subnets in a given ODB Network.

      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()) {
         OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]");
         for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.
      Throws:
      ApiException - if the remote call fails
    • listOdbSubnets

      public final OracleDatabaseClient.ListOdbSubnetsPagedResponse listOdbSubnets(String parent)
      Lists all the ODB Subnets in a given ODB Network.

      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 = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString();
         for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.
      Throws:
      ApiException - if the remote call fails
    • listOdbSubnets

      Lists all the ODB Subnets in a given ODB Network.

      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()) {
         ListOdbSubnetsRequest request =
             ListOdbSubnetsRequest.newBuilder()
                 .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listOdbSubnetsPagedCallable

      Lists all the ODB Subnets in a given ODB Network.

      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()) {
         ListOdbSubnetsRequest request =
             ListOdbSubnetsRequest.newBuilder()
                 .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         ApiFuture<OdbSubnet> future =
             oracleDatabaseClient.listOdbSubnetsPagedCallable().futureCall(request);
         // Do something.
         for (OdbSubnet element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listOdbSubnetsCallable

      public final UnaryCallable<ListOdbSubnetsRequest,ListOdbSubnetsResponse> listOdbSubnetsCallable()
      Lists all the ODB Subnets in a given ODB Network.

      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()) {
         ListOdbSubnetsRequest request =
             ListOdbSubnetsRequest.newBuilder()
                 .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         while (true) {
           ListOdbSubnetsResponse response =
               oracleDatabaseClient.listOdbSubnetsCallable().call(request);
           for (OdbSubnet element : response.getOdbSubnetsList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getOdbSubnet

      public final OdbSubnet getOdbSubnet(OdbSubnetName name)
      Gets details of a single ODB Subnet.

      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()) {
         OdbSubnetName name =
             OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]");
         OdbSubnet response = oracleDatabaseClient.getOdbSubnet(name);
       }
       
      Parameters:
      name - Required. The name of the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
      Throws:
      ApiException - if the remote call fails
    • getOdbSubnet

      public final OdbSubnet getOdbSubnet(String name)
      Gets details of a single ODB Subnet.

      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 =
             OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]").toString();
         OdbSubnet response = oracleDatabaseClient.getOdbSubnet(name);
       }
       
      Parameters:
      name - Required. The name of the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
      Throws:
      ApiException - if the remote call fails
    • getOdbSubnet

      public final OdbSubnet getOdbSubnet(GetOdbSubnetRequest request)
      Gets details of a single ODB Subnet.

      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()) {
         GetOdbSubnetRequest request =
             GetOdbSubnetRequest.newBuilder()
                 .setName(
                     OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
                         .toString())
                 .build();
         OdbSubnet response = oracleDatabaseClient.getOdbSubnet(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getOdbSubnetCallable

      public final UnaryCallable<GetOdbSubnetRequest,OdbSubnet> getOdbSubnetCallable()
      Gets details of a single ODB Subnet.

      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()) {
         GetOdbSubnetRequest request =
             GetOdbSubnetRequest.newBuilder()
                 .setName(
                     OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
                         .toString())
                 .build();
         ApiFuture<OdbSubnet> future = oracleDatabaseClient.getOdbSubnetCallable().futureCall(request);
         // Do something.
         OdbSubnet response = future.get();
       }
       
    • createOdbSubnetAsync

      public final OperationFuture<OdbSubnet,OperationMetadata> createOdbSubnetAsync(OdbNetworkName parent, OdbSubnet odbSubnet, String odbSubnetId)
      Creates a new ODB Subnet in a given ODB Network.

      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()) {
         OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]");
         OdbSubnet odbSubnet = OdbSubnet.newBuilder().build();
         String odbSubnetId = "odbSubnetId1186954661";
         OdbSubnet response =
             oracleDatabaseClient.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).get();
       }
       
      Parameters:
      parent - Required. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.
      odbSubnet - Required. Details of the OdbSubnet instance to create.
      odbSubnetId - Required. The ID of the OdbSubnet to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createOdbSubnetAsync

      public final OperationFuture<OdbSubnet,OperationMetadata> createOdbSubnetAsync(String parent, OdbSubnet odbSubnet, String odbSubnetId)
      Creates a new ODB Subnet in a given ODB Network.

      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 = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString();
         OdbSubnet odbSubnet = OdbSubnet.newBuilder().build();
         String odbSubnetId = "odbSubnetId1186954661";
         OdbSubnet response =
             oracleDatabaseClient.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).get();
       }
       
      Parameters:
      parent - Required. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.
      odbSubnet - Required. Details of the OdbSubnet instance to create.
      odbSubnetId - Required. The ID of the OdbSubnet to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createOdbSubnetAsync

      public final OperationFuture<OdbSubnet,OperationMetadata> createOdbSubnetAsync(CreateOdbSubnetRequest request)
      Creates a new ODB Subnet in a given ODB Network.

      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()) {
         CreateOdbSubnetRequest request =
             CreateOdbSubnetRequest.newBuilder()
                 .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .setOdbSubnetId("odbSubnetId1186954661")
                 .setOdbSubnet(OdbSubnet.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OdbSubnet response = oracleDatabaseClient.createOdbSubnetAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • createOdbSubnetOperationCallable

      public final OperationCallable<CreateOdbSubnetRequest,OdbSubnet,OperationMetadata> createOdbSubnetOperationCallable()
      Creates a new ODB Subnet in a given ODB Network.

      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()) {
         CreateOdbSubnetRequest request =
             CreateOdbSubnetRequest.newBuilder()
                 .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .setOdbSubnetId("odbSubnetId1186954661")
                 .setOdbSubnet(OdbSubnet.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<OdbSubnet, OperationMetadata> future =
             oracleDatabaseClient.createOdbSubnetOperationCallable().futureCall(request);
         // Do something.
         OdbSubnet response = future.get();
       }
       
    • createOdbSubnetCallable

      public final UnaryCallable<CreateOdbSubnetRequest,Operation> createOdbSubnetCallable()
      Creates a new ODB Subnet in a given ODB Network.

      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()) {
         CreateOdbSubnetRequest request =
             CreateOdbSubnetRequest.newBuilder()
                 .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                 .setOdbSubnetId("odbSubnetId1186954661")
                 .setOdbSubnet(OdbSubnet.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.createOdbSubnetCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • deleteOdbSubnetAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOdbSubnetAsync(OdbSubnetName name)
      Deletes a single ODB Subnet.

      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()) {
         OdbSubnetName name =
             OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]");
         oracleDatabaseClient.deleteOdbSubnetAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
      Throws:
      ApiException - if the remote call fails
    • deleteOdbSubnetAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOdbSubnetAsync(String name)
      Deletes a single ODB Subnet.

      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 =
             OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]").toString();
         oracleDatabaseClient.deleteOdbSubnetAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
      Throws:
      ApiException - if the remote call fails
    • deleteOdbSubnetAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOdbSubnetAsync(DeleteOdbSubnetRequest request)
      Deletes a single ODB Subnet.

      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()) {
         DeleteOdbSubnetRequest request =
             DeleteOdbSubnetRequest.newBuilder()
                 .setName(
                     OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         oracleDatabaseClient.deleteOdbSubnetAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteOdbSubnetOperationCallable

      public final OperationCallable<DeleteOdbSubnetRequest,com.google.protobuf.Empty,OperationMetadata> deleteOdbSubnetOperationCallable()
      Deletes a single ODB Subnet.

      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()) {
         DeleteOdbSubnetRequest request =
             DeleteOdbSubnetRequest.newBuilder()
                 .setName(
                     OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<Empty, OperationMetadata> future =
             oracleDatabaseClient.deleteOdbSubnetOperationCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • deleteOdbSubnetCallable

      public final UnaryCallable<DeleteOdbSubnetRequest,Operation> deleteOdbSubnetCallable()
      Deletes a single ODB Subnet.

      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()) {
         DeleteOdbSubnetRequest request =
             DeleteOdbSubnetRequest.newBuilder()
                 .setName(
                     OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.deleteOdbSubnetCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • listExadbVmClusters

      public final OracleDatabaseClient.ListExadbVmClustersPagedResponse listExadbVmClusters(LocationName parent)
      Lists all the Exadb (Exascale) VM Clusters 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 (ExadbVmCluster element : oracleDatabaseClient.listExadbVmClusters(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for ExadbVmClusters in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listExadbVmClusters

      public final OracleDatabaseClient.ListExadbVmClustersPagedResponse listExadbVmClusters(String parent)
      Lists all the Exadb (Exascale) VM Clusters 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 (ExadbVmCluster element : oracleDatabaseClient.listExadbVmClusters(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for ExadbVmClusters in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listExadbVmClusters

      Lists all the Exadb (Exascale) VM Clusters 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()) {
         ListExadbVmClustersRequest request =
             ListExadbVmClustersRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         for (ExadbVmCluster element :
             oracleDatabaseClient.listExadbVmClusters(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listExadbVmClustersPagedCallable

      Lists all the Exadb (Exascale) VM Clusters 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()) {
         ListExadbVmClustersRequest request =
             ListExadbVmClustersRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         ApiFuture<ExadbVmCluster> future =
             oracleDatabaseClient.listExadbVmClustersPagedCallable().futureCall(request);
         // Do something.
         for (ExadbVmCluster element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listExadbVmClustersCallable

      public final UnaryCallable<ListExadbVmClustersRequest,ListExadbVmClustersResponse> listExadbVmClustersCallable()
      Lists all the Exadb (Exascale) VM Clusters 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()) {
         ListExadbVmClustersRequest request =
             ListExadbVmClustersRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         while (true) {
           ListExadbVmClustersResponse response =
               oracleDatabaseClient.listExadbVmClustersCallable().call(request);
           for (ExadbVmCluster element : response.getExadbVmClustersList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getExadbVmCluster

      public final ExadbVmCluster getExadbVmCluster(ExadbVmClusterName name)
      Gets details of a single Exadb (Exascale) 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()) {
         ExadbVmClusterName name =
             ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]");
         ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(name);
       }
       
      Parameters:
      name - Required. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
      Throws:
      ApiException - if the remote call fails
    • getExadbVmCluster

      public final ExadbVmCluster getExadbVmCluster(String name)
      Gets details of a single Exadb (Exascale) 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 =
             ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString();
         ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(name);
       }
       
      Parameters:
      name - Required. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
      Throws:
      ApiException - if the remote call fails
    • getExadbVmCluster

      public final ExadbVmCluster getExadbVmCluster(GetExadbVmClusterRequest request)
      Gets details of a single Exadb (Exascale) 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()) {
         GetExadbVmClusterRequest request =
             GetExadbVmClusterRequest.newBuilder()
                 .setName(
                     ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
                 .build();
         ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getExadbVmClusterCallable

      public final UnaryCallable<GetExadbVmClusterRequest,ExadbVmCluster> getExadbVmClusterCallable()
      Gets details of a single Exadb (Exascale) 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()) {
         GetExadbVmClusterRequest request =
             GetExadbVmClusterRequest.newBuilder()
                 .setName(
                     ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
                 .build();
         ApiFuture<ExadbVmCluster> future =
             oracleDatabaseClient.getExadbVmClusterCallable().futureCall(request);
         // Do something.
         ExadbVmCluster response = future.get();
       }
       
    • createExadbVmClusterAsync

      public final OperationFuture<ExadbVmCluster,OperationMetadata> createExadbVmClusterAsync(LocationName parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId)
      Creates a new Exadb (Exascale) VM Cluster resource.

      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]");
         ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build();
         String exadbVmClusterId = "exadbVmClusterId1890152722";
         ExadbVmCluster response =
             oracleDatabaseClient
                 .createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId)
                 .get();
       }
       
      Parameters:
      parent - Required. The value for parent of the ExadbVmCluster in the following format: projects/{project}/locations/{location}.
      exadbVmCluster - Required. The resource being created.
      exadbVmClusterId - Required. The ID of the ExadbVmCluster to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createExadbVmClusterAsync

      public final OperationFuture<ExadbVmCluster,OperationMetadata> createExadbVmClusterAsync(String parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId)
      Creates a new Exadb (Exascale) VM Cluster resource.

      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();
         ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build();
         String exadbVmClusterId = "exadbVmClusterId1890152722";
         ExadbVmCluster response =
             oracleDatabaseClient
                 .createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId)
                 .get();
       }
       
      Parameters:
      parent - Required. The value for parent of the ExadbVmCluster in the following format: projects/{project}/locations/{location}.
      exadbVmCluster - Required. The resource being created.
      exadbVmClusterId - Required. The ID of the ExadbVmCluster to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createExadbVmClusterAsync

      public final OperationFuture<ExadbVmCluster,OperationMetadata> createExadbVmClusterAsync(CreateExadbVmClusterRequest request)
      Creates a new Exadb (Exascale) VM Cluster resource.

      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()) {
         CreateExadbVmClusterRequest request =
             CreateExadbVmClusterRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setExadbVmClusterId("exadbVmClusterId1890152722")
                 .setExadbVmCluster(ExadbVmCluster.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ExadbVmCluster response = oracleDatabaseClient.createExadbVmClusterAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • createExadbVmClusterOperationCallable

      public final OperationCallable<CreateExadbVmClusterRequest,ExadbVmCluster,OperationMetadata> createExadbVmClusterOperationCallable()
      Creates a new Exadb (Exascale) VM Cluster resource.

      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()) {
         CreateExadbVmClusterRequest request =
             CreateExadbVmClusterRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setExadbVmClusterId("exadbVmClusterId1890152722")
                 .setExadbVmCluster(ExadbVmCluster.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<ExadbVmCluster, OperationMetadata> future =
             oracleDatabaseClient.createExadbVmClusterOperationCallable().futureCall(request);
         // Do something.
         ExadbVmCluster response = future.get();
       }
       
    • createExadbVmClusterCallable

      public final UnaryCallable<CreateExadbVmClusterRequest,Operation> createExadbVmClusterCallable()
      Creates a new Exadb (Exascale) VM Cluster resource.

      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()) {
         CreateExadbVmClusterRequest request =
             CreateExadbVmClusterRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setExadbVmClusterId("exadbVmClusterId1890152722")
                 .setExadbVmCluster(ExadbVmCluster.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.createExadbVmClusterCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • deleteExadbVmClusterAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteExadbVmClusterAsync(ExadbVmClusterName name)
      Deletes a single Exadb (Exascale) 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()) {
         ExadbVmClusterName name =
             ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]");
         oracleDatabaseClient.deleteExadbVmClusterAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
      Throws:
      ApiException - if the remote call fails
    • deleteExadbVmClusterAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteExadbVmClusterAsync(String name)
      Deletes a single Exadb (Exascale) 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 =
             ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString();
         oracleDatabaseClient.deleteExadbVmClusterAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
      Throws:
      ApiException - if the remote call fails
    • deleteExadbVmClusterAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteExadbVmClusterAsync(DeleteExadbVmClusterRequest request)
      Deletes a single Exadb (Exascale) 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()) {
         DeleteExadbVmClusterRequest request =
             DeleteExadbVmClusterRequest.newBuilder()
                 .setName(
                     ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
                 .setRequestId("requestId693933066")
                 .build();
         oracleDatabaseClient.deleteExadbVmClusterAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteExadbVmClusterOperationCallable

      public final OperationCallable<DeleteExadbVmClusterRequest,com.google.protobuf.Empty,OperationMetadata> deleteExadbVmClusterOperationCallable()
      Deletes a single Exadb (Exascale) 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()) {
         DeleteExadbVmClusterRequest request =
             DeleteExadbVmClusterRequest.newBuilder()
                 .setName(
                     ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<Empty, OperationMetadata> future =
             oracleDatabaseClient.deleteExadbVmClusterOperationCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • deleteExadbVmClusterCallable

      public final UnaryCallable<DeleteExadbVmClusterRequest,Operation> deleteExadbVmClusterCallable()
      Deletes a single Exadb (Exascale) 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()) {
         DeleteExadbVmClusterRequest request =
             DeleteExadbVmClusterRequest.newBuilder()
                 .setName(
                     ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.deleteExadbVmClusterCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • updateExadbVmClusterAsync

      public final OperationFuture<ExadbVmCluster,OperationMetadata> updateExadbVmClusterAsync(ExadbVmCluster exadbVmCluster, com.google.protobuf.FieldMask updateMask)
      Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count.

      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()) {
         ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build();
         FieldMask updateMask = FieldMask.newBuilder().build();
         ExadbVmCluster response =
             oracleDatabaseClient.updateExadbVmClusterAsync(exadbVmCluster, updateMask).get();
       }
       
      Parameters:
      exadbVmCluster - Required. The resource being updated.
      updateMask - Optional. A mask specifying which fields in th VM Cluster should be updated. A field specified in the mask is overwritten. If a mask isn't provided then all the fields in the VM Cluster are overwritten.
      Throws:
      ApiException - if the remote call fails
    • updateExadbVmClusterAsync

      public final OperationFuture<ExadbVmCluster,OperationMetadata> updateExadbVmClusterAsync(UpdateExadbVmClusterRequest request)
      Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count.

      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()) {
         UpdateExadbVmClusterRequest request =
             UpdateExadbVmClusterRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setExadbVmCluster(ExadbVmCluster.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ExadbVmCluster response = oracleDatabaseClient.updateExadbVmClusterAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • updateExadbVmClusterOperationCallable

      public final OperationCallable<UpdateExadbVmClusterRequest,ExadbVmCluster,OperationMetadata> updateExadbVmClusterOperationCallable()
      Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count.

      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()) {
         UpdateExadbVmClusterRequest request =
             UpdateExadbVmClusterRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setExadbVmCluster(ExadbVmCluster.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<ExadbVmCluster, OperationMetadata> future =
             oracleDatabaseClient.updateExadbVmClusterOperationCallable().futureCall(request);
         // Do something.
         ExadbVmCluster response = future.get();
       }
       
    • updateExadbVmClusterCallable

      public final UnaryCallable<UpdateExadbVmClusterRequest,Operation> updateExadbVmClusterCallable()
      Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count.

      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()) {
         UpdateExadbVmClusterRequest request =
             UpdateExadbVmClusterRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setExadbVmCluster(ExadbVmCluster.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.updateExadbVmClusterCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • removeVirtualMachineExadbVmClusterAsync

      public final OperationFuture<ExadbVmCluster,OperationMetadata> removeVirtualMachineExadbVmClusterAsync(ExadbVmClusterName name, List<String> hostnames)
      Removes virtual machines from an existing exadb 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()) {
         ExadbVmClusterName name =
             ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]");
         List<String> hostnames = new ArrayList<>();
         ExadbVmCluster response =
             oracleDatabaseClient.removeVirtualMachineExadbVmClusterAsync(name, hostnames).get();
       }
       
      Parameters:
      name - Required. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
      hostnames - Required. The list of host names of db nodes to be removed from the ExadbVmCluster.
      Throws:
      ApiException - if the remote call fails
    • removeVirtualMachineExadbVmClusterAsync

      public final OperationFuture<ExadbVmCluster,OperationMetadata> removeVirtualMachineExadbVmClusterAsync(String name, List<String> hostnames)
      Removes virtual machines from an existing exadb 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 =
             ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString();
         List<String> hostnames = new ArrayList<>();
         ExadbVmCluster response =
             oracleDatabaseClient.removeVirtualMachineExadbVmClusterAsync(name, hostnames).get();
       }
       
      Parameters:
      name - Required. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
      hostnames - Required. The list of host names of db nodes to be removed from the ExadbVmCluster.
      Throws:
      ApiException - if the remote call fails
    • removeVirtualMachineExadbVmClusterAsync

      public final OperationFuture<ExadbVmCluster,OperationMetadata> removeVirtualMachineExadbVmClusterAsync(RemoveVirtualMachineExadbVmClusterRequest request)
      Removes virtual machines from an existing exadb 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()) {
         RemoveVirtualMachineExadbVmClusterRequest request =
             RemoveVirtualMachineExadbVmClusterRequest.newBuilder()
                 .setName(
                     ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
                 .setRequestId("requestId693933066")
                 .addAllHostnames(new ArrayList<String>())
                 .build();
         ExadbVmCluster response =
             oracleDatabaseClient.removeVirtualMachineExadbVmClusterAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • removeVirtualMachineExadbVmClusterOperationCallable

      public final OperationCallable<RemoveVirtualMachineExadbVmClusterRequest,ExadbVmCluster,OperationMetadata> removeVirtualMachineExadbVmClusterOperationCallable()
      Removes virtual machines from an existing exadb 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()) {
         RemoveVirtualMachineExadbVmClusterRequest request =
             RemoveVirtualMachineExadbVmClusterRequest.newBuilder()
                 .setName(
                     ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
                 .setRequestId("requestId693933066")
                 .addAllHostnames(new ArrayList<String>())
                 .build();
         OperationFuture<ExadbVmCluster, OperationMetadata> future =
             oracleDatabaseClient
                 .removeVirtualMachineExadbVmClusterOperationCallable()
                 .futureCall(request);
         // Do something.
         ExadbVmCluster response = future.get();
       }
       
    • removeVirtualMachineExadbVmClusterCallable

      public final UnaryCallable<RemoveVirtualMachineExadbVmClusterRequest,Operation> removeVirtualMachineExadbVmClusterCallable()
      Removes virtual machines from an existing exadb 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()) {
         RemoveVirtualMachineExadbVmClusterRequest request =
             RemoveVirtualMachineExadbVmClusterRequest.newBuilder()
                 .setName(
                     ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
                 .setRequestId("requestId693933066")
                 .addAllHostnames(new ArrayList<String>())
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.removeVirtualMachineExadbVmClusterCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • listExascaleDbStorageVaults

      public final OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse listExascaleDbStorageVaults(LocationName parent)
      Lists all the ExascaleDB Storage Vaults 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 (ExascaleDbStorageVault element :
             oracleDatabaseClient.listExascaleDbStorageVaults(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listExascaleDbStorageVaults

      public final OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse listExascaleDbStorageVaults(String parent)
      Lists all the ExascaleDB Storage Vaults 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 (ExascaleDbStorageVault element :
             oracleDatabaseClient.listExascaleDbStorageVaults(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listExascaleDbStorageVaults

      Lists all the ExascaleDB Storage Vaults 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()) {
         ListExascaleDbStorageVaultsRequest request =
             ListExascaleDbStorageVaultsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         for (ExascaleDbStorageVault element :
             oracleDatabaseClient.listExascaleDbStorageVaults(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listExascaleDbStorageVaultsPagedCallable

      Lists all the ExascaleDB Storage Vaults 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()) {
         ListExascaleDbStorageVaultsRequest request =
             ListExascaleDbStorageVaultsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         ApiFuture<ExascaleDbStorageVault> future =
             oracleDatabaseClient.listExascaleDbStorageVaultsPagedCallable().futureCall(request);
         // Do something.
         for (ExascaleDbStorageVault element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listExascaleDbStorageVaultsCallable

      public final UnaryCallable<ListExascaleDbStorageVaultsRequest,ListExascaleDbStorageVaultsResponse> listExascaleDbStorageVaultsCallable()
      Lists all the ExascaleDB Storage Vaults 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()) {
         ListExascaleDbStorageVaultsRequest request =
             ListExascaleDbStorageVaultsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         while (true) {
           ListExascaleDbStorageVaultsResponse response =
               oracleDatabaseClient.listExascaleDbStorageVaultsCallable().call(request);
           for (ExascaleDbStorageVault element : response.getExascaleDbStorageVaultsList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getExascaleDbStorageVault

      public final ExascaleDbStorageVault getExascaleDbStorageVault(ExascaleDbStorageVaultName name)
      Gets details of a single ExascaleDB Storage Vault.

      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()) {
         ExascaleDbStorageVaultName name =
             ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]");
         ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(name);
       }
       
      Parameters:
      name - Required. The name of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
      Throws:
      ApiException - if the remote call fails
    • getExascaleDbStorageVault

      public final ExascaleDbStorageVault getExascaleDbStorageVault(String name)
      Gets details of a single ExascaleDB Storage Vault.

      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 =
             ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]")
                 .toString();
         ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(name);
       }
       
      Parameters:
      name - Required. The name of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
      Throws:
      ApiException - if the remote call fails
    • getExascaleDbStorageVault

      public final ExascaleDbStorageVault getExascaleDbStorageVault(GetExascaleDbStorageVaultRequest request)
      Gets details of a single ExascaleDB Storage Vault.

      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()) {
         GetExascaleDbStorageVaultRequest request =
             GetExascaleDbStorageVaultRequest.newBuilder()
                 .setName(
                     ExascaleDbStorageVaultName.of(
                             "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]")
                         .toString())
                 .build();
         ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getExascaleDbStorageVaultCallable

      public final UnaryCallable<GetExascaleDbStorageVaultRequest,ExascaleDbStorageVault> getExascaleDbStorageVaultCallable()
      Gets details of a single ExascaleDB Storage Vault.

      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()) {
         GetExascaleDbStorageVaultRequest request =
             GetExascaleDbStorageVaultRequest.newBuilder()
                 .setName(
                     ExascaleDbStorageVaultName.of(
                             "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]")
                         .toString())
                 .build();
         ApiFuture<ExascaleDbStorageVault> future =
             oracleDatabaseClient.getExascaleDbStorageVaultCallable().futureCall(request);
         // Do something.
         ExascaleDbStorageVault response = future.get();
       }
       
    • createExascaleDbStorageVaultAsync

      public final OperationFuture<ExascaleDbStorageVault,OperationMetadata> createExascaleDbStorageVaultAsync(LocationName parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId)
      Creates a new ExascaleDB Storage Vault resource.

      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]");
         ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build();
         String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132";
         ExascaleDbStorageVault response =
             oracleDatabaseClient
                 .createExascaleDbStorageVaultAsync(
                     parent, exascaleDbStorageVault, exascaleDbStorageVaultId)
                 .get();
       }
       
      Parameters:
      parent - Required. The value for parent of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}.
      exascaleDbStorageVault - Required. The resource being created.
      exascaleDbStorageVaultId - Required. The ID of the ExascaleDbStorageVault to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createExascaleDbStorageVaultAsync

      public final OperationFuture<ExascaleDbStorageVault,OperationMetadata> createExascaleDbStorageVaultAsync(String parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId)
      Creates a new ExascaleDB Storage Vault resource.

      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();
         ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build();
         String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132";
         ExascaleDbStorageVault response =
             oracleDatabaseClient
                 .createExascaleDbStorageVaultAsync(
                     parent, exascaleDbStorageVault, exascaleDbStorageVaultId)
                 .get();
       }
       
      Parameters:
      parent - Required. The value for parent of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}.
      exascaleDbStorageVault - Required. The resource being created.
      exascaleDbStorageVaultId - Required. The ID of the ExascaleDbStorageVault to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createExascaleDbStorageVaultAsync

      public final OperationFuture<ExascaleDbStorageVault,OperationMetadata> createExascaleDbStorageVaultAsync(CreateExascaleDbStorageVaultRequest request)
      Creates a new ExascaleDB Storage Vault resource.

      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()) {
         CreateExascaleDbStorageVaultRequest request =
             CreateExascaleDbStorageVaultRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setExascaleDbStorageVaultId("exascaleDbStorageVaultId-24370132")
                 .setExascaleDbStorageVault(ExascaleDbStorageVault.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ExascaleDbStorageVault response =
             oracleDatabaseClient.createExascaleDbStorageVaultAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • createExascaleDbStorageVaultOperationCallable

      public final OperationCallable<CreateExascaleDbStorageVaultRequest,ExascaleDbStorageVault,OperationMetadata> createExascaleDbStorageVaultOperationCallable()
      Creates a new ExascaleDB Storage Vault resource.

      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()) {
         CreateExascaleDbStorageVaultRequest request =
             CreateExascaleDbStorageVaultRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setExascaleDbStorageVaultId("exascaleDbStorageVaultId-24370132")
                 .setExascaleDbStorageVault(ExascaleDbStorageVault.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<ExascaleDbStorageVault, OperationMetadata> future =
             oracleDatabaseClient.createExascaleDbStorageVaultOperationCallable().futureCall(request);
         // Do something.
         ExascaleDbStorageVault response = future.get();
       }
       
    • createExascaleDbStorageVaultCallable

      public final UnaryCallable<CreateExascaleDbStorageVaultRequest,Operation> createExascaleDbStorageVaultCallable()
      Creates a new ExascaleDB Storage Vault resource.

      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()) {
         CreateExascaleDbStorageVaultRequest request =
             CreateExascaleDbStorageVaultRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setExascaleDbStorageVaultId("exascaleDbStorageVaultId-24370132")
                 .setExascaleDbStorageVault(ExascaleDbStorageVault.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.createExascaleDbStorageVaultCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • deleteExascaleDbStorageVaultAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteExascaleDbStorageVaultAsync(ExascaleDbStorageVaultName name)
      Deletes a single ExascaleDB Storage Vault.

      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()) {
         ExascaleDbStorageVaultName name =
             ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]");
         oracleDatabaseClient.deleteExascaleDbStorageVaultAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
      Throws:
      ApiException - if the remote call fails
    • deleteExascaleDbStorageVaultAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteExascaleDbStorageVaultAsync(String name)
      Deletes a single ExascaleDB Storage Vault.

      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 =
             ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]")
                 .toString();
         oracleDatabaseClient.deleteExascaleDbStorageVaultAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
      Throws:
      ApiException - if the remote call fails
    • deleteExascaleDbStorageVaultAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteExascaleDbStorageVaultAsync(DeleteExascaleDbStorageVaultRequest request)
      Deletes a single ExascaleDB Storage Vault.

      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()) {
         DeleteExascaleDbStorageVaultRequest request =
             DeleteExascaleDbStorageVaultRequest.newBuilder()
                 .setName(
                     ExascaleDbStorageVaultName.of(
                             "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         oracleDatabaseClient.deleteExascaleDbStorageVaultAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteExascaleDbStorageVaultOperationCallable

      public final OperationCallable<DeleteExascaleDbStorageVaultRequest,com.google.protobuf.Empty,OperationMetadata> deleteExascaleDbStorageVaultOperationCallable()
      Deletes a single ExascaleDB Storage Vault.

      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()) {
         DeleteExascaleDbStorageVaultRequest request =
             DeleteExascaleDbStorageVaultRequest.newBuilder()
                 .setName(
                     ExascaleDbStorageVaultName.of(
                             "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<Empty, OperationMetadata> future =
             oracleDatabaseClient.deleteExascaleDbStorageVaultOperationCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • deleteExascaleDbStorageVaultCallable

      public final UnaryCallable<DeleteExascaleDbStorageVaultRequest,Operation> deleteExascaleDbStorageVaultCallable()
      Deletes a single ExascaleDB Storage Vault.

      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()) {
         DeleteExascaleDbStorageVaultRequest request =
             DeleteExascaleDbStorageVaultRequest.newBuilder()
                 .setName(
                     ExascaleDbStorageVaultName.of(
                             "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.deleteExascaleDbStorageVaultCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • listDbSystemInitialStorageSizes

      public final OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse listDbSystemInitialStorageSizes(LocationName parent)
      Lists all the DbSystemInitialStorageSizes 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 (DbSystemInitialStorageSize element :
             oracleDatabaseClient.listDbSystemInitialStorageSizes(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the DbSystemInitialStorageSize resource with the format: projects/{project}/locations/{location}
      Throws:
      ApiException - if the remote call fails
    • listDbSystemInitialStorageSizes

      public final OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse listDbSystemInitialStorageSizes(String parent)
      Lists all the DbSystemInitialStorageSizes 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 (DbSystemInitialStorageSize element :
             oracleDatabaseClient.listDbSystemInitialStorageSizes(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the DbSystemInitialStorageSize resource with the format: projects/{project}/locations/{location}
      Throws:
      ApiException - if the remote call fails
    • listDbSystemInitialStorageSizes

      Lists all the DbSystemInitialStorageSizes 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()) {
         ListDbSystemInitialStorageSizesRequest request =
             ListDbSystemInitialStorageSizesRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .build();
         for (DbSystemInitialStorageSize element :
             oracleDatabaseClient.listDbSystemInitialStorageSizes(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listDbSystemInitialStorageSizesPagedCallable

      Lists all the DbSystemInitialStorageSizes 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()) {
         ListDbSystemInitialStorageSizesRequest request =
             ListDbSystemInitialStorageSizesRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .build();
         ApiFuture<DbSystemInitialStorageSize> future =
             oracleDatabaseClient.listDbSystemInitialStorageSizesPagedCallable().futureCall(request);
         // Do something.
         for (DbSystemInitialStorageSize element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listDbSystemInitialStorageSizesCallable

      public final UnaryCallable<ListDbSystemInitialStorageSizesRequest,ListDbSystemInitialStorageSizesResponse> listDbSystemInitialStorageSizesCallable()
      Lists all the DbSystemInitialStorageSizes 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()) {
         ListDbSystemInitialStorageSizesRequest request =
             ListDbSystemInitialStorageSizesRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .build();
         while (true) {
           ListDbSystemInitialStorageSizesResponse response =
               oracleDatabaseClient.listDbSystemInitialStorageSizesCallable().call(request);
           for (DbSystemInitialStorageSize element : response.getDbSystemInitialStorageSizesList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • listDatabases

      Lists all the Databases for the given project, location and DbSystem.

      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 (Database element : oracleDatabaseClient.listDatabases(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent resource name in the following format: projects/{project}/locations/{region}
      Throws:
      ApiException - if the remote call fails
    • listDatabases

      public final OracleDatabaseClient.ListDatabasesPagedResponse listDatabases(String parent)
      Lists all the Databases for the given project, location and DbSystem.

      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 (Database element : oracleDatabaseClient.listDatabases(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent resource name in the following format: projects/{project}/locations/{region}
      Throws:
      ApiException - if the remote call fails
    • listDatabases

      Lists all the Databases for the given project, location and DbSystem.

      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()) {
         ListDatabasesRequest request =
             ListDatabasesRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         for (Database element : oracleDatabaseClient.listDatabases(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listDatabasesPagedCallable

      Lists all the Databases for the given project, location and DbSystem.

      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()) {
         ListDatabasesRequest request =
             ListDatabasesRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         ApiFuture<Database> future =
             oracleDatabaseClient.listDatabasesPagedCallable().futureCall(request);
         // Do something.
         for (Database element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listDatabasesCallable

      public final UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> listDatabasesCallable()
      Lists all the Databases for the given project, location and DbSystem.

      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()) {
         ListDatabasesRequest request =
             ListDatabasesRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         while (true) {
           ListDatabasesResponse response = oracleDatabaseClient.listDatabasesCallable().call(request);
           for (Database element : response.getDatabasesList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getDatabase

      public final Database getDatabase(DatabaseName name)
      Gets details of a single 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()) {
         DatabaseName name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]");
         Database response = oracleDatabaseClient.getDatabase(name);
       }
       
      Parameters:
      name - Required. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database}
      Throws:
      ApiException - if the remote call fails
    • getDatabase

      public final Database getDatabase(String name)
      Gets details of a single 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 = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString();
         Database response = oracleDatabaseClient.getDatabase(name);
       }
       
      Parameters:
      name - Required. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database}
      Throws:
      ApiException - if the remote call fails
    • getDatabase

      public final Database getDatabase(GetDatabaseRequest request)
      Gets details of a single 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()) {
         GetDatabaseRequest request =
             GetDatabaseRequest.newBuilder()
                 .setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString())
                 .build();
         Database response = oracleDatabaseClient.getDatabase(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getDatabaseCallable

      public final UnaryCallable<GetDatabaseRequest,Database> getDatabaseCallable()
      Gets details of a single 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()) {
         GetDatabaseRequest request =
             GetDatabaseRequest.newBuilder()
                 .setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString())
                 .build();
         ApiFuture<Database> future = oracleDatabaseClient.getDatabaseCallable().futureCall(request);
         // Do something.
         Database response = future.get();
       }
       
    • listPluggableDatabases

      public final OracleDatabaseClient.ListPluggableDatabasesPagedResponse listPluggableDatabases(LocationName parent)
      Lists all the PluggableDatabases for the given project, location and Container 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 (PluggableDatabase element :
             oracleDatabaseClient.listPluggableDatabases(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of PluggableDatabases. Format: projects/{project}/locations/{location}
      Throws:
      ApiException - if the remote call fails
    • listPluggableDatabases

      public final OracleDatabaseClient.ListPluggableDatabasesPagedResponse listPluggableDatabases(String parent)
      Lists all the PluggableDatabases for the given project, location and Container 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 (PluggableDatabase element :
             oracleDatabaseClient.listPluggableDatabases(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of PluggableDatabases. Format: projects/{project}/locations/{location}
      Throws:
      ApiException - if the remote call fails
    • listPluggableDatabases

      Lists all the PluggableDatabases for the given project, location and Container 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()) {
         ListPluggableDatabasesRequest request =
             ListPluggableDatabasesRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         for (PluggableDatabase element :
             oracleDatabaseClient.listPluggableDatabases(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listPluggableDatabasesPagedCallable

      Lists all the PluggableDatabases for the given project, location and Container 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()) {
         ListPluggableDatabasesRequest request =
             ListPluggableDatabasesRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         ApiFuture<PluggableDatabase> future =
             oracleDatabaseClient.listPluggableDatabasesPagedCallable().futureCall(request);
         // Do something.
         for (PluggableDatabase element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listPluggableDatabasesCallable

      public final UnaryCallable<ListPluggableDatabasesRequest,ListPluggableDatabasesResponse> listPluggableDatabasesCallable()
      Lists all the PluggableDatabases for the given project, location and Container 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()) {
         ListPluggableDatabasesRequest request =
             ListPluggableDatabasesRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         while (true) {
           ListPluggableDatabasesResponse response =
               oracleDatabaseClient.listPluggableDatabasesCallable().call(request);
           for (PluggableDatabase element : response.getPluggableDatabasesList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getPluggableDatabase

      public final PluggableDatabase getPluggableDatabase(PluggableDatabaseName name)
      Gets details of a single PluggableDatabase.

      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()) {
         PluggableDatabaseName name =
             PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]");
         PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(name);
       }
       
      Parameters:
      name - Required. The name of the PluggableDatabase resource in the following format: projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
      Throws:
      ApiException - if the remote call fails
    • getPluggableDatabase

      public final PluggableDatabase getPluggableDatabase(String name)
      Gets details of a single PluggableDatabase.

      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 =
             PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]").toString();
         PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(name);
       }
       
      Parameters:
      name - Required. The name of the PluggableDatabase resource in the following format: projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
      Throws:
      ApiException - if the remote call fails
    • getPluggableDatabase

      public final PluggableDatabase getPluggableDatabase(GetPluggableDatabaseRequest request)
      Gets details of a single PluggableDatabase.

      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()) {
         GetPluggableDatabaseRequest request =
             GetPluggableDatabaseRequest.newBuilder()
                 .setName(
                     PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]")
                         .toString())
                 .build();
         PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getPluggableDatabaseCallable

      public final UnaryCallable<GetPluggableDatabaseRequest,PluggableDatabase> getPluggableDatabaseCallable()
      Gets details of a single PluggableDatabase.

      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()) {
         GetPluggableDatabaseRequest request =
             GetPluggableDatabaseRequest.newBuilder()
                 .setName(
                     PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]")
                         .toString())
                 .build();
         ApiFuture<PluggableDatabase> future =
             oracleDatabaseClient.getPluggableDatabaseCallable().futureCall(request);
         // Do something.
         PluggableDatabase response = future.get();
       }
       
    • listDbSystems

      Lists all the DbSystems 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 (DbSystem element : oracleDatabaseClient.listDbSystems(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for DbSystems in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listDbSystems

      public final OracleDatabaseClient.ListDbSystemsPagedResponse listDbSystems(String parent)
      Lists all the DbSystems 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 (DbSystem element : oracleDatabaseClient.listDbSystems(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for DbSystems in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listDbSystems

      Lists all the DbSystems 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()) {
         ListDbSystemsRequest request =
             ListDbSystemsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         for (DbSystem element : oracleDatabaseClient.listDbSystems(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listDbSystemsPagedCallable

      Lists all the DbSystems 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()) {
         ListDbSystemsRequest request =
             ListDbSystemsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         ApiFuture<DbSystem> future =
             oracleDatabaseClient.listDbSystemsPagedCallable().futureCall(request);
         // Do something.
         for (DbSystem element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listDbSystemsCallable

      public final UnaryCallable<ListDbSystemsRequest,ListDbSystemsResponse> listDbSystemsCallable()
      Lists all the DbSystems 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()) {
         ListDbSystemsRequest request =
             ListDbSystemsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         while (true) {
           ListDbSystemsResponse response = oracleDatabaseClient.listDbSystemsCallable().call(request);
           for (DbSystem element : response.getDbSystemsList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getDbSystem

      public final DbSystem getDbSystem(DbSystemName name)
      Gets details of a single DbSystem.

      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()) {
         DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]");
         DbSystem response = oracleDatabaseClient.getDbSystem(name);
       }
       
      Parameters:
      name - Required. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}.
      Throws:
      ApiException - if the remote call fails
    • getDbSystem

      public final DbSystem getDbSystem(String name)
      Gets details of a single DbSystem.

      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 = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString();
         DbSystem response = oracleDatabaseClient.getDbSystem(name);
       }
       
      Parameters:
      name - Required. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}.
      Throws:
      ApiException - if the remote call fails
    • getDbSystem

      public final DbSystem getDbSystem(GetDbSystemRequest request)
      Gets details of a single DbSystem.

      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()) {
         GetDbSystemRequest request =
             GetDbSystemRequest.newBuilder()
                 .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString())
                 .build();
         DbSystem response = oracleDatabaseClient.getDbSystem(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getDbSystemCallable

      public final UnaryCallable<GetDbSystemRequest,DbSystem> getDbSystemCallable()
      Gets details of a single DbSystem.

      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()) {
         GetDbSystemRequest request =
             GetDbSystemRequest.newBuilder()
                 .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString())
                 .build();
         ApiFuture<DbSystem> future = oracleDatabaseClient.getDbSystemCallable().futureCall(request);
         // Do something.
         DbSystem response = future.get();
       }
       
    • createDbSystemAsync

      public final OperationFuture<DbSystem,OperationMetadata> createDbSystemAsync(LocationName parent, DbSystem dbSystem, String dbSystemId)
      Creates a new DbSystem 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]");
         DbSystem dbSystem = DbSystem.newBuilder().build();
         String dbSystemId = "dbSystemId-1467630008";
         DbSystem response =
             oracleDatabaseClient.createDbSystemAsync(parent, dbSystem, dbSystemId).get();
       }
       
      Parameters:
      parent - Required. The value for parent of the DbSystem in the following format: projects/{project}/locations/{location}.
      dbSystem - Required. The resource being created.
      dbSystemId - Required. The ID of the DbSystem to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createDbSystemAsync

      public final OperationFuture<DbSystem,OperationMetadata> createDbSystemAsync(String parent, DbSystem dbSystem, String dbSystemId)
      Creates a new DbSystem 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();
         DbSystem dbSystem = DbSystem.newBuilder().build();
         String dbSystemId = "dbSystemId-1467630008";
         DbSystem response =
             oracleDatabaseClient.createDbSystemAsync(parent, dbSystem, dbSystemId).get();
       }
       
      Parameters:
      parent - Required. The value for parent of the DbSystem in the following format: projects/{project}/locations/{location}.
      dbSystem - Required. The resource being created.
      dbSystemId - Required. The ID of the DbSystem to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.
      Throws:
      ApiException - if the remote call fails
    • createDbSystemAsync

      public final OperationFuture<DbSystem,OperationMetadata> createDbSystemAsync(CreateDbSystemRequest request)
      Creates a new DbSystem 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()) {
         CreateDbSystemRequest request =
             CreateDbSystemRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setDbSystemId("dbSystemId-1467630008")
                 .setDbSystem(DbSystem.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         DbSystem response = oracleDatabaseClient.createDbSystemAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • createDbSystemOperationCallable

      public final OperationCallable<CreateDbSystemRequest,DbSystem,OperationMetadata> createDbSystemOperationCallable()
      Creates a new DbSystem 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()) {
         CreateDbSystemRequest request =
             CreateDbSystemRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setDbSystemId("dbSystemId-1467630008")
                 .setDbSystem(DbSystem.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<DbSystem, OperationMetadata> future =
             oracleDatabaseClient.createDbSystemOperationCallable().futureCall(request);
         // Do something.
         DbSystem response = future.get();
       }
       
    • createDbSystemCallable

      public final UnaryCallable<CreateDbSystemRequest,Operation> createDbSystemCallable()
      Creates a new DbSystem 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()) {
         CreateDbSystemRequest request =
             CreateDbSystemRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setDbSystemId("dbSystemId-1467630008")
                 .setDbSystem(DbSystem.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.createDbSystemCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • deleteDbSystemAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDbSystemAsync(DbSystemName name)
      Deletes a single DbSystem.

      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()) {
         DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]");
         oracleDatabaseClient.deleteDbSystemAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}.
      Throws:
      ApiException - if the remote call fails
    • deleteDbSystemAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDbSystemAsync(String name)
      Deletes a single DbSystem.

      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 = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString();
         oracleDatabaseClient.deleteDbSystemAsync(name).get();
       }
       
      Parameters:
      name - Required. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}.
      Throws:
      ApiException - if the remote call fails
    • deleteDbSystemAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDbSystemAsync(DeleteDbSystemRequest request)
      Deletes a single DbSystem.

      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()) {
         DeleteDbSystemRequest request =
             DeleteDbSystemRequest.newBuilder()
                 .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString())
                 .setRequestId("requestId693933066")
                 .build();
         oracleDatabaseClient.deleteDbSystemAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteDbSystemOperationCallable

      public final OperationCallable<DeleteDbSystemRequest,com.google.protobuf.Empty,OperationMetadata> deleteDbSystemOperationCallable()
      Deletes a single DbSystem.

      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()) {
         DeleteDbSystemRequest request =
             DeleteDbSystemRequest.newBuilder()
                 .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<Empty, OperationMetadata> future =
             oracleDatabaseClient.deleteDbSystemOperationCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • deleteDbSystemCallable

      public final UnaryCallable<DeleteDbSystemRequest,Operation> deleteDbSystemCallable()
      Deletes a single DbSystem.

      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()) {
         DeleteDbSystemRequest request =
             DeleteDbSystemRequest.newBuilder()
                 .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             oracleDatabaseClient.deleteDbSystemCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • listDbVersions

      public final OracleDatabaseClient.ListDbVersionsPagedResponse listDbVersions(LocationName parent)
      List DbVersions 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 (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the DbVersion resource with the format: projects/{project}/locations/{location}
      Throws:
      ApiException - if the remote call fails
    • listDbVersions

      public final OracleDatabaseClient.ListDbVersionsPagedResponse listDbVersions(String parent)
      List DbVersions 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 (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for the DbVersion resource with the format: projects/{project}/locations/{location}
      Throws:
      ApiException - if the remote call fails
    • listDbVersions

      List DbVersions 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()) {
         ListDbVersionsRequest request =
             ListDbVersionsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         for (DbVersion element : oracleDatabaseClient.listDbVersions(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listDbVersionsPagedCallable

      List DbVersions 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()) {
         ListDbVersionsRequest request =
             ListDbVersionsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         ApiFuture<DbVersion> future =
             oracleDatabaseClient.listDbVersionsPagedCallable().futureCall(request);
         // Do something.
         for (DbVersion element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listDbVersionsCallable

      public final UnaryCallable<ListDbVersionsRequest,ListDbVersionsResponse> listDbVersionsCallable()
      List DbVersions 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()) {
         ListDbVersionsRequest request =
             ListDbVersionsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         while (true) {
           ListDbVersionsResponse response =
               oracleDatabaseClient.listDbVersionsCallable().call(request);
           for (DbVersion element : response.getDbVersionsList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • listDatabaseCharacterSets

      public final OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(LocationName parent)
      List DatabaseCharacterSets 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 (DatabaseCharacterSet element :
             oracleDatabaseClient.listDatabaseCharacterSets(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for DatabaseCharacterSets in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listDatabaseCharacterSets

      public final OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(String parent)
      List DatabaseCharacterSets 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 (DatabaseCharacterSet element :
             oracleDatabaseClient.listDatabaseCharacterSets(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent value for DatabaseCharacterSets in the following format: projects/{project}/locations/{location}.
      Throws:
      ApiException - if the remote call fails
    • listDatabaseCharacterSets

      List DatabaseCharacterSets 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()) {
         ListDatabaseCharacterSetsRequest request =
             ListDatabaseCharacterSetsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         for (DatabaseCharacterSet element :
             oracleDatabaseClient.listDatabaseCharacterSets(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listDatabaseCharacterSetsPagedCallable

      List DatabaseCharacterSets 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()) {
         ListDatabaseCharacterSetsRequest request =
             ListDatabaseCharacterSetsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         ApiFuture<DatabaseCharacterSet> future =
             oracleDatabaseClient.listDatabaseCharacterSetsPagedCallable().futureCall(request);
         // Do something.
         for (DatabaseCharacterSet element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listDatabaseCharacterSetsCallable

      public final UnaryCallable<ListDatabaseCharacterSetsRequest,ListDatabaseCharacterSetsResponse> listDatabaseCharacterSetsCallable()
      List DatabaseCharacterSets 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()) {
         ListDatabaseCharacterSetsRequest request =
             ListDatabaseCharacterSetsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .build();
         while (true) {
           ListDatabaseCharacterSetsResponse response =
               oracleDatabaseClient.listDatabaseCharacterSetsCallable().call(request);
           for (DatabaseCharacterSet element : response.getDatabaseCharacterSetsList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • listLocations

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • getLocation

      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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • close

      public final void close()
      Specified by:
      close in interface AutoCloseable
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface BackgroundResource
    • isShutdown

      public boolean isShutdown()
      Specified by:
      isShutdown in interface BackgroundResource
    • isTerminated

      public boolean isTerminated()
      Specified by:
      isTerminated in interface BackgroundResource
    • shutdownNow

      public void shutdownNow()
      Specified by:
      shutdownNow in interface BackgroundResource
    • awaitTermination

      public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
      Specified by:
      awaitTermination in interface BackgroundResource
      Throws:
      InterruptedException