{-# 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.Poly.Assets.List
(
AssetsListResource
, assetsList
, AssetsList
, alXgafv
, alUploadProtocol
, alOrderBy
, alCategory
, alAccessToken
, alFormat
, alUploadType
, alKeywords
, alPageToken
, alCurated
, alMaxComplexity
, alPageSize
, alCallback
) where
import Network.Google.Poly.Types
import Network.Google.Prelude
type AssetsListResource =
"v1" :>
"assets" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "category" Text :>
QueryParam "access_token" Text :>
QueryParam "format" Text :>
QueryParam "uploadType" Text :>
QueryParam "keywords" Text :>
QueryParam "pageToken" Text :>
QueryParam "curated" Bool :>
QueryParam "maxComplexity" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListAssetsResponse
data AssetsList = AssetsList'
{ _alXgafv :: !(Maybe Xgafv)
, _alUploadProtocol :: !(Maybe Text)
, _alOrderBy :: !(Maybe Text)
, _alCategory :: !(Maybe Text)
, _alAccessToken :: !(Maybe Text)
, _alFormat :: !(Maybe Text)
, _alUploadType :: !(Maybe Text)
, _alKeywords :: !(Maybe Text)
, _alPageToken :: !(Maybe Text)
, _alCurated :: !(Maybe Bool)
, _alMaxComplexity :: !(Maybe Text)
, _alPageSize :: !(Maybe (Textual Int32))
, _alCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
assetsList
:: AssetsList
assetsList =
AssetsList'
{ _alXgafv = Nothing
, _alUploadProtocol = Nothing
, _alOrderBy = Nothing
, _alCategory = Nothing
, _alAccessToken = Nothing
, _alFormat = Nothing
, _alUploadType = Nothing
, _alKeywords = Nothing
, _alPageToken = Nothing
, _alCurated = Nothing
, _alMaxComplexity = Nothing
, _alPageSize = Nothing
, _alCallback = Nothing
}
alXgafv :: Lens' AssetsList (Maybe Xgafv)
alXgafv = lens _alXgafv (\ s a -> s{_alXgafv = a})
alUploadProtocol :: Lens' AssetsList (Maybe Text)
alUploadProtocol
= lens _alUploadProtocol
(\ s a -> s{_alUploadProtocol = a})
alOrderBy :: Lens' AssetsList (Maybe Text)
alOrderBy
= lens _alOrderBy (\ s a -> s{_alOrderBy = a})
alCategory :: Lens' AssetsList (Maybe Text)
alCategory
= lens _alCategory (\ s a -> s{_alCategory = a})
alAccessToken :: Lens' AssetsList (Maybe Text)
alAccessToken
= lens _alAccessToken
(\ s a -> s{_alAccessToken = a})
alFormat :: Lens' AssetsList (Maybe Text)
alFormat = lens _alFormat (\ s a -> s{_alFormat = a})
alUploadType :: Lens' AssetsList (Maybe Text)
alUploadType
= lens _alUploadType (\ s a -> s{_alUploadType = a})
alKeywords :: Lens' AssetsList (Maybe Text)
alKeywords
= lens _alKeywords (\ s a -> s{_alKeywords = a})
alPageToken :: Lens' AssetsList (Maybe Text)
alPageToken
= lens _alPageToken (\ s a -> s{_alPageToken = a})
alCurated :: Lens' AssetsList (Maybe Bool)
alCurated
= lens _alCurated (\ s a -> s{_alCurated = a})
alMaxComplexity :: Lens' AssetsList (Maybe Text)
alMaxComplexity
= lens _alMaxComplexity
(\ s a -> s{_alMaxComplexity = a})
alPageSize :: Lens' AssetsList (Maybe Int32)
alPageSize
= lens _alPageSize (\ s a -> s{_alPageSize = a}) .
mapping _Coerce
alCallback :: Lens' AssetsList (Maybe Text)
alCallback
= lens _alCallback (\ s a -> s{_alCallback = a})
instance GoogleRequest AssetsList where
type Rs AssetsList = ListAssetsResponse
type Scopes AssetsList = '[]
requestClient AssetsList'{..}
= go _alXgafv _alUploadProtocol _alOrderBy
_alCategory
_alAccessToken
_alFormat
_alUploadType
_alKeywords
_alPageToken
_alCurated
_alMaxComplexity
_alPageSize
_alCallback
(Just AltJSON)
polyService
where go
= buildClient (Proxy :: Proxy AssetsListResource)
mempty