{-# 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.IAP.Projects.IapTunnel.TestIAMPermissions
(
ProjectsIapTunnelTestIAMPermissionsResource
, projectsIapTunnelTestIAMPermissions
, ProjectsIapTunnelTestIAMPermissions
, pittipXgafv
, pittipUploadProtocol
, pittipAccessToken
, pittipUploadType
, pittipPayload
, pittipResource
, pittipCallback
) where
import Network.Google.IAP.Types
import Network.Google.Prelude
type ProjectsIapTunnelTestIAMPermissionsResource =
"v1" :>
CaptureMode "resource" "testIamPermissions" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] TestIAMPermissionsRequest :>
Post '[JSON] TestIAMPermissionsResponse
data ProjectsIapTunnelTestIAMPermissions = ProjectsIapTunnelTestIAMPermissions'
{ _pittipXgafv :: !(Maybe Xgafv)
, _pittipUploadProtocol :: !(Maybe Text)
, _pittipAccessToken :: !(Maybe Text)
, _pittipUploadType :: !(Maybe Text)
, _pittipPayload :: !TestIAMPermissionsRequest
, _pittipResource :: !Text
, _pittipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIapTunnelTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsIapTunnelTestIAMPermissions
projectsIapTunnelTestIAMPermissions pPittipPayload_ pPittipResource_ =
ProjectsIapTunnelTestIAMPermissions'
{ _pittipXgafv = Nothing
, _pittipUploadProtocol = Nothing
, _pittipAccessToken = Nothing
, _pittipUploadType = Nothing
, _pittipPayload = pPittipPayload_
, _pittipResource = pPittipResource_
, _pittipCallback = Nothing
}
pittipXgafv :: Lens' ProjectsIapTunnelTestIAMPermissions (Maybe Xgafv)
pittipXgafv
= lens _pittipXgafv (\ s a -> s{_pittipXgafv = a})
pittipUploadProtocol :: Lens' ProjectsIapTunnelTestIAMPermissions (Maybe Text)
pittipUploadProtocol
= lens _pittipUploadProtocol
(\ s a -> s{_pittipUploadProtocol = a})
pittipAccessToken :: Lens' ProjectsIapTunnelTestIAMPermissions (Maybe Text)
pittipAccessToken
= lens _pittipAccessToken
(\ s a -> s{_pittipAccessToken = a})
pittipUploadType :: Lens' ProjectsIapTunnelTestIAMPermissions (Maybe Text)
pittipUploadType
= lens _pittipUploadType
(\ s a -> s{_pittipUploadType = a})
pittipPayload :: Lens' ProjectsIapTunnelTestIAMPermissions TestIAMPermissionsRequest
pittipPayload
= lens _pittipPayload
(\ s a -> s{_pittipPayload = a})
pittipResource :: Lens' ProjectsIapTunnelTestIAMPermissions Text
pittipResource
= lens _pittipResource
(\ s a -> s{_pittipResource = a})
pittipCallback :: Lens' ProjectsIapTunnelTestIAMPermissions (Maybe Text)
pittipCallback
= lens _pittipCallback
(\ s a -> s{_pittipCallback = a})
instance GoogleRequest
ProjectsIapTunnelTestIAMPermissions where
type Rs ProjectsIapTunnelTestIAMPermissions =
TestIAMPermissionsResponse
type Scopes ProjectsIapTunnelTestIAMPermissions =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsIapTunnelTestIAMPermissions'{..}
= go _pittipResource _pittipXgafv
_pittipUploadProtocol
_pittipAccessToken
_pittipUploadType
_pittipCallback
(Just AltJSON)
_pittipPayload
iAPService
where go
= buildClient
(Proxy ::
Proxy ProjectsIapTunnelTestIAMPermissionsResource)
mempty