lib/elasticsearch/xpack/api/actions/transform/get_transform.rb in elasticsearch-xpack-7.8.1 vs lib/elasticsearch/xpack/api/actions/transform/get_transform.rb in elasticsearch-xpack-7.9.0.pre

- old
+ new

@@ -26,11 +26,11 @@ # @option arguments [Int] :from skips a number of transform configs, defaults to 0 # @option arguments [Int] :size specifies a max number of transforms to get, defaults to 100 # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/get-transform.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/get-transform.html # def get_transform(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone @@ -40,11 +40,11 @@ method = Elasticsearch::API::HTTP_GET path = if _transform_id "_transform/#{Elasticsearch::API::Utils.__listify(_transform_id)}" else "_transform" - end + end params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end @@ -55,10 +55,10 @@ ParamsRegistry.register(:get_transform, [ :from, :size, :allow_no_match ].freeze) + end end - end end end end