Class: Google::Apis::StorageV1::Notification
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::StorageV1::Notification
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storage_v1/classes.rb,
 generated/google/apis/storage_v1/representations.rb,
 generated/google/apis/storage_v1/representations.rb
Overview
A subscription to receive Google PubSub notifications.
Instance Attribute Summary collapse
- 
  
    
      #custom_attributes  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription. 
- 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    HTTP 1.1 Entity tag for this subscription notification. 
- 
  
    
      #event_types  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If present, only send notifications about listed event types. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the notification. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The kind of item this is. 
- 
  
    
      #object_name_prefix  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If present, only apply this notification configuration to object names that begin with this prefix. 
- 
  
    
      #payload_format  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The desired content of the Payload. 
- 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The canonical URL of this notification. 
- 
  
    
      #topic  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Cloud PubSub topic to which this subscription publishes. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Notification 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Notification. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Notification
Returns a new instance of Notification
| 953 954 955 | # File 'generated/google/apis/storage_v1/classes.rb', line 953 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#custom_attributes ⇒ Hash<String,String>
An optional list of additional attributes to attach to each Cloud PubSub
message published for this notification subscription.
Corresponds to the JSON property custom_attributes
| 907 908 909 | # File 'generated/google/apis/storage_v1/classes.rb', line 907 def custom_attributes @custom_attributes end | 
#etag ⇒ String
HTTP 1.1 Entity tag for this subscription notification.
Corresponds to the JSON property etag
| 912 913 914 | # File 'generated/google/apis/storage_v1/classes.rb', line 912 def etag @etag end | 
#event_types ⇒ Array<String>
If present, only send notifications about listed event types. If empty, sent
notifications for all event types.
Corresponds to the JSON property event_types
| 918 919 920 | # File 'generated/google/apis/storage_v1/classes.rb', line 918 def event_types @event_types end | 
#id ⇒ String
The ID of the notification.
Corresponds to the JSON property id
| 923 924 925 | # File 'generated/google/apis/storage_v1/classes.rb', line 923 def id @id end | 
#kind ⇒ String
The kind of item this is. For notifications, this is always storage#
notification.
Corresponds to the JSON property kind
| 929 930 931 | # File 'generated/google/apis/storage_v1/classes.rb', line 929 def kind @kind end | 
#object_name_prefix ⇒ String
If present, only apply this notification configuration to object names that
begin with this prefix.
Corresponds to the JSON property object_name_prefix
| 935 936 937 | # File 'generated/google/apis/storage_v1/classes.rb', line 935 def object_name_prefix @object_name_prefix end | 
#payload_format ⇒ String
The desired content of the Payload.
Corresponds to the JSON property payload_format
| 940 941 942 | # File 'generated/google/apis/storage_v1/classes.rb', line 940 def payload_format @payload_format end | 
#self_link ⇒ String
The canonical URL of this notification.
Corresponds to the JSON property selfLink
| 945 946 947 | # File 'generated/google/apis/storage_v1/classes.rb', line 945 def self_link @self_link end | 
#topic ⇒ String
The Cloud PubSub topic to which this subscription publishes. Formatted as: '//
pubsub.googleapis.com/projects/project-identifier/topics/my-topic'
Corresponds to the JSON property topic
| 951 952 953 | # File 'generated/google/apis/storage_v1/classes.rb', line 951 def topic @topic end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 958 959 960 961 962 963 964 965 966 967 968 | # File 'generated/google/apis/storage_v1/classes.rb', line 958 def update!(**args) @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @etag = args[:etag] if args.key?(:etag) @event_types = args[:event_types] if args.key?(:event_types) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @object_name_prefix = args[:object_name_prefix] if args.key?(:object_name_prefix) @payload_format = args[:payload_format] if args.key?(:payload_format) @self_link = args[:self_link] if args.key?(:self_link) @topic = args[:topic] if args.key?(:topic) end |