{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.CloudIdentity.Groups.Memberships.Delete
(
GroupsMembershipsDeleteResource
, groupsMembershipsDelete
, GroupsMembershipsDelete
, gmdXgafv
, gmdUploadProtocol
, gmdAccessToken
, gmdUploadType
, gmdName
, gmdCallback
) where
import Network.Google.CloudIdentity.Types
import Network.Google.Prelude
type GroupsMembershipsDeleteResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data GroupsMembershipsDelete = GroupsMembershipsDelete'
{ _gmdXgafv :: !(Maybe Xgafv)
, _gmdUploadProtocol :: !(Maybe Text)
, _gmdAccessToken :: !(Maybe Text)
, _gmdUploadType :: !(Maybe Text)
, _gmdName :: !Text
, _gmdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
groupsMembershipsDelete
:: Text
-> GroupsMembershipsDelete
groupsMembershipsDelete pGmdName_ =
GroupsMembershipsDelete'
{ _gmdXgafv = Nothing
, _gmdUploadProtocol = Nothing
, _gmdAccessToken = Nothing
, _gmdUploadType = Nothing
, _gmdName = pGmdName_
, _gmdCallback = Nothing
}
gmdXgafv :: Lens' GroupsMembershipsDelete (Maybe Xgafv)
gmdXgafv = lens _gmdXgafv (\ s a -> s{_gmdXgafv = a})
gmdUploadProtocol :: Lens' GroupsMembershipsDelete (Maybe Text)
gmdUploadProtocol
= lens _gmdUploadProtocol
(\ s a -> s{_gmdUploadProtocol = a})
gmdAccessToken :: Lens' GroupsMembershipsDelete (Maybe Text)
gmdAccessToken
= lens _gmdAccessToken
(\ s a -> s{_gmdAccessToken = a})
gmdUploadType :: Lens' GroupsMembershipsDelete (Maybe Text)
gmdUploadType
= lens _gmdUploadType
(\ s a -> s{_gmdUploadType = a})
gmdName :: Lens' GroupsMembershipsDelete Text
gmdName = lens _gmdName (\ s a -> s{_gmdName = a})
gmdCallback :: Lens' GroupsMembershipsDelete (Maybe Text)
gmdCallback
= lens _gmdCallback (\ s a -> s{_gmdCallback = a})
instance GoogleRequest GroupsMembershipsDelete where
type Rs GroupsMembershipsDelete = Operation
type Scopes GroupsMembershipsDelete = '[]
requestClient GroupsMembershipsDelete'{..}
= go _gmdName _gmdXgafv _gmdUploadProtocol
_gmdAccessToken
_gmdUploadType
_gmdCallback
(Just AltJSON)
cloudIdentityService
where go
= buildClient
(Proxy :: Proxy GroupsMembershipsDeleteResource)
mempty