{-# 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.Container.Projects.Locations.Clusters.SetLegacyAbac
(
ProjectsLocationsClustersSetLegacyAbacResource
, projectsLocationsClustersSetLegacyAbac
, ProjectsLocationsClustersSetLegacyAbac
, plcslaXgafv
, plcslaUploadProtocol
, plcslaAccessToken
, plcslaUploadType
, plcslaPayload
, plcslaName
, plcslaCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersSetLegacyAbacResource =
"v1" :>
CaptureMode "name" "setLegacyAbac" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SetLegacyAbacRequest :>
Post '[JSON] Operation
data ProjectsLocationsClustersSetLegacyAbac = ProjectsLocationsClustersSetLegacyAbac'
{ _plcslaXgafv :: !(Maybe Xgafv)
, _plcslaUploadProtocol :: !(Maybe Text)
, _plcslaAccessToken :: !(Maybe Text)
, _plcslaUploadType :: !(Maybe Text)
, _plcslaPayload :: !SetLegacyAbacRequest
, _plcslaName :: !Text
, _plcslaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersSetLegacyAbac
:: SetLegacyAbacRequest
-> Text
-> ProjectsLocationsClustersSetLegacyAbac
projectsLocationsClustersSetLegacyAbac pPlcslaPayload_ pPlcslaName_ =
ProjectsLocationsClustersSetLegacyAbac'
{ _plcslaXgafv = Nothing
, _plcslaUploadProtocol = Nothing
, _plcslaAccessToken = Nothing
, _plcslaUploadType = Nothing
, _plcslaPayload = pPlcslaPayload_
, _plcslaName = pPlcslaName_
, _plcslaCallback = Nothing
}
plcslaXgafv :: Lens' ProjectsLocationsClustersSetLegacyAbac (Maybe Xgafv)
plcslaXgafv
= lens _plcslaXgafv (\ s a -> s{_plcslaXgafv = a})
plcslaUploadProtocol :: Lens' ProjectsLocationsClustersSetLegacyAbac (Maybe Text)
plcslaUploadProtocol
= lens _plcslaUploadProtocol
(\ s a -> s{_plcslaUploadProtocol = a})
plcslaAccessToken :: Lens' ProjectsLocationsClustersSetLegacyAbac (Maybe Text)
plcslaAccessToken
= lens _plcslaAccessToken
(\ s a -> s{_plcslaAccessToken = a})
plcslaUploadType :: Lens' ProjectsLocationsClustersSetLegacyAbac (Maybe Text)
plcslaUploadType
= lens _plcslaUploadType
(\ s a -> s{_plcslaUploadType = a})
plcslaPayload :: Lens' ProjectsLocationsClustersSetLegacyAbac SetLegacyAbacRequest
plcslaPayload
= lens _plcslaPayload
(\ s a -> s{_plcslaPayload = a})
plcslaName :: Lens' ProjectsLocationsClustersSetLegacyAbac Text
plcslaName
= lens _plcslaName (\ s a -> s{_plcslaName = a})
plcslaCallback :: Lens' ProjectsLocationsClustersSetLegacyAbac (Maybe Text)
plcslaCallback
= lens _plcslaCallback
(\ s a -> s{_plcslaCallback = a})
instance GoogleRequest
ProjectsLocationsClustersSetLegacyAbac where
type Rs ProjectsLocationsClustersSetLegacyAbac =
Operation
type Scopes ProjectsLocationsClustersSetLegacyAbac =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersSetLegacyAbac'{..}
= go _plcslaName _plcslaXgafv _plcslaUploadProtocol
_plcslaAccessToken
_plcslaUploadType
_plcslaCallback
(Just AltJSON)
_plcslaPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsClustersSetLegacyAbacResource)
mempty