{-# 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.Memberships.List
(
GroupsMembershipsListResource
, groupsMembershipsList
, GroupsMembershipsList
, groParent
, groXgafv
, groUploadProtocol
, groAccessToken
, groUploadType
, groView
, groPageToken
, groPageSize
, groCallback
) where
import Network.Google.CloudIdentity.Types
import Network.Google.Prelude
type GroupsMembershipsListResource =
"v1" :>
Capture "parent" Text :>
"memberships" :>
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] ListMembershipsResponse
data GroupsMembershipsList = GroupsMembershipsList'
{ _groParent :: !Text
, _groXgafv :: !(Maybe Xgafv)
, _groUploadProtocol :: !(Maybe Text)
, _groAccessToken :: !(Maybe Text)
, _groUploadType :: !(Maybe Text)
, _groView :: !(Maybe Text)
, _groPageToken :: !(Maybe Text)
, _groPageSize :: !(Maybe (Textual Int32))
, _groCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
groupsMembershipsList
:: Text
-> GroupsMembershipsList
groupsMembershipsList pGroParent_ =
GroupsMembershipsList'
{ _groParent = pGroParent_
, _groXgafv = Nothing
, _groUploadProtocol = Nothing
, _groAccessToken = Nothing
, _groUploadType = Nothing
, _groView = Nothing
, _groPageToken = Nothing
, _groPageSize = Nothing
, _groCallback = Nothing
}
groParent :: Lens' GroupsMembershipsList Text
groParent
= lens _groParent (\ s a -> s{_groParent = a})
groXgafv :: Lens' GroupsMembershipsList (Maybe Xgafv)
groXgafv = lens _groXgafv (\ s a -> s{_groXgafv = a})
groUploadProtocol :: Lens' GroupsMembershipsList (Maybe Text)
groUploadProtocol
= lens _groUploadProtocol
(\ s a -> s{_groUploadProtocol = a})
groAccessToken :: Lens' GroupsMembershipsList (Maybe Text)
groAccessToken
= lens _groAccessToken
(\ s a -> s{_groAccessToken = a})
groUploadType :: Lens' GroupsMembershipsList (Maybe Text)
groUploadType
= lens _groUploadType
(\ s a -> s{_groUploadType = a})
groView :: Lens' GroupsMembershipsList (Maybe Text)
groView = lens _groView (\ s a -> s{_groView = a})
groPageToken :: Lens' GroupsMembershipsList (Maybe Text)
groPageToken
= lens _groPageToken (\ s a -> s{_groPageToken = a})
groPageSize :: Lens' GroupsMembershipsList (Maybe Int32)
groPageSize
= lens _groPageSize (\ s a -> s{_groPageSize = a}) .
mapping _Coerce
groCallback :: Lens' GroupsMembershipsList (Maybe Text)
groCallback
= lens _groCallback (\ s a -> s{_groCallback = a})
instance GoogleRequest GroupsMembershipsList where
type Rs GroupsMembershipsList =
ListMembershipsResponse
type Scopes GroupsMembershipsList = '[]
requestClient GroupsMembershipsList'{..}
= go _groParent _groXgafv _groUploadProtocol
_groAccessToken
_groUploadType
_groView
_groPageToken
_groPageSize
_groCallback
(Just AltJSON)
cloudIdentityService
where go
= buildClient
(Proxy :: Proxy GroupsMembershipsListResource)
mempty