{-# 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.Delete
(
ProjectsInstancesDeleteResource
, projectsInstancesDelete
, ProjectsInstancesDelete
, pidXgafv
, pidUploadProtocol
, pidAccessToken
, pidUploadType
, pidName
, pidCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesDeleteResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data ProjectsInstancesDelete = ProjectsInstancesDelete'
{ _pidXgafv :: !(Maybe Xgafv)
, _pidUploadProtocol :: !(Maybe Text)
, _pidAccessToken :: !(Maybe Text)
, _pidUploadType :: !(Maybe Text)
, _pidName :: !Text
, _pidCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesDelete
:: Text
-> ProjectsInstancesDelete
projectsInstancesDelete pPidName_ =
ProjectsInstancesDelete'
{ _pidXgafv = Nothing
, _pidUploadProtocol = Nothing
, _pidAccessToken = Nothing
, _pidUploadType = Nothing
, _pidName = pPidName_
, _pidCallback = Nothing
}
pidXgafv :: Lens' ProjectsInstancesDelete (Maybe Xgafv)
pidXgafv = lens _pidXgafv (\ s a -> s{_pidXgafv = a})
pidUploadProtocol :: Lens' ProjectsInstancesDelete (Maybe Text)
pidUploadProtocol
= lens _pidUploadProtocol
(\ s a -> s{_pidUploadProtocol = a})
pidAccessToken :: Lens' ProjectsInstancesDelete (Maybe Text)
pidAccessToken
= lens _pidAccessToken
(\ s a -> s{_pidAccessToken = a})
pidUploadType :: Lens' ProjectsInstancesDelete (Maybe Text)
pidUploadType
= lens _pidUploadType
(\ s a -> s{_pidUploadType = a})
pidName :: Lens' ProjectsInstancesDelete Text
pidName = lens _pidName (\ s a -> s{_pidName = a})
pidCallback :: Lens' ProjectsInstancesDelete (Maybe Text)
pidCallback
= lens _pidCallback (\ s a -> s{_pidCallback = a})
instance GoogleRequest ProjectsInstancesDelete where
type Rs ProjectsInstancesDelete = Empty
type Scopes ProjectsInstancesDelete =
'["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 ProjectsInstancesDelete'{..}
= go _pidName _pidXgafv _pidUploadProtocol
_pidAccessToken
_pidUploadType
_pidCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy :: Proxy ProjectsInstancesDeleteResource)
mempty