{-# 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.AddSignedURLKey
(
BackendBucketsAddSignedURLKeyResource
, backendBucketsAddSignedURLKey
, BackendBucketsAddSignedURLKey
, bbasukRequestId
, bbasukBackendBucket
, bbasukProject
, bbasukPayload
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type BackendBucketsAddSignedURLKeyResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"backendBuckets" :>
Capture "backendBucket" Text :>
"addSignedUrlKey" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SignedURLKey :>
Post '[JSON] Operation
data BackendBucketsAddSignedURLKey = BackendBucketsAddSignedURLKey'
{ _bbasukRequestId :: !(Maybe Text)
, _bbasukBackendBucket :: !Text
, _bbasukProject :: !Text
, _bbasukPayload :: !SignedURLKey
} deriving (Eq,Show,Data,Typeable,Generic)
backendBucketsAddSignedURLKey
:: Text
-> Text
-> SignedURLKey
-> BackendBucketsAddSignedURLKey
backendBucketsAddSignedURLKey pBbasukBackendBucket_ pBbasukProject_ pBbasukPayload_ =
BackendBucketsAddSignedURLKey'
{ _bbasukRequestId = Nothing
, _bbasukBackendBucket = pBbasukBackendBucket_
, _bbasukProject = pBbasukProject_
, _bbasukPayload = pBbasukPayload_
}
bbasukRequestId :: Lens' BackendBucketsAddSignedURLKey (Maybe Text)
bbasukRequestId
= lens _bbasukRequestId
(\ s a -> s{_bbasukRequestId = a})
bbasukBackendBucket :: Lens' BackendBucketsAddSignedURLKey Text
bbasukBackendBucket
= lens _bbasukBackendBucket
(\ s a -> s{_bbasukBackendBucket = a})
bbasukProject :: Lens' BackendBucketsAddSignedURLKey Text
bbasukProject
= lens _bbasukProject
(\ s a -> s{_bbasukProject = a})
bbasukPayload :: Lens' BackendBucketsAddSignedURLKey SignedURLKey
bbasukPayload
= lens _bbasukPayload
(\ s a -> s{_bbasukPayload = a})
instance GoogleRequest BackendBucketsAddSignedURLKey
where
type Rs BackendBucketsAddSignedURLKey = Operation
type Scopes BackendBucketsAddSignedURLKey =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient BackendBucketsAddSignedURLKey'{..}
= go _bbasukProject _bbasukBackendBucket
_bbasukRequestId
(Just AltJSON)
_bbasukPayload
computeService
where go
= buildClient
(Proxy ::
Proxy BackendBucketsAddSignedURLKeyResource)
mempty