gogol-admin-directory-0.4.0: Google Admin Directory 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.Directory.Roles.Patch

Contents

Description

Updates a role. This method supports patch semantics.

See: Admin Directory API Reference for directory.roles.patch.

Synopsis

REST Resource

type RolesPatchResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("roles" :> (Capture "roleId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Role :> Patch '[JSON] Role)))))))) Source #

A resource alias for directory.roles.patch method which the RolesPatch request conforms to.

Creating a Request

rolesPatch Source #

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

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

data RolesPatch Source #

Updates a role. This method supports patch semantics.

See: rolesPatch smart constructor.

Instances
Eq RolesPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Roles.Patch

Data RolesPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Roles.Patch

Methods

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

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

toConstr :: RolesPatch -> Constr #

dataTypeOf :: RolesPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RolesPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Roles.Patch

Generic RolesPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Roles.Patch

Associated Types

type Rep RolesPatch :: Type -> Type #

GoogleRequest RolesPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Roles.Patch

Associated Types

type Rs RolesPatch :: Type #

type Scopes RolesPatch :: [Symbol] #

type Rep RolesPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Roles.Patch

type Rep RolesPatch = D1 (MetaData "RolesPatch" "Network.Google.Resource.Directory.Roles.Patch" "gogol-admin-directory-0.4.0-18Kt4WHsDGO3AIyYatQRRN" False) (C1 (MetaCons "RolesPatch'" PrefixI True) (S1 (MetaSel (Just "_rpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Role) :*: (S1 (MetaSel (Just "_rpRoleId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rpCustomer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes RolesPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Roles.Patch

type Scopes RolesPatch = "https://www.googleapis.com/auth/admin.directory.rolemanagement" ': ([] :: [Symbol])
type Rs RolesPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Roles.Patch

Request Lenses

rpPayload :: Lens' RolesPatch Role Source #

Multipart request metadata.

rpRoleId :: Lens' RolesPatch Text Source #

Immutable ID of the role.

rpCustomer :: Lens' RolesPatch Text Source #

Immutable ID of the G Suite account.