{-# 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.File.Projects.Locations.Instances.List
(
ProjectsLocationsInstancesListResource
, projectsLocationsInstancesList
, ProjectsLocationsInstancesList
, plilParent
, plilXgafv
, plilUploadProtocol
, plilOrderBy
, plilAccessToken
, plilUploadType
, plilFilter
, plilPageToken
, plilPageSize
, plilCallback
) where
import Network.Google.File.Types
import Network.Google.Prelude
type ProjectsLocationsInstancesListResource =
"v1beta1" :>
Capture "parent" Text :>
"instances" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" 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)
, _plilOrderBy :: !(Maybe Text)
, _plilAccessToken :: !(Maybe Text)
, _plilUploadType :: !(Maybe Text)
, _plilFilter :: !(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
, _plilOrderBy = Nothing
, _plilAccessToken = Nothing
, _plilUploadType = Nothing
, _plilFilter = 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})
plilOrderBy :: Lens' ProjectsLocationsInstancesList (Maybe Text)
plilOrderBy
= lens _plilOrderBy (\ s a -> s{_plilOrderBy = 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})
plilFilter :: Lens' ProjectsLocationsInstancesList (Maybe Text)
plilFilter
= lens _plilFilter (\ s a -> s{_plilFilter = 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
_plilOrderBy
_plilAccessToken
_plilUploadType
_plilFilter
_plilPageToken
_plilPageSize
_plilCallback
(Just AltJSON)
fileService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsInstancesListResource)
mempty