{-# 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.WorkflowTemplates.TestIAMPermissions
(
ProjectsRegionsWorkflowTemplatesTestIAMPermissionsResource
, projectsRegionsWorkflowTemplatesTestIAMPermissions
, ProjectsRegionsWorkflowTemplatesTestIAMPermissions
, prwttipXgafv
, prwttipUploadProtocol
, prwttipAccessToken
, prwttipUploadType
, prwttipPayload
, prwttipResource
, prwttipCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsWorkflowTemplatesTestIAMPermissionsResource
=
"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 ProjectsRegionsWorkflowTemplatesTestIAMPermissions = ProjectsRegionsWorkflowTemplatesTestIAMPermissions'
{ _prwttipXgafv :: !(Maybe Xgafv)
, _prwttipUploadProtocol :: !(Maybe Text)
, _prwttipAccessToken :: !(Maybe Text)
, _prwttipUploadType :: !(Maybe Text)
, _prwttipPayload :: !TestIAMPermissionsRequest
, _prwttipResource :: !Text
, _prwttipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsWorkflowTemplatesTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsRegionsWorkflowTemplatesTestIAMPermissions
projectsRegionsWorkflowTemplatesTestIAMPermissions pPrwttipPayload_ pPrwttipResource_ =
ProjectsRegionsWorkflowTemplatesTestIAMPermissions'
{ _prwttipXgafv = Nothing
, _prwttipUploadProtocol = Nothing
, _prwttipAccessToken = Nothing
, _prwttipUploadType = Nothing
, _prwttipPayload = pPrwttipPayload_
, _prwttipResource = pPrwttipResource_
, _prwttipCallback = Nothing
}
prwttipXgafv :: Lens' ProjectsRegionsWorkflowTemplatesTestIAMPermissions (Maybe Xgafv)
prwttipXgafv
= lens _prwttipXgafv (\ s a -> s{_prwttipXgafv = a})
prwttipUploadProtocol :: Lens' ProjectsRegionsWorkflowTemplatesTestIAMPermissions (Maybe Text)
prwttipUploadProtocol
= lens _prwttipUploadProtocol
(\ s a -> s{_prwttipUploadProtocol = a})
prwttipAccessToken :: Lens' ProjectsRegionsWorkflowTemplatesTestIAMPermissions (Maybe Text)
prwttipAccessToken
= lens _prwttipAccessToken
(\ s a -> s{_prwttipAccessToken = a})
prwttipUploadType :: Lens' ProjectsRegionsWorkflowTemplatesTestIAMPermissions (Maybe Text)
prwttipUploadType
= lens _prwttipUploadType
(\ s a -> s{_prwttipUploadType = a})
prwttipPayload :: Lens' ProjectsRegionsWorkflowTemplatesTestIAMPermissions TestIAMPermissionsRequest
prwttipPayload
= lens _prwttipPayload
(\ s a -> s{_prwttipPayload = a})
prwttipResource :: Lens' ProjectsRegionsWorkflowTemplatesTestIAMPermissions Text
prwttipResource
= lens _prwttipResource
(\ s a -> s{_prwttipResource = a})
prwttipCallback :: Lens' ProjectsRegionsWorkflowTemplatesTestIAMPermissions (Maybe Text)
prwttipCallback
= lens _prwttipCallback
(\ s a -> s{_prwttipCallback = a})
instance GoogleRequest
ProjectsRegionsWorkflowTemplatesTestIAMPermissions
where
type Rs
ProjectsRegionsWorkflowTemplatesTestIAMPermissions
= TestIAMPermissionsResponse
type Scopes
ProjectsRegionsWorkflowTemplatesTestIAMPermissions
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsRegionsWorkflowTemplatesTestIAMPermissions'{..}
= go _prwttipResource _prwttipXgafv
_prwttipUploadProtocol
_prwttipAccessToken
_prwttipUploadType
_prwttipCallback
(Just AltJSON)
_prwttipPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsRegionsWorkflowTemplatesTestIAMPermissionsResource)
mempty