Skip to main content

account_connectors

Creates, updates, deletes, gets or lists an account_connectors resource.

Overview

Nameaccount_connectors
TypeResource
Idgoogle.developerconnect.account_connectors

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
annotationsobjectOptional. Allows users to store small amounts of arbitrary data.
createTimestring (google-datetime)Output only. The timestamp when the accountConnector was created.
etagstringOptional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labelsobjectOptional. Labels as key value pairs
oauthStartUristringOutput only. Start OAuth flow by clicking on this URL.
providerOauthConfigobjectProvider OAuth config. (id: ProviderOAuthConfig)
updateTimestring (google-datetime)Output only. The timestamp when the accountConnector was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, accountConnectorsIdGets details of a single AccountConnector.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists AccountConnectors in a given project and location.
createinsertprojectsId, locationsIdaccountConnectorId, requestId, validateOnlyCreates a new AccountConnector in a given project and location.
patchupdateprojectsId, locationsId, accountConnectorsIdupdateMask, requestId, allowMissing, validateOnlyUpdates the parameters of a single AccountConnector.
deletedeleteprojectsId, locationsId, accountConnectorsIdrequestId, validateOnly, etag, forceDeletes a single AccountConnector.

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
accountConnectorsIdstring
locationsIdstring
projectsIdstring
accountConnectorIdstring
allowMissingboolean
etagstring
filterstring
forceboolean
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets details of a single AccountConnector.

SELECT
name,
annotations,
createTime,
etag,
labels,
oauthStartUri,
providerOauthConfig,
updateTime
FROM google.developerconnect.account_connectors
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND accountConnectorsId = '{{ accountConnectorsId }}' -- required;

INSERT examples

Creates a new AccountConnector in a given project and location.

INSERT INTO google.developerconnect.account_connectors (
data__providerOauthConfig,
data__name,
data__annotations,
data__etag,
data__labels,
projectsId,
locationsId,
accountConnectorId,
requestId,
validateOnly
)
SELECT
'{{ providerOauthConfig }}',
'{{ name }}',
'{{ annotations }}',
'{{ etag }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ accountConnectorId }}',
'{{ requestId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single AccountConnector.

UPDATE google.developerconnect.account_connectors
SET
data__providerOauthConfig = '{{ providerOauthConfig }}',
data__name = '{{ name }}',
data__annotations = '{{ annotations }}',
data__etag = '{{ etag }}',
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND accountConnectorsId = '{{ accountConnectorsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
AND allowMissing = {{ allowMissing}}
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single AccountConnector.

DELETE FROM google.developerconnect.account_connectors
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND accountConnectorsId = '{{ accountConnectorsId }}' --required
AND requestId = '{{ requestId }}'
AND validateOnly = '{{ validateOnly }}'
AND etag = '{{ etag }}'
AND force = '{{ force }}';