Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainRetentionSettings

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

Disable validation warnings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainRetentionSettings

Returns a new instance of StorageDatabasecenterPartnerapiV1mainRetentionSettings.



5259
5260
5261
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5259

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

Instance Attribute Details

#duration_based_retentionString

Disable validation warnings Corresponds to the JSON property durationBasedRetention

Returns:

  • (String)


5237
5238
5239
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5237

def duration_based_retention
  @duration_based_retention
end

#quantity_based_retentionFixnum

Disable validation warnings Corresponds to the JSON property quantityBasedRetention

Returns:

  • (Fixnum)


5242
5243
5244
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5242

def quantity_based_retention
  @quantity_based_retention
end

#retention_unitString

Disable validation warnings Corresponds to the JSON property retentionUnit

Returns:

  • (String)


5247
5248
5249
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5247

def retention_unit
  @retention_unit
end

#time_based_retentionString

Disable validation warnings Corresponds to the JSON property timeBasedRetention

Returns:

  • (String)


5252
5253
5254
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5252

def time_based_retention
  @time_based_retention
end

#timestamp_based_retention_timeString

Disable validation warnings Corresponds to the JSON property timestampBasedRetentionTime

Returns:

  • (String)


5257
5258
5259
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5257

def timestamp_based_retention_time
  @timestamp_based_retention_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5264
5265
5266
5267
5268
5269
5270
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5264

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