gogol-android-enterprise-0.1.1: Google Play EMM 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.AndroidEnterprise.Collectionviewers.Patch

Contents

Description

Adds the user to the list of those specifically allowed to see the collection. If the collection's visibility is set to viewersOnly then only such users will see the collection. This method supports patch semantics.

See: Google Play EMM API Reference for androidenterprise.collectionviewers.patch.

Synopsis

REST Resource

type CollectionviewersPatchResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("collections" :> (Capture "collectionId" Text :> ("users" :> (Capture "userId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] User :> Patch '[JSON] User))))))))) Source #

A resource alias for androidenterprise.collectionviewers.patch method which the CollectionviewersPatch request conforms to.

Creating a Request

collectionviewersPatch Source #

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

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

data CollectionviewersPatch Source #

Adds the user to the list of those specifically allowed to see the collection. If the collection's visibility is set to viewersOnly then only such users will see the collection. This method supports patch semantics.

See: collectionviewersPatch smart constructor.

Instances

Eq CollectionviewersPatch Source # 
Data CollectionviewersPatch Source # 

Methods

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

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

toConstr :: CollectionviewersPatch -> Constr #

dataTypeOf :: CollectionviewersPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CollectionviewersPatch Source # 
Generic CollectionviewersPatch Source # 
GoogleRequest CollectionviewersPatch Source # 
type Rep CollectionviewersPatch Source # 
type Rep CollectionviewersPatch = D1 (MetaData "CollectionviewersPatch" "Network.Google.Resource.AndroidEnterprise.Collectionviewers.Patch" "gogol-android-enterprise-0.1.1-2K85VOQSryw9Pbs20PQ0Qt" False) (C1 (MetaCons "CollectionviewersPatch'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cppEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cppCollectionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cppPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 User)) (S1 (MetaSel (Just Symbol "_cppUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes CollectionviewersPatch Source # 
type Scopes CollectionviewersPatch = (:) Symbol "https://www.googleapis.com/auth/androidenterprise" ([] Symbol)
type Rs CollectionviewersPatch Source # 

Request Lenses

cppPayload :: Lens' CollectionviewersPatch User Source #

Multipart request metadata.