{-# 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.Get
(
ProjectsGroupsGetResource
, projectsGroupsGet
, ProjectsGroupsGet
, pggXgafv
, pggUploadProtocol
, pggAccessToken
, pggUploadType
, pggName
, pggCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type ProjectsGroupsGetResource =
"v3" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Group
data ProjectsGroupsGet = ProjectsGroupsGet'
{ _pggXgafv :: !(Maybe Xgafv)
, _pggUploadProtocol :: !(Maybe Text)
, _pggAccessToken :: !(Maybe Text)
, _pggUploadType :: !(Maybe Text)
, _pggName :: !Text
, _pggCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsGroupsGet
:: Text
-> ProjectsGroupsGet
projectsGroupsGet pPggName_ =
ProjectsGroupsGet'
{ _pggXgafv = Nothing
, _pggUploadProtocol = Nothing
, _pggAccessToken = Nothing
, _pggUploadType = Nothing
, _pggName = pPggName_
, _pggCallback = Nothing
}
pggXgafv :: Lens' ProjectsGroupsGet (Maybe Xgafv)
pggXgafv = lens _pggXgafv (\ s a -> s{_pggXgafv = a})
pggUploadProtocol :: Lens' ProjectsGroupsGet (Maybe Text)
pggUploadProtocol
= lens _pggUploadProtocol
(\ s a -> s{_pggUploadProtocol = a})
pggAccessToken :: Lens' ProjectsGroupsGet (Maybe Text)
pggAccessToken
= lens _pggAccessToken
(\ s a -> s{_pggAccessToken = a})
pggUploadType :: Lens' ProjectsGroupsGet (Maybe Text)
pggUploadType
= lens _pggUploadType
(\ s a -> s{_pggUploadType = a})
pggName :: Lens' ProjectsGroupsGet Text
pggName = lens _pggName (\ s a -> s{_pggName = a})
pggCallback :: Lens' ProjectsGroupsGet (Maybe Text)
pggCallback
= lens _pggCallback (\ s a -> s{_pggCallback = a})
instance GoogleRequest ProjectsGroupsGet where
type Rs ProjectsGroupsGet = Group
type Scopes ProjectsGroupsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/monitoring.read"]
requestClient ProjectsGroupsGet'{..}
= go _pggName _pggXgafv _pggUploadProtocol
_pggAccessToken
_pggUploadType
_pggCallback
(Just AltJSON)
monitoringService
where go
= buildClient
(Proxy :: Proxy ProjectsGroupsGetResource)
mempty