pub struct OracleDatabase { /* private fields */ }
Expand description
Implements a client for the Oracle Database@Google Cloud API.
§Example
let client = OracleDatabase::builder().build().await?;
// use `client` to make requests to the Oracle Database@Google Cloud API.
§Service Description
Service describing handlers for resources
§Configuration
To configure OracleDatabase
use the with_*
methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://oracledatabase.googleapis.com
). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
OracleDatabase
holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap OracleDatabase
in
an Rc or Arc to reuse it, because it
already uses an Arc
internally.
Implementations§
Source§impl OracleDatabase
impl OracleDatabase
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for OracleDatabase.
let client = OracleDatabase::builder().build().await?;
Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: OracleDatabase + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: OracleDatabase + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_cloud_exadata_infrastructures(
&self,
) -> ListCloudExadataInfrastructures
pub fn list_cloud_exadata_infrastructures( &self, ) -> ListCloudExadataInfrastructures
Lists Exadata Infrastructures in a given project and location.
Sourcepub fn get_cloud_exadata_infrastructure(&self) -> GetCloudExadataInfrastructure
pub fn get_cloud_exadata_infrastructure(&self) -> GetCloudExadataInfrastructure
Gets details of a single Exadata Infrastructure.
Sourcepub fn create_cloud_exadata_infrastructure(
&self,
) -> CreateCloudExadataInfrastructure
pub fn create_cloud_exadata_infrastructure( &self, ) -> CreateCloudExadataInfrastructure
Creates a new Exadata Infrastructure in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_cloud_exadata_infrastructure(
&self,
) -> DeleteCloudExadataInfrastructure
pub fn delete_cloud_exadata_infrastructure( &self, ) -> DeleteCloudExadataInfrastructure
Deletes a single Exadata Infrastructure.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_cloud_vm_clusters(&self) -> ListCloudVmClusters
pub fn list_cloud_vm_clusters(&self) -> ListCloudVmClusters
Lists the VM Clusters in a given project and location.
Sourcepub fn get_cloud_vm_cluster(&self) -> GetCloudVmCluster
pub fn get_cloud_vm_cluster(&self) -> GetCloudVmCluster
Gets details of a single VM Cluster.
Sourcepub fn create_cloud_vm_cluster(&self) -> CreateCloudVmCluster
pub fn create_cloud_vm_cluster(&self) -> CreateCloudVmCluster
Creates a new VM Cluster in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_cloud_vm_cluster(&self) -> DeleteCloudVmCluster
pub fn delete_cloud_vm_cluster(&self) -> DeleteCloudVmCluster
Deletes a single VM Cluster.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_entitlements(&self) -> ListEntitlements
pub fn list_entitlements(&self) -> ListEntitlements
Lists the entitlements in a given project.
Sourcepub fn list_db_servers(&self) -> ListDbServers
pub fn list_db_servers(&self) -> ListDbServers
Lists the database servers of an Exadata Infrastructure instance.
Sourcepub fn list_db_nodes(&self) -> ListDbNodes
pub fn list_db_nodes(&self) -> ListDbNodes
Lists the database nodes of a VM Cluster.
Sourcepub fn list_gi_versions(&self) -> ListGiVersions
pub fn list_gi_versions(&self) -> ListGiVersions
Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.
Sourcepub fn list_db_system_shapes(&self) -> ListDbSystemShapes
pub fn list_db_system_shapes(&self) -> ListDbSystemShapes
Lists the database system shapes available for the project and location.
Sourcepub fn list_autonomous_databases(&self) -> ListAutonomousDatabases
pub fn list_autonomous_databases(&self) -> ListAutonomousDatabases
Lists the Autonomous Databases in a given project and location.
Sourcepub fn get_autonomous_database(&self) -> GetAutonomousDatabase
pub fn get_autonomous_database(&self) -> GetAutonomousDatabase
Gets the details of a single Autonomous Database.
Sourcepub fn create_autonomous_database(&self) -> CreateAutonomousDatabase
pub fn create_autonomous_database(&self) -> CreateAutonomousDatabase
Creates a new Autonomous Database in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_autonomous_database(&self) -> DeleteAutonomousDatabase
pub fn delete_autonomous_database(&self) -> DeleteAutonomousDatabase
Deletes a single Autonomous Database.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn restore_autonomous_database(&self) -> RestoreAutonomousDatabase
pub fn restore_autonomous_database(&self) -> RestoreAutonomousDatabase
Restores a single Autonomous Database.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn generate_autonomous_database_wallet(
&self,
) -> GenerateAutonomousDatabaseWallet
pub fn generate_autonomous_database_wallet( &self, ) -> GenerateAutonomousDatabaseWallet
Generates a wallet for an Autonomous Database.
Sourcepub fn list_autonomous_db_versions(&self) -> ListAutonomousDbVersions
pub fn list_autonomous_db_versions(&self) -> ListAutonomousDbVersions
Lists all the available Autonomous Database versions for a project and location.
Sourcepub fn list_autonomous_database_character_sets(
&self,
) -> ListAutonomousDatabaseCharacterSets
pub fn list_autonomous_database_character_sets( &self, ) -> ListAutonomousDatabaseCharacterSets
Lists Autonomous Database Character Sets in a given project and location.
Sourcepub fn list_autonomous_database_backups(&self) -> ListAutonomousDatabaseBackups
pub fn list_autonomous_database_backups(&self) -> ListAutonomousDatabaseBackups
Lists the long-term and automatic backups of an Autonomous Database.
Sourcepub fn stop_autonomous_database(&self) -> StopAutonomousDatabase
pub fn stop_autonomous_database(&self) -> StopAutonomousDatabase
Stops an Autonomous Database.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn start_autonomous_database(&self) -> StartAutonomousDatabase
pub fn start_autonomous_database(&self) -> StartAutonomousDatabase
Starts an Autonomous Database.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn restart_autonomous_database(&self) -> RestartAutonomousDatabase
pub fn restart_autonomous_database(&self) -> RestartAutonomousDatabase
Restarts an Autonomous Database.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self) -> GetLocation
pub fn get_location(&self) -> GetLocation
Gets information about a location.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self) -> DeleteOperation
pub fn delete_operation(&self) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self) -> CancelOperation
pub fn cancel_operation(&self) -> CancelOperation
Provides the Operations service functionality in this service.
Trait Implementations§
Source§impl Clone for OracleDatabase
impl Clone for OracleDatabase
Source§fn clone(&self) -> OracleDatabase
fn clone(&self) -> OracleDatabase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more