google_channel_config
Creates, updates, deletes, gets or lists a google_channel_config
resource.
Overview
Name | google_channel_config |
Type | Resource |
Id | google.eventarc.google_channel_config |
Fields
The following fields are returned by SELECT
queries:
- get_google_channel_config
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Required. The resource name of the config. Must be in the format of, projects/{project}/locations/{location}/googleChannelConfig . In API responses, the config name always includes the projectID, regardless of whether the projectID or projectNumber was provided. |
cryptoKeyName | string | Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern projects/*/locations/*/keyRings/*/cryptoKeys/* . |
labels | object | Optional. Resource labels. |
updateTime | string (google-datetime) | Output only. The last-modified time. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_google_channel_config | select | projectsId , locationsId | Get a GoogleChannelConfig. The name of the GoogleChannelConfig in the response is ALWAYS coded with projectID. | |
update_google_channel_config | update | projectsId , locationsId | updateMask | Update a single GoogleChannelConfig |
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 |
---|---|---|
locationsId | string | |
projectsId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get_google_channel_config
Get a GoogleChannelConfig. The name of the GoogleChannelConfig in the response is ALWAYS coded with projectID.
SELECT
name,
cryptoKeyName,
labels,
updateTime
FROM google.eventarc.google_channel_config
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required;
UPDATE
examples
- update_google_channel_config
Update a single GoogleChannelConfig
UPDATE google.eventarc.google_channel_config
SET
data__name = '{{ name }}',
data__cryptoKeyName = '{{ cryptoKeyName }}',
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
cryptoKeyName,
labels,
updateTime;