{-# 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.StreetViewPublish.Photos.List
(
PhotosListResource
, photosList
, PhotosList
, plXgafv
, plLanguageCode
, plUploadProtocol
, plAccessToken
, plUploadType
, plView
, plFilter
, plPageToken
, plPageSize
, plCallback
) where
import Network.Google.Prelude
import Network.Google.StreetViewPublish.Types
type PhotosListResource =
"v1" :>
"photos" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "languageCode" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "view" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListPhotosResponse
data PhotosList = PhotosList'
{ _plXgafv :: !(Maybe Xgafv)
, _plLanguageCode :: !(Maybe Text)
, _plUploadProtocol :: !(Maybe Text)
, _plAccessToken :: !(Maybe Text)
, _plUploadType :: !(Maybe Text)
, _plView :: !(Maybe Text)
, _plFilter :: !(Maybe Text)
, _plPageToken :: !(Maybe Text)
, _plPageSize :: !(Maybe (Textual Int32))
, _plCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
photosList
:: PhotosList
photosList =
PhotosList'
{ _plXgafv = Nothing
, _plLanguageCode = Nothing
, _plUploadProtocol = Nothing
, _plAccessToken = Nothing
, _plUploadType = Nothing
, _plView = Nothing
, _plFilter = Nothing
, _plPageToken = Nothing
, _plPageSize = Nothing
, _plCallback = Nothing
}
plXgafv :: Lens' PhotosList (Maybe Xgafv)
plXgafv = lens _plXgafv (\ s a -> s{_plXgafv = a})
plLanguageCode :: Lens' PhotosList (Maybe Text)
plLanguageCode
= lens _plLanguageCode
(\ s a -> s{_plLanguageCode = a})
plUploadProtocol :: Lens' PhotosList (Maybe Text)
plUploadProtocol
= lens _plUploadProtocol
(\ s a -> s{_plUploadProtocol = a})
plAccessToken :: Lens' PhotosList (Maybe Text)
plAccessToken
= lens _plAccessToken
(\ s a -> s{_plAccessToken = a})
plUploadType :: Lens' PhotosList (Maybe Text)
plUploadType
= lens _plUploadType (\ s a -> s{_plUploadType = a})
plView :: Lens' PhotosList (Maybe Text)
plView = lens _plView (\ s a -> s{_plView = a})
plFilter :: Lens' PhotosList (Maybe Text)
plFilter = lens _plFilter (\ s a -> s{_plFilter = a})
plPageToken :: Lens' PhotosList (Maybe Text)
plPageToken
= lens _plPageToken (\ s a -> s{_plPageToken = a})
plPageSize :: Lens' PhotosList (Maybe Int32)
plPageSize
= lens _plPageSize (\ s a -> s{_plPageSize = a}) .
mapping _Coerce
plCallback :: Lens' PhotosList (Maybe Text)
plCallback
= lens _plCallback (\ s a -> s{_plCallback = a})
instance GoogleRequest PhotosList where
type Rs PhotosList = ListPhotosResponse
type Scopes PhotosList =
'["https://www.googleapis.com/auth/streetviewpublish"]
requestClient PhotosList'{..}
= go _plXgafv _plLanguageCode _plUploadProtocol
_plAccessToken
_plUploadType
_plView
_plFilter
_plPageToken
_plPageSize
_plCallback
(Just AltJSON)
streetViewPublishService
where go
= buildClient (Proxy :: Proxy PhotosListResource)
mempty