Skip to main content

catalogs_default_branch

Creates, updates, deletes, gets or lists a catalogs_default_branch resource.

Overview

Namecatalogs_default_branch
TypeResource
Idgoogle.retail.catalogs_default_branch

Fields

NameDatatypeDescription
branchstringFull resource name of the branch id currently set as default branch.
notestringThis corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.
setTimestringThe time when this branch is set to default.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_catalogs_get_default_branchSELECTcatalogsId, locationsId, projectsIdGet which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.

SELECT examples

Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.

SELECT
branch,
note,
setTime
FROM google.retail.catalogs_default_branch
WHERE catalogsId = '{{ catalogsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';