elasticsearch-api 2.0.2 → 5.0.0.pre

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.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -8
  3. data/elasticsearch-api.gemspec +1 -1
  4. data/lib/elasticsearch/api/actions/bulk.rb +20 -18
  5. data/lib/elasticsearch/api/actions/cat/aliases.rb +7 -1
  6. data/lib/elasticsearch/api/actions/cat/allocation.rb +3 -1
  7. data/lib/elasticsearch/api/actions/cat/count.rb +3 -1
  8. data/lib/elasticsearch/api/actions/cat/fielddata.rb +2 -0
  9. data/lib/elasticsearch/api/actions/cat/health.rb +3 -1
  10. data/lib/elasticsearch/api/actions/cat/indices.rb +8 -3
  11. data/lib/elasticsearch/api/actions/cat/master.rb +3 -1
  12. data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +4 -6
  13. data/lib/elasticsearch/api/actions/cat/nodes.rb +3 -1
  14. data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +3 -1
  15. data/lib/elasticsearch/api/actions/cat/plugins.rb +4 -3
  16. data/lib/elasticsearch/api/actions/cat/recovery.rb +3 -1
  17. data/lib/elasticsearch/api/actions/cat/repositories.rb +3 -4
  18. data/lib/elasticsearch/api/actions/cat/segments.rb +5 -3
  19. data/lib/elasticsearch/api/actions/cat/shards.rb +3 -1
  20. data/lib/elasticsearch/api/actions/cat/snapshots.rb +4 -5
  21. data/lib/elasticsearch/api/actions/cat/tasks.rb +4 -6
  22. data/lib/elasticsearch/api/actions/cat/templates.rb +39 -0
  23. data/lib/elasticsearch/api/actions/cat/thread_pool.rb +6 -4
  24. data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +6 -5
  25. data/lib/elasticsearch/api/actions/cluster/get_settings.rb +0 -3
  26. data/lib/elasticsearch/api/actions/cluster/health.rb +7 -1
  27. data/lib/elasticsearch/api/actions/cluster/reroute.rb +0 -3
  28. data/lib/elasticsearch/api/actions/delete_by_query.rb +0 -2
  29. data/lib/elasticsearch/api/actions/explain.rb +3 -1
  30. data/lib/elasticsearch/api/actions/get.rb +3 -1
  31. data/lib/elasticsearch/api/actions/index.rb +0 -3
  32. data/lib/elasticsearch/api/actions/indices/create.rb +3 -1
  33. data/lib/elasticsearch/api/actions/indices/get.rb +0 -3
  34. data/lib/elasticsearch/api/actions/indices/get_settings.rb +0 -3
  35. data/lib/elasticsearch/api/actions/indices/put_settings.rb +0 -3
  36. data/lib/elasticsearch/api/actions/indices/rollover.rb +41 -0
  37. data/lib/elasticsearch/api/actions/indices/shrink.rb +45 -0
  38. data/lib/elasticsearch/api/actions/indices/stats.rb +2 -2
  39. data/lib/elasticsearch/api/actions/indices/validate_query.rb +1 -5
  40. data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +1 -5
  41. data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +2 -7
  42. data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +1 -5
  43. data/lib/elasticsearch/api/actions/ingest/simulate.rb +3 -6
  44. data/lib/elasticsearch/api/actions/mget.rb +3 -1
  45. data/lib/elasticsearch/api/actions/nodes/info.rb +2 -1
  46. data/lib/elasticsearch/api/actions/ping.rb +1 -1
  47. data/lib/elasticsearch/api/actions/scroll.rb +3 -9
  48. data/lib/elasticsearch/api/actions/search.rb +7 -0
  49. data/lib/elasticsearch/api/actions/search_exists.rb +1 -3
  50. data/lib/elasticsearch/api/actions/snapshot/get.rb +2 -0
  51. data/lib/elasticsearch/api/actions/snapshot/status.rb +2 -0
  52. data/lib/elasticsearch/api/actions/tasks/list.rb +0 -3
  53. data/lib/elasticsearch/api/actions/update.rb +7 -0
  54. data/lib/elasticsearch/api/actions/update_by_query.rb +0 -3
  55. data/lib/elasticsearch/api/utils.rb +6 -6
  56. data/lib/elasticsearch/api/version.rb +1 -1
  57. data/test/integration/yaml_test_runner.rb +44 -11
  58. data/test/unit/cat/templates_test.rb +26 -0
  59. data/test/unit/indices/rollover_test.rb +38 -0
  60. data/test/unit/indices/shrink_test.rb +33 -0
  61. data/test/unit/ingest/get_pipeline_test.rb +0 -6
  62. data/test/unit/search_exists_test.rb +0 -32
  63. data/utils/thor/generate_source.rb +12 -0
  64. data/utils/thor/templates/ruby/method.erb +5 -9
  65. data/utils/thor/templates/ruby/test.erb +3 -3
  66. metadata +14 -5
