elasticsearch-api 9.1.0 → 9.1.1

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: 454d1a811c49e8943026fa271c34d60c4bb47dc3fb6f7ab7ab2409dfe2051670
4
- data.tar.gz: 894456b78b40979d8d45815c08ad5ddae56f2aef0daf26cc2d1bc57113e04763
3
+ metadata.gz: 6e1a709a1eac4218715eb692b5d6966b5a2702311f2f2083fb2cafb5b3fca4cd
4
+ data.tar.gz: cf212caadc4ffa0e92e4dacb192f80874c6a6e82e7c3fb8f5ab9f7adc6543eff
5
5
  SHA512:
6
- metadata.gz: 37413722faebeb39855e023aa13984970bebf7d7b8fc89868d47e0f6be489126767ebbf6957ad716c51b89babcf54d69f92d84d1edbd8870e160022e74478bf0
7
- data.tar.gz: 4c97c9c557448eeb44627568c3312c054f32a5056ce60d0f00487c4c1c3091afbe3ec00d5c9ce9a91b255dd0df3fe1cbe77cbd91899ce9dc2ac584633010961b
6
+ metadata.gz: 3291dda6177968b8c55741058934e73919635c880b2de168e4807e2027be53d598600e2cc1faa2c98de6b35eb84d94c1b977aaf07ba716338e67c65f0627b0a3
7
+ data.tar.gz: 67126f4ea20a2fff6ee3b6e81b9a860e588e7cca97e5221f315b413fa58d1aaf5da6683061e56c72ef81a8dc64f6f276b259431249aa8723cd11887a8b908563
@@ -32,7 +32,8 @@ module Elasticsearch
32
32
  # It is valid only for the CSV format.
33
33
  # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.
34
34
  # If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns.
35
- # @option arguments [String] :format A short version of the Accept header, for example `json` or `yaml`.
35
+ # @option arguments [String] :format A short version of the Accept header, e.g. json, yaml.`csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response.For async requests, nothing will be returned if the async query doesn't finish within the timeout.
36
+ # The query ID and running status are available in the `X-Elasticsearch-Async-Id` and `X-Elasticsearch-Async-Is-Running` HTTP headers of the response, respectively.
36
37
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
37
38
  # when they occur.
38
39
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -28,7 +28,7 @@ module Elasticsearch
28
28
  # minor version, meaning that your referencing code may break when this
29
29
  # library is upgraded.
30
30
  #
31
- # @option arguments [String] :format A short version of the Accept header, e.g. json, yaml.
31
+ # @option arguments [String] :format A short version of the Accept header, e.g. json, yaml.`csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response.
32
32
  # @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the CSV format.
33
33
  # @option arguments [Boolean] :drop_null_columns Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results?
34
34
  # Defaults to `false`. If `true` then the response will include an extra section under the name `all_columns` which has the name of all columns.
@@ -29,6 +29,7 @@ module Elasticsearch
29
29
  # The following integrations are available through the inference API. You can find the available task types next to the integration name:
30
30
  # * AlibabaCloud AI Search (`completion`, `rerank`, `sparse_embedding`, `text_embedding`)
31
31
  # * Amazon Bedrock (`completion`, `text_embedding`)
32
+ # * Amazon SageMaker (`chat_completion`, `completion`, `rerank`, `sparse_embedding`, `text_embedding`)
32
33
  # * Anthropic (`completion`)
33
34
  # * Azure AI Studio (`completion`, `text_embedding`)
34
35
  # * Azure OpenAI (`completion`, `text_embedding`)
@@ -0,0 +1,82 @@
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
+ # This code was automatically generated from the Elasticsearch Specification
19
+ # See https://github.com/elastic/elasticsearch-specification
20
+ # See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash.
21
+ module Elasticsearch
22
+ module API
23
+ module Inference
24
+ module Actions
25
+ # Create an Amazon SageMaker inference endpoint.
26
+ # Create an inference endpoint to perform an inference task with the `amazon_sagemaker` service.
27
+ #
28
+ # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
29
+ # @option arguments [String] :amazonsagemaker_inference_id The unique identifier of the inference endpoint. (*Required*)
30
+ # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
31
+ # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
32
+ # when they occur.
33
+ # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
34
+ # returned by Elasticsearch.
35
+ # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
36
+ # For example `"exists_time": "1h"` for humans and
37
+ # `"exists_time_in_millis": 3600000` for computers. When disabled the human
38
+ # readable values will be omitted. This makes sense for responses being consumed
39
+ # only by machines.
40
+ # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
41
+ # this option for debugging only.
42
+ # @option arguments [Hash] :headers Custom HTTP headers
43
+ # @option arguments [Hash] :body request body
44
+ #
45
+ # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-amazonsagemaker
46
+ #
47
+ def put_amazonsagemaker(arguments = {})
48
+ request_opts = { endpoint: arguments[:endpoint] || 'inference.put_amazonsagemaker' }
49
+
50
+ defined_params = [:task_type, :amazonsagemaker_inference_id].each_with_object({}) do |variable, set_variables|
51
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
52
+ end
53
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
54
+
55
+ raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type]
56
+
57
+ unless arguments[:amazonsagemaker_inference_id]
58
+ raise ArgumentError,
59
+ "Required argument 'amazonsagemaker_inference_id' missing"
60
+ end
61
+
62
+ arguments = arguments.clone
63
+ headers = arguments.delete(:headers) || {}
64
+
65
+ body = arguments.delete(:body)
66
+
67
+ _task_type = arguments.delete(:task_type)
68
+
69
+ _amazonsagemaker_inference_id = arguments.delete(:amazonsagemaker_inference_id)
70
+
71
+ method = Elasticsearch::API::HTTP_PUT
72
+ path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_amazonsagemaker_inference_id)}"
73
+ params = Utils.process_params(arguments)
74
+
75
+ Elasticsearch::API::Response.new(
76
+ perform_request(method, path, params, body, headers, request_opts)
77
+ )
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
@@ -17,7 +17,7 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module API
20
- VERSION = '9.1.0'.freeze
21
- ES_SPECIFICATION_COMMIT = '4f3be59696b7f349bfd270a485fe538fc75e4cd6'.freeze
20
+ VERSION = '9.1.1'.freeze
21
+ ES_SPECIFICATION_COMMIT = '569f8b3768762075a47e5fa16a694b41cbc90a34'.freeze
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.1.0
4
+ version: 9.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic Client Library Maintainers
@@ -499,6 +499,7 @@ files:
499
499
  - lib/elasticsearch/api/actions/inference/put.rb
500
500
  - lib/elasticsearch/api/actions/inference/put_alibabacloud.rb
501
501
  - lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb
502
+ - lib/elasticsearch/api/actions/inference/put_amazonsagemaker.rb
502
503
  - lib/elasticsearch/api/actions/inference/put_anthropic.rb
503
504
  - lib/elasticsearch/api/actions/inference/put_azureaistudio.rb
504
505
  - lib/elasticsearch/api/actions/inference/put_azureopenai.rb