{-# 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.Organizations.BatchGetAssetsHistory
(
OrganizationsBatchGetAssetsHistoryResource
, organizationsBatchGetAssetsHistory
, OrganizationsBatchGetAssetsHistory
, obgahParent
, obgahXgafv
, obgahReadTimeWindowEndTime
, obgahUploadProtocol
, obgahAccessToken
, obgahUploadType
, obgahAssetNames
, obgahReadTimeWindowStartTime
, obgahContentType
, obgahCallback
) where
import Network.Google.CloudAsset.Types
import Network.Google.Prelude
type OrganizationsBatchGetAssetsHistoryResource =
"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 OrganizationsBatchGetAssetsHistory = OrganizationsBatchGetAssetsHistory'
{ _obgahParent :: !Text
, _obgahXgafv :: !(Maybe Xgafv)
, _obgahReadTimeWindowEndTime :: !(Maybe DateTime')
, _obgahUploadProtocol :: !(Maybe Text)
, _obgahAccessToken :: !(Maybe Text)
, _obgahUploadType :: !(Maybe Text)
, _obgahAssetNames :: !(Maybe [Text])
, _obgahReadTimeWindowStartTime :: !(Maybe DateTime')
, _obgahContentType :: !(Maybe Text)
, _obgahCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsBatchGetAssetsHistory
:: Text
-> OrganizationsBatchGetAssetsHistory
organizationsBatchGetAssetsHistory pObgahParent_ =
OrganizationsBatchGetAssetsHistory'
{ _obgahParent = pObgahParent_
, _obgahXgafv = Nothing
, _obgahReadTimeWindowEndTime = Nothing
, _obgahUploadProtocol = Nothing
, _obgahAccessToken = Nothing
, _obgahUploadType = Nothing
, _obgahAssetNames = Nothing
, _obgahReadTimeWindowStartTime = Nothing
, _obgahContentType = Nothing
, _obgahCallback = Nothing
}
obgahParent :: Lens' OrganizationsBatchGetAssetsHistory Text
obgahParent
= lens _obgahParent (\ s a -> s{_obgahParent = a})
obgahXgafv :: Lens' OrganizationsBatchGetAssetsHistory (Maybe Xgafv)
obgahXgafv
= lens _obgahXgafv (\ s a -> s{_obgahXgafv = a})
obgahReadTimeWindowEndTime :: Lens' OrganizationsBatchGetAssetsHistory (Maybe UTCTime)
obgahReadTimeWindowEndTime
= lens _obgahReadTimeWindowEndTime
(\ s a -> s{_obgahReadTimeWindowEndTime = a})
. mapping _DateTime
obgahUploadProtocol :: Lens' OrganizationsBatchGetAssetsHistory (Maybe Text)
obgahUploadProtocol
= lens _obgahUploadProtocol
(\ s a -> s{_obgahUploadProtocol = a})
obgahAccessToken :: Lens' OrganizationsBatchGetAssetsHistory (Maybe Text)
obgahAccessToken
= lens _obgahAccessToken
(\ s a -> s{_obgahAccessToken = a})
obgahUploadType :: Lens' OrganizationsBatchGetAssetsHistory (Maybe Text)
obgahUploadType
= lens _obgahUploadType
(\ s a -> s{_obgahUploadType = a})
obgahAssetNames :: Lens' OrganizationsBatchGetAssetsHistory [Text]
obgahAssetNames
= lens _obgahAssetNames
(\ s a -> s{_obgahAssetNames = a})
. _Default
. _Coerce
obgahReadTimeWindowStartTime :: Lens' OrganizationsBatchGetAssetsHistory (Maybe UTCTime)
obgahReadTimeWindowStartTime
= lens _obgahReadTimeWindowStartTime
(\ s a -> s{_obgahReadTimeWindowStartTime = a})
. mapping _DateTime
obgahContentType :: Lens' OrganizationsBatchGetAssetsHistory (Maybe Text)
obgahContentType
= lens _obgahContentType
(\ s a -> s{_obgahContentType = a})
obgahCallback :: Lens' OrganizationsBatchGetAssetsHistory (Maybe Text)
obgahCallback
= lens _obgahCallback
(\ s a -> s{_obgahCallback = a})
instance GoogleRequest
OrganizationsBatchGetAssetsHistory where
type Rs OrganizationsBatchGetAssetsHistory =
BatchGetAssetsHistoryResponse
type Scopes OrganizationsBatchGetAssetsHistory =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OrganizationsBatchGetAssetsHistory'{..}
= go _obgahParent _obgahXgafv
_obgahReadTimeWindowEndTime
_obgahUploadProtocol
_obgahAccessToken
_obgahUploadType
(_obgahAssetNames ^. _Default)
_obgahReadTimeWindowStartTime
_obgahContentType
_obgahCallback
(Just AltJSON)
cloudAssetService
where go
= buildClient
(Proxy ::
Proxy OrganizationsBatchGetAssetsHistoryResource)
mempty