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.projects.products.search
.
Synopsis
- type ProjectsProductsSearchResource = "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)))))))))))
- projectsProductsSearch :: Text -> ProjectsProductsSearch
- data ProjectsProductsSearch
- ppsXgafv :: Lens' ProjectsProductsSearch (Maybe Xgafv)
- ppsUploadProtocol :: Lens' ProjectsProductsSearch (Maybe Text)
- ppsAccessToken :: Lens' ProjectsProductsSearch (Maybe Text)
- ppsUploadType :: Lens' ProjectsProductsSearch (Maybe Text)
- ppsResource :: Lens' ProjectsProductsSearch Text
- ppsQuery :: Lens' ProjectsProductsSearch (Maybe Text)
- ppsPageToken :: Lens' ProjectsProductsSearch (Maybe Text)
- ppsPageSize :: Lens' ProjectsProductsSearch (Maybe Int32)
- ppsCallback :: Lens' ProjectsProductsSearch (Maybe Text)
REST Resource
type ProjectsProductsSearchResource = "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.projects.products.search
method which the
ProjectsProductsSearch
request conforms to.
Creating a Request
projectsProductsSearch Source #
Creates a value of ProjectsProductsSearch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsProductsSearch Source #
Search Product resources that consumers have access to, within the scope of the consumer cloud resource hierarchy context.
See: projectsProductsSearch
smart constructor.
Instances
Request Lenses
ppsUploadProtocol :: Lens' ProjectsProductsSearch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ppsAccessToken :: Lens' ProjectsProductsSearch (Maybe Text) Source #
OAuth access token.
ppsUploadType :: Lens' ProjectsProductsSearch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ppsResource :: Lens' ProjectsProductsSearch Text Source #
Required. The name of the resource context. See SearchCatalogsRequest.resource for details.
ppsQuery :: Lens' ProjectsProductsSearch (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}`
ppsPageToken :: Lens' ProjectsProductsSearch (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.
ppsPageSize :: Lens' ProjectsProductsSearch (Maybe Int32) Source #
The maximum number of entries that are requested.
ppsCallback :: Lens' ProjectsProductsSearch (Maybe Text) Source #
JSONP