# Cloud Firestore Admin V1 API - Class Google::Cloud::Firestore::Admin::V1::BackupSchedule (v1.13.0)

1.13.0 (latest) 1.12.1 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.18.0 0.17.1 0.16.0 0.15.0 0.14.3 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.5 Reference documentation and code samples for the Cloud Firestore Admin V1 API class Google::Cloud::Firestore::Admin::V1::BackupSchedule.

A backup schedule for a Cloud Firestore Database.


<br />

This resource is owned by the database it is backing up, and is deleted along
with the database. The actual backups are not though.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp at which this backup schedule was created and effective since.


  No backups will be created for this schedule before this time.

### #daily_recurrence

    def daily_recurrence() -> ::Google::Cloud::Firestore::Admin::V1::DailyRecurrence

**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::DailyRecurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Cloud-Firestore-Admin-V1-DailyRecurrence)) --- For a schedule that runs daily.


  Note: The following fields are mutually exclusive: `daily_recurrence`, `weekly_recurrence`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #daily_recurrence=

    def daily_recurrence=(value) -> ::Google::Cloud::Firestore::Admin::V1::DailyRecurrence

**Parameter**

- **value** ([::Google::Cloud::Firestore::Admin::V1::DailyRecurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Cloud-Firestore-Admin-V1-DailyRecurrence)) --- For a schedule that runs daily.


  Note: The following fields are mutually exclusive: `daily_recurrence`, `weekly_recurrence`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::DailyRecurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Cloud-Firestore-Admin-V1-DailyRecurrence)) --- For a schedule that runs daily.


  Note: The following fields are mutually exclusive: `daily_recurrence`, `weekly_recurrence`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The unique backup schedule identifier across all locations and databases for the given project.

  This will be auto-assigned.

  Format is
  `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`

### #retention

    def retention() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Protobuf-Duration)) --- At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.


  The maximum supported retention period is 14 weeks.

### #retention=

    def retention=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Protobuf-Duration)) --- At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.


  The maximum supported retention period is 14 weeks.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Protobuf-Duration)) --- At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.


  The maximum supported retention period is 14 weeks.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.

### #weekly_recurrence

    def weekly_recurrence() -> ::Google::Cloud::Firestore::Admin::V1::WeeklyRecurrence

**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::WeeklyRecurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Cloud-Firestore-Admin-V1-WeeklyRecurrence)) --- For a schedule that runs weekly on a specific day.


  Note: The following fields are mutually exclusive: `weekly_recurrence`, `daily_recurrence`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #weekly_recurrence=

    def weekly_recurrence=(value) -> ::Google::Cloud::Firestore::Admin::V1::WeeklyRecurrence

**Parameter**

- **value** ([::Google::Cloud::Firestore::Admin::V1::WeeklyRecurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Cloud-Firestore-Admin-V1-WeeklyRecurrence)) --- For a schedule that runs weekly on a specific day.


  Note: The following fields are mutually exclusive: `weekly_recurrence`, `daily_recurrence`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::WeeklyRecurrence](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Cloud-Firestore-Admin-V1-WeeklyRecurrence)) --- For a schedule that runs weekly on a specific day.


  Note: The following fields are mutually exclusive: `weekly_recurrence`, `daily_recurrence`. If a field in that set is populated, all other fields in the set will automatically be cleared.