{-# 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.Lookup
(
GroupsMembershipsLookupResource
, groupsMembershipsLookup
, GroupsMembershipsLookup
, gmlParent
, gmlXgafv
, gmlUploadProtocol
, gmlAccessToken
, gmlUploadType
, gmlMemberKeyId
, gmlMemberKeyNamespace
, gmlCallback
) where
import Network.Google.CloudIdentity.Types
import Network.Google.Prelude
type GroupsMembershipsLookupResource =
"v1" :>
Capture "parent" Text :>
"memberships:lookup" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "memberKey.id" Text :>
QueryParam "memberKey.namespace" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] LookupMembershipNameResponse
data GroupsMembershipsLookup = GroupsMembershipsLookup'
{ _gmlParent :: !Text
, _gmlXgafv :: !(Maybe Xgafv)
, _gmlUploadProtocol :: !(Maybe Text)
, _gmlAccessToken :: !(Maybe Text)
, _gmlUploadType :: !(Maybe Text)
, _gmlMemberKeyId :: !(Maybe Text)
, _gmlMemberKeyNamespace :: !(Maybe Text)
, _gmlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
groupsMembershipsLookup
:: Text
-> GroupsMembershipsLookup
groupsMembershipsLookup pGmlParent_ =
GroupsMembershipsLookup'
{ _gmlParent = pGmlParent_
, _gmlXgafv = Nothing
, _gmlUploadProtocol = Nothing
, _gmlAccessToken = Nothing
, _gmlUploadType = Nothing
, _gmlMemberKeyId = Nothing
, _gmlMemberKeyNamespace = Nothing
, _gmlCallback = Nothing
}
gmlParent :: Lens' GroupsMembershipsLookup Text
gmlParent
= lens _gmlParent (\ s a -> s{_gmlParent = a})
gmlXgafv :: Lens' GroupsMembershipsLookup (Maybe Xgafv)
gmlXgafv = lens _gmlXgafv (\ s a -> s{_gmlXgafv = a})
gmlUploadProtocol :: Lens' GroupsMembershipsLookup (Maybe Text)
gmlUploadProtocol
= lens _gmlUploadProtocol
(\ s a -> s{_gmlUploadProtocol = a})
gmlAccessToken :: Lens' GroupsMembershipsLookup (Maybe Text)
gmlAccessToken
= lens _gmlAccessToken
(\ s a -> s{_gmlAccessToken = a})
gmlUploadType :: Lens' GroupsMembershipsLookup (Maybe Text)
gmlUploadType
= lens _gmlUploadType
(\ s a -> s{_gmlUploadType = a})
gmlMemberKeyId :: Lens' GroupsMembershipsLookup (Maybe Text)
gmlMemberKeyId
= lens _gmlMemberKeyId
(\ s a -> s{_gmlMemberKeyId = a})
gmlMemberKeyNamespace :: Lens' GroupsMembershipsLookup (Maybe Text)
gmlMemberKeyNamespace
= lens _gmlMemberKeyNamespace
(\ s a -> s{_gmlMemberKeyNamespace = a})
gmlCallback :: Lens' GroupsMembershipsLookup (Maybe Text)
gmlCallback
= lens _gmlCallback (\ s a -> s{_gmlCallback = a})
instance GoogleRequest GroupsMembershipsLookup where
type Rs GroupsMembershipsLookup =
LookupMembershipNameResponse
type Scopes GroupsMembershipsLookup = '[]
requestClient GroupsMembershipsLookup'{..}
= go _gmlParent _gmlXgafv _gmlUploadProtocol
_gmlAccessToken
_gmlUploadType
_gmlMemberKeyId
_gmlMemberKeyNamespace
_gmlCallback
(Just AltJSON)
cloudIdentityService
where go
= buildClient
(Proxy :: Proxy GroupsMembershipsLookupResource)
mempty