SchedulingNodeAffinity constructor

SchedulingNodeAffinity({
  1. String? key,
  2. SchedulingNodeAffinity_Operator? operator,
  3. Iterable<String>? values,
})

Implementation

factory SchedulingNodeAffinity({
  $core.String? key,
  SchedulingNodeAffinity_Operator? operator,
  $core.Iterable<$core.String>? values,
}) {
  final $result = create();
  if (key != null) {
    $result.key = key;
  }
  if (operator != null) {
    $result.operator = operator;
  }
  if (values != null) {
    $result.values.addAll(values);
  }
  return $result;
}