Class NotificationMetadata (2.21.0)

Represents the metadata for a Google Cloud Storage Notification resource.

Notifications send information about changes to objects in your buckets to Cloud Pub/Sub.

See Also

https://cloud.google.com/storage/docs/pubsub-notifications for general information on Google Cloud Storage Notifications.

See Also

https://cloud.google.com/pubsub/ for general information on Google Cloud Pub/Sub service.

Constructors

NotificationMetadata()

NotificationMetadata(std::string, std::string)

Parameters
NameDescription
id std::string
etag std::string

Functions

has_custom_attribute(std::string const &) const

Delete a custom attribute. This is a no-op if the key does not exist.

Parameter
NameDescription
key std::string const &
Returns
TypeDescription
bool

custom_attribute(std::string const &) const

Delete a custom attribute. This is a no-op if the key does not exist.

Parameter
NameDescription
key std::string const &
Returns
TypeDescription
std::string const &

delete_custom_attribute(std::string const &)

Delete a custom attribute. This is a no-op if the key does not exist.

Parameter
NameDescription
key std::string const &
Returns
TypeDescription
NotificationMetadata &

upsert_custom_attributes(std::string, std::string)

Insert or update the custom attribute.

Parameters
NameDescription
key std::string
value std::string
Returns
TypeDescription
NotificationMetadata &

custom_attributes() const

Full accessors for the custom attributes.

Returns
TypeDescription
std::map< std::string, std::string > const &

mutable_custom_attributes()

Delete a custom attribute. This is a no-op if the key does not exist.

Returns
TypeDescription
std::map< std::string, std::string > &

event_type_size() const

Accessors and modifiers to the event types list.

Define the list of event types that this notification will include.

See Also

https://cloud.google.com/storage/docs/pubsub-notifications#events for a description of valid even types.

Returns
TypeDescription
std::size_t

event_type(std::size_t) const

Accessors and modifiers to the event types list.

Define the list of event types that this notification will include.

See Also

https://cloud.google.com/storage/docs/pubsub-notifications#events for a description of valid even types.

Parameter
NameDescription
index std::size_t
Returns
TypeDescription
std::string const &

append_event_type(std::string)

Accessors and modifiers to the event types list.

Define the list of event types that this notification will include.

See Also

https://cloud.google.com/storage/docs/pubsub-notifications#events for a description of valid even types.

Parameter
NameDescription
e std::string
Returns
TypeDescription
NotificationMetadata &

event_types() const

Accessors and modifiers to the event types list.

Define the list of event types that this notification will include.

See Also

https://cloud.google.com/storage/docs/pubsub-notifications#events for a description of valid even types.

Returns
TypeDescription
std::vector< std::string > const &

mutable_event_types()

Accessors and modifiers to the event types list.

Define the list of event types that this notification will include.

See Also

https://cloud.google.com/storage/docs/pubsub-notifications#events for a description of valid even types.

Returns
TypeDescription
std::vector< std::string > &

JsonPayloadForInsert() const

Returns the payload for a call to Notifications: insert.

Returns
TypeDescription
std::string

etag() const

Returns
TypeDescription
std::string const &

id() const

Returns
TypeDescription
std::string const &

kind() const

Returns
TypeDescription
std::string const &

object_name_prefix() const

Returns
TypeDescription
std::string const &

set_object_name_prefix(std::string)

Parameter
NameDescription
v std::string
Returns
TypeDescription
NotificationMetadata &

payload_format() const

Returns
TypeDescription
std::string const &

set_payload_format(std::string)

Parameter
NameDescription
v std::string
Returns
TypeDescription
NotificationMetadata &

self_link() const

Returns
TypeDescription
std::string const &

topic() const

Returns
TypeDescription
std::string const &

set_topic(std::string)

Parameter
NameDescription
v std::string
Returns
TypeDescription
NotificationMetadata &