{-# 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.Lookup
(
GroupsLookupResource
, groupsLookup
, GroupsLookup
, glXgafv
, glUploadProtocol
, glAccessToken
, glGroupKeyId
, glUploadType
, glGroupKeyNamespace
, glCallback
) where
import Network.Google.CloudIdentity.Types
import Network.Google.Prelude
type GroupsLookupResource =
"v1" :>
"groups:lookup" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "groupKey.id" Text :>
QueryParam "uploadType" Text :>
QueryParam "groupKey.namespace" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] LookupGroupNameResponse
data GroupsLookup = GroupsLookup'
{ _glXgafv :: !(Maybe Xgafv)
, _glUploadProtocol :: !(Maybe Text)
, _glAccessToken :: !(Maybe Text)
, _glGroupKeyId :: !(Maybe Text)
, _glUploadType :: !(Maybe Text)
, _glGroupKeyNamespace :: !(Maybe Text)
, _glCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
groupsLookup
:: GroupsLookup
groupsLookup =
GroupsLookup'
{ _glXgafv = Nothing
, _glUploadProtocol = Nothing
, _glAccessToken = Nothing
, _glGroupKeyId = Nothing
, _glUploadType = Nothing
, _glGroupKeyNamespace = Nothing
, _glCallback = Nothing
}
glXgafv :: Lens' GroupsLookup (Maybe Xgafv)
glXgafv = lens _glXgafv (\ s a -> s{_glXgafv = a})
glUploadProtocol :: Lens' GroupsLookup (Maybe Text)
glUploadProtocol
= lens _glUploadProtocol
(\ s a -> s{_glUploadProtocol = a})
glAccessToken :: Lens' GroupsLookup (Maybe Text)
glAccessToken
= lens _glAccessToken
(\ s a -> s{_glAccessToken = a})
glGroupKeyId :: Lens' GroupsLookup (Maybe Text)
glGroupKeyId
= lens _glGroupKeyId (\ s a -> s{_glGroupKeyId = a})
glUploadType :: Lens' GroupsLookup (Maybe Text)
glUploadType
= lens _glUploadType (\ s a -> s{_glUploadType = a})
glGroupKeyNamespace :: Lens' GroupsLookup (Maybe Text)
glGroupKeyNamespace
= lens _glGroupKeyNamespace
(\ s a -> s{_glGroupKeyNamespace = a})
glCallback :: Lens' GroupsLookup (Maybe Text)
glCallback
= lens _glCallback (\ s a -> s{_glCallback = a})
instance GoogleRequest GroupsLookup where
type Rs GroupsLookup = LookupGroupNameResponse
type Scopes GroupsLookup = '[]
requestClient GroupsLookup'{..}
= go _glXgafv _glUploadProtocol _glAccessToken
_glGroupKeyId
_glUploadType
_glGroupKeyNamespace
_glCallback
(Just AltJSON)
cloudIdentityService
where go
= buildClient (Proxy :: Proxy GroupsLookupResource)
mempty