{-# 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.DropRowRange
(
ProjectsInstancesTablesDropRowRangeResource
, projectsInstancesTablesDropRowRange
, ProjectsInstancesTablesDropRowRange
, pitdrrXgafv
, pitdrrUploadProtocol
, pitdrrAccessToken
, pitdrrUploadType
, pitdrrPayload
, pitdrrName
, pitdrrCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesTablesDropRowRangeResource =
"v2" :>
CaptureMode "name" "dropRowRange" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] DropRowRangeRequest :>
Post '[JSON] Empty
data ProjectsInstancesTablesDropRowRange = ProjectsInstancesTablesDropRowRange'
{ _pitdrrXgafv :: !(Maybe Xgafv)
, _pitdrrUploadProtocol :: !(Maybe Text)
, _pitdrrAccessToken :: !(Maybe Text)
, _pitdrrUploadType :: !(Maybe Text)
, _pitdrrPayload :: !DropRowRangeRequest
, _pitdrrName :: !Text
, _pitdrrCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesTablesDropRowRange
:: DropRowRangeRequest
-> Text
-> ProjectsInstancesTablesDropRowRange
projectsInstancesTablesDropRowRange pPitdrrPayload_ pPitdrrName_ =
ProjectsInstancesTablesDropRowRange'
{ _pitdrrXgafv = Nothing
, _pitdrrUploadProtocol = Nothing
, _pitdrrAccessToken = Nothing
, _pitdrrUploadType = Nothing
, _pitdrrPayload = pPitdrrPayload_
, _pitdrrName = pPitdrrName_
, _pitdrrCallback = Nothing
}
pitdrrXgafv :: Lens' ProjectsInstancesTablesDropRowRange (Maybe Xgafv)
pitdrrXgafv
= lens _pitdrrXgafv (\ s a -> s{_pitdrrXgafv = a})
pitdrrUploadProtocol :: Lens' ProjectsInstancesTablesDropRowRange (Maybe Text)
pitdrrUploadProtocol
= lens _pitdrrUploadProtocol
(\ s a -> s{_pitdrrUploadProtocol = a})
pitdrrAccessToken :: Lens' ProjectsInstancesTablesDropRowRange (Maybe Text)
pitdrrAccessToken
= lens _pitdrrAccessToken
(\ s a -> s{_pitdrrAccessToken = a})
pitdrrUploadType :: Lens' ProjectsInstancesTablesDropRowRange (Maybe Text)
pitdrrUploadType
= lens _pitdrrUploadType
(\ s a -> s{_pitdrrUploadType = a})
pitdrrPayload :: Lens' ProjectsInstancesTablesDropRowRange DropRowRangeRequest
pitdrrPayload
= lens _pitdrrPayload
(\ s a -> s{_pitdrrPayload = a})
pitdrrName :: Lens' ProjectsInstancesTablesDropRowRange Text
pitdrrName
= lens _pitdrrName (\ s a -> s{_pitdrrName = a})
pitdrrCallback :: Lens' ProjectsInstancesTablesDropRowRange (Maybe Text)
pitdrrCallback
= lens _pitdrrCallback
(\ s a -> s{_pitdrrCallback = a})
instance GoogleRequest
ProjectsInstancesTablesDropRowRange where
type Rs ProjectsInstancesTablesDropRowRange = Empty
type Scopes ProjectsInstancesTablesDropRowRange =
'["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
ProjectsInstancesTablesDropRowRange'{..}
= go _pitdrrName _pitdrrXgafv _pitdrrUploadProtocol
_pitdrrAccessToken
_pitdrrUploadType
_pitdrrCallback
(Just AltJSON)
_pitdrrPayload
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesTablesDropRowRangeResource)
mempty