@@ -15,6 +15,9 @@ public partial interface IPutRoleRequest
1515 [ JsonProperty ( "indices" ) ]
1616 IEnumerable < IIndicesPrivileges > Indices { get ; set ; }
1717
18+ [ JsonProperty ( "metadata" ) ]
19+ IDictionary < string , object > Metadata { get ; set ; }
20+
1821 }
1922
2023 public partial class PutRoleRequest
@@ -24,6 +27,8 @@ public partial class PutRoleRequest
2427 public IEnumerable < string > RunAs { get ; set ; }
2528
2629 public IEnumerable < IIndicesPrivileges > Indices { get ; set ; }
30+
31+ public IDictionary < string , object > Metadata { get ; set ; }
2732 }
2833
2934 [ DescriptorFor ( "XpackSecurityPutRole" ) ]
@@ -32,6 +37,7 @@ public partial class PutRoleDescriptor
3237 IEnumerable < string > IPutRoleRequest . Cluster { get ; set ; }
3338 IEnumerable < string > IPutRoleRequest . RunAs { get ; set ; }
3439 IEnumerable < IIndicesPrivileges > IPutRoleRequest . Indices { get ; set ; }
40+ IDictionary < string , object > IPutRoleRequest . Metadata { get ; set ; }
3541
3642 public PutRoleDescriptor Cluster ( IEnumerable < string > clusters ) => Assign ( a => a . Cluster = clusters ) ;
3743 public PutRoleDescriptor Cluster ( params string [ ] clusters ) => Assign ( a => a . Cluster = clusters ) ;
@@ -45,5 +51,10 @@ public partial class PutRoleDescriptor
4551 public PutRoleDescriptor Indices ( Func < IndicesPrivilegesDescriptor , IPromise < IList < IIndicesPrivileges > > > selector ) =>
4652 Assign ( a => a . Indices = selector ? . Invoke ( new IndicesPrivilegesDescriptor ( ) ) ? . Value ) ;
4753
54+
55+ public PutRoleDescriptor Metadata ( IDictionary < string , object > metadata ) => Assign ( a => a . Metadata = metadata ) ;
56+ public PutRoleDescriptor Metadata ( Func < FluentDictionary < string , object > , IDictionary < string , object > > selector ) =>
57+ Assign ( a => a . Metadata = selector ? . Invoke ( new FluentDictionary < string , object > ( ) ) ) ;
58+
4859 }
4960}
0 commit comments