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.DemoteMaster

Contents

Description

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

See: Cloud SQL Admin API Reference for sql.instances.demoteMaster.

Synopsis

REST Resource

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

A resource alias for sql.instances.demoteMaster method which the InstancesDemoteMaster request conforms to.

Creating a Request

instancesDemoteMaster Source #

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

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

data InstancesDemoteMaster Source #

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

See: instancesDemoteMaster smart constructor.

Instances
Eq InstancesDemoteMaster Source # 
Instance details

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

Data InstancesDemoteMaster Source # 
Instance details

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

Methods

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

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

toConstr :: InstancesDemoteMaster -> Constr #

dataTypeOf :: InstancesDemoteMaster -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstancesDemoteMaster Source # 
Instance details

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

Generic InstancesDemoteMaster Source # 
Instance details

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

Associated Types

type Rep InstancesDemoteMaster :: Type -> Type #

GoogleRequest InstancesDemoteMaster Source # 
Instance details

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

type Rep InstancesDemoteMaster Source # 
Instance details

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

type Rep InstancesDemoteMaster = D1 (MetaData "InstancesDemoteMaster" "Network.Google.Resource.SQL.Instances.DemoteMaster" "gogol-sqladmin-0.4.0-E7PrzlfFsl19SfOpZznMc2" False) (C1 (MetaCons "InstancesDemoteMaster'" PrefixI True) (S1 (MetaSel (Just "_idmProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_idmPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstancesDemoteMasterRequest) :*: S1 (MetaSel (Just "_idmInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes InstancesDemoteMaster Source # 
Instance details

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

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

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

Request Lenses

idmProject :: Lens' InstancesDemoteMaster Text Source #

ID of the project that contains the instance.

idmInstance :: Lens' InstancesDemoteMaster Text Source #

Cloud SQL instance name.