Skip to main content

brands

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

Overview

Namebrands
TypeResource
Idgoogle.iap.brands

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier of the brand. NOTE: GCP project number achieves the same brand identification purpose as only one brand per project can be created.
applicationTitlestringApplication name displayed on OAuth consent screen.
orgInternalOnlybooleanOutput only. Whether the brand is only intended for usage inside the G Suite organization only.
supportEmailstringSupport email displayed on the OAuth consent screen.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, brandsIdRetrieves the OAuth brand of the project.
listselectprojectsIdLists the existing brands for the project.
createinsertprojectsIdConstructs a new OAuth brand for the project if one does not exist. The created brand is "internal only", meaning that OAuth clients created under it only accept requests from users who belong to the same Google Workspace organization as the project. The brand is created in an un-reviewed status. NOTE: The "internal only" status can be manually changed in the Google Cloud Console. Requires that a brand does not already exist for the project, and that the specified support email is owned by the caller.

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.

NameDatatypeDescription
brandsIdstring
projectsIdstring

SELECT examples

Retrieves the OAuth brand of the project.

SELECT
name,
applicationTitle,
orgInternalOnly,
supportEmail
FROM google.iap.brands
WHERE projectsId = '{{ projectsId }}' -- required
AND brandsId = '{{ brandsId }}' -- required;

INSERT examples

Constructs a new OAuth brand for the project if one does not exist. The created brand is "internal only", meaning that OAuth clients created under it only accept requests from users who belong to the same Google Workspace organization as the project. The brand is created in an un-reviewed status. NOTE: The "internal only" status can be manually changed in the Google Cloud Console. Requires that a brand does not already exist for the project, and that the specified support email is owned by the caller.

INSERT INTO google.iap.brands (
data__supportEmail,
data__applicationTitle,
projectsId
)
SELECT
'{{ supportEmail }}',
'{{ applicationTitle }}',
'{{ projectsId }}'
RETURNING
name,
applicationTitle,
orgInternalOnly,
supportEmail
;