Class OracleDatabaseClient
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
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().
| Method | Description | Method Variants |
|---|---|---|
ListCloudExadataInfrastructures |
Lists Exadata Infrastructures in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetCloudExadataInfrastructure |
Gets details of a single Exadata Infrastructure. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateCloudExadataInfrastructure |
Creates a new Exadata Infrastructure in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteCloudExadataInfrastructure |
Deletes a single Exadata Infrastructure. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListCloudVmClusters |
Lists the VM Clusters in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetCloudVmCluster |
Gets details of a single VM Cluster. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateCloudVmCluster |
Creates a new VM Cluster in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteCloudVmCluster |
Deletes a single VM Cluster. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListEntitlements |
Lists the entitlements in a given project. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListDbServers |
Lists the database servers of an Exadata Infrastructure instance. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListDbNodes |
Lists the database nodes of a VM Cluster. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListGiVersions |
Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListDbSystemShapes |
Lists the database system shapes available for the project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAutonomousDatabases |
Lists the Autonomous Databases in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAutonomousDatabase |
Gets the details of a single Autonomous Database. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateAutonomousDatabase |
Creates a new Autonomous Database in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteAutonomousDatabase |
Deletes a single Autonomous Database. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
RestoreAutonomousDatabase |
Restores a single Autonomous Database. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GenerateAutonomousDatabaseWallet |
Generates a wallet for an Autonomous Database. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAutonomousDbVersions |
Lists all the available Autonomous Database versions for a project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAutonomousDatabaseCharacterSets |
Lists Autonomous Database Character Sets in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAutonomousDatabaseBackups |
Lists the long-term and automatic backups of an Autonomous Database. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
StopAutonomousDatabase |
Stops an Autonomous Database. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
StartAutonomousDatabase |
Starts an Autonomous Database. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
RestartAutonomousDatabase |
Restarts an Autonomous Database. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteOdbNetwork |
Deletes a single ODB Network. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteOdbSubnet |
Deletes a single ODB Subnet. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteDbSystem |
Deletes a single DbSystem. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLocations |
Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of OracleDatabaseSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOracleDatabaseClient(OracleDatabaseSettings settings) Constructs an instance of OracleDatabaseClient, using the given settings.protected -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final OracleDatabaseClientcreate()Constructs an instance of OracleDatabaseClient with default settings.static final OracleDatabaseClientcreate(OracleDatabaseSettings settings) Constructs an instance of OracleDatabaseClient, using the given settings.static final OracleDatabaseClientcreate(OracleDatabaseStub stub) Constructs an instance of OracleDatabaseClient, using the given stub for making calls.Creates a new Autonomous Database in a given project and location.createAutonomousDatabaseAsync(LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) Creates a new Autonomous Database in a given project and location.createAutonomousDatabaseAsync(String parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) Creates a new Autonomous Database in a given project and location.Creates a new Autonomous Database in a given project and location.Creates a new Autonomous Database in a given project and location.Creates a new Exadata Infrastructure in a given project and location.createCloudExadataInfrastructureAsync(LocationName parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId) Creates a new Exadata Infrastructure in a given project and location.createCloudExadataInfrastructureAsync(String parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId) Creates a new Exadata Infrastructure in a given project and location.Creates a new Exadata Infrastructure in a given project and location.final OperationCallable<CreateCloudExadataInfrastructureRequest,CloudExadataInfrastructure, OperationMetadata> Creates a new Exadata Infrastructure in a given project and location.Creates a new VM Cluster in a given project and location.createCloudVmClusterAsync(LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) Creates a new VM Cluster in a given project and location.createCloudVmClusterAsync(String parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) Creates a new VM Cluster in a given project and location.Creates a new VM Cluster in a given project and location.Creates a new VM Cluster in a given project and location.createDbSystemAsync(CreateDbSystemRequest request) Creates a new DbSystem in a given project and location.createDbSystemAsync(LocationName parent, DbSystem dbSystem, String dbSystemId) Creates a new DbSystem in a given project and location.createDbSystemAsync(String parent, DbSystem dbSystem, String dbSystemId) Creates a new DbSystem in a given project and location.Creates a new DbSystem in a given project and location.Creates a new DbSystem in a given project and location.Creates a new Exadb (Exascale) VM Cluster resource.createExadbVmClusterAsync(LocationName parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId) Creates a new Exadb (Exascale) VM Cluster resource.createExadbVmClusterAsync(String parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId) Creates a new Exadb (Exascale) VM Cluster resource.Creates a new Exadb (Exascale) VM Cluster resource.Creates a new Exadb (Exascale) VM Cluster resource.Creates a new ExascaleDB Storage Vault resource.createExascaleDbStorageVaultAsync(LocationName parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId) Creates a new ExascaleDB Storage Vault resource.createExascaleDbStorageVaultAsync(String parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId) Creates a new ExascaleDB Storage Vault resource.Creates a new ExascaleDB Storage Vault resource.final OperationCallable<CreateExascaleDbStorageVaultRequest,ExascaleDbStorageVault, OperationMetadata> Creates a new ExascaleDB Storage Vault resource.Creates a new ODB Network in a given project and location.createOdbNetworkAsync(LocationName parent, OdbNetwork odbNetwork, String odbNetworkId) Creates a new ODB Network in a given project and location.createOdbNetworkAsync(String parent, OdbNetwork odbNetwork, String odbNetworkId) Creates a new ODB Network in a given project and location.Creates a new ODB Network in a given project and location.Creates a new ODB Network in a given project and location.Creates a new ODB Subnet in a given ODB Network.createOdbSubnetAsync(OdbNetworkName parent, OdbSubnet odbSubnet, String odbSubnetId) Creates a new ODB Subnet in a given ODB Network.createOdbSubnetAsync(String parent, OdbSubnet odbSubnet, String odbSubnetId) Creates a new ODB Subnet in a given ODB Network.Creates a new ODB Subnet in a given ODB Network.Creates a new ODB Subnet in a given ODB Network.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Autonomous Database.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Autonomous Database.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Autonomous Database.Deletes a single Autonomous Database.final OperationCallable<DeleteAutonomousDatabaseRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single Autonomous Database.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Exadata Infrastructure.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Exadata Infrastructure.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Exadata Infrastructure.Deletes a single Exadata Infrastructure.final OperationCallable<DeleteCloudExadataInfrastructureRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single Exadata Infrastructure.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single VM Cluster.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single VM Cluster.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single VM Cluster.Deletes a single VM Cluster.final OperationCallable<DeleteCloudVmClusterRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single VM Cluster.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single DbSystem.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDbSystemAsync(DeleteDbSystemRequest request) Deletes a single DbSystem.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDbSystemAsync(String name) Deletes a single DbSystem.Deletes a single DbSystem.final OperationCallable<DeleteDbSystemRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single DbSystem.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Exadb (Exascale) VM Cluster.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Exadb (Exascale) VM Cluster.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Exadb (Exascale) VM Cluster.Deletes a single Exadb (Exascale) VM Cluster.final OperationCallable<DeleteExadbVmClusterRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single Exadb (Exascale) VM Cluster.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single ExascaleDB Storage Vault.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single ExascaleDB Storage Vault.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single ExascaleDB Storage Vault.Deletes a single ExascaleDB Storage Vault.final OperationCallable<DeleteExascaleDbStorageVaultRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single ExascaleDB Storage Vault.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single ODB Network.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single ODB Network.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOdbNetworkAsync(String name) Deletes a single ODB Network.Deletes a single ODB Network.final OperationCallable<DeleteOdbNetworkRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single ODB Network.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single ODB Subnet.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single ODB Subnet.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOdbSubnetAsync(String name) Deletes a single ODB Subnet.Deletes a single ODB Subnet.final OperationCallable<DeleteOdbSubnetRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single ODB Subnet.failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase) Initiates a failover to target autonomous database from the associated primary database.failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase) Initiates a failover to target autonomous database from the associated primary database.Initiates a failover to target autonomous database from the associated primary database.failoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase) Initiates a failover to target autonomous database from the associated primary database.failoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase) Initiates a failover to target autonomous database from the associated primary database.Initiates a failover to target autonomous database from the associated primary database.Initiates a failover to target autonomous database from the associated primary database.generateAutonomousDatabaseWallet(AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password) Generates a wallet for an Autonomous Database.Generates a wallet for an Autonomous Database.generateAutonomousDatabaseWallet(String name, GenerateType type, boolean isRegional, String password) Generates a wallet for an Autonomous Database.final UnaryCallable<GenerateAutonomousDatabaseWalletRequest,GenerateAutonomousDatabaseWalletResponse> Generates a wallet for an Autonomous Database.final AutonomousDatabaseGets the details of a single Autonomous Database.final AutonomousDatabaseGets the details of a single Autonomous Database.final AutonomousDatabasegetAutonomousDatabase(String name) Gets the details of a single Autonomous Database.Gets the details of a single Autonomous Database.Gets details of a single Exadata Infrastructure.Gets details of a single Exadata Infrastructure.Gets details of a single Exadata Infrastructure.Gets details of a single Exadata Infrastructure.final CloudVmClusterGets details of a single VM Cluster.final CloudVmClusterGets details of a single VM Cluster.final CloudVmClustergetCloudVmCluster(String name) Gets details of a single VM Cluster.Gets details of a single VM Cluster.final DatabasegetDatabase(DatabaseName name) Gets details of a single Database.final DatabasegetDatabase(GetDatabaseRequest request) Gets details of a single Database.final DatabasegetDatabase(String name) Gets details of a single Database.Gets details of a single Database.final DbSystemgetDbSystem(DbSystemName name) Gets details of a single DbSystem.final DbSystemgetDbSystem(GetDbSystemRequest request) Gets details of a single DbSystem.final DbSystemgetDbSystem(String name) Gets details of a single DbSystem.Gets details of a single DbSystem.final ExadbVmClusterGets details of a single Exadb (Exascale) VM Cluster.final ExadbVmClusterGets details of a single Exadb (Exascale) VM Cluster.final ExadbVmClustergetExadbVmCluster(String name) Gets details of a single Exadb (Exascale) VM Cluster.Gets details of a single Exadb (Exascale) VM Cluster.final ExascaleDbStorageVaultGets details of a single ExascaleDB Storage Vault.final ExascaleDbStorageVaultGets details of a single ExascaleDB Storage Vault.final ExascaleDbStorageVaultGets details of a single ExascaleDB Storage Vault.Gets details of a single ExascaleDB Storage Vault.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final LocationgetLocation(GetLocationRequest request) Gets information about a location.Gets information about a location.final OdbNetworkgetOdbNetwork(GetOdbNetworkRequest request) Gets details of a single ODB Network.final OdbNetworkgetOdbNetwork(OdbNetworkName name) Gets details of a single ODB Network.final OdbNetworkgetOdbNetwork(String name) Gets details of a single ODB Network.Gets details of a single ODB Network.final OdbSubnetgetOdbSubnet(GetOdbSubnetRequest request) Gets details of a single ODB Subnet.final OdbSubnetgetOdbSubnet(OdbSubnetName name) Gets details of a single ODB Subnet.final OdbSubnetgetOdbSubnet(String name) Gets details of a single ODB Subnet.Gets details of a single ODB Subnet.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final PluggableDatabaseGets details of a single PluggableDatabase.final PluggableDatabaseGets details of a single PluggableDatabase.final PluggableDatabasegetPluggableDatabase(String name) Gets details of a single PluggableDatabase.Gets details of a single PluggableDatabase.final OracleDatabaseSettingsgetStub()booleanbooleanLists the long-term and automatic backups of an Autonomous Database.Lists the long-term and automatic backups of an Autonomous Database.listAutonomousDatabaseBackups(String parent) Lists the long-term and automatic backups of an Autonomous Database.Lists the long-term and automatic backups of an Autonomous Database.final UnaryCallable<ListAutonomousDatabaseBackupsRequest,OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse> Lists the long-term and automatic backups of an Autonomous Database.Lists Autonomous Database Character Sets in a given project and location.Lists Autonomous Database Character Sets in a given project and location.Lists Autonomous Database Character Sets in a given project and location.final UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,ListAutonomousDatabaseCharacterSetsResponse> Lists Autonomous Database Character Sets in a given project and location.final UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse> Lists Autonomous Database Character Sets in a given project and location.Lists the Autonomous Databases in a given project and location.listAutonomousDatabases(LocationName parent) Lists the Autonomous Databases in a given project and location.listAutonomousDatabases(String parent) Lists the Autonomous Databases in a given project and location.Lists the Autonomous Databases in a given project and location.final UnaryCallable<ListAutonomousDatabasesRequest,OracleDatabaseClient.ListAutonomousDatabasesPagedResponse> Lists the Autonomous Databases in a given project and location.Lists all the available Autonomous Database versions for a project and location.listAutonomousDbVersions(LocationName parent) Lists all the available Autonomous Database versions for a project and location.listAutonomousDbVersions(String parent) Lists all the available Autonomous Database versions for a project and location.Lists all the available Autonomous Database versions for a project and location.final UnaryCallable<ListAutonomousDbVersionsRequest,OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse> Lists all the available Autonomous Database versions for a project and location.Lists Exadata Infrastructures in a given project and location.Lists Exadata Infrastructures in a given project and location.Lists Exadata Infrastructures in a given project and location.Lists Exadata Infrastructures in a given project and location.final UnaryCallable<ListCloudExadataInfrastructuresRequest,OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse> Lists Exadata Infrastructures in a given project and location.Lists the VM Clusters in a given project and location.listCloudVmClusters(LocationName parent) Lists the VM Clusters in a given project and location.listCloudVmClusters(String parent) Lists the VM Clusters in a given project and location.Lists the VM Clusters in a given project and location.final UnaryCallable<ListCloudVmClustersRequest,OracleDatabaseClient.ListCloudVmClustersPagedResponse> Lists the VM Clusters in a given project and location.List DatabaseCharacterSets for the given project and location.List DatabaseCharacterSets for the given project and location.listDatabaseCharacterSets(String parent) List DatabaseCharacterSets for the given project and location.List DatabaseCharacterSets for the given project and location.final UnaryCallable<ListDatabaseCharacterSetsRequest,OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse> List DatabaseCharacterSets for the given project and location.listDatabases(ListDatabasesRequest request) Lists all the Databases for the given project, location and DbSystem.listDatabases(LocationName parent) Lists all the Databases for the given project, location and DbSystem.listDatabases(String parent) Lists all the Databases for the given project, location and DbSystem.Lists all the Databases for the given project, location and DbSystem.Lists all the Databases for the given project, location and DbSystem.listDbNodes(CloudVmClusterName parent) Lists the database nodes of a VM Cluster.listDbNodes(ExadbVmClusterName parent) Lists the database nodes of a VM Cluster.listDbNodes(ListDbNodesRequest request) Lists the database nodes of a VM Cluster.listDbNodes(String parent) Lists the database nodes of a VM Cluster.Lists the database nodes of a VM Cluster.Lists the database nodes of a VM Cluster.Lists the database servers of an Exadata Infrastructure instance.listDbServers(ListDbServersRequest request) Lists the database servers of an Exadata Infrastructure instance.listDbServers(String parent) Lists the database servers of an Exadata Infrastructure instance.Lists the database servers of an Exadata Infrastructure instance.Lists the database servers of an Exadata Infrastructure instance.Lists all the DbSystemInitialStorageSizes for the given project and location.Lists all the DbSystemInitialStorageSizes for the given project and location.Lists all the DbSystemInitialStorageSizes for the given project and location.Lists all the DbSystemInitialStorageSizes for the given project and location.final UnaryCallable<ListDbSystemInitialStorageSizesRequest,OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse> Lists all the DbSystemInitialStorageSizes for the given project and location.listDbSystems(ListDbSystemsRequest request) Lists all the DbSystems for the given project and location.listDbSystems(LocationName parent) Lists all the DbSystems for the given project and location.listDbSystems(String parent) Lists all the DbSystems for the given project and location.Lists all the DbSystems for the given project and location.Lists the database system shapes available for the project and location.listDbSystemShapes(LocationName parent) Lists the database system shapes available for the project and location.listDbSystemShapes(String parent) Lists the database system shapes available for the project and location.Lists the database system shapes available for the project and location.Lists the database system shapes available for the project and location.Lists all the DbSystems for the given project and location.listDbVersions(ListDbVersionsRequest request) List DbVersions for the given project and location.listDbVersions(LocationName parent) List DbVersions for the given project and location.listDbVersions(String parent) List DbVersions for the given project and location.List DbVersions for the given project and location.List DbVersions for the given project and location.listEntitlements(ListEntitlementsRequest request) Lists the entitlements in a given project.listEntitlements(LocationName parent) Lists the entitlements in a given project.listEntitlements(String parent) Lists the entitlements in a given project.Lists the entitlements in a given project.Lists the entitlements in a given project.Lists all the Exadb (Exascale) VM Clusters for the given project and location.listExadbVmClusters(LocationName parent) Lists all the Exadb (Exascale) VM Clusters for the given project and location.listExadbVmClusters(String parent) Lists all the Exadb (Exascale) VM Clusters for the given project and location.Lists all the Exadb (Exascale) VM Clusters for the given project and location.final UnaryCallable<ListExadbVmClustersRequest,OracleDatabaseClient.ListExadbVmClustersPagedResponse> Lists all the Exadb (Exascale) VM Clusters for the given project and location.Lists all the ExascaleDB Storage Vaults for the given project and location.Lists all the ExascaleDB Storage Vaults for the given project and location.listExascaleDbStorageVaults(String parent) Lists all the ExascaleDB Storage Vaults for the given project and location.Lists all the ExascaleDB Storage Vaults for the given project and location.final UnaryCallable<ListExascaleDbStorageVaultsRequest,OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse> Lists all the ExascaleDB Storage Vaults for the given project and location.listGiVersions(ListGiVersionsRequest request) Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.listGiVersions(LocationName parent) Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.listGiVersions(String parent) Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.listLocations(ListLocationsRequest request) Lists information about the supported locations for this service.Lists information about the supported locations for this service.Lists information about the supported locations for this service.listMinorVersions(GiVersionName parent) Lists all the valid minor versions for the given project, location, gi version and shape family.Lists all the valid minor versions for the given project, location, gi version and shape family.listMinorVersions(String parent) Lists all the valid minor versions for the given project, location, gi version and shape family.Lists all the valid minor versions for the given project, location, gi version and shape family.Lists all the valid minor versions for the given project, location, gi version and shape family.listOdbNetworks(ListOdbNetworksRequest request) Lists the ODB Networks in a given project and location.listOdbNetworks(LocationName parent) Lists the ODB Networks in a given project and location.listOdbNetworks(String parent) Lists the ODB Networks in a given project and location.Lists the ODB Networks in a given project and location.Lists the ODB Networks in a given project and location.listOdbSubnets(ListOdbSubnetsRequest request) Lists all the ODB Subnets in a given ODB Network.listOdbSubnets(OdbNetworkName parent) Lists all the ODB Subnets in a given ODB Network.listOdbSubnets(String parent) Lists all the ODB Subnets in a given ODB Network.Lists all the ODB Subnets in a given ODB Network.Lists all the ODB Subnets in a given ODB Network.Lists all the PluggableDatabases for the given project, location and Container Database.listPluggableDatabases(LocationName parent) Lists all the PluggableDatabases for the given project, location and Container Database.listPluggableDatabases(String parent) Lists all the PluggableDatabases for the given project, location and Container Database.Lists all the PluggableDatabases for the given project, location and Container Database.final UnaryCallable<ListPluggableDatabasesRequest,OracleDatabaseClient.ListPluggableDatabasesPagedResponse> Lists all the PluggableDatabases for the given project, location and Container Database.removeVirtualMachineExadbVmClusterAsync(ExadbVmClusterName name, List<String> hostnames) Removes virtual machines from an existing exadb vm cluster.Removes virtual machines from an existing exadb vm cluster.removeVirtualMachineExadbVmClusterAsync(String name, List<String> hostnames) Removes virtual machines from an existing exadb vm cluster.Removes virtual machines from an existing exadb vm cluster.Removes virtual machines from an existing exadb vm cluster.Restarts an Autonomous Database.Restarts an Autonomous Database.Restarts an Autonomous Database.Restarts an Autonomous Database.Restarts an Autonomous Database.restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, com.google.protobuf.Timestamp restoreTime) Restores a single Autonomous Database.Restores a single Autonomous Database.restoreAutonomousDatabaseAsync(String name, com.google.protobuf.Timestamp restoreTime) Restores a single Autonomous Database.Restores a single Autonomous Database.Restores a single Autonomous Database.voidshutdown()voidStarts an Autonomous Database.Starts an Autonomous Database.Starts an Autonomous Database.Starts an Autonomous Database.Starts an Autonomous Database.Stops an Autonomous Database.Stops an Autonomous Database.Stops an Autonomous Database.Stops an Autonomous Database.Stops an Autonomous Database.switchoverAutonomousDatabaseAsync(AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase) Initiates a switchover of specified autonomous database to the associated peer database.switchoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase) Initiates a switchover of specified autonomous database to the associated peer database.Initiates a switchover of specified autonomous database to the associated peer database.switchoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase) Initiates a switchover of specified autonomous database to the associated peer database.switchoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase) Initiates a switchover of specified autonomous database to the associated peer database.Initiates a switchover of specified autonomous database to the associated peer database.Initiates a switchover of specified autonomous database to the associated peer database.updateAutonomousDatabaseAsync(AutonomousDatabase autonomousDatabase, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Autonomous Database.Updates the parameters of a single Autonomous Database.Updates the parameters of a single Autonomous Database.Updates the parameters of a single Autonomous Database.updateExadbVmClusterAsync(ExadbVmCluster exadbVmCluster, com.google.protobuf.FieldMask updateMask) Updates a single Exadb (Exascale) VM Cluster.Updates a single Exadb (Exascale) VM Cluster.Updates a single Exadb (Exascale) VM Cluster.Updates a single Exadb (Exascale) VM Cluster.
-
Constructor Details
-
OracleDatabaseClient
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
-
-
Method Details
-
create
Constructs an instance of OracleDatabaseClient with default settings.- Throws:
IOException
-
create
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
Constructs an instance of OracleDatabaseClient, using the given stub for making calls. This is for advanced usage - prefer using create(OracleDatabaseSettings). -
getSettings
-
getStub
-
getOperationsClient
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
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
public final OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest request) Lists Exadata Infrastructures in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListCloudExadataInfrastructuresRequest request = ListCloudExadataInfrastructuresRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .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
public final UnaryCallable<ListCloudExadataInfrastructuresRequest,OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse> listCloudExadataInfrastructuresPagedCallable()Lists Exadata Infrastructures in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListCloudExadataInfrastructuresRequest request = ListCloudExadataInfrastructuresRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .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
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, createCloudExadataInfrastructureOperationCallable()OperationMetadata> 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, deleteCloudExadataInfrastructureOperationCallable()OperationMetadata> 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
public final OracleDatabaseClient.ListCloudVmClustersPagedResponse listCloudVmClusters(ListCloudVmClustersRequest request) Lists the VM Clusters in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListCloudVmClustersRequest request = ListCloudVmClustersRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .build(); for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listCloudVmClustersPagedCallable
public final UnaryCallable<ListCloudVmClustersRequest,OracleDatabaseClient.ListCloudVmClustersPagedResponse> listCloudVmClustersPagedCallable()Lists the VM Clusters in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListCloudVmClustersRequest request = ListCloudVmClustersRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .build(); ApiFuture<CloudVmCluster> future = oracleDatabaseClient.listCloudVmClustersPagedCallable().futureCall(request); // Do something. for (CloudVmCluster element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
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
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
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
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 createdcloudVmClusterId- 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 createdcloudVmClusterId- 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, createCloudVmClusterOperationCallable()OperationMetadata> 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
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, deleteCloudVmClusterOperationCallable()OperationMetadata> 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
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
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
public final OracleDatabaseClient.ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequest request) Lists the entitlements in a given project.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListEntitlementsRequest request = ListEntitlementsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (Entitlement element : oracleDatabaseClient.listEntitlements(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listEntitlementsPagedCallable
public final UnaryCallable<ListEntitlementsRequest,OracleDatabaseClient.ListEntitlementsPagedResponse> listEntitlementsPagedCallable()Lists the entitlements in a given project.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListEntitlementsRequest request = ListEntitlementsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<Entitlement> future = oracleDatabaseClient.listEntitlementsPagedCallable().futureCall(request); // Do something. for (Entitlement element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
public final OracleDatabaseClient.ListDbServersPagedResponse listDbServers(CloudExadataInfrastructureName parent) Lists the database servers of an Exadata Infrastructure instance.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { CloudExadataInfrastructureName parent = CloudExadataInfrastructureName.of( "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) { // doThingsWith(element); } }- 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()) { 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
public final OracleDatabaseClient.ListDbServersPagedResponse listDbServers(ListDbServersRequest request) Lists the database servers of an Exadata Infrastructure instance.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListDbServersRequest request = ListDbServersRequest.newBuilder() .setParent( CloudExadataInfrastructureName.of( "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (DbServer element : oracleDatabaseClient.listDbServers(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listDbServersPagedCallable
public final UnaryCallable<ListDbServersRequest,OracleDatabaseClient.ListDbServersPagedResponse> listDbServersPagedCallable()Lists the database servers of an Exadata Infrastructure instance.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListDbServersRequest request = ListDbServersRequest.newBuilder() .setParent( CloudExadataInfrastructureName.of( "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<DbServer> future = oracleDatabaseClient.listDbServersPagedCallable().futureCall(request); // Do something. for (DbServer element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
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
public final UnaryCallable<ListDbNodesRequest,OracleDatabaseClient.ListDbNodesPagedResponse> listDbNodesPagedCallable()Lists the database nodes of a VM Cluster.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListDbNodesRequest request = ListDbNodesRequest.newBuilder() .setParent( CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<DbNode> future = oracleDatabaseClient.listDbNodesPagedCallable().futureCall(request); // Do something. for (DbNode element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
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
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
public final OracleDatabaseClient.ListGiVersionsPagedResponse listGiVersions(ListGiVersionsRequest request) Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListGiVersionsRequest request = ListGiVersionsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .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
public final UnaryCallable<ListGiVersionsRequest,OracleDatabaseClient.ListGiVersionsPagedResponse> listGiVersionsPagedCallable()Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListGiVersionsRequest request = ListGiVersionsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .build(); ApiFuture<GiVersion> future = oracleDatabaseClient.listGiVersionsPagedCallable().futureCall(request); // Do something. for (GiVersion element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
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
public final OracleDatabaseClient.ListMinorVersionsPagedResponse listMinorVersions(ListMinorVersionsRequest request) 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
public final UnaryCallable<ListMinorVersionsRequest,OracleDatabaseClient.ListMinorVersionsPagedResponse> 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
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
public final OracleDatabaseClient.ListDbSystemShapesPagedResponse listDbSystemShapes(ListDbSystemShapesRequest request) Lists the database system shapes available for the project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListDbSystemShapesRequest request = ListDbSystemShapesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .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
public final UnaryCallable<ListDbSystemShapesRequest,OracleDatabaseClient.ListDbSystemShapesPagedResponse> listDbSystemShapesPagedCallable()Lists the database system shapes available for the project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListDbSystemShapesRequest request = ListDbSystemShapesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .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
public final OracleDatabaseClient.ListAutonomousDatabasesPagedResponse listAutonomousDatabases(ListAutonomousDatabasesRequest request) Lists the Autonomous Databases in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListAutonomousDatabasesRequest request = ListAutonomousDatabasesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (AutonomousDatabase element : oracleDatabaseClient.listAutonomousDatabases(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listAutonomousDatabasesPagedCallable
public final UnaryCallable<ListAutonomousDatabasesRequest,OracleDatabaseClient.ListAutonomousDatabasesPagedResponse> listAutonomousDatabasesPagedCallable()Lists the Autonomous Databases in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListAutonomousDatabasesRequest request = ListAutonomousDatabasesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<AutonomousDatabase> future = oracleDatabaseClient.listAutonomousDatabasesPagedCallable().futureCall(request); // Do something. for (AutonomousDatabase element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
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
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
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, createAutonomousDatabaseOperationCallable()OperationMetadata> 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 updatedupdateMask- 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, updateAutonomousDatabaseOperationCallable()OperationMetadata> 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, deleteAutonomousDatabaseOperationCallable()OperationMetadata> 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, restoreAutonomousDatabaseOperationCallable()OperationMetadata> 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
public final UnaryCallable<GenerateAutonomousDatabaseWalletRequest,GenerateAutonomousDatabaseWalletResponse> generateAutonomousDatabaseWalletCallable()Generates a wallet for an Autonomous Database.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { GenerateAutonomousDatabaseWalletRequest request = GenerateAutonomousDatabaseWalletRequest.newBuilder() .setName( AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") .toString()) .setType(GenerateType.forNumber(0)) .setIsRegional(true) .setPassword("password1216985755") .build(); ApiFuture<GenerateAutonomousDatabaseWalletResponse> future = oracleDatabaseClient.generateAutonomousDatabaseWalletCallable().futureCall(request); // Do something. GenerateAutonomousDatabaseWalletResponse response = future.get(); } -
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
public final OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(ListAutonomousDbVersionsRequest request) Lists all the available Autonomous Database versions for a project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListAutonomousDbVersionsRequest request = ListAutonomousDbVersionsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (AutonomousDbVersion element : oracleDatabaseClient.listAutonomousDbVersions(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listAutonomousDbVersionsPagedCallable
public final UnaryCallable<ListAutonomousDbVersionsRequest,OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse> listAutonomousDbVersionsPagedCallable()Lists all the available Autonomous Database versions for a project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListAutonomousDbVersionsRequest request = ListAutonomousDbVersionsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<AutonomousDbVersion> future = oracleDatabaseClient.listAutonomousDbVersionsPagedCallable().futureCall(request); // Do something. for (AutonomousDbVersion element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
public final OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets(ListAutonomousDatabaseCharacterSetsRequest request) Lists Autonomous Database Character Sets in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListAutonomousDatabaseCharacterSetsRequest request = ListAutonomousDatabaseCharacterSetsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .build(); for (AutonomousDatabaseCharacterSet element : oracleDatabaseClient.listAutonomousDatabaseCharacterSets(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listAutonomousDatabaseCharacterSetsPagedCallable
public final UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse> listAutonomousDatabaseCharacterSetsPagedCallable()Lists Autonomous Database Character Sets in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListAutonomousDatabaseCharacterSetsRequest request = ListAutonomousDatabaseCharacterSetsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .build(); ApiFuture<AutonomousDatabaseCharacterSet> future = oracleDatabaseClient .listAutonomousDatabaseCharacterSetsPagedCallable() .futureCall(request); // Do something. for (AutonomousDatabaseCharacterSet element : future.get().iterateAll()) { // doThingsWith(element); } } -
listAutonomousDatabaseCharacterSetsCallable
public final UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,ListAutonomousDatabaseCharacterSetsResponse> listAutonomousDatabaseCharacterSetsCallable()Lists Autonomous Database Character Sets in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListAutonomousDatabaseCharacterSetsRequest request = ListAutonomousDatabaseCharacterSetsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .build(); while (true) { ListAutonomousDatabaseCharacterSetsResponse response = oracleDatabaseClient.listAutonomousDatabaseCharacterSetsCallable().call(request); for (AutonomousDatabaseCharacterSet element : response.getAutonomousDatabaseCharacterSetsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
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
public final OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups(ListAutonomousDatabaseBackupsRequest request) Lists the long-term and automatic backups of an Autonomous Database.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListAutonomousDatabaseBackupsRequest request = ListAutonomousDatabaseBackupsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (AutonomousDatabaseBackup element : oracleDatabaseClient.listAutonomousDatabaseBackups(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listAutonomousDatabaseBackupsPagedCallable
public final UnaryCallable<ListAutonomousDatabaseBackupsRequest,OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse> listAutonomousDatabaseBackupsPagedCallable()Lists the long-term and automatic backups of an Autonomous Database.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListAutonomousDatabaseBackupsRequest request = ListAutonomousDatabaseBackupsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<AutonomousDatabaseBackup> future = oracleDatabaseClient.listAutonomousDatabaseBackupsPagedCallable().futureCall(request); // Do something. for (AutonomousDatabaseBackup element : future.get().iterateAll()) { // doThingsWith(element); } } -
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, stopAutonomousDatabaseOperationCallable()OperationMetadata> 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, startAutonomousDatabaseOperationCallable()OperationMetadata> 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, restartAutonomousDatabaseOperationCallable()OperationMetadata> 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, switchoverAutonomousDatabaseOperationCallable()OperationMetadata> 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, failoverAutonomousDatabaseOperationCallable()OperationMetadata> 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
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
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
public final OracleDatabaseClient.ListOdbNetworksPagedResponse listOdbNetworks(ListOdbNetworksRequest request) 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
public final UnaryCallable<ListOdbNetworksRequest,OracleDatabaseClient.ListOdbNetworksPagedResponse> 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
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
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
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
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, createOdbNetworkOperationCallable()OperationMetadata> 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
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, deleteOdbNetworkOperationCallable()OperationMetadata> 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
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
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
public final OracleDatabaseClient.ListOdbSubnetsPagedResponse listOdbSubnets(ListOdbSubnetsRequest request) 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
public final UnaryCallable<ListOdbSubnetsRequest,OracleDatabaseClient.ListOdbSubnetsPagedResponse> 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
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
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
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
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
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, createOdbSubnetOperationCallable()OperationMetadata> 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
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, deleteOdbSubnetOperationCallable()OperationMetadata> 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
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
public final OracleDatabaseClient.ListExadbVmClustersPagedResponse listExadbVmClusters(ListExadbVmClustersRequest request) 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
public final UnaryCallable<ListExadbVmClustersRequest,OracleDatabaseClient.ListExadbVmClustersPagedResponse> 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
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
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
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
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, createExadbVmClusterOperationCallable()OperationMetadata> 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
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, deleteExadbVmClusterOperationCallable()OperationMetadata> 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
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, updateExadbVmClusterOperationCallable()OperationMetadata> 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
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, removeVirtualMachineExadbVmClusterOperationCallable()OperationMetadata> 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
public final OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse listExascaleDbStorageVaults(ListExascaleDbStorageVaultsRequest request) 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
public final UnaryCallable<ListExascaleDbStorageVaultsRequest,OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse> 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
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
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, createExascaleDbStorageVaultOperationCallable()OperationMetadata> 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, deleteExascaleDbStorageVaultOperationCallable()OperationMetadata> 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
public final OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse listDbSystemInitialStorageSizes(ListDbSystemInitialStorageSizesRequest request) 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
public final UnaryCallable<ListDbSystemInitialStorageSizesRequest,OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse> 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
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
public final OracleDatabaseClient.ListDatabasesPagedResponse listDatabases(ListDatabasesRequest request) 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
public final UnaryCallable<ListDatabasesRequest,OracleDatabaseClient.ListDatabasesPagedResponse> 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
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
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
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
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
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
public final OracleDatabaseClient.ListPluggableDatabasesPagedResponse listPluggableDatabases(ListPluggableDatabasesRequest request) 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
public final UnaryCallable<ListPluggableDatabasesRequest,OracleDatabaseClient.ListPluggableDatabasesPagedResponse> 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
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
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
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
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
public final OracleDatabaseClient.ListDbSystemsPagedResponse listDbSystems(ListDbSystemsRequest request) 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
public final UnaryCallable<ListDbSystemsRequest,OracleDatabaseClient.ListDbSystemsPagedResponse> 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
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
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
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
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
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, createDbSystemOperationCallable()OperationMetadata> 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
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, deleteDbSystemOperationCallable()OperationMetadata> 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
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
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
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
public final OracleDatabaseClient.ListDbVersionsPagedResponse listDbVersions(ListDbVersionsRequest request) 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
public final UnaryCallable<ListDbVersionsRequest,OracleDatabaseClient.ListDbVersionsPagedResponse> 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
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
public final OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(ListDatabaseCharacterSetsRequest request) 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
public final UnaryCallable<ListDatabaseCharacterSetsRequest,OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse> 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
public final OracleDatabaseClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request) Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (Location element : oracleDatabaseClient.listLocations(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listLocationsPagedCallable
public final UnaryCallable<ListLocationsRequest,OracleDatabaseClient.ListLocationsPagedResponse> listLocationsPagedCallable()Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<Location> future = oracleDatabaseClient.listLocationsPagedCallable().futureCall(request); // Do something. for (Location element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
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
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:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceBackgroundResource
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceBackgroundResource
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceBackgroundResource
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfaceBackgroundResource
-
awaitTermination
- Specified by:
awaitTerminationin interfaceBackgroundResource- Throws:
InterruptedException
-