pub struct InstanceMethods<'a> { /* private fields */ }
Expand description

A builder providing access to all methods supported on instance resources. It is not used directly, but through the SQLAdmin hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_sql1_beta4 as sql1_beta4;
 
use std::default::Default;
use sql1_beta4::{SQLAdmin, oauth2, hyper, hyper_rustls};
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
        secret,
        oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = SQLAdmin::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `add_server_ca(...)`, `clone(...)`, `delete(...)`, `demote_master(...)`, `export(...)`, `failover(...)`, `get(...)`, `import(...)`, `insert(...)`, `list(...)`, `list_server_cas(...)`, `patch(...)`, `promote_replica(...)`, `reset_ssl_config(...)`, `restart(...)`, `restore_backup(...)`, `rotate_server_ca(...)`, `start_replica(...)`, `stop_replica(...)`, `truncate_log(...)` and `update(...)`
// to build up your call.
let rb = hub.instances();

Implementations

Create a builder to help you perform the following task:

Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in.

Arguments
  • project - Project ID of the project that contains the instance.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.

Arguments
  • request - No description provided.
  • project - Project ID of the source as well as the clone Cloud SQL instance.
  • instance - The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.

Create a builder to help you perform the following task:

Deletes a Cloud SQL instance.

Arguments
  • project - Project ID of the project that contains the instance to be deleted.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.

Arguments
  • request - No description provided.
  • project - ID of the project that contains the instance.
  • instance - Cloud SQL instance name.

Create a builder to help you perform the following task:

Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.

Arguments
  • request - No description provided.
  • project - Project ID of the project that contains the instance to be exported.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Failover the instance to its failover replica instance. Using this operation might cause your instance to restart.

Arguments
  • request - No description provided.
  • project - ID of the project that contains the read replica.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Retrieves a resource containing information about a Cloud SQL instance.

Arguments
  • project - Project ID of the project that contains the instance.
  • instance - Database instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.

Arguments
  • request - No description provided.
  • project - Project ID of the project that contains the instance.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Creates a new Cloud SQL instance.

Arguments
  • request - No description provided.
  • project - Project ID of the project to which the newly created Cloud SQL instances should belong.

Create a builder to help you perform the following task:

Lists instances under a given project.

Arguments
  • project - Project ID of the project for which to list Cloud SQL instances.

Create a builder to help you perform the following task:

Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.

Arguments
  • project - Project ID of the project that contains the instance.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Updates settings of a Cloud SQL instance. This method supports patch semantics.

Arguments
  • request - No description provided.
  • project - Project ID of the project that contains the instance.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using this operation might cause your instance to restart.

Arguments
  • project - ID of the project that contains the read replica.
  • instance - Cloud SQL read replica instance name.

Create a builder to help you perform the following task:

Deletes all client certificates and generates a new server SSL certificate for the instance.

Arguments
  • project - Project ID of the project that contains the instance.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Restarts a Cloud SQL instance.

Arguments
  • project - Project ID of the project that contains the instance to be restarted.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.

Arguments
  • request - No description provided.
  • project - Project ID of the project that contains the instance.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method.

Arguments
  • request - No description provided.
  • project - Project ID of the project that contains the instance.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Starts the replication in the read replica instance.

Arguments
  • project - ID of the project that contains the read replica.
  • instance - Cloud SQL read replica instance name.

Create a builder to help you perform the following task:

Stops the replication in the read replica instance.

Arguments
  • project - ID of the project that contains the read replica.
  • instance - Cloud SQL read replica instance name.

Create a builder to help you perform the following task:

Truncate MySQL general and slow query log tables

Arguments
  • request - No description provided.
  • project - Project ID of the Cloud SQL project.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Create a builder to help you perform the following task:

Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.

Arguments
  • request - No description provided.
  • project - Project ID of the project that contains the instance.
  • instance - Cloud SQL instance ID. This does not include the project ID.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more