@@ -14,12 +14,11 @@ module Elasticsearch
14
14
  # @option arguments [List] :h Comma-separated list of column names to display
15
15
  # @option arguments [Boolean] :help Return help information
16
16
  # @option arguments [Boolean] :v Verbose mode. Display column headers
17
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
17
18
  #
18
19
  # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
19
20
  #
20
21
  def tasks(arguments={})
21
- Utils.__report_unsupported_method(__method__)
22
-
23
22
  valid_params = [
24
23
  :format,
25
24
  :node_id,
@@ -29,10 +28,9 @@ module Elasticsearch
29
28
  :parent_task,
30
29
  :h,
31
30
  :help,
32
- :v ]
33
-
34
- method = HTTP_GET
35
-
31
+ :v,
32
+ :s ]
33
+ method = 'GET'
36
34
  path = "_cat/tasks"
37
35
  params = Utils.__validate_and_extract_params arguments, valid_params
38
36
  body = nil
@@ -0,0 +1,39 @@
1
+ module Elasticsearch
2
+ module API
3
+ module Cat
4
+ module Actions
5
+
6
+ # Returns information about existing templates
7
+ #
8
+ # @option arguments [String] :name A pattern that returned template names must match
9
+ # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
10
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
11
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
12
+ # @option arguments [List] :h Comma-separated list of column names to display
13
+ # @option arguments [Boolean] :help Return help information
14
+ # @option arguments [Boolean] :v Verbose mode. Display column headers
15
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
16
+ #
17
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html
18
+ #
19
+ def templates(arguments={})
20
+ valid_params = [
21
+ :name,
22
+ :format,
23
+ :local,
24
+ :master_timeout,
25
+ :h,
26
+ :help,
27
+ :v,
28
+ :s ]
29
+ method = HTTP_GET
30
+ path = "_cat/templates"
31
+ params = Utils.__validate_and_extract_params arguments, valid_params
32
+ body = nil
33
+
34
+ perform_request(method, path, params, body).body
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -25,8 +25,11 @@ module Elasticsearch
25
25
  # @option arguments [Boolean] :full_id Display the complete node ID
26
26
  # @option arguments [String] :size The multiplier in which to display values
27
27
  # (Options: k, m, g, t, p)
28
+ # @option arguments [List] :thread_pool_patterns A comma-separated list of regular expressions to filter
29
+ # the thread pools in the output
28
30
  # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
29
31
  # @option arguments [Boolean] :v Display column headers as part of the output
32
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
30
33
  # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
31
34
  # @option arguments [Boolean] :help Return information about headers
32
35
  # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
@@ -40,13 +43,12 @@ module Elasticsearch
40
43
  :full_id,
41
44
  :size,
42
45
  :local,
46
+ :thread_pool_patterns,
43
47
  :master_timeout,
44
48
  :h,
45
49
  :help,
46
- :v ]
47
-
48
- unsupported_params = [ :format, :size ]
49
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
50
+ :v,
51
+ :s ]
50
52
 
51
53
  method = HTTP_GET
52
54
  path = "_cat/thread_pool"
@@ -7,15 +7,16 @@ module Elasticsearch
7
7
  #
8
8
  # @option arguments [Hash] :body The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'
9
9
  # @option arguments [Boolean] :include_yes_decisions Return 'YES' decisions in explanation (default: false)
10
+ # @option arguments [Boolean] :include_disk_info Return information about disk usage and shard sizes
11
+ # (default: false)
10
12
  #
11
13
  # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html
12
14
  #
13
15
  def allocation_explain(arguments={})
14
- Utils.__report_unsupported_method(__method__)
15
-
16
- valid_params = [ :include_yes_decisions ]
17
-
18
- method = HTTP_GET
16
+ valid_params = [
17
+ :include_yes_decisions,
18
+ :include_disk_info ]
19
+ method = 'GET'
19
20
  path = "_cluster/allocation/explain"
20
21
  params = Utils.__validate_and_extract_params arguments, valid_params
21
22
  body = arguments[:body]
@@ -21,9 +21,6 @@ module Elasticsearch
21
21
  :include_defaults
