elasticsearch-xpack 7.1.0 → 7.2.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: d6e75bd2157f47c3b022073853f3533977843ae665bfbc8b325ef0c946d008f9
4
- data.tar.gz: 5d80ea3c8adcb4acbebf852f4298f3ae9a27eb29dfe782bd8fa0a817f5b0a54c
3
+ metadata.gz: a3f1da2e15248069039166c9c01fc9c29d5cc64c0cb1fb14f6a7bca97ec8377b
4
+ data.tar.gz: eedd5febe3bc841b8a23fa5d36943cab076387a2d5c3f4f7607c341be4f7e1f7
5
5
  SHA512:
6
- metadata.gz: 1f3fdf0d4114343caef01d8a2f53f509e964f9b86756764f3f105f4e506f1628d9e9d993c2ef3a671cedaf4eea81fc1fbca3d9257963747e8862ac51a1f173fd
7
- data.tar.gz: 6a21ac98a5a0282bd692773630ac808cf09ffec53fb0484789ccbd7d8791e4c5323ed8b57f376db274fd8502f96681c8bdf3b8dbf119803a3aa7e10160e938e1
6
+ metadata.gz: f6893b9ea1136238c64693da32057dd60c3b15658f58a0f0b193a5aa6e896e38a2460bb9cead543ce4a47cf5084171143350f3d5c4191379e75919262ffe6fc1
7
+ data.tar.gz: ab3f381408ef290646fd7b45c44d7c1d9d1ebc6cd34f08c7d2426785bac30f06be1ff8c823f4de3b42aa63c778f41fe582b80fbbaa5bf515ef7ea262757365da
@@ -78,6 +78,10 @@ module Elasticsearch
78
78
  def deprecation
79
79
  @deprecation ||= xpack.deprecation
80
80
  end
81
+
82
+ def data_frame
83
+ @data_frame ||= xpack.data_frame
84
+ end
81
85
  end
82
86
  end
83
87
  end if defined?(Elasticsearch::Transport::Client)
