Struct google_sqladmin1_beta4::InstanceMethods [] [src]

pub struct InstanceMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

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 yup_oauth2 as oauth2;
extern crate google_sqladmin1_beta4 as sqladmin1_beta4;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use sqladmin1_beta4::SQLAdmin;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::new(),
                              <MemoryStorage as Default>::default(), None);
let mut hub = SQLAdmin::new(hyper::Client::new(), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `clone(...)`, `delete(...)`, `export(...)`, `failover(...)`, `get(...)`, `import(...)`, `insert(...)`, `list(...)`, `patch(...)`, `promote_replica(...)`, `reset_ssl_config(...)`, `restart(...)`, `restore_backup(...)`, `start_replica(...)`, `stop_replica(...)`, `truncate_log(...)` and `update(...)`
// to build up your call.
let rb = hub.instances();

Methods

impl<'a, C, A> InstanceMethods<'a, C, A>
[src]

Create a builder to help you perform the following task:

Truncate MySQL general and slow query log tables

Arguments

  • project - Project ID of the Cloud SQL project.
  • instance - Cloud SQL instance ID. This does not include the project ID.
  • logType - The type of Log Table to truncate. Valid values are MYSQL_GENERAL_TABLE and MYSQL_SLOW_TABLE

Create a builder to help you perform the following task:

Failover the instance to its failover replica instance.

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:

Deletes all client certificates and generates a new server SSL certificate for the instance. The changes will not take effect until the instance is restarted. Existing instances without a server certificate will need to call this once to set a server certificate.

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:

Promotes the read replica instance to be a stand-alone Cloud SQL 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:

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:

Updates settings of a Cloud SQL instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.. 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:

Creates a Cloud SQL instance as a clone of the source instance. The API is not ready for Second Generation instances yet.

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:

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:

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:

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 in the alphabetical order of the instance name.

Arguments

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

Create a builder to help you perform the following task:

Imports data into a Cloud SQL instance from a MySQL dump file in Google 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:

Updates settings of a Cloud SQL instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.

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:

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:

Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a MySQL dump 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:

Restores a backup of a Cloud SQL instance.

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

impl<'a, C, A> MethodsBuilder for InstanceMethods<'a, C, A>
[src]