Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedRetentionSettings
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteSharedRetentionSettings
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
The settings of retention period of a message or topic.
Instance Attribute Summary collapse
-
#expiry_timestamp ⇒ Fixnum
The timestamp after which the message/topic should be removed, in microseconds since the epoch, when state == EPHEMERAL_ONE_DAY.
-
#state ⇒ String
The retention state.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteSharedRetentionSettings
constructor
A new instance of AppsDynamiteSharedRetentionSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteSharedRetentionSettings
Returns a new instance of AppsDynamiteSharedRetentionSettings.
3075 3076 3077 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3075 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expiry_timestamp ⇒ Fixnum
The timestamp after which the message/topic should be removed, in microseconds
since the epoch, when state == EPHEMERAL_ONE_DAY. The value should not be set
in other cases.
Corresponds to the JSON property expiryTimestamp
3068 3069 3070 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3068 def @expiry_timestamp end |
#state ⇒ String
The retention state.
Corresponds to the JSON property state
3073 3074 3075 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3073 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3080 3081 3082 3083 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3080 def update!(**args) @expiry_timestamp = args[:expiry_timestamp] if args.key?(:expiry_timestamp) @state = args[:state] if args.key?(:state) end |