{-# 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.Beacons.Diagnostics.List
(
BeaconsDiagnosticsListResource
, beaconsDiagnosticsList
, BeaconsDiagnosticsList
, bdlXgafv
, bdlUploadProtocol
, bdlAccessToken
, bdlBeaconName
, bdlUploadType
, bdlPageToken
, bdlProjectId
, bdlPageSize
, bdlAlertFilter
, bdlCallback
) where
import Network.Google.Prelude
import Network.Google.ProximityBeacon.Types
type BeaconsDiagnosticsListResource =
"v1beta1" :>
Capture "beaconName" Text :>
"diagnostics" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "projectId" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "alertFilter" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListDiagnosticsResponse
data BeaconsDiagnosticsList = BeaconsDiagnosticsList'
{ _bdlXgafv :: !(Maybe Xgafv)
, _bdlUploadProtocol :: !(Maybe Text)
, _bdlAccessToken :: !(Maybe Text)
, _bdlBeaconName :: !Text
, _bdlUploadType :: !(Maybe Text)
, _bdlPageToken :: !(Maybe Text)
, _bdlProjectId :: !(Maybe Text)
, _bdlPageSize :: !(Maybe (Textual Int32))
, _bdlAlertFilter :: !(Maybe Text)
, _bdlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
beaconsDiagnosticsList
:: Text
-> BeaconsDiagnosticsList
beaconsDiagnosticsList pBdlBeaconName_ =
BeaconsDiagnosticsList'
{ _bdlXgafv = Nothing
, _bdlUploadProtocol = Nothing
, _bdlAccessToken = Nothing
, _bdlBeaconName = pBdlBeaconName_
, _bdlUploadType = Nothing
, _bdlPageToken = Nothing
, _bdlProjectId = Nothing
, _bdlPageSize = Nothing
, _bdlAlertFilter = Nothing
, _bdlCallback = Nothing
}
bdlXgafv :: Lens' BeaconsDiagnosticsList (Maybe Xgafv)
bdlXgafv = lens _bdlXgafv (\ s a -> s{_bdlXgafv = a})
bdlUploadProtocol :: Lens' BeaconsDiagnosticsList (Maybe Text)
bdlUploadProtocol
= lens _bdlUploadProtocol
(\ s a -> s{_bdlUploadProtocol = a})
bdlAccessToken :: Lens' BeaconsDiagnosticsList (Maybe Text)
bdlAccessToken
= lens _bdlAccessToken
(\ s a -> s{_bdlAccessToken = a})
bdlBeaconName :: Lens' BeaconsDiagnosticsList Text
bdlBeaconName
= lens _bdlBeaconName
(\ s a -> s{_bdlBeaconName = a})
bdlUploadType :: Lens' BeaconsDiagnosticsList (Maybe Text)
bdlUploadType
= lens _bdlUploadType
(\ s a -> s{_bdlUploadType = a})
bdlPageToken :: Lens' BeaconsDiagnosticsList (Maybe Text)
bdlPageToken
= lens _bdlPageToken (\ s a -> s{_bdlPageToken = a})
bdlProjectId :: Lens' BeaconsDiagnosticsList (Maybe Text)
bdlProjectId
= lens _bdlProjectId (\ s a -> s{_bdlProjectId = a})
bdlPageSize :: Lens' BeaconsDiagnosticsList (Maybe Int32)
bdlPageSize
= lens _bdlPageSize (\ s a -> s{_bdlPageSize = a}) .
mapping _Coerce
bdlAlertFilter :: Lens' BeaconsDiagnosticsList (Maybe Text)
bdlAlertFilter
= lens _bdlAlertFilter
(\ s a -> s{_bdlAlertFilter = a})
bdlCallback :: Lens' BeaconsDiagnosticsList (Maybe Text)
bdlCallback
= lens _bdlCallback (\ s a -> s{_bdlCallback = a})
instance GoogleRequest BeaconsDiagnosticsList where
type Rs BeaconsDiagnosticsList =
ListDiagnosticsResponse
type Scopes BeaconsDiagnosticsList =
'["https://www.googleapis.com/auth/userlocation.beacon.registry"]
requestClient BeaconsDiagnosticsList'{..}
= go _bdlBeaconName _bdlXgafv _bdlUploadProtocol
_bdlAccessToken
_bdlUploadType
_bdlPageToken
_bdlProjectId
_bdlPageSize
_bdlAlertFilter
_bdlCallback
(Just AltJSON)
proximityBeaconService
where go
= buildClient
(Proxy :: Proxy BeaconsDiagnosticsListResource)
mempty