Represents the metadata for a Google Cloud Storage Notification resource.
More...
#include <google/cloud/storage/notification_metadata.h>
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.
-
https://cloud.google.com/pubsub/ for general information on Google Cloud Pub/Sub service.
◆ NotificationMetadata() [1/2]
google::cloud::storage::NotificationMetadata::NotificationMetadata |
( |
| ) |
|
|
default |
◆ NotificationMetadata() [2/2]
google::cloud::storage::NotificationMetadata::NotificationMetadata |
( |
std::string |
id, |
|
|
std::string |
etag |
|
) |
| |
|
inlineexplicit |
◆ append_event_type()
NotificationMetadata & google::cloud::storage::NotificationMetadata::append_event_type |
( |
std::string |
e | ) |
|
|
inline |
◆ custom_attribute()
std::string const & google::cloud::storage::NotificationMetadata::custom_attribute |
( |
std::string const & |
key | ) |
const |
|
inline |
Delete a custom attribute. This is a no-op if the key does not exist.
◆ custom_attributes()
std::map< std::string, std::string > const & google::cloud::storage::NotificationMetadata::custom_attributes |
( |
| ) |
const |
|
inline |
Full accessors for the custom attributes.
◆ delete_custom_attribute()
NotificationMetadata & google::cloud::storage::NotificationMetadata::delete_custom_attribute |
( |
std::string const & |
key | ) |
|
|
inline |
Delete a custom attribute. This is a no-op if the key does not exist.
◆ etag()
std::string const & google::cloud::storage::NotificationMetadata::etag |
( |
| ) |
const |
|
inline |
◆ event_type()
std::string const & google::cloud::storage::NotificationMetadata::event_type |
( |
std::size_t |
index | ) |
const |
|
inline |
◆ event_type_size()
std::size_t google::cloud::storage::NotificationMetadata::event_type_size |
( |
| ) |
const |
|
inline |
◆ event_types()
std::vector< std::string > const & google::cloud::storage::NotificationMetadata::event_types |
( |
| ) |
const |
|
inline |
◆ has_custom_attribute()
bool google::cloud::storage::NotificationMetadata::has_custom_attribute |
( |
std::string const & |
key | ) |
const |
|
inline |
Delete a custom attribute. This is a no-op if the key does not exist.
◆ id()
std::string const & google::cloud::storage::NotificationMetadata::id |
( |
| ) |
const |
|
inline |
◆ JsonPayloadForInsert()
std::string google::cloud::storage::NotificationMetadata::JsonPayloadForInsert |
( |
| ) |
const |
Returns the payload for a call to Notifications: insert
.
◆ kind()
std::string const & google::cloud::storage::NotificationMetadata::kind |
( |
| ) |
const |
|
inline |
◆ mutable_custom_attributes()
std::map< std::string, std::string > & google::cloud::storage::NotificationMetadata::mutable_custom_attributes |
( |
| ) |
|
|
inline |
Delete a custom attribute. This is a no-op if the key does not exist.
◆ mutable_event_types()
std::vector< std::string > & google::cloud::storage::NotificationMetadata::mutable_event_types |
( |
| ) |
|
|
inline |
◆ object_name_prefix()
std::string const & google::cloud::storage::NotificationMetadata::object_name_prefix |
( |
| ) |
const |
|
inline |
◆ payload_format()
std::string const & google::cloud::storage::NotificationMetadata::payload_format |
( |
| ) |
const |
|
inline |
◆ self_link()
std::string const & google::cloud::storage::NotificationMetadata::self_link |
( |
| ) |
const |
|
inline |
◆ set_object_name_prefix()
NotificationMetadata & google::cloud::storage::NotificationMetadata::set_object_name_prefix |
( |
std::string |
v | ) |
|
|
inline |
◆ set_payload_format()
NotificationMetadata & google::cloud::storage::NotificationMetadata::set_payload_format |
( |
std::string |
v | ) |
|
|
inline |
◆ set_topic()
◆ topic()
std::string const & google::cloud::storage::NotificationMetadata::topic |
( |
| ) |
const |
|
inline |
◆ upsert_custom_attributes()
NotificationMetadata & google::cloud::storage::NotificationMetadata::upsert_custom_attributes |
( |
std::string |
key, |
|
|
std::string |
value |
|
) |
| |
|
inline |
Insert or update the custom attribute.
◆ operator<<