users
Creates, updates, deletes, gets or lists a users resource.
Overview
| Name | users |
| Type | Resource |
| Id | google.developerconnect.users |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Resource name of the user, in the format projects/*/locations/*/accountConnectors/*/users/*. |
createTime | string (google-datetime) | Output only. The timestamp when the user was created. |
displayName | string | Output only. Developer Connect automatically converts user identity to some human readable description, e.g., email address. |
lastTokenRequestTime | string (google-datetime) | Output only. The timestamp when the token was last requested. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | projectsId, locationsId, accountConnectorsId | filter, pageToken, pageSize, orderBy | Lists Users in a given project, location, and account_connector. |
delete | delete | projectsId, locationsId, accountConnectorsId, usersId | etag, validateOnly, requestId | Deletes a single User. |
start_oauth_flow | exec | projectsId, locationsId, accountConnectorsId | Starts OAuth flow for an account connector. | |
finish_oauth_flow | exec | projectsId, locationsId, accountConnectorsId | oauthParams.code, oauthParams.ticket, googleOauthParams.scopes, googleOauthParams.ticket, googleOauthParams.versionInfo | Finishes OAuth flow for an account connector. |
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 |
|---|---|---|
accountConnectorsId | string | |
locationsId | string | |
projectsId | string | |
usersId | string | |
etag | string | |
filter | string | |
googleOauthParams.scopes | string | |
googleOauthParams.ticket | string | |
googleOauthParams.versionInfo | string | |
oauthParams.code | string | |
oauthParams.ticket | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
validateOnly | boolean |
SELECT examples
- list
Lists Users in a given project, location, and account_connector.
SELECT
name,
createTime,
displayName,
lastTokenRequestTime
FROM google.developerconnect.users
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND accountConnectorsId = '{{ accountConnectorsId }}' -- required
AND filter = '{{ filter }}'
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
AND orderBy = '{{ orderBy }}'
;
DELETE examples
- delete
Deletes a single User.
DELETE FROM google.developerconnect.users
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND accountConnectorsId = '{{ accountConnectorsId }}' --required
AND usersId = '{{ usersId }}' --required
AND etag = '{{ etag }}'
AND validateOnly = '{{ validateOnly }}'
AND requestId = '{{ requestId }}'
;
Lifecycle Methods
- start_oauth_flow
- finish_oauth_flow
Starts OAuth flow for an account connector.
EXEC google.developerconnect.users.start_oauth_flow
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@accountConnectorsId='{{ accountConnectorsId }}' --required
;
Finishes OAuth flow for an account connector.
EXEC google.developerconnect.users.finish_oauth_flow
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@accountConnectorsId='{{ accountConnectorsId }}' --required,
@oauthParams.code='{{ oauthParams.code }}',
@oauthParams.ticket='{{ oauthParams.ticket }}',
@googleOauthParams.scopes='{{ googleOauthParams.scopes }}',
@googleOauthParams.ticket='{{ googleOauthParams.ticket }}',
@googleOauthParams.versionInfo='{{ googleOauthParams.versionInfo }}'
;