Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Search Product resources that consumers have access to, within the scope of the consumer cloud resource hierarchy context.
See: Cloud Private Catalog API Reference for cloudprivatecatalog.folders.products.search
.
Synopsis
- type FoldersProductsSearchResource = "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)))))))))))
- foldersProductsSearch :: Text -> FoldersProductsSearch
- data FoldersProductsSearch
- fpsXgafv :: Lens' FoldersProductsSearch (Maybe Xgafv)
- fpsUploadProtocol :: Lens' FoldersProductsSearch (Maybe Text)
- fpsAccessToken :: Lens' FoldersProductsSearch (Maybe Text)
- fpsUploadType :: Lens' FoldersProductsSearch (Maybe Text)
- fpsResource :: Lens' FoldersProductsSearch Text
- fpsQuery :: Lens' FoldersProductsSearch (Maybe Text)
- fpsPageToken :: Lens' FoldersProductsSearch (Maybe Text)
- fpsPageSize :: Lens' FoldersProductsSearch (Maybe Int32)
- fpsCallback :: Lens' FoldersProductsSearch (Maybe Text)
REST Resource
type FoldersProductsSearchResource = "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))))))))))) Source #
A resource alias for cloudprivatecatalog.folders.products.search
method which the
FoldersProductsSearch
request conforms to.
Creating a Request
foldersProductsSearch Source #
Creates a value of FoldersProductsSearch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FoldersProductsSearch Source #
Search Product resources that consumers have access to, within the scope of the consumer cloud resource hierarchy context.
See: foldersProductsSearch
smart constructor.
Instances
Request Lenses
fpsUploadProtocol :: Lens' FoldersProductsSearch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
fpsAccessToken :: Lens' FoldersProductsSearch (Maybe Text) Source #
OAuth access token.
fpsUploadType :: Lens' FoldersProductsSearch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
fpsResource :: Lens' FoldersProductsSearch Text Source #
Required. The name of the resource context. See SearchCatalogsRequest.resource for details.
fpsQuery :: Lens' FoldersProductsSearch (Maybe Text) Source #
The query to filter the products. The supported queries are: * List products of all catalogs: empty * List products under a catalog: `parent=catalogs/{catalog_id}` * Get a product by name: `name=catalogs/{catalog_id}/products/{product_id}`
fpsPageToken :: Lens' FoldersProductsSearch (Maybe Text) Source #
A pagination token returned from a previous call to SearchProducts that indicates where this listing should continue from. This field is optional.
fpsPageSize :: Lens' FoldersProductsSearch (Maybe Int32) Source #
The maximum number of entries that are requested.
fpsCallback :: Lens' FoldersProductsSearch (Maybe Text) Source #
JSONP