Class: Google::Apis::PubsubV1::Snapshot
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PubsubV1::Snapshot
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsub_v1/classes.rb,
 generated/google/apis/pubsub_v1/representations.rb,
 generated/google/apis/pubsub_v1/representations.rb
Overview
A snapshot resource.
Instance Attribute Summary collapse
- 
  
    
      #expire_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    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 Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Snapshot 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Snapshot. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Snapshot
Returns a new instance of Snapshot
| 730 731 732 | # File 'generated/google/apis/pubsub_v1/classes.rb', line 730 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#expire_time ⇒ String
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. The service will refuse to create a
snapshot that would expire in less than 1 hour after creation.
Corresponds to the JSON property expireTime
| 718 719 720 | # File 'generated/google/apis/pubsub_v1/classes.rb', line 718 def expire_time @expire_time end | 
#name ⇒ String
The name of the snapshot.
Corresponds to the JSON property name
| 723 724 725 | # File 'generated/google/apis/pubsub_v1/classes.rb', line 723 def name @name end | 
#topic ⇒ String
The name of the topic from which this snapshot is retaining messages.
Corresponds to the JSON property topic
| 728 729 730 | # File 'generated/google/apis/pubsub_v1/classes.rb', line 728 def topic @topic end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 735 736 737 738 739 | # File 'generated/google/apis/pubsub_v1/classes.rb', line 735 def update!(**args) @expire_time = args[:expire_time] if args.key?(:expire_time) @name = args[:name] if args.key?(:name) @topic = args[:topic] if args.key?(:topic) end |