Skip to content

Commit 4cbb17f

Browse files
authored
Generate nodes namespace (#1372)
* Generate nodes.info Signed-off-by: Thomas Farr <[email protected]> * Generate nodes.reload_secure_settings Signed-off-by: Thomas Farr <[email protected]> * Generate nodes.stats Signed-off-by: Thomas Farr <[email protected]> * Fix build Signed-off-by: Thomas Farr <[email protected]> * Generate nodes.usage Signed-off-by: Thomas Farr <[email protected]> * Simplify operation filtering Signed-off-by: Thomas Farr <[email protected]> * Extra node info fields Signed-off-by: Thomas Farr <[email protected]> * Fix tests Signed-off-by: Thomas Farr <[email protected]> * Fix tests Signed-off-by: Thomas Farr <[email protected]> --------- Signed-off-by: Thomas Farr <[email protected]>
1 parent 0a8d8cd commit 4cbb17f

File tree

196 files changed

+40269
-11123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+40269
-11123
lines changed

UPGRADING.md

+110-1
Original file line numberDiff line numberDiff line change
@@ -317,4 +317,113 @@ After:
317317
- The `runtimeFieldTypes` property has been removed as it is not supported by OpenSearch.
318318

319319
### OperatingSystemMemoryInfo
320-
- The `freePercent` and `usedPercent` properties have been corrected to be of type `double` instead of `int`.
320+
- The `freePercent` and `usedPercent` properties have been corrected to be of type `double` instead of `int`.
321+
322+
### NodeInfoSettingsHttpType
323+
- The `NodeInfoSettingsHttpType` class is now an untagged union between `String` and `NodeInfoSettingsHttpTypeConfig`.
324+
325+
### NodeInfoSettingsTransportType
326+
- The `NodeInfoSettingsHttpType` class is now an untagged union between `String` and `NodeInfoSettingsHttpTypeConfig`.
327+
328+
### NodeThreadPoolInfo
329+
- The `keepAlive` property has been corrected to be of type `Time` instead of `String`.
330+
331+
### NodesInfoRequest
332+
- The `metric` property is now of type `List<NodesInfoMetric>` instead of `List<String>`.
333+
- The `clusterManagerTimeout` and `masterTimeout` properties have been removed as they are not supported by OpenSearch.
334+
335+
### NodeReloadResult
336+
- The `NodeReloadResult` class has been corrected to be an object with an optional `reloadException` instead of a union of stats and error.
337+
338+
### NodesStatsRequest
339+
- The `groups` property has been corrected to be of type `List<String>` instead of `Boolean`.
340+
- The `indexMetric` property is now of type `List<NodesStatsIndexMetric>` instead of `List<String>`.
341+
- The `metric` property is now of type `List<NodesStatsMetric>` instead of `List<String>`.
342+
- The `includeUnloadedSegments`, `masterTimeout` and `clusterManagerTimeout` properties have been removed as they are not supported by OpenSearch.
343+
344+
### nodes.AdaptiveSelection
345+
- The `AdaptiveSelection` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
346+
347+
### nodes.Breaker
348+
- The `Breaker` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
349+
- The `overhead` property has been corrected to be of type `double` instead of `float`.
350+
- The `tripped` property has been corrected to be of type `long` instead of `float`.
351+
352+
### nodes.DataPathStats
353+
- The `DataPathStats` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
354+
355+
### nodes.ExtendedMemoryStats
356+
- The `ExtendedMemoryStats` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
357+
- The `freePercent` and `usedPercent` properties have been corrected to be of type `double` instead of `int`.
358+
359+
### nodes.FileSystem
360+
- The `FileSystem` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
361+
362+
### nodes.FileSystemTotal
363+
- The `FileSystemTotal` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
364+
365+
### nodes.GarbageCollector
366+
- The `GarbageCollector` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
367+
368+
### nodes.GarbageCollectorTotal
369+
- The `GarbageCollectorTotal` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
370+
371+
### nodes.Http
372+
- The `Http` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
373+
- The `currentOpen` property has been corrected to be of type `long` instead of `int`.
374+
375+
### nodes.Ingest
376+
- The `Ingest` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
377+
378+
### nodes.IngestTotal
379+
- The `IngestTotal` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
380+
381+
### nodes.Jvm
382+
- The `Jvm` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
383+
- The `mem` property is now of type `JvmMemoryStats` instead of `MemoryStats`.
384+
385+
### nodes.JvmClasses
386+
- The `JvmClasses` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
387+
388+
### nodes.JvmThreads
389+
- The `JvmThreads` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
390+
391+
### nodes.KeyedProcessor
392+
- The `KeyedProcessor` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
393+
- The `statistics` property has had its naming corrected to `stats` and its type corrected to `Processor`.
394+
395+
### nodes.MemoryStats
396+
- The `MemoryStats` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
397+
- The `resident`, `residentInBytes`, `share`, `shareInBytes`, `totalVirtual` and `totalVirtualInBytes` properties have been removed as they are not returned by OpenSearch.
398+
399+
### nodes.NodeBufferPool
400+
- The `NodeBufferPool` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
401+
402+
### nodes.OperatingSystem
403+
- The `OperatingSystem` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
404+
- The `cpu` property is now of type `OperatingSystemCpuStats` instead of `Cpu`.
405+
406+
### nodes.Process
407+
- The `Process` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
408+
- The `cpu` property is now of type `ProcessCpuStats` instead of `Cpu`.
409+
- The `mem` property is now of type `ProcessMemoryStats` instead of `MemoryStats`.
410+
- The `openFileDescriptors` property has been corrected to be of type `long` instead of `int`.
411+
412+
### nodes.Stats
413+
- The `Stats` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
414+
- The `indices` property is now of type `NodesIndicesStats` instead of `IndexStats`.
415+
- The `script` property is now of type `ScriptStats` instead of `Scripting`.
416+
417+
### nodes.ThreadCount
418+
- The `ThreadCount` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
419+
420+
### nodes.Transport
421+
- The `Transport` class has been moved from the `org.opensearch.client.opensearch.nodes` package to the `org.opensearch.client.opensearch.nodes.stats` package.
422+
- The `serverOpen` property has been corrected to be of type `long` instead of `int`.
423+
424+
### NodesUsageRequest
425+
- The `metric` property is now of type `List<NodesUsageMetric>` instead of `List<String>`.
426+
427+
### NodeUsage
428+
- The `restActions` property has been corrected to be of type `Map<String, Long>` instead of `Map<String, Integer>`.
429+
- The `since` and `timestamp` properties have been corrected to be of type `long` instead of `String`.

java-client/src/generated/java/org/opensearch/client/opensearch/OpenSearchAsyncClientBase.java

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import org.opensearch.client.opensearch.dangling_indices.OpenSearchDanglingIndicesAsyncClient;
4949
import org.opensearch.client.opensearch.indices.OpenSearchIndicesAsyncClient;
5050
import org.opensearch.client.opensearch.ml.OpenSearchMlAsyncClient;
51+
import org.opensearch.client.opensearch.nodes.OpenSearchNodesAsyncClient;
5152
import org.opensearch.client.opensearch.snapshot.OpenSearchSnapshotAsyncClient;
5253
import org.opensearch.client.opensearch.tasks.OpenSearchTasksAsyncClient;
5354
import org.opensearch.client.transport.OpenSearchTransport;
@@ -80,6 +81,10 @@ public OpenSearchMlAsyncClient ml() {
8081
return new OpenSearchMlAsyncClient(this.transport, this.transportOptions);
8182
}
8283

84+
public OpenSearchNodesAsyncClient nodes() {
85+
return new OpenSearchNodesAsyncClient(this.transport, this.transportOptions);
86+
}
87+
8388
public OpenSearchSnapshotAsyncClient snapshot() {
8489
return new OpenSearchSnapshotAsyncClient(this.transport, this.transportOptions);
8590
}

java-client/src/generated/java/org/opensearch/client/opensearch/OpenSearchClientBase.java

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import org.opensearch.client.opensearch.dangling_indices.OpenSearchDanglingIndicesClient;
4848
import org.opensearch.client.opensearch.indices.OpenSearchIndicesClient;
4949
import org.opensearch.client.opensearch.ml.OpenSearchMlClient;
50+
import org.opensearch.client.opensearch.nodes.OpenSearchNodesClient;
5051
import org.opensearch.client.opensearch.snapshot.OpenSearchSnapshotClient;
5152
import org.opensearch.client.opensearch.tasks.OpenSearchTasksClient;
5253
import org.opensearch.client.transport.OpenSearchTransport;
@@ -79,6 +80,10 @@ public OpenSearchMlClient ml() {
7980
return new OpenSearchMlClient(this.transport, this.transportOptions);
8081
}
8182

83+
public OpenSearchNodesClient nodes() {
84+
return new OpenSearchNodesClient(this.transport, this.transportOptions);
85+
}
86+
8287
public OpenSearchSnapshotClient snapshot() {
8388
return new OpenSearchSnapshotClient(this.transport, this.transportOptions);
8489
}

0 commit comments

Comments
 (0)