{-# 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.Locations.WorkflowTemplates.TestIAMPermissions
(
ProjectsLocationsWorkflowTemplatesTestIAMPermissionsResource
, projectsLocationsWorkflowTemplatesTestIAMPermissions
, ProjectsLocationsWorkflowTemplatesTestIAMPermissions
, plwttipXgafv
, plwttipUploadProtocol
, plwttipAccessToken
, plwttipUploadType
, plwttipPayload
, plwttipResource
, plwttipCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsLocationsWorkflowTemplatesTestIAMPermissionsResource
=
"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 ProjectsLocationsWorkflowTemplatesTestIAMPermissions = ProjectsLocationsWorkflowTemplatesTestIAMPermissions'
{ _plwttipXgafv :: !(Maybe Xgafv)
, _plwttipUploadProtocol :: !(Maybe Text)
, _plwttipAccessToken :: !(Maybe Text)
, _plwttipUploadType :: !(Maybe Text)
, _plwttipPayload :: !TestIAMPermissionsRequest
, _plwttipResource :: !Text
, _plwttipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsWorkflowTemplatesTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsLocationsWorkflowTemplatesTestIAMPermissions
projectsLocationsWorkflowTemplatesTestIAMPermissions pPlwttipPayload_ pPlwttipResource_ =
ProjectsLocationsWorkflowTemplatesTestIAMPermissions'
{ _plwttipXgafv = Nothing
, _plwttipUploadProtocol = Nothing
, _plwttipAccessToken = Nothing
, _plwttipUploadType = Nothing
, _plwttipPayload = pPlwttipPayload_
, _plwttipResource = pPlwttipResource_
, _plwttipCallback = Nothing
}
plwttipXgafv :: Lens' ProjectsLocationsWorkflowTemplatesTestIAMPermissions (Maybe Xgafv)
plwttipXgafv
= lens _plwttipXgafv (\ s a -> s{_plwttipXgafv = a})
plwttipUploadProtocol :: Lens' ProjectsLocationsWorkflowTemplatesTestIAMPermissions (Maybe Text)
plwttipUploadProtocol
= lens _plwttipUploadProtocol
(\ s a -> s{_plwttipUploadProtocol = a})
plwttipAccessToken :: Lens' ProjectsLocationsWorkflowTemplatesTestIAMPermissions (Maybe Text)
plwttipAccessToken
= lens _plwttipAccessToken
(\ s a -> s{_plwttipAccessToken = a})
plwttipUploadType :: Lens' ProjectsLocationsWorkflowTemplatesTestIAMPermissions (Maybe Text)
plwttipUploadType
= lens _plwttipUploadType
(\ s a -> s{_plwttipUploadType = a})
plwttipPayload :: Lens' ProjectsLocationsWorkflowTemplatesTestIAMPermissions TestIAMPermissionsRequest
plwttipPayload
= lens _plwttipPayload
(\ s a -> s{_plwttipPayload = a})
plwttipResource :: Lens' ProjectsLocationsWorkflowTemplatesTestIAMPermissions Text
plwttipResource
= lens _plwttipResource
(\ s a -> s{_plwttipResource = a})
plwttipCallback :: Lens' ProjectsLocationsWorkflowTemplatesTestIAMPermissions (Maybe Text)
plwttipCallback
= lens _plwttipCallback
(\ s a -> s{_plwttipCallback = a})
instance GoogleRequest
ProjectsLocationsWorkflowTemplatesTestIAMPermissions
where
type Rs
ProjectsLocationsWorkflowTemplatesTestIAMPermissions
= TestIAMPermissionsResponse
type Scopes
ProjectsLocationsWorkflowTemplatesTestIAMPermissions
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsWorkflowTemplatesTestIAMPermissions'{..}
= go _plwttipResource _plwttipXgafv
_plwttipUploadProtocol
_plwttipAccessToken
_plwttipUploadType
_plwttipCallback
(Just AltJSON)
_plwttipPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsWorkflowTemplatesTestIAMPermissionsResource)
mempty