{-# 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.Get
(
AccountsAvailsGetResource
, accountsAvailsGet
, AccountsAvailsGet
, aagXgafv
, aagUploadProtocol
, aagPp
, aagAccessToken
, aagUploadType
, aagAvailId
, aagAccountId
, aagBearerToken
, aagCallback
) where
import Network.Google.PlayMoviesPartner.Types
import Network.Google.Prelude
type AccountsAvailsGetResource =
"v1" :>
"accounts" :>
Capture "accountId" Text :>
"avails" :>
Capture "availId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "pp" Bool :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "bearer_token" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Avail
data AccountsAvailsGet = AccountsAvailsGet'
{ _aagXgafv :: !(Maybe Xgafv)
, _aagUploadProtocol :: !(Maybe Text)
, _aagPp :: !Bool
, _aagAccessToken :: !(Maybe Text)
, _aagUploadType :: !(Maybe Text)
, _aagAvailId :: !Text
, _aagAccountId :: !Text
, _aagBearerToken :: !(Maybe Text)
, _aagCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsAvailsGet
:: Text
-> Text
-> AccountsAvailsGet
accountsAvailsGet pAagAvailId_ pAagAccountId_ =
AccountsAvailsGet'
{ _aagXgafv = Nothing
, _aagUploadProtocol = Nothing
, _aagPp = True
, _aagAccessToken = Nothing
, _aagUploadType = Nothing
, _aagAvailId = pAagAvailId_
, _aagAccountId = pAagAccountId_
, _aagBearerToken = Nothing
, _aagCallback = Nothing
}
aagXgafv :: Lens' AccountsAvailsGet (Maybe Xgafv)
aagXgafv = lens _aagXgafv (\ s a -> s{_aagXgafv = a})
aagUploadProtocol :: Lens' AccountsAvailsGet (Maybe Text)
aagUploadProtocol
= lens _aagUploadProtocol
(\ s a -> s{_aagUploadProtocol = a})
aagPp :: Lens' AccountsAvailsGet Bool
aagPp = lens _aagPp (\ s a -> s{_aagPp = a})
aagAccessToken :: Lens' AccountsAvailsGet (Maybe Text)
aagAccessToken
= lens _aagAccessToken
(\ s a -> s{_aagAccessToken = a})
aagUploadType :: Lens' AccountsAvailsGet (Maybe Text)
aagUploadType
= lens _aagUploadType
(\ s a -> s{_aagUploadType = a})
aagAvailId :: Lens' AccountsAvailsGet Text
aagAvailId
= lens _aagAvailId (\ s a -> s{_aagAvailId = a})
aagAccountId :: Lens' AccountsAvailsGet Text
aagAccountId
= lens _aagAccountId (\ s a -> s{_aagAccountId = a})
aagBearerToken :: Lens' AccountsAvailsGet (Maybe Text)
aagBearerToken
= lens _aagBearerToken
(\ s a -> s{_aagBearerToken = a})
aagCallback :: Lens' AccountsAvailsGet (Maybe Text)
aagCallback
= lens _aagCallback (\ s a -> s{_aagCallback = a})
instance GoogleRequest AccountsAvailsGet where
type Rs AccountsAvailsGet = Avail
type Scopes AccountsAvailsGet =
'["https://www.googleapis.com/auth/playmovies_partner.readonly"]
requestClient AccountsAvailsGet'{..}
= go _aagAccountId _aagAvailId _aagXgafv
_aagUploadProtocol
(Just _aagPp)
_aagAccessToken
_aagUploadType
_aagBearerToken
_aagCallback
(Just AltJSON)
playMoviesPartnerService
where go
= buildClient
(Proxy :: Proxy AccountsAvailsGetResource)
mempty