Skip to content

Commit fb5d5f2

Browse files
committed
Add getters for dictionary responses
1 parent 2b5f3d2 commit fb5d5f2

24 files changed

+168
-0
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, ClusterRemoteInfo> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable ClusterRemoteInfo get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, Lifecycle> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable Lifecycle get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, IndexAliases> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable IndexAliases get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ public final Map<String, TypeFieldMappings> result() {
7373
return this.result;
7474
}
7575

76+
/**
77+
* Get an element of {@code result}.
78+
*/
79+
public final @Nullable TypeFieldMappings get(String key) {
80+
return this.result.get(key);
81+
}
82+
7683
/**
7784
* Serialize this value to JSON.
7885
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public final Map<String, IndexState> result() {
7171
return this.result;
7272
}
7373

74+
/**
75+
* Get an element of {@code result}.
76+
*/
77+
public final @Nullable IndexState get(String key) {
78+
return this.result.get(key);
79+
}
80+
7481
/**
7582
* Serialize this value to JSON.
7683
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public final Map<String, IndexState> result() {
7171
return this.result;
7272
}
7373

74+
/**
75+
* Get an element of {@code result}.
76+
*/
77+
public final @Nullable IndexState get(String key) {
78+
return this.result.get(key);
79+
}
80+
7481
/**
7582
* Serialize this value to JSON.
7683
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, IndexMappingRecord> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable IndexMappingRecord get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public final Map<String, TemplateMapping> result() {
7171
return this.result;
7272
}
7373

74+
/**
75+
* Get an element of {@code result}.
76+
*/
77+
public final @Nullable TemplateMapping get(String key) {
78+
return this.result.get(key);
79+
}
80+
7481
/**
7582
* Serialize this value to JSON.
7683
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, RecoveryStatus> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable RecoveryStatus get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public final Map<String, Pipeline> result() {
7171
return this.result;
7272
}
7373

74+
/**
75+
* Get an element of {@code result}.
76+
*/
77+
public final @Nullable Pipeline get(String key) {
78+
return this.result.get(key);
79+
}
80+
7481
/**
7582
* Serialize this value to JSON.
7683
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public final Map<String, Pipeline> result() {
7171
return this.result;
7272
}
7373

74+
/**
75+
* Get an element of {@code result}.
76+
*/
77+
public final @Nullable Pipeline get(String key) {
78+
return this.result.get(key);
79+
}
80+
7481
/**
7582
* Serialize this value to JSON.
7683
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, RollupCapabilities> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable RollupCapabilities get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ public final Map<String, IndexCapabilities> result() {
7373
return this.result;
7474
}
7575

76+
/**
77+
* Get an element of {@code result}.
78+
*/
79+
public final @Nullable IndexCapabilities get(String key) {
80+
return this.result.get(key);
81+
}
82+
7683
/**
7784
* Serialize this value to JSON.
7885
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeletePrivilegesResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ public final Map<String, Map<String, FoundStatus>> result() {
7373
return this.result;
7474
}
7575

76+
/**
77+
* Get an element of {@code result}.
78+
*/
79+
public final @Nullable Map<String, FoundStatus> get(String key) {
80+
return this.result.get(key);
81+
}
82+
7683
/**
7784
* Serialize this value to JSON.
7885
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ public final Map<String, Map<String, Actions>> result() {
7373
return this.result;
7474
}
7575

76+
/**
77+
* Get an element of {@code result}.
78+
*/
79+
public final @Nullable Map<String, Actions> get(String key) {
80+
return this.result.get(key);
81+
}
82+
7683
/**
7784
* Serialize this value to JSON.
7885
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, RoleMapping> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable RoleMapping get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, Role> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable Role get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ public final Map<String, RoleDescriptorWrapper> result() {
7373
return this.result;
7474
}
7575

76+
/**
77+
* Get an element of {@code result}.
78+
*/
79+
public final @Nullable RoleDescriptorWrapper get(String key) {
80+
return this.result.get(key);
81+
}
82+
7683
/**
7784
* Serialize this value to JSON.
7885
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, UserProfileWithMetadata> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable UserProfileWithMetadata get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public final Map<String, User> result() {
7171
return this.result;
7272
}
7373

74+
/**
75+
* Get an element of {@code result}.
76+
*/
77+
public final @Nullable User get(String key) {
78+
return this.result.get(key);
79+
}
80+
7481
/**
7582
* Serialize this value to JSON.
7683
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ public final Map<String, Map<String, Actions>> privileges() {
9595
return this.privileges;
9696
}
9797

98+
/**
99+
* Get an element of {@code privileges}.
100+
*/
101+
public final @Nullable Map<String, Actions> get(String key) {
102+
return this.privileges.get(key);
103+
}
104+
98105
/**
99106
* Serialize this value to JSON.
100107
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, Map<String, CreatedStatus>> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable Map<String, CreatedStatus> get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public final Map<String, SnapshotLifecycle> result() {
7171
return this.result;
7272
}
7373

74+
/**
75+
* Get an element of {@code result}.
76+
*/
77+
public final @Nullable SnapshotLifecycle get(String key) {
78+
return this.result.get(key);
79+
}
80+
7481
/**
7582
* Serialize this value to JSON.
7683
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryResponse.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final Map<String, Repository> result() {
7272
return this.result;
7373
}
7474

75+
/**
76+
* Get an element of {@code result}.
77+
*/
78+
public final @Nullable Repository get(String key) {
79+
return this.result.get(key);
80+
}
81+
7582
/**
7683
* Serialize this value to JSON.
7784
*/

0 commit comments

Comments
 (0)