{-# 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.RegionInstanceGroups.ListInstances
(
RegionInstanceGroupsListInstancesResource
, regionInstanceGroupsListInstances'
, RegionInstanceGroupsListInstances'
, rigliOrderBy
, rigliProject
, rigliPayload
, rigliFilter
, rigliRegion
, rigliPageToken
, rigliInstanceGroup
, rigliMaxResults
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionInstanceGroupsListInstancesResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"instanceGroups" :>
Capture "instanceGroup" Text :>
"listInstances" :>
QueryParam "orderBy" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
RegionInstanceGroupsListInstancesRequest
:>
Post '[JSON]
RegionInstanceGroupsListInstances
data RegionInstanceGroupsListInstances' = RegionInstanceGroupsListInstances''
{ _rigliOrderBy :: !(Maybe Text)
, _rigliProject :: !Text
, _rigliPayload :: !RegionInstanceGroupsListInstancesRequest
, _rigliFilter :: !(Maybe Text)
, _rigliRegion :: !Text
, _rigliPageToken :: !(Maybe Text)
, _rigliInstanceGroup :: !Text
, _rigliMaxResults :: !(Textual Word32)
} deriving (Eq,Show,Data,Typeable,Generic)
regionInstanceGroupsListInstances'
:: Text
-> RegionInstanceGroupsListInstancesRequest
-> Text
-> Text
-> RegionInstanceGroupsListInstances'
regionInstanceGroupsListInstances' pRigliProject_ pRigliPayload_ pRigliRegion_ pRigliInstanceGroup_ =
RegionInstanceGroupsListInstances''
{ _rigliOrderBy = Nothing
, _rigliProject = pRigliProject_
, _rigliPayload = pRigliPayload_
, _rigliFilter = Nothing
, _rigliRegion = pRigliRegion_
, _rigliPageToken = Nothing
, _rigliInstanceGroup = pRigliInstanceGroup_
, _rigliMaxResults = 500
}
rigliOrderBy :: Lens' RegionInstanceGroupsListInstances' (Maybe Text)
rigliOrderBy
= lens _rigliOrderBy (\ s a -> s{_rigliOrderBy = a})
rigliProject :: Lens' RegionInstanceGroupsListInstances' Text
rigliProject
= lens _rigliProject (\ s a -> s{_rigliProject = a})
rigliPayload :: Lens' RegionInstanceGroupsListInstances' RegionInstanceGroupsListInstancesRequest
rigliPayload
= lens _rigliPayload (\ s a -> s{_rigliPayload = a})
rigliFilter :: Lens' RegionInstanceGroupsListInstances' (Maybe Text)
rigliFilter
= lens _rigliFilter (\ s a -> s{_rigliFilter = a})
rigliRegion :: Lens' RegionInstanceGroupsListInstances' Text
rigliRegion
= lens _rigliRegion (\ s a -> s{_rigliRegion = a})
rigliPageToken :: Lens' RegionInstanceGroupsListInstances' (Maybe Text)
rigliPageToken
= lens _rigliPageToken
(\ s a -> s{_rigliPageToken = a})
rigliInstanceGroup :: Lens' RegionInstanceGroupsListInstances' Text
rigliInstanceGroup
= lens _rigliInstanceGroup
(\ s a -> s{_rigliInstanceGroup = a})
rigliMaxResults :: Lens' RegionInstanceGroupsListInstances' Word32
rigliMaxResults
= lens _rigliMaxResults
(\ s a -> s{_rigliMaxResults = a})
. _Coerce
instance GoogleRequest
RegionInstanceGroupsListInstances' where
type Rs RegionInstanceGroupsListInstances' =
RegionInstanceGroupsListInstances
type Scopes RegionInstanceGroupsListInstances' =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient RegionInstanceGroupsListInstances''{..}
= go _rigliProject _rigliRegion _rigliInstanceGroup
_rigliOrderBy
_rigliFilter
_rigliPageToken
(Just _rigliMaxResults)
(Just AltJSON)
_rigliPayload
computeService
where go
= buildClient
(Proxy ::
Proxy RegionInstanceGroupsListInstancesResource)
mempty