{-# 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.Avails.List
(
AccountsAvailsListResource
, accountsAvailsList
, AccountsAvailsList
, aalAltId
, aalPphNames
, aalXgafv
, aalStudioNames
, aalVideoIds
, aalUploadProtocol
, aalPp
, aalAccessToken
, aalUploadType
, aalTerritories
, aalAccountId
, aalBearerToken
, aalAltIds
, aalPageToken
, aalTitle
, aalPageSize
, aalCallback
) where
import Network.Google.PlayMoviesPartner.Types
import Network.Google.Prelude
type AccountsAvailsListResource =
"v1" :>
"accounts" :>
Capture "accountId" Text :>
"avails" :>
QueryParam "altId" Text :>
QueryParams "pphNames" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParams "studioNames" Text :>
QueryParams "videoIds" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "pp" Bool :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParams "territories" Text :>
QueryParam "bearer_token" Text :>
QueryParams "altIds" Text :>
QueryParam "pageToken" Text :>
QueryParam "title" Text :>
QueryParam "pageSize" (Textual Int32)
:>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListAvailsResponse
data AccountsAvailsList = AccountsAvailsList'
{ _aalAltId :: !(Maybe Text)
, _aalPphNames :: !(Maybe [Text])
, _aalXgafv :: !(Maybe Xgafv)
, _aalStudioNames :: !(Maybe [Text])
, _aalVideoIds :: !(Maybe [Text])
, _aalUploadProtocol :: !(Maybe Text)
, _aalPp :: !Bool
, _aalAccessToken :: !(Maybe Text)
, _aalUploadType :: !(Maybe Text)
, _aalTerritories :: !(Maybe [Text])
, _aalAccountId :: !Text
, _aalBearerToken :: !(Maybe Text)
, _aalAltIds :: !(Maybe [Text])
, _aalPageToken :: !(Maybe Text)
, _aalTitle :: !(Maybe Text)
, _aalPageSize :: !(Maybe (Textual Int32))
, _aalCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsAvailsList
:: Text
-> AccountsAvailsList
accountsAvailsList pAalAccountId_ =
AccountsAvailsList'
{ _aalAltId = Nothing
, _aalPphNames = Nothing
, _aalXgafv = Nothing
, _aalStudioNames = Nothing
, _aalVideoIds = Nothing
, _aalUploadProtocol = Nothing
, _aalPp = True
, _aalAccessToken = Nothing
, _aalUploadType = Nothing
, _aalTerritories = Nothing
, _aalAccountId = pAalAccountId_
, _aalBearerToken = Nothing
, _aalAltIds = Nothing
, _aalPageToken = Nothing
, _aalTitle = Nothing
, _aalPageSize = Nothing
, _aalCallback = Nothing
}
aalAltId :: Lens' AccountsAvailsList (Maybe Text)
aalAltId = lens _aalAltId (\ s a -> s{_aalAltId = a})
aalPphNames :: Lens' AccountsAvailsList [Text]
aalPphNames
= lens _aalPphNames (\ s a -> s{_aalPphNames = a}) .
_Default
. _Coerce
aalXgafv :: Lens' AccountsAvailsList (Maybe Xgafv)
aalXgafv = lens _aalXgafv (\ s a -> s{_aalXgafv = a})
aalStudioNames :: Lens' AccountsAvailsList [Text]
aalStudioNames
= lens _aalStudioNames
(\ s a -> s{_aalStudioNames = a})
. _Default
. _Coerce
aalVideoIds :: Lens' AccountsAvailsList [Text]
aalVideoIds
= lens _aalVideoIds (\ s a -> s{_aalVideoIds = a}) .
_Default
. _Coerce
aalUploadProtocol :: Lens' AccountsAvailsList (Maybe Text)
aalUploadProtocol
= lens _aalUploadProtocol
(\ s a -> s{_aalUploadProtocol = a})
aalPp :: Lens' AccountsAvailsList Bool
aalPp = lens _aalPp (\ s a -> s{_aalPp = a})
aalAccessToken :: Lens' AccountsAvailsList (Maybe Text)
aalAccessToken
= lens _aalAccessToken
(\ s a -> s{_aalAccessToken = a})
aalUploadType :: Lens' AccountsAvailsList (Maybe Text)
aalUploadType
= lens _aalUploadType
(\ s a -> s{_aalUploadType = a})
aalTerritories :: Lens' AccountsAvailsList [Text]
aalTerritories
= lens _aalTerritories
(\ s a -> s{_aalTerritories = a})
. _Default
. _Coerce
aalAccountId :: Lens' AccountsAvailsList Text
aalAccountId
= lens _aalAccountId (\ s a -> s{_aalAccountId = a})
aalBearerToken :: Lens' AccountsAvailsList (Maybe Text)
aalBearerToken
= lens _aalBearerToken
(\ s a -> s{_aalBearerToken = a})
aalAltIds :: Lens' AccountsAvailsList [Text]
aalAltIds
= lens _aalAltIds (\ s a -> s{_aalAltIds = a}) .
_Default
. _Coerce
aalPageToken :: Lens' AccountsAvailsList (Maybe Text)
aalPageToken
= lens _aalPageToken (\ s a -> s{_aalPageToken = a})
aalTitle :: Lens' AccountsAvailsList (Maybe Text)
aalTitle = lens _aalTitle (\ s a -> s{_aalTitle = a})
aalPageSize :: Lens' AccountsAvailsList (Maybe Int32)
aalPageSize
= lens _aalPageSize (\ s a -> s{_aalPageSize = a}) .
mapping _Coerce
aalCallback :: Lens' AccountsAvailsList (Maybe Text)
aalCallback
= lens _aalCallback (\ s a -> s{_aalCallback = a})
instance GoogleRequest AccountsAvailsList where
type Rs AccountsAvailsList = ListAvailsResponse
type Scopes AccountsAvailsList =
'["https://www.googleapis.com/auth/playmovies_partner.readonly"]
requestClient AccountsAvailsList'{..}
= go _aalAccountId _aalAltId
(_aalPphNames ^. _Default)
_aalXgafv
(_aalStudioNames ^. _Default)
(_aalVideoIds ^. _Default)
_aalUploadProtocol
(Just _aalPp)
_aalAccessToken
_aalUploadType
(_aalTerritories ^. _Default)
_aalBearerToken
(_aalAltIds ^. _Default)
_aalPageToken
_aalTitle
_aalPageSize
_aalCallback
(Just AltJSON)
playMoviesPartnerService
where go
= buildClient
(Proxy :: Proxy AccountsAvailsListResource)
mempty