elasticsearch-xpack 7.14.0.pre → 7.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 481b40417b4f94fa76914268bbff7743563b78ca365570657b30e43769e05dee
4
- data.tar.gz: 4c2109b3cbd6e0ac5d52fb86950ab9191ee9037e97e22746a8d2f43113bcf8a9
3
+ metadata.gz: 2f77d427b5c6f4dbf48d37637222821d7b895db2e5b723e7e4fc7b182ee48bc6
4
+ data.tar.gz: cda47ed9f391df874a56fe2af888d9938710e38a1960e4837fbf4805746a6c06
5
5
  SHA512:
6
- metadata.gz: 1dfefc77dc34dea00f503cd7055c5b4162867bbef33e461dcd22154013bc4cb61ec4216cdc5158472c50452c22eb386b91ebc6b3448f154bd55ca6ecfd7222e6
7
- data.tar.gz: 4cedb1e2321ec9b17316c76d7431337541ebd74bcfcf14798817568a5ad037c41d8fcd7d353f12a85dfeeecde96cf90a74562fcf056630e47b078dc69c286dd7
6
+ metadata.gz: d9381103620c962c33628f920227700540577500b57edac50bf691c03e9356b014131479c1e02ba9d6c84f429aee68bdb62d68a49c506dbc9c66b3cdd18d79e2
7
+ data.tar.gz: 7d686d15f51709b8abb9edfc99eecb22ff4c65eea0d48eb43ceb8bb81d58d31560ec714ae432beec37aaa3b62fcc9a9f2629a28f71ee65166d7145dd3c6bbfc6
@@ -0,0 +1,54 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ module Elasticsearch
19
+ module XPack
20
+ module API
21
+ module IndexLifecycleManagement
22
+ module Actions
23
+ # Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
24
+ #
25
+ # @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
26
+ # @option arguments [Hash] :headers Custom HTTP headers
27
+ # @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")
28
+ #
29
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/ilm-migrate-to-data-tiers.html
30
+ #
31
+ def migrate_to_data_tiers(arguments = {})
32
+ headers = arguments.delete(:headers) || {}
33
+
34
+ arguments = arguments.clone
35
+
36
+ method = Elasticsearch::API::HTTP_POST
37
+ path = "_ilm/migrate_to_data_tiers"
38
+ params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
39
+
40
+ body = arguments[:body]
41
+ perform_request(method, path, params, body, headers).body
42
+ end
43
+
44
+ # Register this action with its valid params when the module is loaded.
45
+ #
46
+ # @since 6.2.0
47
+ ParamsRegistry.register(:migrate_to_data_tiers, [
48
+ :dry_run
49
+ ].freeze)
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -31,6 +31,11 @@ module Elasticsearch
31
31
  # @option arguments [String] :wait_for_active_shards Sets the number of active shards to wait for before the operation returns.
32
32
  # @option arguments [Hash] :headers Custom HTTP headers
33
33
  #
34
+ # *Deprecation notice*:
35
+ # Frozen indices are deprecated because they provide no benefit given improvements in heap memory utilization. They will be removed in a future release.
36
+ # Deprecated since version 7.14.0
37
+ #
38
+ #
34
39
  # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/freeze-index-api.html
35
40
  #
36
41
  def freeze(arguments = {})
@@ -31,6 +31,11 @@ module Elasticsearch
31
31
  # @option arguments [String] :wait_for_active_shards Sets the number of active shards to wait for before the operation returns.
32
32
  # @option arguments [Hash] :headers Custom HTTP headers
33
33
  #
34
+ # *Deprecation notice*:
35
+ # Frozen indices are deprecated because they provide no benefit given improvements in heap memory utilization. They will be removed in a future release.
36
+ # Deprecated since version 7.14.0
37
+ #
38
+ #
34
39
  # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/unfreeze-index-api.html
35
40
  #
36
41
  def unfreeze(arguments = {})
@@ -21,13 +21,17 @@ module Elasticsearch
21
21
  module Rollup
22
22
  module Actions
23
23
  # Rollup an index
24
+ # This functionality is Experimental and may be changed or removed
25
+ # completely in a future release. Elastic will take a best effort approach
26
+ # to fix any issues, but experimental features are not subject to the
27
+ # support SLA of official GA features.
24
28
  #
