{-# 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.Users.Likedassets.List
(
UsersLikedassetsListResource
, usersLikedassetsList
, UsersLikedassetsList
, ullXgafv
, ullUploadProtocol
, ullOrderBy
, ullAccessToken
, ullFormat
, ullUploadType
, ullName
, ullPageToken
, ullPageSize
, ullCallback
) where
import Network.Google.Poly.Types
import Network.Google.Prelude
type UsersLikedassetsListResource =
"v1" :>
Capture "name" Text :>
"likedassets" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "access_token" Text :>
QueryParam "format" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListLikedAssetsResponse
data UsersLikedassetsList = UsersLikedassetsList'
{ _ullXgafv :: !(Maybe Xgafv)
, _ullUploadProtocol :: !(Maybe Text)
, _ullOrderBy :: !(Maybe Text)
, _ullAccessToken :: !(Maybe Text)
, _ullFormat :: !(Maybe Text)
, _ullUploadType :: !(Maybe Text)
, _ullName :: !Text
, _ullPageToken :: !(Maybe Text)
, _ullPageSize :: !(Maybe (Textual Int32))
, _ullCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
usersLikedassetsList
:: Text
-> UsersLikedassetsList
usersLikedassetsList pUllName_ =
UsersLikedassetsList'
{ _ullXgafv = Nothing
, _ullUploadProtocol = Nothing
, _ullOrderBy = Nothing
, _ullAccessToken = Nothing
, _ullFormat = Nothing
, _ullUploadType = Nothing
, _ullName = pUllName_
, _ullPageToken = Nothing
, _ullPageSize = Nothing
, _ullCallback = Nothing
}
ullXgafv :: Lens' UsersLikedassetsList (Maybe Xgafv)
ullXgafv = lens _ullXgafv (\ s a -> s{_ullXgafv = a})
ullUploadProtocol :: Lens' UsersLikedassetsList (Maybe Text)
ullUploadProtocol
= lens _ullUploadProtocol
(\ s a -> s{_ullUploadProtocol = a})
ullOrderBy :: Lens' UsersLikedassetsList (Maybe Text)
ullOrderBy
= lens _ullOrderBy (\ s a -> s{_ullOrderBy = a})
ullAccessToken :: Lens' UsersLikedassetsList (Maybe Text)
ullAccessToken
= lens _ullAccessToken
(\ s a -> s{_ullAccessToken = a})
ullFormat :: Lens' UsersLikedassetsList (Maybe Text)
ullFormat
= lens _ullFormat (\ s a -> s{_ullFormat = a})
ullUploadType :: Lens' UsersLikedassetsList (Maybe Text)
ullUploadType
= lens _ullUploadType
(\ s a -> s{_ullUploadType = a})
ullName :: Lens' UsersLikedassetsList Text
ullName = lens _ullName (\ s a -> s{_ullName = a})
ullPageToken :: Lens' UsersLikedassetsList (Maybe Text)
ullPageToken
= lens _ullPageToken (\ s a -> s{_ullPageToken = a})
ullPageSize :: Lens' UsersLikedassetsList (Maybe Int32)
ullPageSize
= lens _ullPageSize (\ s a -> s{_ullPageSize = a}) .
mapping _Coerce
ullCallback :: Lens' UsersLikedassetsList (Maybe Text)
ullCallback
= lens _ullCallback (\ s a -> s{_ullCallback = a})
instance GoogleRequest UsersLikedassetsList where
type Rs UsersLikedassetsList =
ListLikedAssetsResponse
type Scopes UsersLikedassetsList = '[]
requestClient UsersLikedassetsList'{..}
= go _ullName _ullXgafv _ullUploadProtocol
_ullOrderBy
_ullAccessToken
_ullFormat
_ullUploadType
_ullPageToken
_ullPageSize
_ullCallback
(Just AltJSON)
polyService
where go
= buildClient
(Proxy :: Proxy UsersLikedassetsListResource)
mempty