Sha256: 40fa48fc03e81b60d4324724747c691bf367dcc98d20969b689c180241aa1099
Contents?: true
Size: 1.69 KB
Versions: 24
Compression:
Stored size: 1.69 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' # 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
24 entries across 24 versions & 1 rubygems