Skip to content

Commit 5e59014

Browse files
[codegen] master synchronization (#5701)
Co-authored-by: Mpdreamz <[email protected]>
1 parent 6b209bd commit 5e59014

12 files changed

+364
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"ml.infer_trained_model_deployment":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-infer-trained-model-deployment.html",
5+
"description":"Evaluate a trained model."
6+
},
7+
"stability":"experimental",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_ml/trained_models/{model_id}/deployment/_infer",
17+
"methods":[
18+
"POST"
19+
],
20+
"parts":{
21+
"model_id":{
22+
"type":"string",
23+
"description":"The ID of the model to perform inference on"
24+
}
25+
}
26+
}
27+
]
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"ml.start_trained_model_deployment":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-trained-model-deployment.html",
5+
"description":"Start a trained model deployment."
6+
},
7+
"stability":"experimental",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_ml/trained_models/{model_id}/deployment/_start",
17+
"methods":[
18+
"POST"
19+
],
20+
"parts":{
21+
"model_id":{
22+
"type":"string",
23+
"description":"The ID of the model to deploy"
24+
}
25+
}
26+
}
27+
]
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"ml.stop_trained_model_deployment":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-trained-model-deployment.html",
5+
"description":"Stop a trained model deployment."
6+
},
7+
"stability":"experimental",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_ml/trained_models/{model_id}/deployment/_stop",
17+
"methods":[
18+
"POST"
19+
],
20+
"parts":{
21+
"model_id":{
22+
"type":"string",
23+
"description":"The ID of the model to undeploy"
24+
}
25+
}
26+
}
27+
]
28+
}
29+
}
30+
}

src/ApiGenerator/RestSpecification/Core/security.enroll_node.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"security.enroll_node":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-node-enrollment.html",
55
"description":"Allows a new node to enroll to an existing cluster with security enabled."
66
},
77
"stability":"stable",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"security.saml_complete_logout":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-complete-logout.html",
5+
"description":"Verifies the logout response sent from the SAML IdP"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_security/saml/complete_logout",
17+
"methods":[
18+
"POST"
19+
]
20+
}
21+
]
22+
},
23+
"body":{
24+
"description":"The logout response to verify",
25+
"required":true
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"snapshot.repository_analyze":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html",
5+
"description":"Analyzes a repository for correctness and performance"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
]
13+
},
14+
"url":{
15+
"paths":[
16+
{
17+
"path":"/_snapshot/{repository}/_analyze",
18+
"methods":[
19+
"POST"
20+
],
21+
"parts":{
22+
"repository":{
23+
"type":"string",
24+
"description":"A repository name"
25+
}
26+
}
27+
}
28+
]
29+
},
30+
"params":{
31+
"blob_count":{
32+
"type":"number",
33+
"description":"Number of blobs to create during the test. Defaults to 100."
34+
},
35+
"concurrency":{
36+
"type":"number",
37+
"description":"Number of operations to run concurrently during the test. Defaults to 10."
38+
},
39+
"read_node_count":{
40+
"type":"number",
41+
"description":"Number of nodes on which to read a blob after writing. Defaults to 10."
42+
},
43+
"early_read_node_count":{
44+
"type":"number",
45+
"description":"Number of nodes on which to perform an early read on a blob, i.e. before writing has completed. Early reads are rare actions so the 'rare_action_probability' parameter is also relevant. Defaults to 2."
46+
},
47+
"seed":{
48+
"type":"number",
49+
"description":"Seed for the random number generator used to create the test workload. Defaults to a random value."
50+
},
51+
"rare_action_probability":{
52+
"type":"number",
53+
"description":"Probability of taking a rare action such as an early read or an overwrite. Defaults to 0.02."
54+
},
55+
"max_blob_size":{
56+
"type":"string",
57+
"description":"Maximum size of a blob to create during the test, e.g '1gb' or '100mb'. Defaults to '10mb'."
58+
},
59+
"max_total_data_size":{
60+
"type":"string",
61+
"description":"Maximum total size of all blobs to create during the test, e.g '1tb' or '100gb'. Defaults to '1gb'."
62+
},
63+
"timeout":{
64+
"type":"time",
65+
"description":"Explicit operation timeout. Defaults to '30s'."
66+
},
67+
"detailed":{
68+
"type":"boolean",
69+
"description":"Whether to return detailed results or a summary. Defaults to 'false' so that only the summary is returned."
70+
},
71+
"rarely_abort_writes":{
72+
"type":"boolean",
73+
"description":"Whether to rarely abort writes before they complete. Defaults to 'true'."
74+
}
75+
}
76+
}
77+
}

src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs

+15
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,11 @@ public int? Size
564564
}
565565
}
566566

567+
///<summary>Request options for InferTrainedModelDeployment <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-infer-trained-model-deployment.html</para></summary>
568+
public class InferTrainedModelDeploymentRequestParameters : RequestParameters<InferTrainedModelDeploymentRequestParameters>
569+
{
570+
}
571+
567572
///<summary>Request options for Info <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-info.html</para></summary>
568573
public class MachineLearningInfoRequestParameters : RequestParameters<MachineLearningInfoRequestParameters>
569574
{
@@ -719,6 +724,11 @@ public class StartDatafeedRequestParameters : RequestParameters<StartDatafeedReq
719724
{
720725
}
721726

727+
///<summary>Request options for StartTrainedModelDeployment <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-trained-model-deployment.html</para></summary>
728+
public class StartTrainedModelDeploymentRequestParameters : RequestParameters<StartTrainedModelDeploymentRequestParameters>
729+
{
730+
}
731+
722732
///<summary>Request options for StopDataFrameAnalytics <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html</para></summary>
723733
public class StopDataFrameAnalyticsRequestParameters : RequestParameters<StopDataFrameAnalyticsRequestParameters>
724734
{
@@ -766,6 +776,11 @@ public bool? AllowNoMatch
766776
}
767777
}
768778

