Sha256: ea397195291e2de1e7f8fedb4798f69917169c731a7f7f44be46800eeefec79b
Contents?: true
Size: 1.74 KB
Versions: 7
Compression:
Stored size: 1.74 KB
Contents
=begin #Datadog API V2 Collection #Collection of all Datadog Public endpoints. The version of the OpenAPI document: 1.0 Contact: support@datadoghq.com Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2020-Present Datadog, Inc. =end # Common files require 'datadog_api_client/version' require 'datadog_api_client/user_agent' require 'datadog_api_client/api_client' require 'datadog_api_client/configuration' require 'datadog_api_client/api_key_configuration' # Model base ## Load in the model_base modules which also initializes the V1 and V2 namespaces require 'datadog_api_client/v1/model_base' require 'datadog_api_client/v2/model_base' module DatadogAPIClient class << self # Customize default settings for the SDK using block. # DatadogAPIClient::V2.configure do |config| # config.username = "xxx" # config.password = "xxx" # end # If no block given, return the default Configuration object. def configure if block_given? yield(Configuration.default) else Configuration.default end end end class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values def initialize(datatype, allowable_values) @allowable_values = allowable_values.map do |value| case datatype.to_s when /Integer/i value.to_i when /Float/i value.to_f else value end end end def valid?(value) !value || allowable_values.include?(value) end end end
Version data entries
7 entries across 7 versions & 1 rubygems