{-# 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.BigtableAdmin.Projects.Instances.Clusters.Update
(
ProjectsInstancesClustersUpdateResource
, projectsInstancesClustersUpdate
, ProjectsInstancesClustersUpdate
, picuXgafv
, picuUploadProtocol
, picuAccessToken
, picuUploadType
, picuPayload
, picuName
, picuCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesClustersUpdateResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Cluster :> Put '[JSON] Operation
data ProjectsInstancesClustersUpdate = ProjectsInstancesClustersUpdate'
{ _picuXgafv :: !(Maybe Xgafv)
, _picuUploadProtocol :: !(Maybe Text)
, _picuAccessToken :: !(Maybe Text)
, _picuUploadType :: !(Maybe Text)
, _picuPayload :: !Cluster
, _picuName :: !Text
, _picuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesClustersUpdate
:: Cluster
-> Text
-> ProjectsInstancesClustersUpdate
projectsInstancesClustersUpdate pPicuPayload_ pPicuName_ =
ProjectsInstancesClustersUpdate'
{ _picuXgafv = Nothing
, _picuUploadProtocol = Nothing
, _picuAccessToken = Nothing
, _picuUploadType = Nothing
, _picuPayload = pPicuPayload_
, _picuName = pPicuName_
, _picuCallback = Nothing
}
picuXgafv :: Lens' ProjectsInstancesClustersUpdate (Maybe Xgafv)
picuXgafv
= lens _picuXgafv (\ s a -> s{_picuXgafv = a})
picuUploadProtocol :: Lens' ProjectsInstancesClustersUpdate (Maybe Text)
picuUploadProtocol
= lens _picuUploadProtocol
(\ s a -> s{_picuUploadProtocol = a})
picuAccessToken :: Lens' ProjectsInstancesClustersUpdate (Maybe Text)
picuAccessToken
= lens _picuAccessToken
(\ s a -> s{_picuAccessToken = a})
picuUploadType :: Lens' ProjectsInstancesClustersUpdate (Maybe Text)
picuUploadType
= lens _picuUploadType
(\ s a -> s{_picuUploadType = a})
picuPayload :: Lens' ProjectsInstancesClustersUpdate Cluster
picuPayload
= lens _picuPayload (\ s a -> s{_picuPayload = a})
picuName :: Lens' ProjectsInstancesClustersUpdate Text
picuName = lens _picuName (\ s a -> s{_picuName = a})
picuCallback :: Lens' ProjectsInstancesClustersUpdate (Maybe Text)
picuCallback
= lens _picuCallback (\ s a -> s{_picuCallback = a})
instance GoogleRequest
ProjectsInstancesClustersUpdate where
type Rs ProjectsInstancesClustersUpdate = Operation
type Scopes ProjectsInstancesClustersUpdate =
'["https://www.googleapis.com/auth/bigtable.admin",
"https://www.googleapis.com/auth/bigtable.admin.cluster",
"https://www.googleapis.com/auth/bigtable.admin.instance",
"https://www.googleapis.com/auth/cloud-bigtable.admin",
"https://www.googleapis.com/auth/cloud-bigtable.admin.cluster",
"https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsInstancesClustersUpdate'{..}
= go _picuName _picuXgafv _picuUploadProtocol
_picuAccessToken
_picuUploadType
_picuCallback
(Just AltJSON)
_picuPayload
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesClustersUpdateResource)
mempty