{-# 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.Datastore.Projects.Indexes.Get
(
ProjectsIndexesGetResource
, projectsIndexesGet
, ProjectsIndexesGet
, pigXgafv
, pigUploadProtocol
, pigAccessToken
, pigUploadType
, pigProjectId
, pigIndexId
, pigCallback
) where
import Network.Google.Datastore.Types
import Network.Google.Prelude
type ProjectsIndexesGetResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"indexes" :>
Capture "indexId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GoogleDatastoreAdminV1Index
data ProjectsIndexesGet = ProjectsIndexesGet'
{ _pigXgafv :: !(Maybe Xgafv)
, _pigUploadProtocol :: !(Maybe Text)
, _pigAccessToken :: !(Maybe Text)
, _pigUploadType :: !(Maybe Text)
, _pigProjectId :: !Text
, _pigIndexId :: !Text
, _pigCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIndexesGet
:: Text
-> Text
-> ProjectsIndexesGet
projectsIndexesGet pPigProjectId_ pPigIndexId_ =
ProjectsIndexesGet'
{ _pigXgafv = Nothing
, _pigUploadProtocol = Nothing
, _pigAccessToken = Nothing
, _pigUploadType = Nothing
, _pigProjectId = pPigProjectId_
, _pigIndexId = pPigIndexId_
, _pigCallback = Nothing
}
pigXgafv :: Lens' ProjectsIndexesGet (Maybe Xgafv)
pigXgafv = lens _pigXgafv (\ s a -> s{_pigXgafv = a})
pigUploadProtocol :: Lens' ProjectsIndexesGet (Maybe Text)
pigUploadProtocol
= lens _pigUploadProtocol
(\ s a -> s{_pigUploadProtocol = a})
pigAccessToken :: Lens' ProjectsIndexesGet (Maybe Text)
pigAccessToken
= lens _pigAccessToken
(\ s a -> s{_pigAccessToken = a})
pigUploadType :: Lens' ProjectsIndexesGet (Maybe Text)
pigUploadType
= lens _pigUploadType
(\ s a -> s{_pigUploadType = a})
pigProjectId :: Lens' ProjectsIndexesGet Text
pigProjectId
= lens _pigProjectId (\ s a -> s{_pigProjectId = a})
pigIndexId :: Lens' ProjectsIndexesGet Text
pigIndexId
= lens _pigIndexId (\ s a -> s{_pigIndexId = a})
pigCallback :: Lens' ProjectsIndexesGet (Maybe Text)
pigCallback
= lens _pigCallback (\ s a -> s{_pigCallback = a})
instance GoogleRequest ProjectsIndexesGet where
type Rs ProjectsIndexesGet =
GoogleDatastoreAdminV1Index
type Scopes ProjectsIndexesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"]
requestClient ProjectsIndexesGet'{..}
= go _pigProjectId _pigIndexId _pigXgafv
_pigUploadProtocol
_pigAccessToken
_pigUploadType
_pigCallback
(Just AltJSON)
datastoreService
where go
= buildClient
(Proxy :: Proxy ProjectsIndexesGetResource)
mempty