{-# 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.Assets.List
(
UsersAssetsListResource
, usersAssetsList
, UsersAssetsList
, ualXgafv
, ualUploadProtocol
, ualOrderBy
, ualAccessToken
, ualFormat
, ualUploadType
, ualVisibility
, ualName
, ualPageToken
, ualPageSize
, ualCallback
) where
import Network.Google.Poly.Types
import Network.Google.Prelude
type UsersAssetsListResource =
"v1" :>
Capture "name" Text :>
"assets" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "access_token" Text :>
QueryParam "format" Text :>
QueryParam "uploadType" Text :>
QueryParam "visibility" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListUserAssetsResponse
data UsersAssetsList = UsersAssetsList'
{ _ualXgafv :: !(Maybe Xgafv)
, _ualUploadProtocol :: !(Maybe Text)
, _ualOrderBy :: !(Maybe Text)
, _ualAccessToken :: !(Maybe Text)
, _ualFormat :: !(Maybe Text)
, _ualUploadType :: !(Maybe Text)
, _ualVisibility :: !(Maybe Text)
, _ualName :: !Text
, _ualPageToken :: !(Maybe Text)
, _ualPageSize :: !(Maybe (Textual Int32))
, _ualCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
usersAssetsList
:: Text
-> UsersAssetsList
usersAssetsList pUalName_ =
UsersAssetsList'
{ _ualXgafv = Nothing
, _ualUploadProtocol = Nothing
, _ualOrderBy = Nothing
, _ualAccessToken = Nothing
, _ualFormat = Nothing
, _ualUploadType = Nothing
, _ualVisibility = Nothing
, _ualName = pUalName_
, _ualPageToken = Nothing
, _ualPageSize = Nothing
, _ualCallback = Nothing
}
ualXgafv :: Lens' UsersAssetsList (Maybe Xgafv)
ualXgafv = lens _ualXgafv (\ s a -> s{_ualXgafv = a})
ualUploadProtocol :: Lens' UsersAssetsList (Maybe Text)
ualUploadProtocol
= lens _ualUploadProtocol
(\ s a -> s{_ualUploadProtocol = a})
ualOrderBy :: Lens' UsersAssetsList (Maybe Text)
ualOrderBy
= lens _ualOrderBy (\ s a -> s{_ualOrderBy = a})
ualAccessToken :: Lens' UsersAssetsList (Maybe Text)
ualAccessToken
= lens _ualAccessToken
(\ s a -> s{_ualAccessToken = a})
ualFormat :: Lens' UsersAssetsList (Maybe Text)
ualFormat
= lens _ualFormat (\ s a -> s{_ualFormat = a})
ualUploadType :: Lens' UsersAssetsList (Maybe Text)
ualUploadType
= lens _ualUploadType
(\ s a -> s{_ualUploadType = a})
ualVisibility :: Lens' UsersAssetsList (Maybe Text)
ualVisibility
= lens _ualVisibility
(\ s a -> s{_ualVisibility = a})
ualName :: Lens' UsersAssetsList Text
ualName = lens _ualName (\ s a -> s{_ualName = a})
ualPageToken :: Lens' UsersAssetsList (Maybe Text)
ualPageToken
= lens _ualPageToken (\ s a -> s{_ualPageToken = a})
ualPageSize :: Lens' UsersAssetsList (Maybe Int32)
ualPageSize
= lens _ualPageSize (\ s a -> s{_ualPageSize = a}) .
mapping _Coerce
ualCallback :: Lens' UsersAssetsList (Maybe Text)
ualCallback
= lens _ualCallback (\ s a -> s{_ualCallback = a})
instance GoogleRequest UsersAssetsList where
type Rs UsersAssetsList = ListUserAssetsResponse
type Scopes UsersAssetsList = '[]
requestClient UsersAssetsList'{..}
= go _ualName _ualXgafv _ualUploadProtocol
_ualOrderBy
_ualAccessToken
_ualFormat
_ualUploadType
_ualVisibility
_ualPageToken
_ualPageSize
_ualCallback
(Just AltJSON)
polyService
where go
= buildClient
(Proxy :: Proxy UsersAssetsListResource)
mempty