=begin #Datadog API V1 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 require 'date' require 'time' module DatadogAPIClient::V1 # Datadog-Azure integrations configured for your organization. class AzureAccount include BaseGenericModel # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Silence monitors for expected Azure VM shutdowns. attr_accessor :automute # Your Azure web application ID. attr_accessor :client_id # Your Azure web application secret key. attr_accessor :client_secret # Errors in your configuration. attr_accessor :errors # Limit the Azure instances that are pulled into Datadog by using tags. # Only hosts that match one of the defined tags are imported into Datadog. attr_accessor :host_filters # Your New Azure web application ID. attr_accessor :new_client_id # Your New Azure Active Directory ID. attr_accessor :new_tenant_name # Your Azure Active Directory ID. attr_accessor :tenant_name # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map { :'automute' => :'automute', :'client_id' => :'client_id', :'client_secret' => :'client_secret', :'errors' => :'errors', :'host_filters' => :'host_filters', :'new_client_id' => :'new_client_id', :'new_tenant_name' => :'new_tenant_name', :'tenant_name' => :'tenant_name' } end # Returns all the JSON keys this model knows about # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. # @!visibility private def self.openapi_types { :'automute' => :'Boolean', :'client_id' => :'String', :'client_secret' => :'String', :'errors' => :'Array', :'host_filters' => :'String', :'new_client_id' => :'String', :'new_tenant_name' => :'String', :'tenant_name' => :'String' } end # List of attributes with nullable: true # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object # @param attributes [Hash] Model attributes in the form of hash # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AzureAccount` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AzureAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'automute') self.automute = attributes[:'automute'] end if attributes.key?(:'client_id') self.client_id = attributes[:'client_id'] end if attributes.key?(:'client_secret') self.client_secret = attributes[:'client_secret'] end if attributes.key?(:'errors') if (value = attributes[:'errors']).is_a?(Array) self.errors = value end end if attributes.key?(:'host_filters') self.host_filters = attributes[:'host_filters'] end if attributes.key?(:'new_client_id') self.new_client_id = attributes[:'new_client_id'] end if attributes.key?(:'new_tenant_name') self.new_tenant_name = attributes[:'new_tenant_name'] end if attributes.key?(:'tenant_name') self.tenant_name = attributes[:'tenant_name'] end end # Check to see if the all the properties in the model are valid # @return true if the model is valid # @!visibility private def valid? true end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && automute == o.automute && client_id == o.client_id && client_secret == o.client_secret && errors == o.errors && host_filters == o.host_filters && new_client_id == o.new_client_id && new_tenant_name == o.new_tenant_name && tenant_name == o.tenant_name end # @see the `==` method # @param o [Object] Object to be compared # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code # @!visibility private def hash [automute, client_id, client_secret, errors, host_filters, new_client_id, new_tenant_name, tenant_name].hash end end end