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.Users.Insert

Contents

Description

Creates a new user in a Cloud SQL instance.

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

Synopsis

REST Resource

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

A resource alias for sql.users.insert method which the UsersInsert request conforms to.

Creating a Request

usersInsert Source #

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

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

data UsersInsert Source #

Creates a new user in a Cloud SQL instance.

See: usersInsert smart constructor.

Instances
Eq UsersInsert Source # 
Instance details

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

Data UsersInsert Source # 
Instance details

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

Methods

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

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

toConstr :: UsersInsert -> Constr #

dataTypeOf :: UsersInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersInsert Source # 
Instance details

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

Generic UsersInsert Source # 
Instance details

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

Associated Types

type Rep UsersInsert :: Type -> Type #

GoogleRequest UsersInsert Source # 
Instance details

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

Associated Types

type Rs UsersInsert :: Type #

type Scopes UsersInsert :: [Symbol] #

type Rep UsersInsert Source # 
Instance details

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

type Rep UsersInsert = D1 (MetaData "UsersInsert" "Network.Google.Resource.SQL.Users.Insert" "gogol-sqladmin-0.4.0-E7PrzlfFsl19SfOpZznMc2" False) (C1 (MetaCons "UsersInsert'" PrefixI True) (S1 (MetaSel (Just "_uiProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_uiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 User) :*: S1 (MetaSel (Just "_uiInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersInsert Source # 
Instance details

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

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

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

Request Lenses

uiProject :: Lens' UsersInsert Text Source #

Project ID of the project that contains the instance.

uiPayload :: Lens' UsersInsert User Source #

Multipart request metadata.

uiInstance :: Lens' UsersInsert Text Source #

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