Reference documentation and code samples for the Google Cloud Database Center V1beta Client class RetentionSettingsInfo.
Metadata about backup retention settings for a database resource.
Generated from protobuf message google.cloud.databasecenter.v1beta.RetentionSettingsInfo
Namespace
Google \ Cloud \ DatabaseCenter \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ quantity_based_retention
↳ duration_based_retention
↳ timestamp_based_retention_time
↳ sub_resource
getQuantityBasedRetention
Number of backups that will be retained.
hasQuantityBasedRetention
getQuantityBasedRetentionUnwrapped
Returns the unboxed value from getQuantityBasedRetention()
Number of backups that will be retained.
int|null
setQuantityBasedRetention
Number of backups that will be retained.
$this
setQuantityBasedRetentionUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
Number of backups that will be retained.
var
int|null
$this
getDurationBasedRetention
Duration based retention period i.e. 172800 seconds (2 days)
hasDurationBasedRetention
setDurationBasedRetention
Duration based retention period i.e. 172800 seconds (2 days)
$this
getTimestampBasedRetentionTime
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
hasTimestampBasedRetentionTime
setTimestampBasedRetentionTime
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
$this
getSubResource
Optional. Sub resource details associated with the backup configuration.
hasSubResource
clearSubResource
setSubResource
Optional. Sub resource details associated with the backup configuration.
$this
getRetention
string

