{-# 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.IapWeb.Services.Versions.TestIAMPermissions
(
ProjectsIapWebServicesVersionsTestIAMPermissionsResource
, projectsIapWebServicesVersionsTestIAMPermissions
, ProjectsIapWebServicesVersionsTestIAMPermissions
, piwsvtipXgafv
, piwsvtipUploadProtocol
, piwsvtipAccessToken
, piwsvtipUploadType
, piwsvtipPayload
, piwsvtipResource
, piwsvtipCallback
) where
import Network.Google.IAP.Types
import Network.Google.Prelude
type ProjectsIapWebServicesVersionsTestIAMPermissionsResource
=
"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 ProjectsIapWebServicesVersionsTestIAMPermissions = ProjectsIapWebServicesVersionsTestIAMPermissions'
{ _piwsvtipXgafv :: !(Maybe Xgafv)
, _piwsvtipUploadProtocol :: !(Maybe Text)
, _piwsvtipAccessToken :: !(Maybe Text)
, _piwsvtipUploadType :: !(Maybe Text)
, _piwsvtipPayload :: !TestIAMPermissionsRequest
, _piwsvtipResource :: !Text
, _piwsvtipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIapWebServicesVersionsTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsIapWebServicesVersionsTestIAMPermissions
projectsIapWebServicesVersionsTestIAMPermissions pPiwsvtipPayload_ pPiwsvtipResource_ =
ProjectsIapWebServicesVersionsTestIAMPermissions'
{ _piwsvtipXgafv = Nothing
, _piwsvtipUploadProtocol = Nothing
, _piwsvtipAccessToken = Nothing
, _piwsvtipUploadType = Nothing
, _piwsvtipPayload = pPiwsvtipPayload_
, _piwsvtipResource = pPiwsvtipResource_
, _piwsvtipCallback = Nothing
}
piwsvtipXgafv :: Lens' ProjectsIapWebServicesVersionsTestIAMPermissions (Maybe Xgafv)
piwsvtipXgafv
= lens _piwsvtipXgafv
(\ s a -> s{_piwsvtipXgafv = a})
piwsvtipUploadProtocol :: Lens' ProjectsIapWebServicesVersionsTestIAMPermissions (Maybe Text)
piwsvtipUploadProtocol
= lens _piwsvtipUploadProtocol
(\ s a -> s{_piwsvtipUploadProtocol = a})
piwsvtipAccessToken :: Lens' ProjectsIapWebServicesVersionsTestIAMPermissions (Maybe Text)
piwsvtipAccessToken
= lens _piwsvtipAccessToken
(\ s a -> s{_piwsvtipAccessToken = a})
piwsvtipUploadType :: Lens' ProjectsIapWebServicesVersionsTestIAMPermissions (Maybe Text)
piwsvtipUploadType
= lens _piwsvtipUploadType
(\ s a -> s{_piwsvtipUploadType = a})
piwsvtipPayload :: Lens' ProjectsIapWebServicesVersionsTestIAMPermissions TestIAMPermissionsRequest
piwsvtipPayload
= lens _piwsvtipPayload
(\ s a -> s{_piwsvtipPayload = a})
piwsvtipResource :: Lens' ProjectsIapWebServicesVersionsTestIAMPermissions Text
piwsvtipResource
= lens _piwsvtipResource
(\ s a -> s{_piwsvtipResource = a})
piwsvtipCallback :: Lens' ProjectsIapWebServicesVersionsTestIAMPermissions (Maybe Text)
piwsvtipCallback
= lens _piwsvtipCallback
(\ s a -> s{_piwsvtipCallback = a})
instance GoogleRequest
ProjectsIapWebServicesVersionsTestIAMPermissions
where
type Rs
ProjectsIapWebServicesVersionsTestIAMPermissions
= TestIAMPermissionsResponse
type Scopes
ProjectsIapWebServicesVersionsTestIAMPermissions
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsIapWebServicesVersionsTestIAMPermissions'{..}
= go _piwsvtipResource _piwsvtipXgafv
_piwsvtipUploadProtocol
_piwsvtipAccessToken
_piwsvtipUploadType
_piwsvtipCallback
(Just AltJSON)
_piwsvtipPayload
iAPService
where go
= buildClient
(Proxy ::
Proxy
ProjectsIapWebServicesVersionsTestIAMPermissionsResource)
mempty