22
22
  ]
23
23
 
24
- unsupported_params = [ :include_defaults ]
25
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
26
-
27
24
  method = HTTP_GET
28
25
  path = "_cluster/settings"
29
26
  params = Utils.__validate_and_extract_params arguments, valid_params
@@ -24,8 +24,12 @@ module Elasticsearch
24
24
  # @option arguments [Number] :wait_for_nodes Wait until the specified number of nodes is available
25
25
  # @option arguments [Number] :wait_for_relocating_shards Wait until the specified number of relocating
26
26
  # shards is finished
27
+ # @option arguments [Boolean] :wait_for_no_relocating_shards Whether to wait until there are no relocating
28
+ # shards in the cluster
27
29
  # @option arguments [String] :wait_for_status Wait until cluster is in a specific state
28
30
  # (options: green, yellow, red)
31
+ # @option arguments [List] :wait_for_events Wait until all currently queued events with the given priorty
32
+ # are processed (immediate, urgent, high, normal, low, languid)
29
33
  #
30
34
  # @see http://elasticsearch.org/guide/reference/api/admin-cluster-health/
31
35
  #
@@ -41,7 +45,9 @@ module Elasticsearch
41
45
  :wait_for_active_shards,
42
46
  :wait_for_nodes,
43
47
  :wait_for_relocating_shards,
44
- :wait_for_status ]
48
+ :wait_for_no_relocating_shards,
49
+ :wait_for_status,
50
+ :wait_for_events ]
45
51
 
46
52
  method = HTTP_GET
47
53
  path = Utils.__pathify "_cluster/health", Utils.__listify(index)
@@ -34,9 +34,6 @@ module Elasticsearch
34
34
  def reroute(arguments={})
35
35
  valid_params = [ :dry_run, :explain, :metric, :master_timeout, :retry_failed, :timeout ]
36
36
 
37
- unsupported_params = [ :retry_failed ]
38
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
39
-
40
37
  method = HTTP_POST
41
38
  path = "_cluster/reroute"
42
39
 
@@ -43,8 +43,6 @@ module Elasticsearch
43
43
  # @see http://www.elasticsearch.org/guide/reference/api/delete-by-query/
44
44
  #
45
45
  def delete_by_query(arguments={})
46
- Utils.__report_unsupported_method(__method__)
47
-
48
46
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
49
47
 
50
48
  valid_params = [
@@ -39,6 +39,7 @@ module Elasticsearch
39
39
  # or a list of fields to return
40
40
  # @option arguments [String] :_source_exclude A list of fields to exclude from the returned _source field
41
41
  # @option arguments [String] :_source_include A list of fields to extract and return from the _source field
42
+ # @option arguments [List] :stored_fields A comma-separated list of stored fields to return in the response
42
43
  #
43
44
  # @see http://elasticsearch.org/guide/reference/api/explain/
44
45
  #
@@ -62,7 +63,8 @@ module Elasticsearch
62
63
  :source,
63
64
  :_source,
64
65
  :_source_include,
65
- :_source_exclude ]
66
+ :_source_exclude,
67
+ :stored_fields ]
66
68
 
67
69
  method = HTTP_GET
68
70
  path = Utils.__pathify Utils.__escape(arguments[:index]),
@@ -29,6 +29,7 @@ module Elasticsearch
29
29
  # @option arguments [String] :_source_exclude A list of fields to exclude from the returned _source field
30
30
  # @option arguments [String] :_source_include A list of fields to extract and return from the _source field
31
31
  # @option arguments [Boolean] :_source_transform Retransform the source before returning it
32
+ # @option arguments [List] :stored_fields A comma-separated list of stored fields to return in the response
32
33
  #
33
34
  # @see http://elasticsearch.org/guide/reference/api/get/
34
35
  #
@@ -49,7 +50,8 @@ module Elasticsearch
49
50
  :_source,
50
51
  :_source_include,
51
52
  :_source_exclude,
52
- :_source_transform]
53
+ :_source_transform,
54
+ :stored_fields ]
53
55
 
54
56
  method = HTTP_GET
55
57
  path = Utils.__pathify Utils.__escape(arguments[:index]),
@@ -89,9 +89,6 @@ module Elasticsearch
89
89
  :version,
90
90
  :version_type ]
91
91
 
92
- unsupported_params = [ :pipeline ]
93
- Utils.__report_unsupported_parameters(arguments, unsupported_params)
94
-
95
92
  method = arguments[:id] ? HTTP_PUT : HTTP_POST
