Cloud SQL Admin V1 API - Class Google::Cloud::Sql::V1::BackupRetentionSettings (v0.1.0)

Reference documentation and code samples for the Cloud SQL Admin V1 API class Google::Cloud::Sql::V1::BackupRetentionSettings.

We currently only support backup retention by specifying the number of backups we will retain.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#retained_backups

def retained_backups() -> ::Google::Protobuf::Int32Value
Returns
  • (::Google::Protobuf::Int32Value) — Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

#retained_backups=

def retained_backups=(value) -> ::Google::Protobuf::Int32Value
Parameter
  • value (::Google::Protobuf::Int32Value) — Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.
Returns
  • (::Google::Protobuf::Int32Value) — Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.

#retention_unit

def retention_unit() -> ::Google::Cloud::Sql::V1::BackupRetentionSettings::RetentionUnit
Returns

#retention_unit=

def retention_unit=(value) -> ::Google::Cloud::Sql::V1::BackupRetentionSettings::RetentionUnit
Parameter
Returns