Database Center V1BETA API - Class Google::Cloud::DatabaseCenter::V1beta::RetentionSettingsInfo (v0.1.0)

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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns

#sub_resource=

def sub_resource=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::SubResource
Parameter
Returns

#timestamp_based_retention_time

def timestamp_based_retention_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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.