{-# 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.CloudPrivateCatalog.Folders.Catalogs.Search
(
FoldersCatalogsSearchResource
, foldersCatalogsSearch
, FoldersCatalogsSearch
, fcsXgafv
, fcsUploadProtocol
, fcsAccessToken
, fcsUploadType
, fcsResource
, fcsQuery
, fcsPageToken
, fcsPageSize
, fcsCallback
) where
import Network.Google.CloudPrivateCatalog.Types
import Network.Google.Prelude
type FoldersCatalogsSearchResource =
"v1beta1" :>
Capture "resource" Text :>
"catalogs:search" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "query" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON]
GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse
data FoldersCatalogsSearch =
FoldersCatalogsSearch'
{ _fcsXgafv :: !(Maybe Xgafv)
, _fcsUploadProtocol :: !(Maybe Text)
, _fcsAccessToken :: !(Maybe Text)
, _fcsUploadType :: !(Maybe Text)
, _fcsResource :: !Text
, _fcsQuery :: !(Maybe Text)
, _fcsPageToken :: !(Maybe Text)
, _fcsPageSize :: !(Maybe (Textual Int32))
, _fcsCallback :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
foldersCatalogsSearch
:: Text
-> FoldersCatalogsSearch
foldersCatalogsSearch pFcsResource_ =
FoldersCatalogsSearch'
{ _fcsXgafv = Nothing
, _fcsUploadProtocol = Nothing
, _fcsAccessToken = Nothing
, _fcsUploadType = Nothing
, _fcsResource = pFcsResource_
, _fcsQuery = Nothing
, _fcsPageToken = Nothing
, _fcsPageSize = Nothing
, _fcsCallback = Nothing
}
fcsXgafv :: Lens' FoldersCatalogsSearch (Maybe Xgafv)
fcsXgafv = lens _fcsXgafv (\ s a -> s{_fcsXgafv = a})
fcsUploadProtocol :: Lens' FoldersCatalogsSearch (Maybe Text)
fcsUploadProtocol
= lens _fcsUploadProtocol
(\ s a -> s{_fcsUploadProtocol = a})
fcsAccessToken :: Lens' FoldersCatalogsSearch (Maybe Text)
fcsAccessToken
= lens _fcsAccessToken
(\ s a -> s{_fcsAccessToken = a})
fcsUploadType :: Lens' FoldersCatalogsSearch (Maybe Text)
fcsUploadType
= lens _fcsUploadType
(\ s a -> s{_fcsUploadType = a})
fcsResource :: Lens' FoldersCatalogsSearch Text
fcsResource
= lens _fcsResource (\ s a -> s{_fcsResource = a})
fcsQuery :: Lens' FoldersCatalogsSearch (Maybe Text)
fcsQuery = lens _fcsQuery (\ s a -> s{_fcsQuery = a})
fcsPageToken :: Lens' FoldersCatalogsSearch (Maybe Text)
fcsPageToken
= lens _fcsPageToken (\ s a -> s{_fcsPageToken = a})
fcsPageSize :: Lens' FoldersCatalogsSearch (Maybe Int32)
fcsPageSize
= lens _fcsPageSize (\ s a -> s{_fcsPageSize = a}) .
mapping _Coerce
fcsCallback :: Lens' FoldersCatalogsSearch (Maybe Text)
fcsCallback
= lens _fcsCallback (\ s a -> s{_fcsCallback = a})
instance GoogleRequest FoldersCatalogsSearch where
type Rs FoldersCatalogsSearch =
GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse
type Scopes FoldersCatalogsSearch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient FoldersCatalogsSearch'{..}
= go _fcsResource _fcsXgafv _fcsUploadProtocol
_fcsAccessToken
_fcsUploadType
_fcsQuery
_fcsPageToken
_fcsPageSize
_fcsCallback
(Just AltJSON)
cloudPrivateCatalogService
where go
= buildClient
(Proxy :: Proxy FoldersCatalogsSearchResource)
mempty