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.Databases.Patch

Contents

Description

Updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.

See: Cloud SQL Admin API Reference for sql.databases.patch.

Synopsis

REST Resource

type DatabasesPatchResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("databases" :> (Capture "database" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Database :> Patch '[JSON] Operation))))))))) Source #

A resource alias for sql.databases.patch method which the DatabasesPatch request conforms to.

Creating a Request

databasesPatch Source #

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

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

data DatabasesPatch Source #

Updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.

See: databasesPatch smart constructor.

Instances
Eq DatabasesPatch Source # 
Instance details

Defined in Network.Google.Resource.SQL.Databases.Patch

Data DatabasesPatch Source # 
Instance details

Defined in Network.Google.Resource.SQL.Databases.Patch

Methods

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

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

toConstr :: DatabasesPatch -> Constr #

dataTypeOf :: DatabasesPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DatabasesPatch Source # 
Instance details

Defined in Network.Google.Resource.SQL.Databases.Patch

Generic DatabasesPatch Source # 
Instance details

Defined in Network.Google.Resource.SQL.Databases.Patch

Associated Types

type Rep DatabasesPatch :: Type -> Type #

GoogleRequest DatabasesPatch Source # 
Instance details

Defined in Network.Google.Resource.SQL.Databases.Patch

Associated Types

type Rs DatabasesPatch :: Type #

type Scopes DatabasesPatch :: [Symbol] #

type Rep DatabasesPatch Source # 
Instance details

Defined in Network.Google.Resource.SQL.Databases.Patch

type Rep DatabasesPatch = D1 (MetaData "DatabasesPatch" "Network.Google.Resource.SQL.Databases.Patch" "gogol-sqladmin-0.4.0-E7PrzlfFsl19SfOpZznMc2" False) (C1 (MetaCons "DatabasesPatch'" PrefixI True) ((S1 (MetaSel (Just "_dpProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dpDatabase") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_dpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Database) :*: S1 (MetaSel (Just "_dpInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes DatabasesPatch Source # 
Instance details

Defined in Network.Google.Resource.SQL.Databases.Patch

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

Defined in Network.Google.Resource.SQL.Databases.Patch

Request Lenses

dpProject :: Lens' DatabasesPatch Text Source #

Project ID of the project that contains the instance.

dpDatabase :: Lens' DatabasesPatch Text Source #

Name of the database to be updated in the instance.

dpPayload :: Lens' DatabasesPatch Database Source #

Multipart request metadata.

dpInstance :: Lens' DatabasesPatch Text Source #

Database instance ID. This does not include the project ID.