gogol-sqladmin-0.4.0: Google Cloud SQL Admin 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 Admin 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 # 
Instance details

Defined in Network.Google.Resource.SQL.Instances.Failover

Data InstancesFailover Source # 
Instance details

Defined in Network.Google.Resource.SQL.Instances.Failover

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 # 
Instance details

Defined in Network.Google.Resource.SQL.Instances.Failover

Generic InstancesFailover Source # 
Instance details

Defined in Network.Google.Resource.SQL.Instances.Failover

Associated Types

type Rep InstancesFailover :: Type -> Type #

GoogleRequest InstancesFailover Source # 
Instance details

Defined in Network.Google.Resource.SQL.Instances.Failover

Associated Types

type Rs InstancesFailover :: Type #

type Scopes InstancesFailover :: [Symbol] #

type Rep InstancesFailover Source # 
Instance details

Defined in Network.Google.Resource.SQL.Instances.Failover

type Rep InstancesFailover = D1 (MetaData "InstancesFailover" "Network.Google.Resource.SQL.Instances.Failover" "gogol-sqladmin-0.4.0-E7PrzlfFsl19SfOpZznMc2" False) (C1 (MetaCons "InstancesFailover'" PrefixI True) (S1 (MetaSel (Just "_ifProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_ifPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstancesFailoverRequest) :*: S1 (MetaSel (Just "_ifInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes InstancesFailover Source # 
Instance details

Defined in Network.Google.Resource.SQL.Instances.Failover

type Scopes InstancesFailover = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/sqlservice.admin" ': ([] :: [Symbol]))
type Rs InstancesFailover Source # 
Instance details

Defined in Network.Google.Resource.SQL.Instances.Failover

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.