{-# 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.Instances.TestIAMPermissions
(
ProjectsIapTunnelZonesInstancesTestIAMPermissionsResource
, projectsIapTunnelZonesInstancesTestIAMPermissions
, ProjectsIapTunnelZonesInstancesTestIAMPermissions
, pitzitipXgafv
, pitzitipUploadProtocol
, pitzitipAccessToken
, pitzitipUploadType
, pitzitipPayload
, pitzitipResource
, pitzitipCallback
) where
import Network.Google.IAP.Types
import Network.Google.Prelude
type ProjectsIapTunnelZonesInstancesTestIAMPermissionsResource
=
"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 ProjectsIapTunnelZonesInstancesTestIAMPermissions = ProjectsIapTunnelZonesInstancesTestIAMPermissions'
{ _pitzitipXgafv :: !(Maybe Xgafv)
, _pitzitipUploadProtocol :: !(Maybe Text)
, _pitzitipAccessToken :: !(Maybe Text)
, _pitzitipUploadType :: !(Maybe Text)
, _pitzitipPayload :: !TestIAMPermissionsRequest
, _pitzitipResource :: !Text
, _pitzitipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIapTunnelZonesInstancesTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsIapTunnelZonesInstancesTestIAMPermissions
projectsIapTunnelZonesInstancesTestIAMPermissions pPitzitipPayload_ pPitzitipResource_ =
ProjectsIapTunnelZonesInstancesTestIAMPermissions'
{ _pitzitipXgafv = Nothing
, _pitzitipUploadProtocol = Nothing
, _pitzitipAccessToken = Nothing
, _pitzitipUploadType = Nothing
, _pitzitipPayload = pPitzitipPayload_
, _pitzitipResource = pPitzitipResource_
, _pitzitipCallback = Nothing
}
pitzitipXgafv :: Lens' ProjectsIapTunnelZonesInstancesTestIAMPermissions (Maybe Xgafv)
pitzitipXgafv
= lens _pitzitipXgafv
(\ s a -> s{_pitzitipXgafv = a})
pitzitipUploadProtocol :: Lens' ProjectsIapTunnelZonesInstancesTestIAMPermissions (Maybe Text)
pitzitipUploadProtocol
= lens _pitzitipUploadProtocol
(\ s a -> s{_pitzitipUploadProtocol = a})
pitzitipAccessToken :: Lens' ProjectsIapTunnelZonesInstancesTestIAMPermissions (Maybe Text)
pitzitipAccessToken
= lens _pitzitipAccessToken
(\ s a -> s{_pitzitipAccessToken = a})
pitzitipUploadType :: Lens' ProjectsIapTunnelZonesInstancesTestIAMPermissions (Maybe Text)
pitzitipUploadType
= lens _pitzitipUploadType
(\ s a -> s{_pitzitipUploadType = a})
pitzitipPayload :: Lens' ProjectsIapTunnelZonesInstancesTestIAMPermissions TestIAMPermissionsRequest
pitzitipPayload
= lens _pitzitipPayload
(\ s a -> s{_pitzitipPayload = a})
pitzitipResource :: Lens' ProjectsIapTunnelZonesInstancesTestIAMPermissions Text
pitzitipResource
= lens _pitzitipResource
(\ s a -> s{_pitzitipResource = a})
pitzitipCallback :: Lens' ProjectsIapTunnelZonesInstancesTestIAMPermissions (Maybe Text)
pitzitipCallback
= lens _pitzitipCallback
(\ s a -> s{_pitzitipCallback = a})
instance GoogleRequest
ProjectsIapTunnelZonesInstancesTestIAMPermissions
where
type Rs
ProjectsIapTunnelZonesInstancesTestIAMPermissions
= TestIAMPermissionsResponse
type Scopes
ProjectsIapTunnelZonesInstancesTestIAMPermissions
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsIapTunnelZonesInstancesTestIAMPermissions'{..}
= go _pitzitipResource _pitzitipXgafv
_pitzitipUploadProtocol
_pitzitipAccessToken
_pitzitipUploadType
_pitzitipCallback
(Just AltJSON)
_pitzitipPayload
iAPService
where go
= buildClient
(Proxy ::
Proxy
ProjectsIapTunnelZonesInstancesTestIAMPermissionsResource)
mempty