lib/purecloudplatformclientv2/models/manager.rb in purecloudplatformclientv2-59.0.0 vs lib/purecloudplatformclientv2/models/manager.rb in purecloudplatformclientv2-60.0.0
- old
+ new
@@ -15,80 +15,22 @@
=end
require 'date'
module PureCloud
- # Represents a SCIM V2 Enterprise Manager
+ # User's Manager
class Manager
- # Display Name
- attr_accessor :display_name
-
- # Active flag
- attr_accessor :active
-
- # User Name (Must be Unique) maps to PureCloud e-mail address
- attr_accessor :user_name
-
- # Password (updateOnly)
- attr_accessor :password
-
- # Title
- attr_accessor :title
-
- # Phone numbers
- attr_accessor :phone_numbers
-
- # Emails
- attr_accessor :emails
-
- # Photos
- attr_accessor :photos
-
- # External ID
- attr_accessor :external_id
-
- # Group References
- attr_accessor :groups
-
- attr_accessor :meta
-
- attr_accessor :urnietfparamsscimschemasextensionenterprise2_0_user
-
# Identifier of the Manager
attr_accessor :value
- # Ref to entity
+ # URI for Manager User record.
attr_accessor :ref
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'display_name' => :'displayName',
-
- :'active' => :'active',
-
- :'user_name' => :'userName',
-
- :'password' => :'password',
-
- :'title' => :'title',
-
- :'phone_numbers' => :'phoneNumbers',
-
- :'emails' => :'emails',
-
- :'photos' => :'photos',
-
- :'external_id' => :'externalId',
-
- :'groups' => :'groups',
-
- :'meta' => :'meta',
-
- :'urnietfparamsscimschemasextensionenterprise2_0_user' => :'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User',
-
:'value' => :'value',
:'ref' => :'$ref'
}
@@ -96,34 +38,10 @@
# Attribute type mapping.
def self.swagger_types
{
- :'display_name' => :'String',
-
- :'active' => :'BOOLEAN',
-
- :'user_name' => :'String',
-
- :'password' => :'String',
-
- :'title' => :'String',
-
- :'phone_numbers' => :'Array<ScimPhoneNumber>',
-
- :'emails' => :'Array<ScimEmail>',
-
- :'photos' => :'Array<Photo>',
-
- :'external_id' => :'String',
-
- :'groups' => :'Array<ScimV2GroupReference>',
-
- :'meta' => :'ScimMetadata',
-
- :'urnietfparamsscimschemasextensionenterprise2_0_user' => :'ScimV2EnterpriseUser',
-
:'value' => :'String',
:'ref' => :'String'
}
@@ -136,126 +54,10 @@
# convert string to symbol for hash key
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
- if attributes.has_key?(:'displayName')
-
-
- self.display_name = attributes[:'displayName']
-
-
- end
-
-
- if attributes.has_key?(:'active')
-
-
- self.active = attributes[:'active']
-
-
- end
-
-
- if attributes.has_key?(:'userName')
-
-
- self.user_name = attributes[:'userName']
-
-
- end
-
-
- if attributes.has_key?(:'password')
-
-
- self.password = attributes[:'password']
-
-
- end
-
-
- if attributes.has_key?(:'title')
-
-
- self.title = attributes[:'title']
-
-
- end
-
-
- if attributes.has_key?(:'phoneNumbers')
-
- if (value = attributes[:'phoneNumbers']).is_a?(Array)
- self.phone_numbers = value
- end
-
-
-
- end
-
-
- if attributes.has_key?(:'emails')
-
- if (value = attributes[:'emails']).is_a?(Array)
- self.emails = value
- end
-
-
-
- end
-
-
- if attributes.has_key?(:'photos')
-
- if (value = attributes[:'photos']).is_a?(Array)
- self.photos = value
- end
-
-
-
- end
-
-
- if attributes.has_key?(:'externalId')
-
-
- self.external_id = attributes[:'externalId']
-
-
- end
-
-
- if attributes.has_key?(:'groups')
-
- if (value = attributes[:'groups']).is_a?(Array)
- self.groups = value
- end
-
-
-
- end
-
-
- if attributes.has_key?(:'meta')
-
-
- self.meta = attributes[:'meta']
-
-
- end
-
-
- if attributes.has_key?(:'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User')
-
-
- self.urnietfparamsscimschemasextensionenterprise2_0_user = attributes[:'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']
-
-
- end
-
-
if attributes.has_key?(:'value')
self.value = attributes[:'value']
@@ -293,58 +95,10 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
end
@@ -354,87 +108,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- display_name == o.display_name &&
- active == o.active &&
- user_name == o.user_name &&
- password == o.password &&
- title == o.title &&
- phone_numbers == o.phone_numbers &&
- emails == o.emails &&
- photos == o.photos &&
- external_id == o.external_id &&
- groups == o.groups &&
- meta == o.meta &&
- urnietfparamsscimschemasextensionenterprise2_0_user == o.urnietfparamsscimschemasextensionenterprise2_0_user &&
value == o.value &&
ref == o.ref
end
# @see the `==` method
@@ -444,10 +126,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [display_name, active, user_name, password, title, phone_numbers, emails, photos, external_id, groups, meta, urnietfparamsscimschemasextensionenterprise2_0_user, value, ref].hash
+ [value, ref].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)