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
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/elasticsearch/api/actions/license/delete.rb', line 31 def delete(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_DELETE path = "_license" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
#get(arguments = {}) ⇒ Object
Retrieves licensing information for the cluster
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/license/get.rb', line 33 def get(arguments = {}) 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) ) 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 |
# File 'lib/elasticsearch/api/actions/license/get_basic_status.rb', line 31 def get_basic_status(arguments = {}) 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) ) 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 |
# File 'lib/elasticsearch/api/actions/license/get_trial_status.rb', line 31 def get_trial_status(arguments = {}) 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) ) end |
#post(arguments = {}) ⇒ Object
Updates the license for the cluster.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/license/post.rb', line 33 def post(arguments = {}) 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) ) end |
#post_start_basic(arguments = {}) ⇒ Object
Starts an indefinite basic license.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/elasticsearch/api/actions/license/post_start_basic.rb', line 32 def post_start_basic(arguments = {}) 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) ) end |
#post_start_trial(arguments = {}) ⇒ Object
starts a limited time trial license.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/license/post_start_trial.rb', line 33 def post_start_trial(arguments = {}) 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) ) end |