779+
///<summary>Request options for StopTrainedModelDeployment <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-trained-model-deployment.html</para></summary>
780+
public class StopTrainedModelDeploymentRequestParameters : RequestParameters<StopTrainedModelDeploymentRequestParameters>
781+
{
782+
}
783+
769784
///<summary>Request options for UpdateDataFrameAnalytics <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html</para></summary>
770785
public class UpdateDataFrameAnalyticsRequestParameters : RequestParameters<UpdateDataFrameAnalyticsRequestParameters>
771786
{

src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Security.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public Refresh? Refresh
204204
}
205205
}
206206

207-
///<summary>Request options for EnrollNode <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html</para></summary>
207+
///<summary>Request options for EnrollNode <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-node-enrollment.html</para></summary>
208208
public class EnrollNodeRequestParameters : RequestParameters<EnrollNodeRequestParameters>
209209
{
210210
}
@@ -378,6 +378,11 @@ public Refresh? Refresh
378378
}
379379
}
380380

381+
///<summary>Request options for SamlCompleteLogout <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-complete-logout.html</para></summary>
382+
public class SamlCompleteLogoutRequestParameters : RequestParameters<SamlCompleteLogoutRequestParameters>
383+
{
384+
}
385+
381386
///<summary>Request options for GetCertificates <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html</para></summary>
382387
public class GetCertificatesRequestParameters : RequestParameters<GetCertificatesRequestParameters>
383388
{

src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Snapshot.cs

+84
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,90 @@ public TimeSpan MasterTimeout
179179
}
180180
}
181181

182+
///<summary>Request options for RepositoryAnalyze <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
183+
public class RepositoryAnalyzeRequestParameters : RequestParameters<RepositoryAnalyzeRequestParameters>
184+
{
185+
///<summary>Number of blobs to create during the test. Defaults to 100.</summary>
186+
public long? BlobCount
187+
{
188+
get => Q<long? >("blob_count");
189+
set => Q("blob_count", value);
190+
}
191+
192+
///<summary>Number of operations to run concurrently during the test. Defaults to 10.</summary>
193+
public long? Concurrency
194+
{
195+
get => Q<long? >("concurrency");
196+
set => Q("concurrency", value);
197+
}
198+
199+
///<summary>Whether to return detailed results or a summary. Defaults to 'false' so that only the summary is returned.</summary>
200+
public bool? Detailed
201+
{
202+
get => Q<bool? >("detailed");
203+
set => Q("detailed", value);
204+
}
205+
206+
///<summary>
207+
/// Number of nodes on which to perform an early read on a blob, i.e. before writing has completed. Early reads are rare actions so the
208+
/// 'rare_action_probability' parameter is also relevant. Defaults to 2.
209+
///</summary>
210+
public long? EarlyReadNodeCount
211+
{
212+
get => Q<long? >("early_read_node_count");
213+
set => Q("early_read_node_count", value);
214+
}
215+
216+
///<summary>Maximum size of a blob to create during the test, e.g '1gb' or '100mb'. Defaults to '10mb'.</summary>
217+
public string MaxBlobSize
218+
{
219+
get => Q<string>("max_blob_size");
220+
set => Q("max_blob_size", value);
221+
}
222+
223+
///<summary>Maximum total size of all blobs to create during the test, e.g '1tb' or '100gb'. Defaults to '1gb'.</summary>
224+
public string MaxTotalDataSize
225+
{
226+
get => Q<string>("max_total_data_size");
227+
set => Q("max_total_data_size", value);
228+
}
229+
230+
///<summary>Probability of taking a rare action such as an early read or an overwrite. Defaults to 0.02.</summary>
231+
public long? RareActionProbability
232+
{
233+
get => Q<long? >("rare_action_probability");
234+
set => Q("rare_action_probability", value);
235+
}
236+
237+
///<summary>Whether to rarely abort writes before they complete. Defaults to 'true'.</summary>
238+
public bool? RarelyAbortWrites
239+
{
240+
get => Q<bool? >("rarely_abort_writes");
241+
set => Q("rarely_abort_writes", value);
242+
}
243+
244+
///<summary>Number of nodes on which to read a blob after writing. Defaults to 10.</summary>
245+
public long? ReadNodeCount
246+
{
247+
get => Q<long? >("read_node_count");
248+
set => Q("read_node_count", value);
249+
}
250+
251+
///<summary>Seed for the random number generator used to create the test workload. Defaults to a random value.</summary>
252+
public long? Seed
253+
{
254+
get => Q<long? >("seed");
255+
set => Q("seed", value);
256+
}
257+
258+
///<summary>Explicit operation timeout. Defaults to '30s'.</summary>
259+
public TimeSpan Timeout
260+
{
261+
get => Q<TimeSpan>("timeout");
262+
set => Q("timeout", value);
263+
}
264+
}
265+
182266
///<summary>Request options for Restore <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
183267
public class RestoreRequestParameters : RequestParameters<RestoreRequestParameters>
184268
{

0 commit comments

Comments
 (0)