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

Contents

Description

Updates a resource containing information about a database inside a Cloud SQL instance.

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

Synopsis

REST Resource

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

A resource alias for sql.databases.update method which the DatabasesUpdate request conforms to.

Creating a Request

databasesUpdate Source #

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

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

data DatabasesUpdate Source #

Updates a resource containing information about a database inside a Cloud SQL instance.

See: databasesUpdate smart constructor.

Instances
Eq DatabasesUpdate Source # 
Instance details

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

Data DatabasesUpdate Source # 
Instance details

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

Methods

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

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

toConstr :: DatabasesUpdate -> Constr #

dataTypeOf :: DatabasesUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DatabasesUpdate Source # 
Instance details

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

Generic DatabasesUpdate Source # 
Instance details

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

Associated Types

type Rep DatabasesUpdate :: Type -> Type #

GoogleRequest DatabasesUpdate Source # 
Instance details

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

Associated Types

type Rs DatabasesUpdate :: Type #

type Scopes DatabasesUpdate :: [Symbol] #

type Rep DatabasesUpdate Source # 
Instance details

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

type Rep DatabasesUpdate = D1 (MetaData "DatabasesUpdate" "Network.Google.Resource.SQL.Databases.Update" "gogol-sqladmin-0.4.0-E7PrzlfFsl19SfOpZznMc2" False) (C1 (MetaCons "DatabasesUpdate'" PrefixI True) ((S1 (MetaSel (Just "_duProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_duDatabase") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_duPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Database) :*: S1 (MetaSel (Just "_duInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes DatabasesUpdate Source # 
Instance details

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

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

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

Request Lenses

duProject :: Lens' DatabasesUpdate Text Source #

Project ID of the project that contains the instance.

duDatabase :: Lens' DatabasesUpdate Text Source #

Name of the database to be updated in the instance.

duPayload :: Lens' DatabasesUpdate Database Source #

Multipart request metadata.

duInstance :: Lens' DatabasesUpdate Text Source #

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