Class: Google::Pubsub::V1::Snapshot
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Pubsub::V1::Snapshot
 
 
- Defined in:
 - lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb
 
Overview
A snapshot resource.
Instance Attribute Summary collapse
- 
  
    
      #expiration_time  ⇒ Google::Protobuf::Timestamp 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The snapshot is guaranteed to exist up until this time.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the snapshot.
 - 
  
    
      #topic  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the topic from which this snapshot is retaining messages.
 
Instance Attribute Details
#expiration_time ⇒ Google::Protobuf::Timestamp
Returns The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is +7 days - (age of oldest unacked message in the subscription)+. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.
      442  | 
    
      # File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 442 class Snapshot; end  | 
  
#name ⇒ String
Returns The name of the snapshot.
      442  | 
    
      # File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 442 class Snapshot; end  | 
  
#topic ⇒ String
Returns The name of the topic from which this snapshot is retaining messages.
      442  | 
    
      # File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 442 class Snapshot; end  |