NEST by Elastic and contributors

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

.NET API 4,860,416 bytes

 PutRoleMappingRequest

Request for PutRoleMapping

https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html

public bool? Enabled { get; set; }

public IDictionary<string, object> Metadata { get; set; }

public Refresh? Refresh { get; set; }

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 IEnumerable<string> Roles { get; set; }

public RoleMappingRuleBase Rules { get; set; }

public IEnumerable<string> RunAs { get; set; }

protected IPutRoleMappingRequest Self { get; }

/_security/role_mapping/{name}

Used for serialization purposes, making sure we have a parameterless constructor