lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-35.0.0 vs lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-36.0.0

- old
+ new

@@ -22,10 +22,13 @@ # The globally unique identifier for the object. attr_accessor :id attr_accessor :name + # The division to which this entity belongs. + attr_accessor :division + # 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) attr_accessor :time_zone @@ -54,10 +57,12 @@ :'id' => :'id', :'name' => :'name', + :'division' => :'division', + :'start_day_of_week' => :'startDayOfWeek', :'time_zone' => :'timeZone', :'settings' => :'settings', @@ -81,10 +86,12 @@ :'id' => :'String', :'name' => :'String', + :'division' => :'Division', + :'start_day_of_week' => :'String', :'time_zone' => :'String', :'settings' => :'ManagementUnitSettings', @@ -127,10 +134,19 @@ end + if attributes.has_key?(:'division') + + + self.division = attributes[:'division'] + + + end + + if attributes.has_key?(:'startDayOfWeek') self.start_day_of_week = attributes[:'startDayOfWeek'] @@ -224,10 +240,14 @@ + + + + allowed_values = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] if @start_day_of_week && !allowed_values.include?(@start_day_of_week) return false end @@ -283,10 +303,15 @@ + + + + + # 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) @@ -338,10 +363,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && + division == o.division && start_day_of_week == o.start_day_of_week && time_zone == o.time_zone && settings == o.settings && version == o.version && date_modified == o.date_modified && @@ -357,10 +383,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, 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, version, date_modified, modified_by, metadata, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)