{-# 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.Ml.Projects.Jobs.TestIAMPermissions
(
ProjectsJobsTestIAMPermissionsResource
, projectsJobsTestIAMPermissions
, ProjectsJobsTestIAMPermissions
, pjtipXgafv
, pjtipUploadProtocol
, pjtipAccessToken
, pjtipUploadType
, pjtipPayload
, pjtipResource
, pjtipCallback
) where
import Network.Google.MachineLearning.Types
import Network.Google.Prelude
type ProjectsJobsTestIAMPermissionsResource =
"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]
GoogleIAMV1__TestIAMPermissionsRequest
:>
Post '[JSON] GoogleIAMV1__TestIAMPermissionsResponse
data ProjectsJobsTestIAMPermissions = ProjectsJobsTestIAMPermissions'
{ _pjtipXgafv :: !(Maybe Xgafv)
, _pjtipUploadProtocol :: !(Maybe Text)
, _pjtipAccessToken :: !(Maybe Text)
, _pjtipUploadType :: !(Maybe Text)
, _pjtipPayload :: !GoogleIAMV1__TestIAMPermissionsRequest
, _pjtipResource :: !Text
, _pjtipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsJobsTestIAMPermissions
:: GoogleIAMV1__TestIAMPermissionsRequest
-> Text
-> ProjectsJobsTestIAMPermissions
projectsJobsTestIAMPermissions pPjtipPayload_ pPjtipResource_ =
ProjectsJobsTestIAMPermissions'
{ _pjtipXgafv = Nothing
, _pjtipUploadProtocol = Nothing
, _pjtipAccessToken = Nothing
, _pjtipUploadType = Nothing
, _pjtipPayload = pPjtipPayload_
, _pjtipResource = pPjtipResource_
, _pjtipCallback = Nothing
}
pjtipXgafv :: Lens' ProjectsJobsTestIAMPermissions (Maybe Xgafv)
pjtipXgafv
= lens _pjtipXgafv (\ s a -> s{_pjtipXgafv = a})
pjtipUploadProtocol :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text)
pjtipUploadProtocol
= lens _pjtipUploadProtocol
(\ s a -> s{_pjtipUploadProtocol = a})
pjtipAccessToken :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text)
pjtipAccessToken
= lens _pjtipAccessToken
(\ s a -> s{_pjtipAccessToken = a})
pjtipUploadType :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text)
pjtipUploadType
= lens _pjtipUploadType
(\ s a -> s{_pjtipUploadType = a})
pjtipPayload :: Lens' ProjectsJobsTestIAMPermissions GoogleIAMV1__TestIAMPermissionsRequest
pjtipPayload
= lens _pjtipPayload (\ s a -> s{_pjtipPayload = a})
pjtipResource :: Lens' ProjectsJobsTestIAMPermissions Text
pjtipResource
= lens _pjtipResource
(\ s a -> s{_pjtipResource = a})
pjtipCallback :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text)
pjtipCallback
= lens _pjtipCallback
(\ s a -> s{_pjtipCallback = a})
instance GoogleRequest ProjectsJobsTestIAMPermissions
where
type Rs ProjectsJobsTestIAMPermissions =
GoogleIAMV1__TestIAMPermissionsResponse
type Scopes ProjectsJobsTestIAMPermissions =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsJobsTestIAMPermissions'{..}
= go _pjtipResource _pjtipXgafv _pjtipUploadProtocol
_pjtipAccessToken
_pjtipUploadType
_pjtipCallback
(Just AltJSON)
_pjtipPayload
machineLearningService
where go
= buildClient
(Proxy ::
Proxy ProjectsJobsTestIAMPermissionsResource)
mempty