{-# 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.ListManagedInstances
(
RegionInstanceGroupManagersListManagedInstancesResource
, regionInstanceGroupManagersListManagedInstances
, RegionInstanceGroupManagersListManagedInstances
, rigmlmiProject
, rigmlmiInstanceGroupManager
, rigmlmiOrderBy
, rigmlmiFilter
, rigmlmiRegion
, rigmlmiPageToken
, rigmlmiMaxResults
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionInstanceGroupManagersListManagedInstancesResource
=
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"instanceGroupManagers" :>
Capture "instanceGroupManager" Text :>
"listManagedInstances" :>
QueryParam "order_by" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Post '[JSON]
RegionInstanceGroupManagersListInstancesResponse
data RegionInstanceGroupManagersListManagedInstances = RegionInstanceGroupManagersListManagedInstances'
{ _rigmlmiProject :: !Text
, _rigmlmiInstanceGroupManager :: !Text
, _rigmlmiOrderBy :: !(Maybe Text)
, _rigmlmiFilter :: !(Maybe Text)
, _rigmlmiRegion :: !Text
, _rigmlmiPageToken :: !(Maybe Text)
, _rigmlmiMaxResults :: !(Textual Word32)
} deriving (Eq,Show,Data,Typeable,Generic)
regionInstanceGroupManagersListManagedInstances
:: Text
-> Text
-> Text
-> RegionInstanceGroupManagersListManagedInstances
regionInstanceGroupManagersListManagedInstances pRigmlmiProject_ pRigmlmiInstanceGroupManager_ pRigmlmiRegion_ =
RegionInstanceGroupManagersListManagedInstances'
{ _rigmlmiProject = pRigmlmiProject_
, _rigmlmiInstanceGroupManager = pRigmlmiInstanceGroupManager_
, _rigmlmiOrderBy = Nothing
, _rigmlmiFilter = Nothing
, _rigmlmiRegion = pRigmlmiRegion_
, _rigmlmiPageToken = Nothing
, _rigmlmiMaxResults = 500
}
rigmlmiProject :: Lens' RegionInstanceGroupManagersListManagedInstances Text
rigmlmiProject
= lens _rigmlmiProject
(\ s a -> s{_rigmlmiProject = a})
rigmlmiInstanceGroupManager :: Lens' RegionInstanceGroupManagersListManagedInstances Text
rigmlmiInstanceGroupManager
= lens _rigmlmiInstanceGroupManager
(\ s a -> s{_rigmlmiInstanceGroupManager = a})
rigmlmiOrderBy :: Lens' RegionInstanceGroupManagersListManagedInstances (Maybe Text)
rigmlmiOrderBy
= lens _rigmlmiOrderBy
(\ s a -> s{_rigmlmiOrderBy = a})
rigmlmiFilter :: Lens' RegionInstanceGroupManagersListManagedInstances (Maybe Text)
rigmlmiFilter
= lens _rigmlmiFilter
(\ s a -> s{_rigmlmiFilter = a})
rigmlmiRegion :: Lens' RegionInstanceGroupManagersListManagedInstances Text
rigmlmiRegion
= lens _rigmlmiRegion
(\ s a -> s{_rigmlmiRegion = a})
rigmlmiPageToken :: Lens' RegionInstanceGroupManagersListManagedInstances (Maybe Text)
rigmlmiPageToken
= lens _rigmlmiPageToken
(\ s a -> s{_rigmlmiPageToken = a})
rigmlmiMaxResults :: Lens' RegionInstanceGroupManagersListManagedInstances Word32
rigmlmiMaxResults
= lens _rigmlmiMaxResults
(\ s a -> s{_rigmlmiMaxResults = a})
. _Coerce
instance GoogleRequest
RegionInstanceGroupManagersListManagedInstances where
type Rs
RegionInstanceGroupManagersListManagedInstances
= RegionInstanceGroupManagersListInstancesResponse
type Scopes
RegionInstanceGroupManagersListManagedInstances
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient
RegionInstanceGroupManagersListManagedInstances'{..}
= go _rigmlmiProject _rigmlmiRegion
_rigmlmiInstanceGroupManager
_rigmlmiOrderBy
_rigmlmiFilter
_rigmlmiPageToken
(Just _rigmlmiMaxResults)
(Just AltJSON)
computeService
where go
= buildClient
(Proxy ::
Proxy
RegionInstanceGroupManagersListManagedInstancesResource)
mempty