Retail API (retail:v2)

2022-03-22

2 new methods

Additions

    Methods
  • retail.projects.locations.catalogs.servingConfigs.search

      Description: Performs a search. This feature is only available for users who have Retail Search enabled. Please submit a form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using Retail Search.

      HTTP Method: POST

      Parameter Order: placement

      Parameters:

        placement

          Type: string

          Description: Required. The resource name of the search engine placement, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search` or `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` This field is used to identify the serving configuration name and the set of models that will be used to make the search.

          Pattern: ^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$

          Required: Yes

          Location: path

      Flat Path: v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/servingConfigs/{servingConfigsId}:search

      Scopes: https://www.googleapis.com/auth/cloud-platform

      Path: v2/{+placement}:search

  • retail.projects.locations.catalogs.servingConfigs.predict

      Scopes: https://www.googleapis.com/auth/cloud-platform

      Parameters:

        placement

          Type: string

          Location: path

          Pattern: ^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$

          Description: Required. Full resource name of the format: {name=projects/*/locations/global/catalogs/default_catalog/placements/*} or {name=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*} The ID of the Recommendations AI placement. Before you can request predictions from your model, you must create at least one placement for it. For more information, see [Managing placements](https://cloud.google.com/retail/recommendations-ai/docs/manage-placements). The full list of available placements can be seen at https://console.cloud.google.com/recommendation/catalogs/default_catalog/placements

          Required: Yes

      Description: Makes a recommendation prediction.

      Path: v2/{+placement}:predict

      Parameter Order: placement

      Flat Path: v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/servingConfigs/{servingConfigsId}:predict

      HTTP Method: POST