Sha256: 4dd4a5ef798ef5de63528917d03c062a6c7460d44edf4044dc0fd93f4792d66e

Contents?: true

Size: 759 Bytes

Versions: 13

Compression:

Stored size: 759 Bytes

Contents

require 'datadog_api_client/v1'
require 'datadog_api_client/v2'

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

module DatadogAPIClient::V1
  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

module DatadogAPIClient::V2
  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

13 entries across 13 versions & 1 rubygems

Version Path
datadog_api_client-1.11.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.10.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.9.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.8.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.7.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.6.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.5.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.4.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.3.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.2.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.1.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.0.0 lib/datadog_api_client/api_key_configuration.rb
datadog_api_client-1.0.0.beta.3 lib/datadog_api_client/api_key_configuration.rb