25
29
  # @option arguments [String] :index The index to roll up (*Required*)
26
30
  # @option arguments [String] :rollup_index The name of the rollup index to create (*Required*)
27
31
  # @option arguments [Hash] :headers Custom HTTP headers
28
32
  # @option arguments [Hash] :body The rollup configuration (*Required*)
29
33
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/rollup-api.html
34
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/xpack-rollup.html
31
35
  #
32
36
  def rollup(arguments = {})
33
37
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -25,7 +25,7 @@ module Elasticsearch
25
25
  # @option arguments [Hash] :headers Custom HTTP headers
26
26
  # @option arguments [Hash] :body The SAML response to authenticate (*Required*)
27
27
  #
28
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-saml-authenticate.html
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/security-api-saml-authenticate.html
29
29
  #
30
30
  def saml_authenticate(arguments = {})
31
31
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -25,7 +25,7 @@ module Elasticsearch
25
25
  # @option arguments [Hash] :headers Custom HTTP headers
26
26
  # @option arguments [Hash] :body The logout response to verify (*Required*)
27
27
  #
28
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-saml-complete-logout.html
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/security-api-saml-complete-logout.html
29
29
  #
30
30
  def saml_complete_logout(arguments = {})
31
31
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -25,7 +25,7 @@ module Elasticsearch
25
25
  # @option arguments [Hash] :headers Custom HTTP headers
26
26
  # @option arguments [Hash] :body The LogoutRequest message (*Required*)
27
27
  #
28
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-saml-invalidate.html
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/security-api-saml-invalidate.html
29
29
  #
30
30
  def saml_invalidate(arguments = {})
31
31
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -25,7 +25,7 @@ module Elasticsearch
25
25
  # @option arguments [Hash] :headers Custom HTTP headers
26
26
  # @option arguments [Hash] :body The tokens to invalidate (*Required*)
27
27
  #
28
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-saml-logout.html
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/security-api-saml-logout.html
29
29
  #
30
30
  def saml_logout(arguments = {})
31
31
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -25,7 +25,7 @@ module Elasticsearch
25
25
  # @option arguments [Hash] :headers Custom HTTP headers
26
26
  # @option arguments [Hash] :body The realm for which to create the authentication request, identified by either its name or the ACS URL (*Required*)
27
27
  #
28
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-saml-prepare-authentication.html
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/security-api-saml-prepare-authentication.html
29
29
  #
30
30
  def saml_prepare_authentication(arguments = {})
31
31
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -25,7 +25,7 @@ module Elasticsearch
25
25
  # @option arguments [String] :realm_name The name of the SAML realm to get the metadata for
26
26
  # @option arguments [Hash] :headers Custom HTTP headers
27
27
  #
28
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-saml-sp-metadata.html
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/security-api-saml-sp-metadata.html
29
29
  #
30
30
  def saml_service_provider_metadata(arguments = {})
31
31
  raise ArgumentError, "Required argument 'realm_name' missing" unless arguments[:realm_name]
