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