Class: Google::Apis::BackupdrV1::PitrSettings

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

Overview

Point in time recovery settings of the backup configuration resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PitrSettings

Returns a new instance of PitrSettings.



5075
5076
5077
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5075

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

Instance Attribute Details

#retention_daysFixnum

Output only. Number of days to retain the backup. Corresponds to the JSON property retentionDays

Returns:

  • (Fixnum)


5073
5074
5075
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5073

def retention_days
  @retention_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5080
5081
5082
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5080

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