ComputeScheduling constructor

ComputeScheduling({
  1. ComputeScheduling_OnHostMaintenance? onHostMaintenance,
  2. Iterable<SchedulingNodeAffinity>? nodeAffinities,
  3. int? minNodeCpus,
  4. 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;
}