Skip to content

Commit f8ab4e0

Browse files
committed
[codegen] update to latest spec
1 parent 63138e2 commit f8ab4e0

File tree

7 files changed

+34
-29
lines changed

7 files changed

+34
-29
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3050,10 +3050,10 @@
30503050
if (hash.length > 1) {
30513051
hash = hash.substring(1);
30523052
}
3053-
window.location = "https://github.com/elastic/elasticsearch-specification/tree/d42bde26cc35dfaa40757f48306a3559ab8d4ea8/specification/" + (paths[hash] || "");
3053+
window.location = "https://github.com/elastic/elasticsearch-specification/tree/3103b4ed2a6294fd7b1a0a2cc171c190a40bf2d8/specification/" + (paths[hash] || "");
30543054
</script>
30553055
</head>
30563056
<body>
3057-
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/d42bde26cc35dfaa40757f48306a3559ab8d4ea8/specification/">Elasticsearch API specification</a>.
3057+
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/3103b4ed2a6294fd7b1a0a2cc171c190a40bf2d8/specification/">Elasticsearch API specification</a>.
30583058
</body>
30593059
</html>

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public class LifecycleExplainManaged implements LifecycleExplainVariant, JsonpSe
102102
@Nullable
103103
private final Long lifecycleDateMillis;
104104

105+
@Nullable
105106
private final String phase;
106107

