{-# 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.AdExperienceReport.ViolatingSites.List
(
ViolatingSitesListResource
, violatingSitesList
, ViolatingSitesList
, vslXgafv
, vslUploadProtocol
, vslAccessToken
, vslUploadType
, vslCallback
) where
import Network.Google.AdExperienceReport.Types
import Network.Google.Prelude
type ViolatingSitesListResource =
"v1" :>
"violatingSites" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ViolatingSitesResponse
data ViolatingSitesList = ViolatingSitesList'
{ _vslXgafv :: !(Maybe Xgafv)
, _vslUploadProtocol :: !(Maybe Text)
, _vslAccessToken :: !(Maybe Text)
, _vslUploadType :: !(Maybe Text)
, _vslCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
violatingSitesList
:: ViolatingSitesList
violatingSitesList =
ViolatingSitesList'
{ _vslXgafv = Nothing
, _vslUploadProtocol = Nothing
, _vslAccessToken = Nothing
, _vslUploadType = Nothing
, _vslCallback = Nothing
}
vslXgafv :: Lens' ViolatingSitesList (Maybe Xgafv)
vslXgafv = lens _vslXgafv (\ s a -> s{_vslXgafv = a})
vslUploadProtocol :: Lens' ViolatingSitesList (Maybe Text)
vslUploadProtocol
= lens _vslUploadProtocol
(\ s a -> s{_vslUploadProtocol = a})
vslAccessToken :: Lens' ViolatingSitesList (Maybe Text)
vslAccessToken
= lens _vslAccessToken
(\ s a -> s{_vslAccessToken = a})
vslUploadType :: Lens' ViolatingSitesList (Maybe Text)
vslUploadType
= lens _vslUploadType
(\ s a -> s{_vslUploadType = a})
vslCallback :: Lens' ViolatingSitesList (Maybe Text)
vslCallback
= lens _vslCallback (\ s a -> s{_vslCallback = a})
instance GoogleRequest ViolatingSitesList where
type Rs ViolatingSitesList = ViolatingSitesResponse
type Scopes ViolatingSitesList =
'["https://www.googleapis.com/auth/xapi.zoo"]
requestClient ViolatingSitesList'{..}
= go _vslXgafv _vslUploadProtocol _vslAccessToken
_vslUploadType
_vslCallback
(Just AltJSON)
adExperienceReportService
where go
= buildClient
(Proxy :: Proxy ViolatingSitesListResource)
mempty