class ProjectsLocationsCatalogsAttributesConfig extends Resource (View source)

The "attributesConfig" collection of methods.

Typical usage is:

 $retailService = new Google\Service\CloudRetail(...);
 $attributesConfig = $retailService->projects_locations_catalogs_attributesConfig;

Methods

addCatalogAttribute(string $attributesConfig, GoogleCloudRetailV2AddCatalogAttributeRequest $postBody, array $optParams = [])

Adds the specified CatalogAttribute to the AttributesConfig. If the CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.

removeCatalogAttribute(string $attributesConfig, GoogleCloudRetailV2RemoveCatalogAttributeRequest $postBody, array $optParams = [])

Removes the specified CatalogAttribute from the AttributesConfig. If the CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.

replaceCatalogAttribute(string $attributesConfig, GoogleCloudRetailV2ReplaceCatalogAttributeRequest $postBody, array $optParams = [])

Replaces the specified CatalogAttribute in the AttributesConfig by updating the catalog attribute with the same CatalogAttribute.key. If the CatalogAttribute to replace does not exist, a NOT_FOUND error is returned.

Details

GoogleCloudRetailV2AttributesConfig addCatalogAttribute(string $attributesConfig, GoogleCloudRetailV2AddCatalogAttributeRequest $postBody, array $optParams = [])

Adds the specified CatalogAttribute to the AttributesConfig. If the CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.

(attributesConfig.addCatalogAttribute)

Parameters

string $attributesConfig

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{ca talog_id}/attributesConfig

GoogleCloudRetailV2AddCatalogAttributeRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudRetailV2AttributesConfig

Exceptions

Exception

GoogleCloudRetailV2AttributesConfig removeCatalogAttribute(string $attributesConfig, GoogleCloudRetailV2RemoveCatalogAttributeRequest $postBody, array $optParams = [])

Removes the specified CatalogAttribute from the AttributesConfig. If the CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.

(attributesConfig.removeCatalogAttribute)

Parameters

string $attributesConfig

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{ca talog_id}/attributesConfig

GoogleCloudRetailV2RemoveCatalogAttributeRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudRetailV2AttributesConfig

Exceptions

Exception

GoogleCloudRetailV2AttributesConfig replaceCatalogAttribute(string $attributesConfig, GoogleCloudRetailV2ReplaceCatalogAttributeRequest $postBody, array $optParams = [])

Replaces the specified CatalogAttribute in the AttributesConfig by updating the catalog attribute with the same CatalogAttribute.key. If the CatalogAttribute to replace does not exist, a NOT_FOUND error is returned.

(attributesConfig.replaceCatalogAttribute)

Parameters

string $attributesConfig

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{ca talog_id}/attributesConfig

GoogleCloudRetailV2ReplaceCatalogAttributeRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudRetailV2AttributesConfig

Exceptions

Exception