{-# 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.CloudAsset.Projects.BatchGetAssetsHistory
(
ProjectsBatchGetAssetsHistoryResource
, projectsBatchGetAssetsHistory
, ProjectsBatchGetAssetsHistory
, pbgahParent
, pbgahXgafv
, pbgahReadTimeWindowEndTime
, pbgahUploadProtocol
, pbgahAccessToken
, pbgahUploadType
, pbgahAssetNames
, pbgahReadTimeWindowStartTime
, pbgahContentType
, pbgahCallback
) where
import Network.Google.CloudAsset.Types
import Network.Google.Prelude
type ProjectsBatchGetAssetsHistoryResource =
"v1beta1" :>
CaptureMode "parent" "batchGetAssetsHistory" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "readTimeWindow.endTime" DateTime' :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParams "assetNames" Text :>
QueryParam "readTimeWindow.startTime" DateTime' :>
QueryParam "contentType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] BatchGetAssetsHistoryResponse
data ProjectsBatchGetAssetsHistory = ProjectsBatchGetAssetsHistory'
{ _pbgahParent :: !Text
, _pbgahXgafv :: !(Maybe Xgafv)
, _pbgahReadTimeWindowEndTime :: !(Maybe DateTime')
, _pbgahUploadProtocol :: !(Maybe Text)
, _pbgahAccessToken :: !(Maybe Text)
, _pbgahUploadType :: !(Maybe Text)
, _pbgahAssetNames :: !(Maybe [Text])
, _pbgahReadTimeWindowStartTime :: !(Maybe DateTime')
, _pbgahContentType :: !(Maybe Text)
, _pbgahCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsBatchGetAssetsHistory
:: Text
-> ProjectsBatchGetAssetsHistory
projectsBatchGetAssetsHistory pPbgahParent_ =
ProjectsBatchGetAssetsHistory'
{ _pbgahParent = pPbgahParent_
, _pbgahXgafv = Nothing
, _pbgahReadTimeWindowEndTime = Nothing
, _pbgahUploadProtocol = Nothing
, _pbgahAccessToken = Nothing
, _pbgahUploadType = Nothing
, _pbgahAssetNames = Nothing
, _pbgahReadTimeWindowStartTime = Nothing
, _pbgahContentType = Nothing
, _pbgahCallback = Nothing
}
pbgahParent :: Lens' ProjectsBatchGetAssetsHistory Text
pbgahParent
= lens _pbgahParent (\ s a -> s{_pbgahParent = a})
pbgahXgafv :: Lens' ProjectsBatchGetAssetsHistory (Maybe Xgafv)
pbgahXgafv
= lens _pbgahXgafv (\ s a -> s{_pbgahXgafv = a})
pbgahReadTimeWindowEndTime :: Lens' ProjectsBatchGetAssetsHistory (Maybe UTCTime)
pbgahReadTimeWindowEndTime
= lens _pbgahReadTimeWindowEndTime
(\ s a -> s{_pbgahReadTimeWindowEndTime = a})
. mapping _DateTime
pbgahUploadProtocol :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text)
pbgahUploadProtocol
= lens _pbgahUploadProtocol
(\ s a -> s{_pbgahUploadProtocol = a})
pbgahAccessToken :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text)
pbgahAccessToken
= lens _pbgahAccessToken
(\ s a -> s{_pbgahAccessToken = a})
pbgahUploadType :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text)
pbgahUploadType
= lens _pbgahUploadType
(\ s a -> s{_pbgahUploadType = a})
pbgahAssetNames :: Lens' ProjectsBatchGetAssetsHistory [Text]
pbgahAssetNames
= lens _pbgahAssetNames
(\ s a -> s{_pbgahAssetNames = a})
. _Default
. _Coerce
pbgahReadTimeWindowStartTime :: Lens' ProjectsBatchGetAssetsHistory (Maybe UTCTime)
pbgahReadTimeWindowStartTime
= lens _pbgahReadTimeWindowStartTime
(\ s a -> s{_pbgahReadTimeWindowStartTime = a})
. mapping _DateTime
pbgahContentType :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text)
pbgahContentType
= lens _pbgahContentType
(\ s a -> s{_pbgahContentType = a})
pbgahCallback :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text)
pbgahCallback
= lens _pbgahCallback
(\ s a -> s{_pbgahCallback = a})
instance GoogleRequest ProjectsBatchGetAssetsHistory
where
type Rs ProjectsBatchGetAssetsHistory =
BatchGetAssetsHistoryResponse
type Scopes ProjectsBatchGetAssetsHistory =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsBatchGetAssetsHistory'{..}
= go _pbgahParent _pbgahXgafv
_pbgahReadTimeWindowEndTime
_pbgahUploadProtocol
_pbgahAccessToken
_pbgahUploadType
(_pbgahAssetNames ^. _Default)
_pbgahReadTimeWindowStartTime
_pbgahContentType
_pbgahCallback
(Just AltJSON)
cloudAssetService
where go
= buildClient
(Proxy ::
Proxy ProjectsBatchGetAssetsHistoryResource)
mempty