{-# 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.ServiceConsumerManagement.Operations.Delete
(
OperationsDeleteResource
, operationsDelete
, OperationsDelete
, odXgafv
, odUploadProtocol
, odAccessToken
, odUploadType
, odName
, odCallback
) where
import Network.Google.Prelude
import Network.Google.ServiceConsumerManagement.Types
type OperationsDeleteResource =
"v1" :>
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 OperationsDelete = OperationsDelete'
{ _odXgafv :: !(Maybe Xgafv)
, _odUploadProtocol :: !(Maybe Text)
, _odAccessToken :: !(Maybe Text)
, _odUploadType :: !(Maybe Text)
, _odName :: !Text
, _odCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
operationsDelete
:: Text
-> OperationsDelete
operationsDelete pOdName_ =
OperationsDelete'
{ _odXgafv = Nothing
, _odUploadProtocol = Nothing
, _odAccessToken = Nothing
, _odUploadType = Nothing
, _odName = pOdName_
, _odCallback = Nothing
}
odXgafv :: Lens' OperationsDelete (Maybe Xgafv)
odXgafv = lens _odXgafv (\ s a -> s{_odXgafv = a})
odUploadProtocol :: Lens' OperationsDelete (Maybe Text)
odUploadProtocol
= lens _odUploadProtocol
(\ s a -> s{_odUploadProtocol = a})
odAccessToken :: Lens' OperationsDelete (Maybe Text)
odAccessToken
= lens _odAccessToken
(\ s a -> s{_odAccessToken = a})
odUploadType :: Lens' OperationsDelete (Maybe Text)
odUploadType
= lens _odUploadType (\ s a -> s{_odUploadType = a})
odName :: Lens' OperationsDelete Text
odName = lens _odName (\ s a -> s{_odName = a})
odCallback :: Lens' OperationsDelete (Maybe Text)
odCallback
= lens _odCallback (\ s a -> s{_odCallback = a})
instance GoogleRequest OperationsDelete where
type Rs OperationsDelete = Empty
type Scopes OperationsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OperationsDelete'{..}
= go _odName _odXgafv _odUploadProtocol
_odAccessToken
_odUploadType
_odCallback
(Just AltJSON)
serviceConsumerManagementService
where go
= buildClient
(Proxy :: Proxy OperationsDeleteResource)
mempty