{-# 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.SearchConsole.URLTestingTools.MobileFriendlyTest.Run
(
URLTestingToolsMobileFriendlyTestRunResource
, urlTestingToolsMobileFriendlyTestRun
, URLTestingToolsMobileFriendlyTestRun
, uttmftrXgafv
, uttmftrUploadProtocol
, uttmftrAccessToken
, uttmftrUploadType
, uttmftrPayload
, uttmftrCallback
) where
import Network.Google.Prelude
import Network.Google.SearchConsole.Types
type URLTestingToolsMobileFriendlyTestRunResource =
"v1" :>
"urlTestingTools" :>
"mobileFriendlyTest:run" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RunMobileFriendlyTestRequest :>
Post '[JSON] RunMobileFriendlyTestResponse
data URLTestingToolsMobileFriendlyTestRun = URLTestingToolsMobileFriendlyTestRun'
{ _uttmftrXgafv :: !(Maybe Xgafv)
, _uttmftrUploadProtocol :: !(Maybe Text)
, _uttmftrAccessToken :: !(Maybe Text)
, _uttmftrUploadType :: !(Maybe Text)
, _uttmftrPayload :: !RunMobileFriendlyTestRequest
, _uttmftrCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
urlTestingToolsMobileFriendlyTestRun
:: RunMobileFriendlyTestRequest
-> URLTestingToolsMobileFriendlyTestRun
urlTestingToolsMobileFriendlyTestRun pUttmftrPayload_ =
URLTestingToolsMobileFriendlyTestRun'
{ _uttmftrXgafv = Nothing
, _uttmftrUploadProtocol = Nothing
, _uttmftrAccessToken = Nothing
, _uttmftrUploadType = Nothing
, _uttmftrPayload = pUttmftrPayload_
, _uttmftrCallback = Nothing
}
uttmftrXgafv :: Lens' URLTestingToolsMobileFriendlyTestRun (Maybe Xgafv)
uttmftrXgafv
= lens _uttmftrXgafv (\ s a -> s{_uttmftrXgafv = a})
uttmftrUploadProtocol :: Lens' URLTestingToolsMobileFriendlyTestRun (Maybe Text)
uttmftrUploadProtocol
= lens _uttmftrUploadProtocol
(\ s a -> s{_uttmftrUploadProtocol = a})
uttmftrAccessToken :: Lens' URLTestingToolsMobileFriendlyTestRun (Maybe Text)
uttmftrAccessToken
= lens _uttmftrAccessToken
(\ s a -> s{_uttmftrAccessToken = a})
uttmftrUploadType :: Lens' URLTestingToolsMobileFriendlyTestRun (Maybe Text)
uttmftrUploadType
= lens _uttmftrUploadType
(\ s a -> s{_uttmftrUploadType = a})
uttmftrPayload :: Lens' URLTestingToolsMobileFriendlyTestRun RunMobileFriendlyTestRequest
uttmftrPayload
= lens _uttmftrPayload
(\ s a -> s{_uttmftrPayload = a})
uttmftrCallback :: Lens' URLTestingToolsMobileFriendlyTestRun (Maybe Text)
uttmftrCallback
= lens _uttmftrCallback
(\ s a -> s{_uttmftrCallback = a})
instance GoogleRequest
URLTestingToolsMobileFriendlyTestRun where
type Rs URLTestingToolsMobileFriendlyTestRun =
RunMobileFriendlyTestResponse
type Scopes URLTestingToolsMobileFriendlyTestRun =
'[]
requestClient
URLTestingToolsMobileFriendlyTestRun'{..}
= go _uttmftrXgafv _uttmftrUploadProtocol
_uttmftrAccessToken
_uttmftrUploadType
_uttmftrCallback
(Just AltJSON)
_uttmftrPayload
searchConsoleService
where go
= buildClient
(Proxy ::
Proxy URLTestingToolsMobileFriendlyTestRunResource)
mempty