{-# 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.Resize
(
RegionDisksResizeResource
, regionDisksResize
, RegionDisksResize
, rdrRequestId
, rdrProject
, rdrDisk
, rdrPayload
, rdrRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionDisksResizeResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"disks" :>
Capture "disk" Text :>
"resize" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RegionDisksResizeRequest :>
Post '[JSON] Operation
data RegionDisksResize = RegionDisksResize'
{ _rdrRequestId :: !(Maybe Text)
, _rdrProject :: !Text
, _rdrDisk :: !Text
, _rdrPayload :: !RegionDisksResizeRequest
, _rdrRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
regionDisksResize
:: Text
-> Text
-> RegionDisksResizeRequest
-> Text
-> RegionDisksResize
regionDisksResize pRdrProject_ pRdrDisk_ pRdrPayload_ pRdrRegion_ =
RegionDisksResize'
{ _rdrRequestId = Nothing
, _rdrProject = pRdrProject_
, _rdrDisk = pRdrDisk_
, _rdrPayload = pRdrPayload_
, _rdrRegion = pRdrRegion_
}
rdrRequestId :: Lens' RegionDisksResize (Maybe Text)
rdrRequestId
= lens _rdrRequestId (\ s a -> s{_rdrRequestId = a})
rdrProject :: Lens' RegionDisksResize Text
rdrProject
= lens _rdrProject (\ s a -> s{_rdrProject = a})
rdrDisk :: Lens' RegionDisksResize Text
rdrDisk = lens _rdrDisk (\ s a -> s{_rdrDisk = a})
rdrPayload :: Lens' RegionDisksResize RegionDisksResizeRequest
rdrPayload
= lens _rdrPayload (\ s a -> s{_rdrPayload = a})
rdrRegion :: Lens' RegionDisksResize Text
rdrRegion
= lens _rdrRegion (\ s a -> s{_rdrRegion = a})
instance GoogleRequest RegionDisksResize where
type Rs RegionDisksResize = Operation
type Scopes RegionDisksResize =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient RegionDisksResize'{..}
= go _rdrProject _rdrRegion _rdrDisk _rdrRequestId
(Just AltJSON)
_rdrPayload
computeService
where go
= buildClient
(Proxy :: Proxy RegionDisksResizeResource)
mempty