96
93
  path = Utils.__pathify Utils.__escape(arguments[:index]),
97
94
  Utils.__escape(arguments[:type]),
@@ -62,6 +62,7 @@ module Elasticsearch
62
62
  # @option arguments [Hash] :body Optional configuration for the index (`settings` and `mappings`)
63
63
  # @option arguments [Boolean] :update_all_types Whether to update the mapping for all fields
64
64
  # with the same name across all types
65
+ # @option arguments [Number] :wait_for_active_shards Wait until the specified number of shards is active
65
66
  # @option arguments [Time] :timeout Explicit operation timeout
66
67
  # @option arguments [Boolean] :master_timeout Timeout for connection to master
67
68
  #
@@ -72,7 +73,8 @@ module Elasticsearch
72
73
  valid_params = [
73
74
  :timeout,
74
75
  :master_timeout,
75
- :update_all_types
76
+ :update_all_types,
77
+ :wait_for_active_shards
76
78
  ]
77
79
 
78
80
  method = HTTP_PUT
@@ -35,9 +35,6 @@ module Elasticsearch
35
35
  :human,
36
36
  :include_defaults ]
37
37
 
38
- unsupported_params = [ :include_defaults ]
39
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
40
-
41
38
  method = HTTP_GET
42
39
 
43
40
  path = Utils.__pathify Utils.__listify(arguments[:index]), Utils.__listify(arguments.delete(:feature))
@@ -53,9 +53,6 @@ module Elasticsearch
53
53
  :local
54
54
  ]
55
55
 
56
- unsupported_params = [ :include_defaults ]
57
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
58
-
59
56
  method = HTTP_GET
60
57
  path = Utils.__pathify Utils.__listify(arguments[:index]),
61
58
  Utils.__listify(arguments[:type]),
@@ -59,9 +59,6 @@ module Elasticsearch
59
59
  :flat_settings
60
60
  ]
61
61
 
62
- unsupported_params = [ :preserve_existing ]
63
- Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
64
-
65
62
  method = HTTP_PUT
66
63
  path = Utils.__pathify Utils.__listify(arguments[:index]), '_settings'
67
64
  params = Utils.__validate_and_extract_params arguments, valid_params
@@ -0,0 +1,41 @@
1
+ module Elasticsearch
2
+ module API
3
+ module Indices
4
+ module Actions
5
+
6
+ # The rollover index API rolls an alias over to a new index when the existing index
7
+ # is considered to be too large or too old
8
+ #
9
+ # @option arguments [String] :alias The name of the alias to rollover (*Required*)
10
+ # @option arguments [String] :new_index The name of the rollover index
11
+ # @option arguments [Hash] :body The conditions that needs to be met for executing rollover
12
+ # @option arguments [Number] :wait_for_active_shards Wait until the specified number of shards is active
13
+ # @option arguments [Time] :timeout Explicit operation timeout
14
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master
15
+ #
16
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html
17
+ #
18
+ def rollover(arguments={})
19
+ raise ArgumentError, "Required argument 'alias' missing" unless arguments[:alias]
20
+
21
+ valid_params = [
22
+ :wait_for_active_shards,
23
+ :timeout,
24
+ :master_timeout ]
25
+
26
+ arguments = arguments.clone
27
+
28
+ source = arguments.delete(:alias)
29
+ target = arguments.delete(:new_index)
30
+
31
+ method = HTTP_POST
32
+ path = Utils.__pathify source, '_rollover', target
33
+ params = Utils.__validate_and_extract_params arguments, valid_params
34
+ body = arguments[:body]
35
+
36
+ perform_request(method, path, params, body).body
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,45 @@
1
+ module Elasticsearch
2
+ module API
3
+ module Indices
4
+ module Actions
5
+
6
+ # Copy an existing index into a new index with a fewer number of primary shards
7
+ #
8
+ # @option arguments [String] :index The name of the source index to shrink (*Required*)
9
+ # @option arguments [String] :target The name of the target index to shrink into (*Required*)
10
+ # @option arguments [Hash] :body The configuration for the target index (`settings` and `aliases`)
11
+ # @option arguments [Number] :wait_for_active_shards Wait until the specified number of shards is active
12
+ # @option arguments [Boolean] :wait_for_no_relocating_shards Whether to wait until there are no relocating
13
+ # shards in the cluster
14
+ # @option arguments [Time] :timeout Explicit operation timeout
15
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master
16
+ #
17
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html
18
+ #
19
+ def shrink(arguments={})
20
+ raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
21
+ raise ArgumentError, "Required argument 'target' missing" unless arguments[:target]
22
+
23
+ valid_params = [
24
+ :wait_for_active_shards,
25
+ :wait_for_no_relocating_shards,
26
+ :timeout,
27
+ :master_timeout
28
+ ]
29
+
30
+ arguments = arguments.clone
31
+
32
+ source = arguments.delete(:index)
33
+ target = arguments.delete(:target)
34
+
35
+ method = HTTP_PUT
36
+ path = Utils.__pathify(source, '_shrink', target)
37
+ params = Utils.__validate_and_extract_params arguments, valid_params
38
+ body = arguments[:body]
39
+
40
+ perform_request(method, path, params, body).body
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -107,8 +107,8 @@ module Elasticsearch
107
107
  path = Utils.__pathify Utils.__listify(arguments[:index]), '_stats', Utils.__listify(parts)
