{-# 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.BackendServices.DeleteSignedURLKey
(
BackendServicesDeleteSignedURLKeyResource
, backendServicesDeleteSignedURLKey
, BackendServicesDeleteSignedURLKey
, bsdsukRequestId
, bsdsukProject
, bsdsukKeyName
, bsdsukBackendService
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type BackendServicesDeleteSignedURLKeyResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"backendServices" :>
Capture "backendService" Text :>
"deleteSignedUrlKey" :>
QueryParam "keyName" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] Operation
data BackendServicesDeleteSignedURLKey = BackendServicesDeleteSignedURLKey'
{ _bsdsukRequestId :: !(Maybe Text)
, _bsdsukProject :: !Text
, _bsdsukKeyName :: !Text
, _bsdsukBackendService :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
backendServicesDeleteSignedURLKey
:: Text
-> Text
-> Text
-> BackendServicesDeleteSignedURLKey
backendServicesDeleteSignedURLKey pBsdsukProject_ pBsdsukKeyName_ pBsdsukBackendService_ =
BackendServicesDeleteSignedURLKey'
{ _bsdsukRequestId = Nothing
, _bsdsukProject = pBsdsukProject_
, _bsdsukKeyName = pBsdsukKeyName_
, _bsdsukBackendService = pBsdsukBackendService_
}
bsdsukRequestId :: Lens' BackendServicesDeleteSignedURLKey (Maybe Text)
bsdsukRequestId
= lens _bsdsukRequestId
(\ s a -> s{_bsdsukRequestId = a})
bsdsukProject :: Lens' BackendServicesDeleteSignedURLKey Text
bsdsukProject
= lens _bsdsukProject
(\ s a -> s{_bsdsukProject = a})
bsdsukKeyName :: Lens' BackendServicesDeleteSignedURLKey Text
bsdsukKeyName
= lens _bsdsukKeyName
(\ s a -> s{_bsdsukKeyName = a})
bsdsukBackendService :: Lens' BackendServicesDeleteSignedURLKey Text
bsdsukBackendService
= lens _bsdsukBackendService
(\ s a -> s{_bsdsukBackendService = a})
instance GoogleRequest
BackendServicesDeleteSignedURLKey where
type Rs BackendServicesDeleteSignedURLKey = Operation
type Scopes BackendServicesDeleteSignedURLKey =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient BackendServicesDeleteSignedURLKey'{..}
= go _bsdsukProject _bsdsukBackendService
(Just _bsdsukKeyName)
_bsdsukRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy ::
Proxy BackendServicesDeleteSignedURLKeyResource)
mempty