module Network.Google.Method.Freebase.Reconcile
(
ReconcileMethod
, reconcile
, Reconcile
, rKind
, rLang
, rConfidence
, rName
, rLimit
, rProp
) where
import Network.Google.FreebaseSearch.Types
import Network.Google.Prelude
type ReconcileMethod =
"freebase" :>
"v1" :>
"reconcile" :>
QueryParams "kind" Text :>
QueryParams "lang" Text :>
QueryParam "confidence" (Textual Double) :>
QueryParam "name" Text :>
QueryParam "limit" (Textual Int32) :>
QueryParams "prop" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] ReconcileGet
data Reconcile = Reconcile'
{ _rKind :: !(Maybe [Text])
, _rLang :: !(Maybe [Text])
, _rConfidence :: !(Textual Double)
, _rName :: !(Maybe Text)
, _rLimit :: !(Textual Int32)
, _rProp :: !(Maybe [Text])
} deriving (Eq,Show,Data,Typeable,Generic)
reconcile
:: Reconcile
reconcile =
Reconcile'
{ _rKind = Nothing
, _rLang = Nothing
, _rConfidence = 0.99
, _rName = Nothing
, _rLimit = 3
, _rProp = Nothing
}
rKind :: Lens' Reconcile [Text]
rKind
= lens _rKind (\ s a -> s{_rKind = a}) . _Default .
_Coerce
rLang :: Lens' Reconcile [Text]
rLang
= lens _rLang (\ s a -> s{_rLang = a}) . _Default .
_Coerce
rConfidence :: Lens' Reconcile Double
rConfidence
= lens _rConfidence (\ s a -> s{_rConfidence = a}) .
_Coerce
rName :: Lens' Reconcile (Maybe Text)
rName = lens _rName (\ s a -> s{_rName = a})
rLimit :: Lens' Reconcile Int32
rLimit
= lens _rLimit (\ s a -> s{_rLimit = a}) . _Coerce
rProp :: Lens' Reconcile [Text]
rProp
= lens _rProp (\ s a -> s{_rProp = a}) . _Default .
_Coerce
instance GoogleRequest Reconcile where
type Rs Reconcile = ReconcileGet
type Scopes Reconcile = '[]
requestClient Reconcile'{..}
= go (_rKind ^. _Default) (_rLang ^. _Default)
(Just _rConfidence)
_rName
(Just _rLimit)
(_rProp ^. _Default)
(Just AltJSON)
freebaseSearchService
where go
= buildClient (Proxy :: Proxy ReconcileMethod) mempty