{-# 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.Organizations.Products.Search
(
OrganizationsProductsSearchResource
, organizationsProductsSearch
, OrganizationsProductsSearch
, opsXgafv
, opsUploadProtocol
, opsAccessToken
, opsUploadType
, opsResource
, opsQuery
, opsPageToken
, opsPageSize
, opsCallback
) where
import Network.Google.CloudPrivateCatalog.Types
import Network.Google.Prelude
type OrganizationsProductsSearchResource =
"v1beta1" :>
Capture "resource" Text :>
"products: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]
GoogleCloudPrivatecatalogV1beta1SearchProductsResponse
data OrganizationsProductsSearch =
OrganizationsProductsSearch'
{ _opsXgafv :: !(Maybe Xgafv)
, _opsUploadProtocol :: !(Maybe Text)
, _opsAccessToken :: !(Maybe Text)
, _opsUploadType :: !(Maybe Text)
, _opsResource :: !Text
, _opsQuery :: !(Maybe Text)
, _opsPageToken :: !(Maybe Text)
, _opsPageSize :: !(Maybe (Textual Int32))
, _opsCallback :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
organizationsProductsSearch
:: Text
-> OrganizationsProductsSearch
organizationsProductsSearch pOpsResource_ =
OrganizationsProductsSearch'
{ _opsXgafv = Nothing
, _opsUploadProtocol = Nothing
, _opsAccessToken = Nothing
, _opsUploadType = Nothing
, _opsResource = pOpsResource_
, _opsQuery = Nothing
, _opsPageToken = Nothing
, _opsPageSize = Nothing
, _opsCallback = Nothing
}
opsXgafv :: Lens' OrganizationsProductsSearch (Maybe Xgafv)
opsXgafv = lens _opsXgafv (\ s a -> s{_opsXgafv = a})
opsUploadProtocol :: Lens' OrganizationsProductsSearch (Maybe Text)
opsUploadProtocol
= lens _opsUploadProtocol
(\ s a -> s{_opsUploadProtocol = a})
opsAccessToken :: Lens' OrganizationsProductsSearch (Maybe Text)
opsAccessToken
= lens _opsAccessToken
(\ s a -> s{_opsAccessToken = a})
opsUploadType :: Lens' OrganizationsProductsSearch (Maybe Text)
opsUploadType
= lens _opsUploadType
(\ s a -> s{_opsUploadType = a})
opsResource :: Lens' OrganizationsProductsSearch Text
opsResource
= lens _opsResource (\ s a -> s{_opsResource = a})
opsQuery :: Lens' OrganizationsProductsSearch (Maybe Text)
opsQuery = lens _opsQuery (\ s a -> s{_opsQuery = a})
opsPageToken :: Lens' OrganizationsProductsSearch (Maybe Text)
opsPageToken
= lens _opsPageToken (\ s a -> s{_opsPageToken = a})
opsPageSize :: Lens' OrganizationsProductsSearch (Maybe Int32)
opsPageSize
= lens _opsPageSize (\ s a -> s{_opsPageSize = a}) .
mapping _Coerce
opsCallback :: Lens' OrganizationsProductsSearch (Maybe Text)
opsCallback
= lens _opsCallback (\ s a -> s{_opsCallback = a})
instance GoogleRequest OrganizationsProductsSearch
where
type Rs OrganizationsProductsSearch =
GoogleCloudPrivatecatalogV1beta1SearchProductsResponse
type Scopes OrganizationsProductsSearch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OrganizationsProductsSearch'{..}
= go _opsResource _opsXgafv _opsUploadProtocol
_opsAccessToken
_opsUploadType
_opsQuery
_opsPageToken
_opsPageSize
_opsCallback
(Just AltJSON)
cloudPrivateCatalogService
where go
= buildClient
(Proxy :: Proxy OrganizationsProductsSearchResource)
mempty