{-# 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.Disks.SetLabels
(
DisksSetLabelsResource
, disksSetLabels
, DisksSetLabels
, dslRequestId
, dslProject
, dslZone
, dslPayload
, dslResource
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type DisksSetLabelsResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"disks" :>
Capture "resource" Text :>
"setLabels" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ZoneSetLabelsRequest :>
Post '[JSON] Operation
data DisksSetLabels = DisksSetLabels'
{ _dslRequestId :: !(Maybe Text)
, _dslProject :: !Text
, _dslZone :: !Text
, _dslPayload :: !ZoneSetLabelsRequest
, _dslResource :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
disksSetLabels
:: Text
-> Text
-> ZoneSetLabelsRequest
-> Text
-> DisksSetLabels
disksSetLabels pDslProject_ pDslZone_ pDslPayload_ pDslResource_ =
DisksSetLabels'
{ _dslRequestId = Nothing
, _dslProject = pDslProject_
, _dslZone = pDslZone_
, _dslPayload = pDslPayload_
, _dslResource = pDslResource_
}
dslRequestId :: Lens' DisksSetLabels (Maybe Text)
dslRequestId
= lens _dslRequestId (\ s a -> s{_dslRequestId = a})
dslProject :: Lens' DisksSetLabels Text
dslProject
= lens _dslProject (\ s a -> s{_dslProject = a})
dslZone :: Lens' DisksSetLabels Text
dslZone = lens _dslZone (\ s a -> s{_dslZone = a})
dslPayload :: Lens' DisksSetLabels ZoneSetLabelsRequest
dslPayload
= lens _dslPayload (\ s a -> s{_dslPayload = a})
dslResource :: Lens' DisksSetLabels Text
dslResource
= lens _dslResource (\ s a -> s{_dslResource = a})
instance GoogleRequest DisksSetLabels where
type Rs DisksSetLabels = Operation
type Scopes DisksSetLabels =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient DisksSetLabels'{..}
= go _dslProject _dslZone _dslResource _dslRequestId
(Just AltJSON)
_dslPayload
computeService
where go
= buildClient (Proxy :: Proxy DisksSetLabelsResource)
mempty