Class: Google::Apis::SqladminV1::BackupConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::BackupConfiguration
- 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
-
#backup_retention_settings ⇒ Google::Apis::SqladminV1::BackupRetentionSettings
We currently only support backup retention by specifying the number of backups we will retain.
-
#backup_tier ⇒ String
Output only.
-
#binary_log_enabled ⇒ Boolean
(also: #binary_log_enabled?)
(MySQL only) Whether binary log is enabled.
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether this configuration is enabled.
-
#kind ⇒ String
This is always
sql#backupConfiguration. -
#location ⇒ String
Location of the backup Corresponds to the JSON property
location. -
#point_in_time_recovery_enabled ⇒ Boolean
(also: #point_in_time_recovery_enabled?)
Whether point in time recovery is enabled.
-
#replication_log_archiving_enabled ⇒ Boolean
(also: #replication_log_archiving_enabled?)
Reserved for future use.
-
#start_time ⇒ String
Start time for the daily backup configuration in UTC timezone in the 24 hour format -
HH:MM. -
#transaction_log_retention_days ⇒ Fixnum
The number of days of transaction logs we retain for point in time restore, from 1-7.
-
#transactional_log_storage_state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupConfiguration
constructor
A new instance of BackupConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupConfiguration
Returns a new instance of BackupConfiguration.
420 421 422 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 420 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_retention_settings ⇒ Google::Apis::SqladminV1::BackupRetentionSettings
We currently only support backup retention by specifying the number of backups
we will retain.
Corresponds to the JSON property backupRetentionSettings
360 361 362 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 360 def backup_retention_settings @backup_retention_settings end |
#backup_tier ⇒ String
Output only. Backup tier that manages the backups for the instance.
Corresponds to the JSON property backupTier
365 366 367 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 365 def backup_tier @backup_tier end |
#binary_log_enabled ⇒ Boolean 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
371 372 373 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 371 def binary_log_enabled @binary_log_enabled end |
#enabled ⇒ Boolean Also known as: enabled?
Whether this configuration is enabled.
Corresponds to the JSON property enabled
377 378 379 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 377 def enabled @enabled end |
#kind ⇒ String
This is always sql#backupConfiguration.
Corresponds to the JSON property kind
383 384 385 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 383 def kind @kind end |
#location ⇒ String
Location of the backup
Corresponds to the JSON property location
388 389 390 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 388 def location @location end |
#point_in_time_recovery_enabled ⇒ Boolean Also known as: point_in_time_recovery_enabled?
Whether point in time recovery is enabled.
Corresponds to the JSON property pointInTimeRecoveryEnabled
393 394 395 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 393 def point_in_time_recovery_enabled @point_in_time_recovery_enabled end |
#replication_log_archiving_enabled ⇒ Boolean Also known as: replication_log_archiving_enabled?
Reserved for future use.
Corresponds to the JSON property replicationLogArchivingEnabled
399 400 401 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 399 def replication_log_archiving_enabled @replication_log_archiving_enabled end |
#start_time ⇒ String
Start time for the daily backup configuration in UTC timezone in the 24 hour
format - HH:MM.
Corresponds to the JSON property startTime
406 407 408 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 406 def start_time @start_time end |
#transaction_log_retention_days ⇒ Fixnum
The number of days of transaction logs we retain for point in time restore,
from 1-7.
Corresponds to the JSON property transactionLogRetentionDays
412 413 414 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 412 def transaction_log_retention_days @transaction_log_retention_days end |
#transactional_log_storage_state ⇒ String
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
418 419 420 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 418 def transactional_log_storage_state @transactional_log_storage_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
425 426 427 428 429 430 431 432 433 434 435 436 437 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 425 def update!(**args) @backup_retention_settings = args[:backup_retention_settings] if args.key?(:backup_retention_settings) @backup_tier = args[:backup_tier] if args.key?(:backup_tier) @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 |