Skip to main content

customers

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

Overview

Namecustomers
TypeResource
Idgoogle.cloudcontrolspartner.customers

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Format: organizations/{organization}/locations/{location}/customers/{customer}
customerOnboardingStateobjectOutput only. Container for customer onboarding steps (id: CustomerOnboardingState)
displayNamestringRequired. Display name for the customer
isOnboardedbooleanOutput only. Indicates whether a customer is fully onboarded
organizationDomainstringOutput only. The customer organization domain, extracted from CRM Organization’s display_name field. e.g. "google.com"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectorganizationsId, locationsId, customersIdGets details of a single customer
listselectorganizationsId, locationsIdpageSize, pageToken, filter, orderByLists customers of a partner identified by its Google Cloud organization ID
createinsertorganizationsId, locationsIdcustomerIdCreates a new customer.
patchupdateorganizationsId, locationsId, customersIdupdateMaskUpdate details of a single customer
deletedeleteorganizationsId, locationsId, customersIdDelete details of a single customer

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
customersIdstring
locationsIdstring
organizationsIdstring
customerIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single customer

SELECT
name,
customerOnboardingState,
displayName,
isOnboarded,
organizationDomain
FROM google.cloudcontrolspartner.customers
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND customersId = '{{ customersId }}' -- required;

INSERT examples

Creates a new customer.

INSERT INTO google.cloudcontrolspartner.customers (
data__name,
data__displayName,
organizationsId,
locationsId,
customerId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ organizationsId }}',
'{{ locationsId }}',
'{{ customerId }}'
RETURNING
name,
customerOnboardingState,
displayName,
isOnboarded,
organizationDomain
;

UPDATE examples

Update details of a single customer

UPDATE google.cloudcontrolspartner.customers
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND customersId = '{{ customersId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
customerOnboardingState,
displayName,
isOnboarded,
organizationDomain;

DELETE examples

Delete details of a single customer

DELETE FROM google.cloudcontrolspartner.customers
WHERE organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND customersId = '{{ customersId }}' --required;