Sha256: 296ddd2e7b10018123918fac6818f3b281c10ce0797a55c53eb81ded58e6064a

Contents?: true

Size: 421 Bytes

Versions: 7

Compression:

Stored size: 421 Bytes

Contents

# Extend the automatically-generated client configuration classes with a user-friendly
# authentication configuration, hiding the original #api_key method.

module DatadogAPIClient
  class Configuration
    private :api_key # Make original getter private

    def api_key=(api_key)
      @api_key['apiKeyAuth'] = api_key
    end

    def application_key=(app_key)
      @api_key['appKeyAuth'] = app_key
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog_api_client-2.4.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-2.3.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-2.2.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-2.1.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-2.0.2 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-2.0.1 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-2.0.0 lib/datadog_api_client/api_key_configuration.rb