@@ -0,0 +1,46 @@
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 DataFrame
22
+ module Actions
23
+
24
+ # Deletes an existing data frame transform.
25
+ #
26
+ # @option arguments [String] :transform_id The id of the transform to delete. *Required*
27
+ #
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-data-frame-transform.html
29
+ #
30
+ # @since 7.2.0
31
+ def delete_data_frame_transform(arguments={})
32
+ raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
33
+ transform_id = URI.escape(arguments[:transform_id])
34
+
35
+ method = Elasticsearch::API::HTTP_DELETE
36
+ path = "_data_frame/transforms/#{transform_id}"
37
+ params = {}
38
+ body = nil
39
+
40
+ perform_request(method, path, params, body).body
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ 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 DataFrame
22
+ module Actions
23
+
24
+ # Retrieves configuration information for data frame transforms.
25
+ #
26
+ # @option arguments [Integer] :transform_id The id or comma delimited list of id expressions of the
27
+ # transforms to get, '_all' or '*' implies get all transforms.
28
+ # @option arguments [Integer] :from Skips a number of transform configs, defaults to 0
29
+ # @option arguments [Integer] :size Specifies a max number of transforms to get, defaults to 100
30
+ #
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-data-frame-transform.html
32
+ #
33
+ # @since 7.2.0
34
+ def get_data_frame_transform(arguments={})
35
+ arguments = arguments.clone
36
+ transform_id = URI.escape(arguments.delete(:transform_id))
37
+
38
+ valid_params = [
39
+ :from,
40
+ :size]
41
+
42
+ method = Elasticsearch::API::HTTP_GET
43
+ path = Elasticsearch::API::Utils.__pathify('_data_frame/transforms', Elasticsearch::API::Utils.__listify(transform_id))
44
+ params = Elasticsearch::API::Utils.__validate_and_extract_params(arguments, valid_params)
45
+ body = nil
46
+
47
+ perform_request(method, path, params, body).body
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ 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 DataFrame
22
+ module Actions
23
+
24
+ # Retrieves usage information for data frame transforms.
25
+ #
26
+ # @option arguments [Integer] :transform_id The id or comma delimited list of id expressions of the
27
+ # transforms to get, '_all' or '*' implies get all transforms.
28
+ # @option arguments [Integer] :from Skips a number of transform configs, defaults to 0
29
+ # @option arguments [Integer] :type Specifies a max number of transform stats to get, defaults to 10
30
+ #
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-data-frame-transform-stats.html
32
+ #
33
+ # @since 7.2.0
34
+ def get_data_frame_transform_stats(arguments={})
35
+ arguments = arguments.clone
36
+ transform_id = URI.escape(arguments.delete(:transform_id))
37
+
38
+ valid_params = [
39
+ :from,
40
+ :size]
41
+
42
+ method = Elasticsearch::API::HTTP_GET
43
+ path = Elasticsearch::API::Utils.__pathify('_data_frame/transforms', Elasticsearch::API::Utils.__listify(transform_id), '_stats')
44
+ params = Elasticsearch::API::Utils.__validate_and_extract_params(arguments, valid_params)
45
+ body = nil
46
+
47
+ perform_request(method, path, params, body).body
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,44 @@
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 DataFrame
22
+ module Actions
23
+
24
+ # Previews a data frame transform.
25
+ #
26
+ # @option arguments [Hash] :body The definition for the data_frame transform to preview. *Required*
27
+ #
28
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-data-frame-transform.html
29
+ #
30
+ # @sicne 7.2.0
31
+ def preview_data_frame_transform(arguments={})
32
+ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
33
+ method = Elasticsearch::API::HTTP_POST
34
+ path = '_data_frame/transforms/_preview'
35
+ params = {}
36
+ body = arguments[:body]
37
+
38
+ perform_request(method, path, params, body).body
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ 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 DataFrame
22
+ module Actions
23
+
24
+ # Instantiates a data frame transform.
25
+ #
26
+ # @option arguments [Hash] :transform_id The id of the new transform. *Required*
27
+ # @option arguments [Hash] :body The data frame transform definition. *Required*
28
+ #
29
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-data-frame-transform.html
30
+ #
31
+ # @since 7.2.0
32
+ def put_data_frame_transform(arguments={})
33
+ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
34
+ raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
35
+
36
+ transform_id = URI.escape(arguments[:transform_id])
37
+ body = arguments[:body]
38
+
39
+ method = Elasticsearch::API::HTTP_PUT
40
+ path = "_data_frame/transforms/#{transform_id}"
41
+ params = {}
42
+
43
+ perform_request(method, path, params, body).body
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,51 @@
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 DataFrame
22
+ module Actions
23
+
24
+ # Start a data frame analytics job.
25
+ #
26
+ # @option arguments [String] :transform_id The id of the transform to start. *Required*
27
+ # @option arguments [String] :timeout Controls the time to wait for the transform to start.
28
+ #
29
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/start-data-frame-transform.html
30
+ #
31
+ # @since 7.2.0
32
+ def start_data_frame_transform(arguments={})
33
+ raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
34
+ arguments = arguments.clone
35
+ transform_id = URI.escape(arguments.delete(:transform_id))
36
+
37
+ valid_params = [
38
+ :timeout]
39
+
40
+ method = Elasticsearch::API::HTTP_POST
41
+ path = "_data_frame/transforms/#{transform_id}/_start"
42
+ params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
43
+ body = nil
44
+
45
+ perform_request(method, path, params, body).body
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,55 @@
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 DataFrame
22
+ module Actions
23
+
24
+ # Stops one or more data frame transforms.
25
+ #
26
+ # @option arguments [String] :transform_id The id of the transform(s) to stop.
27
+ # @option arguments [String] :timeout Controls the time to wait until the transform has stopped.
28
+ # Default to 30 seconds.
29
+ # @option arguments [String] :wait_for_completion Whether to wait for the transform to fully stop before
30
+ # returning or not. Default to false.
31
+ #
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-data-frame-transform.html
33
+ #
34
+ # @since 7.2.0
35
+ def stop_data_frame_transform(arguments={})
36
+ raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
37
+ arguments = arguments.clone
38
+ transform_id = URI.escape(arguments.delete(:transform_id))
39
+
40
+ valid_params = [
41
+ :timeout,
42
+ :wait_for_completion ]
43
+
44
+ method = Elasticsearch::API::HTTP_POST
45
+ path = "_data_frame/transforms/#{Elasticsearch::API::Utils.__listify(transform_id)}/_stop"
46
+ params = Elasticsearch::API::Utils.__validate_and_extract_params(arguments, valid_params)
47
+ body = nil
48
+
49
+ perform_request(method, path, params, body).body
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,35 @@
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 Graph
22
+ module Actions; end
23
+
24
+ class DataFrameClient
25
+ include Elasticsearch::API::Common::Client, Elasticsearch::API::Common::Client::Base, DataFrame::Actions
26
+ end
27
+
28
+ def data_frame
29
+ @data_frame ||= DataFrameClient.new(self)
30
+ end
31
+
32
+ end
33
+ end
34
+ end
35
+ end
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module XPack
20
- VERSION = "7.1.0"
20
+ VERSION = "7.2.0"
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.1.0
4
+ version: 7.2.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-05-22 00:00:00.000000000 Z
11
+ date: 2019-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -235,6 +235,13 @@ files:
235
235
  - elasticsearch-xpack.gemspec
236
236
  - examples/watcher/error_500.rb
237
237
  - lib/elasticsearch/xpack.rb
238
+ - lib/elasticsearch/xpack/api/actions/data_frame/delete_data_frame_transform.rb
239
+ - lib/elasticsearch/xpack/api/actions/data_frame/get_data_frame_transform.rb
240
+ - lib/elasticsearch/xpack/api/actions/data_frame/get_data_frame_transform_stats.rb
241
+ - lib/elasticsearch/xpack/api/actions/data_frame/preview_data_frame_transform.rb
242
+ - lib/elasticsearch/xpack/api/actions/data_frame/put_data_frame_transform.rb
243
+ - lib/elasticsearch/xpack/api/actions/data_frame/start_data_frame_transform.rb
244
+ - lib/elasticsearch/xpack/api/actions/data_frame/stop_data_frame_transform.rb
238
245
  - lib/elasticsearch/xpack/api/actions/graph/explore.rb
239
246
  - lib/elasticsearch/xpack/api/actions/info.rb
240
247
  - lib/elasticsearch/xpack/api/actions/license/delete.rb
@@ -343,6 +350,7 @@ files:
343
350
  - lib/elasticsearch/xpack/api/actions/watcher/start.rb
344
351
  - lib/elasticsearch/xpack/api/actions/watcher/stats.rb
345
352
  - lib/elasticsearch/xpack/api/actions/watcher/stop.rb
353
+ - lib/elasticsearch/xpack/api/namespace/data_frame.rb
346
354
  - lib/elasticsearch/xpack/api/namespace/graph.rb
347
355
  - lib/elasticsearch/xpack/api/namespace/license.rb
348
356
  - lib/elasticsearch/xpack/api/namespace/machine_learning.rb