elasticsearch-xpack 6.2.0 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba21d5d044a3a304a7f34e2b325fc4b38e84c20360412103995798b3dd74f36e
4
- data.tar.gz: 5b966d86e2514af0ded5b5319f2b7711a8f321194576f9c08b503def4a8f516a
3
+ metadata.gz: a4dc711d2cbf0611d06b7a05683819b19fe1bf2f73533c8c55317f2b6702ca2e
4
+ data.tar.gz: c3241f9c9e9bac056415c8ed8606d1088f1a2fad66cbe791497fa11a6151651b
5
5
  SHA512:
6
- metadata.gz: ec7f1c86b17ffff3e54343425fc8e2a516cebd2678afa39af397dace74e450b5eb813f2aa73fae133c2f72e619cbaf099dc982385e66eea3ad85b351019fa8db
7
- data.tar.gz: 333abbafeef8b30aa435027624fe9b245949f742fc0236db0861d1678386448b5a38de7d35962701e59e7f9a24979876d61c0bfa0c285768dac2985399409f42
6
+ metadata.gz: 0abba71ef208735032dd06801717371750105a65393bec3bfed2d00f7414c4d56d6c73aef82d299d407bef634ebdf0d54698bbcb203bd03d179a5db06f00ac4c
7
+ data.tar.gz: b28eda15716d33b1d510c3406c572dbd5cc871a7170e6ded1b6896a26dd0d5f1ffaa84f1b99ad7ba93e27501d8bc8cfad94cd816d456139b033ddce20466fed2
@@ -29,6 +29,14 @@ module Elasticsearch
29
29
  def xpack
30
30
  @xpack_client ||= Elasticsearch::XPack::API::Client.new(self)
31
31
  end
32
+
33
+ def security
34
+ @security ||= xpack.security
35
+ end
36
+
37
+ def ml
38
+ @ml ||= xpack.ml
39
+ end
32
40
  end
33
41
  end
34
42
  end if defined?(Elasticsearch::Transport::Client)
@@ -22,7 +22,7 @@ module Elasticsearch
22
22
  method = Elasticsearch::API::HTTP_POST
23
23
  path = "_xpack/ml/anomaly_detectors/#{arguments[:job_id]}/_close"
24
24
  params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
25
- body = nil
25
+ body = arguments[:body]
26
26
 
27
27
  perform_request(method, path, params, body).body
28
28
  end
@@ -0,0 +1,49 @@
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 MachineLearning
22
+ module Actions
23
+
24
+ # Temporarily halt tasks associated with the jobs and datafeeds and prevent new jobs from opening.
25
+ # When enabled=true this API temporarily halts all job and datafeed tasks and prohibits new job and
26
+ # datafeed tasks from starting.
27
+ #
28
+ # @option arguments [ true, false ] :enabled Whether to enable upgrade_mode ML setting or not. Defaults to false.
29
+ # @option arguments [String] :timeout Controls the time to wait before action times out. Defaults to 30 seconds.
30
+ #
31
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html
32
+ #
33
+ def set_upgrade_mode(arguments={})
34
+
35
+ valid_params = [
36
+ :enabled,
37
+ :timeout ]
38
+
39
+ method = Elasticsearch::API::HTTP_POST
40
+ path = '_ml/set_upgrade_mode'
41
+ params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
42
+
43
+ perform_request(method, path, params).body
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,49 @@
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 Security
22
+ module Actions
23
+
24
+ # Creates an API key for access without requiring basic authentication.
25
+ #
26
+ # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make
27
+ # this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to
28
+ # search, if `false` then do nothing with refreshes.
29
+ #
30
+ # @option arguments [Hash] :body The api key request to create an API key. (*Required*)
31
+ #
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html
33
+ #
34
+ def create_api_key(arguments={})
35
+ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
36
+
37
+ valid_params = [ :refresh ]
38
+
39
+ method = Elasticsearch::API::HTTP_PUT
40
+ path = "_security/api_key"
41
+ params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
42
+
43
+ perform_request(method, path, params, arguments[:body]).body
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,53 @@
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 Security
22
+ module Actions
23
+
24
+ # Retrieves information for one or more API keys.
25
+ #
26
+ # @option arguments [String] :id An API key id. This parameter cannot be used with any of name, realm_name or username are used.
27
+ #
28
+ # @option arguments [String] :name An API key name. This parameter cannot be used with any of id, realm_name or username are used.
29
+ #
30
+ # @option arguments [String] :realm_name The name of an authentication realm. This parameter cannot be used with either id or name.
31
+ #
32
+ # @option arguments [String] :username The name of an authentication realm. This parameter cannot be used with either id or name.
33
+ #
34
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html
35
+ #
36
+ def get_api_key(arguments={})
37
+
38
+ valid_params = [ :id,
39
+ :username,
40
+ :name,
41
+ :realm_name ]
42
+
43
+ method = Elasticsearch::API::HTTP_GET
44
+ path = "_security/api_key"
45
+ params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
46
+
47
+ perform_request(method, path, params).body
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,43 @@
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 Security
22
+ module Actions
23
+
24
+ # Creates an API key for access without requiring basic authentication.
25
+ #
26
+ # @option arguments [Hash] :body The api key request to invalidate API key(s). (*Required*)
27
+ #
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html
29
+ #
30
+ def invalidate_api_key(arguments={})
31
+ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
32
+
33
+ method = Elasticsearch::API::HTTP_DELETE
34
+ path = "_security/api_key"
35
+ params = {}
36
+
37
+ perform_request(method, path, params, arguments[:body]).body
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -20,7 +20,9 @@ module Elasticsearch
20
20
  valid_params = [
21
21
  :master_timeout,
22
22
  :active,
23
- :version ]
23
+ :version,
24
+ :if_seq_no,
25
+ :if_primary_term ]
24
26
 
