Class: Google::Apis::SqladminV1::FinalBackupConfig

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

Config used to determine the final backup settings for the instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FinalBackupConfig

Returns a new instance of FinalBackupConfig.



2328
2329
2330
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2328

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Whether the final backup is enabled for the instance. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


2319
2320
2321
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2319

def enabled
  @enabled
end

#retention_daysFixnum

The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days). Corresponds to the JSON property retentionDays

Returns:

  • (Fixnum)


2326
2327
2328
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2326

def retention_days
  @retention_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2333
2334
2335
2336
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2333

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @retention_days = args[:retention_days] if args.key?(:retention_days)
end