{-# 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.InstanceGroups.RemoveInstances
(
InstanceGroupsRemoveInstancesResource
, instanceGroupsRemoveInstances
, InstanceGroupsRemoveInstances
, igriRequestId
, igriProject
, igriZone
, igriPayload
, igriInstanceGroup
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstanceGroupsRemoveInstancesResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instanceGroups" :>
Capture "instanceGroup" Text :>
"removeInstances" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] InstanceGroupsRemoveInstancesRequest
:> Post '[JSON] Operation
data InstanceGroupsRemoveInstances = InstanceGroupsRemoveInstances'
{ _igriRequestId :: !(Maybe Text)
, _igriProject :: !Text
, _igriZone :: !Text
, _igriPayload :: !InstanceGroupsRemoveInstancesRequest
, _igriInstanceGroup :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instanceGroupsRemoveInstances
:: Text
-> Text
-> InstanceGroupsRemoveInstancesRequest
-> Text
-> InstanceGroupsRemoveInstances
instanceGroupsRemoveInstances pIgriProject_ pIgriZone_ pIgriPayload_ pIgriInstanceGroup_ =
InstanceGroupsRemoveInstances'
{ _igriRequestId = Nothing
, _igriProject = pIgriProject_
, _igriZone = pIgriZone_
, _igriPayload = pIgriPayload_
, _igriInstanceGroup = pIgriInstanceGroup_
}
igriRequestId :: Lens' InstanceGroupsRemoveInstances (Maybe Text)
igriRequestId
= lens _igriRequestId
(\ s a -> s{_igriRequestId = a})
igriProject :: Lens' InstanceGroupsRemoveInstances Text
igriProject
= lens _igriProject (\ s a -> s{_igriProject = a})
igriZone :: Lens' InstanceGroupsRemoveInstances Text
igriZone = lens _igriZone (\ s a -> s{_igriZone = a})
igriPayload :: Lens' InstanceGroupsRemoveInstances InstanceGroupsRemoveInstancesRequest
igriPayload
= lens _igriPayload (\ s a -> s{_igriPayload = a})
igriInstanceGroup :: Lens' InstanceGroupsRemoveInstances Text
igriInstanceGroup
= lens _igriInstanceGroup
(\ s a -> s{_igriInstanceGroup = a})
instance GoogleRequest InstanceGroupsRemoveInstances
where
type Rs InstanceGroupsRemoveInstances = Operation
type Scopes InstanceGroupsRemoveInstances =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InstanceGroupsRemoveInstances'{..}
= go _igriProject _igriZone _igriInstanceGroup
_igriRequestId
(Just AltJSON)
_igriPayload
computeService
where go
= buildClient
(Proxy ::
Proxy InstanceGroupsRemoveInstancesResource)
mempty