Class: Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainRetentionSettings

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

Overview

Disable validation warnings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainRetentionSettings

Returns a new instance of StorageDatabasecenterPartnerapiV1mainRetentionSettings.



5293
5294
5295
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 5293

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

Instance Attribute Details

#duration_based_retentionString

Disable validation warnings Corresponds to the JSON property durationBasedRetention

Returns:

  • (String)


5271
5272
5273
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 5271

def duration_based_retention
  @duration_based_retention
end

#quantity_based_retentionFixnum

Disable validation warnings Corresponds to the JSON property quantityBasedRetention

Returns:

  • (Fixnum)


5276
5277
5278
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 5276

def quantity_based_retention
  @quantity_based_retention
end

#retention_unitString

Disable validation warnings Corresponds to the JSON property retentionUnit

Returns:

  • (String)


5281
5282
5283
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 5281

def retention_unit
  @retention_unit
end

#time_based_retentionString

Disable validation warnings Corresponds to the JSON property timeBasedRetention

Returns:

  • (String)


5286
5287
5288
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 5286

def time_based_retention
  @time_based_retention
end

#timestamp_based_retention_timeString

Disable validation warnings Corresponds to the JSON property timestampBasedRetentionTime

Returns:

  • (String)


5291
5292
5293
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 5291

def timestamp_based_retention_time
  @timestamp_based_retention_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5298
5299
5300
5301
5302
5303
5304
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 5298

def update!(**args)
  @duration_based_retention = args[:duration_based_retention] if args.key?(:duration_based_retention)
  @quantity_based_retention = args[:quantity_based_retention] if args.key?(:quantity_based_retention)
  @retention_unit = args[:retention_unit] if args.key?(:retention_unit)
  @time_based_retention = args[:time_based_retention] if args.key?(:time_based_retention)
  @timestamp_based_retention_time = args[:timestamp_based_retention_time] if args.key?(:timestamp_based_retention_time)
end