Skip to content
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

Generate cluster namespace #1365

Merged
merged 13 commits into from
Dec 23, 2024
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
Loading