lib/purecloud/models/language.rb in purecloud-0.18.0 vs lib/purecloud/models/language.rb in purecloud-0.25.0
- old
+ new
@@ -5,10 +5,17 @@
# The globally unique identifier for the object.
attr_accessor :id
attr_accessor :name
+ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ attr_accessor :date_modified
+
+ attr_accessor :state
+
+ attr_accessor :version
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -16,20 +23,29 @@
:'id' => :'id',
:'name' => :'name',
+ :'date_modified' => :'dateModified',
+
+ :'state' => :'state',
+
+ :'version' => :'version',
+
:'self_uri' => :'selfUri'
}
end
# Attribute type mapping.
def self.swagger_types
{
:'id' => :'String',
:'name' => :'String',
+ :'date_modified' => :'DateTime',
+ :'state' => :'String',
+ :'version' => :'String',
:'self_uri' => :'String'
}
end
@@ -46,32 +62,56 @@
if attributes[:'name']
self.name = attributes[:'name']
end
+ if attributes[:'dateModified']
+ self.date_modified = attributes[:'dateModified']
+ end
+
+ if attributes[:'state']
+ self.state = attributes[:'state']
+ end
+
+ if attributes[:'version']
+ self.version = attributes[:'version']
+ end
+
if attributes[:'selfUri']
self.self_uri = attributes[:'selfUri']
end
end
+ # Custom attribute writer method checking allowed values (enum).
+ def state=(state)
+ allowed_values = ["ACTIVE", "INACTIVE", "DELETED"]
+ if state && !allowed_values.include?(state)
+ fail "invalid value for 'state', must be one of #{allowed_values}"
+ end
+ @state = state
+ end
+
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
id == o.id &&
name == o.name &&
+ date_modified == o.date_modified &&
+ state == o.state &&
+ version == o.version &&
self_uri == o.self_uri
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, self_uri].hash
+ [id, name, date_modified, state, version, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)