{-# 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.RegionDisks.SetLabels
(
RegionDisksSetLabelsResource
, regionDisksSetLabels
, RegionDisksSetLabels
, rdslRequestId
, rdslProject
, rdslPayload
, rdslResource
, rdslRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionDisksSetLabelsResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"disks" :>
Capture "resource" Text :>
"setLabels" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RegionSetLabelsRequest :>
Post '[JSON] Operation
data RegionDisksSetLabels = RegionDisksSetLabels'
{ _rdslRequestId :: !(Maybe Text)
, _rdslProject :: !Text
, _rdslPayload :: !RegionSetLabelsRequest
, _rdslResource :: !Text
, _rdslRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
regionDisksSetLabels
:: Text
-> RegionSetLabelsRequest
-> Text
-> Text
-> RegionDisksSetLabels
regionDisksSetLabels pRdslProject_ pRdslPayload_ pRdslResource_ pRdslRegion_ =
RegionDisksSetLabels'
{ _rdslRequestId = Nothing
, _rdslProject = pRdslProject_
, _rdslPayload = pRdslPayload_
, _rdslResource = pRdslResource_
, _rdslRegion = pRdslRegion_
}
rdslRequestId :: Lens' RegionDisksSetLabels (Maybe Text)
rdslRequestId
= lens _rdslRequestId
(\ s a -> s{_rdslRequestId = a})
rdslProject :: Lens' RegionDisksSetLabels Text
rdslProject
= lens _rdslProject (\ s a -> s{_rdslProject = a})
rdslPayload :: Lens' RegionDisksSetLabels RegionSetLabelsRequest
rdslPayload
= lens _rdslPayload (\ s a -> s{_rdslPayload = a})
rdslResource :: Lens' RegionDisksSetLabels Text
rdslResource
= lens _rdslResource (\ s a -> s{_rdslResource = a})
rdslRegion :: Lens' RegionDisksSetLabels Text
rdslRegion
= lens _rdslRegion (\ s a -> s{_rdslRegion = a})
instance GoogleRequest RegionDisksSetLabels where
type Rs RegionDisksSetLabels = Operation
type Scopes RegionDisksSetLabels =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient RegionDisksSetLabels'{..}
= go _rdslProject _rdslRegion _rdslResource
_rdslRequestId
(Just AltJSON)
_rdslPayload
computeService
where go
= buildClient
(Proxy :: Proxy RegionDisksSetLabelsResource)
mempty