{-# 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.InstanceGroupManagers.SetTargetPools
(
InstanceGroupManagersSetTargetPoolsResource
, instanceGroupManagersSetTargetPools
, InstanceGroupManagersSetTargetPools
, igmstpRequestId
, igmstpProject
, igmstpInstanceGroupManager
, igmstpZone
, igmstpPayload
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstanceGroupManagersSetTargetPoolsResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instanceGroupManagers" :>
Capture "instanceGroupManager" Text :>
"setTargetPools" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
InstanceGroupManagersSetTargetPoolsRequest
:> Post '[JSON] Operation
data InstanceGroupManagersSetTargetPools = InstanceGroupManagersSetTargetPools'
{ _igmstpRequestId :: !(Maybe Text)
, _igmstpProject :: !Text
, _igmstpInstanceGroupManager :: !Text
, _igmstpZone :: !Text
, _igmstpPayload :: !InstanceGroupManagersSetTargetPoolsRequest
} deriving (Eq,Show,Data,Typeable,Generic)
instanceGroupManagersSetTargetPools
:: Text
-> Text
-> Text
-> InstanceGroupManagersSetTargetPoolsRequest
-> InstanceGroupManagersSetTargetPools
instanceGroupManagersSetTargetPools pIgmstpProject_ pIgmstpInstanceGroupManager_ pIgmstpZone_ pIgmstpPayload_ =
InstanceGroupManagersSetTargetPools'
{ _igmstpRequestId = Nothing
, _igmstpProject = pIgmstpProject_
, _igmstpInstanceGroupManager = pIgmstpInstanceGroupManager_
, _igmstpZone = pIgmstpZone_
, _igmstpPayload = pIgmstpPayload_
}
igmstpRequestId :: Lens' InstanceGroupManagersSetTargetPools (Maybe Text)
igmstpRequestId
= lens _igmstpRequestId
(\ s a -> s{_igmstpRequestId = a})
igmstpProject :: Lens' InstanceGroupManagersSetTargetPools Text
igmstpProject
= lens _igmstpProject
(\ s a -> s{_igmstpProject = a})
igmstpInstanceGroupManager :: Lens' InstanceGroupManagersSetTargetPools Text
igmstpInstanceGroupManager
= lens _igmstpInstanceGroupManager
(\ s a -> s{_igmstpInstanceGroupManager = a})
igmstpZone :: Lens' InstanceGroupManagersSetTargetPools Text
igmstpZone
= lens _igmstpZone (\ s a -> s{_igmstpZone = a})
igmstpPayload :: Lens' InstanceGroupManagersSetTargetPools InstanceGroupManagersSetTargetPoolsRequest
igmstpPayload
= lens _igmstpPayload
(\ s a -> s{_igmstpPayload = a})
instance GoogleRequest
InstanceGroupManagersSetTargetPools where
type Rs InstanceGroupManagersSetTargetPools =
Operation
type Scopes InstanceGroupManagersSetTargetPools =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient
InstanceGroupManagersSetTargetPools'{..}
= go _igmstpProject _igmstpZone
_igmstpInstanceGroupManager
_igmstpRequestId
(Just AltJSON)
_igmstpPayload
computeService
where go
= buildClient
(Proxy ::
Proxy InstanceGroupManagersSetTargetPoolsResource)
mempty