lib/purecloud/models/certificate_details.rb in purecloud-0.34.1 vs lib/purecloud/models/certificate_details.rb in purecloud-0.35.1
- old
+ new
@@ -16,14 +16,14 @@
attr_accessor :issue_date
# True if the certificate is expired, false otherwise.
attr_accessor :expired
- attr_accessor :valid
-
attr_accessor :signature_valid
+ attr_accessor :valid
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'issuer' => :'issuer',
@@ -34,13 +34,13 @@
:'issue_date' => :'issueDate',
:'expired' => :'expired',
- :'valid' => :'valid',
+ :'signature_valid' => :'signatureValid',
- :'signature_valid' => :'signatureValid'
+ :'valid' => :'valid'
}
end
# Attribute type mapping.
@@ -49,12 +49,12 @@
:'issuer' => :'String',
:'subject' => :'String',
:'expiration_date' => :'DateTime',
:'issue_date' => :'DateTime',
:'expired' => :'BOOLEAN',
- :'valid' => :'BOOLEAN',
- :'signature_valid' => :'BOOLEAN'
+ :'signature_valid' => :'BOOLEAN',
+ :'valid' => :'BOOLEAN'
}
end
def initialize(attributes = {})
@@ -84,22 +84,22 @@
self.expired = attributes[:'expired']
else
self.expired = false
end
- if attributes[:'valid']
- self.valid = attributes[:'valid']
- else
- self.valid = false
- end
-
if attributes[:'signatureValid']
self.signature_valid = attributes[:'signatureValid']
else
self.signature_valid = false
end
+ if attributes[:'valid']
+ self.valid = attributes[:'valid']
+ else
+ self.valid = false
+ end
+
end
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
@@ -107,21 +107,21 @@
issuer == o.issuer &&
subject == o.subject &&
expiration_date == o.expiration_date &&
issue_date == o.issue_date &&
expired == o.expired &&
- valid == o.valid &&
- signature_valid == o.signature_valid
+ signature_valid == o.signature_valid &&
+ valid == o.valid
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [issuer, subject, expiration_date, issue_date, expired, valid, signature_valid].hash
+ [issuer, subject, expiration_date, issue_date, expired, signature_valid, valid].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)