Class: Google::Apis::AlloydbV1beta::TimeBasedRetention

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb

Overview

A time based retention policy specifies that all backups within a certain time period should be retained.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeBasedRetention

Returns a new instance of TimeBasedRetention.



3077
3078
3079
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3077

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

Instance Attribute Details

#retention_periodString

The retention period. Corresponds to the JSON property retentionPeriod

Returns:

  • (String)


3075
3076
3077
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3075

def retention_period
  @retention_period
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3082
3083
3084
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3082

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