{-# 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.Get
(
GroupsGetResource
, groupsGet
, GroupsGet
, ggXgafv
, ggUploadProtocol
, ggAccessToken
, ggUploadType
, ggName
, ggCallback
) where
import Network.Google.CloudIdentity.Types
import Network.Google.Prelude
type GroupsGetResource =
"v1" :>
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 GroupsGet = GroupsGet'
{ _ggXgafv :: !(Maybe Xgafv)
, _ggUploadProtocol :: !(Maybe Text)
, _ggAccessToken :: !(Maybe Text)
, _ggUploadType :: !(Maybe Text)
, _ggName :: !Text
, _ggCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
groupsGet
:: Text
-> GroupsGet
groupsGet pGgName_ =
GroupsGet'
{ _ggXgafv = Nothing
, _ggUploadProtocol = Nothing
, _ggAccessToken = Nothing
, _ggUploadType = Nothing
, _ggName = pGgName_
, _ggCallback = Nothing
}
ggXgafv :: Lens' GroupsGet (Maybe Xgafv)
ggXgafv = lens _ggXgafv (\ s a -> s{_ggXgafv = a})
ggUploadProtocol :: Lens' GroupsGet (Maybe Text)
ggUploadProtocol
= lens _ggUploadProtocol
(\ s a -> s{_ggUploadProtocol = a})
ggAccessToken :: Lens' GroupsGet (Maybe Text)
ggAccessToken
= lens _ggAccessToken
(\ s a -> s{_ggAccessToken = a})
ggUploadType :: Lens' GroupsGet (Maybe Text)
ggUploadType
= lens _ggUploadType (\ s a -> s{_ggUploadType = a})
ggName :: Lens' GroupsGet Text
ggName = lens _ggName (\ s a -> s{_ggName = a})
ggCallback :: Lens' GroupsGet (Maybe Text)
ggCallback
= lens _ggCallback (\ s a -> s{_ggCallback = a})
instance GoogleRequest GroupsGet where
type Rs GroupsGet = Group
type Scopes GroupsGet = '[]
requestClient GroupsGet'{..}
= go _ggName _ggXgafv _ggUploadProtocol
_ggAccessToken
_ggUploadType
_ggCallback
(Just AltJSON)
cloudIdentityService
where go
= buildClient (Proxy :: Proxy GroupsGetResource)
mempty