Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedRetentionSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteSharedRetentionSettings

Returns a new instance of AppsDynamiteSharedRetentionSettings.



2144
2145
2146
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2144

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#expiry_timestampFixnum

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

Returns:

  • (Fixnum)


2137
2138
2139
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2137

def expiry_timestamp
  @expiry_timestamp
end

#stateString

The retention state. Corresponds to the JSON property state

Returns:

  • (String)


2142
2143
2144
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2142

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2149
2150
2151
2152
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2149

def update!(**args)
  @expiry_timestamp = args[:expiry_timestamp] if args.key?(:expiry_timestamp)
  @state = args[:state] if args.key?(:state)
end