lib/purecloud/models/group.rb in purecloud-0.28.0 vs lib/purecloud/models/group.rb in purecloud-0.29.1
- old
+ new
@@ -7,19 +7,22 @@
attr_accessor :name
attr_accessor :description
+ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ attr_accessor :date_modified
+
attr_accessor :member_count
- attr_accessor :group_type
+ attr_accessor :state
- attr_accessor :group_images
+ attr_accessor :version
- attr_accessor :group_state
+ attr_accessor :images
- attr_accessor :version
+ attr_accessor :addresses
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
@@ -30,19 +33,21 @@
:'name' => :'name',
:'description' => :'description',
+ :'date_modified' => :'dateModified',
+
:'member_count' => :'memberCount',
- :'group_type' => :'groupType',
+ :'state' => :'state',
- :'group_images' => :'groupImages',
+ :'version' => :'version',
- :'group_state' => :'groupState',
+ :'images' => :'images',
- :'version' => :'version',
+ :'addresses' => :'addresses',
:'self_uri' => :'selfUri'
}
end
@@ -51,15 +56,16 @@
def self.swagger_types
{
:'id' => :'String',
:'name' => :'String',
:'description' => :'String',
+ :'date_modified' => :'DateTime',
:'member_count' => :'Integer',
- :'group_type' => :'String',
- :'group_images' => :'GroupImages',
- :'group_state' => :'String',
+ :'state' => :'String',
:'version' => :'Float',
+ :'images' => :'Array<UserImage>',
+ :'addresses' => :'Array<Contact>',
:'self_uri' => :'String'
}
end
@@ -80,76 +86,76 @@
if attributes[:'description']
self.description = attributes[:'description']
end
+ if attributes[:'dateModified']
+ self.date_modified = attributes[:'dateModified']
+ end
+
if attributes[:'memberCount']
self.member_count = attributes[:'memberCount']
end
- if attributes[:'groupType']
- self.group_type = attributes[:'groupType']
+ if attributes[:'state']
+ self.state = attributes[:'state']
end
- if attributes[:'groupImages']
- self.group_images = attributes[:'groupImages']
+ if attributes[:'version']
+ self.version = attributes[:'version']
end
- if attributes[:'groupState']
- self.group_state = attributes[:'groupState']
+ if attributes[:'images']
+ if (value = attributes[:'images']).is_a?(Array)
+ self.images = value
+ end
end
- if attributes[:'version']
- self.version = attributes[:'version']
+ if attributes[:'addresses']
+ if (value = attributes[:'addresses']).is_a?(Array)
+ self.addresses = value
+ end
end
if attributes[:'selfUri']
self.self_uri = attributes[:'selfUri']
end
end
# Custom attribute writer method checking allowed values (enum).
- def group_type=(group_type)
- allowed_values = ["OFFICIAL", "DISTRIBUTION_GROUP"]
- if group_type && !allowed_values.include?(group_type)
- fail "invalid value for 'group_type', must be one of #{allowed_values}"
- end
- @group_type = group_type
- end
-
- # Custom attribute writer method checking allowed values (enum).
- def group_state=(group_state)
+ def state=(state)
allowed_values = ["ACTIVE", "INACTIVE", "DELETED"]
- if group_state && !allowed_values.include?(group_state)
- fail "invalid value for 'group_state', must be one of #{allowed_values}"
+ if state && !allowed_values.include?(state)
+ fail "invalid value for 'state', must be one of #{allowed_values}"
end
- @group_state = group_state
+ @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 &&
description == o.description &&
+ date_modified == o.date_modified &&
member_count == o.member_count &&
- group_type == o.group_type &&
- group_images == o.group_images &&
- group_state == o.group_state &&
+ state == o.state &&
version == o.version &&
+ images == o.images &&
+ addresses == o.addresses &&
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, description, member_count, group_type, group_images, group_state, version, self_uri].hash
+ [id, name, description, date_modified, member_count, state, version, images, addresses, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)