Class CloudEvent (0.6.13)

CloudEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)

CloudEvent represents a vendor-neutral specification for defining the format of event data.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
id str
Required. Identifies the event. Producers MUST ensure that source + id is unique for each distinct event.
source str
Required. Identifies the context in which an event happened. URI-reference
spec_version str
Required. The version of the CloudEvents specification which the event uses.
type_ str
Required. This attribute contains a value describing the type of event related to the originating occurrence.
attributes MutableMapping[str, google.cloud.eventarc_publishing_v1.types.CloudEvent.CloudEventAttributeValue]
Optional. Used for Optional & Extension Attributes
binary_data bytes
Optional. Binary data. This field is a member of oneof_ data.
text_data str
Optional. Text data. This field is a member of oneof_ data.
proto_data google.protobuf.any_pb2.Any
Optional. Proto data. This field is a member of oneof_ data.

Classes

AttributesEntry

AttributesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

CloudEventAttributeValue

CloudEventAttributeValue(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The following abstract data types are available for use in attributes.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields