Class: Google::Apis::AlloydbV1alpha::ContinuousBackupInfo

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

Overview

ContinuousBackupInfo describes the continuous backup properties of a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContinuousBackupInfo

Returns a new instance of ContinuousBackupInfo.



679
680
681
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 679

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

Instance Attribute Details

#earliest_restorable_timeString

Output only. The earliest restorable time that can be restored to. Output only field. Corresponds to the JSON property earliestRestorableTime

Returns:

  • (String)


660
661
662
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 660

def earliest_restorable_time
  @earliest_restorable_time
end

#enabled_timeString

Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled. Corresponds to the JSON property enabledTime

Returns:

  • (String)


666
667
668
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 666

def enabled_time
  @enabled_time
end

#encryption_infoGoogle::Apis::AlloydbV1alpha::EncryptionInfo

EncryptionInfo describes the encryption information of a cluster or a backup. Corresponds to the JSON property encryptionInfo



671
672
673
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 671

def encryption_info
  @encryption_info
end

#scheduleArray<String>

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request. Corresponds to the JSON property schedule

Returns:

  • (Array<String>)


677
678
679
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 677

def schedule
  @schedule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



684
685
686
687
688
689
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 684

def update!(**args)
  @earliest_restorable_time = args[:earliest_restorable_time] if args.key?(:earliest_restorable_time)
  @enabled_time = args[:enabled_time] if args.key?(:enabled_time)
  @encryption_info = args[:encryption_info] if args.key?(:encryption_info)
  @schedule = args[:schedule] if args.key?(:schedule)
end