{-# 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.Dataproc.Projects.Regions.Clusters.TestIAMPermissions
(
ProjectsRegionsClustersTestIAMPermissionsResource
, projectsRegionsClustersTestIAMPermissions
, ProjectsRegionsClustersTestIAMPermissions
, prctipXgafv
, prctipUploadProtocol
, prctipAccessToken
, prctipUploadType
, prctipPayload
, prctipResource
, prctipCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsClustersTestIAMPermissionsResource
=
"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 ProjectsRegionsClustersTestIAMPermissions = ProjectsRegionsClustersTestIAMPermissions'
{ _prctipXgafv :: !(Maybe Xgafv)
, _prctipUploadProtocol :: !(Maybe Text)
, _prctipAccessToken :: !(Maybe Text)
, _prctipUploadType :: !(Maybe Text)
, _prctipPayload :: !TestIAMPermissionsRequest
, _prctipResource :: !Text
, _prctipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsClustersTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsRegionsClustersTestIAMPermissions
projectsRegionsClustersTestIAMPermissions pPrctipPayload_ pPrctipResource_ =
ProjectsRegionsClustersTestIAMPermissions'
{ _prctipXgafv = Nothing
, _prctipUploadProtocol = Nothing
, _prctipAccessToken = Nothing
, _prctipUploadType = Nothing
, _prctipPayload = pPrctipPayload_
, _prctipResource = pPrctipResource_
, _prctipCallback = Nothing
}
prctipXgafv :: Lens' ProjectsRegionsClustersTestIAMPermissions (Maybe Xgafv)
prctipXgafv
= lens _prctipXgafv (\ s a -> s{_prctipXgafv = a})
prctipUploadProtocol :: Lens' ProjectsRegionsClustersTestIAMPermissions (Maybe Text)
prctipUploadProtocol
= lens _prctipUploadProtocol
(\ s a -> s{_prctipUploadProtocol = a})
prctipAccessToken :: Lens' ProjectsRegionsClustersTestIAMPermissions (Maybe Text)
prctipAccessToken
= lens _prctipAccessToken
(\ s a -> s{_prctipAccessToken = a})
prctipUploadType :: Lens' ProjectsRegionsClustersTestIAMPermissions (Maybe Text)
prctipUploadType
= lens _prctipUploadType
(\ s a -> s{_prctipUploadType = a})
prctipPayload :: Lens' ProjectsRegionsClustersTestIAMPermissions TestIAMPermissionsRequest
prctipPayload
= lens _prctipPayload
(\ s a -> s{_prctipPayload = a})
prctipResource :: Lens' ProjectsRegionsClustersTestIAMPermissions Text
prctipResource
= lens _prctipResource
(\ s a -> s{_prctipResource = a})
prctipCallback :: Lens' ProjectsRegionsClustersTestIAMPermissions (Maybe Text)
prctipCallback
= lens _prctipCallback
(\ s a -> s{_prctipCallback = a})
instance GoogleRequest
ProjectsRegionsClustersTestIAMPermissions where
type Rs ProjectsRegionsClustersTestIAMPermissions =
TestIAMPermissionsResponse
type Scopes ProjectsRegionsClustersTestIAMPermissions
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsRegionsClustersTestIAMPermissions'{..}
= go _prctipResource _prctipXgafv
_prctipUploadProtocol
_prctipAccessToken
_prctipUploadType
_prctipCallback
(Just AltJSON)
_prctipPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsRegionsClustersTestIAMPermissionsResource)
mempty