{-# 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.Compute.BackendBuckets.Delete
(
BackendBucketsDeleteResource
, backendBucketsDelete
, BackendBucketsDelete
, bbdRequestId
, bbdBackendBucket
, bbdProject
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type BackendBucketsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"backendBuckets" :>
Capture "backendBucket" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data BackendBucketsDelete = BackendBucketsDelete'
{ _bbdRequestId :: !(Maybe Text)
, _bbdBackendBucket :: !Text
, _bbdProject :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
backendBucketsDelete
:: Text
-> Text
-> BackendBucketsDelete
backendBucketsDelete pBbdBackendBucket_ pBbdProject_ =
BackendBucketsDelete'
{ _bbdRequestId = Nothing
, _bbdBackendBucket = pBbdBackendBucket_
, _bbdProject = pBbdProject_
}
bbdRequestId :: Lens' BackendBucketsDelete (Maybe Text)
bbdRequestId
= lens _bbdRequestId (\ s a -> s{_bbdRequestId = a})
bbdBackendBucket :: Lens' BackendBucketsDelete Text
bbdBackendBucket
= lens _bbdBackendBucket
(\ s a -> s{_bbdBackendBucket = a})
bbdProject :: Lens' BackendBucketsDelete Text
bbdProject
= lens _bbdProject (\ s a -> s{_bbdProject = a})
instance GoogleRequest BackendBucketsDelete where
type Rs BackendBucketsDelete = Operation
type Scopes BackendBucketsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient BackendBucketsDelete'{..}
= go _bbdProject _bbdBackendBucket _bbdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy BackendBucketsDeleteResource)
mempty