{-# 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.Monitoring.Projects.Groups.Delete
(
ProjectsGroupsDeleteResource
, projectsGroupsDelete
, ProjectsGroupsDelete
, pgdXgafv
, pgdUploadProtocol
, pgdAccessToken
, pgdUploadType
, pgdName
, pgdCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type ProjectsGroupsDeleteResource =
"v3" :>
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] Empty
data ProjectsGroupsDelete = ProjectsGroupsDelete'
{ _pgdXgafv :: !(Maybe Xgafv)
, _pgdUploadProtocol :: !(Maybe Text)
, _pgdAccessToken :: !(Maybe Text)
, _pgdUploadType :: !(Maybe Text)
, _pgdName :: !Text
, _pgdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsGroupsDelete
:: Text
-> ProjectsGroupsDelete
projectsGroupsDelete pPgdName_ =
ProjectsGroupsDelete'
{ _pgdXgafv = Nothing
, _pgdUploadProtocol = Nothing
, _pgdAccessToken = Nothing
, _pgdUploadType = Nothing
, _pgdName = pPgdName_
, _pgdCallback = Nothing
}
pgdXgafv :: Lens' ProjectsGroupsDelete (Maybe Xgafv)
pgdXgafv = lens _pgdXgafv (\ s a -> s{_pgdXgafv = a})
pgdUploadProtocol :: Lens' ProjectsGroupsDelete (Maybe Text)
pgdUploadProtocol
= lens _pgdUploadProtocol
(\ s a -> s{_pgdUploadProtocol = a})
pgdAccessToken :: Lens' ProjectsGroupsDelete (Maybe Text)
pgdAccessToken
= lens _pgdAccessToken
(\ s a -> s{_pgdAccessToken = a})
pgdUploadType :: Lens' ProjectsGroupsDelete (Maybe Text)
pgdUploadType
= lens _pgdUploadType
(\ s a -> s{_pgdUploadType = a})
pgdName :: Lens' ProjectsGroupsDelete Text
pgdName = lens _pgdName (\ s a -> s{_pgdName = a})
pgdCallback :: Lens' ProjectsGroupsDelete (Maybe Text)
pgdCallback
= lens _pgdCallback (\ s a -> s{_pgdCallback = a})
instance GoogleRequest ProjectsGroupsDelete where
type Rs ProjectsGroupsDelete = Empty
type Scopes ProjectsGroupsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring"]
requestClient ProjectsGroupsDelete'{..}
= go _pgdName _pgdXgafv _pgdUploadProtocol
_pgdAccessToken
_pgdUploadType
_pgdCallback
(Just AltJSON)
monitoringService
where go
= buildClient
(Proxy :: Proxy ProjectsGroupsDeleteResource)
mempty