lib/purecloud/models/forecast_creation.rb in purecloud-0.56.1 vs lib/purecloud/models/forecast_creation.rb in purecloud-0.57.1
- old
+ new
@@ -31,10 +31,13 @@
attr_accessor :metrics
# The id of the management unit to which the new forecast belongs
attr_accessor :management_unit_id
+ # The id of forecast the new forecast will copy from
+ attr_accessor :copied_forecast_id
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'number_of_periods' => :'numberOfPeriods',
@@ -43,23 +46,26 @@
:'description' => :'description',
:'metrics' => :'metrics',
- :'management_unit_id' => :'managementUnitId'
+ :'management_unit_id' => :'managementUnitId',
+ :'copied_forecast_id' => :'copiedForecastId'
+
}
end
# Attribute type mapping.
def self.swagger_types
{
:'number_of_periods' => :'Integer',
:'period_frequency' => :'String',
:'description' => :'String',
:'metrics' => :'Array<String>',
- :'management_unit_id' => :'String'
+ :'management_unit_id' => :'String',
+ :'copied_forecast_id' => :'String'
}
end
def initialize(attributes = {})
@@ -89,10 +95,14 @@
if attributes[:'managementUnitId']
self.management_unit_id = attributes[:'managementUnitId']
end
+ if attributes[:'copiedForecastId']
+ self.copied_forecast_id = attributes[:'copiedForecastId']
+ end
+
end
# Custom attribute writer method checking allowed values (enum).
def period_frequency=(period_frequency)
allowed_values = ["WEEK"]
@@ -108,20 +118,21 @@
self.class == o.class &&
number_of_periods == o.number_of_periods &&
period_frequency == o.period_frequency &&
description == o.description &&
metrics == o.metrics &&
- management_unit_id == o.management_unit_id
+ management_unit_id == o.management_unit_id &&
+ copied_forecast_id == o.copied_forecast_id
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [number_of_periods, period_frequency, description, metrics, management_unit_id].hash
+ [number_of_periods, period_frequency, description, metrics, management_unit_id, copied_forecast_id].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)