class

GoogleCloudStorage::Notification

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

A subscription to receive Google PubSub notifications.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

custom_attributes

An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.

Source
custom_attributes=(new_value : Hash(String, String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] custom_attributes Object to be assigned

Source
etag

HTTP 1.1 Entity tag for this subscription notification.

Source
etag=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] etag Object to be assigned

Source
event_types

If present, only send notifications about listed event types. If empty, sent notifications for all event types.

Source
event_types=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] event_types Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

id

The ID of the notification.

Source
id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned

Source
kind

The kind of item this is. For notifications, this is always storage#notification.

Source
kind=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] kind Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
object_name_prefix

If present, only apply this notification configuration to object names that begin with this prefix.

Source
object_name_prefix=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] object_name_prefix Object to be assigned

Source
payload_format

The desired content of the Payload.

Source
payload_format=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payload_format Object to be assigned

Source
topic

The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'

Source
topic=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] topic Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source