gogol-dfareporting-0.4.0: Google DCM/DFA Reporting And Trafficking 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.DFAReporting.UserRoles.Insert

Contents

Description

Inserts a new user role.

See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.userRoles.insert.

Synopsis

REST Resource

type UserRolesInsertResource = "dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("userRoles" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UserRole :> Post '[JSON] UserRole)))))) Source #

A resource alias for dfareporting.userRoles.insert method which the UserRolesInsert request conforms to.

Creating a Request

userRolesInsert Source #

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

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

data UserRolesInsert Source #

Inserts a new user role.

See: userRolesInsert smart constructor.

Instances
Eq UserRolesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.UserRoles.Insert

Data UserRolesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.UserRoles.Insert

Methods

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

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

toConstr :: UserRolesInsert -> Constr #

dataTypeOf :: UserRolesInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UserRolesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.UserRoles.Insert

Generic UserRolesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.UserRoles.Insert

Associated Types

type Rep UserRolesInsert :: Type -> Type #

GoogleRequest UserRolesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.UserRoles.Insert

Associated Types

type Rs UserRolesInsert :: Type #

type Scopes UserRolesInsert :: [Symbol] #

type Rep UserRolesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.UserRoles.Insert

type Rep UserRolesInsert = D1 (MetaData "UserRolesInsert" "Network.Google.Resource.DFAReporting.UserRoles.Insert" "gogol-dfareporting-0.4.0-9N9I1R95b3Y5YmOKldvlKw" False) (C1 (MetaCons "UserRolesInsert'" PrefixI True) (S1 (MetaSel (Just "_uriProFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64)) :*: S1 (MetaSel (Just "_uriPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UserRole)))
type Scopes UserRolesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.UserRoles.Insert

type Scopes UserRolesInsert = "https://www.googleapis.com/auth/dfatrafficking" ': ([] :: [Symbol])
type Rs UserRolesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.UserRoles.Insert

Request Lenses

uriProFileId :: Lens' UserRolesInsert Int64 Source #

User profile ID associated with this request.

uriPayload :: Lens' UserRolesInsert UserRole Source #

Multipart request metadata.