{-# 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.ProximityBeacon.Namespaces.List
(
NamespacesListResource
, namespacesList
, NamespacesList
, nlXgafv
, nlUploadProtocol
, nlAccessToken
, nlUploadType
, nlProjectId
, nlCallback
) where
import Network.Google.Prelude
import Network.Google.ProximityBeacon.Types
type NamespacesListResource =
"v1beta1" :>
"namespaces" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "projectId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListNamespacesResponse
data NamespacesList = NamespacesList'
{ _nlXgafv :: !(Maybe Xgafv)
, _nlUploadProtocol :: !(Maybe Text)
, _nlAccessToken :: !(Maybe Text)
, _nlUploadType :: !(Maybe Text)
, _nlProjectId :: !(Maybe Text)
, _nlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
namespacesList
:: NamespacesList
namespacesList =
NamespacesList'
{ _nlXgafv = Nothing
, _nlUploadProtocol = Nothing
, _nlAccessToken = Nothing
, _nlUploadType = Nothing
, _nlProjectId = Nothing
, _nlCallback = Nothing
}
nlXgafv :: Lens' NamespacesList (Maybe Xgafv)
nlXgafv = lens _nlXgafv (\ s a -> s{_nlXgafv = a})
nlUploadProtocol :: Lens' NamespacesList (Maybe Text)
nlUploadProtocol
= lens _nlUploadProtocol
(\ s a -> s{_nlUploadProtocol = a})
nlAccessToken :: Lens' NamespacesList (Maybe Text)
nlAccessToken
= lens _nlAccessToken
(\ s a -> s{_nlAccessToken = a})
nlUploadType :: Lens' NamespacesList (Maybe Text)
nlUploadType
= lens _nlUploadType (\ s a -> s{_nlUploadType = a})
nlProjectId :: Lens' NamespacesList (Maybe Text)
nlProjectId
= lens _nlProjectId (\ s a -> s{_nlProjectId = a})
nlCallback :: Lens' NamespacesList (Maybe Text)
nlCallback
= lens _nlCallback (\ s a -> s{_nlCallback = a})
instance GoogleRequest NamespacesList where
type Rs NamespacesList = ListNamespacesResponse
type Scopes NamespacesList =
'["https://www.googleapis.com/auth/userlocation.beacon.registry"]
requestClient NamespacesList'{..}
= go _nlXgafv _nlUploadProtocol _nlAccessToken
_nlUploadType
_nlProjectId
_nlCallback
(Just AltJSON)
proximityBeaconService
where go
= buildClient (Proxy :: Proxy NamespacesListResource)
mempty