{-# 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.CloudSearch.Debug.Datasources.Items.SearchByViewURL
(
DebugDatasourcesItemsSearchByViewURLResource
, debugDatasourcesItemsSearchByViewURL
, DebugDatasourcesItemsSearchByViewURL
, ddisbvuXgafv
, ddisbvuUploadProtocol
, ddisbvuAccessToken
, ddisbvuUploadType
, ddisbvuPayload
, ddisbvuName
, ddisbvuCallback
) where
import Network.Google.CloudSearch.Types
import Network.Google.Prelude
type DebugDatasourcesItemsSearchByViewURLResource =
"v1" :>
"debug" :>
Capture "name" Text :>
"items:searchByViewUrl" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SearchItemsByViewURLRequest :>
Post '[JSON] SearchItemsByViewURLResponse
data DebugDatasourcesItemsSearchByViewURL = DebugDatasourcesItemsSearchByViewURL'
{ _ddisbvuXgafv :: !(Maybe Xgafv)
, _ddisbvuUploadProtocol :: !(Maybe Text)
, _ddisbvuAccessToken :: !(Maybe Text)
, _ddisbvuUploadType :: !(Maybe Text)
, _ddisbvuPayload :: !SearchItemsByViewURLRequest
, _ddisbvuName :: !Text
, _ddisbvuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
debugDatasourcesItemsSearchByViewURL
:: SearchItemsByViewURLRequest
-> Text
-> DebugDatasourcesItemsSearchByViewURL
debugDatasourcesItemsSearchByViewURL pDdisbvuPayload_ pDdisbvuName_ =
DebugDatasourcesItemsSearchByViewURL'
{ _ddisbvuXgafv = Nothing
, _ddisbvuUploadProtocol = Nothing
, _ddisbvuAccessToken = Nothing
, _ddisbvuUploadType = Nothing
, _ddisbvuPayload = pDdisbvuPayload_
, _ddisbvuName = pDdisbvuName_
, _ddisbvuCallback = Nothing
}
ddisbvuXgafv :: Lens' DebugDatasourcesItemsSearchByViewURL (Maybe Xgafv)
ddisbvuXgafv
= lens _ddisbvuXgafv (\ s a -> s{_ddisbvuXgafv = a})
ddisbvuUploadProtocol :: Lens' DebugDatasourcesItemsSearchByViewURL (Maybe Text)
ddisbvuUploadProtocol
= lens _ddisbvuUploadProtocol
(\ s a -> s{_ddisbvuUploadProtocol = a})
ddisbvuAccessToken :: Lens' DebugDatasourcesItemsSearchByViewURL (Maybe Text)
ddisbvuAccessToken
= lens _ddisbvuAccessToken
(\ s a -> s{_ddisbvuAccessToken = a})
ddisbvuUploadType :: Lens' DebugDatasourcesItemsSearchByViewURL (Maybe Text)
ddisbvuUploadType
= lens _ddisbvuUploadType
(\ s a -> s{_ddisbvuUploadType = a})
ddisbvuPayload :: Lens' DebugDatasourcesItemsSearchByViewURL SearchItemsByViewURLRequest
ddisbvuPayload
= lens _ddisbvuPayload
(\ s a -> s{_ddisbvuPayload = a})
ddisbvuName :: Lens' DebugDatasourcesItemsSearchByViewURL Text
ddisbvuName
= lens _ddisbvuName (\ s a -> s{_ddisbvuName = a})
ddisbvuCallback :: Lens' DebugDatasourcesItemsSearchByViewURL (Maybe Text)
ddisbvuCallback
= lens _ddisbvuCallback
(\ s a -> s{_ddisbvuCallback = a})
instance GoogleRequest
DebugDatasourcesItemsSearchByViewURL where
type Rs DebugDatasourcesItemsSearchByViewURL =
SearchItemsByViewURLResponse
type Scopes DebugDatasourcesItemsSearchByViewURL =
'["https://www.googleapis.com/auth/cloud_search",
"https://www.googleapis.com/auth/cloud_search.debug"]
requestClient
DebugDatasourcesItemsSearchByViewURL'{..}
= go _ddisbvuName _ddisbvuXgafv
_ddisbvuUploadProtocol
_ddisbvuAccessToken
_ddisbvuUploadType
_ddisbvuCallback
(Just AltJSON)
_ddisbvuPayload
cloudSearchService
where go
= buildClient
(Proxy ::
Proxy DebugDatasourcesItemsSearchByViewURLResource)
mempty