lib/hawkular/tokens/tokens_api.rb in hawkular-client-2.8.0 vs lib/hawkular/tokens/tokens_api.rb in hawkular-client-2.9.0

- old
+ new

@@ -1,11 +1,11 @@ require 'hawkular/base_client' # Token module provides access to the Secret Store REST API. module Hawkular::Token # Client class to interact with the Secret Store - class TokenClient < Hawkular::BaseClient + class Client < Hawkular::BaseClient # Create a new Secret Store client # @param entrypoint [String] base url of Hawkular - e.g http://localhost:8080 # @param credentials [Hash{String=>String}] Hash of username, password # @param options [Hash{String=>String}] Additional rest client options def initialize(entrypoint, credentials = {}, options = {}) @@ -29,6 +29,9 @@ token_attributes = { expiresAt: expires_at, attributes: { name: name } } http_post('/secret-store/v1/tokens/create', token_attributes, auth_header) end end + + TokenClient = Client + deprecate_constant :TokenClient if self.respond_to? :deprecate_constant end