{-# 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.SQL.Instances.Delete
(
InstancesDeleteResource
, instancesDelete
, InstancesDelete
, idProject
, idInstance
) where
import Network.Google.Prelude
import Network.Google.SQLAdmin.Types
type InstancesDeleteResource =
"sql" :>
"v1beta4" :>
"projects" :>
Capture "project" Text :>
"instances" :>
Capture "instance" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data InstancesDelete = InstancesDelete'
{ _idProject :: !Text
, _idInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instancesDelete
:: Text
-> Text
-> InstancesDelete
instancesDelete pIdProject_ pIdInstance_ =
InstancesDelete'
{ _idProject = pIdProject_
, _idInstance = pIdInstance_
}
idProject :: Lens' InstancesDelete Text
idProject
= lens _idProject (\ s a -> s{_idProject = a})
idInstance :: Lens' InstancesDelete Text
idInstance
= lens _idInstance (\ s a -> s{_idInstance = a})
instance GoogleRequest InstancesDelete where
type Rs InstancesDelete = Operation
type Scopes InstancesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"]
requestClient InstancesDelete'{..}
= go _idProject _idInstance (Just AltJSON)
sQLAdminService
where go
= buildClient
(Proxy :: Proxy InstancesDeleteResource)
mempty