connectors
Creates, updates, deletes, gets or lists a connectors
resource.
Overview
Name | connectors |
Type | Resource |
Id | firebase.dataconnect.connectors |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The relative resource name of the connector, in the format: projects/{project}/locations/{location}/services/{service}/connectors/{connector} |
annotations | object | Optional. Stores small amounts of arbitrary data. |
createTime | string (google-datetime) | Output only. [Output only] Create time stamp. |
displayName | string | Optional. Mutable human-readable name. 63 character limit. |
etag | string | Output 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 |
labels | object | Optional. Labels as key value pairs. |
reconciling | boolean | Output only. A field that if true, indicates that the system is working to compile and deploy the connector. |
source | object | Required. The source files that comprise the connector. (id: Source) |
uid | string | Output only. System-assigned, unique identifier. |
updateTime | string (google-datetime) | Output only. [Output only] Update time stamp. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The relative resource name of the connector, in the format: projects/{project}/locations/{location}/services/{service}/connectors/{connector} |
annotations | object | Optional. Stores small amounts of arbitrary data. |
createTime | string (google-datetime) | Output only. [Output only] Create time stamp. |
displayName | string | Optional. Mutable human-readable name. 63 character limit. |
etag | string | Output 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 |
labels | object | Optional. Labels as key value pairs. |
reconciling | boolean | Output only. A field that if true, indicates that the system is working to compile and deploy the connector. |
source | object | Required. The source files that comprise the connector. (id: Source) |
uid | string | Output only. System-assigned, unique identifier. |
updateTime | string (google-datetime) | Output only. [Output only] Update time stamp. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , servicesId , connectorsId | Gets details of a single Connector. | |
list | select | projectsId , locationsId , servicesId | pageSize , pageToken , filter , orderBy | Lists Connectors in a given project and location. |
create | insert | projectsId , locationsId , servicesId | connectorId , requestId , validateOnly | 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. |
patch | update | projectsId , locationsId , servicesId , connectorsId | updateMask , requestId , allowMissing , validateOnly | 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. |
delete | delete | projectsId , locationsId , servicesId , connectorsId | force , etag , requestId , allowMissing , validateOnly | Deletes a single Connector. |
execute_query | exec | projectsId , locationsId , servicesId , connectorsId | Execute a predefined query in a Connector. | |
execute_mutation | exec | projectsId , locationsId , servicesId , connectorsId | Execute 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.
Name | Datatype | Description |
---|---|---|
connectorsId | string | |
locationsId | string | |
projectsId | string | |
servicesId | string | |
allowMissing | boolean | |
connectorId | string | |
etag | string | |
filter | string | |
force | boolean | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
updateMask | string (google-fieldmask) | |
validateOnly | boolean |
SELECT
examples
- get
- list
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;
Lists Connectors in a given project and location.
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 pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: connectors
props:
- name: projectsId
value: string
description: Required parameter for the connectors resource.
- name: locationsId
value: string
description: Required parameter for the connectors resource.
- name: servicesId
value: string
description: Required parameter for the connectors resource.
- name: name
value: string
description: >
Identifier. The relative resource name of the connector, in the format: ``` projects/{project}/locations/{location}/services/{service}/connectors/{connector} ```
- name: labels
value: object
description: >
Optional. Labels as key value pairs.
- name: annotations
value: object
description: >
Optional. Stores small amounts of arbitrary data.
- name: source
value: object
description: >
Required. The source files that comprise the connector.
- name: displayName
value: string
description: >
Optional. Mutable human-readable name. 63 character limit.
- name: connectorId
value: string
- name: requestId
value: string
- name: validateOnly
value: boolean
UPDATE
examples
- patch
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
- delete
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_query
- execute_mutation
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 }}"
}';
Execute a predefined mutation in a Connector.
EXEC firebase.dataconnect.connectors.execute_mutation
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@servicesId='{{ servicesId }}' --required,
@connectorsId='{{ connectorsId }}' --required
@@json=
'{
"operationName": "{{ operationName }}",
"variables": "{{ variables }}"
}';