107108
@Nullable
@@ -157,7 +158,7 @@ private LifecycleExplainManaged(Builder builder) {
157158
this.isAutoRetryableError = builder.isAutoRetryableError;
158159
this.lifecycleDate = builder.lifecycleDate;
159160
this.lifecycleDateMillis = builder.lifecycleDateMillis;
160-
this.phase = ApiTypeHelper.requireNonNull(builder.phase, this, "phase");
161+
this.phase = builder.phase;
161162
this.phaseTime = builder.phaseTime;
162163
this.phaseTimeMillis = builder.phaseTimeMillis;
163164
this.policy = builder.policy;
@@ -282,8 +283,9 @@ public final Long lifecycleDateMillis() {
282283
}
283284

284285
/**
285-
* Required - API name: {@code phase}
286+
* API name: {@code phase}
286287
*/
288+
@Nullable
287289
public final String phase() {
288290
return this.phase;
289291
}
@@ -458,9 +460,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
458460
generator.write(this.lifecycleDateMillis);
459461

460462
}
461-
generator.writeKey("phase");
462-
generator.write(this.phase);
463+
if (this.phase != null) {
464+
generator.writeKey("phase");
465+
generator.write(this.phase);
463466

467+
}
464468
if (this.phaseTime != null) {
465469
generator.writeKey("phase_time");
466470
this.phaseTime.serialize(generator, mapper);
@@ -588,6 +592,7 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>
588592
@Nullable
589593
private Long lifecycleDateMillis;
590594

595+
@Nullable
591596
private String phase;
592597

593598
@Nullable
@@ -733,9 +738,9 @@ public final Builder lifecycleDateMillis(@Nullable Long value) {
733738
}
734739

735740
/**
736-
* Required - API name: {@code phase}
741+
* API name: {@code phase}
737742
*/
738-
public final Builder phase(String value) {
743+
public final Builder phase(@Nullable String value) {
739744
this.phase = value;
740745
return this;
741746
}

java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ public CompletableFuture<GetDataFrameAnalyticsResponse> getDataFrameAnalytics()
10961096
// ----- Endpoint: ml.get_data_frame_analytics_stats
10971097

10981098
/**
1099-
* Get data frame analytics jobs usage info.
1099+
* Get data frame analytics job stats.
11001100
*
11011101
* @see <a href=
11021102
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html">Documentation
@@ -1112,7 +1112,7 @@ public CompletableFuture<GetDataFrameAnalyticsStatsResponse> getDataFrameAnalyti
11121112
}
11131113

11141114
/**
1115-
* Get data frame analytics jobs usage info.
1115+
* Get data frame analytics job stats.
11161116
*
11171117
* @param fn
11181118
* a function that initializes a builder to create the
@@ -1128,7 +1128,7 @@ public final CompletableFuture<GetDataFrameAnalyticsStatsResponse> getDataFrameA
11281128
}
11291129

11301130
/**
1131-
* Get data frame analytics jobs usage info.
1131+
* Get data frame analytics job stats.
11321132
*
11331133
* @see <a href=
11341134
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html">Documentation
@@ -1143,7 +1143,7 @@ public CompletableFuture<GetDataFrameAnalyticsStatsResponse> getDataFrameAnalyti
11431143
// ----- Endpoint: ml.get_datafeed_stats
11441144

11451145
/**
1146-
* Get datafeeds usage info. You can get statistics for multiple datafeeds in a
1146+
* Get datafeeds stats. You can get statistics for multiple datafeeds in a
11471147
* single API request by using a comma-separated list of datafeeds or a wildcard
11481148
* expression. You can get statistics for all datafeeds by using
11491149
* <code>_all</code>, by specifying <code>*</code> as the
@@ -1165,7 +1165,7 @@ public CompletableFuture<GetDatafeedStatsResponse> getDatafeedStats(GetDatafeedS
11651165
}
11661166

11671167
/**
1168-
* Get datafeeds usage info. You can get statistics for multiple datafeeds in a
1168+
* Get datafeeds stats. You can get statistics for multiple datafeeds in a
11691169
* single API request by using a comma-separated list of datafeeds or a wildcard
11701170
* expression. You can get statistics for all datafeeds by using
11711171
* <code>_all</code>, by specifying <code>*</code> as the
@@ -1188,7 +1188,7 @@ public final CompletableFuture<GetDatafeedStatsResponse> getDatafeedStats(
11881188
}
11891189

11901190
/**
1191-
* Get datafeeds usage info. You can get statistics for multiple datafeeds in a
1191+
* Get datafeeds stats. You can get statistics for multiple datafeeds in a
11921192
* single API request by using a comma-separated list of datafeeds or a wildcard
11931193
* expression. You can get statistics for all datafeeds by using
11941194
* <code>_all</code>, by specifying <code>*</code> as the
@@ -1356,7 +1356,7 @@ public final CompletableFuture<GetInfluencersResponse> getInfluencers(
13561356
// ----- Endpoint: ml.get_job_stats
13571357

13581358
/**
1359-
* Get anomaly detection jobs usage info.
1359+
* Get anomaly detection job stats.
13601360
*
13611361
* @see <a href=
13621362
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html">Documentation
@@ -1371,7 +1371,7 @@ public CompletableFuture<GetJobStatsResponse> getJobStats(GetJobStatsRequest req
13711371
}
13721372

13731373
/**
1374-
* Get anomaly detection jobs usage info.
1374+
* Get anomaly detection job stats.
13751375
*
13761376
* @param fn
13771377
* a function that initializes a builder to create the
@@ -1387,7 +1387,7 @@ public final CompletableFuture<GetJobStatsResponse> getJobStats(
13871387
}
13881388

13891389
/**
1390-
* Get anomaly detection jobs usage info.
1390+
* Get anomaly detection job stats.
13911391
*
13921392
* @see <a href=
13931393
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html">Documentation

java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ public GetDataFrameAnalyticsResponse getDataFrameAnalytics() throws IOException,
11281128
// ----- Endpoint: ml.get_data_frame_analytics_stats
11291129

11301130
/**
1131-
* Get data frame analytics jobs usage info.
1131+
* Get data frame analytics job stats.
11321132
*
11331133
* @see <a href=
11341134
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html">Documentation
@@ -1144,7 +1144,7 @@ public GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats(GetDataFram
11441144
}
11451145

11461146
/**
1147-
* Get data frame analytics jobs usage info.
1147+
* Get data frame analytics job stats.
11481148
*
11491149
* @param fn
11501150
* a function that initializes a builder to create the
@@ -1161,7 +1161,7 @@ public final GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats(
11611161
}
11621162

11631163
/**
1164-
* Get data frame analytics jobs usage info.
1164+
* Get data frame analytics job stats.
11651165
*
11661166
* @see <a href=
11671167
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html">Documentation
@@ -1176,7 +1176,7 @@ public GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats() throws IO
11761176
// ----- Endpoint: ml.get_datafeed_stats
11771177

11781178
/**
1179-
* Get datafeeds usage info. You can get statistics for multiple datafeeds in a
1179+
* Get datafeeds stats. You can get statistics for multiple datafeeds in a
11801180
* single API request by using a comma-separated list of datafeeds or a wildcard
11811181
* expression. You can get statistics for all datafeeds by using
11821182
* <code>_all</code>, by specifying <code>*</code> as the
@@ -1199,7 +1199,7 @@ public GetDatafeedStatsResponse getDatafeedStats(GetDatafeedStatsRequest request
11991199
}
12001200

12011201
/**
1202-
* Get datafeeds usage info. You can get statistics for multiple datafeeds in a
1202+
* Get datafeeds stats. You can get statistics for multiple datafeeds in a
12031203
* single API request by using a comma-separated list of datafeeds or a wildcard
12041204
* expression. You can get statistics for all datafeeds by using
12051205
* <code>_all</code>, by specifying <code>*</code> as the
@@ -1223,7 +1223,7 @@ public final GetDatafeedStatsResponse getDatafeedStats(
12231223
}
12241224

12251225
/**
1226-
* Get datafeeds usage info. You can get statistics for multiple datafeeds in a
1226+
* Get datafeeds stats. You can get statistics for multiple datafeeds in a
12271227
* single API request by using a comma-separated list of datafeeds or a wildcard
12281228
* expression. You can get statistics for all datafeeds by using
12291229
* <code>_all</code>, by specifying <code>*</code> as the
@@ -1394,7 +1394,7 @@ public final GetInfluencersResponse getInfluencers(
13941394
// ----- Endpoint: ml.get_job_stats
13951395

13961396
/**
1397-
* Get anomaly detection jobs usage info.
1397+
* Get anomaly detection job stats.
13981398
*
13991399
* @see <a href=
14001400
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html">Documentation
@@ -1409,7 +1409,7 @@ public GetJobStatsResponse getJobStats(GetJobStatsRequest request) throws IOExce
14091409
}
14101410

14111411
/**
1412-
* Get anomaly detection jobs usage info.
1412+
* Get anomaly detection job stats.
14131413
*
14141414
* @param fn
14151415
* a function that initializes a builder to create the
@@ -1426,7 +1426,7 @@ public final GetJobStatsResponse getJobStats(
14261426
}
14271427

14281428
/**
1429-
* Get anomaly detection jobs usage info.
1429+
* Get anomaly detection job stats.
14301430
*
14311431
* @see <a href=
14321432
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html">Documentation

java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
// typedef: ml.get_data_frame_analytics_stats.Request
5757

5858
/**
59-
* Get data frame analytics jobs usage info.
59+
* Get data frame analytics job stats.
6060
*
6161
* @see <a href=
6262
* "../doc-files/api-spec.html#ml.get_data_frame_analytics_stats.Request">API

java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
// typedef: ml.get_datafeed_stats.Request
5959

6060
/**
61-
* Get datafeeds usage info. You can get statistics for multiple datafeeds in a
61+
* Get datafeeds stats. You can get statistics for multiple datafeeds in a
6262
* single API request by using a comma-separated list of datafeeds or a wildcard
6363
* expression. You can get statistics for all datafeeds by using
6464
* <code>_all</code>, by specifying <code>*</code> as the

java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
// typedef: ml.get_job_stats.Request
5656

5757
/**
58-
* Get anomaly detection jobs usage info.
58+
* Get anomaly detection job stats.
5959
*
6060
* @see <a href="../doc-files/api-spec.html#ml.get_job_stats.Request">API
6161
* specification</a>

0 commit comments

Comments
 (0)