{-# 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.ListInstances
(
InstanceGroupsListInstancesResource
, instanceGroupsListInstances'
, InstanceGroupsListInstances'
, igliOrderBy
, igliProject
, igliZone
, igliPayload
, igliFilter
, igliPageToken
, igliInstanceGroup
, igliMaxResults
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstanceGroupsListInstancesResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instanceGroups" :>
Capture "instanceGroup" Text :>
"listInstances" :>
QueryParam "orderBy" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
InstanceGroupsListInstancesRequest
:> Post '[JSON] InstanceGroupsListInstances
data InstanceGroupsListInstances' = InstanceGroupsListInstances''
{ _igliOrderBy :: !(Maybe Text)
, _igliProject :: !Text
, _igliZone :: !Text
, _igliPayload :: !InstanceGroupsListInstancesRequest
, _igliFilter :: !(Maybe Text)
, _igliPageToken :: !(Maybe Text)
, _igliInstanceGroup :: !Text
, _igliMaxResults :: !(Textual Word32)
} deriving (Eq,Show,Data,Typeable,Generic)
instanceGroupsListInstances'
:: Text
-> Text
-> InstanceGroupsListInstancesRequest
-> Text
-> InstanceGroupsListInstances'
instanceGroupsListInstances' pIgliProject_ pIgliZone_ pIgliPayload_ pIgliInstanceGroup_ =
InstanceGroupsListInstances''
{ _igliOrderBy = Nothing
, _igliProject = pIgliProject_
, _igliZone = pIgliZone_
, _igliPayload = pIgliPayload_
, _igliFilter = Nothing
, _igliPageToken = Nothing
, _igliInstanceGroup = pIgliInstanceGroup_
, _igliMaxResults = 500
}
igliOrderBy :: Lens' InstanceGroupsListInstances' (Maybe Text)
igliOrderBy
= lens _igliOrderBy (\ s a -> s{_igliOrderBy = a})
igliProject :: Lens' InstanceGroupsListInstances' Text
igliProject
= lens _igliProject (\ s a -> s{_igliProject = a})
igliZone :: Lens' InstanceGroupsListInstances' Text
igliZone = lens _igliZone (\ s a -> s{_igliZone = a})
igliPayload :: Lens' InstanceGroupsListInstances' InstanceGroupsListInstancesRequest
igliPayload
= lens _igliPayload (\ s a -> s{_igliPayload = a})
igliFilter :: Lens' InstanceGroupsListInstances' (Maybe Text)
igliFilter
= lens _igliFilter (\ s a -> s{_igliFilter = a})
igliPageToken :: Lens' InstanceGroupsListInstances' (Maybe Text)
igliPageToken
= lens _igliPageToken
(\ s a -> s{_igliPageToken = a})
igliInstanceGroup :: Lens' InstanceGroupsListInstances' Text
igliInstanceGroup
= lens _igliInstanceGroup
(\ s a -> s{_igliInstanceGroup = a})
igliMaxResults :: Lens' InstanceGroupsListInstances' Word32
igliMaxResults
= lens _igliMaxResults
(\ s a -> s{_igliMaxResults = a})
. _Coerce
instance GoogleRequest InstanceGroupsListInstances'
where
type Rs InstanceGroupsListInstances' =
InstanceGroupsListInstances
type Scopes InstanceGroupsListInstances' =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient InstanceGroupsListInstances''{..}
= go _igliProject _igliZone _igliInstanceGroup
_igliOrderBy
_igliFilter
_igliPageToken
(Just _igliMaxResults)
(Just AltJSON)
_igliPayload
computeService
where go
= buildClient
(Proxy :: Proxy InstanceGroupsListInstancesResource)
mempty