@@ -0,0 +1,50 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ module Elasticsearch
19
+ module XPack
20
+ module API
21
+ module SQL
22
+ module Actions
23
+ # Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it.
24
+ #
25
+ # @option arguments [String] :id The async search ID
26
+ # @option arguments [Hash] :headers Custom HTTP headers
27
+ #
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/delete-async-sql-search-api.html
29
+ #
30
+ def delete_async(arguments = {})
31
+ raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
32
+
33
+ headers = arguments.delete(:headers) || {}
34
+
35
+ arguments = arguments.clone
36
+
37
+ _id = arguments.delete(:id)
38
+
39
+ method = Elasticsearch::API::HTTP_DELETE
40
+ path = "_sql/async/delete/#{Elasticsearch::API::Utils.__listify(_id)}"
41
+ params = {}
42
+
43
+ body = nil
44
+ perform_request(method, path, params, body, headers).body
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,64 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ module Elasticsearch
19
+ module XPack
20
+ module API
21
+ module SQL
22
+ module Actions
23
+ # Returns the current status and available results for an async SQL search or stored synchronous SQL search
24
+ #
25
+ # @option arguments [String] :id The async search ID
26
+ # @option arguments [String] :delimiter Separator for CSV results
27
+ # @option arguments [String] :format Short version of the Accept header, e.g. json, yaml
28
+ # @option arguments [Time] :keep_alive Retention period for the search and its results
29
+ # @option arguments [Time] :wait_for_completion_timeout Duration to wait for complete results
30
+ # @option arguments [Hash] :headers Custom HTTP headers
31
+ #
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/get-async-sql-search-api.html
33
+ #
34
+ def get_async(arguments = {})
35
+ raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
36
+
37
+ headers = arguments.delete(:headers) || {}
38
+
39
+ arguments = arguments.clone
40
+
41
+ _id = arguments.delete(:id)
42
+
43
+ method = Elasticsearch::API::HTTP_GET
44
+ path = "_sql/async/#{Elasticsearch::API::Utils.__listify(_id)}"
45
+ params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
46
+
47
+ body = nil
48
+ perform_request(method, path, params, body, headers).body
49
+ end
50
+
51
+ # Register this action with its valid params when the module is loaded.
52
+ #
53
+ # @since 6.2.0
54
+ ParamsRegistry.register(:get_async, [
55
+ :delimiter,
56
+ :format,
57
+ :keep_alive,
58
+ :wait_for_completion_timeout
59
+ ].freeze)
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,50 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ module Elasticsearch
19
+ module XPack
20
+ module API
21
+ module SQL
22
+ module Actions
23
+ # Returns the current status of an async SQL search or a stored synchronous SQL search
24
+ #
25
+ # @option arguments [String] :id The async search ID
26
+ # @option arguments [Hash] :headers Custom HTTP headers
27
+ #
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/get-async-sql-search-status-api.html
29
+ #
30
+ def get_async_status(arguments = {})
31
+ raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
32
+
33
+ headers = arguments.delete(:headers) || {}
34
+
35
+ arguments = arguments.clone
36
+
37
+ _id = arguments.delete(:id)
38
+
39
+ method = Elasticsearch::API::HTTP_GET
40
+ path = "_sql/async/status/#{Elasticsearch::API::Utils.__listify(_id)}"
41
+ params = {}
42
+
43
+ body = nil
44
+ perform_request(method, path, params, body, headers).body
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -28,7 +28,6 @@ module Elasticsearch
28
28
  def ilm
29
29
  @ilm ||= IndexLifecycleManagementClient.new(self)
30
30
  end
31
-
32
31
  end
33
32
  end
34
33
  end
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module XPack
20
- VERSION = '7.14.0.pre'.freeze
20
+ VERSION = '7.14.0'.freeze
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-xpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.14.0.pre
4
+ version: 7.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-14 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -298,6 +298,7 @@ files:
298
298
  - lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_lifecycle.rb
299
299
  - lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_policy.rb
300
300
  - lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_status.rb
301
+ - lib/elasticsearch/xpack/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb
301
302
  - lib/elasticsearch/xpack/api/actions/index_lifecycle_management/move_to_step.rb
302
303
  - lib/elasticsearch/xpack/api/actions/index_lifecycle_management/params_registry.rb
303
304
  - lib/elasticsearch/xpack/api/actions/index_lifecycle_management/put_lifecycle.rb
@@ -469,6 +470,9 @@ files:
469
470
  - lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/start.rb
470
471
  - lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/stop.rb
471
472
  - lib/elasticsearch/xpack/api/actions/sql/clear_cursor.rb
473
+ - lib/elasticsearch/xpack/api/actions/sql/delete_async.rb
474
+ - lib/elasticsearch/xpack/api/actions/sql/get_async.rb
475
+ - lib/elasticsearch/xpack/api/actions/sql/get_async_status.rb
472
476
  - lib/elasticsearch/xpack/api/actions/sql/params_registry.rb
473
477
  - lib/elasticsearch/xpack/api/actions/sql/query.rb
474
478
  - lib/elasticsearch/xpack/api/actions/sql/translate.rb
@@ -544,9 +548,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
544
548
  version: '0'
545
549
  required_rubygems_version: !ruby/object:Gem::Requirement
546
550
  requirements:
547
- - - ">"
551
+ - - ">="
548
552
  - !ruby/object:Gem::Version
549
- version: 1.3.1
553
+ version: '0'
550
554
  requirements: []
551
555
  rubygems_version: 3.2.15
552
556
  signing_key: