Restore constructor

Restore({
  1. String? name,
  2. String? uid,
  3. Timestamp? createTime,
  4. Timestamp? updateTime,
  5. String? description,
  6. String? backup,
  7. String? cluster,
  8. RestoreConfig? restoreConfig,
  9. Map<String, String>? labels,
  10. Restore_State? state,
  11. String? stateReason,
  12. Timestamp? completeTime,
  13. int? resourcesRestoredCount,
  14. int? resourcesExcludedCount,
  15. int? resourcesFailedCount,
  16. int? volumesRestoredCount,
  17. String? etag,
})

Implementation

factory Restore({
  $core.String? name,
  $core.String? uid,
  $2.Timestamp? createTime,
  $2.Timestamp? updateTime,
  $core.String? description,
  $core.String? backup,
  $core.String? cluster,
  RestoreConfig? restoreConfig,
  $core.Map<$core.String, $core.String>? labels,
  Restore_State? state,
  $core.String? stateReason,
  $2.Timestamp? completeTime,
  $core.int? resourcesRestoredCount,
  $core.int? resourcesExcludedCount,
  $core.int? resourcesFailedCount,
  $core.int? volumesRestoredCount,
  $core.String? etag,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (description != null) {
    $result.description = description;
  }
  if (backup != null) {
    $result.backup = backup;
  }
  if (cluster != null) {
    $result.cluster = cluster;
  }
  if (restoreConfig != null) {
    $result.restoreConfig = restoreConfig;
  }
  if (labels != null) {
    $result.labels.addAll(labels);
  }
  if (state != null) {
    $result.state = state;
  }
  if (stateReason != null) {
    $result.stateReason = stateReason;
  }
  if (completeTime != null) {
    $result.completeTime = completeTime;
  }
  if (resourcesRestoredCount != null) {
    $result.resourcesRestoredCount = resourcesRestoredCount;
  }
  if (resourcesExcludedCount != null) {
    $result.resourcesExcludedCount = resourcesExcludedCount;
  }
  if (resourcesFailedCount != null) {
    $result.resourcesFailedCount = resourcesFailedCount;
  }
  if (volumesRestoredCount != null) {
    $result.volumesRestoredCount = volumesRestoredCount;
  }
  if (etag != null) {
    $result.etag = etag;
  }
  return $result;
}