{-# 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.Addons
(
ProjectsZonesClustersAddonsResource
, projectsZonesClustersAddons
, ProjectsZonesClustersAddons
, pzcaXgafv
, pzcaUploadProtocol
, pzcaAccessToken
, pzcaUploadType
, pzcaZone
, pzcaPayload
, pzcaClusterId
, pzcaProjectId
, pzcaCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersAddonsResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"addons" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SetAddonsConfigRequest :>
Post '[JSON] Operation
data ProjectsZonesClustersAddons = ProjectsZonesClustersAddons'
{ _pzcaXgafv :: !(Maybe Xgafv)
, _pzcaUploadProtocol :: !(Maybe Text)
, _pzcaAccessToken :: !(Maybe Text)
, _pzcaUploadType :: !(Maybe Text)
, _pzcaZone :: !Text
, _pzcaPayload :: !SetAddonsConfigRequest
, _pzcaClusterId :: !Text
, _pzcaProjectId :: !Text
, _pzcaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersAddons
:: Text
-> SetAddonsConfigRequest
-> Text
-> Text
-> ProjectsZonesClustersAddons
projectsZonesClustersAddons pPzcaZone_ pPzcaPayload_ pPzcaClusterId_ pPzcaProjectId_ =
ProjectsZonesClustersAddons'
{ _pzcaXgafv = Nothing
, _pzcaUploadProtocol = Nothing
, _pzcaAccessToken = Nothing
, _pzcaUploadType = Nothing
, _pzcaZone = pPzcaZone_
, _pzcaPayload = pPzcaPayload_
, _pzcaClusterId = pPzcaClusterId_
, _pzcaProjectId = pPzcaProjectId_
, _pzcaCallback = Nothing
}
pzcaXgafv :: Lens' ProjectsZonesClustersAddons (Maybe Xgafv)
pzcaXgafv
= lens _pzcaXgafv (\ s a -> s{_pzcaXgafv = a})
pzcaUploadProtocol :: Lens' ProjectsZonesClustersAddons (Maybe Text)
pzcaUploadProtocol
= lens _pzcaUploadProtocol
(\ s a -> s{_pzcaUploadProtocol = a})
pzcaAccessToken :: Lens' ProjectsZonesClustersAddons (Maybe Text)
pzcaAccessToken
= lens _pzcaAccessToken
(\ s a -> s{_pzcaAccessToken = a})
pzcaUploadType :: Lens' ProjectsZonesClustersAddons (Maybe Text)
pzcaUploadType
= lens _pzcaUploadType
(\ s a -> s{_pzcaUploadType = a})
pzcaZone :: Lens' ProjectsZonesClustersAddons Text
pzcaZone = lens _pzcaZone (\ s a -> s{_pzcaZone = a})
pzcaPayload :: Lens' ProjectsZonesClustersAddons SetAddonsConfigRequest
pzcaPayload
= lens _pzcaPayload (\ s a -> s{_pzcaPayload = a})
pzcaClusterId :: Lens' ProjectsZonesClustersAddons Text
pzcaClusterId
= lens _pzcaClusterId
(\ s a -> s{_pzcaClusterId = a})
pzcaProjectId :: Lens' ProjectsZonesClustersAddons Text
pzcaProjectId
= lens _pzcaProjectId
(\ s a -> s{_pzcaProjectId = a})
pzcaCallback :: Lens' ProjectsZonesClustersAddons (Maybe Text)
pzcaCallback
= lens _pzcaCallback (\ s a -> s{_pzcaCallback = a})
instance GoogleRequest ProjectsZonesClustersAddons
where
type Rs ProjectsZonesClustersAddons = Operation
type Scopes ProjectsZonesClustersAddons =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesClustersAddons'{..}
= go _pzcaProjectId _pzcaZone _pzcaClusterId
_pzcaXgafv
_pzcaUploadProtocol
_pzcaAccessToken
_pzcaUploadType
_pzcaCallback
(Just AltJSON)
_pzcaPayload
containerService
where go
= buildClient
(Proxy :: Proxy ProjectsZonesClustersAddonsResource)
mempty