catalogs_default_branch
Creates, updates, deletes, gets or lists a catalogs_default_branch
resource.
Overview
Name | catalogs_default_branch |
Type | Resource |
Id | google.retail.catalogs_default_branch |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_catalogs_get_default_branch
Successful response
Name | Datatype | Description |
---|---|---|
branch | string | Full resource name of the branch id currently set as default branch. |
note | string | This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default. |
setTime | string (google-datetime) | The time when this branch is set to default. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_catalogs_get_default_branch | select | projectsId , locationsId , catalogsId | Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
catalogsId | string | |
locationsId | string | |
projectsId | string |
SELECT
examples
- projects_locations_catalogs_get_default_branch
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 projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND catalogsId = '{{ catalogsId }}' -- required;