pipelines
Creates, updates, deletes, gets or lists a pipelines
resource.
Overview
Name | pipelines |
Type | Resource |
Id | google.eventarc.pipelines |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the Pipeline. Must be unique within the location of the project and must be in projects/{project}/locations/{location}/pipelines/{pipeline} format. |
annotations | object | Optional. User-defined annotations. See https://google.aip.dev/128#annotations. |
createTime | string (google-datetime) | Output only. The creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". |
cryptoKeyName | string | Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt the event data. If not set, an internal Google-owned key will be used to encrypt messages. It must match the pattern "projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}". |
destinations | array | Required. List of destinations to which messages will be forwarded. Currently, exactly one destination is supported per Pipeline. |
displayName | string | Optional. Display name of resource. |
etag | string | Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding. |
inputPayloadFormat | object | Optional. The payload format expected for the messages received by the Pipeline. If input_payload_format is set then any messages not matching this format will be treated as persistent errors. If input_payload_format is not set, then the message data will be treated as an opaque binary and no output format can be set on the Pipeline through the Pipeline.Destination.output_payload_format field. Any Mediations on the Pipeline that involve access to the data field will fail as persistent errors. (id: GoogleCloudEventarcV1PipelineMessagePayloadFormat) |
labels | object | Optional. User labels attached to the Pipeline that can be used to group resources. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. |
loggingConfig | object | Optional. Config to control Platform Logging for Pipelines. (id: LoggingConfig) |
mediations | array | Optional. List of mediation operations to be performed on the message. Currently, only one Transformation operation is allowed in each Pipeline. |
retryPolicy | object | Optional. The retry policy to use in the pipeline. (id: GoogleCloudEventarcV1PipelineRetryPolicy) |
satisfiesPzs | boolean | Output only. Whether or not this Pipeline satisfies the requirements of physical zone separation |
uid | string | Output only. Server-assigned unique identifier for the Pipeline. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. |
updateTime | string (google-datetime) | Output only. The last-modified time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the Pipeline. Must be unique within the location of the project and must be in projects/{project}/locations/{location}/pipelines/{pipeline} format. |
annotations | object | Optional. User-defined annotations. See https://google.aip.dev/128#annotations. |
createTime | string (google-datetime) | Output only. The creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". |
cryptoKeyName | string | Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt the event data. If not set, an internal Google-owned key will be used to encrypt messages. It must match the pattern "projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}". |
destinations | array | Required. List of destinations to which messages will be forwarded. Currently, exactly one destination is supported per Pipeline. |
displayName | string | Optional. Display name of resource. |
etag | string | Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding. |
inputPayloadFormat | object | Optional. The payload format expected for the messages received by the Pipeline. If input_payload_format is set then any messages not matching this format will be treated as persistent errors. If input_payload_format is not set, then the message data will be treated as an opaque binary and no output format can be set on the Pipeline through the Pipeline.Destination.output_payload_format field. Any Mediations on the Pipeline that involve access to the data field will fail as persistent errors. (id: GoogleCloudEventarcV1PipelineMessagePayloadFormat) |
labels | object | Optional. User labels attached to the Pipeline that can be used to group resources. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. |
loggingConfig | object | Optional. Config to control Platform Logging for Pipelines. (id: LoggingConfig) |
mediations | array | Optional. List of mediation operations to be performed on the message. Currently, only one Transformation operation is allowed in each Pipeline. |
retryPolicy | object | Optional. The retry policy to use in the pipeline. (id: GoogleCloudEventarcV1PipelineRetryPolicy) |
satisfiesPzs | boolean | Output only. Whether or not this Pipeline satisfies the requirements of physical zone separation |
uid | string | Output only. Server-assigned unique identifier for the Pipeline. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. |
updateTime | string (google-datetime) | Output only. The last-modified time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , pipelinesId | Get a single Pipeline. | |
list | select | projectsId , locationsId | pageSize , pageToken , orderBy , filter | List pipelines. |
create | insert | projectsId , locationsId | pipelineId , validateOnly | Create a new Pipeline in a particular project and location. |
patch | update | projectsId , locationsId , pipelinesId | updateMask , allowMissing , validateOnly | Update a single pipeline. |
delete | delete | projectsId , locationsId , pipelinesId | etag , allowMissing , validateOnly | Delete a single pipeline. |
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 | |
pipelinesId | string | |
projectsId | string | |
allowMissing | boolean | |
etag | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
pipelineId | string | |
updateMask | string (google-fieldmask) | |
validateOnly | boolean |
SELECT
examples
- get
- list
Get a single Pipeline.
SELECT
name,
annotations,
createTime,
cryptoKeyName,
destinations,
displayName,
etag,
inputPayloadFormat,
labels,
loggingConfig,
mediations,
retryPolicy,
satisfiesPzs,
uid,
updateTime
FROM google.eventarc.pipelines
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pipelinesId = '{{ pipelinesId }}' -- required;
List pipelines.
SELECT
name,
annotations,
createTime,
cryptoKeyName,
destinations,
displayName,
etag,
inputPayloadFormat,
labels,
loggingConfig,
mediations,
retryPolicy,
satisfiesPzs,
uid,
updateTime
FROM google.eventarc.pipelines
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND orderBy = '{{ orderBy }}'
AND filter = '{{ filter }}';
INSERT
examples
- create
- Manifest
Create a new Pipeline in a particular project and location.
INSERT INTO google.eventarc.pipelines (
data__name,
data__labels,
data__annotations,
data__displayName,
data__destinations,
data__mediations,
data__cryptoKeyName,
data__inputPayloadFormat,
data__loggingConfig,
data__retryPolicy,
projectsId,
locationsId,
pipelineId,
validateOnly
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ annotations }}',
'{{ displayName }}',
'{{ destinations }}',
'{{ mediations }}',
'{{ cryptoKeyName }}',
'{{ inputPayloadFormat }}',
'{{ loggingConfig }}',
'{{ retryPolicy }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ pipelineId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: pipelines
props:
- name: projectsId
value: string
description: Required parameter for the pipelines resource.
- name: locationsId
value: string
description: Required parameter for the pipelines resource.
- name: name
value: string
description: >
Identifier. The resource name of the Pipeline. Must be unique within the location of the project and must be in `projects/{project}/locations/{location}/pipelines/{pipeline}` format.
- name: labels
value: object
description: >
Optional. User labels attached to the Pipeline that can be used to group resources. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
- name: annotations
value: object
description: >
Optional. User-defined annotations. See https://google.aip.dev/128#annotations.
- name: displayName
value: string
description: >
Optional. Display name of resource.
- name: destinations
value: array
description: >
Required. List of destinations to which messages will be forwarded. Currently, exactly one destination is supported per Pipeline.
- name: mediations
value: array
description: >
Optional. List of mediation operations to be performed on the message. Currently, only one Transformation operation is allowed in each Pipeline.
- name: cryptoKeyName
value: string
description: >
Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt the event data. If not set, an internal Google-owned key will be used to encrypt messages. It must match the pattern "projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}".
- name: inputPayloadFormat
value: object
description: >
Optional. The payload format expected for the messages received by the Pipeline. If input_payload_format is set then any messages not matching this format will be treated as persistent errors. If input_payload_format is not set, then the message data will be treated as an opaque binary and no output format can be set on the Pipeline through the Pipeline.Destination.output_payload_format field. Any Mediations on the Pipeline that involve access to the data field will fail as persistent errors.
- name: loggingConfig
value: object
description: >
Optional. Config to control Platform Logging for Pipelines.
- name: retryPolicy
value: object
description: >
Optional. The retry policy to use in the pipeline.
- name: pipelineId
value: string
- name: validateOnly
value: boolean
UPDATE
examples
- patch
Update a single pipeline.
UPDATE google.eventarc.pipelines
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__annotations = '{{ annotations }}',
data__displayName = '{{ displayName }}',
data__destinations = '{{ destinations }}',
data__mediations = '{{ mediations }}',
data__cryptoKeyName = '{{ cryptoKeyName }}',
data__inputPayloadFormat = '{{ inputPayloadFormat }}',
data__loggingConfig = '{{ loggingConfig }}',
data__retryPolicy = '{{ retryPolicy }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND pipelinesId = '{{ pipelinesId }}' --required
AND updateMask = '{{ updateMask}}'
AND allowMissing = {{ allowMissing}}
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- delete
Delete a single pipeline.
DELETE FROM google.eventarc.pipelines
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND pipelinesId = '{{ pipelinesId }}' --required
AND etag = '{{ etag }}'
AND allowMissing = '{{ allowMissing }}'
AND validateOnly = '{{ validateOnly }}';