Reference documentation and code samples for the Database Center V1BETA API class Google::Cloud::DatabaseCenter::V1beta::RetentionSettingsInfo.
Metadata about backup retention settings for a database resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#duration_based_retention
def duration_based_retention() -> ::Google::Protobuf::Duration-
(::Google::Protobuf::Duration) — Duration based retention period i.e. 172800 seconds (2 days)
Note: The following fields are mutually exclusive:
duration_based_retention,quantity_based_retention,timestamp_based_retention_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
#duration_based_retention=
def duration_based_retention=(value) -> ::Google::Protobuf::Duration-
value (::Google::Protobuf::Duration) — Duration based retention period i.e. 172800 seconds (2 days)
Note: The following fields are mutually exclusive:
duration_based_retention,quantity_based_retention,timestamp_based_retention_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Duration) — Duration based retention period i.e. 172800 seconds (2 days)
Note: The following fields are mutually exclusive:
duration_based_retention,quantity_based_retention,timestamp_based_retention_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
#quantity_based_retention
def quantity_based_retention() -> ::Google::Protobuf::Int32Value-
(::Google::Protobuf::Int32Value) — Number of backups that will be retained.
Note: The following fields are mutually exclusive:
quantity_based_retention,duration_based_retention,timestamp_based_retention_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
#quantity_based_retention=
def quantity_based_retention=(value) -> ::Google::Protobuf::Int32Value-
value (::Google::Protobuf::Int32Value) — Number of backups that will be retained.
Note: The following fields are mutually exclusive:
quantity_based_retention,duration_based_retention,timestamp_based_retention_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Int32Value) — Number of backups that will be retained.
Note: The following fields are mutually exclusive:
quantity_based_retention,duration_based_retention,timestamp_based_retention_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
#sub_resource
def sub_resource() -> ::Google::Cloud::DatabaseCenter::V1beta::SubResource- (::Google::Cloud::DatabaseCenter::V1beta::SubResource) — Optional. Sub resource details associated with the backup configuration.
#sub_resource=
def sub_resource=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::SubResource- value (::Google::Cloud::DatabaseCenter::V1beta::SubResource) — Optional. Sub resource details associated with the backup configuration.
- (::Google::Cloud::DatabaseCenter::V1beta::SubResource) — Optional. Sub resource details associated with the backup configuration.
#timestamp_based_retention_time
def timestamp_based_retention_time() -> ::Google::Protobuf::Timestamp-
(::Google::Protobuf::Timestamp) — Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
Note: The following fields are mutually exclusive:
timestamp_based_retention_time,quantity_based_retention,duration_based_retention. If a field in that set is populated, all other fields in the set will automatically be cleared.
#timestamp_based_retention_time=
def timestamp_based_retention_time=(value) -> ::Google::Protobuf::Timestamp-
value (::Google::Protobuf::Timestamp) — Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
Note: The following fields are mutually exclusive:
timestamp_based_retention_time,quantity_based_retention,duration_based_retention. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Timestamp) — Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
Note: The following fields are mutually exclusive:
timestamp_based_retention_time,quantity_based_retention,duration_based_retention. If a field in that set is populated, all other fields in the set will automatically be cleared.