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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainRetentionSettings

Returns a new instance of StorageDatabasecenterPartnerapiV1mainRetentionSettings.



3568
3569
3570
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3568

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

Instance Attribute Details

#duration_based_retentionString

Duration based retention period i.e. 172800 seconds (2 days) Corresponds to the JSON property durationBasedRetention

Returns:

  • (String)


3546
3547
3548
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3546

def duration_based_retention
  @duration_based_retention
end

#quantity_based_retentionFixnum

Corresponds to the JSON property quantityBasedRetention

Returns:

  • (Fixnum)


3551
3552
3553
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3551

def quantity_based_retention
  @quantity_based_retention
end

#retention_unitString

The unit that 'retained_backups' represents. Corresponds to the JSON property retentionUnit

Returns:

  • (String)


3556
3557
3558
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3556

def retention_unit
  @retention_unit
end

#time_based_retentionString

Corresponds to the JSON property timeBasedRetention

Returns:

  • (String)


3561
3562
3563
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3561

def time_based_retention
  @time_based_retention
end

#timestamp_based_retention_timeString

Timestamp based retention period i.e. 2024-05-01T00:00:00Z Corresponds to the JSON property timestampBasedRetentionTime

Returns:

  • (String)


3566
3567
3568
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3566

def timestamp_based_retention_time
  @timestamp_based_retention_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3573
3574
3575
3576
3577
3578
3579
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3573

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