resources
Creates, updates, deletes, gets or lists a resources resource.
Overview
| Name | resources |
| Type | Resource |
| Id | google.connectors.resources |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
data | string (byte) | The content of the resource. |
metadata | object | Metadata like service latency, etc. |
mimeType | string | The MIME type of the resource. |
| Name | Datatype | Description |
|---|---|---|
name | string | A human-readable name for this resource. |
description | string | A description of what this resource represents. |
mimeType | string | The MIME type of this resource, if known. |
size | string (int64) | The size of the raw resource content, in bytes, if known. |
uri | string | The URI of this resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, connectionsId, resourcesId | Gets a specific resource. | |
list | select | projectsId, locationsId, connectionsId | pageSize, pageToken | Lists all available resources. |
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 |
|---|---|---|
connectionsId | string | |
locationsId | string | |
projectsId | string | |
resourcesId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
Gets a specific resource.
SELECT
data,
metadata,
mimeType
FROM google.connectors.resources
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND connectionsId = '{{ connectionsId }}' -- required
AND resourcesId = '{{ resourcesId }}' -- required
;
Lists all available resources.
SELECT
name,
description,
mimeType,
size,
uri
FROM google.connectors.resources
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND connectionsId = '{{ connectionsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;