class Google::Apis::SqladminV1beta4::BackupConfiguration

Database instance backup configuration.

Attributes

backup_retention_settings[RW]

We currently only support backup retention by specifying the number of backups we will retain. Corresponds to the JSON property `backupRetentionSettings` @return [Google::Apis::SqladminV1beta4::BackupRetentionSettings]

binary_log_enabled[RW]

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well. Corresponds to the JSON property `binaryLogEnabled` @return [Boolean]

binary_log_enabled?[RW]

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well. Corresponds to the JSON property `binaryLogEnabled` @return [Boolean]

enabled[RW]

Whether this configuration is enabled. Corresponds to the JSON property `enabled` @return [Boolean]

enabled?[RW]

Whether this configuration is enabled. Corresponds to the JSON property `enabled` @return [Boolean]

kind[RW]

This is always *sql#backupConfiguration*. Corresponds to the JSON property `kind` @return [String]

location[RW]

Location of the backup Corresponds to the JSON property `location` @return [String]

point_in_time_recovery_enabled[RW]

(Postgres only) Whether point in time recovery is enabled. Corresponds to the JSON property `pointInTimeRecoveryEnabled` @return [Boolean]

point_in_time_recovery_enabled?[RW]

(Postgres only) Whether point in time recovery is enabled. Corresponds to the JSON property `pointInTimeRecoveryEnabled` @return [Boolean]

replication_log_archiving_enabled[RW]

Reserved for future use. Corresponds to the JSON property `replicationLogArchivingEnabled` @return [Boolean]

replication_log_archiving_enabled?[RW]

Reserved for future use. Corresponds to the JSON property `replicationLogArchivingEnabled` @return [Boolean]

start_time[RW]

Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM. Corresponds to the JSON property `startTime` @return [String]

transaction_log_retention_days[RW]

The number of days of transaction logs we retain for point in time restore, from 1-7. Corresponds to the JSON property `transactionLogRetentionDays` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 151
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 156
def update!(**args)
  @backup_retention_settings = args[:backup_retention_settings] if args.key?(:backup_retention_settings)
  @binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled)
  @enabled = args[:enabled] if args.key?(:enabled)
  @kind = args[:kind] if args.key?(:kind)
  @location = args[:location] if args.key?(:location)
  @point_in_time_recovery_enabled = args[:point_in_time_recovery_enabled] if args.key?(:point_in_time_recovery_enabled)
  @replication_log_archiving_enabled = args[:replication_log_archiving_enabled] if args.key?(:replication_log_archiving_enabled)
  @start_time = args[:start_time] if args.key?(:start_time)
  @transaction_log_retention_days = args[:transaction_log_retention_days] if args.key?(:transaction_log_retention_days)
end