Skip to content

[codegen] master synchronization #5701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2021
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
@@ -0,0 +1,30 @@
{
"ml.infer_trained_model_deployment":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-infer-trained-model-deployment.html",
"description":"Evaluate a trained model."
},
"stability":"experimental",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path":"/_ml/trained_models/{model_id}/deployment/_infer",
"methods":[
"POST"
],
"parts":{
"model_id":{
"type":"string",
"description":"The ID of the model to perform inference on"
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"ml.start_trained_model_deployment":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-trained-model-deployment.html",
"description":"Start a trained model deployment."
},
"stability":"experimental",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path":"/_ml/trained_models/{model_id}/deployment/_start",
"methods":[
"POST"
],
"parts":{
"model_id":{
"type":"string",
"description":"The ID of the model to deploy"
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"ml.stop_trained_model_deployment":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-trained-model-deployment.html",
"description":"Stop a trained model deployment."
},
"stability":"experimental",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path":"/_ml/trained_models/{model_id}/deployment/_stop",
"methods":[
"POST"
],
"parts":{
"model_id":{
"type":"string",
"description":"The ID of the model to undeploy"
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"security.enroll_node":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html",
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-node-enrollment.html",
"description":"Allows a new node to enroll to an existing cluster with security enabled."
},
"stability":"stable",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"security.saml_complete_logout":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-complete-logout.html",
"description":"Verifies the logout response sent from the SAML IdP"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path":"/_security/saml/complete_logout",
"methods":[
"POST"
]
}
]
},
"body":{
"description":"The logout response to verify",
"required":true
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"snapshot.repository_analyze":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"description":"Analyzes a repository for correctness and performance"
},
"stability":"stable",
"visibility":"public",
"headers": {
"accept": [
"application/json"
]
},
"url":{
"paths":[
{
"path":"/_snapshot/{repository}/_analyze",
"methods":[
"POST"
],
"parts":{
"repository":{
"type":"string",
"description":"A repository name"
}
}
}
]
},
"params":{
"blob_count":{
"type":"number",
"description":"Number of blobs to create during the test. Defaults to 100."
},
"concurrency":{
"type":"number",
"description":"Number of operations to run concurrently during the test. Defaults to 10."
},
"read_node_count":{
"type":"number",
"description":"Number of nodes on which to read a blob after writing. Defaults to 10."
},
"early_read_node_count":{
"type":"number",
"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."
},
"seed":{
"type":"number",
"description":"Seed for the random number generator used to create the test workload. Defaults to a random value."
},
"rare_action_probability":{
"type":"number",
"description":"Probability of taking a rare action such as an early read or an overwrite. Defaults to 0.02."
},
"max_blob_size":{
"type":"string",
"description":"Maximum size of a blob to create during the test, e.g '1gb' or '100mb'. Defaults to '10mb'."
},
"max_total_data_size":{
"type":"string",
"description":"Maximum total size of all blobs to create during the test, e.g '1tb' or '100gb'. Defaults to '1gb'."
},
"timeout":{
"type":"time",
"description":"Explicit operation timeout. Defaults to '30s'."
},
"detailed":{
"type":"boolean",
"description":"Whether to return detailed results or a summary. Defaults to 'false' so that only the summary is returned."
},
"rarely_abort_writes":{
"type":"boolean",
"description":"Whether to rarely abort writes before they complete. Defaults to 'true'."
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,11 @@ public int? Size
}
}

///<summary>Request options for InferTrainedModelDeployment <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-infer-trained-model-deployment.html</para></summary>
public class InferTrainedModelDeploymentRequestParameters : RequestParameters<InferTrainedModelDeploymentRequestParameters>
{
}

