Class: Google::Apis::SqladminV1::FinalBackupConfig
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::FinalBackupConfig
- 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
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether the final backup is enabled for the instance.
-
#retention_days ⇒ Fixnum
The number of days to retain the final backup after the instance deletion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FinalBackupConfig
constructor
A new instance of FinalBackupConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#enabled ⇒ Boolean Also known as: enabled?
Whether the final backup is enabled for the instance.
Corresponds to the JSON property enabled
2319 2320 2321 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2319 def enabled @enabled end |
#retention_days ⇒ Fixnum
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
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 |