class ProjectsLocationsCatalogsCatalogItems extends Resource (View source)

The "catalogItems" collection of methods.

Typical usage is:

 $recommendationengineService = new Google\Service\RecommendationsAI(...);
 $catalogItems = $recommendationengineService->projects_locations_catalogs_catalogItems;

Methods

create(string $parent, GoogleCloudRecommendationengineV1beta1CatalogItem $postBody, array $optParams = [])

Creates a catalog item. (catalogItems.create)

delete(string $name, array $optParams = [])

Deletes a catalog item. (catalogItems.delete)

get(string $name, array $optParams = [])

Gets a specific catalog item. (catalogItems.get)

import(string $parent, GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest $postBody, array $optParams = [])

Bulk import of multiple catalog items. Request processing may be synchronous.

listProjectsLocationsCatalogsCatalogItems(string $parent, array $optParams = [])

Gets a list of catalog items.

patch(string $name, GoogleCloudRecommendationengineV1beta1CatalogItem $postBody, array $optParams = [])

Updates a catalog item. Partial updating is supported. Non-existing items will be created. (catalogItems.patch)

Details

GoogleCloudRecommendationengineV1beta1CatalogItem create(string $parent, GoogleCloudRecommendationengineV1beta1CatalogItem $postBody, array $optParams = [])

Creates a catalog item. (catalogItems.create)

Parameters

string $parent

Required. The parent catalog resource name, such as projects/locations/global/catalogs/default_catalog.

GoogleCloudRecommendationengineV1beta1CatalogItem $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudRecommendationengineV1beta1CatalogItem

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes a catalog item. (catalogItems.delete)

Parameters

string $name

Required. Full resource name of catalog item, such as pr ojects/locations/global/catalogs/default_catalog/catalogItems/some_catalog_it em_id.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleCloudRecommendationengineV1beta1CatalogItem get(string $name, array $optParams = [])

Gets a specific catalog item. (catalogItems.get)

Parameters

string $name

Required. Full resource name of catalog item, such as pr ojects/locations/global/catalogs/default_catalog/catalogitems/some_catalog_it em_id.

array $optParams

Optional parameters.

Return Value

GoogleCloudRecommendationengineV1beta1CatalogItem

Exceptions

Exception

GoogleLongrunningOperation import(string $parent, GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest $postBody, array $optParams = [])

Bulk import of multiple catalog items. Request processing may be synchronous.

No partial updating supported. Non-existing items will be created. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully updated. (catalogItems.import)

Parameters

string $parent

Required. projects/1234/locations/global/catalogs/default_catalog If no updateMask is specified, requires catalogItems.create permission. If updateMask is specified, requires catalogItems.update permission.

GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse listProjectsLocationsCatalogsCatalogItems(string $parent, array $optParams = [])

Gets a list of catalog items.

(catalogItems.listProjectsLocationsCatalogsCatalogItems)

Parameters

string $parent

Required. The parent catalog resource name, such as projects/locations/global/catalogs/default_catalog.

array $optParams

Optional parameters.

Return Value

GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse

Exceptions

Exception

GoogleCloudRecommendationengineV1beta1CatalogItem patch(string $name, GoogleCloudRecommendationengineV1beta1CatalogItem $postBody, array $optParams = [])

Updates a catalog item. Partial updating is supported. Non-existing items will be created. (catalogItems.patch)

Parameters

string $name

Required. Full resource name of catalog item, such as pr ojects/locations/global/catalogs/default_catalog/catalogItems/some_catalog_it em_id.

GoogleCloudRecommendationengineV1beta1CatalogItem $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudRecommendationengineV1beta1CatalogItem

Exceptions

Exception