{-# 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.Delete
(
GroupsDeleteResource
, groupsDelete
, GroupsDelete
, gdXgafv
, gdUploadProtocol
, gdAccessToken
, gdUploadType
, gdName
, gdCallback
) where
import Network.Google.CloudIdentity.Types
import Network.Google.Prelude
type GroupsDeleteResource =
"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 GroupsDelete = GroupsDelete'
{ _gdXgafv :: !(Maybe Xgafv)
, _gdUploadProtocol :: !(Maybe Text)
, _gdAccessToken :: !(Maybe Text)
, _gdUploadType :: !(Maybe Text)
, _gdName :: !Text
, _gdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
groupsDelete
:: Text
-> GroupsDelete
groupsDelete pGdName_ =
GroupsDelete'
{ _gdXgafv = Nothing
, _gdUploadProtocol = Nothing
, _gdAccessToken = Nothing
, _gdUploadType = Nothing
, _gdName = pGdName_
, _gdCallback = Nothing
}
gdXgafv :: Lens' GroupsDelete (Maybe Xgafv)
gdXgafv = lens _gdXgafv (\ s a -> s{_gdXgafv = a})
gdUploadProtocol :: Lens' GroupsDelete (Maybe Text)
gdUploadProtocol
= lens _gdUploadProtocol
(\ s a -> s{_gdUploadProtocol = a})
gdAccessToken :: Lens' GroupsDelete (Maybe Text)
gdAccessToken
= lens _gdAccessToken
(\ s a -> s{_gdAccessToken = a})
gdUploadType :: Lens' GroupsDelete (Maybe Text)
gdUploadType
= lens _gdUploadType (\ s a -> s{_gdUploadType = a})
gdName :: Lens' GroupsDelete Text
gdName = lens _gdName (\ s a -> s{_gdName = a})
gdCallback :: Lens' GroupsDelete (Maybe Text)
gdCallback
= lens _gdCallback (\ s a -> s{_gdCallback = a})
instance GoogleRequest GroupsDelete where
type Rs GroupsDelete = Operation
type Scopes GroupsDelete = '[]
requestClient GroupsDelete'{..}
= go _gdName _gdXgafv _gdUploadProtocol
_gdAccessToken
_gdUploadType
_gdCallback
(Just AltJSON)
cloudIdentityService
where go
= buildClient (Proxy :: Proxy GroupsDeleteResource)
mempty