Class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainRetentionSettings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainRetentionSettings

Returns a new instance of StorageDatabasecenterPartnerapiV1mainRetentionSettings.



3154
3155
3156
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3154

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)


3137
3138
3139
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3137

def duration_based_retention
  @duration_based_retention
end

#quantity_based_retentionFixnum

Corresponds to the JSON property quantityBasedRetention

Returns:

  • (Fixnum)


3142
3143
3144
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3142

def quantity_based_retention
  @quantity_based_retention
end

#retention_unitString

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

Returns:

  • (String)


3147
3148
3149
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3147

def retention_unit
  @retention_unit
end

#time_based_retentionString

Corresponds to the JSON property timeBasedRetention

Returns:

  • (String)


3152
3153
3154
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3152

def time_based_retention
  @time_based_retention
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3159
3160
3161
3162
3163
3164
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3159

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)
end