Class: Google::Apis::SqladminV1::BackupConfiguration

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

Overview

Database instance backup configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupConfiguration

Returns a new instance of BackupConfiguration.



247
248
249
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 247

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

Instance Attribute Details

#backup_retention_settingsGoogle::Apis::SqladminV1::BackupRetentionSettings

We currently only support backup retention by specifying the number of backups we will retain. Corresponds to the JSON property backupRetentionSettings



192
193
194
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 192

def backup_retention_settings
  @backup_retention_settings
end

#binary_log_enabledBoolean Also known as: binary_log_enabled?

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

Returns:

  • (Boolean)


198
199
200
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 198

def binary_log_enabled
  @binary_log_enabled
end

#enabledBoolean Also known as: enabled?

Whether this configuration is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


204
205
206
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 204

def enabled
  @enabled
end

#kindString

This is always sql#backupConfiguration. Corresponds to the JSON property kind

Returns:

  • (String)


210
211
212
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 210

def kind
  @kind
end

#locationString

Location of the backup Corresponds to the JSON property location

Returns:

  • (String)


215
216
217
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 215

def location
  @location
end

#point_in_time_recovery_enabledBoolean Also known as: point_in_time_recovery_enabled?

Whether point in time recovery is enabled. Corresponds to the JSON property pointInTimeRecoveryEnabled

Returns:

  • (Boolean)


220
221
222
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 220

def point_in_time_recovery_enabled
  @point_in_time_recovery_enabled
end

#replication_log_archiving_enabledBoolean Also known as: replication_log_archiving_enabled?

Reserved for future use. Corresponds to the JSON property replicationLogArchivingEnabled

Returns:

  • (Boolean)


226
227
228
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 226

def replication_log_archiving_enabled
  @replication_log_archiving_enabled
end

#start_timeString

Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM. Corresponds to the JSON property startTime

Returns:

  • (String)


233
234
235
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 233

def start_time
  @start_time
end

#transaction_log_retention_daysFixnum

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

Returns:

  • (Fixnum)


239
240
241
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 239

def transaction_log_retention_days
  @transaction_log_retention_days
end

#transactional_log_storage_stateString

Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database. Corresponds to the JSON property transactionalLogStorageState

Returns:

  • (String)


245
246
247
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 245

def transactional_log_storage_state
  @transactional_log_storage_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



252
253
254
255
256
257
258
259
260
261
262
263
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 252

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)
  @transactional_log_storage_state = args[:transactional_log_storage_state] if args.key?(:transactional_log_storage_state)
end