Skip to content

Commit c8d25a1

Browse files
Re-generate client code using latest OpenSearch API specification (2025-03-03)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a4f09fa commit c8d25a1

File tree

74 files changed

+2772
-2999
lines changed

Some content is hidden

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

74 files changed

+2772
-2999
lines changed

java-client/src/generated/java/org/opensearch/client/opensearch/_types/PluginStats.java

+58
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ public class PluginStats implements PlainJsonSerializable, ToCopyableBuilder<Plu
8787
@Nonnull
8888
private final String opensearchVersion;
8989

90+
@Nonnull
91+
private final List<String> optionalExtendedPlugins;
92+
9093
@Nonnull
9194
private final String version;
9295

@@ -102,6 +105,7 @@ private PluginStats(Builder builder) {
102105
this.licensed = builder.licensed;
103106
this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name");
104107
this.opensearchVersion = ApiTypeHelper.requireNonNull(builder.opensearchVersion, this, "opensearchVersion");
108+
this.optionalExtendedPlugins = ApiTypeHelper.unmodifiable(builder.optionalExtendedPlugins);
105109
this.version = ApiTypeHelper.requireNonNull(builder.version, this, "version");
106110
}
107111

@@ -180,6 +184,14 @@ public final String opensearchVersion() {
180184
return this.opensearchVersion;
181185
}
182186

187+
/**
188+
* API name: {@code optional_extended_plugins}
189+
*/
190+
@Nonnull
191+
public final List<String> optionalExtendedPlugins() {
192+
return this.optionalExtendedPlugins;
193+
}
194+
183195
/**
184196
* Required - API name: {@code version}
185197
*/
@@ -234,6 +246,15 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
234246
generator.writeKey("opensearch_version");
235247
generator.write(this.opensearchVersion);
236248

249+
if (ApiTypeHelper.isDefined(this.optionalExtendedPlugins)) {
250+
generator.writeKey("optional_extended_plugins");
251+
generator.writeStartArray();
252+
for (String item0 : this.optionalExtendedPlugins) {
253+
generator.write(item0);
254+
}
255+
generator.writeEnd();
256+
}
257+
237258
generator.writeKey("version");
238259
generator.write(this.version);
239260
}
@@ -266,6 +287,8 @@ public static class Builder extends ObjectBuilderBase implements CopyableBuilder
266287
private Boolean licensed;
267288
private String name;
268289
private String opensearchVersion;
290+
@Nullable
291+
private List<String> optionalExtendedPlugins;
269292
private String version;
270293

271294
public Builder() {}
@@ -280,6 +303,7 @@ private Builder(PluginStats o) {
280303
this.licensed = o.licensed;
281304
this.name = o.name;
282305
this.opensearchVersion = o.opensearchVersion;
306+
this.optionalExtendedPlugins = _listCopy(o.optionalExtendedPlugins);
283307
this.version = o.version;
284308
}
285309

@@ -293,6 +317,7 @@ private Builder(Builder o) {
293317
this.licensed = o.licensed;
294318
this.name = o.name;
295319
this.opensearchVersion = o.opensearchVersion;
320+
this.optionalExtendedPlugins = _listCopy(o.optionalExtendedPlugins);
296321
this.version = o.version;
297322
}
298323

@@ -400,6 +425,32 @@ public final Builder opensearchVersion(String value) {
400425
return this;
401426
}
402427

428+
/**
429+
* API name: {@code optional_extended_plugins}
430+
*
431+
* <p>
432+
* Adds all elements of <code>list</code> to <code>optionalExtendedPlugins</code>.
433+
* </p>
434+
*/
435+
@Nonnull
436+
public final Builder optionalExtendedPlugins(List<String> list) {
437+
this.optionalExtendedPlugins = _listAddAll(this.optionalExtendedPlugins, list);
438+
return this;
439+
}
440+
441+
/**
442+
* API name: {@code optional_extended_plugins}
443+
*
444+
* <p>
445+
* Adds one or more values to <code>optionalExtendedPlugins</code>.
446+
* </p>
447+
*/
448+
@Nonnull
449+
public final Builder optionalExtendedPlugins(String value, String... values) {
450+
this.optionalExtendedPlugins = _listAdd(this.optionalExtendedPlugins, value, values);
451+
return this;
452+
}
453+
403454
/**
404455
* Required - API name: {@code version}
405456
*/
@@ -443,6 +494,11 @@ protected static void setupPluginStatsDeserializer(ObjectDeserializer<PluginStat
443494
op.add(Builder::licensed, JsonpDeserializer.booleanDeserializer(), "licensed");
444495
op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name");
445496
op.add(Builder::opensearchVersion, JsonpDeserializer.stringDeserializer(), "opensearch_version");
497+
op.add(
498+
Builder::optionalExtendedPlugins,
499+
JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()),
500+
"optional_extended_plugins"
501+
);
446502
op.add(Builder::version, JsonpDeserializer.stringDeserializer(), "version");
447503
}
448504

@@ -458,6 +514,7 @@ public int hashCode() {
458514
result = 31 * result + Objects.hashCode(this.licensed);
459515
result = 31 * result + this.name.hashCode();
460516
result = 31 * result + this.opensearchVersion.hashCode();
517+
result = 31 * result + Objects.hashCode(this.optionalExtendedPlugins);
461518
result = 31 * result + this.version.hashCode();
462519
return result;
463520
}
@@ -476,6 +533,7 @@ public boolean equals(Object o) {
476533
&& Objects.equals(this.licensed, other.licensed)
477534
&& this.name.equals(other.name)
478535
&& this.opensearchVersion.equals(other.opensearchVersion)
536+
&& Objects.equals(this.optionalExtendedPlugins, other.optionalExtendedPlugins)
479537
&& this.version.equals(other.version);
480538
}
481539
}

java-client/src/generated/java/org/opensearch/client/opensearch/_types/aggregations/AdjacencyMatrixAggregation.java

-9
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
@Generated("org.opensearch.client.codegen.CodeGenerator")
6161
public class AdjacencyMatrixAggregation extends BucketAggregationBase
6262
implements
63-
AggregationVariant,
6463
ToCopyableBuilder<AdjacencyMatrixAggregation.Builder, AdjacencyMatrixAggregation> {
6564

6665
@Nonnull
@@ -79,14 +78,6 @@ public static AdjacencyMatrixAggregation of(
7978
return fn.apply(new Builder()).build();
8079
}
8180

82-
/**
83-
* {@link Aggregation} variant kind.
84-
*/
85-
@Override
86-
public Aggregation.Kind _aggregationKind() {
87-
return Aggregation.Kind.AdjacencyMatrix;
88-
}
89-
9081
/**
9182
* Filters used to create buckets. At least one filter is required.
9283
* <p>

0 commit comments

Comments
 (0)