Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2350,10 +2350,10 @@
if (hash.length > 1) {
hash = hash.substring(1);
}
window.location = "https://github.com/elastic/elasticsearch-specification/tree/c3d97bbbee47ac9449ae90feef71586f3809a141/specification/" + (paths[hash] || "");
window.location = "https://github.com/elastic/elasticsearch-specification/tree/be5744249a732e76125982e34c621fad6593ba9c/specification/" + (paths[hash] || "");
</script>
</head>
<body>
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/c3d97bbbee47ac9449ae90feef71586f3809a141/specification/">Elasticsearch API specification</a>.
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/be5744249a732e76125982e34c621fad6593ba9c/specification/">Elasticsearch API specification</a>.
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
*/
@JsonpDeserializable
public class NodeInfoXpackSecurity implements JsonpSerializable {
@Nullable
private final NodeInfoXpackSecuritySsl http;

private final String enabled;
Expand All @@ -74,7 +75,7 @@ public class NodeInfoXpackSecurity implements JsonpSerializable {

private NodeInfoXpackSecurity(Builder builder) {

this.http = ApiTypeHelper.requireNonNull(builder.http, this, "http");
this.http = builder.http;
this.enabled = ApiTypeHelper.requireNonNull(builder.enabled, this, "enabled");
this.transport = builder.transport;
this.authc = builder.authc;
Expand All @@ -86,8 +87,9 @@ public static NodeInfoXpackSecurity of(Function<Builder, ObjectBuilder<NodeInfoX
}

/**
* Required - API name: {@code http}
* API name: {@code http}
*/
@Nullable
public final NodeInfoXpackSecuritySsl http() {
return this.http;
}
Expand Down Expand Up @@ -126,9 +128,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) {

protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {

generator.writeKey("http");
this.http.serialize(generator, mapper);
if (this.http != null) {
generator.writeKey("http");
this.http.serialize(generator, mapper);

}
generator.writeKey("enabled");
generator.write(this.enabled);

Expand Down Expand Up @@ -159,6 +163,7 @@ public String toString() {
public static class Builder extends WithJsonObjectBuilderBase<Builder>
implements
ObjectBuilder<NodeInfoXpackSecurity> {
@Nullable
private NodeInfoXpackSecuritySsl http;

private String enabled;
Expand All @@ -170,15 +175,15 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>
private NodeInfoXpackSecurityAuthc authc;

/**
* Required - API name: {@code http}
* API name: {@code http}
*/
public final Builder http(NodeInfoXpackSecuritySsl value) {
public final Builder http(@Nullable NodeInfoXpackSecuritySsl value) {
this.http = value;
return this;
}

/**
* Required - API name: {@code http}
* API name: {@code http}
*/
public final Builder http(
Function<NodeInfoXpackSecuritySsl.Builder, ObjectBuilder<NodeInfoXpackSecuritySsl>> fn) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,17 @@
package co.elastic.clients.elasticsearch.model;

import co.elastic.clients.elasticsearch._types.ErrorCause;
import co.elastic.clients.elasticsearch._types.FieldSort;
import co.elastic.clients.elasticsearch._types.FieldValue;
import co.elastic.clients.elasticsearch._types.GeoLocation;
import co.elastic.clients.elasticsearch._types.GeoShapeRelation;
import co.elastic.clients.elasticsearch._types.SortOptions;
import co.elastic.clients.elasticsearch._types.SortOptionsBuilders;
import co.elastic.clients.elasticsearch._types.SortOrder;
import co.elastic.clients.elasticsearch._types.query_dsl.FunctionScoreQuery;
import co.elastic.clients.elasticsearch._types.query_dsl.MultiValueMode;
import co.elastic.clients.elasticsearch._types.query_dsl.Query;
import co.elastic.clients.elasticsearch._types.query_dsl.ShapeQuery;
import co.elastic.clients.elasticsearch._types.query_dsl.TermQuery;
import co.elastic.clients.json.JsonData;
import co.elastic.clients.testkit.ModelTestCase;
import co.elastic.clients.util.MapBuilder;
import org.junit.jupiter.api.Test;

Expand Down
Loading