{-# 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.RegionInstanceGroupManagers.Patch
(
RegionInstanceGroupManagersPatchResource
, regionInstanceGroupManagersPatch
, RegionInstanceGroupManagersPatch
, rigmpRequestId
, rigmpProject
, rigmpInstanceGroupManager
, rigmpPayload
, rigmpRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionInstanceGroupManagersPatchResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"instanceGroupManagers" :>
Capture "instanceGroupManager" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] InstanceGroupManager :>
Patch '[JSON] Operation
data RegionInstanceGroupManagersPatch = RegionInstanceGroupManagersPatch'
{ _rigmpRequestId :: !(Maybe Text)
, _rigmpProject :: !Text
, _rigmpInstanceGroupManager :: !Text
, _rigmpPayload :: !InstanceGroupManager
, _rigmpRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
regionInstanceGroupManagersPatch
:: Text
-> Text
-> InstanceGroupManager
-> Text
-> RegionInstanceGroupManagersPatch
regionInstanceGroupManagersPatch pRigmpProject_ pRigmpInstanceGroupManager_ pRigmpPayload_ pRigmpRegion_ =
RegionInstanceGroupManagersPatch'
{ _rigmpRequestId = Nothing
, _rigmpProject = pRigmpProject_
, _rigmpInstanceGroupManager = pRigmpInstanceGroupManager_
, _rigmpPayload = pRigmpPayload_
, _rigmpRegion = pRigmpRegion_
}
rigmpRequestId :: Lens' RegionInstanceGroupManagersPatch (Maybe Text)
rigmpRequestId
= lens _rigmpRequestId
(\ s a -> s{_rigmpRequestId = a})
rigmpProject :: Lens' RegionInstanceGroupManagersPatch Text
rigmpProject
= lens _rigmpProject (\ s a -> s{_rigmpProject = a})
rigmpInstanceGroupManager :: Lens' RegionInstanceGroupManagersPatch Text
rigmpInstanceGroupManager
= lens _rigmpInstanceGroupManager
(\ s a -> s{_rigmpInstanceGroupManager = a})
rigmpPayload :: Lens' RegionInstanceGroupManagersPatch InstanceGroupManager
rigmpPayload
= lens _rigmpPayload (\ s a -> s{_rigmpPayload = a})
rigmpRegion :: Lens' RegionInstanceGroupManagersPatch Text
rigmpRegion
= lens _rigmpRegion (\ s a -> s{_rigmpRegion = a})
instance GoogleRequest
RegionInstanceGroupManagersPatch where
type Rs RegionInstanceGroupManagersPatch = Operation
type Scopes RegionInstanceGroupManagersPatch =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient RegionInstanceGroupManagersPatch'{..}
= go _rigmpProject _rigmpRegion
_rigmpInstanceGroupManager
_rigmpRequestId
(Just AltJSON)
_rigmpPayload
computeService
where go
= buildClient
(Proxy ::
Proxy RegionInstanceGroupManagersPatchResource)
mempty