Skip to content

Commit

Permalink
Auto-generated API code
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine committed Feb 3, 2025
1 parent 47f7a2d commit 0a3759b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module Actions
# @option arguments [Boolean] :require_alias If true, the request’s actions must target an index alias. Defaults to false.
# @option arguments [Boolean] :require_data_stream If true, the request's actions must target a data stream (existing or to-be-created). Default to false
# @option arguments [Boolean] :list_executed_pipelines Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [String|Array] :body The operation definition and data (action-data pairs), separated by newlines. Array of Strings, Header/Data pairs,
# or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.__bulkify documentation.
Expand Down
1 change: 1 addition & 0 deletions elasticsearch-api/lib/elasticsearch/api/actions/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module Actions
# @option arguments [Number] :version Explicit version number for concurrency control
# @option arguments [String] :version_type Specific version type (options: internal, external, external_gte)
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The document (*Required*)
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Actions
# Gets information about an enrich policy.
#
# @option arguments [List] :name A comma-separated list of enrich policy names
# @option arguments [Time] :master_timeout Timeout for processing on master node
# @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html
Expand Down
1 change: 1 addition & 0 deletions elasticsearch-api/lib/elasticsearch/api/actions/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module Actions
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
# @option arguments [Boolean] :require_alias When true, requires destination to be an alias. Default is false
# @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The document (*Required*)
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module IndexLifecycleManagement
module Actions
# Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
#
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Boolean] :dry_run If set to true it will simulate the migration, providing a way to retrieve the ILM policies and indices that need to be migrated. The default is false
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body Optionally specify a legacy index template name to delete and optionally specify a node attribute name used for index shard routing (defaults to "data")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def update(arguments = {})

_task_type = arguments.delete(:task_type)

method = Elasticsearch::API::HTTP_POST
method = Elasticsearch::API::HTTP_PUT
path = if _task_type && _inference_id
"_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}/_update"
else
Expand Down
1 change: 1 addition & 0 deletions elasticsearch-api/lib/elasticsearch/api/actions/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module Actions
# @option arguments [Number] :if_seq_no only perform the update operation if the last operation that has changed the document has the specified sequence number
# @option arguments [Number] :if_primary_term only perform the update operation if the last operation that has changed the document has the specified primary term
# @option arguments [Boolean] :require_alias When true, requires destination is an alias. Default is false
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The request definition requires either `script` or partial `doc` (*Required*)
#
Expand Down

0 comments on commit 0a3759b

Please sign in to comment.