{-# 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.Operations.TestIAMPermissions
(
ProjectsRegionsOperationsTestIAMPermissionsResource
, projectsRegionsOperationsTestIAMPermissions
, ProjectsRegionsOperationsTestIAMPermissions
, protipXgafv
, protipUploadProtocol
, protipAccessToken
, protipUploadType
, protipPayload
, protipResource
, protipCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsOperationsTestIAMPermissionsResource
=
"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 ProjectsRegionsOperationsTestIAMPermissions = ProjectsRegionsOperationsTestIAMPermissions'
{ _protipXgafv :: !(Maybe Xgafv)
, _protipUploadProtocol :: !(Maybe Text)
, _protipAccessToken :: !(Maybe Text)
, _protipUploadType :: !(Maybe Text)
, _protipPayload :: !TestIAMPermissionsRequest
, _protipResource :: !Text
, _protipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsOperationsTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsRegionsOperationsTestIAMPermissions
projectsRegionsOperationsTestIAMPermissions pProtipPayload_ pProtipResource_ =
ProjectsRegionsOperationsTestIAMPermissions'
{ _protipXgafv = Nothing
, _protipUploadProtocol = Nothing
, _protipAccessToken = Nothing
, _protipUploadType = Nothing
, _protipPayload = pProtipPayload_
, _protipResource = pProtipResource_
, _protipCallback = Nothing
}
protipXgafv :: Lens' ProjectsRegionsOperationsTestIAMPermissions (Maybe Xgafv)
protipXgafv
= lens _protipXgafv (\ s a -> s{_protipXgafv = a})
protipUploadProtocol :: Lens' ProjectsRegionsOperationsTestIAMPermissions (Maybe Text)
protipUploadProtocol
= lens _protipUploadProtocol
(\ s a -> s{_protipUploadProtocol = a})
protipAccessToken :: Lens' ProjectsRegionsOperationsTestIAMPermissions (Maybe Text)
protipAccessToken
= lens _protipAccessToken
(\ s a -> s{_protipAccessToken = a})
protipUploadType :: Lens' ProjectsRegionsOperationsTestIAMPermissions (Maybe Text)
protipUploadType
= lens _protipUploadType
(\ s a -> s{_protipUploadType = a})
protipPayload :: Lens' ProjectsRegionsOperationsTestIAMPermissions TestIAMPermissionsRequest
protipPayload
= lens _protipPayload
(\ s a -> s{_protipPayload = a})
protipResource :: Lens' ProjectsRegionsOperationsTestIAMPermissions Text
protipResource
= lens _protipResource
(\ s a -> s{_protipResource = a})
protipCallback :: Lens' ProjectsRegionsOperationsTestIAMPermissions (Maybe Text)
protipCallback
= lens _protipCallback
(\ s a -> s{_protipCallback = a})
instance GoogleRequest
ProjectsRegionsOperationsTestIAMPermissions where
type Rs ProjectsRegionsOperationsTestIAMPermissions =
TestIAMPermissionsResponse
type Scopes
ProjectsRegionsOperationsTestIAMPermissions
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsRegionsOperationsTestIAMPermissions'{..}
= go _protipResource _protipXgafv
_protipUploadProtocol
_protipAccessToken
_protipUploadType
_protipCallback
(Just AltJSON)
_protipPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsRegionsOperationsTestIAMPermissionsResource)
mempty