diff --git a/CHANGELOG.md b/CHANGELOG.md index d4dd5de1b5..fbd08e1374 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ *See the full release notes on the official documentation website: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/release_notes.html* +## 8.19.1 Release notes + +#### API changes + +* Updated source code documentation links to Elasticsearch documentation to 8.19 +* Adds `transform.set_upgrade_mode` - Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade. + ## 8.19.0 Release notes #### Client diff --git a/docs/release_notes/819.asciidoc b/docs/release_notes/819.asciidoc index b8c70529f6..67253468f0 100644 --- a/docs/release_notes/819.asciidoc +++ b/docs/release_notes/819.asciidoc @@ -1,6 +1,15 @@ [[release_notes_8_19]] === 8.19 Release notes +[discrete] +[[release_notes_8_19_1]] +=== 8.19.1 Release notes + +[discrete] +==== API +* Updated source code documentation links to Elasticsearch documentation to 8.19 +* Adds `transform.set_upgrade_mode` - Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade. + [discrete] [[release_notes_8_19_0]] === 8.19.0 Release notes diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb new file mode 100644 index 0000000000..e29a0af981 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb @@ -0,0 +1,52 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# +module Elasticsearch + module API + module Transform + module Actions + # Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade. + # + # @option arguments [Boolean] :enabled Whether to enable upgrade_mode Transform setting or not. Defaults to false. + # @option arguments [Time] :timeout Controls the time to wait before action times out. Defaults to 30 seconds + # @option arguments [Hash] :headers Custom HTTP headers + # + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.19/transform-set-upgrade-mode.html + # + def set_upgrade_mode(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'transform.set_upgrade_mode' } + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = nil + + method = Elasticsearch::API::HTTP_POST + path = '_transform/set_upgrade_mode' + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index f3e663412c..0036171c9b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -17,6 +17,6 @@ module Elasticsearch module API - VERSION = '8.19.0'.freeze + VERSION = '8.19.1'.freeze end end diff --git a/elasticsearch-api/spec/elasticsearch/api/actions/transform/set_upgrade_mode_spec.rb b/elasticsearch-api/spec/elasticsearch/api/actions/transform/set_upgrade_mode_spec.rb new file mode 100644 index 0000000000..9dd1b158c1 --- /dev/null +++ b/elasticsearch-api/spec/elasticsearch/api/actions/transform/set_upgrade_mode_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client.transform#set_upgrade_mode' do + let(:expected_args) do + [ + 'POST', + '_transform/set_upgrade_mode', + {}, + nil, + {}, + { endpoint: 'transform.set_upgrade_mode' } + ] + end + + it 'performs the request' do + expect(client_double.transform.set_upgrade_mode).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch/elasticsearch.gemspec b/elasticsearch/elasticsearch.gemspec index 0c434a729f..e296226f6e 100644 --- a/elasticsearch/elasticsearch.gemspec +++ b/elasticsearch/elasticsearch.gemspec @@ -46,7 +46,7 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 2.5' s.add_dependency 'elastic-transport', '~> 8.3' - s.add_dependency 'elasticsearch-api', '8.19.0' + s.add_dependency 'elasticsearch-api', '8.19.1' s.add_development_dependency 'base64' s.add_development_dependency 'bundler' diff --git a/elasticsearch/lib/elasticsearch/version.rb b/elasticsearch/lib/elasticsearch/version.rb index 4826df9a6d..a18d6bb476 100644 --- a/elasticsearch/lib/elasticsearch/version.rb +++ b/elasticsearch/lib/elasticsearch/version.rb @@ -16,5 +16,5 @@ # under the License. module Elasticsearch - VERSION = '8.19.0'.freeze + VERSION = '8.19.1'.freeze end