NEST by Elastic and contributors

<PackageReference Include="NEST" Version="5.6.6" />

.NET API 4,838,912 bytes

 EnableUserDescriptor

descriptor for XpackSecurityEnableUser https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user

/_xpack/security/user/{username}/_enable

public EnableUserDescriptor ErrorTrace(bool error_trace = true)

Include the stack trace of returned errors.

public EnableUserDescriptor FilterPath(string[] filter_path)

A comma-separated list of filters used to reduce the respone.

public EnableUserDescriptor Human(bool human = true)

Return human readable values for statistics.

public EnableUserDescriptor Pretty(bool pretty = true)

Pretty format the returned JSON response.

If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.

public EnableUserDescriptor Source(string source)

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

The username of the user to enable