{-# 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.CloudUserAccounts.Groups.Delete
(
GroupsDeleteResource
, groupsDelete
, GroupsDelete
, gdProject
, gdGroupName
) where
import Network.Google.Prelude
import Network.Google.UserAccounts.Types
type GroupsDeleteResource =
"clouduseraccounts" :>
"beta" :>
"projects" :>
Capture "project" Text :>
"global" :>
"groups" :>
Capture "groupName" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
-- | Deletes the specified Group resource.
--
-- /See:/ 'groupsDelete' smart constructor.
data GroupsDelete = GroupsDelete'
{ _gdProject :: !Text
, _gdGroupName :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
-- | Creates a value of 'GroupsDelete' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'gdProject'
--
-- * 'gdGroupName'
groupsDelete
:: Text -- ^ 'gdProject'
-> Text -- ^ 'gdGroupName'
-> GroupsDelete
groupsDelete pGdProject_ pGdGroupName_ =
GroupsDelete'
{ _gdProject = pGdProject_
, _gdGroupName = pGdGroupName_
}
-- | Project ID for this request.
gdProject :: Lens' GroupsDelete Text
gdProject
= lens _gdProject (\ s a -> s{_gdProject = a})
-- | Name of the Group resource to delete.
gdGroupName :: Lens' GroupsDelete Text
gdGroupName
= lens _gdGroupName (\ s a -> s{_gdGroupName = a})
instance GoogleRequest GroupsDelete where
type Rs GroupsDelete = Operation
type Scopes GroupsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud.useraccounts"]
requestClient GroupsDelete'{..}
= go _gdProject _gdGroupName (Just AltJSON)
userAccountsService
where go
= buildClient (Proxy :: Proxy GroupsDeleteResource)
mempty