{-# 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.List
(
GroupsListResource
, groupsList
, GroupsList
, gllParent
, gllXgafv
, gllUploadProtocol
, gllAccessToken
, gllUploadType
, gllView
, gllPageToken
, gllPageSize
, gllCallback
) where
import Network.Google.CloudIdentity.Types
import Network.Google.Prelude
type GroupsListResource =
"v1" :>
"groups" :>
QueryParam "parent" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "view" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListGroupsResponse
data GroupsList = GroupsList'
{ _gllParent :: !(Maybe Text)
, _gllXgafv :: !(Maybe Xgafv)
, _gllUploadProtocol :: !(Maybe Text)
, _gllAccessToken :: !(Maybe Text)
, _gllUploadType :: !(Maybe Text)
, _gllView :: !(Maybe Text)
, _gllPageToken :: !(Maybe Text)
, _gllPageSize :: !(Maybe (Textual Int32))
, _gllCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
groupsList
:: GroupsList
groupsList =
GroupsList'
{ _gllParent = Nothing
, _gllXgafv = Nothing
, _gllUploadProtocol = Nothing
, _gllAccessToken = Nothing
, _gllUploadType = Nothing
, _gllView = Nothing
, _gllPageToken = Nothing
, _gllPageSize = Nothing
, _gllCallback = Nothing
}
gllParent :: Lens' GroupsList (Maybe Text)
gllParent
= lens _gllParent (\ s a -> s{_gllParent = a})
gllXgafv :: Lens' GroupsList (Maybe Xgafv)
gllXgafv = lens _gllXgafv (\ s a -> s{_gllXgafv = a})
gllUploadProtocol :: Lens' GroupsList (Maybe Text)
gllUploadProtocol
= lens _gllUploadProtocol
(\ s a -> s{_gllUploadProtocol = a})
gllAccessToken :: Lens' GroupsList (Maybe Text)
gllAccessToken
= lens _gllAccessToken
(\ s a -> s{_gllAccessToken = a})
gllUploadType :: Lens' GroupsList (Maybe Text)
gllUploadType
= lens _gllUploadType
(\ s a -> s{_gllUploadType = a})
gllView :: Lens' GroupsList (Maybe Text)
gllView = lens _gllView (\ s a -> s{_gllView = a})
gllPageToken :: Lens' GroupsList (Maybe Text)
gllPageToken
= lens _gllPageToken (\ s a -> s{_gllPageToken = a})
gllPageSize :: Lens' GroupsList (Maybe Int32)
gllPageSize
= lens _gllPageSize (\ s a -> s{_gllPageSize = a}) .
mapping _Coerce
gllCallback :: Lens' GroupsList (Maybe Text)
gllCallback
= lens _gllCallback (\ s a -> s{_gllCallback = a})
instance GoogleRequest GroupsList where
type Rs GroupsList = ListGroupsResponse
type Scopes GroupsList = '[]
requestClient GroupsList'{..}
= go _gllParent _gllXgafv _gllUploadProtocol
_gllAccessToken
_gllUploadType
_gllView
_gllPageToken
_gllPageSize
_gllCallback
(Just AltJSON)
cloudIdentityService
where go
= buildClient (Proxy :: Proxy GroupsListResource)
mempty