Skip to content

Commit edc3c84

Browse files
committed
base code generation for all the following PR's as we start to implement new features
(cherry picked from commit 1438118)
1 parent 2bb4ce1 commit edc3c84

File tree

7 files changed

+358
-334
lines changed

7 files changed

+358
-334
lines changed

src/CodeGeneration/ApiGenerator/ApiGenerator.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,21 @@ public class ApiGenerator
3838
"xpack.ml.put_calendar.json",
3939
"xpack.ml.put_calendar_job.json",
4040
"xpack.ml.get_calendar_job.json",
41+
"xpack.ml.delete_forecast.json",
42+
"xpack.ml.find_file_structure.json",
4143
"xpack.ssl.certificates.json",
44+
"delete_by_query_rethrottle.json",
45+
"update_by_query_rethrottle.json",
4246

43-
// 6.4 new API's
4447
"xpack.ml.update_filter.json",
4548
"xpack.security.delete_privileges.json",
4649
"xpack.security.get_privileges.json",
50+
"xpack.security.get_user_privileges.json",
51+
"xpack.security.get_index_privileges.json",
4752
"xpack.security.has_privileges.json",
4853
"xpack.security.put_privilege.json",
4954
"xpack.security.put_privileges.json",
55+
"xpack.rollup.get_rollup_index_caps.json",
5056
"nodes.reload_secure_settings.json"
5157
};
5258

src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs

Lines changed: 222 additions & 215 deletions
Large diffs are not rendered by default.

src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs

Lines changed: 44 additions & 44 deletions
Large diffs are not rendered by default.

src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs

Lines changed: 44 additions & 44 deletions
Large diffs are not rendered by default.

src/Nest/_Generated/_Descriptors.generated.cs

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2859,6 +2859,8 @@ public MultiSearchDescriptor(){}
28592859
public MultiSearchDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys);
28602860
///<summary>A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on it's rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint.</summary>
28612861
public MultiSearchDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize);
2862+
///<summary>The number of concurrent shard requests each sub search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests</summary>
2863+
public MultiSearchDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests);
28622864
}
28632865
///<summary>descriptor for MsearchTemplate <pre>http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html</pre></summary>
28642866
public partial class MultiSearchTemplateDescriptor : RequestDescriptorBase<MultiSearchTemplateDescriptor,MultiSearchTemplateRequestParameters, IMultiSearchTemplateRequest>, IMultiSearchTemplateRequest
@@ -4003,6 +4005,8 @@ public DeleteJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){}
40034005

