ComputeScheduling constructor
ComputeScheduling({
- ComputeScheduling_OnHostMaintenance? onHostMaintenance,
- Iterable<
SchedulingNodeAffinity> ? nodeAffinities, - int? minNodeCpus,
- ComputeScheduling_RestartType? restartType,
Implementation
factory ComputeScheduling({
ComputeScheduling_OnHostMaintenance? onHostMaintenance,
$core.Iterable<SchedulingNodeAffinity>? nodeAffinities,
$core.int? minNodeCpus,
ComputeScheduling_RestartType? restartType,
}) {
final $result = create();
if (onHostMaintenance != null) {
$result.onHostMaintenance = onHostMaintenance;
}
if (nodeAffinities != null) {
$result.nodeAffinities.addAll(nodeAffinities);
}
if (minNodeCpus != null) {
$result.minNodeCpus = minNodeCpus;
}
if (restartType != null) {
$result.restartType = restartType;
}
return $result;
}