25
27
  method = Elasticsearch::API::HTTP_PUT
26
28
  path = "_xpack/watcher/watch/#{arguments[:id]}"
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module XPack
3
- VERSION = "6.2.0"
3
+ VERSION = "6.3.0"
4
4
  end
5
5
  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: 6.2.0
4
+ version: 6.3.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: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -281,6 +281,7 @@ files:
281
281
  - lib/elasticsearch/xpack/api/actions/machine_learning/put_filter.rb
282
282
  - lib/elasticsearch/xpack/api/actions/machine_learning/put_job.rb
283
283
  - lib/elasticsearch/xpack/api/actions/machine_learning/revert_model_snapshot.rb
284
+ - lib/elasticsearch/xpack/api/actions/machine_learning/set_upgrade_mode.rb
284
285
  - lib/elasticsearch/xpack/api/actions/machine_learning/start_datafeed.rb
285
286
  - lib/elasticsearch/xpack/api/actions/machine_learning/stop_datafeed.rb
286
287
  - lib/elasticsearch/xpack/api/actions/machine_learning/update_datafeed.rb
@@ -305,12 +306,14 @@ files:
305
306
  - lib/elasticsearch/xpack/api/actions/security/change_password.rb
306
307
  - lib/elasticsearch/xpack/api/actions/security/clear_cached_realms.rb
307
308
  - lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb
309
+ - lib/elasticsearch/xpack/api/actions/security/create_api_key.rb
308
310
  - lib/elasticsearch/xpack/api/actions/security/delete_privileges.rb
309
311
  - lib/elasticsearch/xpack/api/actions/security/delete_role.rb
310
312
  - lib/elasticsearch/xpack/api/actions/security/delete_role_mapping.rb
311
313
  - lib/elasticsearch/xpack/api/actions/security/delete_user.rb
312
314
  - lib/elasticsearch/xpack/api/actions/security/disable_user.rb
313
315
  - lib/elasticsearch/xpack/api/actions/security/enable_user.rb
316
+ - lib/elasticsearch/xpack/api/actions/security/get_api_key.rb
314
317
  - lib/elasticsearch/xpack/api/actions/security/get_privileges.rb
315
318
  - lib/elasticsearch/xpack/api/actions/security/get_role.rb
316
319
  - lib/elasticsearch/xpack/api/actions/security/get_role_mapping.rb
@@ -318,6 +321,7 @@ files:
318
321
  - lib/elasticsearch/xpack/api/actions/security/get_user.rb
319
322
  - lib/elasticsearch/xpack/api/actions/security/get_user_privileges.rb
320
323
  - lib/elasticsearch/xpack/api/actions/security/has_privileges.rb
324
+ - lib/elasticsearch/xpack/api/actions/security/invalidate_api_key.rb
321
325
  - lib/elasticsearch/xpack/api/actions/security/invalidate_token.rb
322
326
  - lib/elasticsearch/xpack/api/actions/security/put_privileges.rb
323
327
  - lib/elasticsearch/xpack/api/actions/security/put_role.rb
@@ -374,7 +378,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
374
378
  - !ruby/object:Gem::Version
375
379
  version: '0'
376
380
  requirements: []
377
- rubygems_version: 3.0.2
381
+ rubygems_version: 3.0.3
378
382
  signing_key:
379
383
  specification_version: 4
380
384
  summary: Ruby integrations for the X-Pack extensions for Elasticsearch