{-# 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.SetInstanceTemplate
(
RegionInstanceGroupManagersSetInstanceTemplateResource
, regionInstanceGroupManagersSetInstanceTemplate
, RegionInstanceGroupManagersSetInstanceTemplate
, rigmsitRequestId
, rigmsitProject
, rigmsitInstanceGroupManager
, rigmsitPayload
, rigmsitRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionInstanceGroupManagersSetInstanceTemplateResource
=
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"instanceGroupManagers" :>
Capture "instanceGroupManager" Text :>
"setInstanceTemplate" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
RegionInstanceGroupManagersSetTemplateRequest
:> Post '[JSON] Operation
data RegionInstanceGroupManagersSetInstanceTemplate = RegionInstanceGroupManagersSetInstanceTemplate'
{ _rigmsitRequestId :: !(Maybe Text)
, _rigmsitProject :: !Text
, _rigmsitInstanceGroupManager :: !Text
, _rigmsitPayload :: !RegionInstanceGroupManagersSetTemplateRequest
, _rigmsitRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
regionInstanceGroupManagersSetInstanceTemplate
:: Text
-> Text
-> RegionInstanceGroupManagersSetTemplateRequest
-> Text
-> RegionInstanceGroupManagersSetInstanceTemplate
regionInstanceGroupManagersSetInstanceTemplate pRigmsitProject_ pRigmsitInstanceGroupManager_ pRigmsitPayload_ pRigmsitRegion_ =
RegionInstanceGroupManagersSetInstanceTemplate'
{ _rigmsitRequestId = Nothing
, _rigmsitProject = pRigmsitProject_
, _rigmsitInstanceGroupManager = pRigmsitInstanceGroupManager_
, _rigmsitPayload = pRigmsitPayload_
, _rigmsitRegion = pRigmsitRegion_
}
rigmsitRequestId :: Lens' RegionInstanceGroupManagersSetInstanceTemplate (Maybe Text)
rigmsitRequestId
= lens _rigmsitRequestId
(\ s a -> s{_rigmsitRequestId = a})
rigmsitProject :: Lens' RegionInstanceGroupManagersSetInstanceTemplate Text
rigmsitProject
= lens _rigmsitProject
(\ s a -> s{_rigmsitProject = a})
rigmsitInstanceGroupManager :: Lens' RegionInstanceGroupManagersSetInstanceTemplate Text
rigmsitInstanceGroupManager
= lens _rigmsitInstanceGroupManager
(\ s a -> s{_rigmsitInstanceGroupManager = a})
rigmsitPayload :: Lens' RegionInstanceGroupManagersSetInstanceTemplate RegionInstanceGroupManagersSetTemplateRequest
rigmsitPayload
= lens _rigmsitPayload
(\ s a -> s{_rigmsitPayload = a})
rigmsitRegion :: Lens' RegionInstanceGroupManagersSetInstanceTemplate Text
rigmsitRegion
= lens _rigmsitRegion
(\ s a -> s{_rigmsitRegion = a})
instance GoogleRequest
RegionInstanceGroupManagersSetInstanceTemplate where
type Rs
RegionInstanceGroupManagersSetInstanceTemplate
= Operation
type Scopes
RegionInstanceGroupManagersSetInstanceTemplate
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient
RegionInstanceGroupManagersSetInstanceTemplate'{..}
= go _rigmsitProject _rigmsitRegion
_rigmsitInstanceGroupManager
_rigmsitRequestId
(Just AltJSON)
_rigmsitPayload
computeService
where go
= buildClient
(Proxy ::
Proxy
RegionInstanceGroupManagersSetInstanceTemplateResource)
mempty