forked from opensearch-project/opensearch-net
-
Notifications
You must be signed in to change notification settings - Fork 0
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
OpenSearch 2.0 essential support #29
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fbd850d
Rename `master` node role to `cluster_manager` as it was done in Open…
Yury-Fridlyand e481bbd
Remove validation for indices segments stats.
Yury-Fridlyand a021357
Remove tests for `_type` validation in mapping APIs as it was removed…
Yury-Fridlyand b9a0f40
Remove usage of deprecated `search.remote` settings.
Yury-Fridlyand e1641fa
Update abstractions package - patch to support OpenSearch 2.0. Update…
Yury-Fridlyand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
packages/opensearch.opensearch.ephemeral/0.1.0-canary.0.276/.nupkg.metadata
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-75.2 KB
...rch.ephemeral/0.1.0-canary.0.276/opensearch.opensearch.ephemeral.0.1.0-canary.0.276.nupkg
Binary file not shown.
1 change: 0 additions & 1 deletion
1
...emeral/0.1.0-canary.0.276/opensearch.opensearch.ephemeral.0.1.0-canary.0.276.nupkg.sha512
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/opensearch.opensearch.ephemeral/0.1.0-canary.0.277/.nupkg.metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"version": 2, | ||
"contentHash": "76uDTVvMlMqIw47JMlnMXAYoYjMocRgirue/XJP+YQ2p/UGtWD9m8OTvhwCKWHtEO5pZG8+YqAzjEiUYLbKZwg==", | ||
"source": null | ||
} | ||
Binary file added
BIN
+75.8 KB
...rch.ephemeral/0.1.0-canary.0.277/opensearch.opensearch.ephemeral.0.1.0-canary.0.277.nupkg
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...emeral/0.1.0-canary.0.277/opensearch.opensearch.ephemeral.0.1.0-canary.0.277.nupkg.sha512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
76uDTVvMlMqIw47JMlnMXAYoYjMocRgirue/XJP+YQ2p/UGtWD9m8OTvhwCKWHtEO5pZG8+YqAzjEiUYLbKZwg== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
packages/opensearch.opensearch.managed/0.1.0-canary.0.276/.nupkg.metadata
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-69.5 KB
...nsearch.managed/0.1.0-canary.0.276/opensearch.opensearch.managed.0.1.0-canary.0.276.nupkg
Binary file not shown.
1 change: 0 additions & 1 deletion
1
....managed/0.1.0-canary.0.276/opensearch.opensearch.managed.0.1.0-canary.0.276.nupkg.sha512
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/opensearch.opensearch.managed/0.1.0-canary.0.277/.nupkg.metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"version": 2, | ||
"contentHash": "d2mEKkGQXXXWTvqqCO0eqwLbFBzlKvh1zdHtbn5Feg1rNX+6gpfMwZUkXCyQjRTDtTOYWz5MyCO42KaYFli98w==", | ||
"source": null | ||
} |
Binary file added
BIN
+69.5 KB
...nsearch.managed/0.1.0-canary.0.277/opensearch.opensearch.managed.0.1.0-canary.0.277.nupkg
Binary file not shown.
1 change: 1 addition & 0 deletions
1
....managed/0.1.0-canary.0.277/opensearch.opensearch.managed.0.1.0-canary.0.277.nupkg.sha512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d2mEKkGQXXXWTvqqCO0eqwLbFBzlKvh1zdHtbn5Feg1rNX+6gpfMwZUkXCyQjRTDtTOYWz5MyCO42KaYFli98w== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
packages/opensearch.opensearch.xunit/0.1.0-canary.0.276/.nupkg.metadata
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-68.6 KB
....opensearch.xunit/0.1.0-canary.0.276/opensearch.opensearch.xunit.0.1.0-canary.0.276.nupkg
Binary file not shown.
1 change: 0 additions & 1 deletion
1
...arch.xunit/0.1.0-canary.0.276/opensearch.opensearch.xunit.0.1.0-canary.0.276.nupkg.sha512
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/opensearch.opensearch.xunit/0.1.0-canary.0.277/.nupkg.metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"version": 2, | ||
"contentHash": "ZI7vWwWba6OdFA4KhrF8Nt0n45E+eSa/6OQx+WJ2lQqZ0ccmyu7gfQ1S8rvAImJ7PofqII5wWwtX+TGO5Im3wA==", | ||
"source": null | ||
} |
Binary file added
BIN
+68.6 KB
....opensearch.xunit/0.1.0-canary.0.277/opensearch.opensearch.xunit.0.1.0-canary.0.277.nupkg
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...arch.xunit/0.1.0-canary.0.277/opensearch.opensearch.xunit.0.1.0-canary.0.277.nupkg.sha512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ZI7vWwWba6OdFA4KhrF8Nt0n45E+eSa/6OQx+WJ2lQqZ0ccmyu7gfQ1S8rvAImJ7PofqII5wWwtX+TGO5Im3wA== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
packages/opensearch.stack.artifactsapi/0.1.0-canary.0.276/.nupkg.metadata
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-55.5 KB
...ck.artifactsapi/0.1.0-canary.0.276/opensearch.stack.artifactsapi.0.1.0-canary.0.276.nupkg
Binary file not shown.
1 change: 0 additions & 1 deletion
1
...factsapi/0.1.0-canary.0.276/opensearch.stack.artifactsapi.0.1.0-canary.0.276.nupkg.sha512
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/opensearch.stack.artifactsapi/0.1.0-canary.0.277/.nupkg.metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"version": 2, | ||
"contentHash": "xsPBSZyg5QDV4+y9dBFlds0xHmG4GBv+jZQ88r/4aRqIj0qh5eJTNplz3EwZZyFW7Q6uvxrZR/oQ5fnugWaBPg==", | ||
"source": null | ||
} |
Binary file added
BIN
+55.5 KB
...ck.artifactsapi/0.1.0-canary.0.277/opensearch.stack.artifactsapi.0.1.0-canary.0.277.nupkg
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...factsapi/0.1.0-canary.0.277/opensearch.stack.artifactsapi.0.1.0-canary.0.277.nupkg.sha512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
xsPBSZyg5QDV4+y9dBFlds0xHmG4GBv+jZQ88r/4aRqIj0qh5eJTNplz3EwZZyFW7Q6uvxrZR/oQ5fnugWaBPg== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
src/ApiGenerator/RestSpecification/Core/cat.cluster_manager.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"cat.cluster_manager":{ | ||
"documentation":{ | ||
"url":"https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-master/", | ||
"description":"Returns information about the cluster-manager node." | ||
}, | ||
"stability":"stable", | ||
"url":{ | ||
"paths":[ | ||
{ | ||
"path":"/_cat/cluster_manager", | ||
"methods":[ | ||
"GET" | ||
] | ||
}, | ||
{ | ||
"path":"/_cat/master", | ||
"methods":[ | ||
"GET" | ||
], | ||
"deprecated":{ | ||
"version":"2.0.0", | ||
"description":"To promote inclusive language, please use '/_cat/cluster_manager' instead." | ||
} | ||
} | ||
] | ||
}, | ||
"params":{ | ||
"format":{ | ||
"type":"string", | ||
"description":"a short version of the Accept header, e.g. json, yaml" | ||
}, | ||
"local":{ | ||
"type":"boolean", | ||
"description":"Return local information, do not retrieve the state from cluster-manager node (default: false)" | ||
}, | ||
"master_timeout":{ | ||
"type":"time", | ||
"description":"Explicit operation timeout for connection to master node", | ||
"deprecated":{ | ||
"version":"2.0.0", | ||
"description":"To promote inclusive language, use 'cluster_manager_timeout' instead." | ||
} | ||
}, | ||
"cluster_manager_timeout":{ | ||
"type":"time", | ||
"description":"Explicit operation timeout for connection to cluster-manager node" | ||
}, | ||
"h":{ | ||
"type":"list", | ||
"description":"Comma-separated list of column names to display" | ||
}, | ||
"help":{ | ||
"type":"boolean", | ||
"description":"Return help information", | ||
"default":false | ||
}, | ||
"s":{ | ||
"type":"list", | ||
"description":"Comma-separated list of column names or column aliases to sort by" | ||
}, | ||
"v":{ | ||
"type":"boolean", | ||
"description":"Verbose mode. Display column headers", | ||
"default":false | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/OpenSearch.Client/Cat/CatClusterManager/CatClusterManagerRecord.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
using System.Runtime.Serialization; | ||
|
||
namespace OpenSearch.Client | ||
{ | ||
[DataContract] | ||
public class CatClusterManagerRecord : ICatRecord | ||
{ | ||
[DataMember(Name ="id")] | ||
public string Id { get; set; } | ||
|
||
[DataMember(Name ="ip")] | ||
public string Ip { get; set; } | ||
|
||
[DataMember(Name ="node")] | ||
public string Node { get; set; } | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
src/OpenSearch.Client/Cat/CatClusterManager/CatClusterManagerRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
namespace OpenSearch.Client | ||
{ | ||
[MapsApi("cat.cluster_manager.json")] | ||
public partial interface ICatClusterManagerRequest { } | ||
|
||
public partial class CatClusterManagerRequest { } | ||
|
||
public partial class CatClusterManagerDescriptor { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need a new line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be, but it is an autogenerated file.