108
108
 
109
109
  params = Utils.__validate_and_extract_params arguments, valid_params
110
- params[:fields] = Utils.__listify(params[:fields]) if params[:fields]
111
- params[:groups] = Utils.__listify(params[:groups]) if params[:groups]
110
+ params[:fields] = Utils.__listify(params[:fields], :escape => false) if params[:fields]
111
+ params[:groups] = Utils.__listify(params[:groups], :escape => false) if params[:groups]
112
112
 
113
113
  body = nil
114
114
 
@@ -13,12 +13,9 @@ module Elasticsearch
13
13
  #
14
14
  # client.indices.validate_query index: 'myindex', q: '[[[ BOOM! ]]]', explain: true
15
15
  #
16
- # @example Validate a DSL query (with explanation and rewrite). With rewrite set to true, the
17
- # explanation is more detailed showing the actual Lucene query that will
18
- # be executed.
16
+ # @example Validate a DSL query (with explanation)
19
17
  #
20
18
  # client.indices.validate_query index: 'myindex',
21
- # rewrite: true,
22
19
  # explain: true,
23
20
  # body: {
24
21
  # filtered: {
@@ -67,7 +64,6 @@ module Elasticsearch
67
64
  #
68
65
  def validate_query(arguments={})
69
66
  valid_params = [
70
- :rewrite,
71
67
  :explain,
72
68
  :ignore_unavailable,
73
69
  :allow_no_indices,
@@ -12,15 +12,11 @@ module Elasticsearch
12
12
  # @see https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
13
13
  #
14
14
  def delete_pipeline(arguments={})
15
- Utils.__report_unsupported_method(__method__)
16
-
17
15
  raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
18
-
19
16
  valid_params = [
20
17
  :master_timeout,
21
18
  :timeout ]
22
-
23
- method = HTTP_DELETE
19
+ method = 'DELETE'
24
20
  path = Utils.__pathify "_ingest/pipeline", Utils.__escape(arguments[:id])
25
21
  params = Utils.__validate_and_extract_params arguments, valid_params
26
22
  body = nil
@@ -5,20 +5,15 @@ module Elasticsearch
5
5
 
6
6
  # Return a specified pipeline
7
7
  #
8
- # @option arguments [String] :id Comma separated list of pipeline ids. Wildcards supported (*Required*)
8
+ # @option arguments [String] :id Comma separated list of pipeline ids (wildcards supported).
9
9
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
10
10
  #
11
11
  # @see https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
12
12
  #
13
13
  def get_pipeline(arguments={})
14
- Utils.__report_unsupported_method(__method__)
15
-
16
- raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
17
-
18
14
  valid_params = [
19
15
  :master_timeout ]
20
-
21
- method = HTTP_GET
16
+ method = 'GET'
22
17
  path = Utils.__pathify "_ingest/pipeline", Utils.__escape(arguments[:id])
23
18
  params = Utils.__validate_and_extract_params arguments, valid_params
24
19
  body = nil
@@ -13,16 +13,12 @@ module Elasticsearch
13
13
  # @see https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
14
14
  #
15
15
  def put_pipeline(arguments={})
16
- Utils.__report_unsupported_method(__method__)
17
-
18
16
  raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
19
17
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
20
-
21
18
  valid_params = [
22
19
  :master_timeout,
23
20
  :timeout ]
24
-
25
- method = HTTP_PUT
21
+ method = 'PUT'
26
22
  path = Utils.__pathify "_ingest/pipeline", Utils.__escape(arguments[:id])
27
23
 
28
24
  params = Utils.__validate_and_extract_params arguments, valid_params