Skip to content

Commit

Permalink
Generate cluster namespace (#1365)
Browse files Browse the repository at this point in the history
* Generate cluster.allocation_explain

Signed-off-by: Thomas Farr <[email protected]>

* Generate component_template operations

Signed-off-by: Thomas Farr <[email protected]>

* Generate cluster settings operations

Signed-off-by: Thomas Farr <[email protected]>

* Generate voting_config_exclusions operations

Signed-off-by: Thomas Farr <[email protected]>

* Generate cluster.health

Signed-off-by: Thomas Farr <[email protected]>

* Generate cluster.pending_tasks

Signed-off-by: Thomas Farr <[email protected]>

* Generate cluster.remote_info

Signed-off-by: Thomas Farr <[email protected]>

* Generate cluster.reroute

Signed-off-by: Thomas Farr <[email protected]>

* Generate cluster.state

Signed-off-by: Thomas Farr <[email protected]>

* Generate cluster.stats

Signed-off-by: Thomas Farr <[email protected]>

* Fix build

Signed-off-by: Thomas Farr <[email protected]>

* Fix compile

Signed-off-by: Thomas Farr <[email protected]>

* Fix spotless

Signed-off-by: Thomas Farr <[email protected]>

---------

Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia authored Dec 23, 2024
1 parent c14325a commit be6b6d8
Show file tree
Hide file tree
Showing 116 changed files with 14,959 additions and 6,700 deletions.
40 changes: 39 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,42 @@ After:

### ShardStats renamed to IndexShardStats
- The `ShardStats` class has been renamed to `IndexShardStats`, this affects:
- `IndicesStats`'s `shards` field.
- `IndicesStats`'s `shards` field.

### AllocationExplainResponse
- The `allocationDelay`, `configuredDelay` and `remainingDelay` properties have been corrected to be of type `Time` instead of `String`.

### PutComponentTemplateRequest
- The `aliases`, `mappings` and `settings` properties have been removed as they should be set within the `template` property.

### HealthRequest
- The `level` property is now of type `ClusterHealthLevel` instead of `Level`.

### HealthResponse
- The `activeShardsPercentAsNumber` property has been corrected to be of type `double` instead of `String`.
- The `taskMaxWaitingInQueueMillis` property has been corrected to be of type `long` instead of `String`.

### PendingTask
- The `timeInQueue` property has been corrected to be of type `Time` instead of `String`.
- The `timeInQueueMillis` property has been corrected to be of type `long` instead of `int`.

### RerouteRequest
- The `metric` property is now of type `List<ClusterRerouteMetric>` instead of `List<String>`.

### StateRequest
- The `metric` property is now of type `List<ClusterStateMetric>` instead of `List<String>`.

### ClusterIndicesShards
- The `primaries`, `replication` and `total` properties have been corrected to be of type `Integer` instead of `Double`.

### ClusterProcessCpu
- The `percent` property has been corrected to be of type `double` instead of `int`.

### FieldTypes
- The `scriptCount` property has been removed as it is not supported by OpenSearch.

### FieldTypesMappings
- The `runtimeFieldTypes` property has been removed as it is not supported by OpenSearch.

### OperatingSystemMemoryInfo
- The `freePercent` and `usedPercent` properties have been corrected to be of type `double` instead of `int`.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import javax.annotation.Nullable;
import org.opensearch.client.ApiClient;
import org.opensearch.client.opensearch._types.OpenSearchException;
import org.opensearch.client.opensearch.cluster.OpenSearchClusterAsyncClient;
import org.opensearch.client.opensearch.core.InfoRequest;
import org.opensearch.client.opensearch.core.InfoResponse;
import org.opensearch.client.opensearch.dangling_indices.OpenSearchDanglingIndicesAsyncClient;
Expand All @@ -63,6 +64,10 @@ public OpenSearchAsyncClientBase(OpenSearchTransport transport, @Nullable Transp

// ----- Child clients

public OpenSearchClusterAsyncClient cluster() {
return new OpenSearchClusterAsyncClient(this.transport, this.transportOptions);
}

public OpenSearchDanglingIndicesAsyncClient danglingIndices() {
return new OpenSearchDanglingIndicesAsyncClient(this.transport, this.transportOptions);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import javax.annotation.Nullable;
import org.opensearch.client.ApiClient;
import org.opensearch.client.opensearch._types.OpenSearchException;
import org.opensearch.client.opensearch.cluster.OpenSearchClusterClient;
import org.opensearch.client.opensearch.core.InfoRequest;
import org.opensearch.client.opensearch.core.InfoResponse;
import org.opensearch.client.opensearch.dangling_indices.OpenSearchDanglingIndicesClient;
Expand All @@ -62,6 +63,10 @@ public OpenSearchClientBase(OpenSearchTransport transport, @Nullable TransportOp

// ----- Child clients

public OpenSearchClusterClient cluster() {
return new OpenSearchClusterClient(this.transport, this.transportOptions);
}

public OpenSearchDanglingIndicesClient danglingIndices() {
return new OpenSearchDanglingIndicesClient(this.transport, this.transportOptions);
}
Expand Down
Loading

0 comments on commit be6b6d8

Please sign in to comment.