{-# 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.PlayMoviesPartner.Accounts.StoreInfos.List
(
AccountsStoreInfosListResource
, accountsStoreInfosList
, AccountsStoreInfosList
, asilPphNames
, asilXgafv
, asilStudioNames
, asilVideoIds
, asilUploadProtocol
, asilPp
, asilAccessToken
, asilSeasonIds
, asilMids
, asilUploadType
, asilCountries
, asilVideoId
, asilAccountId
, asilBearerToken
, asilName
, asilPageToken
, asilPageSize
, asilCallback
) where
import Network.Google.PlayMoviesPartner.Types
import Network.Google.Prelude
type AccountsStoreInfosListResource =
"v1" :>
"accounts" :>
Capture "accountId" Text :>
"storeInfos" :>
QueryParams "pphNames" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParams "studioNames" Text :>
QueryParams "videoIds" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "pp" Bool :>
QueryParam "access_token" Text :>
QueryParams "seasonIds" Text :>
QueryParams "mids" Text :>
QueryParam "uploadType" Text :>
QueryParams "countries" Text :>
QueryParam "videoId" Text :>
QueryParam "bearer_token" Text :>
QueryParam "name" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32)
:>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON]
ListStoreInfosResponse
data AccountsStoreInfosList = AccountsStoreInfosList'
{ _asilPphNames :: !(Maybe [Text])
, _asilXgafv :: !(Maybe Xgafv)
, _asilStudioNames :: !(Maybe [Text])
, _asilVideoIds :: !(Maybe [Text])
, _asilUploadProtocol :: !(Maybe Text)
, _asilPp :: !Bool
, _asilAccessToken :: !(Maybe Text)
, _asilSeasonIds :: !(Maybe [Text])
, _asilMids :: !(Maybe [Text])
, _asilUploadType :: !(Maybe Text)
, _asilCountries :: !(Maybe [Text])
, _asilVideoId :: !(Maybe Text)
, _asilAccountId :: !Text
, _asilBearerToken :: !(Maybe Text)
, _asilName :: !(Maybe Text)
, _asilPageToken :: !(Maybe Text)
, _asilPageSize :: !(Maybe (Textual Int32))
, _asilCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsStoreInfosList
:: Text
-> AccountsStoreInfosList
accountsStoreInfosList pAsilAccountId_ =
AccountsStoreInfosList'
{ _asilPphNames = Nothing
, _asilXgafv = Nothing
, _asilStudioNames = Nothing
, _asilVideoIds = Nothing
, _asilUploadProtocol = Nothing
, _asilPp = True
, _asilAccessToken = Nothing
, _asilSeasonIds = Nothing
, _asilMids = Nothing
, _asilUploadType = Nothing
, _asilCountries = Nothing
, _asilVideoId = Nothing
, _asilAccountId = pAsilAccountId_
, _asilBearerToken = Nothing
, _asilName = Nothing
, _asilPageToken = Nothing
, _asilPageSize = Nothing
, _asilCallback = Nothing
}
asilPphNames :: Lens' AccountsStoreInfosList [Text]
asilPphNames
= lens _asilPphNames (\ s a -> s{_asilPphNames = a})
. _Default
. _Coerce
asilXgafv :: Lens' AccountsStoreInfosList (Maybe Xgafv)
asilXgafv
= lens _asilXgafv (\ s a -> s{_asilXgafv = a})
asilStudioNames :: Lens' AccountsStoreInfosList [Text]
asilStudioNames
= lens _asilStudioNames
(\ s a -> s{_asilStudioNames = a})
. _Default
. _Coerce
asilVideoIds :: Lens' AccountsStoreInfosList [Text]
asilVideoIds
= lens _asilVideoIds (\ s a -> s{_asilVideoIds = a})
. _Default
. _Coerce
asilUploadProtocol :: Lens' AccountsStoreInfosList (Maybe Text)
asilUploadProtocol
= lens _asilUploadProtocol
(\ s a -> s{_asilUploadProtocol = a})
asilPp :: Lens' AccountsStoreInfosList Bool
asilPp = lens _asilPp (\ s a -> s{_asilPp = a})
asilAccessToken :: Lens' AccountsStoreInfosList (Maybe Text)
asilAccessToken
= lens _asilAccessToken
(\ s a -> s{_asilAccessToken = a})
asilSeasonIds :: Lens' AccountsStoreInfosList [Text]
asilSeasonIds
= lens _asilSeasonIds
(\ s a -> s{_asilSeasonIds = a})
. _Default
. _Coerce
asilMids :: Lens' AccountsStoreInfosList [Text]
asilMids
= lens _asilMids (\ s a -> s{_asilMids = a}) .
_Default
. _Coerce
asilUploadType :: Lens' AccountsStoreInfosList (Maybe Text)
asilUploadType
= lens _asilUploadType
(\ s a -> s{_asilUploadType = a})
asilCountries :: Lens' AccountsStoreInfosList [Text]
asilCountries
= lens _asilCountries
(\ s a -> s{_asilCountries = a})
. _Default
. _Coerce
asilVideoId :: Lens' AccountsStoreInfosList (Maybe Text)
asilVideoId
= lens _asilVideoId (\ s a -> s{_asilVideoId = a})
asilAccountId :: Lens' AccountsStoreInfosList Text
asilAccountId
= lens _asilAccountId
(\ s a -> s{_asilAccountId = a})
asilBearerToken :: Lens' AccountsStoreInfosList (Maybe Text)
asilBearerToken
= lens _asilBearerToken
(\ s a -> s{_asilBearerToken = a})
asilName :: Lens' AccountsStoreInfosList (Maybe Text)
asilName = lens _asilName (\ s a -> s{_asilName = a})
asilPageToken :: Lens' AccountsStoreInfosList (Maybe Text)
asilPageToken
= lens _asilPageToken
(\ s a -> s{_asilPageToken = a})
asilPageSize :: Lens' AccountsStoreInfosList (Maybe Int32)
asilPageSize
= lens _asilPageSize (\ s a -> s{_asilPageSize = a})
. mapping _Coerce
asilCallback :: Lens' AccountsStoreInfosList (Maybe Text)
asilCallback
= lens _asilCallback (\ s a -> s{_asilCallback = a})
instance GoogleRequest AccountsStoreInfosList where
type Rs AccountsStoreInfosList =
ListStoreInfosResponse
type Scopes AccountsStoreInfosList =
'["https://www.googleapis.com/auth/playmovies_partner.readonly"]
requestClient AccountsStoreInfosList'{..}
= go _asilAccountId (_asilPphNames ^. _Default)
_asilXgafv
(_asilStudioNames ^. _Default)
(_asilVideoIds ^. _Default)
_asilUploadProtocol
(Just _asilPp)
_asilAccessToken
(_asilSeasonIds ^. _Default)
(_asilMids ^. _Default)
_asilUploadType
(_asilCountries ^. _Default)
_asilVideoId
_asilBearerToken
_asilName
_asilPageToken
_asilPageSize
_asilCallback
(Just AltJSON)
playMoviesPartnerService
where go
= buildClient
(Proxy :: Proxy AccountsStoreInfosListResource)
mempty