{-# 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.Speech.Projects.Operations.ManualRecognitionTasks.Get
(
ProjectsOperationsManualRecognitionTasksGetResource
, projectsOperationsManualRecognitionTasksGet
, ProjectsOperationsManualRecognitionTasksGet
, pomrtgXgafv
, pomrtgUploadProtocol
, pomrtgAccessToken
, pomrtgUploadType
, pomrtgName
, pomrtgCallback
) where
import Network.Google.Prelude
import Network.Google.Speech.Types
type ProjectsOperationsManualRecognitionTasksGetResource
=
"v1p1beta1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Operation
data ProjectsOperationsManualRecognitionTasksGet = ProjectsOperationsManualRecognitionTasksGet'
{ _pomrtgXgafv :: !(Maybe Xgafv)
, _pomrtgUploadProtocol :: !(Maybe Text)
, _pomrtgAccessToken :: !(Maybe Text)
, _pomrtgUploadType :: !(Maybe Text)
, _pomrtgName :: !Text
, _pomrtgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsOperationsManualRecognitionTasksGet
:: Text
-> ProjectsOperationsManualRecognitionTasksGet
projectsOperationsManualRecognitionTasksGet pPomrtgName_ =
ProjectsOperationsManualRecognitionTasksGet'
{ _pomrtgXgafv = Nothing
, _pomrtgUploadProtocol = Nothing
, _pomrtgAccessToken = Nothing
, _pomrtgUploadType = Nothing
, _pomrtgName = pPomrtgName_
, _pomrtgCallback = Nothing
}
pomrtgXgafv :: Lens' ProjectsOperationsManualRecognitionTasksGet (Maybe Xgafv)
pomrtgXgafv
= lens _pomrtgXgafv (\ s a -> s{_pomrtgXgafv = a})
pomrtgUploadProtocol :: Lens' ProjectsOperationsManualRecognitionTasksGet (Maybe Text)
pomrtgUploadProtocol
= lens _pomrtgUploadProtocol
(\ s a -> s{_pomrtgUploadProtocol = a})
pomrtgAccessToken :: Lens' ProjectsOperationsManualRecognitionTasksGet (Maybe Text)
pomrtgAccessToken
= lens _pomrtgAccessToken
(\ s a -> s{_pomrtgAccessToken = a})
pomrtgUploadType :: Lens' ProjectsOperationsManualRecognitionTasksGet (Maybe Text)
pomrtgUploadType
= lens _pomrtgUploadType
(\ s a -> s{_pomrtgUploadType = a})
pomrtgName :: Lens' ProjectsOperationsManualRecognitionTasksGet Text
pomrtgName
= lens _pomrtgName (\ s a -> s{_pomrtgName = a})
pomrtgCallback :: Lens' ProjectsOperationsManualRecognitionTasksGet (Maybe Text)
pomrtgCallback
= lens _pomrtgCallback
(\ s a -> s{_pomrtgCallback = a})
instance GoogleRequest
ProjectsOperationsManualRecognitionTasksGet where
type Rs ProjectsOperationsManualRecognitionTasksGet =
Operation
type Scopes
ProjectsOperationsManualRecognitionTasksGet
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsOperationsManualRecognitionTasksGet'{..}
= go _pomrtgName _pomrtgXgafv _pomrtgUploadProtocol
_pomrtgAccessToken
_pomrtgUploadType
_pomrtgCallback
(Just AltJSON)
speechService
where go
= buildClient
(Proxy ::
Proxy
ProjectsOperationsManualRecognitionTasksGetResource)
mempty