{-# 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.Country.Get
(
AccountsStoreInfosCountryGetResource
, accountsStoreInfosCountryGet
, AccountsStoreInfosCountryGet
, asicgXgafv
, asicgUploadProtocol
, asicgCountry
, asicgPp
, asicgAccessToken
, asicgUploadType
, asicgVideoId
, asicgAccountId
, asicgBearerToken
, asicgCallback
) where
import Network.Google.PlayMoviesPartner.Types
import Network.Google.Prelude
type AccountsStoreInfosCountryGetResource =
"v1" :>
"accounts" :>
Capture "accountId" Text :>
"storeInfos" :>
Capture "videoId" Text :>
"country" :>
Capture "country" 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] StoreInfo
data AccountsStoreInfosCountryGet = AccountsStoreInfosCountryGet'
{ _asicgXgafv :: !(Maybe Xgafv)
, _asicgUploadProtocol :: !(Maybe Text)
, _asicgCountry :: !Text
, _asicgPp :: !Bool
, _asicgAccessToken :: !(Maybe Text)
, _asicgUploadType :: !(Maybe Text)
, _asicgVideoId :: !Text
, _asicgAccountId :: !Text
, _asicgBearerToken :: !(Maybe Text)
, _asicgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsStoreInfosCountryGet
:: Text
-> Text
-> Text
-> AccountsStoreInfosCountryGet
accountsStoreInfosCountryGet pAsicgCountry_ pAsicgVideoId_ pAsicgAccountId_ =
AccountsStoreInfosCountryGet'
{ _asicgXgafv = Nothing
, _asicgUploadProtocol = Nothing
, _asicgCountry = pAsicgCountry_
, _asicgPp = True
, _asicgAccessToken = Nothing
, _asicgUploadType = Nothing
, _asicgVideoId = pAsicgVideoId_
, _asicgAccountId = pAsicgAccountId_
, _asicgBearerToken = Nothing
, _asicgCallback = Nothing
}
asicgXgafv :: Lens' AccountsStoreInfosCountryGet (Maybe Xgafv)
asicgXgafv
= lens _asicgXgafv (\ s a -> s{_asicgXgafv = a})
asicgUploadProtocol :: Lens' AccountsStoreInfosCountryGet (Maybe Text)
asicgUploadProtocol
= lens _asicgUploadProtocol
(\ s a -> s{_asicgUploadProtocol = a})
asicgCountry :: Lens' AccountsStoreInfosCountryGet Text
asicgCountry
= lens _asicgCountry (\ s a -> s{_asicgCountry = a})
asicgPp :: Lens' AccountsStoreInfosCountryGet Bool
asicgPp = lens _asicgPp (\ s a -> s{_asicgPp = a})
asicgAccessToken :: Lens' AccountsStoreInfosCountryGet (Maybe Text)
asicgAccessToken
= lens _asicgAccessToken
(\ s a -> s{_asicgAccessToken = a})
asicgUploadType :: Lens' AccountsStoreInfosCountryGet (Maybe Text)
asicgUploadType
= lens _asicgUploadType
(\ s a -> s{_asicgUploadType = a})
asicgVideoId :: Lens' AccountsStoreInfosCountryGet Text
asicgVideoId
= lens _asicgVideoId (\ s a -> s{_asicgVideoId = a})
asicgAccountId :: Lens' AccountsStoreInfosCountryGet Text
asicgAccountId
= lens _asicgAccountId
(\ s a -> s{_asicgAccountId = a})
asicgBearerToken :: Lens' AccountsStoreInfosCountryGet (Maybe Text)
asicgBearerToken
= lens _asicgBearerToken
(\ s a -> s{_asicgBearerToken = a})
asicgCallback :: Lens' AccountsStoreInfosCountryGet (Maybe Text)
asicgCallback
= lens _asicgCallback
(\ s a -> s{_asicgCallback = a})
instance GoogleRequest AccountsStoreInfosCountryGet
where
type Rs AccountsStoreInfosCountryGet = StoreInfo
type Scopes AccountsStoreInfosCountryGet =
'["https://www.googleapis.com/auth/playmovies_partner.readonly"]
requestClient AccountsStoreInfosCountryGet'{..}
= go _asicgAccountId _asicgVideoId _asicgCountry
_asicgXgafv
_asicgUploadProtocol
(Just _asicgPp)
_asicgAccessToken
_asicgUploadType
_asicgBearerToken
_asicgCallback
(Just AltJSON)
playMoviesPartnerService
where go
= buildClient
(Proxy :: Proxy AccountsStoreInfosCountryGetResource)
mempty