lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-58.0.1 vs lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-59.0.0

- old
+ new

@@ -25,34 +25,31 @@ attr_accessor :name # The division to which this entity belongs. attr_accessor :division - # The business unit to which this management unit belongs - attr_accessor :business_unit - # Start day of week for scheduling and forecasting purposes attr_accessor :start_day_of_week - # The time zone for the management unit in standard Olson Format (See https://en.wikipedia.org/wiki/Tz_database) + # The time zone for the management unit in standard Olson format attr_accessor :time_zone # The configuration settings for this management unit attr_accessor :settings - # The version of the underlying entity. Deprecated, use metadata field instead + # Version info metadata for this management unit. Deprecated, use settings.metadata + attr_accessor :metadata + + # The version of the underlying entity. Deprecated, use field from settings.metadata instead attr_accessor :version - # The date and time at which this entity was last modified. Deprecated, use metadata field instead. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + # The date and time at which this entity was last modified. Deprecated, use field from settings.metadata instead. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :date_modified - # The user who last modified this entity. Deprecated, use metadata field instead + # The user who last modified this entity. Deprecated, use field from settings.metadata instead attr_accessor :modified_by - # Version info metadata for this management unit - attr_accessor :metadata - # The URI for this object attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -62,26 +59,24 @@ :'name' => :'name', :'division' => :'division', - :'business_unit' => :'businessUnit', - :'start_day_of_week' => :'startDayOfWeek', :'time_zone' => :'timeZone', :'settings' => :'settings', + :'metadata' => :'metadata', + :'version' => :'version', :'date_modified' => :'dateModified', :'modified_by' => :'modifiedBy', - :'metadata' => :'metadata', - :'self_uri' => :'selfUri' } end @@ -93,26 +88,24 @@ :'name' => :'String', :'division' => :'Division', - :'business_unit' => :'BusinessUnitReference', - :'start_day_of_week' => :'String', :'time_zone' => :'String', :'settings' => :'ManagementUnitSettings', + :'metadata' => :'WfmVersionedEntityMetadata', + :'version' => :'Integer', :'date_modified' => :'DateTime', :'modified_by' => :'UserReference', - :'metadata' => :'WfmVersionedEntityMetadata', - :'self_uri' => :'String' } end @@ -150,41 +143,41 @@ end - if attributes.has_key?(:'businessUnit') + if attributes.has_key?(:'startDayOfWeek') - self.business_unit = attributes[:'businessUnit'] + self.start_day_of_week = attributes[:'startDayOfWeek'] end - if attributes.has_key?(:'startDayOfWeek') + if attributes.has_key?(:'timeZone') - self.start_day_of_week = attributes[:'startDayOfWeek'] + self.time_zone = attributes[:'timeZone'] end - if attributes.has_key?(:'timeZone') + if attributes.has_key?(:'settings') - self.time_zone = attributes[:'timeZone'] + self.settings = attributes[:'settings'] end - if attributes.has_key?(:'settings') + if attributes.has_key?(:'metadata') - self.settings = attributes[:'settings'] + self.metadata = attributes[:'metadata'] end @@ -213,19 +206,10 @@ end - if attributes.has_key?(:'metadata') - - - self.metadata = attributes[:'metadata'] - - - end - - if attributes.has_key?(:'selfUri') self.self_uri = attributes[:'selfUri'] @@ -260,14 +244,10 @@ - - - - allowed_values = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] if @start_day_of_week && !allowed_values.include?(@start_day_of_week) return false end @@ -280,14 +260,10 @@ - if @version.nil? - return false - end - @@ -297,22 +273,16 @@ - if @metadata.nil? - return false - end - - - end @@ -328,15 +298,10 @@ - - - - - # Custom attribute writer method checking allowed values (enum). # @param [Object] start_day_of_week Object to be assigned def start_day_of_week=(start_day_of_week) allowed_values = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] if start_day_of_week && !allowed_values.include?(start_day_of_week) @@ -389,18 +354,17 @@ return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && division == o.division && - business_unit == o.business_unit && start_day_of_week == o.start_day_of_week && time_zone == o.time_zone && settings == o.settings && + metadata == o.metadata && version == o.version && date_modified == o.date_modified && modified_by == o.modified_by && - metadata == o.metadata && self_uri == o.self_uri end # @see the `==` method # @param [Object] Object to be compared @@ -409,10 +373,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, division, business_unit, start_day_of_week, time_zone, settings, version, date_modified, modified_by, metadata, self_uri].hash + [id, name, division, start_day_of_week, time_zone, settings, metadata, version, date_modified, modified_by, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)