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.



5009
5010
5011
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5009

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)


5007
5008
5009
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5007

def retention_days
  @retention_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5014
5015
5016
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5014

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