40044006
///<summary>True if the job should be forcefully deleted</summary>
40054007
public DeleteJobDescriptor Force(bool? force = true) => Qs("force", force);
4008+
///<summary>Should this request wait until the operation has completed before returning</summary>
4009+
public DeleteJobDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion);
40064010
}
40074011
///<summary>descriptor for XpackMlDeleteModelSnapshot <pre>http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html</pre></summary>
40084012
public partial class DeleteModelSnapshotDescriptor : RequestDescriptorBase<DeleteModelSnapshotDescriptor,DeleteModelSnapshotRequestParameters, IDeleteModelSnapshotRequest>, IDeleteModelSnapshotRequest
@@ -4559,7 +4563,7 @@ public ClearCachedRealmsDescriptor(Names realms) : base(r=>r.Required("realms",
45594563
///<summary>Comma-separated list of usernames to clear from the cache</summary>
45604564
public ClearCachedRealmsDescriptor Usernames(params string[] usernames) => Qs("usernames", usernames);
45614565
}
4562-
///<summary>descriptor for XpackSecurityClearCachedRoles <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache</pre></summary>
4566+
///<summary>descriptor for XpackSecurityClearCachedRoles <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html</pre></summary>
45634567
public partial class ClearCachedRolesDescriptor : RequestDescriptorBase<ClearCachedRolesDescriptor,ClearCachedRolesRequestParameters, IClearCachedRolesRequest>, IClearCachedRolesRequest
45644568
{
45654569
/// <summary>/_xpack/security/role/{name}/_clear_cache</summary>
@@ -4571,7 +4575,7 @@ public ClearCachedRolesDescriptor(Names name) : base(r=>r.Required("name", name)
45714575
// Request parameters
45724576

45734577
}
4574-
///<summary>descriptor for XpackSecurityDeleteRole <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role</pre></summary>
4578+
///<summary>descriptor for XpackSecurityDeleteRole <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html</pre></summary>
45754579
public partial class DeleteRoleDescriptor : RequestDescriptorBase<DeleteRoleDescriptor,DeleteRoleRequestParameters, IDeleteRoleRequest>, IDeleteRoleRequest
45764580
{
45774581
/// <summary>/_xpack/security/role/{name}</summary>
@@ -4585,7 +4589,7 @@ public DeleteRoleDescriptor(Name name) : base(r=>r.Required("name", name)){}
45854589
///<summary>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.</summary>
45864590
public DeleteRoleDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh);
45874591
}
4588-
///<summary>descriptor for XpackSecurityDeleteRoleMapping <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping</pre></summary>
4592+
///<summary>descriptor for XpackSecurityDeleteRoleMapping <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html</pre></summary>
45894593
public partial class DeleteRoleMappingDescriptor : RequestDescriptorBase<DeleteRoleMappingDescriptor,DeleteRoleMappingRequestParameters, IDeleteRoleMappingRequest>, IDeleteRoleMappingRequest
45904594
{
45914595
/// <summary>/_xpack/security/role_mapping/{name}</summary>
@@ -4599,7 +4603,7 @@ public DeleteRoleMappingDescriptor(Name name) : base(r=>r.Required("name", name)
45994603
///<summary>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.</summary>
46004604
public DeleteRoleMappingDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh);
46014605
}
4602-
///<summary>descriptor for XpackSecurityDeleteUser <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user</pre></summary>
4606+
///<summary>descriptor for XpackSecurityDeleteUser <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html</pre></summary>
46034607
public partial class DeleteUserDescriptor : RequestDescriptorBase<DeleteUserDescriptor,DeleteUserRequestParameters, IDeleteUserRequest>, IDeleteUserRequest
46044608
{
46054609
/// <summary>/_xpack/security/user/{username}</summary>
@@ -4613,7 +4617,7 @@ public DeleteUserDescriptor(Name username) : base(r=>r.Required("username", user
46134617
///<summary>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.</summary>
46144618
public DeleteUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh);
46154619
}
4616-
///<summary>descriptor for XpackSecurityDisableUser <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user</pre></summary>
4620+
///<summary>descriptor for XpackSecurityDisableUser <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html</pre></summary>
46174621
public partial class DisableUserDescriptor : RequestDescriptorBase<DisableUserDescriptor,DisableUserRequestParameters, IDisableUserRequest>, IDisableUserRequest
46184622
{
46194623
/// <summary>/_xpack/security/user/{username}/_disable</summary>
@@ -4629,7 +4633,7 @@ public DisableUserDescriptor() : base(){}
46294633
///<summary>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.</summary>
46304634
public DisableUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh);
46314635
}
4632-
///<summary>descriptor for XpackSecurityEnableUser <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user</pre></summary>
4636+
///<summary>descriptor for XpackSecurityEnableUser <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html</pre></summary>
46334637
public partial class EnableUserDescriptor : RequestDescriptorBase<EnableUserDescriptor,EnableUserRequestParameters, IEnableUserRequest>, IEnableUserRequest
46344638
{
46354639
/// <summary>/_xpack/security/user/{username}/_enable</summary>
@@ -4645,7 +4649,7 @@ public EnableUserDescriptor() : base(){}
46454649
///<summary>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.</summary>
46464650
public EnableUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh);
46474651
}
4648-
///<summary>descriptor for XpackSecurityGetRole <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role</pre></summary>
4652+
///<summary>descriptor for XpackSecurityGetRole <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html</pre></summary>
46494653
public partial class GetRoleDescriptor : RequestDescriptorBase<GetRoleDescriptor,GetRoleRequestParameters, IGetRoleRequest>, IGetRoleRequest
46504654
{
46514655
/// <summary>/_xpack/security/role/{name}</summary>
@@ -4659,7 +4663,7 @@ public GetRoleDescriptor() : base(){}
46594663
// Request parameters
46604664

46614665
}
4662-
///<summary>descriptor for XpackSecurityGetRoleMapping <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping</pre></summary>
4666+
///<summary>descriptor for XpackSecurityGetRoleMapping <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html</pre></summary>
46634667
public partial class GetRoleMappingDescriptor : RequestDescriptorBase<GetRoleMappingDescriptor,GetRoleMappingRequestParameters, IGetRoleMappingRequest>, IGetRoleMappingRequest
46644668
{
46654669
/// <summary>/_xpack/security/role_mapping/{name}</summary>
@@ -4673,15 +4677,15 @@ public GetRoleMappingDescriptor() : base(){}
46734677
// Request parameters
46744678

46754679
}
4676-
///<summary>descriptor for XpackSecurityGetToken <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token</pre></summary>
4680+
///<summary>descriptor for XpackSecurityGetToken <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html</pre></summary>
46774681
public partial class GetUserAccessTokenDescriptor : RequestDescriptorBase<GetUserAccessTokenDescriptor,GetUserAccessTokenRequestParameters, IGetUserAccessTokenRequest>, IGetUserAccessTokenRequest
46784682
{
46794683
// values part of the url path
46804684

46814685
// Request parameters
46824686

46834687
}
4684-
///<summary>descriptor for XpackSecurityGetUser <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user</pre></summary>
4688+
///<summary>descriptor for XpackSecurityGetUser <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html</pre></summary>
46854689
public partial class GetUserDescriptor : RequestDescriptorBase<GetUserDescriptor,GetUserRequestParameters, IGetUserRequest>, IGetUserRequest
46864690
{
46874691
/// <summary>/_xpack/security/user/{username}</summary>
@@ -4695,15 +4699,15 @@ public GetUserDescriptor() : base(){}
46954699
// Request parameters
46964700

46974701
}
4698-
///<summary>descriptor for XpackSecurityInvalidateToken <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token</pre></summary>
4702+
///<summary>descriptor for XpackSecurityInvalidateToken <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html</pre></summary>
46994703
public partial class InvalidateUserAccessTokenDescriptor : RequestDescriptorBase<InvalidateUserAccessTokenDescriptor,InvalidateUserAccessTokenRequestParameters, IInvalidateUserAccessTokenRequest>, IInvalidateUserAccessTokenRequest
47004704
{
47014705
// values part of the url path
47024706

47034707
// Request parameters
47044708

47054709
}
4706-
///<summary>descriptor for XpackSecurityPutRole <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role</pre></summary>
4710+
///<summary>descriptor for XpackSecurityPutRole <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html</pre></summary>
47074711
public partial class PutRoleDescriptor : RequestDescriptorBase<PutRoleDescriptor,PutRoleRequestParameters, IPutRoleRequest>, IPutRoleRequest
47084712
{
47094713
/// <summary>/_xpack/security/role/{name}</summary>
@@ -4717,7 +4721,7 @@ public PutRoleDescriptor(Name name) : base(r=>r.Required("name", name)){}
47174721
///<summary>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.</summary>
47184722
public PutRoleDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh);
47194723
}
4720-
///<summary>descriptor for XpackSecurityPutRoleMapping <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping</pre></summary>
4724+
///<summary>descriptor for XpackSecurityPutRoleMapping <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html</pre></summary>
47214725
public partial class PutRoleMappingDescriptor : RequestDescriptorBase<PutRoleMappingDescriptor,PutRoleMappingRequestParameters, IPutRoleMappingRequest>, IPutRoleMappingRequest
47224726
{
47234727
/// <summary>/_xpack/security/role_mapping/{name}</summary>
@@ -4731,7 +4735,7 @@ public PutRoleMappingDescriptor(Name name) : base(r=>r.Required("name", name)){}
47314735
///<summary>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.</summary>
47324736
public PutRoleMappingDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh);
47334737
}
4734-
///<summary>descriptor for XpackSecurityPutUser <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user</pre></summary>
4738+
///<summary>descriptor for XpackSecurityPutUser <pre>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html</pre></summary>
47354739
public partial class PutUserDescriptor : RequestDescriptorBase<PutUserDescriptor,PutUserRequestParameters, IPutUserRequest>, IPutUserRequest
47364740
{
47374741
/// <summary>/_xpack/security/user/{username}</summary>

src/Nest/_Generated/_LowLevelDispatch.generated.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,7 +2394,7 @@ internal partial class LowLevelDispatch
23942394
if (AllSetNoFallback(p.RouteValues.TaskId)) return _lowLevel.ReindexRethrottle<TResponse>(p.RouteValues.TaskId,p.RequestParameters);
23952395
break;
23962396
}
2397-
throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle", "/_update_by_query/{task_id}/_rethrottle", "/_delete_by_query/{task_id}/_rethrottle");
2397+
throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle");
23982398
}
23992399

24002400
internal Task<TResponse> ReindexRethrottleDispatchAsync<TResponse>(IRequest<ReindexRethrottleRequestParameters> p, CancellationToken ct) where TResponse : class, IElasticsearchResponse, new()
@@ -2405,7 +2405,7 @@ internal partial class LowLevelDispatch
24052405
if (AllSetNoFallback(p.RouteValues.TaskId)) return _lowLevel.ReindexRethrottleAsync<TResponse>(p.RouteValues.TaskId,p.RequestParameters,ct);
24062406
break;
24072407
}
2408-
throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle", "/_update_by_query/{task_id}/_rethrottle", "/_delete_by_query/{task_id}/_rethrottle");
2408+
throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle");
24092409
}
24102410

24112411
internal TResponse RenderSearchTemplateDispatch<TResponse>(IRequest<RenderSearchTemplateRequestParameters> p,SerializableData<IRenderSearchTemplateRequest> body) where TResponse : class, IElasticsearchResponse, new()

0 commit comments

Comments
 (0)