gogol-sqladmin-0.3.0: Google Cloud SQL Administration SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.SQL.Instances.Failover

Contents

Description

Failover the instance to its failover replica instance.

See: Cloud SQL Administration API Reference for sql.instances.failover.

Synopsis

REST Resource

type InstancesFailoverResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("failover" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesFailoverRequest :> Post '[JSON] Operation)))))))) Source #

A resource alias for sql.instances.failover method which the InstancesFailover request conforms to.

Creating a Request

instancesFailover Source #

Creates a value of InstancesFailover with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data InstancesFailover Source #

Failover the instance to its failover replica instance.

See: instancesFailover smart constructor.

Instances

Eq InstancesFailover Source # 
Data InstancesFailover Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InstancesFailover -> c InstancesFailover #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InstancesFailover #

toConstr :: InstancesFailover -> Constr #

dataTypeOf :: InstancesFailover -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c InstancesFailover) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InstancesFailover) #

gmapT :: (forall b. Data b => b -> b) -> InstancesFailover -> InstancesFailover #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InstancesFailover -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InstancesFailover -> r #

gmapQ :: (forall d. Data d => d -> u) -> InstancesFailover -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> InstancesFailover -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> InstancesFailover -> m InstancesFailover #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InstancesFailover -> m InstancesFailover #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InstancesFailover -> m InstancesFailover #

Show InstancesFailover Source # 
Generic InstancesFailover Source # 
GoogleRequest InstancesFailover Source # 
type Rep InstancesFailover Source # 
type Rep InstancesFailover = D1 (MetaData "InstancesFailover" "Network.Google.Resource.SQL.Instances.Failover" "gogol-sqladmin-0.3.0-F2MMYO8dA77HaZ2Gbm80uU" False) (C1 (MetaCons "InstancesFailover'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ifProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_ifPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstancesFailoverRequest)) (S1 (MetaSel (Just Symbol "_ifInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstancesFailover Source # 
type Scopes InstancesFailover = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/sqlservice.admin" ([] Symbol))
type Rs InstancesFailover Source # 

Request Lenses

ifProject :: Lens' InstancesFailover Text Source #

ID of the project that contains the read replica.

ifInstance :: Lens' InstancesFailover Text Source #

Cloud SQL instance ID. This does not include the project ID.