{-# 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.Composer.Projects.Locations.Environments.List
(
ProjectsLocationsEnvironmentsListResource
, projectsLocationsEnvironmentsList
, ProjectsLocationsEnvironmentsList
, plelParent
, plelXgafv
, plelUploadProtocol
, plelAccessToken
, plelUploadType
, plelPageToken
, plelPageSize
, plelCallback
) where
import Network.Google.Composer.Types
import Network.Google.Prelude
type ProjectsLocationsEnvironmentsListResource =
"v1" :>
Capture "parent" Text :>
"environments" :>
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] ListEnvironmentsResponse
data ProjectsLocationsEnvironmentsList = ProjectsLocationsEnvironmentsList'
{ _plelParent :: !Text
, _plelXgafv :: !(Maybe Xgafv)
, _plelUploadProtocol :: !(Maybe Text)
, _plelAccessToken :: !(Maybe Text)
, _plelUploadType :: !(Maybe Text)
, _plelPageToken :: !(Maybe Text)
, _plelPageSize :: !(Maybe (Textual Int32))
, _plelCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsEnvironmentsList
:: Text
-> ProjectsLocationsEnvironmentsList
projectsLocationsEnvironmentsList pPlelParent_ =
ProjectsLocationsEnvironmentsList'
{ _plelParent = pPlelParent_
, _plelXgafv = Nothing
, _plelUploadProtocol = Nothing
, _plelAccessToken = Nothing
, _plelUploadType = Nothing
, _plelPageToken = Nothing
, _plelPageSize = Nothing
, _plelCallback = Nothing
}
plelParent :: Lens' ProjectsLocationsEnvironmentsList Text
plelParent
= lens _plelParent (\ s a -> s{_plelParent = a})
plelXgafv :: Lens' ProjectsLocationsEnvironmentsList (Maybe Xgafv)
plelXgafv
= lens _plelXgafv (\ s a -> s{_plelXgafv = a})
plelUploadProtocol :: Lens' ProjectsLocationsEnvironmentsList (Maybe Text)
plelUploadProtocol
= lens _plelUploadProtocol
(\ s a -> s{_plelUploadProtocol = a})
plelAccessToken :: Lens' ProjectsLocationsEnvironmentsList (Maybe Text)
plelAccessToken
= lens _plelAccessToken
(\ s a -> s{_plelAccessToken = a})
plelUploadType :: Lens' ProjectsLocationsEnvironmentsList (Maybe Text)
plelUploadType
= lens _plelUploadType
(\ s a -> s{_plelUploadType = a})
plelPageToken :: Lens' ProjectsLocationsEnvironmentsList (Maybe Text)
plelPageToken
= lens _plelPageToken
(\ s a -> s{_plelPageToken = a})
plelPageSize :: Lens' ProjectsLocationsEnvironmentsList (Maybe Int32)
plelPageSize
= lens _plelPageSize (\ s a -> s{_plelPageSize = a})
. mapping _Coerce
plelCallback :: Lens' ProjectsLocationsEnvironmentsList (Maybe Text)
plelCallback
= lens _plelCallback (\ s a -> s{_plelCallback = a})
instance GoogleRequest
ProjectsLocationsEnvironmentsList where
type Rs ProjectsLocationsEnvironmentsList =
ListEnvironmentsResponse
type Scopes ProjectsLocationsEnvironmentsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsEnvironmentsList'{..}
= go _plelParent _plelXgafv _plelUploadProtocol
_plelAccessToken
_plelUploadType
_plelPageToken
_plelPageSize
_plelCallback
(Just AltJSON)
composerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsEnvironmentsListResource)
mempty