Class: Google::Apis::BackupdrV1::AlloyDbPitrWindow

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 window for an AlloyDB cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AlloyDbPitrWindow

Returns a new instance of AlloyDbPitrWindow.



383
384
385
# File 'lib/google/apis/backupdr_v1/classes.rb', line 383

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

Instance Attribute Details

#end_timeString

Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active. Corresponds to the JSON property endTime

Returns:

  • (String)


371
372
373
# File 'lib/google/apis/backupdr_v1/classes.rb', line 371

def end_time
  @end_time
end

#log_retention_daysFixnum

Output only. Log retention days for the PITR window. Corresponds to the JSON property logRetentionDays

Returns:

  • (Fixnum)


376
377
378
# File 'lib/google/apis/backupdr_v1/classes.rb', line 376

def log_retention_days
  @log_retention_days
end

#start_timeString

Output only. The start time of the PITR window. Corresponds to the JSON property startTime

Returns:

  • (String)


381
382
383
# File 'lib/google/apis/backupdr_v1/classes.rb', line 381

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



388
389
390
391
392
# File 'lib/google/apis/backupdr_v1/classes.rb', line 388

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