Restore constructor
Restore({
- String? name,
- String? uid,
- Timestamp? createTime,
- Timestamp? updateTime,
- String? description,
- String? backup,
- String? cluster,
- RestoreConfig? restoreConfig,
- Map<
String, String> ? labels, - Restore_State? state,
- String? stateReason,
- Timestamp? completeTime,
- int? resourcesRestoredCount,
- int? resourcesExcludedCount,
- int? resourcesFailedCount,
- int? volumesRestoredCount,
- 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;
}