{-# 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.DeleteSignedURLKey
(
BackendBucketsDeleteSignedURLKeyResource
, backendBucketsDeleteSignedURLKey
, BackendBucketsDeleteSignedURLKey
, bbdsukRequestId
, bbdsukBackendBucket
, bbdsukProject
, bbdsukKeyName
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type BackendBucketsDeleteSignedURLKeyResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"backendBuckets" :>
Capture "backendBucket" Text :>
"deleteSignedUrlKey" :>
QueryParam "keyName" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] Operation
data BackendBucketsDeleteSignedURLKey = BackendBucketsDeleteSignedURLKey'
{ _bbdsukRequestId :: !(Maybe Text)
, _bbdsukBackendBucket :: !Text
, _bbdsukProject :: !Text
, _bbdsukKeyName :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
backendBucketsDeleteSignedURLKey
:: Text
-> Text
-> Text
-> BackendBucketsDeleteSignedURLKey
backendBucketsDeleteSignedURLKey pBbdsukBackendBucket_ pBbdsukProject_ pBbdsukKeyName_ =
BackendBucketsDeleteSignedURLKey'
{ _bbdsukRequestId = Nothing
, _bbdsukBackendBucket = pBbdsukBackendBucket_
, _bbdsukProject = pBbdsukProject_
, _bbdsukKeyName = pBbdsukKeyName_
}
bbdsukRequestId :: Lens' BackendBucketsDeleteSignedURLKey (Maybe Text)
bbdsukRequestId
= lens _bbdsukRequestId
(\ s a -> s{_bbdsukRequestId = a})
bbdsukBackendBucket :: Lens' BackendBucketsDeleteSignedURLKey Text
bbdsukBackendBucket
= lens _bbdsukBackendBucket
(\ s a -> s{_bbdsukBackendBucket = a})
bbdsukProject :: Lens' BackendBucketsDeleteSignedURLKey Text
bbdsukProject
= lens _bbdsukProject
(\ s a -> s{_bbdsukProject = a})
bbdsukKeyName :: Lens' BackendBucketsDeleteSignedURLKey Text
bbdsukKeyName
= lens _bbdsukKeyName
(\ s a -> s{_bbdsukKeyName = a})
instance GoogleRequest
BackendBucketsDeleteSignedURLKey where
type Rs BackendBucketsDeleteSignedURLKey = Operation
type Scopes BackendBucketsDeleteSignedURLKey =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient BackendBucketsDeleteSignedURLKey'{..}
= go _bbdsukProject _bbdsukBackendBucket
(Just _bbdsukKeyName)
_bbdsukRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy ::
Proxy BackendBucketsDeleteSignedURLKeyResource)
mempty