{-# 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.FireStore.Projects.Databases.Documents.ListCollectionIds
(
ProjectsDatabasesDocumentsListCollectionIdsResource
, projectsDatabasesDocumentsListCollectionIds
, ProjectsDatabasesDocumentsListCollectionIds
, pddlciParent
, pddlciXgafv
, pddlciUploadProtocol
, pddlciAccessToken
, pddlciUploadType
, pddlciPayload
, pddlciCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
type ProjectsDatabasesDocumentsListCollectionIdsResource
=
"v1" :>
CaptureMode "parent" "listCollectionIds" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ListCollectionIdsRequest :>
Post '[JSON] ListCollectionIdsResponse
data ProjectsDatabasesDocumentsListCollectionIds = ProjectsDatabasesDocumentsListCollectionIds'
{ _pddlciParent :: !Text
, _pddlciXgafv :: !(Maybe Xgafv)
, _pddlciUploadProtocol :: !(Maybe Text)
, _pddlciAccessToken :: !(Maybe Text)
, _pddlciUploadType :: !(Maybe Text)
, _pddlciPayload :: !ListCollectionIdsRequest
, _pddlciCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDatabasesDocumentsListCollectionIds
:: Text
-> ListCollectionIdsRequest
-> ProjectsDatabasesDocumentsListCollectionIds
projectsDatabasesDocumentsListCollectionIds pPddlciParent_ pPddlciPayload_ =
ProjectsDatabasesDocumentsListCollectionIds'
{ _pddlciParent = pPddlciParent_
, _pddlciXgafv = Nothing
, _pddlciUploadProtocol = Nothing
, _pddlciAccessToken = Nothing
, _pddlciUploadType = Nothing
, _pddlciPayload = pPddlciPayload_
, _pddlciCallback = Nothing
}
pddlciParent :: Lens' ProjectsDatabasesDocumentsListCollectionIds Text
pddlciParent
= lens _pddlciParent (\ s a -> s{_pddlciParent = a})
pddlciXgafv :: Lens' ProjectsDatabasesDocumentsListCollectionIds (Maybe Xgafv)
pddlciXgafv
= lens _pddlciXgafv (\ s a -> s{_pddlciXgafv = a})
pddlciUploadProtocol :: Lens' ProjectsDatabasesDocumentsListCollectionIds (Maybe Text)
pddlciUploadProtocol
= lens _pddlciUploadProtocol
(\ s a -> s{_pddlciUploadProtocol = a})
pddlciAccessToken :: Lens' ProjectsDatabasesDocumentsListCollectionIds (Maybe Text)
pddlciAccessToken
= lens _pddlciAccessToken
(\ s a -> s{_pddlciAccessToken = a})
pddlciUploadType :: Lens' ProjectsDatabasesDocumentsListCollectionIds (Maybe Text)
pddlciUploadType
= lens _pddlciUploadType
(\ s a -> s{_pddlciUploadType = a})
pddlciPayload :: Lens' ProjectsDatabasesDocumentsListCollectionIds ListCollectionIdsRequest
pddlciPayload
= lens _pddlciPayload
(\ s a -> s{_pddlciPayload = a})
pddlciCallback :: Lens' ProjectsDatabasesDocumentsListCollectionIds (Maybe Text)
pddlciCallback
= lens _pddlciCallback
(\ s a -> s{_pddlciCallback = a})
instance GoogleRequest
ProjectsDatabasesDocumentsListCollectionIds where
type Rs ProjectsDatabasesDocumentsListCollectionIds =
ListCollectionIdsResponse
type Scopes
ProjectsDatabasesDocumentsListCollectionIds
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"]
requestClient
ProjectsDatabasesDocumentsListCollectionIds'{..}
= go _pddlciParent _pddlciXgafv _pddlciUploadProtocol
_pddlciAccessToken
_pddlciUploadType
_pddlciCallback
(Just AltJSON)
_pddlciPayload
fireStoreService
where go
= buildClient
(Proxy ::
Proxy
ProjectsDatabasesDocumentsListCollectionIdsResource)
mempty