gogol-sqladmin-0.5.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.Insert

Contents

Description

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

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

Synopsis

REST Resource

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

A resource alias for sql.databases.insert method which the DatabasesInsert request conforms to.

Creating a Request

databasesInsert Source #

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

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

data DatabasesInsert Source #

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

See: databasesInsert smart constructor.

Instances
Eq DatabasesInsert Source # 
Instance details

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

Data DatabasesInsert Source # 
Instance details

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

Methods

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

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

toConstr :: DatabasesInsert -> Constr #

dataTypeOf :: DatabasesInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DatabasesInsert Source # 
Instance details

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

Generic DatabasesInsert Source # 
Instance details

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

Associated Types

type Rep DatabasesInsert :: Type -> Type #

GoogleRequest DatabasesInsert Source # 
Instance details

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

Associated Types

type Rs DatabasesInsert :: Type #

type Scopes DatabasesInsert :: [Symbol] #

type Rep DatabasesInsert Source # 
Instance details

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

type Rep DatabasesInsert = D1 (MetaData "DatabasesInsert" "Network.Google.Resource.SQL.Databases.Insert" "gogol-sqladmin-0.5.0-8B6e7VZcIFdAjKub4oGppa" False) (C1 (MetaCons "DatabasesInsert'" PrefixI True) (S1 (MetaSel (Just "_diProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_diPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Database) :*: S1 (MetaSel (Just "_diInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes DatabasesInsert Source # 
Instance details

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

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

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

Request Lenses

diProject :: Lens' DatabasesInsert Text Source #

Project ID of the project that contains the instance.

diPayload :: Lens' DatabasesInsert Database Source #

Multipart request metadata.

diInstance :: Lens' DatabasesInsert Text Source #

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