GetRestorePlanResult constructor

const GetRestorePlanResult({
  1. required String backupPlan,
  2. required String cluster,
  3. required String createTime,
  4. required String description,
  5. required String etag,
  6. required Map<String, String> labels,
  7. required String name,
  8. required RestoreConfigResponse restoreConfig,
  9. required String state,
  10. required String stateReason,
  11. required String uid,
  12. required String updateTime,
})

Creates a new GetRestorePlanResult. backupPlan Immutable. A reference to the BackupPlan from which Backups may be used as the source for Restores created via this RestorePlan. Format: projects/*/locations/*/backupPlans/*. cluster Immutable. The target cluster into which Restores created via this RestorePlan will restore data. NOTE: the cluster's region must be the same as the RestorePlan. Valid formats: - projects/*/locations/*/clusters/* - projects/*/zones/*/clusters/* createTime The timestamp when this RestorePlan resource was created. description Optional. User specified descriptive string for this RestorePlan. etag etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform restore updates in order to avoid race conditions: An etag is returned in the response to GetRestorePlan, and systems are expected to put that etag in the request to UpdateRestorePlan or DeleteRestorePlan 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 RestorePlan resource. Format: projects/*/locations/*/restorePlans/*. restoreConfig Configuration of Restores created via this RestorePlan. state State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation. stateReason Human-readable description of why RestorePlan is in the current state uid Server generated global unique identifier of UUID format. updateTime The timestamp when this RestorePlan resource was last updated.

Implementation

const GetRestorePlanResult({
  required this.backupPlan,
  required this.cluster,
  required this.createTime,
  required this.description,
  required this.etag,
  required this.labels,
  required this.name,
  required this.restoreConfig,
  required this.state,
  required this.stateReason,
  required this.uid,
  required this.updateTime,
});