Sha256: 668f7036f2e1e8c2012a1fa79c41648e840a777a6fad37f1806c745c1e86d02f

Contents?: true

Size: 916 Bytes

Versions: 7

Compression:

Stored size: 916 Bytes

Contents

module Elasticsearch
  module XPack
    module API
      module License
        module Actions

          # Install a license
          #
          # @option arguments [Hash] :body Licenses to be installed
          # @option arguments [Boolean] :acknowledge Whether the user has acknowledged acknowledge messages
          #                                          (default: false)
          #
          # @see https://www.elastic.co/guide/en/x-pack/current/license-management.html
          #
          def post(arguments={})
            valid_params = [ :acknowledge ]
            method = Elasticsearch::API::HTTP_PUT
            path   = "_xpack/license"
            params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
            body   = arguments[:body]

            perform_request(method, path, params, body).body
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
elasticsearch-xpack-6.8.1 lib/elasticsearch/xpack/api/actions/license/post.rb
elasticsearch-xpack-6.8.0 lib/elasticsearch/xpack/api/actions/license/post.rb
elasticsearch-xpack-6.3.1 lib/elasticsearch/xpack/api/actions/license/post.rb
elasticsearch-xpack-6.3.0 lib/elasticsearch/xpack/api/actions/license/post.rb
elasticsearch-xpack-6.2.0 lib/elasticsearch/xpack/api/actions/license/post.rb
elasticsearch-xpack-6.1.0 lib/elasticsearch/xpack/api/actions/license/post.rb
elasticsearch-xpack-6.0.0 lib/elasticsearch/xpack/api/actions/license/post.rb