{-# 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.Zones.TestIAMPermissions
(
ProjectsIapTunnelZonesTestIAMPermissionsResource
, projectsIapTunnelZonesTestIAMPermissions
, ProjectsIapTunnelZonesTestIAMPermissions
, pitztipXgafv
, pitztipUploadProtocol
, pitztipAccessToken
, pitztipUploadType
, pitztipPayload
, pitztipResource
, pitztipCallback
) where
import Network.Google.IAP.Types
import Network.Google.Prelude
type ProjectsIapTunnelZonesTestIAMPermissionsResource
=
"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 ProjectsIapTunnelZonesTestIAMPermissions = ProjectsIapTunnelZonesTestIAMPermissions'
{ _pitztipXgafv :: !(Maybe Xgafv)
, _pitztipUploadProtocol :: !(Maybe Text)
, _pitztipAccessToken :: !(Maybe Text)
, _pitztipUploadType :: !(Maybe Text)
, _pitztipPayload :: !TestIAMPermissionsRequest
, _pitztipResource :: !Text
, _pitztipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIapTunnelZonesTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsIapTunnelZonesTestIAMPermissions
projectsIapTunnelZonesTestIAMPermissions pPitztipPayload_ pPitztipResource_ =
ProjectsIapTunnelZonesTestIAMPermissions'
{ _pitztipXgafv = Nothing
, _pitztipUploadProtocol = Nothing
, _pitztipAccessToken = Nothing
, _pitztipUploadType = Nothing
, _pitztipPayload = pPitztipPayload_
, _pitztipResource = pPitztipResource_
, _pitztipCallback = Nothing
}
pitztipXgafv :: Lens' ProjectsIapTunnelZonesTestIAMPermissions (Maybe Xgafv)
pitztipXgafv
= lens _pitztipXgafv (\ s a -> s{_pitztipXgafv = a})
pitztipUploadProtocol :: Lens' ProjectsIapTunnelZonesTestIAMPermissions (Maybe Text)
pitztipUploadProtocol
= lens _pitztipUploadProtocol
(\ s a -> s{_pitztipUploadProtocol = a})
pitztipAccessToken :: Lens' ProjectsIapTunnelZonesTestIAMPermissions (Maybe Text)
pitztipAccessToken
= lens _pitztipAccessToken
(\ s a -> s{_pitztipAccessToken = a})
pitztipUploadType :: Lens' ProjectsIapTunnelZonesTestIAMPermissions (Maybe Text)
pitztipUploadType
= lens _pitztipUploadType
(\ s a -> s{_pitztipUploadType = a})
pitztipPayload :: Lens' ProjectsIapTunnelZonesTestIAMPermissions TestIAMPermissionsRequest
pitztipPayload
= lens _pitztipPayload
(\ s a -> s{_pitztipPayload = a})
pitztipResource :: Lens' ProjectsIapTunnelZonesTestIAMPermissions Text
pitztipResource
= lens _pitztipResource
(\ s a -> s{_pitztipResource = a})
pitztipCallback :: Lens' ProjectsIapTunnelZonesTestIAMPermissions (Maybe Text)
pitztipCallback
= lens _pitztipCallback
(\ s a -> s{_pitztipCallback = a})
instance GoogleRequest
ProjectsIapTunnelZonesTestIAMPermissions where
type Rs ProjectsIapTunnelZonesTestIAMPermissions =
TestIAMPermissionsResponse
type Scopes ProjectsIapTunnelZonesTestIAMPermissions
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsIapTunnelZonesTestIAMPermissions'{..}
= go _pitztipResource _pitztipXgafv
_pitztipUploadProtocol
_pitztipAccessToken
_pitztipUploadType
_pitztipCallback
(Just AltJSON)
_pitztipPayload
iAPService
where go
= buildClient
(Proxy ::
Proxy
ProjectsIapTunnelZonesTestIAMPermissionsResource)
mempty