jay_api 29.6.0 → 29.7.0
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/jay_api/elasticsearch/client.rb +7 -0
- data/lib/jay_api/elasticsearch/cluster.rb +33 -0
- data/lib/jay_api/elasticsearch.rb +1 -0
- data/lib/jay_api/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 469981ee390e1c409ff7e4e3faef1d9fb3579e87c9f1e2262f1664ba8d4731c3
|
|
4
|
+
data.tar.gz: 0f9b84be25dfc1a2f318edb8ae462714553e7898c278e1da0b9e38d211049719
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23f0fd77caa519085f05b6efeff92c128895a912ffa3e75d83703f3b4a7b27cf76e39dfcb42652461fc730c3ff790df67913f0d7f52926ab8bebec86cf02196b
|
|
7
|
+
data.tar.gz: 48c2c4d5c97ef87fe7ce9ca0809d4b650549db40b654bb7b856438462b6b1c482bdd83f5c11840428fac5f51fc51cbc08cf43bec996f22abdf2e08a4f87050f8
|
data/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,14 @@ Please mark backwards incompatible changes with an exclamation mark at the start
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [29.7.0] - 2026-04-28
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- The `#cluster` method to `JayAPI::Elasticsearch::Client`. The method returns
|
|
15
|
+
an instance of `JayAPI::Elasticsearch::Cluster`.
|
|
16
|
+
- The `Elasticsearch::Cluster` class. The class gives the user access to
|
|
17
|
+
cluster-level endpoints, currently including cluster health.
|
|
18
|
+
|
|
11
19
|
## [29.6.0] - 2026-03-16
|
|
12
20
|
|
|
13
21
|
### Deprecated
|
|
@@ -5,6 +5,7 @@ require 'faraday/error'
|
|
|
5
5
|
require 'forwardable'
|
|
6
6
|
|
|
7
7
|
require_relative 'mixins/retriable_requests'
|
|
8
|
+
require_relative 'cluster'
|
|
8
9
|
require_relative 'stats'
|
|
9
10
|
require_relative 'tasks'
|
|
10
11
|
|
|
@@ -89,6 +90,12 @@ module JayAPI
|
|
|
89
90
|
def tasks
|
|
90
91
|
@tasks ||= ::JayAPI::Elasticsearch::Tasks.new(client: self)
|
|
91
92
|
end
|
|
93
|
+
|
|
94
|
+
# @return [JayAPI::Elasticsearch::Cluster] An instance of the +Cluster+
|
|
95
|
+
# class, which gives the caller access to cluster-related endpoints.
|
|
96
|
+
def cluster
|
|
97
|
+
@cluster ||= ::JayAPI::Elasticsearch::Cluster.new(transport_client)
|
|
98
|
+
end
|
|
92
99
|
end
|
|
93
100
|
end
|
|
94
101
|
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'forwardable'
|
|
4
|
+
|
|
5
|
+
require_relative 'mixins/retriable_requests'
|
|
6
|
+
|
|
7
|
+
module JayAPI
|
|
8
|
+
module Elasticsearch
|
|
9
|
+
# Represents the Elasticsearch cluster and provides access to
|
|
10
|
+
# cluster-level APIs.
|
|
11
|
+
class Cluster
|
|
12
|
+
extend Forwardable
|
|
13
|
+
|
|
14
|
+
def_delegator :cluster_client, :health
|
|
15
|
+
|
|
16
|
+
attr_reader :transport_client
|
|
17
|
+
|
|
18
|
+
# @param [Elasticsearch::Transport::Client] transport_client The transport
|
|
19
|
+
# client to use to make requests to the cluster.
|
|
20
|
+
def initialize(transport_client)
|
|
21
|
+
@transport_client = transport_client
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
private
|
|
25
|
+
|
|
26
|
+
# @return [Elasticsearch::API::Cluster::ClusterClient] The client used to
|
|
27
|
+
# access cluster-related information.
|
|
28
|
+
def cluster_client
|
|
29
|
+
@cluster_client ||= transport_client.cluster
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -4,6 +4,7 @@ require_relative 'elasticsearch/async'
|
|
|
4
4
|
require_relative 'elasticsearch/batch_counter'
|
|
5
5
|
require_relative 'elasticsearch/client'
|
|
6
6
|
require_relative 'elasticsearch/client_factory'
|
|
7
|
+
require_relative 'elasticsearch/cluster'
|
|
7
8
|
require_relative 'elasticsearch/errors'
|
|
8
9
|
require_relative 'elasticsearch/index'
|
|
9
10
|
require_relative 'elasticsearch/indexes'
|
data/lib/jay_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jay_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 29.
|
|
4
|
+
version: 29.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Accenture-Industry X
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-
|
|
12
|
+
date: 2026-04-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -121,6 +121,7 @@ files:
|
|
|
121
121
|
- lib/jay_api/elasticsearch/batch_counter.rb
|
|
122
122
|
- lib/jay_api/elasticsearch/client.rb
|
|
123
123
|
- lib/jay_api/elasticsearch/client_factory.rb
|
|
124
|
+
- lib/jay_api/elasticsearch/cluster.rb
|
|
124
125
|
- lib/jay_api/elasticsearch/errors.rb
|
|
125
126
|
- lib/jay_api/elasticsearch/errors/elasticsearch_error.rb
|
|
126
127
|
- lib/jay_api/elasticsearch/errors/end_of_query_results_error.rb
|