lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-57.0.0 vs lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-58.0.0
- old
+ new
@@ -25,10 +25,13 @@
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)
attr_accessor :time_zone
@@ -59,10 +62,12 @@
:'name' => :'name',
:'division' => :'division',
+ :'business_unit' => :'businessUnit',
+
:'start_day_of_week' => :'startDayOfWeek',
:'time_zone' => :'timeZone',
:'settings' => :'settings',
@@ -88,10 +93,12 @@
:'name' => :'String',
:'division' => :'Division',
+ :'business_unit' => :'BusinessUnitReference',
+
:'start_day_of_week' => :'String',
:'time_zone' => :'String',
:'settings' => :'ManagementUnitSettings',
@@ -143,10 +150,19 @@
end
+ if attributes.has_key?(:'businessUnit')
+
+
+ self.business_unit = attributes[:'businessUnit']
+
+
+ end
+
+
if attributes.has_key?(:'startDayOfWeek')
self.start_day_of_week = attributes[:'startDayOfWeek']
@@ -244,10 +260,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
@@ -308,10 +328,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)
@@ -364,10 +389,11 @@
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 &&
version == o.version &&
date_modified == o.date_modified &&
@@ -383,10 +409,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, division, start_day_of_week, time_zone, settings, version, date_modified, modified_by, metadata, self_uri].hash
+ [id, name, division, business_unit, 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)