| GitHub Repository | Product Reference |
Service Description: Service describing handlers for resources
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CloudExadataInfrastructureName name =
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
CloudExadataInfrastructure response =
oracleDatabaseClient.getCloudExadataInfrastructure(name);
}
Note: close() needs to be called on the OracleDatabaseClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
Static Methods
create()
public static final OracleDatabaseClient create()Constructs an instance of OracleDatabaseClient with default settings.
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(OracleDatabaseSettings settings)
public static final OracleDatabaseClient create(OracleDatabaseSettings settings)Constructs an instance of OracleDatabaseClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
| Parameter | |
|---|---|
| Name | Description |
settings |
OracleDatabaseSettings |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(OracleDatabaseStub stub)
public static final OracleDatabaseClient create(OracleDatabaseStub stub)Constructs an instance of OracleDatabaseClient, using the given stub for making calls. This is for advanced usage - prefer using create(OracleDatabaseSettings).
| Parameter | |
|---|---|
| Name | Description |
stub |
OracleDatabaseStub |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient |
|
Constructors
OracleDatabaseClient(OracleDatabaseSettings settings)
protected OracleDatabaseClient(OracleDatabaseSettings settings)Constructs an instance of OracleDatabaseClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
| Parameter | |
|---|---|
| Name | Description |
settings |
OracleDatabaseSettings |
OracleDatabaseClient(OracleDatabaseStub stub)
protected OracleDatabaseClient(OracleDatabaseStub stub)| Parameter | |
|---|---|
| Name | Description |
stub |
OracleDatabaseStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)| Parameters | |
|---|---|
| Name | Description |
duration |
long |
unit |
TimeUnit |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
| Exceptions | |
|---|---|
| Type | Description |
InterruptedException |
|
close()
public final void close()createAutonomousDatabaseAsync(CreateAutonomousDatabaseRequest request)
public final OperationFuture<AutonomousDatabase,OperationMetadata> createAutonomousDatabaseAsync(CreateAutonomousDatabaseRequest request)Creates a new Autonomous Database in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateAutonomousDatabaseRequest request =
CreateAutonomousDatabaseRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
.setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
.setRequestId("requestId693933066")
.build();
AutonomousDatabase response =
oracleDatabaseClient.createAutonomousDatabaseAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateAutonomousDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
createAutonomousDatabaseAsync(LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId)
public final OperationFuture<AutonomousDatabase,OperationMetadata> createAutonomousDatabaseAsync(LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId)Creates a new Autonomous Database in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build();
String autonomousDatabaseId = "autonomousDatabaseId-1972693114";
AutonomousDatabase response =
oracleDatabaseClient
.createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The name of the parent in the following format: projects/{project}/locations/{location}. |
autonomousDatabase |
AutonomousDatabaseRequired. The Autonomous Database being created. |
autonomousDatabaseId |
StringRequired. The ID of the Autonomous Database to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
createAutonomousDatabaseAsync(String parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId)
public final OperationFuture<AutonomousDatabase,OperationMetadata> createAutonomousDatabaseAsync(String parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId)Creates a new Autonomous Database in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build();
String autonomousDatabaseId = "autonomousDatabaseId-1972693114";
AutonomousDatabase response =
oracleDatabaseClient
.createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The name of the parent in the following format: projects/{project}/locations/{location}. |
autonomousDatabase |
AutonomousDatabaseRequired. The Autonomous Database being created. |
autonomousDatabaseId |
StringRequired. The ID of the Autonomous Database to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
createAutonomousDatabaseCallable()
public final UnaryCallable<CreateAutonomousDatabaseRequest,Operation> createAutonomousDatabaseCallable()Creates a new Autonomous Database in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateAutonomousDatabaseRequest request =
CreateAutonomousDatabaseRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
.setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.createAutonomousDatabaseCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateAutonomousDatabaseRequest,Operation> |
|
createAutonomousDatabaseOperationCallable()
public final OperationCallable<CreateAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> createAutonomousDatabaseOperationCallable()Creates a new Autonomous Database in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateAutonomousDatabaseRequest request =
CreateAutonomousDatabaseRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
.setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<AutonomousDatabase, OperationMetadata> future =
oracleDatabaseClient.createAutonomousDatabaseOperationCallable().futureCall(request);
// Do something.
AutonomousDatabase response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> |
|
createCloudExadataInfrastructureAsync(CreateCloudExadataInfrastructureRequest request)
public final OperationFuture<CloudExadataInfrastructure,OperationMetadata> createCloudExadataInfrastructureAsync(CreateCloudExadataInfrastructureRequest request)Creates a new Exadata Infrastructure in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateCloudExadataInfrastructureRequest request =
CreateCloudExadataInfrastructureRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
.setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
.setRequestId("requestId693933066")
.build();
CloudExadataInfrastructure response =
oracleDatabaseClient.createCloudExadataInfrastructureAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateCloudExadataInfrastructureRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<CloudExadataInfrastructure,OperationMetadata> |
|
createCloudExadataInfrastructureAsync(LocationName parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId)
public final OperationFuture<CloudExadataInfrastructure,OperationMetadata> createCloudExadataInfrastructureAsync(LocationName parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId)Creates a new Exadata Infrastructure in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
CloudExadataInfrastructure cloudExadataInfrastructure =
CloudExadataInfrastructure.newBuilder().build();
String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409";
CloudExadataInfrastructure response =
oracleDatabaseClient
.createCloudExadataInfrastructureAsync(
parent, cloudExadataInfrastructure, cloudExadataInfrastructureId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}. |
cloudExadataInfrastructure |
CloudExadataInfrastructureRequired. Details of the Exadata Infrastructure instance to create. |
cloudExadataInfrastructureId |
StringRequired. The ID of the Exadata Infrastructure to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<CloudExadataInfrastructure,OperationMetadata> |
|
createCloudExadataInfrastructureAsync(String parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId)
public final OperationFuture<CloudExadataInfrastructure,OperationMetadata> createCloudExadataInfrastructureAsync(String parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId)Creates a new Exadata Infrastructure in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
CloudExadataInfrastructure cloudExadataInfrastructure =
CloudExadataInfrastructure.newBuilder().build();
String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409";
CloudExadataInfrastructure response =
oracleDatabaseClient
.createCloudExadataInfrastructureAsync(
parent, cloudExadataInfrastructure, cloudExadataInfrastructureId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}. |
cloudExadataInfrastructure |
CloudExadataInfrastructureRequired. Details of the Exadata Infrastructure instance to create. |
cloudExadataInfrastructureId |
StringRequired. The ID of the Exadata Infrastructure to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<CloudExadataInfrastructure,OperationMetadata> |
|
createCloudExadataInfrastructureCallable()
public final UnaryCallable<CreateCloudExadataInfrastructureRequest,Operation> createCloudExadataInfrastructureCallable()Creates a new Exadata Infrastructure in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateCloudExadataInfrastructureRequest request =
CreateCloudExadataInfrastructureRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
.setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.createCloudExadataInfrastructureCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateCloudExadataInfrastructureRequest,Operation> |
|
createCloudExadataInfrastructureOperationCallable()
public final OperationCallable<CreateCloudExadataInfrastructureRequest,CloudExadataInfrastructure,OperationMetadata> createCloudExadataInfrastructureOperationCallable()Creates a new Exadata Infrastructure in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateCloudExadataInfrastructureRequest request =
CreateCloudExadataInfrastructureRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
.setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<CloudExadataInfrastructure, OperationMetadata> future =
oracleDatabaseClient
.createCloudExadataInfrastructureOperationCallable()
.futureCall(request);
// Do something.
CloudExadataInfrastructure response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateCloudExadataInfrastructureRequest,CloudExadataInfrastructure,OperationMetadata> |
|
createCloudVmClusterAsync(CreateCloudVmClusterRequest request)
public final OperationFuture<CloudVmCluster,OperationMetadata> createCloudVmClusterAsync(CreateCloudVmClusterRequest request)Creates a new VM Cluster in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateCloudVmClusterRequest request =
CreateCloudVmClusterRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCloudVmClusterId("cloudVmClusterId-1217103287")
.setCloudVmCluster(CloudVmCluster.newBuilder().build())
.setRequestId("requestId693933066")
.build();
CloudVmCluster response = oracleDatabaseClient.createCloudVmClusterAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateCloudVmClusterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<CloudVmCluster,OperationMetadata> |
|
createCloudVmClusterAsync(LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId)
public final OperationFuture<CloudVmCluster,OperationMetadata> createCloudVmClusterAsync(LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId)Creates a new VM Cluster in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build();
String cloudVmClusterId = "cloudVmClusterId-1217103287";
CloudVmCluster response =
oracleDatabaseClient
.createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The name of the parent in the following format: projects/{project}/locations/{location}. |
cloudVmCluster |
CloudVmClusterRequired. The resource being created |
cloudVmClusterId |
StringRequired. The ID of the VM Cluster to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<CloudVmCluster,OperationMetadata> |
|
createCloudVmClusterAsync(String parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId)
public final OperationFuture<CloudVmCluster,OperationMetadata> createCloudVmClusterAsync(String parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId)Creates a new VM Cluster in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build();
String cloudVmClusterId = "cloudVmClusterId-1217103287";
CloudVmCluster response =
oracleDatabaseClient
.createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The name of the parent in the following format: projects/{project}/locations/{location}. |
cloudVmCluster |
CloudVmClusterRequired. The resource being created |
cloudVmClusterId |
StringRequired. The ID of the VM Cluster to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<CloudVmCluster,OperationMetadata> |
|
createCloudVmClusterCallable()
public final UnaryCallable<CreateCloudVmClusterRequest,Operation> createCloudVmClusterCallable()Creates a new VM Cluster in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateCloudVmClusterRequest request =
CreateCloudVmClusterRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCloudVmClusterId("cloudVmClusterId-1217103287")
.setCloudVmCluster(CloudVmCluster.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.createCloudVmClusterCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateCloudVmClusterRequest,Operation> |
|
createCloudVmClusterOperationCallable()
public final OperationCallable<CreateCloudVmClusterRequest,CloudVmCluster,OperationMetadata> createCloudVmClusterOperationCallable()Creates a new VM Cluster in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateCloudVmClusterRequest request =
CreateCloudVmClusterRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCloudVmClusterId("cloudVmClusterId-1217103287")
.setCloudVmCluster(CloudVmCluster.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<CloudVmCluster, OperationMetadata> future =
oracleDatabaseClient.createCloudVmClusterOperationCallable().futureCall(request);
// Do something.
CloudVmCluster response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateCloudVmClusterRequest,CloudVmCluster,OperationMetadata> |
|
createDbSystemAsync(CreateDbSystemRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateDbSystemRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<DbSystem,OperationMetadata> |
|
createDbSystemAsync(LocationName parent, DbSystem dbSystem, String dbSystemId)
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 | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The value for parent of the DbSystem in the following format: projects/{project}/locations/{location}. |
dbSystem |
DbSystemRequired. The resource being created. |
dbSystemId |
StringRequired. The ID of the DbSystem to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<DbSystem,OperationMetadata> |
|
createDbSystemAsync(String parent, DbSystem dbSystem, String dbSystemId)
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 | |
|---|---|
| Name | Description |
parent |
StringRequired. The value for parent of the DbSystem in the following format: projects/{project}/locations/{location}. |
dbSystem |
DbSystemRequired. The resource being created. |
dbSystemId |
StringRequired. The ID of the DbSystem to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<DbSystem,OperationMetadata> |
|
createDbSystemCallable()
public final UnaryCallable<CreateDbSystemRequest,Operation> createDbSystemCallable()Creates a new DbSystem in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateDbSystemRequest request =
CreateDbSystemRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setDbSystemId("dbSystemId-1467630008")
.setDbSystem(DbSystem.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.createDbSystemCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateDbSystemRequest,Operation> |
|
createDbSystemOperationCallable()
public final OperationCallable<CreateDbSystemRequest,DbSystem,OperationMetadata> createDbSystemOperationCallable()Creates a new DbSystem in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateDbSystemRequest request =
CreateDbSystemRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setDbSystemId("dbSystemId-1467630008")
.setDbSystem(DbSystem.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<DbSystem, OperationMetadata> future =
oracleDatabaseClient.createDbSystemOperationCallable().futureCall(request);
// Do something.
DbSystem response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateDbSystemRequest,DbSystem,OperationMetadata> |
|
createExadbVmClusterAsync(CreateExadbVmClusterRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateExadbVmClusterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExadbVmCluster,OperationMetadata> |
|
createExadbVmClusterAsync(LocationName parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId)
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 | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The value for parent of the ExadbVmCluster in the following format: projects/{project}/locations/{location}. |
exadbVmCluster |
ExadbVmClusterRequired. The resource being created. |
exadbVmClusterId |
StringRequired. The ID of the ExadbVmCluster to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExadbVmCluster,OperationMetadata> |
|
createExadbVmClusterAsync(String parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId)
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 | |
|---|---|
| Name | Description |
parent |
StringRequired. The value for parent of the ExadbVmCluster in the following format: projects/{project}/locations/{location}. |
exadbVmCluster |
ExadbVmClusterRequired. The resource being created. |
exadbVmClusterId |
StringRequired. The ID of the ExadbVmCluster to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExadbVmCluster,OperationMetadata> |
|
createExadbVmClusterCallable()
public final UnaryCallable<CreateExadbVmClusterRequest,Operation> createExadbVmClusterCallable()Creates a new Exadb (Exascale) VM Cluster resource.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateExadbVmClusterRequest request =
CreateExadbVmClusterRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setExadbVmClusterId("exadbVmClusterId1890152722")
.setExadbVmCluster(ExadbVmCluster.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.createExadbVmClusterCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateExadbVmClusterRequest,Operation> |
|
createExadbVmClusterOperationCallable()
public final OperationCallable<CreateExadbVmClusterRequest,ExadbVmCluster,OperationMetadata> createExadbVmClusterOperationCallable()Creates a new Exadb (Exascale) VM Cluster resource.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateExadbVmClusterRequest request =
CreateExadbVmClusterRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setExadbVmClusterId("exadbVmClusterId1890152722")
.setExadbVmCluster(ExadbVmCluster.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<ExadbVmCluster, OperationMetadata> future =
oracleDatabaseClient.createExadbVmClusterOperationCallable().futureCall(request);
// Do something.
ExadbVmCluster response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateExadbVmClusterRequest,ExadbVmCluster,OperationMetadata> |
|
createExascaleDbStorageVaultAsync(CreateExascaleDbStorageVaultRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateExascaleDbStorageVaultRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExascaleDbStorageVault,OperationMetadata> |
|
createExascaleDbStorageVaultAsync(LocationName parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId)
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 | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The value for parent of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}. |
exascaleDbStorageVault |
ExascaleDbStorageVaultRequired. The resource being created. |
exascaleDbStorageVaultId |
StringRequired. The ID of the ExascaleDbStorageVault to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExascaleDbStorageVault,OperationMetadata> |
|
createExascaleDbStorageVaultAsync(String parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId)
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 | |
|---|---|
| Name | Description |
parent |
StringRequired. The value for parent of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}. |
exascaleDbStorageVault |
ExascaleDbStorageVaultRequired. The resource being created. |
exascaleDbStorageVaultId |
StringRequired. The ID of the ExascaleDbStorageVault to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExascaleDbStorageVault,OperationMetadata> |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateExascaleDbStorageVaultRequest,Operation> |
|
createExascaleDbStorageVaultOperationCallable()
public final OperationCallable<CreateExascaleDbStorageVaultRequest,ExascaleDbStorageVault,OperationMetadata> createExascaleDbStorageVaultOperationCallable()Creates a new ExascaleDB Storage Vault resource.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateExascaleDbStorageVaultRequest request =
CreateExascaleDbStorageVaultRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setExascaleDbStorageVaultId("exascaleDbStorageVaultId-24370132")
.setExascaleDbStorageVault(ExascaleDbStorageVault.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<ExascaleDbStorageVault, OperationMetadata> future =
oracleDatabaseClient.createExascaleDbStorageVaultOperationCallable().futureCall(request);
// Do something.
ExascaleDbStorageVault response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateExascaleDbStorageVaultRequest,ExascaleDbStorageVault,OperationMetadata> |
|
createOdbNetworkAsync(CreateOdbNetworkRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateOdbNetworkRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<OdbNetwork,OperationMetadata> |
|
createOdbNetworkAsync(LocationName parent, OdbNetwork odbNetwork, String odbNetworkId)
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 | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for the OdbNetwork in the following format: projects/{project}/locations/{location}. |
odbNetwork |
OdbNetworkRequired. Details of the OdbNetwork instance to create. |
odbNetworkId |
StringRequired. The ID of the OdbNetwork to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<OdbNetwork,OperationMetadata> |
|
createOdbNetworkAsync(String parent, OdbNetwork odbNetwork, String odbNetworkId)
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 | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the OdbNetwork in the following format: projects/{project}/locations/{location}. |
odbNetwork |
OdbNetworkRequired. Details of the OdbNetwork instance to create. |
odbNetworkId |
StringRequired. The ID of the OdbNetwork to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<OdbNetwork,OperationMetadata> |
|
createOdbNetworkCallable()
public final UnaryCallable<CreateOdbNetworkRequest,Operation> createOdbNetworkCallable()Creates a new ODB Network in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateOdbNetworkRequest request =
CreateOdbNetworkRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setOdbNetworkId("odbNetworkId-169900740")
.setOdbNetwork(OdbNetwork.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.createOdbNetworkCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateOdbNetworkRequest,Operation> |
|
createOdbNetworkOperationCallable()
public final OperationCallable<CreateOdbNetworkRequest,OdbNetwork,OperationMetadata> createOdbNetworkOperationCallable()Creates a new ODB Network in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateOdbNetworkRequest request =
CreateOdbNetworkRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setOdbNetworkId("odbNetworkId-169900740")
.setOdbNetwork(OdbNetwork.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<OdbNetwork, OperationMetadata> future =
oracleDatabaseClient.createOdbNetworkOperationCallable().futureCall(request);
// Do something.
OdbNetwork response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateOdbNetworkRequest,OdbNetwork,OperationMetadata> |
|
createOdbSubnetAsync(CreateOdbSubnetRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateOdbSubnetRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<OdbSubnet,OperationMetadata> |
|
createOdbSubnetAsync(OdbNetworkName parent, OdbSubnet odbSubnet, String odbSubnetId)
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 | |
|---|---|
| Name | Description |
parent |
OdbNetworkNameRequired. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. |
odbSubnet |
OdbSubnetRequired. Details of the OdbSubnet instance to create. |
odbSubnetId |
StringRequired. The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<OdbSubnet,OperationMetadata> |
|
createOdbSubnetAsync(String parent, OdbSubnet odbSubnet, String odbSubnetId)
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 | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. |
odbSubnet |
OdbSubnetRequired. Details of the OdbSubnet instance to create. |
odbSubnetId |
StringRequired. The ID of the OdbSubnet to create. This value is restricted to (^a-z?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<OdbSubnet,OperationMetadata> |
|
createOdbSubnetCallable()
public final UnaryCallable<CreateOdbSubnetRequest,Operation> createOdbSubnetCallable()Creates a new ODB Subnet in a given ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateOdbSubnetRequest request =
CreateOdbSubnetRequest.newBuilder()
.setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
.setOdbSubnetId("odbSubnetId1186954661")
.setOdbSubnet(OdbSubnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.createOdbSubnetCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateOdbSubnetRequest,Operation> |
|
createOdbSubnetOperationCallable()
public final OperationCallable<CreateOdbSubnetRequest,OdbSubnet,OperationMetadata> createOdbSubnetOperationCallable()Creates a new ODB Subnet in a given ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CreateOdbSubnetRequest request =
CreateOdbSubnetRequest.newBuilder()
.setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
.setOdbSubnetId("odbSubnetId1186954661")
.setOdbSubnet(OdbSubnet.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<OdbSubnet, OperationMetadata> future =
oracleDatabaseClient.createOdbSubnetOperationCallable().futureCall(request);
// Do something.
OdbSubnet response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateOdbSubnetRequest,OdbSubnet,OperationMetadata> |
|
deleteAutonomousDatabaseAsync(AutonomousDatabaseName name)
public final OperationFuture<Empty,OperationMetadata> deleteAutonomousDatabaseAsync(AutonomousDatabaseName name)Deletes a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
AutonomousDatabaseName name =
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
AutonomousDatabaseNameRequired. The name of the resource in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteAutonomousDatabaseAsync(DeleteAutonomousDatabaseRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteAutonomousDatabaseAsync(DeleteAutonomousDatabaseRequest request)Deletes a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteAutonomousDatabaseRequest request =
DeleteAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.setRequestId("requestId693933066")
.build();
oracleDatabaseClient.deleteAutonomousDatabaseAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteAutonomousDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteAutonomousDatabaseAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteAutonomousDatabaseAsync(String name)Deletes a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the resource in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteAutonomousDatabaseCallable()
public final UnaryCallable<DeleteAutonomousDatabaseRequest,Operation> deleteAutonomousDatabaseCallable()Deletes a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteAutonomousDatabaseRequest request =
DeleteAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.deleteAutonomousDatabaseCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteAutonomousDatabaseRequest,Operation> |
|
deleteAutonomousDatabaseOperationCallable()
public final OperationCallable<DeleteAutonomousDatabaseRequest,Empty,OperationMetadata> deleteAutonomousDatabaseOperationCallable()Deletes a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteAutonomousDatabaseRequest request =
DeleteAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
oracleDatabaseClient.deleteAutonomousDatabaseOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteAutonomousDatabaseRequest,Empty,OperationMetadata> |
|
deleteCloudExadataInfrastructureAsync(CloudExadataInfrastructureName name)
public final OperationFuture<Empty,OperationMetadata> deleteCloudExadataInfrastructureAsync(CloudExadataInfrastructureName name)Deletes a single Exadata Infrastructure.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CloudExadataInfrastructureName name =
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
CloudExadataInfrastructureNameRequired. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteCloudExadataInfrastructureAsync(DeleteCloudExadataInfrastructureRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteCloudExadataInfrastructureAsync(DeleteCloudExadataInfrastructureRequest request)Deletes a single Exadata Infrastructure.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteCloudExadataInfrastructureRequest request =
DeleteCloudExadataInfrastructureRequest.newBuilder()
.setName(
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteCloudExadataInfrastructureRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteCloudExadataInfrastructureAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteCloudExadataInfrastructureAsync(String name)Deletes a single Exadata Infrastructure.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString();
oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteCloudExadataInfrastructureCallable()
public final UnaryCallable<DeleteCloudExadataInfrastructureRequest,Operation> deleteCloudExadataInfrastructureCallable()Deletes a single Exadata Infrastructure.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteCloudExadataInfrastructureRequest request =
DeleteCloudExadataInfrastructureRequest.newBuilder()
.setName(
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.deleteCloudExadataInfrastructureCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteCloudExadataInfrastructureRequest,Operation> |
|
deleteCloudExadataInfrastructureOperationCallable()
public final OperationCallable<DeleteCloudExadataInfrastructureRequest,Empty,OperationMetadata> deleteCloudExadataInfrastructureOperationCallable()Deletes a single Exadata Infrastructure.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteCloudExadataInfrastructureRequest request =
DeleteCloudExadataInfrastructureRequest.newBuilder()
.setName(
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
OperationFuture<Empty, OperationMetadata> future =
oracleDatabaseClient
.deleteCloudExadataInfrastructureOperationCallable()
.futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteCloudExadataInfrastructureRequest,Empty,OperationMetadata> |
|
deleteCloudVmClusterAsync(CloudVmClusterName name)
public final OperationFuture<Empty,OperationMetadata> deleteCloudVmClusterAsync(CloudVmClusterName name)Deletes a single VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CloudVmClusterName name =
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
oracleDatabaseClient.deleteCloudVmClusterAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
CloudVmClusterNameRequired. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteCloudVmClusterAsync(DeleteCloudVmClusterRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteCloudVmClusterAsync(DeleteCloudVmClusterRequest request)Deletes a single VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteCloudVmClusterRequest request =
DeleteCloudVmClusterRequest.newBuilder()
.setName(
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
oracleDatabaseClient.deleteCloudVmClusterAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteCloudVmClusterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteCloudVmClusterAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteCloudVmClusterAsync(String name)Deletes a single VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
oracleDatabaseClient.deleteCloudVmClusterAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteCloudVmClusterCallable()
public final UnaryCallable<DeleteCloudVmClusterRequest,Operation> deleteCloudVmClusterCallable()Deletes a single VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteCloudVmClusterRequest request =
DeleteCloudVmClusterRequest.newBuilder()
.setName(
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.deleteCloudVmClusterCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteCloudVmClusterRequest,Operation> |
|
deleteCloudVmClusterOperationCallable()
public final OperationCallable<DeleteCloudVmClusterRequest,Empty,OperationMetadata> deleteCloudVmClusterOperationCallable()Deletes a single VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteCloudVmClusterRequest request =
DeleteCloudVmClusterRequest.newBuilder()
.setName(
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
OperationFuture<Empty, OperationMetadata> future =
oracleDatabaseClient.deleteCloudVmClusterOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteCloudVmClusterRequest,Empty,OperationMetadata> |
|
deleteDbSystemAsync(DbSystemName name)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
DbSystemNameRequired. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteDbSystemAsync(DeleteDbSystemRequest request)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteDbSystemRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteDbSystemAsync(String name)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteDbSystemCallable()
public final UnaryCallable<DeleteDbSystemRequest,Operation> deleteDbSystemCallable()Deletes a single DbSystem.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteDbSystemRequest request =
DeleteDbSystemRequest.newBuilder()
.setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.deleteDbSystemCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteDbSystemRequest,Operation> |
|
deleteDbSystemOperationCallable()
public final OperationCallable<DeleteDbSystemRequest,Empty,OperationMetadata> deleteDbSystemOperationCallable()Deletes a single DbSystem.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteDbSystemRequest request =
DeleteDbSystemRequest.newBuilder()
.setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
oracleDatabaseClient.deleteDbSystemOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteDbSystemRequest,Empty,OperationMetadata> |
|
deleteExadbVmClusterAsync(DeleteExadbVmClusterRequest request)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteExadbVmClusterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteExadbVmClusterAsync(ExadbVmClusterName name)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
ExadbVmClusterNameRequired. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteExadbVmClusterAsync(String name)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteExadbVmClusterCallable()
public final UnaryCallable<DeleteExadbVmClusterRequest,Operation> deleteExadbVmClusterCallable()Deletes a single Exadb (Exascale) VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteExadbVmClusterRequest request =
DeleteExadbVmClusterRequest.newBuilder()
.setName(
ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.deleteExadbVmClusterCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteExadbVmClusterRequest,Operation> |
|
deleteExadbVmClusterOperationCallable()
public final OperationCallable<DeleteExadbVmClusterRequest,Empty,OperationMetadata> deleteExadbVmClusterOperationCallable()Deletes a single Exadb (Exascale) VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteExadbVmClusterRequest request =
DeleteExadbVmClusterRequest.newBuilder()
.setName(
ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
oracleDatabaseClient.deleteExadbVmClusterOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteExadbVmClusterRequest,Empty,OperationMetadata> |
|
deleteExascaleDbStorageVaultAsync(DeleteExascaleDbStorageVaultRequest request)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteExascaleDbStorageVaultRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteExascaleDbStorageVaultAsync(ExascaleDbStorageVaultName name)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
ExascaleDbStorageVaultNameRequired. The name of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteExascaleDbStorageVaultAsync(String name)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteExascaleDbStorageVaultRequest,Operation> |
|
deleteExascaleDbStorageVaultOperationCallable()
public final OperationCallable<DeleteExascaleDbStorageVaultRequest,Empty,OperationMetadata> deleteExascaleDbStorageVaultOperationCallable()Deletes a single ExascaleDB Storage Vault.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteExascaleDbStorageVaultRequest request =
DeleteExascaleDbStorageVaultRequest.newBuilder()
.setName(
ExascaleDbStorageVaultName.of(
"[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
oracleDatabaseClient.deleteExascaleDbStorageVaultOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteExascaleDbStorageVaultRequest,Empty,OperationMetadata> |
|
deleteOdbNetworkAsync(DeleteOdbNetworkRequest request)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteOdbNetworkRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteOdbNetworkAsync(OdbNetworkName name)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
OdbNetworkNameRequired. The name of the resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteOdbNetworkAsync(String name)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteOdbNetworkCallable()
public final UnaryCallable<DeleteOdbNetworkRequest,Operation> deleteOdbNetworkCallable()Deletes a single ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteOdbNetworkRequest request =
DeleteOdbNetworkRequest.newBuilder()
.setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.deleteOdbNetworkCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteOdbNetworkRequest,Operation> |
|
deleteOdbNetworkOperationCallable()
public final OperationCallable<DeleteOdbNetworkRequest,Empty,OperationMetadata> deleteOdbNetworkOperationCallable()Deletes a single ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteOdbNetworkRequest request =
DeleteOdbNetworkRequest.newBuilder()
.setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
oracleDatabaseClient.deleteOdbNetworkOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteOdbNetworkRequest,Empty,OperationMetadata> |
|
deleteOdbSubnetAsync(DeleteOdbSubnetRequest request)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteOdbSubnetRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteOdbSubnetAsync(OdbSubnetName name)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
OdbSubnetNameRequired. The name of the resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteOdbSubnetAsync(String name)
public final OperationFuture<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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteOdbSubnetCallable()
public final UnaryCallable<DeleteOdbSubnetRequest,Operation> deleteOdbSubnetCallable()Deletes a single ODB Subnet.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteOdbSubnetRequest request =
DeleteOdbSubnetRequest.newBuilder()
.setName(
OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.deleteOdbSubnetCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteOdbSubnetRequest,Operation> |
|
deleteOdbSubnetOperationCallable()
public final OperationCallable<DeleteOdbSubnetRequest,Empty,OperationMetadata> deleteOdbSubnetOperationCallable()Deletes a single ODB Subnet.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DeleteOdbSubnetRequest request =
DeleteOdbSubnetRequest.newBuilder()
.setName(
OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
oracleDatabaseClient.deleteOdbSubnetOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteOdbSubnetRequest,Empty,OperationMetadata> |
|
failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase)
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 | Description |
name |
AutonomousDatabaseNameRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
peerAutonomousDatabase |
AutonomousDatabaseNameRequired. The peer database name to fail over to. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase)
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 | Description |
name |
AutonomousDatabaseNameRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
peerAutonomousDatabase |
StringRequired. The peer database name to fail over to. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
failoverAutonomousDatabaseAsync(FailoverAutonomousDatabaseRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
FailoverAutonomousDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
failoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase)
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 | Description |
name |
StringRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
peerAutonomousDatabase |
AutonomousDatabaseNameRequired. The peer database name to fail over to. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
failoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase)
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 | Description |
name |
StringRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
peerAutonomousDatabase |
StringRequired. The peer database name to fail over to. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<FailoverAutonomousDatabaseRequest,Operation> |
|
failoverAutonomousDatabaseOperationCallable()
public final OperationCallable<FailoverAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> failoverAutonomousDatabaseOperationCallable()Initiates a failover to target autonomous database from the associated primary database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
FailoverAutonomousDatabaseRequest request =
FailoverAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.setPeerAutonomousDatabase(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.build();
OperationFuture<AutonomousDatabase, OperationMetadata> future =
oracleDatabaseClient.failoverAutonomousDatabaseOperationCallable().futureCall(request);
// Do something.
AutonomousDatabase response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<FailoverAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> |
|
generateAutonomousDatabaseWallet(AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password)
public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet(AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password)Generates a wallet for an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
AutonomousDatabaseName name =
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
GenerateType type = GenerateType.forNumber(0);
boolean isRegional = true;
String password = "password1216985755";
GenerateAutonomousDatabaseWalletResponse response =
oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password);
}
| Parameters | |
|---|---|
| Name | Description |
name |
AutonomousDatabaseNameRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
type |
GenerateTypeOptional. The type of wallet generation for the Autonomous Database. The default value is SINGLE. |
isRegional |
booleanOptional. True when requesting regional connection strings in PDB connect info, applicable to cross-region Data Guard only. |
password |
StringRequired. The password used to encrypt the keys inside the wallet. The password must be a minimum of 8 characters. |
| Returns | |
|---|---|
| Type | Description |
GenerateAutonomousDatabaseWalletResponse |
|
generateAutonomousDatabaseWallet(GenerateAutonomousDatabaseWalletRequest request)
public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet(GenerateAutonomousDatabaseWalletRequest request)Generates a wallet for an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GenerateAutonomousDatabaseWalletRequest request =
GenerateAutonomousDatabaseWalletRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.setType(GenerateType.forNumber(0))
.setIsRegional(true)
.setPassword("password1216985755")
.build();
GenerateAutonomousDatabaseWalletResponse response =
oracleDatabaseClient.generateAutonomousDatabaseWallet(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GenerateAutonomousDatabaseWalletRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
GenerateAutonomousDatabaseWalletResponse |
|
generateAutonomousDatabaseWallet(String name, GenerateType type, boolean isRegional, String password)
public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet(String name, GenerateType type, boolean isRegional, String password)Generates a wallet for an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
GenerateType type = GenerateType.forNumber(0);
boolean isRegional = true;
String password = "password1216985755";
GenerateAutonomousDatabaseWalletResponse response =
oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password);
}
| Parameters | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
type |
GenerateTypeOptional. The type of wallet generation for the Autonomous Database. The default value is SINGLE. |
isRegional |
booleanOptional. True when requesting regional connection strings in PDB connect info, applicable to cross-region Data Guard only. |
password |
StringRequired. The password used to encrypt the keys inside the wallet. The password must be a minimum of 8 characters. |
| Returns | |
|---|---|
| Type | Description |
GenerateAutonomousDatabaseWalletResponse |
|
generateAutonomousDatabaseWalletCallable()
public final UnaryCallable<GenerateAutonomousDatabaseWalletRequest,GenerateAutonomousDatabaseWalletResponse> generateAutonomousDatabaseWalletCallable()Generates a wallet for an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GenerateAutonomousDatabaseWalletRequest request =
GenerateAutonomousDatabaseWalletRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.setType(GenerateType.forNumber(0))
.setIsRegional(true)
.setPassword("password1216985755")
.build();
ApiFuture<GenerateAutonomousDatabaseWalletResponse> future =
oracleDatabaseClient.generateAutonomousDatabaseWalletCallable().futureCall(request);
// Do something.
GenerateAutonomousDatabaseWalletResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GenerateAutonomousDatabaseWalletRequest,GenerateAutonomousDatabaseWalletResponse> |
|
getAutonomousDatabase(AutonomousDatabaseName name)
public final AutonomousDatabase getAutonomousDatabase(AutonomousDatabaseName name)Gets the details of a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
AutonomousDatabaseName name =
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
AutonomousDatabaseNameRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| Returns | |
|---|---|
| Type | Description |
AutonomousDatabase |
|
getAutonomousDatabase(GetAutonomousDatabaseRequest request)
public final AutonomousDatabase getAutonomousDatabase(GetAutonomousDatabaseRequest request)Gets the details of a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetAutonomousDatabaseRequest request =
GetAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.build();
AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetAutonomousDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
AutonomousDatabase |
|
getAutonomousDatabase(String name)
public final AutonomousDatabase getAutonomousDatabase(String name)Gets the details of a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| Returns | |
|---|---|
| Type | Description |
AutonomousDatabase |
|
getAutonomousDatabaseCallable()
public final UnaryCallable<GetAutonomousDatabaseRequest,AutonomousDatabase> getAutonomousDatabaseCallable()Gets the details of a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetAutonomousDatabaseRequest request =
GetAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.build();
ApiFuture<AutonomousDatabase> future =
oracleDatabaseClient.getAutonomousDatabaseCallable().futureCall(request);
// Do something.
AutonomousDatabase response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetAutonomousDatabaseRequest,AutonomousDatabase> |
|
getCloudExadataInfrastructure(CloudExadataInfrastructureName name)
public final CloudExadataInfrastructure getCloudExadataInfrastructure(CloudExadataInfrastructureName name)Gets details of a single Exadata Infrastructure.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CloudExadataInfrastructureName name =
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
CloudExadataInfrastructure response =
oracleDatabaseClient.getCloudExadataInfrastructure(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
CloudExadataInfrastructureNameRequired. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. |
| Returns | |
|---|---|
| Type | Description |
CloudExadataInfrastructure |
|
getCloudExadataInfrastructure(GetCloudExadataInfrastructureRequest request)
public final CloudExadataInfrastructure getCloudExadataInfrastructure(GetCloudExadataInfrastructureRequest request)Gets details of a single Exadata Infrastructure.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetCloudExadataInfrastructureRequest request =
GetCloudExadataInfrastructureRequest.newBuilder()
.setName(
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString())
.build();
CloudExadataInfrastructure response =
oracleDatabaseClient.getCloudExadataInfrastructure(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetCloudExadataInfrastructureRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
CloudExadataInfrastructure |
|
getCloudExadataInfrastructure(String name)
public final CloudExadataInfrastructure getCloudExadataInfrastructure(String name)Gets details of a single Exadata Infrastructure.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString();
CloudExadataInfrastructure response =
oracleDatabaseClient.getCloudExadataInfrastructure(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. |
| Returns | |
|---|---|
| Type | Description |
CloudExadataInfrastructure |
|
getCloudExadataInfrastructureCallable()
public final UnaryCallable<GetCloudExadataInfrastructureRequest,CloudExadataInfrastructure> getCloudExadataInfrastructureCallable()Gets details of a single Exadata Infrastructure.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetCloudExadataInfrastructureRequest request =
GetCloudExadataInfrastructureRequest.newBuilder()
.setName(
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString())
.build();
ApiFuture<CloudExadataInfrastructure> future =
oracleDatabaseClient.getCloudExadataInfrastructureCallable().futureCall(request);
// Do something.
CloudExadataInfrastructure response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetCloudExadataInfrastructureRequest,CloudExadataInfrastructure> |
|
getCloudVmCluster(CloudVmClusterName name)
public final CloudVmCluster getCloudVmCluster(CloudVmClusterName name)Gets details of a single VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CloudVmClusterName name =
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
CloudVmClusterNameRequired. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. |
| Returns | |
|---|---|
| Type | Description |
CloudVmCluster |
|
getCloudVmCluster(GetCloudVmClusterRequest request)
public final CloudVmCluster getCloudVmCluster(GetCloudVmClusterRequest request)Gets details of a single VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetCloudVmClusterRequest request =
GetCloudVmClusterRequest.newBuilder()
.setName(
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
.build();
CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetCloudVmClusterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
CloudVmCluster |
|
getCloudVmCluster(String name)
public final CloudVmCluster getCloudVmCluster(String name)Gets details of a single VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. |
| Returns | |
|---|---|
| Type | Description |
CloudVmCluster |
|
getCloudVmClusterCallable()
public final UnaryCallable<GetCloudVmClusterRequest,CloudVmCluster> getCloudVmClusterCallable()Gets details of a single VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetCloudVmClusterRequest request =
GetCloudVmClusterRequest.newBuilder()
.setName(
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
.build();
ApiFuture<CloudVmCluster> future =
oracleDatabaseClient.getCloudVmClusterCallable().futureCall(request);
// Do something.
CloudVmCluster response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetCloudVmClusterRequest,CloudVmCluster> |
|
getDatabase(DatabaseName name)
public final Database getDatabase(DatabaseName name)Gets details of a single Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DatabaseName name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]");
Database response = oracleDatabaseClient.getDatabase(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
DatabaseNameRequired. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database} |
| Returns | |
|---|---|
| Type | Description |
Database |
|
getDatabase(GetDatabaseRequest request)
public final Database getDatabase(GetDatabaseRequest request)Gets details of a single Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetDatabaseRequest request =
GetDatabaseRequest.newBuilder()
.setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString())
.build();
Database response = oracleDatabaseClient.getDatabase(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
Database |
|
getDatabase(String name)
public final Database getDatabase(String name)Gets details of a single Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString();
Database response = oracleDatabaseClient.getDatabase(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database} |
| Returns | |
|---|---|
| Type | Description |
Database |
|
getDatabaseCallable()
public final UnaryCallable<GetDatabaseRequest,Database> getDatabaseCallable()Gets details of a single Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetDatabaseRequest request =
GetDatabaseRequest.newBuilder()
.setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString())
.build();
ApiFuture<Database> future = oracleDatabaseClient.getDatabaseCallable().futureCall(request);
// Do something.
Database response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetDatabaseRequest,Database> |
|
getDbSystem(DbSystemName name)
public final DbSystem getDbSystem(DbSystemName name)Gets details of a single DbSystem.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]");
DbSystem response = oracleDatabaseClient.getDbSystem(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
DbSystemNameRequired. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}. |
| Returns | |
|---|---|
| Type | Description |
DbSystem |
|
getDbSystem(GetDbSystemRequest request)
public final DbSystem getDbSystem(GetDbSystemRequest request)Gets details of a single DbSystem.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetDbSystemRequest request =
GetDbSystemRequest.newBuilder()
.setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString())
.build();
DbSystem response = oracleDatabaseClient.getDbSystem(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetDbSystemRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DbSystem |
|
getDbSystem(String name)
public final DbSystem getDbSystem(String name)Gets details of a single DbSystem.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString();
DbSystem response = oracleDatabaseClient.getDbSystem(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}. |
| Returns | |
|---|---|
| Type | Description |
DbSystem |
|
getDbSystemCallable()
public final UnaryCallable<GetDbSystemRequest,DbSystem> getDbSystemCallable()Gets details of a single DbSystem.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetDbSystemRequest request =
GetDbSystemRequest.newBuilder()
.setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString())
.build();
ApiFuture<DbSystem> future = oracleDatabaseClient.getDbSystemCallable().futureCall(request);
// Do something.
DbSystem response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetDbSystemRequest,DbSystem> |
|
getExadbVmCluster(ExadbVmClusterName name)
public final ExadbVmCluster getExadbVmCluster(ExadbVmClusterName name)Gets details of a single Exadb (Exascale) VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ExadbVmClusterName name =
ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]");
ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
ExadbVmClusterNameRequired. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. |
| Returns | |
|---|---|
| Type | Description |
ExadbVmCluster |
|
getExadbVmCluster(GetExadbVmClusterRequest request)
public final ExadbVmCluster getExadbVmCluster(GetExadbVmClusterRequest request)Gets details of a single Exadb (Exascale) VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetExadbVmClusterRequest request =
GetExadbVmClusterRequest.newBuilder()
.setName(
ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
.build();
ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetExadbVmClusterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
ExadbVmCluster |
|
getExadbVmCluster(String name)
public final ExadbVmCluster getExadbVmCluster(String name)Gets details of a single Exadb (Exascale) VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString();
ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. |
| Returns | |
|---|---|
| Type | Description |
ExadbVmCluster |
|
getExadbVmClusterCallable()
public final UnaryCallable<GetExadbVmClusterRequest,ExadbVmCluster> getExadbVmClusterCallable()Gets details of a single Exadb (Exascale) VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetExadbVmClusterRequest request =
GetExadbVmClusterRequest.newBuilder()
.setName(
ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
.build();
ApiFuture<ExadbVmCluster> future =
oracleDatabaseClient.getExadbVmClusterCallable().futureCall(request);
// Do something.
ExadbVmCluster response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetExadbVmClusterRequest,ExadbVmCluster> |
|
getExascaleDbStorageVault(ExascaleDbStorageVaultName name)
public final ExascaleDbStorageVault getExascaleDbStorageVault(ExascaleDbStorageVaultName name)Gets details of a single ExascaleDB Storage Vault.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ExascaleDbStorageVaultName name =
ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]");
ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
ExascaleDbStorageVaultNameRequired. The name of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. |
| Returns | |
|---|---|
| Type | Description |
ExascaleDbStorageVault |
|
getExascaleDbStorageVault(GetExascaleDbStorageVaultRequest request)
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);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetExascaleDbStorageVaultRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
ExascaleDbStorageVault |
|
getExascaleDbStorageVault(String name)
public final ExascaleDbStorageVault getExascaleDbStorageVault(String name)Gets details of a single ExascaleDB Storage Vault.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]")
.toString();
ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. |
| Returns | |
|---|---|
| Type | Description |
ExascaleDbStorageVault |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetExascaleDbStorageVaultRequest,ExascaleDbStorageVault> |
|
getHttpJsonOperationsClient()
public final OperationsClient getHttpJsonOperationsClient()Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
| Returns | |
|---|---|
| Type | Description |
OperationsClient |
|
getLocation(GetLocationRequest request)
public final Location getLocation(GetLocationRequest request)Gets information about a location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = oracleDatabaseClient.getLocation(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.cloud.location.GetLocationRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.cloud.location.Location |
|
getLocationCallable()
public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()Gets information about a location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future = oracleDatabaseClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
|
getOdbNetwork(GetOdbNetworkRequest request)
public final OdbNetwork getOdbNetwork(GetOdbNetworkRequest request)Gets details of a single ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetOdbNetworkRequest request =
GetOdbNetworkRequest.newBuilder()
.setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
.build();
OdbNetwork response = oracleDatabaseClient.getOdbNetwork(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetOdbNetworkRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OdbNetwork |
|
getOdbNetwork(OdbNetworkName name)
public final OdbNetwork getOdbNetwork(OdbNetworkName name)Gets details of a single ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]");
OdbNetwork response = oracleDatabaseClient.getOdbNetwork(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
OdbNetworkNameRequired. The name of the OdbNetwork in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. |
| Returns | |
|---|---|
| Type | Description |
OdbNetwork |
|
getOdbNetwork(String name)
public final OdbNetwork getOdbNetwork(String name)Gets details of a single ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString();
OdbNetwork response = oracleDatabaseClient.getOdbNetwork(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the OdbNetwork in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. |
| Returns | |
|---|---|
| Type | Description |
OdbNetwork |
|
getOdbNetworkCallable()
public final UnaryCallable<GetOdbNetworkRequest,OdbNetwork> getOdbNetworkCallable()Gets details of a single ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetOdbNetworkRequest request =
GetOdbNetworkRequest.newBuilder()
.setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
.build();
ApiFuture<OdbNetwork> future =
oracleDatabaseClient.getOdbNetworkCallable().futureCall(request);
// Do something.
OdbNetwork response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetOdbNetworkRequest,OdbNetwork> |
|
getOdbSubnet(GetOdbSubnetRequest request)
public final OdbSubnet getOdbSubnet(GetOdbSubnetRequest request)Gets details of a single ODB Subnet.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetOdbSubnetRequest request =
GetOdbSubnetRequest.newBuilder()
.setName(
OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
.toString())
.build();
OdbSubnet response = oracleDatabaseClient.getOdbSubnet(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetOdbSubnetRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet |
|
getOdbSubnet(OdbSubnetName name)
public final OdbSubnet getOdbSubnet(OdbSubnetName name)Gets details of a single ODB Subnet.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
OdbSubnetName name =
OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]");
OdbSubnet response = oracleDatabaseClient.getOdbSubnet(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
OdbSubnetNameRequired. The name of the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet |
|
getOdbSubnet(String name)
public final OdbSubnet getOdbSubnet(String name)Gets details of a single ODB Subnet.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]").toString();
OdbSubnet response = oracleDatabaseClient.getOdbSubnet(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet |
|
getOdbSubnetCallable()
public final UnaryCallable<GetOdbSubnetRequest,OdbSubnet> getOdbSubnetCallable()Gets details of a single ODB Subnet.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetOdbSubnetRequest request =
GetOdbSubnetRequest.newBuilder()
.setName(
OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
.toString())
.build();
ApiFuture<OdbSubnet> future = oracleDatabaseClient.getOdbSubnetCallable().futureCall(request);
// Do something.
OdbSubnet response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetOdbSubnetRequest,OdbSubnet> |
|
getOperationsClient()
public final OperationsClient getOperationsClient()Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
| Returns | |
|---|---|
| Type | Description |
OperationsClient |
|
getPluggableDatabase(GetPluggableDatabaseRequest request)
public final PluggableDatabase getPluggableDatabase(GetPluggableDatabaseRequest request)Gets details of a single PluggableDatabase.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
GetPluggableDatabaseRequest request =
GetPluggableDatabaseRequest.newBuilder()
.setName(
PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]")
.toString())
.build();
PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetPluggableDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
PluggableDatabase |
|
getPluggableDatabase(PluggableDatabaseName name)
public final PluggableDatabase getPluggableDatabase(PluggableDatabaseName name)Gets details of a single PluggableDatabase.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
PluggableDatabaseName name =
PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]");
PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
PluggableDatabaseNameRequired. The name of the PluggableDatabase resource in the following format: projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} |
| Returns | |
|---|---|
| Type | Description |
PluggableDatabase |
|
getPluggableDatabase(String name)
public final PluggableDatabase getPluggableDatabase(String name)Gets details of a single PluggableDatabase.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]").toString();
PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the PluggableDatabase resource in the following format: projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} |
| Returns | |
|---|---|
| Type | Description |
PluggableDatabase |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetPluggableDatabaseRequest,PluggableDatabase> |
|
getSettings()
public final OracleDatabaseSettings getSettings()| Returns | |
|---|---|
| Type | Description |
OracleDatabaseSettings |
|
getStub()
public OracleDatabaseStub getStub()| Returns | |
|---|---|
| Type | Description |
OracleDatabaseStub |
|
isShutdown()
public boolean isShutdown()| Returns | |
|---|---|
| Type | Description |
boolean |
|
isTerminated()
public boolean isTerminated()| Returns | |
|---|---|
| Type | Description |
boolean |
|
listAutonomousDatabaseBackups(ListAutonomousDatabaseBackupsRequest request)
public final OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups(ListAutonomousDatabaseBackupsRequest request)Lists the long-term and automatic backups of an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDatabaseBackupsRequest request =
ListAutonomousDatabaseBackupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (AutonomousDatabaseBackup element :
oracleDatabaseClient.listAutonomousDatabaseBackups(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListAutonomousDatabaseBackupsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse |
|
listAutonomousDatabaseBackups(LocationName parent)
public final OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups(LocationName parent)Lists the long-term and automatic backups of an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (AutonomousDatabaseBackup element :
oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for ListAutonomousDatabaseBackups in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse |
|
listAutonomousDatabaseBackups(String parent)
public final OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups(String parent)Lists the long-term and automatic backups of an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (AutonomousDatabaseBackup element :
oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for ListAutonomousDatabaseBackups in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse |
|
listAutonomousDatabaseBackupsCallable()
public final UnaryCallable<ListAutonomousDatabaseBackupsRequest,ListAutonomousDatabaseBackupsResponse> listAutonomousDatabaseBackupsCallable()Lists the long-term and automatic backups of an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDatabaseBackupsRequest request =
ListAutonomousDatabaseBackupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListAutonomousDatabaseBackupsResponse response =
oracleDatabaseClient.listAutonomousDatabaseBackupsCallable().call(request);
for (AutonomousDatabaseBackup element : response.getAutonomousDatabaseBackupsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListAutonomousDatabaseBackupsRequest,ListAutonomousDatabaseBackupsResponse> |
|
listAutonomousDatabaseBackupsPagedCallable()
public final UnaryCallable<ListAutonomousDatabaseBackupsRequest,OracleDatabaseClient.ListAutonomousDatabaseBackupsPagedResponse> listAutonomousDatabaseBackupsPagedCallable()Lists the long-term and automatic backups of an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDatabaseBackupsRequest request =
ListAutonomousDatabaseBackupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<AutonomousDatabaseBackup> future =
oracleDatabaseClient.listAutonomousDatabaseBackupsPagedCallable().futureCall(request);
// Do something.
for (AutonomousDatabaseBackup element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListAutonomousDatabaseBackupsRequest,ListAutonomousDatabaseBackupsPagedResponse> |
|
listAutonomousDatabaseCharacterSets(ListAutonomousDatabaseCharacterSetsRequest request)
public final OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets(ListAutonomousDatabaseCharacterSetsRequest request)Lists Autonomous Database Character Sets in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDatabaseCharacterSetsRequest request =
ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
for (AutonomousDatabaseCharacterSet element :
oracleDatabaseClient.listAutonomousDatabaseCharacterSets(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListAutonomousDatabaseCharacterSetsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse |
|
listAutonomousDatabaseCharacterSets(LocationName parent)
public final OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets(LocationName parent)Lists Autonomous Database Character Sets in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (AutonomousDatabaseCharacterSet element :
oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse |
|
listAutonomousDatabaseCharacterSets(String parent)
public final OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets(String parent)Lists Autonomous Database Character Sets in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (AutonomousDatabaseCharacterSet element :
oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse |
|
listAutonomousDatabaseCharacterSetsCallable()
public final UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,ListAutonomousDatabaseCharacterSetsResponse> listAutonomousDatabaseCharacterSetsCallable()Lists Autonomous Database Character Sets in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDatabaseCharacterSetsRequest request =
ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
while (true) {
ListAutonomousDatabaseCharacterSetsResponse response =
oracleDatabaseClient.listAutonomousDatabaseCharacterSetsCallable().call(request);
for (AutonomousDatabaseCharacterSet element :
response.getAutonomousDatabaseCharacterSetsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,ListAutonomousDatabaseCharacterSetsResponse> |
|
listAutonomousDatabaseCharacterSetsPagedCallable()
public final UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,OracleDatabaseClient.ListAutonomousDatabaseCharacterSetsPagedResponse> listAutonomousDatabaseCharacterSetsPagedCallable()Lists Autonomous Database Character Sets in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDatabaseCharacterSetsRequest request =
ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
ApiFuture<AutonomousDatabaseCharacterSet> future =
oracleDatabaseClient
.listAutonomousDatabaseCharacterSetsPagedCallable()
.futureCall(request);
// Do something.
for (AutonomousDatabaseCharacterSet element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListAutonomousDatabaseCharacterSetsRequest,ListAutonomousDatabaseCharacterSetsPagedResponse> |
|
listAutonomousDatabases(ListAutonomousDatabasesRequest request)
public final OracleDatabaseClient.ListAutonomousDatabasesPagedResponse listAutonomousDatabases(ListAutonomousDatabasesRequest request)Lists the Autonomous Databases in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDatabasesRequest request =
ListAutonomousDatabasesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (AutonomousDatabase element :
oracleDatabaseClient.listAutonomousDatabases(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListAutonomousDatabasesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDatabasesPagedResponse |
|
listAutonomousDatabases(LocationName parent)
public final OracleDatabaseClient.ListAutonomousDatabasesPagedResponse listAutonomousDatabases(LocationName parent)Lists the Autonomous Databases in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (AutonomousDatabase element :
oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDatabasesPagedResponse |
|
listAutonomousDatabases(String parent)
public final OracleDatabaseClient.ListAutonomousDatabasesPagedResponse listAutonomousDatabases(String parent)Lists the Autonomous Databases in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (AutonomousDatabase element :
oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDatabasesPagedResponse |
|
listAutonomousDatabasesCallable()
public final UnaryCallable<ListAutonomousDatabasesRequest,ListAutonomousDatabasesResponse> listAutonomousDatabasesCallable()Lists the Autonomous Databases in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDatabasesRequest request =
ListAutonomousDatabasesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListAutonomousDatabasesResponse response =
oracleDatabaseClient.listAutonomousDatabasesCallable().call(request);
for (AutonomousDatabase element : response.getAutonomousDatabasesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListAutonomousDatabasesRequest,ListAutonomousDatabasesResponse> |
|
listAutonomousDatabasesPagedCallable()
public final UnaryCallable<ListAutonomousDatabasesRequest,OracleDatabaseClient.ListAutonomousDatabasesPagedResponse> listAutonomousDatabasesPagedCallable()Lists the Autonomous Databases in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDatabasesRequest request =
ListAutonomousDatabasesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<AutonomousDatabase> future =
oracleDatabaseClient.listAutonomousDatabasesPagedCallable().futureCall(request);
// Do something.
for (AutonomousDatabase element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListAutonomousDatabasesRequest,ListAutonomousDatabasesPagedResponse> |
|
listAutonomousDbVersions(ListAutonomousDbVersionsRequest request)
public final OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(ListAutonomousDbVersionsRequest request)Lists all the available Autonomous Database versions for a project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDbVersionsRequest request =
ListAutonomousDbVersionsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (AutonomousDbVersion element :
oracleDatabaseClient.listAutonomousDbVersions(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListAutonomousDbVersionsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse |
|
listAutonomousDbVersions(LocationName parent)
public final OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(LocationName parent)Lists all the available Autonomous Database versions for a project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (AutonomousDbVersion element :
oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse |
|
listAutonomousDbVersions(String parent)
public final OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(String parent)Lists all the available Autonomous Database versions for a project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (AutonomousDbVersion element :
oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse |
|
listAutonomousDbVersionsCallable()
public final UnaryCallable<ListAutonomousDbVersionsRequest,ListAutonomousDbVersionsResponse> listAutonomousDbVersionsCallable()Lists all the available Autonomous Database versions for a project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDbVersionsRequest request =
ListAutonomousDbVersionsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListAutonomousDbVersionsResponse response =
oracleDatabaseClient.listAutonomousDbVersionsCallable().call(request);
for (AutonomousDbVersion element : response.getAutonomousDbVersionsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListAutonomousDbVersionsRequest,ListAutonomousDbVersionsResponse> |
|
listAutonomousDbVersionsPagedCallable()
public final UnaryCallable<ListAutonomousDbVersionsRequest,OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse> listAutonomousDbVersionsPagedCallable()Lists all the available Autonomous Database versions for a project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListAutonomousDbVersionsRequest request =
ListAutonomousDbVersionsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<AutonomousDbVersion> future =
oracleDatabaseClient.listAutonomousDbVersionsPagedCallable().futureCall(request);
// Do something.
for (AutonomousDbVersion element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListAutonomousDbVersionsRequest,ListAutonomousDbVersionsPagedResponse> |
|
listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest request)
public final OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest request)Lists Exadata Infrastructures in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListCloudExadataInfrastructuresRequest request =
ListCloudExadataInfrastructuresRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (CloudExadataInfrastructure element :
oracleDatabaseClient.listCloudExadataInfrastructures(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListCloudExadataInfrastructuresRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse |
|
listCloudExadataInfrastructures(LocationName parent)
public final OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(LocationName parent)Lists Exadata Infrastructures in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (CloudExadataInfrastructure element :
oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse |
|
listCloudExadataInfrastructures(String parent)
public final OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(String parent)Lists Exadata Infrastructures in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (CloudExadataInfrastructure element :
oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse |
|
listCloudExadataInfrastructuresCallable()
public final UnaryCallable<ListCloudExadataInfrastructuresRequest,ListCloudExadataInfrastructuresResponse> listCloudExadataInfrastructuresCallable()Lists Exadata Infrastructures in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListCloudExadataInfrastructuresRequest request =
ListCloudExadataInfrastructuresRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.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;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListCloudExadataInfrastructuresRequest,ListCloudExadataInfrastructuresResponse> |
|
listCloudExadataInfrastructuresPagedCallable()
public final UnaryCallable<ListCloudExadataInfrastructuresRequest,OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse> listCloudExadataInfrastructuresPagedCallable()Lists Exadata Infrastructures in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListCloudExadataInfrastructuresRequest request =
ListCloudExadataInfrastructuresRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<CloudExadataInfrastructure> future =
oracleDatabaseClient.listCloudExadataInfrastructuresPagedCallable().futureCall(request);
// Do something.
for (CloudExadataInfrastructure element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListCloudExadataInfrastructuresRequest,ListCloudExadataInfrastructuresPagedResponse> |
|
listCloudVmClusters(ListCloudVmClustersRequest request)
public final OracleDatabaseClient.ListCloudVmClustersPagedResponse listCloudVmClusters(ListCloudVmClustersRequest request)Lists the VM Clusters in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListCloudVmClustersRequest request =
ListCloudVmClustersRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
for (CloudVmCluster element :
oracleDatabaseClient.listCloudVmClusters(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListCloudVmClustersRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListCloudVmClustersPagedResponse |
|
listCloudVmClusters(LocationName parent)
public final OracleDatabaseClient.ListCloudVmClustersPagedResponse listCloudVmClusters(LocationName parent)Lists the VM Clusters in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The name of the parent in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListCloudVmClustersPagedResponse |
|
listCloudVmClusters(String parent)
public final OracleDatabaseClient.ListCloudVmClustersPagedResponse listCloudVmClusters(String parent)Lists the VM Clusters in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The name of the parent in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListCloudVmClustersPagedResponse |
|
listCloudVmClustersCallable()
public final UnaryCallable<ListCloudVmClustersRequest,ListCloudVmClustersResponse> listCloudVmClustersCallable()Lists the VM Clusters in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListCloudVmClustersRequest request =
ListCloudVmClustersRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
while (true) {
ListCloudVmClustersResponse response =
oracleDatabaseClient.listCloudVmClustersCallable().call(request);
for (CloudVmCluster element : response.getCloudVmClustersList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListCloudVmClustersRequest,ListCloudVmClustersResponse> |
|
listCloudVmClustersPagedCallable()
public final UnaryCallable<ListCloudVmClustersRequest,OracleDatabaseClient.ListCloudVmClustersPagedResponse> listCloudVmClustersPagedCallable()Lists the VM Clusters in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListCloudVmClustersRequest request =
ListCloudVmClustersRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
ApiFuture<CloudVmCluster> future =
oracleDatabaseClient.listCloudVmClustersPagedCallable().futureCall(request);
// Do something.
for (CloudVmCluster element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListCloudVmClustersRequest,ListCloudVmClustersPagedResponse> |
|
listDatabaseCharacterSets(ListDatabaseCharacterSetsRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDatabaseCharacterSetsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse |
|
listDatabaseCharacterSets(LocationName parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for DatabaseCharacterSets in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse |
|
listDatabaseCharacterSets(String parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for DatabaseCharacterSets in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse |
|
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;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDatabaseCharacterSetsRequest,ListDatabaseCharacterSetsResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDatabaseCharacterSetsRequest,ListDatabaseCharacterSetsPagedResponse> |
|
listDatabases(ListDatabasesRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDatabasesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDatabasesPagedResponse |
|
listDatabases(LocationName parent)
public final OracleDatabaseClient.ListDatabasesPagedResponse listDatabases(LocationName parent)Lists all the Databases for the given project, location and DbSystem.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Database element : oracleDatabaseClient.listDatabases(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource name in the following format: projects/{project}/locations/{region} |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDatabasesPagedResponse |
|
listDatabases(String parent)
public final OracleDatabaseClient.ListDatabasesPagedResponse listDatabases(String parent)Lists all the Databases for the given project, location and DbSystem.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Database element : oracleDatabaseClient.listDatabases(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource name in the following format: projects/{project}/locations/{region} |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDatabasesPagedResponse |
|
listDatabasesCallable()
public final UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> listDatabasesCallable()Lists all the Databases for the given project, location and DbSystem.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDatabasesRequest request =
ListDatabasesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
while (true) {
ListDatabasesResponse response = oracleDatabaseClient.listDatabasesCallable().call(request);
for (Database element : response.getDatabasesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDatabasesRequest,ListDatabasesPagedResponse> |
|
listDbNodes(CloudVmClusterName parent)
public final OracleDatabaseClient.ListDbNodesPagedResponse listDbNodes(CloudVmClusterName parent)Lists the database nodes of a VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CloudVmClusterName parent =
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
CloudVmClusterNameRequired. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. . |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbNodesPagedResponse |
|
listDbNodes(ExadbVmClusterName parent)
public final OracleDatabaseClient.ListDbNodesPagedResponse listDbNodes(ExadbVmClusterName parent)Lists the database nodes of a VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ExadbVmClusterName parent =
ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]");
for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
ExadbVmClusterNameRequired. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. . |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbNodesPagedResponse |
|
listDbNodes(ListDbNodesRequest request)
public final OracleDatabaseClient.ListDbNodesPagedResponse listDbNodes(ListDbNodesRequest request)Lists the database nodes of a VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbNodesRequest request =
ListDbNodesRequest.newBuilder()
.setParent(
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (DbNode element : oracleDatabaseClient.listDbNodes(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDbNodesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbNodesPagedResponse |
|
listDbNodes(String parent)
public final OracleDatabaseClient.ListDbNodesPagedResponse listDbNodes(String parent)Lists the database nodes of a VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent =
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. . |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbNodesPagedResponse |
|
listDbNodesCallable()
public final UnaryCallable<ListDbNodesRequest,ListDbNodesResponse> listDbNodesCallable()Lists the database nodes of a VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbNodesRequest request =
ListDbNodesRequest.newBuilder()
.setParent(
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListDbNodesResponse response = oracleDatabaseClient.listDbNodesCallable().call(request);
for (DbNode element : response.getDbNodesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbNodesRequest,ListDbNodesResponse> |
|
listDbNodesPagedCallable()
public final UnaryCallable<ListDbNodesRequest,OracleDatabaseClient.ListDbNodesPagedResponse> listDbNodesPagedCallable()Lists the database nodes of a VM Cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbNodesRequest request =
ListDbNodesRequest.newBuilder()
.setParent(
CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<DbNode> future =
oracleDatabaseClient.listDbNodesPagedCallable().futureCall(request);
// Do something.
for (DbNode element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbNodesRequest,ListDbNodesPagedResponse> |
|
listDbServers(CloudExadataInfrastructureName parent)
public final OracleDatabaseClient.ListDbServersPagedResponse listDbServers(CloudExadataInfrastructureName parent)Lists the database servers of an Exadata Infrastructure instance.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
CloudExadataInfrastructureName parent =
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
CloudExadataInfrastructureNameRequired. The parent value for database server in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbServersPagedResponse |
|
listDbServers(ListDbServersRequest request)
public final OracleDatabaseClient.ListDbServersPagedResponse listDbServers(ListDbServersRequest request)Lists the database servers of an Exadata Infrastructure instance.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbServersRequest request =
ListDbServersRequest.newBuilder()
.setParent(
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (DbServer element : oracleDatabaseClient.listDbServers(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDbServersRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbServersPagedResponse |
|
listDbServers(String parent)
public final OracleDatabaseClient.ListDbServersPagedResponse listDbServers(String parent)Lists the database servers of an Exadata Infrastructure instance.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent =
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString();
for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for database server in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbServersPagedResponse |
|
listDbServersCallable()
public final UnaryCallable<ListDbServersRequest,ListDbServersResponse> listDbServersCallable()Lists the database servers of an Exadata Infrastructure instance.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbServersRequest request =
ListDbServersRequest.newBuilder()
.setParent(
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListDbServersResponse response = oracleDatabaseClient.listDbServersCallable().call(request);
for (DbServer element : response.getDbServersList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbServersRequest,ListDbServersResponse> |
|
listDbServersPagedCallable()
public final UnaryCallable<ListDbServersRequest,OracleDatabaseClient.ListDbServersPagedResponse> listDbServersPagedCallable()Lists the database servers of an Exadata Infrastructure instance.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbServersRequest request =
ListDbServersRequest.newBuilder()
.setParent(
CloudExadataInfrastructureName.of(
"[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
.toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<DbServer> future =
oracleDatabaseClient.listDbServersPagedCallable().futureCall(request);
// Do something.
for (DbServer element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbServersRequest,ListDbServersPagedResponse> |
|
listDbSystemInitialStorageSizes(ListDbSystemInitialStorageSizesRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDbSystemInitialStorageSizesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse |
|
listDbSystemInitialStorageSizes(LocationName parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for the DbSystemInitialStorageSize resource with the format: projects/{project}/locations/{location} |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse |
|
listDbSystemInitialStorageSizes(String parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the DbSystemInitialStorageSize resource with the format: projects/{project}/locations/{location} |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse |
|
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;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbSystemInitialStorageSizesRequest,ListDbSystemInitialStorageSizesResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbSystemInitialStorageSizesRequest,ListDbSystemInitialStorageSizesPagedResponse> |
|
listDbSystemShapes(ListDbSystemShapesRequest request)
public final OracleDatabaseClient.ListDbSystemShapesPagedResponse listDbSystemShapes(ListDbSystemShapesRequest request)Lists the database system shapes available for the project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbSystemShapesRequest request =
ListDbSystemShapesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDbSystemShapesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbSystemShapesPagedResponse |
|
listDbSystemShapes(LocationName parent)
public final OracleDatabaseClient.ListDbSystemShapesPagedResponse listDbSystemShapes(LocationName parent)Lists the database system shapes available for the project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbSystemShapesPagedResponse |
|
listDbSystemShapes(String parent)
public final OracleDatabaseClient.ListDbSystemShapesPagedResponse listDbSystemShapes(String parent)Lists the database system shapes available for the project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbSystemShapesPagedResponse |
|
listDbSystemShapesCallable()
public final UnaryCallable<ListDbSystemShapesRequest,ListDbSystemShapesResponse> listDbSystemShapesCallable()Lists the database system shapes available for the project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbSystemShapesRequest request =
ListDbSystemShapesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.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;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbSystemShapesRequest,ListDbSystemShapesResponse> |
|
listDbSystemShapesPagedCallable()
public final UnaryCallable<ListDbSystemShapesRequest,OracleDatabaseClient.ListDbSystemShapesPagedResponse> listDbSystemShapesPagedCallable()Lists the database system shapes available for the project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbSystemShapesRequest request =
ListDbSystemShapesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
ApiFuture<DbSystemShape> future =
oracleDatabaseClient.listDbSystemShapesPagedCallable().futureCall(request);
// Do something.
for (DbSystemShape element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbSystemShapesRequest,ListDbSystemShapesPagedResponse> |
|
listDbSystems(ListDbSystemsRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDbSystemsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbSystemsPagedResponse |
|
listDbSystems(LocationName parent)
public final OracleDatabaseClient.ListDbSystemsPagedResponse listDbSystems(LocationName parent)Lists all the DbSystems for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (DbSystem element : oracleDatabaseClient.listDbSystems(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for DbSystems in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbSystemsPagedResponse |
|
listDbSystems(String parent)
public final OracleDatabaseClient.ListDbSystemsPagedResponse listDbSystems(String parent)Lists all the DbSystems for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (DbSystem element : oracleDatabaseClient.listDbSystems(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for DbSystems in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbSystemsPagedResponse |
|
listDbSystemsCallable()
public final UnaryCallable<ListDbSystemsRequest,ListDbSystemsResponse> listDbSystemsCallable()Lists all the DbSystems for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbSystemsRequest request =
ListDbSystemsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListDbSystemsResponse response = oracleDatabaseClient.listDbSystemsCallable().call(request);
for (DbSystem element : response.getDbSystemsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbSystemsRequest,ListDbSystemsResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbSystemsRequest,ListDbSystemsPagedResponse> |
|
listDbVersions(ListDbVersionsRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDbVersionsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbVersionsPagedResponse |
|
listDbVersions(LocationName parent)
public final OracleDatabaseClient.ListDbVersionsPagedResponse listDbVersions(LocationName parent)List DbVersions for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for the DbVersion resource with the format: projects/{project}/locations/{location} |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbVersionsPagedResponse |
|
listDbVersions(String parent)
public final OracleDatabaseClient.ListDbVersionsPagedResponse listDbVersions(String parent)List DbVersions for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the DbVersion resource with the format: projects/{project}/locations/{location} |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListDbVersionsPagedResponse |
|
listDbVersionsCallable()
public final UnaryCallable<ListDbVersionsRequest,ListDbVersionsResponse> listDbVersionsCallable()List DbVersions for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListDbVersionsRequest request =
ListDbVersionsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
while (true) {
ListDbVersionsResponse response =
oracleDatabaseClient.listDbVersionsCallable().call(request);
for (DbVersion element : response.getDbVersionsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbVersionsRequest,ListDbVersionsResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDbVersionsRequest,ListDbVersionsPagedResponse> |
|
listEntitlements(ListEntitlementsRequest request)
public final OracleDatabaseClient.ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequest request)Lists the entitlements in a given project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListEntitlementsRequest request =
ListEntitlementsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Entitlement element : oracleDatabaseClient.listEntitlements(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListEntitlementsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListEntitlementsPagedResponse |
|
listEntitlements(LocationName parent)
public final OracleDatabaseClient.ListEntitlementsPagedResponse listEntitlements(LocationName parent)Lists the entitlements in a given project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for the entitlement in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListEntitlementsPagedResponse |
|
listEntitlements(String parent)
public final OracleDatabaseClient.ListEntitlementsPagedResponse listEntitlements(String parent)Lists the entitlements in a given project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the entitlement in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListEntitlementsPagedResponse |
|
listEntitlementsCallable()
public final UnaryCallable<ListEntitlementsRequest,ListEntitlementsResponse> listEntitlementsCallable()Lists the entitlements in a given project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListEntitlementsRequest request =
ListEntitlementsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListEntitlementsResponse response =
oracleDatabaseClient.listEntitlementsCallable().call(request);
for (Entitlement element : response.getEntitlementsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListEntitlementsRequest,ListEntitlementsResponse> |
|
listEntitlementsPagedCallable()
public final UnaryCallable<ListEntitlementsRequest,OracleDatabaseClient.ListEntitlementsPagedResponse> listEntitlementsPagedCallable()Lists the entitlements in a given project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListEntitlementsRequest request =
ListEntitlementsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Entitlement> future =
oracleDatabaseClient.listEntitlementsPagedCallable().futureCall(request);
// Do something.
for (Entitlement element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListEntitlementsRequest,ListEntitlementsPagedResponse> |
|
listExadbVmClusters(ListExadbVmClustersRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListExadbVmClustersRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListExadbVmClustersPagedResponse |
|
listExadbVmClusters(LocationName parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for ExadbVmClusters in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListExadbVmClustersPagedResponse |
|
listExadbVmClusters(String parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for ExadbVmClusters in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListExadbVmClustersPagedResponse |
|
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;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListExadbVmClustersRequest,ListExadbVmClustersResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListExadbVmClustersRequest,ListExadbVmClustersPagedResponse> |
|
listExascaleDbStorageVaults(ListExascaleDbStorageVaultsRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListExascaleDbStorageVaultsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse |
|
listExascaleDbStorageVaults(LocationName parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse |
|
listExascaleDbStorageVaults(String parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse |
|
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;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListExascaleDbStorageVaultsRequest,ListExascaleDbStorageVaultsResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListExascaleDbStorageVaultsRequest,ListExascaleDbStorageVaultsPagedResponse> |
|
listGiVersions(ListGiVersionsRequest request)
public final OracleDatabaseClient.ListGiVersionsPagedResponse listGiVersions(ListGiVersionsRequest request)Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListGiVersionsRequest request =
ListGiVersionsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
for (GiVersion element : oracleDatabaseClient.listGiVersions(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListGiVersionsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListGiVersionsPagedResponse |
|
listGiVersions(LocationName parent)
public final OracleDatabaseClient.ListGiVersionsPagedResponse listGiVersions(LocationName parent)Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListGiVersionsPagedResponse |
|
listGiVersions(String parent)
public final OracleDatabaseClient.ListGiVersionsPagedResponse listGiVersions(String parent)Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListGiVersionsPagedResponse |
|
listGiVersionsCallable()
public final UnaryCallable<ListGiVersionsRequest,ListGiVersionsResponse> listGiVersionsCallable()Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListGiVersionsRequest request =
ListGiVersionsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.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;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListGiVersionsRequest,ListGiVersionsResponse> |
|
listGiVersionsPagedCallable()
public final UnaryCallable<ListGiVersionsRequest,OracleDatabaseClient.ListGiVersionsPagedResponse> listGiVersionsPagedCallable()Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListGiVersionsRequest request =
ListGiVersionsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
ApiFuture<GiVersion> future =
oracleDatabaseClient.listGiVersionsPagedCallable().futureCall(request);
// Do something.
for (GiVersion element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListGiVersionsRequest,ListGiVersionsPagedResponse> |
|
listLocations(ListLocationsRequest request)
public final OracleDatabaseClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)Lists information about the supported locations for this service.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Location element : oracleDatabaseClient.listLocations(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.cloud.location.ListLocationsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListLocationsPagedResponse |
|
listLocationsCallable()
public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()Lists information about the supported locations for this service.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListLocationsResponse response = oracleDatabaseClient.listLocationsCallable().call(request);
for (Location element : response.getLocationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
|
listLocationsPagedCallable()
public final UnaryCallable<ListLocationsRequest,OracleDatabaseClient.ListLocationsPagedResponse> listLocationsPagedCallable()Lists information about the supported locations for this service.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Location> future =
oracleDatabaseClient.listLocationsPagedCallable().futureCall(request);
// Do something.
for (Location element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
|
listMinorVersions(GiVersionName parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
GiVersionNameRequired. The parent value for the MinorVersion resource with the format: projects/{project}/locations/{location}/giVersions/{gi_version} |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListMinorVersionsPagedResponse |
|
listMinorVersions(ListMinorVersionsRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListMinorVersionsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListMinorVersionsPagedResponse |
|
listMinorVersions(String parent)
public final OracleDatabaseClient.ListMinorVersionsPagedResponse listMinorVersions(String parent)Lists all the valid minor versions for the given project, location, gi version and shape family.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString();
for (MinorVersion element : oracleDatabaseClient.listMinorVersions(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the MinorVersion resource with the format: projects/{project}/locations/{location}/giVersions/{gi_version} |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListMinorVersionsPagedResponse |
|
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;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListMinorVersionsRequest,ListMinorVersionsResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListMinorVersionsRequest,ListMinorVersionsPagedResponse> |
|
listOdbNetworks(ListOdbNetworksRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListOdbNetworksRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListOdbNetworksPagedResponse |
|
listOdbNetworks(LocationName parent)
public final OracleDatabaseClient.ListOdbNetworksPagedResponse listOdbNetworks(LocationName parent)Lists the ODB Networks in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent value for the ODB Network in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListOdbNetworksPagedResponse |
|
listOdbNetworks(String parent)
public final OracleDatabaseClient.ListOdbNetworksPagedResponse listOdbNetworks(String parent)Lists the ODB Networks in a given project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the ODB Network in the following format: projects/{project}/locations/{location}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListOdbNetworksPagedResponse |
|
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;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListOdbNetworksRequest,ListOdbNetworksResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListOdbNetworksRequest,ListOdbNetworksPagedResponse> |
|
listOdbSubnets(ListOdbSubnetsRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListOdbSubnetsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListOdbSubnetsPagedResponse |
|
listOdbSubnets(OdbNetworkName parent)
public final OracleDatabaseClient.ListOdbSubnetsPagedResponse listOdbSubnets(OdbNetworkName parent)Lists all the ODB Subnets in a given ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]");
for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
OdbNetworkNameRequired. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListOdbSubnetsPagedResponse |
|
listOdbSubnets(String parent)
public final OracleDatabaseClient.ListOdbSubnetsPagedResponse listOdbSubnets(String parent)Lists all the ODB Subnets in a given ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString();
for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListOdbSubnetsPagedResponse |
|
listOdbSubnetsCallable()
public final UnaryCallable<ListOdbSubnetsRequest,ListOdbSubnetsResponse> listOdbSubnetsCallable()Lists all the ODB Subnets in a given ODB Network.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
ListOdbSubnetsRequest request =
ListOdbSubnetsRequest.newBuilder()
.setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListOdbSubnetsResponse response =
oracleDatabaseClient.listOdbSubnetsCallable().call(request);
for (OdbSubnet element : response.getOdbSubnetsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListOdbSubnetsRequest,ListOdbSubnetsResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListOdbSubnetsRequest,ListOdbSubnetsPagedResponse> |
|
listPluggableDatabases(ListPluggableDatabasesRequest request)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListPluggableDatabasesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListPluggableDatabasesPagedResponse |
|
listPluggableDatabases(LocationName parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of PluggableDatabases. Format: projects/{project}/locations/{location} |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListPluggableDatabasesPagedResponse |
|
listPluggableDatabases(String parent)
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);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of PluggableDatabases. Format: projects/{project}/locations/{location} |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient.ListPluggableDatabasesPagedResponse |
|
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;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListPluggableDatabasesRequest,ListPluggableDatabasesResponse> |
|
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);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListPluggableDatabasesRequest,ListPluggableDatabasesPagedResponse> |
|
removeVirtualMachineExadbVmClusterAsync(ExadbVmClusterName name, List<String> hostnames)
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 | Description |
name |
ExadbVmClusterNameRequired. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. |
hostnames |
List<String>Required. The list of host names of db nodes to be removed from the ExadbVmCluster. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExadbVmCluster,OperationMetadata> |
|
removeVirtualMachineExadbVmClusterAsync(RemoveVirtualMachineExadbVmClusterRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
RemoveVirtualMachineExadbVmClusterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExadbVmCluster,OperationMetadata> |
|
removeVirtualMachineExadbVmClusterAsync(String name, List<String> hostnames)
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 | Description |
name |
StringRequired. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. |
hostnames |
List<String>Required. The list of host names of db nodes to be removed from the ExadbVmCluster. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExadbVmCluster,OperationMetadata> |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<RemoveVirtualMachineExadbVmClusterRequest,Operation> |
|
removeVirtualMachineExadbVmClusterOperationCallable()
public final OperationCallable<RemoveVirtualMachineExadbVmClusterRequest,ExadbVmCluster,OperationMetadata> removeVirtualMachineExadbVmClusterOperationCallable()Removes virtual machines from an existing exadb vm cluster.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
RemoveVirtualMachineExadbVmClusterRequest request =
RemoveVirtualMachineExadbVmClusterRequest.newBuilder()
.setName(
ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString())
.setRequestId("requestId693933066")
.addAllHostnames(new ArrayList<String>())
.build();
OperationFuture<ExadbVmCluster, OperationMetadata> future =
oracleDatabaseClient
.removeVirtualMachineExadbVmClusterOperationCallable()
.futureCall(request);
// Do something.
ExadbVmCluster response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<RemoveVirtualMachineExadbVmClusterRequest,ExadbVmCluster,OperationMetadata> |
|
restartAutonomousDatabaseAsync(AutonomousDatabaseName name)
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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
AutonomousDatabaseNameRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
restartAutonomousDatabaseAsync(RestartAutonomousDatabaseRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
RestartAutonomousDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
restartAutonomousDatabaseAsync(String name)
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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<RestartAutonomousDatabaseRequest,Operation> |
|
restartAutonomousDatabaseOperationCallable()
public final OperationCallable<RestartAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> restartAutonomousDatabaseOperationCallable()Restarts an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
RestartAutonomousDatabaseRequest request =
RestartAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.build();
OperationFuture<AutonomousDatabase, OperationMetadata> future =
oracleDatabaseClient.restartAutonomousDatabaseOperationCallable().futureCall(request);
// Do something.
AutonomousDatabase response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<RestartAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> |
|
restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, Timestamp restoreTime)
public final OperationFuture<AutonomousDatabase,OperationMetadata> restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, Timestamp restoreTime)Restores a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
AutonomousDatabaseName name =
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
Timestamp restoreTime = Timestamp.newBuilder().build();
AutonomousDatabase response =
oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get();
}
| Parameters | |
|---|---|
| Name | Description |
name |
AutonomousDatabaseNameRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
restoreTime |
TimestampRequired. The time and date to restore the database to. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
restoreAutonomousDatabaseAsync(RestoreAutonomousDatabaseRequest request)
public final OperationFuture<AutonomousDatabase,OperationMetadata> restoreAutonomousDatabaseAsync(RestoreAutonomousDatabaseRequest request)Restores a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
RestoreAutonomousDatabaseRequest request =
RestoreAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.setRestoreTime(Timestamp.newBuilder().build())
.build();
AutonomousDatabase response =
oracleDatabaseClient.restoreAutonomousDatabaseAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
RestoreAutonomousDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
restoreAutonomousDatabaseAsync(String name, Timestamp restoreTime)
public final OperationFuture<AutonomousDatabase,OperationMetadata> restoreAutonomousDatabaseAsync(String name, Timestamp restoreTime)Restores a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
String name =
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
Timestamp restoreTime = Timestamp.newBuilder().build();
AutonomousDatabase response =
oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get();
}
| Parameters | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
restoreTime |
TimestampRequired. The time and date to restore the database to. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
restoreAutonomousDatabaseCallable()
public final UnaryCallable<RestoreAutonomousDatabaseRequest,Operation> restoreAutonomousDatabaseCallable()Restores a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
RestoreAutonomousDatabaseRequest request =
RestoreAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.setRestoreTime(Timestamp.newBuilder().build())
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.restoreAutonomousDatabaseCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<RestoreAutonomousDatabaseRequest,Operation> |
|
restoreAutonomousDatabaseOperationCallable()
public final OperationCallable<RestoreAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> restoreAutonomousDatabaseOperationCallable()Restores a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
RestoreAutonomousDatabaseRequest request =
RestoreAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.setRestoreTime(Timestamp.newBuilder().build())
.build();
OperationFuture<AutonomousDatabase, OperationMetadata> future =
oracleDatabaseClient.restoreAutonomousDatabaseOperationCallable().futureCall(request);
// Do something.
AutonomousDatabase response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<RestoreAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> |
|
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()startAutonomousDatabaseAsync(AutonomousDatabaseName name)
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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
AutonomousDatabaseNameRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
startAutonomousDatabaseAsync(StartAutonomousDatabaseRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
StartAutonomousDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
startAutonomousDatabaseAsync(String name)
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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<StartAutonomousDatabaseRequest,Operation> |
|
startAutonomousDatabaseOperationCallable()
public final OperationCallable<StartAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> startAutonomousDatabaseOperationCallable()Starts an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
StartAutonomousDatabaseRequest request =
StartAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.build();
OperationFuture<AutonomousDatabase, OperationMetadata> future =
oracleDatabaseClient.startAutonomousDatabaseOperationCallable().futureCall(request);
// Do something.
AutonomousDatabase response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<StartAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> |
|
stopAutonomousDatabaseAsync(AutonomousDatabaseName name)
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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
AutonomousDatabaseNameRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
stopAutonomousDatabaseAsync(StopAutonomousDatabaseRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
StopAutonomousDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
stopAutonomousDatabaseAsync(String name)
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();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<StopAutonomousDatabaseRequest,Operation> |
|
stopAutonomousDatabaseOperationCallable()
public final OperationCallable<StopAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> stopAutonomousDatabaseOperationCallable()Stops an Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
StopAutonomousDatabaseRequest request =
StopAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.build();
OperationFuture<AutonomousDatabase, OperationMetadata> future =
oracleDatabaseClient.stopAutonomousDatabaseOperationCallable().futureCall(request);
// Do something.
AutonomousDatabase response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<StopAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> |
|
switchoverAutonomousDatabaseAsync(AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase)
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 | Description |
name |
AutonomousDatabaseNameRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
peerAutonomousDatabase |
AutonomousDatabaseNameRequired. The peer database name to switch over to. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
switchoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase)
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 | Description |
name |
AutonomousDatabaseNameRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
peerAutonomousDatabase |
StringRequired. The peer database name to switch over to. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
switchoverAutonomousDatabaseAsync(SwitchoverAutonomousDatabaseRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
SwitchoverAutonomousDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
switchoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase)
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 | Description |
name |
StringRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
peerAutonomousDatabase |
AutonomousDatabaseNameRequired. The peer database name to switch over to. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
switchoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase)
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 | Description |
name |
StringRequired. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. |
peerAutonomousDatabase |
StringRequired. The peer database name to switch over to. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<SwitchoverAutonomousDatabaseRequest,Operation> |
|
switchoverAutonomousDatabaseOperationCallable()
public final OperationCallable<SwitchoverAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> switchoverAutonomousDatabaseOperationCallable()Initiates a switchover of specified autonomous database to the associated peer database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
SwitchoverAutonomousDatabaseRequest request =
SwitchoverAutonomousDatabaseRequest.newBuilder()
.setName(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.setPeerAutonomousDatabase(
AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
.toString())
.build();
OperationFuture<AutonomousDatabase, OperationMetadata> future =
oracleDatabaseClient.switchoverAutonomousDatabaseOperationCallable().futureCall(request);
// Do something.
AutonomousDatabase response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<SwitchoverAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> |
|
updateAutonomousDatabaseAsync(AutonomousDatabase autonomousDatabase, FieldMask updateMask)
public final OperationFuture<AutonomousDatabase,OperationMetadata> updateAutonomousDatabaseAsync(AutonomousDatabase autonomousDatabase, 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 | |
|---|---|
| Name | Description |
autonomousDatabase |
AutonomousDatabaseRequired. The resource being updated |
updateMask |
FieldMaskOptional. 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. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
updateAutonomousDatabaseAsync(UpdateAutonomousDatabaseRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateAutonomousDatabaseRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<AutonomousDatabase,OperationMetadata> |
|
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();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateAutonomousDatabaseRequest,Operation> |
|
updateAutonomousDatabaseOperationCallable()
public final OperationCallable<UpdateAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> updateAutonomousDatabaseOperationCallable()Updates the parameters of a single Autonomous Database.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
UpdateAutonomousDatabaseRequest request =
UpdateAutonomousDatabaseRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<AutonomousDatabase, OperationMetadata> future =
oracleDatabaseClient.updateAutonomousDatabaseOperationCallable().futureCall(request);
// Do something.
AutonomousDatabase response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateAutonomousDatabaseRequest,AutonomousDatabase,OperationMetadata> |
|
updateExadbVmClusterAsync(ExadbVmCluster exadbVmCluster, FieldMask updateMask)
public final OperationFuture<ExadbVmCluster,OperationMetadata> updateExadbVmClusterAsync(ExadbVmCluster exadbVmCluster, 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 | |
|---|---|
| Name | Description |
exadbVmCluster |
ExadbVmClusterRequired. The resource being updated. |
updateMask |
FieldMaskOptional. 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. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExadbVmCluster,OperationMetadata> |
|
updateExadbVmClusterAsync(UpdateExadbVmClusterRequest request)
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();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateExadbVmClusterRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<ExadbVmCluster,OperationMetadata> |
|
updateExadbVmClusterCallable()
public final UnaryCallable<UpdateExadbVmClusterRequest,Operation> updateExadbVmClusterCallable()Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
UpdateExadbVmClusterRequest request =
UpdateExadbVmClusterRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setExadbVmCluster(ExadbVmCluster.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
oracleDatabaseClient.updateExadbVmClusterCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateExadbVmClusterRequest,Operation> |
|
updateExadbVmClusterOperationCallable()
public final OperationCallable<UpdateExadbVmClusterRequest,ExadbVmCluster,OperationMetadata> updateExadbVmClusterOperationCallable()Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
UpdateExadbVmClusterRequest request =
UpdateExadbVmClusterRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setExadbVmCluster(ExadbVmCluster.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<ExadbVmCluster, OperationMetadata> future =
oracleDatabaseClient.updateExadbVmClusterOperationCallable().futureCall(request);
// Do something.
ExadbVmCluster response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateExadbVmClusterRequest,ExadbVmCluster,OperationMetadata> |
|