Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
.
- 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)))))))))
- collectionviewersPatch :: Text -> Text -> User -> Text -> CollectionviewersPatch
- data CollectionviewersPatch
- cppEnterpriseId :: Lens' CollectionviewersPatch Text
- cppCollectionId :: Lens' CollectionviewersPatch Text
- cppPayload :: Lens' CollectionviewersPatch User
- cppUserId :: Lens' CollectionviewersPatch Text
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 #
:: Text | |
-> Text | |
-> User | |
-> Text | |
-> CollectionviewersPatch |
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.
Request Lenses
cppEnterpriseId :: Lens' CollectionviewersPatch Text Source #
The ID of the enterprise.
cppCollectionId :: Lens' CollectionviewersPatch Text Source #
The ID of the collection.
cppPayload :: Lens' CollectionviewersPatch User Source #
Multipart request metadata.