{-# 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.Redis.Projects.Locations.Instances.List
(
ProjectsLocationsInstancesListResource
, projectsLocationsInstancesList
, ProjectsLocationsInstancesList
, plilParent
, plilXgafv
, plilUploadProtocol
, plilAccessToken
, plilUploadType
, plilPageToken
, plilPageSize
, plilCallback
) where
import Network.Google.Prelude
import Network.Google.Redis.Types
type ProjectsLocationsInstancesListResource =
"v1" :>
Capture "parent" Text :>
"instances" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListInstancesResponse
data ProjectsLocationsInstancesList = ProjectsLocationsInstancesList'
{ _plilParent :: !Text
, _plilXgafv :: !(Maybe Xgafv)
, _plilUploadProtocol :: !(Maybe Text)
, _plilAccessToken :: !(Maybe Text)
, _plilUploadType :: !(Maybe Text)
, _plilPageToken :: !(Maybe Text)
, _plilPageSize :: !(Maybe (Textual Int32))
, _plilCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsInstancesList
:: Text
-> ProjectsLocationsInstancesList
projectsLocationsInstancesList pPlilParent_ =
ProjectsLocationsInstancesList'
{ _plilParent = pPlilParent_
, _plilXgafv = Nothing
, _plilUploadProtocol = Nothing
, _plilAccessToken = Nothing
, _plilUploadType = Nothing
, _plilPageToken = Nothing
, _plilPageSize = Nothing
, _plilCallback = Nothing
}
plilParent :: Lens' ProjectsLocationsInstancesList Text
plilParent
= lens _plilParent (\ s a -> s{_plilParent = a})
plilXgafv :: Lens' ProjectsLocationsInstancesList (Maybe Xgafv)
plilXgafv
= lens _plilXgafv (\ s a -> s{_plilXgafv = a})
plilUploadProtocol :: Lens' ProjectsLocationsInstancesList (Maybe Text)
plilUploadProtocol
= lens _plilUploadProtocol
(\ s a -> s{_plilUploadProtocol = a})
plilAccessToken :: Lens' ProjectsLocationsInstancesList (Maybe Text)
plilAccessToken
= lens _plilAccessToken
(\ s a -> s{_plilAccessToken = a})
plilUploadType :: Lens' ProjectsLocationsInstancesList (Maybe Text)
plilUploadType
= lens _plilUploadType
(\ s a -> s{_plilUploadType = a})
plilPageToken :: Lens' ProjectsLocationsInstancesList (Maybe Text)
plilPageToken
= lens _plilPageToken
(\ s a -> s{_plilPageToken = a})
plilPageSize :: Lens' ProjectsLocationsInstancesList (Maybe Int32)
plilPageSize
= lens _plilPageSize (\ s a -> s{_plilPageSize = a})
. mapping _Coerce
plilCallback :: Lens' ProjectsLocationsInstancesList (Maybe Text)
plilCallback
= lens _plilCallback (\ s a -> s{_plilCallback = a})
instance GoogleRequest ProjectsLocationsInstancesList
where
type Rs ProjectsLocationsInstancesList =
ListInstancesResponse
type Scopes ProjectsLocationsInstancesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsInstancesList'{..}
= go _plilParent _plilXgafv _plilUploadProtocol
_plilAccessToken
_plilUploadType
_plilPageToken
_plilPageSize
_plilCallback
(Just AltJSON)
redisService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsInstancesListResource)
mempty