///<summary>Request options for Info <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-info.html</para></summary>
public class MachineLearningInfoRequestParameters : RequestParameters<MachineLearningInfoRequestParameters>
{
Expand Down Expand Up @@ -719,6 +724,11 @@ public class StartDatafeedRequestParameters : RequestParameters<StartDatafeedReq
{
}

///<summary>Request options for StartTrainedModelDeployment <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-trained-model-deployment.html</para></summary>
public class StartTrainedModelDeploymentRequestParameters : RequestParameters<StartTrainedModelDeploymentRequestParameters>
{
}

///<summary>Request options for StopDataFrameAnalytics <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html</para></summary>
public class StopDataFrameAnalyticsRequestParameters : RequestParameters<StopDataFrameAnalyticsRequestParameters>
{
Expand Down Expand Up @@ -766,6 +776,11 @@ public bool? AllowNoMatch
}
}

///<summary>Request options for StopTrainedModelDeployment <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-trained-model-deployment.html</para></summary>
public class StopTrainedModelDeploymentRequestParameters : RequestParameters<StopTrainedModelDeploymentRequestParameters>
{
}

///<summary>Request options for UpdateDataFrameAnalytics <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html</para></summary>
public class UpdateDataFrameAnalyticsRequestParameters : RequestParameters<UpdateDataFrameAnalyticsRequestParameters>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public Refresh? Refresh
}
}

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

///<summary>Request options for SamlCompleteLogout <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-complete-logout.html</para></summary>
public class SamlCompleteLogoutRequestParameters : RequestParameters<SamlCompleteLogoutRequestParameters>
{
}

///<summary>Request options for GetCertificates <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html</para></summary>
public class GetCertificatesRequestParameters : RequestParameters<GetCertificatesRequestParameters>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,90 @@ public TimeSpan MasterTimeout
}
}

///<summary>Request options for RepositoryAnalyze <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
public class RepositoryAnalyzeRequestParameters : RequestParameters<RepositoryAnalyzeRequestParameters>
{
///<summary>Number of blobs to create during the test. Defaults to 100.</summary>
public long? BlobCount
{
get => Q<long? >("blob_count");
set => Q("blob_count", value);
}

///<summary>Number of operations to run concurrently during the test. Defaults to 10.</summary>
public long? Concurrency
{
get => Q<long? >("concurrency");
set => Q("concurrency", value);
}

///<summary>Whether to return detailed results or a summary. Defaults to 'false' so that only the summary is returned.</summary>
public bool? Detailed
{
get => Q<bool? >("detailed");
set => Q("detailed", value);
}

///<summary>
/// 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.
///</summary>
public long? EarlyReadNodeCount
{
get => Q<long? >("early_read_node_count");
set => Q("early_read_node_count", value);
}

///<summary>Maximum size of a blob to create during the test, e.g '1gb' or '100mb'. Defaults to '10mb'.</summary>
public string MaxBlobSize
{
get => Q<string>("max_blob_size");
set => Q("max_blob_size", value);
}

///<summary>Maximum total size of all blobs to create during the test, e.g '1tb' or '100gb'. Defaults to '1gb'.</summary>
public string MaxTotalDataSize
{
get => Q<string>("max_total_data_size");
set => Q("max_total_data_size", value);
}

///<summary>Probability of taking a rare action such as an early read or an overwrite. Defaults to 0.02.</summary>
public long? RareActionProbability
{
get => Q<long? >("rare_action_probability");
set => Q("rare_action_probability", value);
}

///<summary>Whether to rarely abort writes before they complete. Defaults to 'true'.</summary>
public bool? RarelyAbortWrites
{
get => Q<bool? >("rarely_abort_writes");
set => Q("rarely_abort_writes", value);
}

///<summary>Number of nodes on which to read a blob after writing. Defaults to 10.</summary>
public long? ReadNodeCount
{
get => Q<long? >("read_node_count");
set => Q("read_node_count", value);
}

///<summary>Seed for the random number generator used to create the test workload. Defaults to a random value.</summary>
public long? Seed
{
get => Q<long? >("seed");
set => Q("seed", value);
}

///<summary>Explicit operation timeout. Defaults to '30s'.</summary>
public TimeSpan Timeout
{
get => Q<TimeSpan>("timeout");
set => Q("timeout", value);
}
}

///<summary>Request options for Restore <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
public class RestoreRequestParameters : RequestParameters<RestoreRequestParameters>
{
Expand Down
Loading