{-# 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.Zones.Clusters.LegacyAbac
(
ProjectsZonesClustersLegacyAbacResource
, projectsZonesClustersLegacyAbac
, ProjectsZonesClustersLegacyAbac
, pzclaXgafv
, pzclaUploadProtocol
, pzclaAccessToken
, pzclaUploadType
, pzclaZone
, pzclaPayload
, pzclaClusterId
, pzclaProjectId
, pzclaCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersLegacyAbacResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"legacyAbac" :>
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 ProjectsZonesClustersLegacyAbac = ProjectsZonesClustersLegacyAbac'
{ _pzclaXgafv :: !(Maybe Xgafv)
, _pzclaUploadProtocol :: !(Maybe Text)
, _pzclaAccessToken :: !(Maybe Text)
, _pzclaUploadType :: !(Maybe Text)
, _pzclaZone :: !Text
, _pzclaPayload :: !SetLegacyAbacRequest
, _pzclaClusterId :: !Text
, _pzclaProjectId :: !Text
, _pzclaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersLegacyAbac
:: Text
-> SetLegacyAbacRequest
-> Text
-> Text
-> ProjectsZonesClustersLegacyAbac
projectsZonesClustersLegacyAbac pPzclaZone_ pPzclaPayload_ pPzclaClusterId_ pPzclaProjectId_ =
ProjectsZonesClustersLegacyAbac'
{ _pzclaXgafv = Nothing
, _pzclaUploadProtocol = Nothing
, _pzclaAccessToken = Nothing
, _pzclaUploadType = Nothing
, _pzclaZone = pPzclaZone_
, _pzclaPayload = pPzclaPayload_
, _pzclaClusterId = pPzclaClusterId_
, _pzclaProjectId = pPzclaProjectId_
, _pzclaCallback = Nothing
}
pzclaXgafv :: Lens' ProjectsZonesClustersLegacyAbac (Maybe Xgafv)
pzclaXgafv
= lens _pzclaXgafv (\ s a -> s{_pzclaXgafv = a})
pzclaUploadProtocol :: Lens' ProjectsZonesClustersLegacyAbac (Maybe Text)
pzclaUploadProtocol
= lens _pzclaUploadProtocol
(\ s a -> s{_pzclaUploadProtocol = a})
pzclaAccessToken :: Lens' ProjectsZonesClustersLegacyAbac (Maybe Text)
pzclaAccessToken
= lens _pzclaAccessToken
(\ s a -> s{_pzclaAccessToken = a})
pzclaUploadType :: Lens' ProjectsZonesClustersLegacyAbac (Maybe Text)
pzclaUploadType
= lens _pzclaUploadType
(\ s a -> s{_pzclaUploadType = a})
pzclaZone :: Lens' ProjectsZonesClustersLegacyAbac Text
pzclaZone
= lens _pzclaZone (\ s a -> s{_pzclaZone = a})
pzclaPayload :: Lens' ProjectsZonesClustersLegacyAbac SetLegacyAbacRequest
pzclaPayload
= lens _pzclaPayload (\ s a -> s{_pzclaPayload = a})
pzclaClusterId :: Lens' ProjectsZonesClustersLegacyAbac Text
pzclaClusterId
= lens _pzclaClusterId
(\ s a -> s{_pzclaClusterId = a})
pzclaProjectId :: Lens' ProjectsZonesClustersLegacyAbac Text
pzclaProjectId
= lens _pzclaProjectId
(\ s a -> s{_pzclaProjectId = a})
pzclaCallback :: Lens' ProjectsZonesClustersLegacyAbac (Maybe Text)
pzclaCallback
= lens _pzclaCallback
(\ s a -> s{_pzclaCallback = a})
instance GoogleRequest
ProjectsZonesClustersLegacyAbac where
type Rs ProjectsZonesClustersLegacyAbac = Operation
type Scopes ProjectsZonesClustersLegacyAbac =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesClustersLegacyAbac'{..}
= go _pzclaProjectId _pzclaZone _pzclaClusterId
_pzclaXgafv
_pzclaUploadProtocol
_pzclaAccessToken
_pzclaUploadType
_pzclaCallback
(Just AltJSON)
_pzclaPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesClustersLegacyAbacResource)
mempty