{-# 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.Monitoring.Projects.Groups.List
(
ProjectsGroupsListResource
, projectsGroupsList
, ProjectsGroupsList
, pglXgafv
, pglUploadProtocol
, pglChildrenOfGroup
, pglDescendantsOfGroup
, pglAccessToken
, pglUploadType
, pglName
, pglPageToken
, pglPageSize
, pglAncestorsOfGroup
, pglCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type ProjectsGroupsListResource =
"v3" :>
Capture "name" Text :>
"groups" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "childrenOfGroup" Text :>
QueryParam "descendantsOfGroup" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "ancestorsOfGroup" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListGroupsResponse
data ProjectsGroupsList = ProjectsGroupsList'
{ _pglXgafv :: !(Maybe Xgafv)
, _pglUploadProtocol :: !(Maybe Text)
, _pglChildrenOfGroup :: !(Maybe Text)
, _pglDescendantsOfGroup :: !(Maybe Text)
, _pglAccessToken :: !(Maybe Text)
, _pglUploadType :: !(Maybe Text)
, _pglName :: !Text
, _pglPageToken :: !(Maybe Text)
, _pglPageSize :: !(Maybe (Textual Int32))
, _pglAncestorsOfGroup :: !(Maybe Text)
, _pglCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsGroupsList
:: Text
-> ProjectsGroupsList
projectsGroupsList pPglName_ =
ProjectsGroupsList'
{ _pglXgafv = Nothing
, _pglUploadProtocol = Nothing
, _pglChildrenOfGroup = Nothing
, _pglDescendantsOfGroup = Nothing
, _pglAccessToken = Nothing
, _pglUploadType = Nothing
, _pglName = pPglName_
, _pglPageToken = Nothing
, _pglPageSize = Nothing
, _pglAncestorsOfGroup = Nothing
, _pglCallback = Nothing
}
pglXgafv :: Lens' ProjectsGroupsList (Maybe Xgafv)
pglXgafv = lens _pglXgafv (\ s a -> s{_pglXgafv = a})
pglUploadProtocol :: Lens' ProjectsGroupsList (Maybe Text)
pglUploadProtocol
= lens _pglUploadProtocol
(\ s a -> s{_pglUploadProtocol = a})
pglChildrenOfGroup :: Lens' ProjectsGroupsList (Maybe Text)
pglChildrenOfGroup
= lens _pglChildrenOfGroup
(\ s a -> s{_pglChildrenOfGroup = a})
pglDescendantsOfGroup :: Lens' ProjectsGroupsList (Maybe Text)
pglDescendantsOfGroup
= lens _pglDescendantsOfGroup
(\ s a -> s{_pglDescendantsOfGroup = a})
pglAccessToken :: Lens' ProjectsGroupsList (Maybe Text)
pglAccessToken
= lens _pglAccessToken
(\ s a -> s{_pglAccessToken = a})
pglUploadType :: Lens' ProjectsGroupsList (Maybe Text)
pglUploadType
= lens _pglUploadType
(\ s a -> s{_pglUploadType = a})
pglName :: Lens' ProjectsGroupsList Text
pglName = lens _pglName (\ s a -> s{_pglName = a})
pglPageToken :: Lens' ProjectsGroupsList (Maybe Text)
pglPageToken
= lens _pglPageToken (\ s a -> s{_pglPageToken = a})
pglPageSize :: Lens' ProjectsGroupsList (Maybe Int32)
pglPageSize
= lens _pglPageSize (\ s a -> s{_pglPageSize = a}) .
mapping _Coerce
pglAncestorsOfGroup :: Lens' ProjectsGroupsList (Maybe Text)
pglAncestorsOfGroup
= lens _pglAncestorsOfGroup
(\ s a -> s{_pglAncestorsOfGroup = a})
pglCallback :: Lens' ProjectsGroupsList (Maybe Text)
pglCallback
= lens _pglCallback (\ s a -> s{_pglCallback = a})
instance GoogleRequest ProjectsGroupsList where
type Rs ProjectsGroupsList = ListGroupsResponse
type Scopes ProjectsGroupsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/monitoring.read"]
requestClient ProjectsGroupsList'{..}
= go _pglName _pglXgafv _pglUploadProtocol
_pglChildrenOfGroup
_pglDescendantsOfGroup
_pglAccessToken
_pglUploadType
_pglPageToken
_pglPageSize
_pglAncestorsOfGroup
_pglCallback
(Just AltJSON)
monitoringService
where go
= buildClient
(Proxy :: Proxy ProjectsGroupsListResource)
mempty