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 @@ -197,8 +197,9 @@ public final Long primaryTerm() {
}

/**
* The result of the operation. Successful values are <code>created</code>,
* <code>deleted</code>, and <code>updated</code>.
* The result of the operation. Possible values are <code>created</code>,
* <code>updated</code>, <code>deleted</code>, <code>noop</code>, and
* <code>not_found</code>.
* <p>
* API name: {@code result}
*/
Expand Down Expand Up @@ -475,8 +476,9 @@ public final Builder primaryTerm(@Nullable Long value) {
}

/**
* The result of the operation. Successful values are <code>created</code>,
* <code>deleted</code>, and <code>updated</code>.
* The result of the operation. Possible values are <code>created</code>,
* <code>updated</code>, <code>deleted</code>, <code>noop</code>, and
* <code>not_found</code>.
* <p>
* API name: {@code result}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@
'eql.search.ResultPosition': 'eql/search/types.ts#L20-L32',
'esql._types.TableValuesContainer': 'esql/_types/TableValuesContainer.ts#L22-L28',
'esql.query.EsqlFormat': 'esql/query/QueryParameters.ts#L20-L29',
'esql.query.Request': 'esql/query/QueryRequest.ts#L27-L118',
'esql.query.Request': 'esql/query/QueryRequest.ts#L28-L119',
'esql.query.Response': 'esql/query/QueryResponse.ts#L22-L25',
'features._types.Feature': 'features/_types/Feature.ts#L20-L23',
'features.get_features.Request': 'features/get_features/GetFeaturesRequest.ts#L24-L55',
Expand Down Expand Up @@ -2752,41 +2752,41 @@
'security._types.Access': 'security/_types/Access.ts#L22-L31',
'security._types.ApiKey': 'security/_types/ApiKey.ts#L27-L113',
'security._types.ApiKeyType': 'security/_types/ApiKey.ts#L115-L118',
'security._types.ApplicationGlobalUserPrivileges': 'security/_types/Privileges.ts#L434-L436',
'security._types.ApplicationPrivileges': 'security/_types/Privileges.ts#L27-L40',
'security._types.ApplicationGlobalUserPrivileges': 'security/_types/Privileges.ts#L398-L400',
'security._types.ApplicationPrivileges': 'security/_types/Privileges.ts#L28-L41',
'security._types.BulkError': 'security/_types/Bulk.ts#L24-L33',
'security._types.ClusterNode': 'security/_types/ClusterNode.ts#L22-L24',
'security._types.ClusterPrivilege': 'security/_types/Privileges.ts#L42-L199',
'security._types.ClusterPrivilege': 'security/_types/Privileges.ts#L43-L200',
'security._types.CreatedStatus': 'security/_types/CreatedStatus.ts#L20-L22',
'security._types.FieldRule': 'security/_types/RoleMappingRule.ts#L35-L43',
'security._types.FieldSecurity': 'security/_types/FieldSecurity.ts#L22-L25',
'security._types.GlobalPrivilege': 'security/_types/Privileges.ts#L430-L432',
'security._types.GlobalPrivilege': 'security/_types/Privileges.ts#L394-L396',
'security._types.GrantType': 'security/_types/GrantType.ts#L20-L30',
'security._types.IndexPrivilege': 'security/_types/Privileges.ts#L386-L428',
'security._types.IndicesPrivileges': 'security/_types/Privileges.ts#L216-L242',
'security._types.IndicesPrivilegesQuery': 'security/_types/Privileges.ts#L341-L349',
'security._types.ManageUserPrivileges': 'security/_types/Privileges.ts#L438-L440',
'security._types.IndexPrivilege': 'security/_types/Privileges.ts#L350-L392',
'security._types.IndicesPrivileges': 'security/_types/Privileges.ts#L244-L244',
'security._types.IndicesPrivilegesQuery': 'security/_types/Privileges.ts#L305-L313',
'security._types.ManageUserPrivileges': 'security/_types/Privileges.ts#L402-L404',
'security._types.RealmInfo': 'security/_types/RealmInfo.ts#L22-L25',
'security._types.RemoteClusterPrivilege': 'security/_types/Privileges.ts#L201-L213',
'security._types.RemoteClusterPrivileges': 'security/_types/Privileges.ts#L278-L290',
'security._types.RemoteIndicesPrivileges': 'security/_types/Privileges.ts#L244-L276',
'security._types.RemoteUserIndicesPrivileges': 'security/_types/Privileges.ts#L316-L339',
'security._types.ReplicationAccess': 'security/_types/Privileges.ts#L442-L452',
'security._types.RemoteClusterPrivilege': 'security/_types/Privileges.ts#L202-L214',
'security._types.RemoteClusterPrivileges': 'security/_types/Privileges.ts#L258-L270',
'security._types.RemoteIndicesPrivileges': 'security/_types/Privileges.ts#L246-L256',
'security._types.RemoteUserIndicesPrivileges': 'security/_types/Privileges.ts#L299-L303',
'security._types.ReplicationAccess': 'security/_types/Privileges.ts#L406-L416',
'security._types.Restriction': 'security/_types/RoleDescriptor.ts#L90-L96',
'security._types.RestrictionWorkflow': 'security/_types/RoleDescriptor.ts#L98-L101',
'security._types.RoleDescriptor': 'security/_types/RoleDescriptor.ts#L33-L83',
'security._types.RoleDescriptorRead': 'security/_types/RoleDescriptor.ts#L85-L88',
'security._types.RoleMapping': 'security/_types/RoleMapping.ts#L25-L33',
'security._types.RoleMappingRule': 'security/_types/RoleMappingRule.ts#L22-L33',
'security._types.RoleTemplate': 'security/_types/RoleTemplate.ts#L28-L31',
'security._types.RoleTemplateInlineQuery': 'security/_types/Privileges.ts#L383-L384',
'security._types.RoleTemplateQuery': 'security/_types/Privileges.ts#L351-L361',
'security._types.RoleTemplateScript': 'security/_types/Privileges.ts#L363-L381',
'security._types.SearchAccess': 'security/_types/Privileges.ts#L454-L474',
'security._types.RoleTemplateInlineQuery': 'security/_types/Privileges.ts#L347-L348',
'security._types.RoleTemplateQuery': 'security/_types/Privileges.ts#L315-L325',
'security._types.RoleTemplateScript': 'security/_types/Privileges.ts#L327-L345',
'security._types.SearchAccess': 'security/_types/Privileges.ts#L418-L438',
'security._types.SecuritySettings': 'security/_types/SecuritySettings.ts#L22-L24',
'security._types.TemplateFormat': 'security/_types/RoleTemplate.ts#L22-L25',
'security._types.User': 'security/_types/User.ts#L23-L31',
'security._types.UserIndicesPrivileges': 'security/_types/Privileges.ts#L292-L314',
'security._types.UserIndicesPrivileges': 'security/_types/Privileges.ts#L296-L297',
'security._types.UserProfile': 'security/_types/UserProfile.ts#L41-L47',
'security._types.UserProfileHitMetadata': 'security/_types/UserProfile.ts#L27-L30',
'security._types.UserProfileUser': 'security/_types/UserProfile.ts#L32-L39',
Expand Down Expand Up @@ -3132,10 +3132,10 @@
'transform._types.PivotGroupByContainer': 'transform/_types/Transform.ts#L70-L78',
'transform._types.RetentionPolicy': 'transform/_types/Transform.ts#L88-L96',
'transform._types.RetentionPolicyContainer': 'transform/_types/Transform.ts#L80-L86',
'transform._types.Settings': 'transform/_types/Transform.ts#L98-L154',
'transform._types.Source': 'transform/_types/Transform.ts#L156-L175',
'transform._types.SyncContainer': 'transform/_types/Transform.ts#L179-L185',
'transform._types.TimeSync': 'transform/_types/Transform.ts#L187-L199',
'transform._types.Settings': 'transform/_types/Transform.ts#L98-L166',
'transform._types.Source': 'transform/_types/Transform.ts#L168-L187',
'transform._types.SyncContainer': 'transform/_types/Transform.ts#L191-L197',
'transform._types.TimeSync': 'transform/_types/Transform.ts#L199-L211',
'transform.delete_transform.Request': 'transform/delete_transform/DeleteTransformRequest.ts#L24-L65',
'transform.delete_transform.Response': 'transform/delete_transform/DeleteTransformResponse.ts#L22-L24',
'transform.get_node_stats.Request': 'transform/get_node_stats/GetNodeStatsRequest.ts#L23-L40',
Expand Down Expand Up @@ -3378,10 +3378,10 @@
if (hash.length > 1) {
hash = hash.substring(1);
}
window.location = "https://github.com/elastic/elasticsearch-specification/tree/3666dcf13c05c73516c9dd5fc0fcaeed0e557da2/specification/" + (paths[hash] || "");
window.location = "https://github.com/elastic/elasticsearch-specification/tree/6ee016a765be615b0205fc209d3d3c515044689d/specification/" + (paths[hash] || "");
</script>
</head>
<body>
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/3666dcf13c05c73516c9dd5fc0fcaeed0e557da2/specification/">Elasticsearch API specification</a>.
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/6ee016a765be615b0205fc209d3d3c515044689d/specification/">Elasticsearch API specification</a>.
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
*/
@JsonpDeserializable
public class RemoteUserIndicesPrivileges implements JsonpSerializable {
private final List<String> clusters;

private final List<FieldSecurity> fieldSecurity;

private final List<String> names;
Expand All @@ -73,26 +75,31 @@ public class RemoteUserIndicesPrivileges implements JsonpSerializable {

private final boolean allowRestrictedIndices;

private final List<String> clusters;

// ---------------------------------------------------------------------------------------------

private RemoteUserIndicesPrivileges(Builder builder) {

this.clusters = ApiTypeHelper.unmodifiableRequired(builder.clusters, this, "clusters");
this.fieldSecurity = ApiTypeHelper.unmodifiable(builder.fieldSecurity);
this.names = ApiTypeHelper.unmodifiableRequired(builder.names, this, "names");
this.privileges = ApiTypeHelper.unmodifiableRequired(builder.privileges, this, "privileges");
this.query = ApiTypeHelper.unmodifiable(builder.query);
this.allowRestrictedIndices = ApiTypeHelper.requireNonNull(builder.allowRestrictedIndices, this,
"allowRestrictedIndices", false);
this.clusters = ApiTypeHelper.unmodifiableRequired(builder.clusters, this, "clusters");

}

public static RemoteUserIndicesPrivileges of(Function<Builder, ObjectBuilder<RemoteUserIndicesPrivileges>> fn) {
return fn.apply(new Builder()).build();
}

/**
* Required - API name: {@code clusters}
*/
public final List<String> clusters() {
return this.clusters;
}

/**
* The document fields that the owners of the role have read access to.
* <p>
Expand Down Expand Up @@ -147,13 +154,6 @@ public final boolean allowRestrictedIndices() {
return this.allowRestrictedIndices;
}

/**
* Required - API name: {@code clusters}
*/
public final List<String> clusters() {
return this.clusters;
}

/**
* Serialize this object to JSON.
*/
Expand All @@ -165,6 +165,16 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) {

protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {

if (ApiTypeHelper.isDefined(this.clusters)) {
generator.writeKey("clusters");
generator.writeStartArray();
for (String item0 : this.clusters) {
generator.write(item0);

}
generator.writeEnd();

}
if (ApiTypeHelper.isDefined(this.fieldSecurity)) {
generator.writeKey("field_security");
generator.writeStartArray();
Expand Down Expand Up @@ -208,17 +218,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
generator.writeKey("allow_restricted_indices");
generator.write(this.allowRestrictedIndices);

if (ApiTypeHelper.isDefined(this.clusters)) {
generator.writeKey("clusters");
generator.writeStartArray();
for (String item0 : this.clusters) {
generator.write(item0);

}
generator.writeEnd();

}

}

@Override
Expand All @@ -235,6 +234,8 @@ public String toString() {
public static class Builder extends WithJsonObjectBuilderBase<Builder>
implements
ObjectBuilder<RemoteUserIndicesPrivileges> {
private List<String> clusters;

@Nullable
private List<FieldSecurity> fieldSecurity;

Expand All @@ -247,19 +248,37 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>

private Boolean allowRestrictedIndices;

private List<String> clusters;

public Builder() {
}
private Builder(RemoteUserIndicesPrivileges instance) {
this.clusters = instance.clusters;
this.fieldSecurity = instance.fieldSecurity;
this.names = instance.names;
this.privileges = instance.privileges;
this.query = instance.query;
this.allowRestrictedIndices = instance.allowRestrictedIndices;
this.clusters = instance.clusters;

}
/**
* Required - API name: {@code clusters}
* <p>
* Adds all elements of <code>list</code> to <code>clusters</code>.
*/
public final Builder clusters(List<String> list) {
this.clusters = _listAddAll(this.clusters, list);
return this;
}

/**
* Required - API name: {@code clusters}
* <p>
* Adds one or more values to <code>clusters</code>.
*/
public final Builder clusters(String value, String... values) {
this.clusters = _listAdd(this.clusters, value, values);
return this;
}

/**
* The document fields that the owners of the role have read access to.
* <p>
Expand Down Expand Up @@ -417,26 +436,6 @@ public final Builder allowRestrictedIndices(boolean value) {
return this;
}

/**
* Required - API name: {@code clusters}
* <p>
* Adds all elements of <code>list</code> to <code>clusters</code>.
*/
public final Builder clusters(List<String> list) {
this.clusters = _listAddAll(this.clusters, list);
return this;
}

/**
* Required - API name: {@code clusters}
* <p>
* Adds one or more values to <code>clusters</code>.
*/
public final Builder clusters(String value, String... values) {
this.clusters = _listAdd(this.clusters, value, values);
return this;
}

@Override
protected Builder self() {
return this;
Expand Down Expand Up @@ -472,15 +471,15 @@ public Builder rebuild() {
protected static void setupRemoteUserIndicesPrivilegesDeserializer(
ObjectDeserializer<RemoteUserIndicesPrivileges.Builder> op) {

op.add(Builder::clusters, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()),
"clusters");
op.add(Builder::fieldSecurity, JsonpDeserializer.arrayDeserializer(FieldSecurity._DESERIALIZER),
"field_security");
op.add(Builder::names, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "names");
op.add(Builder::privileges, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()),
"privileges");
op.add(Builder::query, JsonpDeserializer.arrayDeserializer(IndicesPrivilegesQuery._DESERIALIZER), "query");
op.add(Builder::allowRestrictedIndices, JsonpDeserializer.booleanDeserializer(), "allow_restricted_indices");
op.add(Builder::clusters, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()),
"clusters");

}

Expand Down
Loading
Loading