AddLDAPProviderRequest constructor

AddLDAPProviderRequest({
  1. String? name,
  2. Iterable<String>? servers,
  3. bool? startTls,
  4. String? baseDn,
  5. String? bindDn,
  6. String? bindPassword,
  7. String? userBase,
  8. Iterable<String>? userObjectClasses,
  9. Iterable<String>? userFilters,
  10. Duration? timeout,
  11. LDAPAttributes? attributes,
  12. Options? providerOptions,
})

Implementation

factory AddLDAPProviderRequest({
  $core.String? name,
  $core.Iterable<$core.String>? servers,
  $core.bool? startTls,
  $core.String? baseDn,
  $core.String? bindDn,
  $core.String? bindPassword,
  $core.String? userBase,
  $core.Iterable<$core.String>? userObjectClasses,
  $core.Iterable<$core.String>? userFilters,
  $7.Duration? timeout,
  $10.LDAPAttributes? attributes,
  $10.Options? providerOptions,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (servers != null) {
    $result.servers.addAll(servers);
  }
  if (startTls != null) {
    $result.startTls = startTls;
  }
  if (baseDn != null) {
    $result.baseDn = baseDn;
  }
  if (bindDn != null) {
    $result.bindDn = bindDn;
  }
  if (bindPassword != null) {
    $result.bindPassword = bindPassword;
  }
  if (userBase != null) {
    $result.userBase = userBase;
  }
  if (userObjectClasses != null) {
    $result.userObjectClasses.addAll(userObjectClasses);
  }
  if (userFilters != null) {
    $result.userFilters.addAll(userFilters);
  }
  if (timeout != null) {
    $result.timeout = timeout;
  }
  if (attributes != null) {
    $result.attributes = attributes;
  }
  if (providerOptions != null) {
    $result.providerOptions = providerOptions;
  }
  return $result;
}