Skip to main content

connectors

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

Overview

Nameconnectors
TypeResource
Idfirebase.dataconnect.connectors

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The relative resource name of the connector, in the format: projects/{project}/locations/{location}/services/{service}/connectors/{connector}
annotationsobjectOptional. Stores small amounts of arbitrary data.
createTimestring (google-datetime)Output only. [Output only] Create time stamp.
displayNamestringOptional. Mutable human-readable name. 63 character limit.
etagstringOutput only. 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. AIP-154
labelsobjectOptional. Labels as key value pairs.
reconcilingbooleanOutput only. A field that if true, indicates that the system is working to compile and deploy the connector.
sourceobjectRequired. The source files that comprise the connector. (id: Source)
uidstringOutput only. System-assigned, unique identifier.
updateTimestring (google-datetime)Output only. [Output only] Update time stamp.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, servicesId, connectorsIdGets details of a single Connector.
listselectprojectsId, locationsId, servicesIdpageSize, pageToken, filter, orderByLists Connectors in a given project and location.
createinsertprojectsId, locationsId, servicesIdconnectorId, requestId, validateOnlyCreates a new Connector in a given project and location. The operations are validated against and must be compatible with the active schema. If the operations and schema are not compatible or if the schema is not present, this will result in an error.
patchupdateprojectsId, locationsId, servicesId, connectorsIdupdateMask, requestId, allowMissing, validateOnlyUpdates the parameters of a single Connector, and creates a new ConnectorRevision with the updated Connector. The operations are validated against and must be compatible with the live schema. If the operations and schema are not compatible or if the schema is not present, this will result in an error.
deletedeleteprojectsId, locationsId, servicesId, connectorsIdforce, etag, requestId, allowMissing, validateOnlyDeletes a single Connector.
execute_queryexecprojectsId, locationsId, servicesId, connectorsIdExecute a predefined query in a Connector.
execute_mutationexecprojectsId, locationsId, servicesId, connectorsIdExecute a predefined mutation in a 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.

NameDatatypeDescription
connectorsIdstring
locationsIdstring
projectsIdstring
servicesIdstring
allowMissingboolean
connectorIdstring
etagstring
filterstring
forceboolean
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets details of a single Connector.

SELECT
name,
annotations,
createTime,
displayName,
etag,
labels,
reconciling,
source,
uid,
updateTime
FROM firebase.dataconnect.connectors
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND servicesId = '{{ servicesId }}' -- required
AND connectorsId = '{{ connectorsId }}' -- required;

INSERT examples

Creates a new Connector in a given project and location. The operations are validated against and must be compatible with the active schema. If the operations and schema are not compatible or if the schema is not present, this will result in an error.

INSERT INTO firebase.dataconnect.connectors (
data__name,
data__labels,
data__annotations,
data__source,
data__displayName,
projectsId,
locationsId,
servicesId,
connectorId,
requestId,
validateOnly
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ annotations }}',
'{{ source }}',
'{{ displayName }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ servicesId }}',
'{{ connectorId }}',
'{{ requestId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single Connector, and creates a new ConnectorRevision with the updated Connector. The operations are validated against and must be compatible with the live schema. If the operations and schema are not compatible or if the schema is not present, this will result in an error.

UPDATE firebase.dataconnect.connectors
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__annotations = '{{ annotations }}',
data__source = '{{ source }}',
data__displayName = '{{ displayName }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND servicesId = '{{ servicesId }}' --required
AND connectorsId = '{{ connectorsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
AND allowMissing = {{ allowMissing}}
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single Connector.

DELETE FROM firebase.dataconnect.connectors
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND servicesId = '{{ servicesId }}' --required
AND connectorsId = '{{ connectorsId }}' --required
AND force = '{{ force }}'
AND etag = '{{ etag }}'
AND requestId = '{{ requestId }}'
AND allowMissing = '{{ allowMissing }}'
AND validateOnly = '{{ validateOnly }}';

Lifecycle Methods

Execute a predefined query in a Connector.

EXEC firebase.dataconnect.connectors.execute_query 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@servicesId='{{ servicesId }}' --required,
@connectorsId='{{ connectorsId }}' --required
@@json=
'{
"operationName": "{{ operationName }}",
"variables": "{{ variables }}"
}';