Skip to content

Update REST API json specifications to 6.2 #3268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 5, 2018
Merged

Conversation

codebrain
Copy link
Contributor

No description provided.

@codebrain
Copy link
Contributor Author

Also includes running the API Generator tool to create the C# code.

Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some comments re: binary breaking changes.

In my opinion, values on the public REST API spec, including query string parameters, should not be removed in a minor version. This includes query string parameters because of the validation applied when Elasticsearch receives a value it does not know about.

@@ -6537,8 +6563,6 @@ public partial class ValidateQueryRequest<T> : PlainRequestBase<ValidateQueryReq
public bool? AllowNoIndices { get => Q<bool?>("allow_no_indices"); set => Q("allow_no_indices", value); }
///<summary>Whether to expand wildcard expression to concrete indices that are open, closed or both.</summary>
public ExpandWildcards? ExpandWildcards { get => Q<ExpandWildcards?>("expand_wildcards"); set => Q("expand_wildcards", value); }
///<summary>TODO: ?</summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be patched back in, in order to not break binary compatibility

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -6588,8 +6612,6 @@ public partial class ValidateQueryRequest : PlainRequestBase<ValidateQueryReques
public bool? AllowNoIndices { get => Q<bool?>("allow_no_indices"); set => Q("allow_no_indices", value); }
///<summary>Whether to expand wildcard expression to concrete indices that are open, closed or both.</summary>
public ExpandWildcards? ExpandWildcards { get => Q<ExpandWildcards?>("expand_wildcards"); set => Q("expand_wildcards", value); }
///<summary>TODO: ?</summary>
public string OperationThreading { get => Q<string>("operation_threading"); set => Q("operation_threading", value); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be patched back in, in order to not break binary compatibility

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -5438,12 +5466,10 @@ public partial class SegmentsRequest : PlainRequestBase<SegmentsRequestParameter
public bool? AllowNoIndices { get => Q<bool?>("allow_no_indices"); set => Q("allow_no_indices", value); }
///<summary>Whether to expand wildcard expression to concrete indices that are open, closed or both.</summary>
public ExpandWildcards? ExpandWildcards { get => Q<ExpandWildcards?>("expand_wildcards"); set => Q("expand_wildcards", value); }
///<summary>TODO: ?</summary>
public string OperationThreading { get => Q<string>("operation_threading"); set => Q("operation_threading", value); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be patched back in, in order to not break binary compatibility

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -3825,10 +3823,8 @@ public partial class IndicesShardStoresRequest : PlainRequestBase<IndicesShardSt
public bool? AllowNoIndices { get => Q<bool?>("allow_no_indices"); set => Q("allow_no_indices", value); }
///<summary>Whether to expand wildcard expression to concrete indices that are open, closed or both.</summary>
public ExpandWildcards? ExpandWildcards { get => Q<ExpandWildcards?>("expand_wildcards"); set => Q("expand_wildcards", value); }
///<summary>TODO: ?</summary>
public string OperationThreading { get => Q<string>("operation_threading"); set => Q("operation_threading", value); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be patched back in, in order to not break binary compatibility

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

///<summary>TODO: ?</summary>
public string OperationThreading { get => Q<string>("operation_threading"); set => Q("operation_threading", value); }
///<summary>Specify whether the request should block until the merge process is finished (default: true)</summary>
public bool? WaitForMerge { get => Q<bool?>("wait_for_merge"); set => Q("wait_for_merge", value); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be patched back in, in order to not break binary compatibility

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -2701,12 +2703,8 @@ public partial class ForceMergeRequest : PlainRequestBase<ForceMergeRequestParam
public long? MaxNumSegments { get => Q<long?>("max_num_segments"); set => Q("max_num_segments", value); }
///<summary>Specify whether the operation should only expunge deleted documents</summary>
public bool? OnlyExpungeDeletes { get => Q<bool?>("only_expunge_deletes"); set => Q("only_expunge_deletes", value); }
///<summary>TODO: ?</summary>
public string OperationThreading { get => Q<string>("operation_threading"); set => Q("operation_threading", value); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be patched back in, in order to not break binary compatibility

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codebrain codebrain merged commit f37a6f8 into 6.x Jun 5, 2018
@codebrain codebrain deleted the 6.2-rest-api-specs branch June 5, 2018 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants