lib/purecloud/models/group.rb in purecloud-0.36.1 vs lib/purecloud/models/group.rb in purecloud-0.37.1
- old
+ new
@@ -1,18 +1,18 @@
=begin
-PureCloud API
+PureCloud Platform API
-PureCloud API
+With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
-OpenAPI spec version: v1
-Contact: chuck.pulfer@inin.com
+OpenAPI spec version: v2
+Contact: DeveloperEvangelists@inin.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
License: ININ
http://www.inin.com
-Terms of Service: http://www.inin.com
+Terms of Service: https://developer.mypurecloud.com/tos
=end
require 'date'
@@ -23,23 +23,35 @@
attr_accessor :name
attr_accessor :description
- # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ # Last modified date/time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :date_modified
+ # Number of members.
attr_accessor :member_count
+ # Active, inactive, or deleted state.
attr_accessor :state
+ # Current version for this resource.
attr_accessor :version
+ # Type of group.
+ attr_accessor :type
+
attr_accessor :images
attr_accessor :addresses
+ # Are membership rules visible to the person requesting to view the group
+ attr_accessor :rules_visible
+
+ # Who can view this group
+ attr_accessor :visibility
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -57,14 +69,20 @@
:'state' => :'state',
:'version' => :'version',
+ :'type' => :'type',
+
:'images' => :'images',
:'addresses' => :'addresses',
+ :'rules_visible' => :'rulesVisible',
+
+ :'visibility' => :'visibility',
+
:'self_uri' => :'selfUri'
}
end
@@ -75,13 +93,16 @@
:'name' => :'String',
:'description' => :'String',
:'date_modified' => :'DateTime',
:'member_count' => :'Integer',
:'state' => :'String',
- :'version' => :'Float',
+ :'version' => :'Integer',
+ :'type' => :'String',
:'images' => :'Array<UserImage>',
:'addresses' => :'Array<Contact>',
+ :'rules_visible' => :'BOOLEAN',
+ :'visibility' => :'String',
:'self_uri' => :'String'
}
end
@@ -118,10 +139,14 @@
if attributes[:'version']
self.version = attributes[:'version']
end
+ if attributes[:'type']
+ self.type = attributes[:'type']
+ end
+
if attributes[:'images']
if (value = attributes[:'images']).is_a?(Array)
self.images = value
end
end
@@ -130,25 +155,53 @@
if (value = attributes[:'addresses']).is_a?(Array)
self.addresses = value
end
end
+ if attributes[:'rulesVisible']
+ self.rules_visible = attributes[:'rulesVisible']
+ else
+ self.rules_visible = false
+ end
+
+ if attributes[:'visibility']
+ self.visibility = attributes[:'visibility']
+ 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"]
+ 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
+ # Custom attribute writer method checking allowed values (enum).
+ def type=(type)
+ allowed_values = ["official", "social"]
+ if type && !allowed_values.include?(type)
+ fail "invalid value for 'type', must be one of #{allowed_values}"
+ end
+ @type = type
+ end
+
+ # Custom attribute writer method checking allowed values (enum).
+ def visibility=(visibility)
+ allowed_values = ["public", "owners", "members"]
+ if visibility && !allowed_values.include?(visibility)
+ fail "invalid value for 'visibility', must be one of #{allowed_values}"
+ end
+ @visibility = visibility
+ end
+
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
id == o.id &&
@@ -156,22 +209,25 @@
description == o.description &&
date_modified == o.date_modified &&
member_count == o.member_count &&
state == o.state &&
version == o.version &&
+ type == o.type &&
images == o.images &&
addresses == o.addresses &&
+ rules_visible == o.rules_visible &&
+ visibility == o.visibility &&
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, date_modified, member_count, state, version, images, addresses, self_uri].hash
+ [id, name, description, date_modified, member_count, state, version, type, images, addresses, rules_visible, visibility, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)