{-# 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.SetAddons
(
ProjectsLocationsClustersSetAddonsResource
, projectsLocationsClustersSetAddons
, ProjectsLocationsClustersSetAddons
, plcsaXgafv
, plcsaUploadProtocol
, plcsaAccessToken
, plcsaUploadType
, plcsaPayload
, plcsaName
, plcsaCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersSetAddonsResource =
"v1" :>
CaptureMode "name" "setAddons" Text :>
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 ProjectsLocationsClustersSetAddons = ProjectsLocationsClustersSetAddons'
{ _plcsaXgafv :: !(Maybe Xgafv)
, _plcsaUploadProtocol :: !(Maybe Text)
, _plcsaAccessToken :: !(Maybe Text)
, _plcsaUploadType :: !(Maybe Text)
, _plcsaPayload :: !SetAddonsConfigRequest
, _plcsaName :: !Text
, _plcsaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersSetAddons
:: SetAddonsConfigRequest
-> Text
-> ProjectsLocationsClustersSetAddons
projectsLocationsClustersSetAddons pPlcsaPayload_ pPlcsaName_ =
ProjectsLocationsClustersSetAddons'
{ _plcsaXgafv = Nothing
, _plcsaUploadProtocol = Nothing
, _plcsaAccessToken = Nothing
, _plcsaUploadType = Nothing
, _plcsaPayload = pPlcsaPayload_
, _plcsaName = pPlcsaName_
, _plcsaCallback = Nothing
}
plcsaXgafv :: Lens' ProjectsLocationsClustersSetAddons (Maybe Xgafv)
plcsaXgafv
= lens _plcsaXgafv (\ s a -> s{_plcsaXgafv = a})
plcsaUploadProtocol :: Lens' ProjectsLocationsClustersSetAddons (Maybe Text)
plcsaUploadProtocol
= lens _plcsaUploadProtocol
(\ s a -> s{_plcsaUploadProtocol = a})
plcsaAccessToken :: Lens' ProjectsLocationsClustersSetAddons (Maybe Text)
plcsaAccessToken
= lens _plcsaAccessToken
(\ s a -> s{_plcsaAccessToken = a})
plcsaUploadType :: Lens' ProjectsLocationsClustersSetAddons (Maybe Text)
plcsaUploadType
= lens _plcsaUploadType
(\ s a -> s{_plcsaUploadType = a})
plcsaPayload :: Lens' ProjectsLocationsClustersSetAddons SetAddonsConfigRequest
plcsaPayload
= lens _plcsaPayload (\ s a -> s{_plcsaPayload = a})
plcsaName :: Lens' ProjectsLocationsClustersSetAddons Text
plcsaName
= lens _plcsaName (\ s a -> s{_plcsaName = a})
plcsaCallback :: Lens' ProjectsLocationsClustersSetAddons (Maybe Text)
plcsaCallback
= lens _plcsaCallback
(\ s a -> s{_plcsaCallback = a})
instance GoogleRequest
ProjectsLocationsClustersSetAddons where
type Rs ProjectsLocationsClustersSetAddons =
Operation
type Scopes ProjectsLocationsClustersSetAddons =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsClustersSetAddons'{..}
= go _plcsaName _plcsaXgafv _plcsaUploadProtocol
_plcsaAccessToken
_plcsaUploadType
_plcsaCallback
(Just AltJSON)
_plcsaPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsClustersSetAddonsResource)
mempty