class Google::Apis::SqladminV1beta4::BackupConfiguration
Database
instance backup configuration.
Attributes
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]
(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]
(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]
Whether this configuration is enabled. Corresponds to the JSON property `enabled` @return [Boolean]
Whether this configuration is enabled. Corresponds to the JSON property `enabled` @return [Boolean]
This is always `sql#backupConfiguration`. Corresponds to the JSON property `kind` @return [String]
Location of the backup Corresponds to the JSON property `location` @return [String]
(Postgres only) Whether point in time recovery is enabled. Corresponds to the JSON property `pointInTimeRecoveryEnabled` @return [Boolean]
(Postgres only) Whether point in time recovery is enabled. Corresponds to the JSON property `pointInTimeRecoveryEnabled` @return [Boolean]
Reserved for future use. Corresponds to the JSON property `replicationLogArchivingEnabled` @return [Boolean]
Reserved for future use. Corresponds to the JSON property `replicationLogArchivingEnabled` @return [Boolean]
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]
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
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 151 def initialize(**args) update!(**args) end
Public Instance Methods
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