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.Update

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.

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

Synopsis

REST Resource

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

A resource alias for androidenterprise.collectionviewers.update method which the CollectionviewersUpdate request conforms to.

Creating a Request

collectionviewersUpdate Source #

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

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

data CollectionviewersUpdate 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.

See: collectionviewersUpdate smart constructor.

Instances

Eq CollectionviewersUpdate Source # 
Data CollectionviewersUpdate Source # 

Methods

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

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

toConstr :: CollectionviewersUpdate -> Constr #

dataTypeOf :: CollectionviewersUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Request Lenses

cuPayload :: Lens' CollectionviewersUpdate User Source #

Multipart request metadata.