module Network.Google.Resource.MapsEngine.RasterCollections.Permissions.BatchDelete
(
RasterCollectionsPermissionsBatchDeleteResource
, rasterCollectionsPermissionsBatchDelete
, RasterCollectionsPermissionsBatchDelete
, rcpbdPayload
, rcpbdId
) where
import Network.Google.MapsEngine.Types
import Network.Google.Prelude
type RasterCollectionsPermissionsBatchDeleteResource
=
"mapsengine" :>
"v1" :>
"rasterCollections" :>
Capture "id" Text :>
"permissions" :>
"batchDelete" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] PermissionsBatchDeleteRequest :>
Post '[JSON] PermissionsBatchDeleteResponse
data RasterCollectionsPermissionsBatchDelete = RasterCollectionsPermissionsBatchDelete'
{ _rcpbdPayload :: !PermissionsBatchDeleteRequest
, _rcpbdId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
rasterCollectionsPermissionsBatchDelete
:: PermissionsBatchDeleteRequest
-> Text
-> RasterCollectionsPermissionsBatchDelete
rasterCollectionsPermissionsBatchDelete pRcpbdPayload_ pRcpbdId_ =
RasterCollectionsPermissionsBatchDelete'
{ _rcpbdPayload = pRcpbdPayload_
, _rcpbdId = pRcpbdId_
}
rcpbdPayload :: Lens' RasterCollectionsPermissionsBatchDelete PermissionsBatchDeleteRequest
rcpbdPayload
= lens _rcpbdPayload (\ s a -> s{_rcpbdPayload = a})
rcpbdId :: Lens' RasterCollectionsPermissionsBatchDelete Text
rcpbdId = lens _rcpbdId (\ s a -> s{_rcpbdId = a})
instance GoogleRequest
RasterCollectionsPermissionsBatchDelete where
type Rs RasterCollectionsPermissionsBatchDelete =
PermissionsBatchDeleteResponse
type Scopes RasterCollectionsPermissionsBatchDelete =
'["https://www.googleapis.com/auth/mapsengine"]
requestClient
RasterCollectionsPermissionsBatchDelete'{..}
= go _rcpbdId (Just AltJSON) _rcpbdPayload
mapsEngineService
where go
= buildClient
(Proxy ::
Proxy
RasterCollectionsPermissionsBatchDeleteResource)
mempty