{-# 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.Tables.ModifyColumnFamilies
(
ProjectsInstancesTablesModifyColumnFamiliesResource
, projectsInstancesTablesModifyColumnFamilies
, ProjectsInstancesTablesModifyColumnFamilies
, pitmcfXgafv
, pitmcfUploadProtocol
, pitmcfAccessToken
, pitmcfUploadType
, pitmcfPayload
, pitmcfName
, pitmcfCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesTablesModifyColumnFamiliesResource
=
"v2" :>
CaptureMode "name" "modifyColumnFamilies" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ModifyColumnFamiliesRequest :>
Post '[JSON] Table
data ProjectsInstancesTablesModifyColumnFamilies = ProjectsInstancesTablesModifyColumnFamilies'
{ _pitmcfXgafv :: !(Maybe Xgafv)
, _pitmcfUploadProtocol :: !(Maybe Text)
, _pitmcfAccessToken :: !(Maybe Text)
, _pitmcfUploadType :: !(Maybe Text)
, _pitmcfPayload :: !ModifyColumnFamiliesRequest
, _pitmcfName :: !Text
, _pitmcfCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesTablesModifyColumnFamilies
:: ModifyColumnFamiliesRequest
-> Text
-> ProjectsInstancesTablesModifyColumnFamilies
projectsInstancesTablesModifyColumnFamilies pPitmcfPayload_ pPitmcfName_ =
ProjectsInstancesTablesModifyColumnFamilies'
{ _pitmcfXgafv = Nothing
, _pitmcfUploadProtocol = Nothing
, _pitmcfAccessToken = Nothing
, _pitmcfUploadType = Nothing
, _pitmcfPayload = pPitmcfPayload_
, _pitmcfName = pPitmcfName_
, _pitmcfCallback = Nothing
}
pitmcfXgafv :: Lens' ProjectsInstancesTablesModifyColumnFamilies (Maybe Xgafv)
pitmcfXgafv
= lens _pitmcfXgafv (\ s a -> s{_pitmcfXgafv = a})
pitmcfUploadProtocol :: Lens' ProjectsInstancesTablesModifyColumnFamilies (Maybe Text)
pitmcfUploadProtocol
= lens _pitmcfUploadProtocol
(\ s a -> s{_pitmcfUploadProtocol = a})
pitmcfAccessToken :: Lens' ProjectsInstancesTablesModifyColumnFamilies (Maybe Text)
pitmcfAccessToken
= lens _pitmcfAccessToken
(\ s a -> s{_pitmcfAccessToken = a})
pitmcfUploadType :: Lens' ProjectsInstancesTablesModifyColumnFamilies (Maybe Text)
pitmcfUploadType
= lens _pitmcfUploadType
(\ s a -> s{_pitmcfUploadType = a})
pitmcfPayload :: Lens' ProjectsInstancesTablesModifyColumnFamilies ModifyColumnFamiliesRequest
pitmcfPayload
= lens _pitmcfPayload
(\ s a -> s{_pitmcfPayload = a})
pitmcfName :: Lens' ProjectsInstancesTablesModifyColumnFamilies Text
pitmcfName
= lens _pitmcfName (\ s a -> s{_pitmcfName = a})
pitmcfCallback :: Lens' ProjectsInstancesTablesModifyColumnFamilies (Maybe Text)
pitmcfCallback
= lens _pitmcfCallback
(\ s a -> s{_pitmcfCallback = a})
instance GoogleRequest
ProjectsInstancesTablesModifyColumnFamilies where
type Rs ProjectsInstancesTablesModifyColumnFamilies =
Table
type Scopes
ProjectsInstancesTablesModifyColumnFamilies
=
'["https://www.googleapis.com/auth/bigtable.admin",
"https://www.googleapis.com/auth/bigtable.admin.table",
"https://www.googleapis.com/auth/cloud-bigtable.admin",
"https://www.googleapis.com/auth/cloud-bigtable.admin.table",
"https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsInstancesTablesModifyColumnFamilies'{..}
= go _pitmcfName _pitmcfXgafv _pitmcfUploadProtocol
_pitmcfAccessToken
_pitmcfUploadType
_pitmcfCallback
(Just AltJSON)
_pitmcfPayload
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy
ProjectsInstancesTablesModifyColumnFamiliesResource)
mempty