{-# 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.VideoIntelligence.Videos.Annotate
(
VideosAnnotateResource
, videosAnnotate
, VideosAnnotate
, vaXgafv
, vaUploadProtocol
, vaAccessToken
, vaUploadType
, vaPayload
, vaCallback
) where
import Network.Google.Prelude
import Network.Google.VideoIntelligence.Types
type VideosAnnotateResource =
"v1p1beta1" :>
"videos:annotate" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest
:> Post '[JSON] GoogleLongrunning_Operation
data VideosAnnotate = VideosAnnotate'
{ _vaXgafv :: !(Maybe Xgafv)
, _vaUploadProtocol :: !(Maybe Text)
, _vaAccessToken :: !(Maybe Text)
, _vaUploadType :: !(Maybe Text)
, _vaPayload :: !GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest
, _vaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
videosAnnotate
:: GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest
-> VideosAnnotate
videosAnnotate pVaPayload_ =
VideosAnnotate'
{ _vaXgafv = Nothing
, _vaUploadProtocol = Nothing
, _vaAccessToken = Nothing
, _vaUploadType = Nothing
, _vaPayload = pVaPayload_
, _vaCallback = Nothing
}
vaXgafv :: Lens' VideosAnnotate (Maybe Xgafv)
vaXgafv = lens _vaXgafv (\ s a -> s{_vaXgafv = a})
vaUploadProtocol :: Lens' VideosAnnotate (Maybe Text)
vaUploadProtocol
= lens _vaUploadProtocol
(\ s a -> s{_vaUploadProtocol = a})
vaAccessToken :: Lens' VideosAnnotate (Maybe Text)
vaAccessToken
= lens _vaAccessToken
(\ s a -> s{_vaAccessToken = a})
vaUploadType :: Lens' VideosAnnotate (Maybe Text)
vaUploadType
= lens _vaUploadType (\ s a -> s{_vaUploadType = a})
vaPayload :: Lens' VideosAnnotate GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest
vaPayload
= lens _vaPayload (\ s a -> s{_vaPayload = a})
vaCallback :: Lens' VideosAnnotate (Maybe Text)
vaCallback
= lens _vaCallback (\ s a -> s{_vaCallback = a})
instance GoogleRequest VideosAnnotate where
type Rs VideosAnnotate = GoogleLongrunning_Operation
type Scopes VideosAnnotate =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient VideosAnnotate'{..}
= go _vaXgafv _vaUploadProtocol _vaAccessToken
_vaUploadType
_vaCallback
(Just AltJSON)
_vaPayload
videoIntelligenceService
where go
= buildClient (Proxy :: Proxy VideosAnnotateResource)
mempty