Reference documentation and code samples for the Cloud Firestore V1 Client class BackupSchedule.
A backup schedule for a Cloud Firestore Database.
This resource is owned by the database it is backing up, and is deleted along with the database. The actual backups are not though.
Generated from protobuf message google.firestore.admin.v1.BackupSchedule
Namespace
Google \ Cloud \ Firestore \ Admin \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
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}
↳ create_time
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.
↳ update_time
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.
↳ retention
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.
↳ daily_recurrence
↳ weekly_recurrence
getName
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}
string
setName
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}
var
string
$this
getCreateTime
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.
hasCreateTime
clearCreateTime
setCreateTime
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.
$this
getUpdateTime
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.
hasUpdateTime
clearUpdateTime
setUpdateTime
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.
$this
getRetention
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.
hasRetention
clearRetention
setRetention
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.
$this
getDailyRecurrence
For a schedule that runs daily.
hasDailyRecurrence
setDailyRecurrence
For a schedule that runs daily.
$this
getWeeklyRecurrence
For a schedule that runs weekly on a specific day.
hasWeeklyRecurrence
setWeeklyRecurrence
For a schedule that runs weekly on a specific day.
$this
getRecurrence
string