RestoreConfig_SubstitutionRule constructor

RestoreConfig_SubstitutionRule({
  1. Iterable<String>? targetNamespaces,
  2. Iterable<RestoreConfig_GroupKind>? targetGroupKinds,
  3. String? targetJsonPath,
  4. String? originalValuePattern,
  5. String? newValue,
})

Implementation

factory RestoreConfig_SubstitutionRule({
  $core.Iterable<$core.String>? targetNamespaces,
  $core.Iterable<RestoreConfig_GroupKind>? targetGroupKinds,
  $core.String? targetJsonPath,
  $core.String? originalValuePattern,
  $core.String? newValue,
}) {
  final $result = create();
  if (targetNamespaces != null) {
    $result.targetNamespaces.addAll(targetNamespaces);
  }
  if (targetGroupKinds != null) {
    $result.targetGroupKinds.addAll(targetGroupKinds);
  }
  if (targetJsonPath != null) {
    $result.targetJsonPath = targetJsonPath;
  }
  if (originalValuePattern != null) {
    $result.originalValuePattern = originalValuePattern;
  }
  if (newValue != null) {
    $result.newValue = newValue;
  }
  return $result;
}