{-# 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.CheckConsistency
(
ProjectsInstancesTablesCheckConsistencyResource
, projectsInstancesTablesCheckConsistency
, ProjectsInstancesTablesCheckConsistency
, pitccXgafv
, pitccUploadProtocol
, pitccAccessToken
, pitccUploadType
, pitccPayload
, pitccName
, pitccCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesTablesCheckConsistencyResource
=
"v2" :>
CaptureMode "name" "checkConsistency" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] CheckConsistencyRequest :>
Post '[JSON] CheckConsistencyResponse
data ProjectsInstancesTablesCheckConsistency = ProjectsInstancesTablesCheckConsistency'
{ _pitccXgafv :: !(Maybe Xgafv)
, _pitccUploadProtocol :: !(Maybe Text)
, _pitccAccessToken :: !(Maybe Text)
, _pitccUploadType :: !(Maybe Text)
, _pitccPayload :: !CheckConsistencyRequest
, _pitccName :: !Text
, _pitccCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesTablesCheckConsistency
:: CheckConsistencyRequest
-> Text
-> ProjectsInstancesTablesCheckConsistency
projectsInstancesTablesCheckConsistency pPitccPayload_ pPitccName_ =
ProjectsInstancesTablesCheckConsistency'
{ _pitccXgafv = Nothing
, _pitccUploadProtocol = Nothing
, _pitccAccessToken = Nothing
, _pitccUploadType = Nothing
, _pitccPayload = pPitccPayload_
, _pitccName = pPitccName_
, _pitccCallback = Nothing
}
pitccXgafv :: Lens' ProjectsInstancesTablesCheckConsistency (Maybe Xgafv)
pitccXgafv
= lens _pitccXgafv (\ s a -> s{_pitccXgafv = a})
pitccUploadProtocol :: Lens' ProjectsInstancesTablesCheckConsistency (Maybe Text)
pitccUploadProtocol
= lens _pitccUploadProtocol
(\ s a -> s{_pitccUploadProtocol = a})
pitccAccessToken :: Lens' ProjectsInstancesTablesCheckConsistency (Maybe Text)
pitccAccessToken
= lens _pitccAccessToken
(\ s a -> s{_pitccAccessToken = a})
pitccUploadType :: Lens' ProjectsInstancesTablesCheckConsistency (Maybe Text)
pitccUploadType
= lens _pitccUploadType
(\ s a -> s{_pitccUploadType = a})
pitccPayload :: Lens' ProjectsInstancesTablesCheckConsistency CheckConsistencyRequest
pitccPayload
= lens _pitccPayload (\ s a -> s{_pitccPayload = a})
pitccName :: Lens' ProjectsInstancesTablesCheckConsistency Text
pitccName
= lens _pitccName (\ s a -> s{_pitccName = a})
pitccCallback :: Lens' ProjectsInstancesTablesCheckConsistency (Maybe Text)
pitccCallback
= lens _pitccCallback
(\ s a -> s{_pitccCallback = a})
instance GoogleRequest
ProjectsInstancesTablesCheckConsistency where
type Rs ProjectsInstancesTablesCheckConsistency =
CheckConsistencyResponse
type Scopes ProjectsInstancesTablesCheckConsistency =
'["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
ProjectsInstancesTablesCheckConsistency'{..}
= go _pitccName _pitccXgafv _pitccUploadProtocol
_pitccAccessToken
_pitccUploadType
_pitccCallback
(Just AltJSON)
_pitccPayload
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy
ProjectsInstancesTablesCheckConsistencyResource)
mempty