SDK reference / Models / Storage

BackupPlan

Kind: class

Namespace: Egulu.Sdk.Models.Storage

A backup plan: which disks, when, how long, and whether a copy goes to a peer location (ADR-0504, ADR-0511).

Properties

NameTypeJSON nameDescription
AnnotationsModels.Storage.BackupPlan_annotations?annotationsAt most 256 KiB in all; never policy input.
BackendModestring?backendModeBackend mode: SIMULATED or ARCHIVE_RESTIC.
BackupByteslong?backupBytesBytes the plan's backups occupy (the archives as stored, before encryption overhead).
BackupCountint?backupCountBackups this plan has made that still exist.
CopyTostring?copyToA peer location that receives a copy of every backup (ADR-0511); empty keeps the backups in this location only.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
Enabledbool?enabledWhether the schedule runs; a paused plan keeps its backups until they expire.
Etagstring?etag"{generation}"; send it back in If-Match.
LabelsModels.Storage.BackupPlan_labels?labelsAt most 64.
LastRestoreTestTimeDateTimeOffset?lastRestoreTestTimeWhen a backup of this plan was last restored to a new disk (the restore test; ADR-0511 item 6).
LastRunMessagestring?lastRunMessageWhy the latest run failed, in words.
LastRunStatestring?lastRunStateHow the latest run ended: SUCCEEDED, FAILED or PARTIAL (some disks failed).
LastRunTimeDateTimeOffset?lastRunTimeWhen the latest backup run started.
Locationstring?locationLocation ID where the plan and its disks are homed (for example lab-de1).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
NextRunTimeDateTimeOffset?nextRunTimeWhen the next scheduled backup is due.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
RetentionModels.Storage.BackupRetention?retentionHow long backups are kept.
ScheduleModels.Storage.BackupSchedule?scheduleWhen the plan runs.
Simulatedbool?simulatedTrue when backed by the fake driver in lab or test environments rather than the cell's real archive target.
SourcesList<string>?sourcesDisks to back up, as resource names (projects/{p}/locations/{l}/disks/{d}) or disk IDs of this location (1 to 20). File shares are not archived yet.
StateModels.Storage.BackupPlan_state?stateThe state property
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property