{-# 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.Search
(
GroupsSearchResource
, groupsSearch
, GroupsSearch
, gsXgafv
, gsUploadProtocol
, gsAccessToken
, gsUploadType
, gsQuery
, gsView
, gsPageToken
, gsPageSize
, gsCallback
) where
import Network.Google.CloudIdentity.Types
import Network.Google.Prelude
type GroupsSearchResource =
"v1" :>
"groups:search" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "query" Text :>
QueryParam "view" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] SearchGroupsResponse
data GroupsSearch = GroupsSearch'
{ _gsXgafv :: !(Maybe Xgafv)
, _gsUploadProtocol :: !(Maybe Text)
, _gsAccessToken :: !(Maybe Text)
, _gsUploadType :: !(Maybe Text)
, _gsQuery :: !(Maybe Text)
, _gsView :: !(Maybe Text)
, _gsPageToken :: !(Maybe Text)
, _gsPageSize :: !(Maybe (Textual Int32))
, _gsCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
groupsSearch
:: GroupsSearch
groupsSearch =
GroupsSearch'
{ _gsXgafv = Nothing
, _gsUploadProtocol = Nothing
, _gsAccessToken = Nothing
, _gsUploadType = Nothing
, _gsQuery = Nothing
, _gsView = Nothing
, _gsPageToken = Nothing
, _gsPageSize = Nothing
, _gsCallback = Nothing
}
gsXgafv :: Lens' GroupsSearch (Maybe Xgafv)
gsXgafv = lens _gsXgafv (\ s a -> s{_gsXgafv = a})
gsUploadProtocol :: Lens' GroupsSearch (Maybe Text)
gsUploadProtocol
= lens _gsUploadProtocol
(\ s a -> s{_gsUploadProtocol = a})
gsAccessToken :: Lens' GroupsSearch (Maybe Text)
gsAccessToken
= lens _gsAccessToken
(\ s a -> s{_gsAccessToken = a})
gsUploadType :: Lens' GroupsSearch (Maybe Text)
gsUploadType
= lens _gsUploadType (\ s a -> s{_gsUploadType = a})
gsQuery :: Lens' GroupsSearch (Maybe Text)
gsQuery = lens _gsQuery (\ s a -> s{_gsQuery = a})
gsView :: Lens' GroupsSearch (Maybe Text)
gsView = lens _gsView (\ s a -> s{_gsView = a})
gsPageToken :: Lens' GroupsSearch (Maybe Text)
gsPageToken
= lens _gsPageToken (\ s a -> s{_gsPageToken = a})
gsPageSize :: Lens' GroupsSearch (Maybe Int32)
gsPageSize
= lens _gsPageSize (\ s a -> s{_gsPageSize = a}) .
mapping _Coerce
gsCallback :: Lens' GroupsSearch (Maybe Text)
gsCallback
= lens _gsCallback (\ s a -> s{_gsCallback = a})
instance GoogleRequest GroupsSearch where
type Rs GroupsSearch = SearchGroupsResponse
type Scopes GroupsSearch = '[]
requestClient GroupsSearch'{..}
= go _gsXgafv _gsUploadProtocol _gsAccessToken
_gsUploadType
_gsQuery
_gsView
_gsPageToken
_gsPageSize
_gsCallback
(Just AltJSON)
cloudIdentityService
where go
= buildClient (Proxy :: Proxy GroupsSearchResource)
mempty