lib/purecloudplatformclientv2/models/user_schedule.rb in purecloudplatformclientv2-32.0.0 vs lib/purecloudplatformclientv2/models/user_schedule.rb in purecloudplatformclientv2-33.0.0
- old
+ new
@@ -23,29 +23,50 @@
attr_accessor :shifts
# Markers to indicate a full day time off request, relative to the management unit time zone
attr_accessor :full_day_time_off_markers
+ # If marked true for updating an existing user schedule, it will be deleted
+ attr_accessor :delete
+
+ # Version metadata for this schedule
+ attr_accessor :metadata
+
+ # ID of the work plan associated with the user during schedule creation
+ attr_accessor :work_plan_id
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'shifts' => :'shifts',
- :'full_day_time_off_markers' => :'fullDayTimeOffMarkers'
+ :'full_day_time_off_markers' => :'fullDayTimeOffMarkers',
+ :'delete' => :'delete',
+
+ :'metadata' => :'metadata',
+
+ :'work_plan_id' => :'workPlanId'
+
}
end
# Attribute type mapping.
def self.swagger_types
{
:'shifts' => :'Array<UserScheduleShift>',
- :'full_day_time_off_markers' => :'Array<UserScheduleFullDayTimeOffMarker>'
+ :'full_day_time_off_markers' => :'Array<UserScheduleFullDayTimeOffMarker>',
+ :'delete' => :'BOOLEAN',
+
+ :'metadata' => :'WfmVersionedEntityMetadata',
+
+ :'work_plan_id' => :'String'
+
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -76,10 +97,37 @@
end
+ if attributes.has_key?(:'delete')
+
+
+ self.delete = attributes[:'delete']
+
+
+ end
+
+
+ if attributes.has_key?(:'metadata')
+
+
+ self.metadata = attributes[:'metadata']
+
+
+ end
+
+
+ if attributes.has_key?(:'workPlanId')
+
+
+ self.work_plan_id = attributes[:'workPlanId']
+
+
+ end
+
+
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properies with the reasons
def list_invalid_properties
@@ -99,10 +147,27 @@
+
+
+
+
+
+ if @metadata.nil?
+ return false
+ end
+
+
+
+
+
+
+
+
+
end
@@ -112,17 +177,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
shifts == o.shifts &&
- full_day_time_off_markers == o.full_day_time_off_markers
+ full_day_time_off_markers == o.full_day_time_off_markers &&
+ delete == o.delete &&
+ metadata == o.metadata &&
+ work_plan_id == o.work_plan_id
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -130,10 +213,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [shifts, full_day_time_off_markers].hash
+ [shifts, full_day_time_off_markers, delete, metadata, work_plan_id].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)