class Google::Apis::PubsubV1::ExpirationPolicy

A policy that specifies the conditions for resource expiration (i.e., automatic resource deletion).

Attributes

ttl[RW]

Specifies the “time-to-live” duration for an associated resource. The resource expires if it is not active for a period of `ttl`. The definition of “activity” depends on the type of the associated resource. The minimum and maximum allowed values for `ttl` depend on the type of the associated resource, as well. If `ttl` is not set, the associated resource never expires. Corresponds to the JSON property `ttl` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/pubsub_v1/classes.rb, line 293
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/pubsub_v1/classes.rb, line 298
def update!(**args)
  @ttl = args[:ttl] if args.key?(:ttl)
end