GetBackupPlanResult constructor

const GetBackupPlanResult({
  1. required BackupConfigResponse backupConfig,
  2. required ScheduleResponse backupSchedule,
  3. required String cluster,
  4. required String createTime,
  5. required bool deactivated,
  6. required String description,
  7. required String etag,
  8. required Map<String, String> labels,
  9. required String name,
  10. required int protectedPodCount,
  11. required RetentionPolicyResponse retentionPolicy,
  12. required String state,
  13. required String stateReason,
  14. required String uid,
  15. required String updateTime,
})

Creates a new GetBackupPlanResult. backupConfig Optional. Defines the configuration of Backups created via this BackupPlan. backupSchedule Optional. Defines a schedule for automatic Backup creation via this BackupPlan. cluster Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats: - projects/*/locations/*/clusters/* - projects/*/zones/*/clusters/* createTime The timestamp when this BackupPlan resource was created. deactivated Optional. This flag indicates whether this BackupPlan has been deactivated. Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups). Default: False description Optional. User specified descriptive string for this BackupPlan. etag etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup plan from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform BackupPlan updates in order to avoid race conditions: An etag is returned in the response to GetBackupPlan, and systems are expected to put that etag in the request to UpdateBackupPlan or DeleteBackupPlan to ensure that their change will be applied to the same version of the resource. labels Optional. A set of custom labels supplied by user. name The full name of the BackupPlan resource. Format: projects/*/locations/*/backupPlans/* protectedPodCount The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan. retentionPolicy Optional. RetentionPolicy governs lifecycle of Backups created under this plan. state State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to "DEACTIVATED" if the BackupPlan is deactivated on an Update stateReason Human-readable description of why BackupPlan is in the current state uid Server generated global unique identifier of UUID format. updateTime The timestamp when this BackupPlan resource was last updated.

Implementation

const GetBackupPlanResult({
  required this.backupConfig,
  required this.backupSchedule,
  required this.cluster,
  required this.createTime,
  required this.deactivated,
  required this.description,
  required this.etag,
  required this.labels,
  required this.name,
  required this.protectedPodCount,
  required this.retentionPolicy,
  required this.state,
  required this.stateReason,
  required this.uid,
  required this.updateTime,
});