lib/brevo/models/create_domain_model.rb in brevo-2.0.0 vs lib/brevo/models/create_domain_model.rb in brevo-3.0.0

- old
+ new

@@ -18,30 +18,35 @@ attr_accessor :id # Domain attr_accessor :domain_name + # Domain Provider + attr_accessor :domain_provider + # Success message attr_accessor :message attr_accessor :dns_records # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'domain_name' => :'domain_name', + :'domain_provider' => :'domain_provider', :'message' => :'message', :'dns_records' => :'dns_records' } end # Attribute type mapping. def self.swagger_types { :'id' => :'Integer', :'domain_name' => :'String', + :'domain_provider' => :'String', :'message' => :'String', :'dns_records' => :'CreateDomainModelDnsRecords' } end @@ -59,10 +64,14 @@ if attributes.has_key?(:'domain_name') self.domain_name = attributes[:'domain_name'] end + if attributes.has_key?(:'domain_provider') + self.domain_provider = attributes[:'domain_provider'] + end + if attributes.has_key?(:'message') self.message = attributes[:'message'] end if attributes.has_key?(:'dns_records') @@ -93,10 +102,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && domain_name == o.domain_name && + domain_provider == o.domain_provider && message == o.message && dns_records == o.dns_records end # @see the `==` method @@ -106,10 +116,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, domain_name, message, dns_records].hash + [id, domain_name, domain_provider, message, dns_records].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself