Module: Elasticsearch::API::License::Actions
- Included in:
- LicenseClient
- Defined in:
- lib/elasticsearch/api/namespace/license.rb,
lib/elasticsearch/api/actions/license/get.rb,
lib/elasticsearch/api/actions/license/post.rb,
lib/elasticsearch/api/actions/license/delete.rb,
lib/elasticsearch/api/actions/license/get_basic_status.rb,
lib/elasticsearch/api/actions/license/get_trial_status.rb,
lib/elasticsearch/api/actions/license/post_start_basic.rb,
lib/elasticsearch/api/actions/license/post_start_trial.rb
Instance Method Summary collapse
-
#delete(arguments = {}) ⇒ Object
Deletes licensing information for the cluster.
-
#get(arguments = {}) ⇒ Object
Retrieves licensing information for the cluster.
-
#get_basic_status(arguments = {}) ⇒ Object
Retrieves information about the status of the basic license.
-
#get_trial_status(arguments = {}) ⇒ Object
Retrieves information about the status of the trial license.
-
#post(arguments = {}) ⇒ Object
Updates the license for the cluster.
-
#post_start_basic(arguments = {}) ⇒ Object
Starts an indefinite basic license.
-
#post_start_trial(arguments = {}) ⇒ Object
starts a limited time trial license.
Instance Method Details
#delete(arguments = {}) ⇒ Object
Deletes licensing information for the cluster
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/elasticsearch/api/actions/license/delete.rb', line 33 def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.delete' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_DELETE path = '_license' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#get(arguments = {}) ⇒ Object
Retrieves licensing information for the cluster
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/elasticsearch/api/actions/license/get.rb', line 33 def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.get' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_license' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#get_basic_status(arguments = {}) ⇒ Object
Retrieves information about the status of the basic license.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/license/get_basic_status.rb', line 31 def get_basic_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.get_basic_status' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_license/basic_status' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#get_trial_status(arguments = {}) ⇒ Object
Retrieves information about the status of the trial license.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/license/get_trial_status.rb', line 31 def get_trial_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.get_trial_status' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_license/trial_status' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#post(arguments = {}) ⇒ Object
Updates the license for the cluster.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/elasticsearch/api/actions/license/post.rb', line 35 def post(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.post' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) method = Elasticsearch::API::HTTP_PUT path = '_license' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#post_start_basic(arguments = {}) ⇒ Object
Starts an indefinite basic license.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/elasticsearch/api/actions/license/post_start_basic.rb', line 34 def post_start_basic(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.post_start_basic' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_POST path = '_license/start_basic' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#post_start_trial(arguments = {}) ⇒ Object
starts a limited time trial license.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/elasticsearch/api/actions/license/post_start_trial.rb', line 35 def post_start_trial(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.post_start_trial' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_POST path = '_license/start_trial' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |