purecloudplatformclientv2 36.1.0 → 37.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/AgentTimeOffRequestPatch.md +15 -0
- data/docs/AnalyticsApi.md +2 -2
- data/docs/AsgInfoResponse.md +2 -2
- data/docs/AsyncWeekScheduleResponse.md +16 -0
- data/docs/CallMediaPolicyConditions.md +1 -0
- data/docs/CampaignNotification.md +1 -0
- data/docs/ChatMediaPolicyConditions.md +1 -0
- data/docs/ConversationNotificationMedia.md +3 -0
- data/docs/ConversationNotificationMessageDetails.md +1 -0
- data/docs/ConversationNotificationMessageMedia.md +3 -0
- data/docs/ConversationNotificationMessageSticker.md +14 -0
- data/docs/ConversationNotificationMessages.md +1 -0
- data/docs/ConversationNotificationStickers.md +14 -0
- data/docs/CopyShortTermForecastRequest.md +14 -0
- data/docs/CopyWeekScheduleRequest.md +14 -0
- data/docs/CopyWorkPlan.md +13 -0
- data/docs/CreateAdminTimeOffRequest.md +19 -0
- data/docs/CreateAgentTimeOffRequest.md +17 -0
- data/docs/CreateAsgRequest.md +1 -1
- data/docs/CreateManagementUnitApiRequest.md +17 -0
- data/docs/CreateManagementUnitSettings.md +16 -0
- data/docs/CreateQueueMediaAssociationRequest.md +14 -0
- data/docs/CreateServiceGoalGroupRequest.md +15 -0
- data/docs/CreateWorkPlan.md +26 -0
- data/docs/CreateWorkPlanActivity.md +23 -0
- data/docs/CreateWorkPlanShift.md +29 -0
- data/docs/CurrentUserScheduleRequestBody.md +14 -0
- data/docs/DateRange.md +14 -0
- data/docs/DeletableUserReference.md +15 -0
- data/docs/EmailMediaPolicyConditions.md +1 -0
- data/docs/ExternalContact.md +3 -1
- data/docs/ExternalOrganization.md +1 -1
- data/docs/FacebookId.md +14 -0
- data/docs/FacebookScopedId.md +13 -0
- data/docs/FlowOutcomeNotificationNotification.md +16 -0
- data/docs/FlowOutcomeNotificationNotificationArchitectOperation.md +21 -0
- data/docs/FlowOutcomeNotificationNotificationErrorDetail.md +16 -0
- data/docs/FlowOutcomeNotificationNotificationErrorMessageParams.md +13 -0
- data/docs/{SurveyFormUriReference.md → FlowOutcomeNotificationNotificationHomeOrganization.md} +3 -4
- data/docs/FlowOutcomeNotificationNotificationUser.md +15 -0
- data/docs/ForecastGenerationResult.md +13 -0
- data/docs/ForecastGenerationRouteGroupResult.md +14 -0
- data/docs/ForecastResultResponse.md +14 -0
- data/docs/ForecastSourceDayPointer.md +17 -0
- data/docs/ForecastTimeSeriesResult.md +14 -0
- data/docs/GenerateShortTermForecastRequest.md +13 -0
- data/docs/GenerateShortTermForecastResponse.md +16 -0
- data/docs/GenerateWeekScheduleRequest.md +14 -0
- data/docs/GenerateWeekScheduleResponse.md +15 -0
- data/docs/GroupsApi.md +2 -0
- data/docs/HeadcountForecastResponse.md +14 -0
- data/docs/HeadcountIntervalResponse.md +14 -0
- data/docs/ImportShortTermForecastRequest.md +16 -0
- data/docs/ImportWeekScheduleRequest.md +17 -0
- data/docs/IntradayDataUpdateNotificationDateTime.md +1 -1
- data/docs/IntradayDataUpdateNotificationStartDate.md +1 -1
- data/docs/JsonNode.md +1 -1
- data/docs/LanguageReference.md +14 -0
- data/docs/LineId.md +14 -0
- data/docs/LineUserId.md +13 -0
- data/docs/ListWrapperForecastSourceDayPointer.md +13 -0
- data/docs/ListWrapperShiftStartVariance.md +13 -0
- data/docs/ListWrapperWfmForecastModification.md +13 -0
- data/docs/MessageConversationNotificationMessageDetails.md +1 -0
- data/docs/MessageConversationNotificationMessageMedia.md +3 -0
- data/docs/MessageConversationNotificationMessageSticker.md +14 -0
- data/docs/MessageConversationNotificationMessages.md +1 -0
- data/docs/MessageMediaPolicyConditions.md +1 -0
- data/docs/OrgUser.md +1 -0
- data/docs/OutboundApi.md +70 -0
- data/docs/PartialUploadResponse.md +13 -0
- data/docs/PatchUser.md +0 -1
- data/docs/PublishedSurveyFormReference.md +16 -0
- data/docs/QueryDivision.md +12 -0
- data/docs/QueueMediaAssociation.md +16 -0
- data/docs/QueueReference.md +14 -0
- data/docs/RecordingMessagingMessage.md +1 -0
- data/docs/RouteGroup.md +18 -0
- data/docs/RouteGroupAttributes.md +16 -0
- data/docs/RouteGroupList.md +14 -0
- data/docs/RoutingApi.md +8 -8
- data/docs/RoutingSkillReference.md +14 -0
- data/docs/ScheduleGenerationWarning.md +20 -0
- data/docs/SchedulingRunListResponse.md +13 -0
- data/docs/SchedulingRunResponse.md +22 -0
- data/docs/ServiceGoalGroup.md +18 -0
- data/docs/ServiceGoalGroupGoals.md +14 -0
- data/docs/ServiceGoalGroupList.md +14 -0
- data/docs/SetWrapperDayOfWeek.md +13 -0
- data/docs/ShiftStartVariance.md +14 -0
- data/docs/ShortTermForecast.md +22 -0
- data/docs/ShortTermForecastListItemResponse.md +18 -0
- data/docs/ShortTermForecastListResponse.md +13 -0
- data/docs/ShortTermForecastReference.md +16 -0
- data/docs/ShortTermForecastResponse.md +15 -0
- data/docs/SurveyAssignment.md +3 -1
- data/docs/SurveyForm.md +1 -0
- data/docs/TimeOffRequestEntityList.md +13 -0
- data/docs/TimeOffRequestLookup.md +15 -0
- data/docs/TimeOffRequestLookupList.md +13 -0
- data/docs/TimeOffRequestQueryBody.md +15 -0
- data/docs/TrustUser.md +1 -0
- data/docs/TrusteeAuthorization.md +13 -0
- data/docs/Trustor.md +1 -0
- data/docs/UpdateActivityCodeRequest.md +19 -0
- data/docs/UpdateWeekScheduleRequest.md +18 -0
- data/docs/User.md +1 -0
- data/docs/UserMe.md +1 -0
- data/docs/UserScheduleAdherenceUpdateNotificationDateTime.md +1 -1
- data/docs/UserSchedulesPartialUploadRequest.md +13 -0
- data/docs/UsersApi.md +5 -6
- data/docs/ViewFilter.md +4 -0
- data/docs/WeekSchedule.md +23 -0
- data/docs/WeekScheduleGenerationResult.md +16 -0
- data/docs/WeekScheduleListItemResponse.md +20 -0
- data/docs/WeekScheduleListResponse.md +13 -0
- data/docs/WeekScheduleResponse.md +14 -0
- data/docs/WfmAgent.md +22 -0
- data/docs/WfmAverageSpeedOfAnswer.md +14 -0
- data/docs/WfmForecastModification.md +20 -0
- data/docs/WfmForecastModificationAttributes.md +16 -0
- data/docs/WfmForecastModificationIntervalOffsetValue.md +14 -0
- data/docs/WfmHistoricalAdherenceQuery.md +1 -1
- data/docs/WfmHistoricalAdherenceQueryForUsers.md +17 -0
- data/docs/WfmServiceLevel.md +15 -0
- data/docs/WfmTimeZone.md +13 -0
- data/docs/WorkPlan.md +29 -0
- data/docs/WorkPlanActivity.md +25 -0
- data/docs/WorkPlanListItemResponse.md +21 -0
- data/docs/WorkPlanListResponse.md +13 -0
- data/docs/WorkPlanReference.md +13 -0
- data/docs/WorkPlanShift.md +31 -0
- data/docs/WorkforceManagementApi.md +3557 -187
- data/lib/purecloudplatformclientv2.rb +96 -1
- data/lib/purecloudplatformclientv2/api/outbound_api.rb +83 -0
- data/lib/purecloudplatformclientv2/api/routing_api.rb +8 -8
- data/lib/purecloudplatformclientv2/api/users_api.rb +8 -6
- data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +3993 -288
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/agent_time_off_request_patch.rb +268 -0
- data/lib/purecloudplatformclientv2/models/aggregate_metric_data.rb +2 -2
- data/lib/purecloudplatformclientv2/models/analytics_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/asg_info_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/async_week_schedule_response.rb +294 -0
- data/lib/purecloudplatformclientv2/models/call_media_policy_conditions.rb +28 -1
- data/lib/purecloudplatformclientv2/models/campaign_notification.rb +26 -1
- data/lib/purecloudplatformclientv2/models/chat_media_policy_conditions.rb +28 -1
- data/lib/purecloudplatformclientv2/models/conversation_notification_media.rb +79 -4
- data/lib/purecloudplatformclientv2/models/conversation_notification_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/conversation_notification_message_details.rb +31 -4
- data/lib/purecloudplatformclientv2/models/conversation_notification_message_media.rb +79 -4
- data/lib/purecloudplatformclientv2/models/conversation_notification_message_sticker.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_notification_messages.rb +31 -4
- data/lib/purecloudplatformclientv2/models/conversation_notification_messages_1.rb +2 -2
- data/lib/purecloudplatformclientv2/models/conversation_notification_stickers.rb +226 -0
- data/lib/purecloudplatformclientv2/models/copy_short_term_forecast_request.rb +239 -0
- data/lib/purecloudplatformclientv2/models/copy_week_schedule_request.rb +238 -0
- data/lib/purecloudplatformclientv2/models/copy_work_plan.rb +208 -0
- data/lib/purecloudplatformclientv2/models/create_admin_time_off_request.rb +398 -0
- data/lib/purecloudplatformclientv2/models/create_agent_time_off_request.rb +320 -0
- data/lib/purecloudplatformclientv2/models/create_asg_request.rb +1 -1
- data/lib/purecloudplatformclientv2/models/create_management_unit_api_request.rb +336 -0
- data/lib/purecloudplatformclientv2/models/create_management_unit_settings.rb +281 -0
- data/lib/purecloudplatformclientv2/models/create_queue_media_association_request.rb +231 -0
- data/lib/purecloudplatformclientv2/models/create_service_goal_group_request.rb +262 -0
- data/lib/purecloudplatformclientv2/models/create_work_plan.rb +550 -0
- data/lib/purecloudplatformclientv2/models/create_work_plan_activity.rb +463 -0
- data/lib/purecloudplatformclientv2/models/create_work_plan_shift.rb +626 -0
- data/lib/purecloudplatformclientv2/models/current_user_schedule_request_body.rb +239 -0
- data/lib/purecloudplatformclientv2/models/data_export_notification_notification.rb +2 -2
- data/lib/purecloudplatformclientv2/models/date_range.rb +228 -0
- data/lib/purecloudplatformclientv2/models/deletable_user_reference.rb +255 -0
- data/lib/purecloudplatformclientv2/models/email_media_policy_conditions.rb +28 -1
- data/lib/purecloudplatformclientv2/models/external_contact.rb +52 -2
- data/lib/purecloudplatformclientv2/models/external_organization.rb +1 -1
- data/lib/purecloudplatformclientv2/models/facebook_id.rb +231 -0
- data/lib/purecloudplatformclientv2/models/facebook_scoped_id.rb +203 -0
- data/lib/purecloudplatformclientv2/models/flow_notification_notification_architect_operation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/flow_outcome_notification_notification.rb +276 -0
- data/lib/purecloudplatformclientv2/models/flow_outcome_notification_notification_architect_operation.rb +431 -0
- data/lib/purecloudplatformclientv2/models/flow_outcome_notification_notification_error_detail.rb +276 -0
- data/lib/purecloudplatformclientv2/models/flow_outcome_notification_notification_error_message_params.rb +203 -0
- data/lib/purecloudplatformclientv2/models/flow_outcome_notification_notification_home_organization.rb +251 -0
- data/lib/purecloudplatformclientv2/models/flow_outcome_notification_notification_user.rb +251 -0
- data/lib/purecloudplatformclientv2/models/forecast_generation_result.rb +204 -0
- data/lib/purecloudplatformclientv2/models/forecast_generation_route_group_result.rb +230 -0
- data/lib/purecloudplatformclientv2/models/forecast_result_response.rb +228 -0
- data/lib/purecloudplatformclientv2/models/forecast_source_day_pointer.rb +321 -0
- data/lib/purecloudplatformclientv2/models/forecast_time_series_result.rb +256 -0
- data/lib/purecloudplatformclientv2/models/generate_short_term_forecast_request.rb +207 -0
- data/lib/purecloudplatformclientv2/models/generate_short_term_forecast_response.rb +294 -0
- data/lib/purecloudplatformclientv2/models/generate_week_schedule_request.rb +239 -0
- data/lib/purecloudplatformclientv2/models/generate_week_schedule_response.rb +268 -0
- data/lib/purecloudplatformclientv2/models/headcount_forecast_response.rb +233 -0
- data/lib/purecloudplatformclientv2/models/headcount_interval_response.rb +229 -0
- data/lib/purecloudplatformclientv2/models/import_short_term_forecast_request.rb +293 -0
- data/lib/purecloudplatformclientv2/models/import_week_schedule_request.rb +316 -0
- data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_date_time.rb +17 -17
- data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_start_date.rb +17 -17
- data/lib/purecloudplatformclientv2/models/json_node.rb +17 -17
- data/lib/purecloudplatformclientv2/models/language_reference.rb +228 -0
- data/lib/purecloudplatformclientv2/models/line_id.rb +231 -0
- data/lib/purecloudplatformclientv2/models/line_user_id.rb +203 -0
- data/lib/purecloudplatformclientv2/models/list_wrapper_forecast_source_day_pointer.rb +203 -0
- data/lib/purecloudplatformclientv2/models/list_wrapper_shift_start_variance.rb +203 -0
- data/lib/purecloudplatformclientv2/models/list_wrapper_wfm_forecast_modification.rb +203 -0
- data/lib/purecloudplatformclientv2/models/message_conversation_notification_message_details.rb +31 -4
- data/lib/purecloudplatformclientv2/models/message_conversation_notification_message_media.rb +79 -4
- data/lib/purecloudplatformclientv2/models/message_conversation_notification_message_media_participant.rb +2 -2
- data/lib/purecloudplatformclientv2/models/message_conversation_notification_message_sticker.rb +226 -0
- data/lib/purecloudplatformclientv2/models/message_conversation_notification_messages.rb +31 -4
- data/lib/purecloudplatformclientv2/models/message_conversation_notification_participants.rb +2 -2
- data/lib/purecloudplatformclientv2/models/message_media_policy_conditions.rb +28 -1
- data/lib/purecloudplatformclientv2/models/org_user.rb +27 -1
- data/lib/purecloudplatformclientv2/models/partial_upload_response.rb +202 -0
- data/lib/purecloudplatformclientv2/models/patch_user.rb +1 -26
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_architect_operation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/prompt_notification_notification_current_operation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/{survey_form_uri_reference.rb → published_survey_form_reference.rb} +16 -14
- data/lib/purecloudplatformclientv2/models/query_division.rb +176 -0
- data/lib/purecloudplatformclientv2/models/queue_media_association.rb +283 -0
- data/lib/purecloudplatformclientv2/models/queue_reference.rb +228 -0
- data/lib/purecloudplatformclientv2/models/recording_messaging_message.rb +26 -1
- data/lib/purecloudplatformclientv2/models/reporting_export_job_request.rb +2 -2
- data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/route_group.rb +363 -0
- data/lib/purecloudplatformclientv2/models/route_group_attributes.rb +307 -0
- data/lib/purecloudplatformclientv2/models/route_group_list.rb +235 -0
- data/lib/purecloudplatformclientv2/models/routing_skill_reference.rb +228 -0
- data/lib/purecloudplatformclientv2/models/schedule_generation_warning.rb +389 -0
- data/lib/purecloudplatformclientv2/models/scheduling_run_list_response.rb +203 -0
- data/lib/purecloudplatformclientv2/models/scheduling_run_response.rb +451 -0
- data/lib/purecloudplatformclientv2/models/service_goal_group.rb +339 -0
- data/lib/purecloudplatformclientv2/models/service_goal_group_goals.rb +239 -0
- data/lib/purecloudplatformclientv2/models/service_goal_group_list.rb +230 -0
- data/lib/purecloudplatformclientv2/models/set_wrapper_day_of_week.rb +203 -0
- data/lib/purecloudplatformclientv2/models/shift_start_variance.rb +241 -0
- data/lib/purecloudplatformclientv2/models/short_term_forecast.rb +466 -0
- data/lib/purecloudplatformclientv2/models/short_term_forecast_list_item_response.rb +362 -0
- data/lib/purecloudplatformclientv2/models/short_term_forecast_list_response.rb +203 -0
- data/lib/purecloudplatformclientv2/models/short_term_forecast_reference.rb +291 -0
- data/lib/purecloudplatformclientv2/models/short_term_forecast_response.rb +268 -0
- data/lib/purecloudplatformclientv2/models/survey_assignment.rb +62 -5
- data/lib/purecloudplatformclientv2/models/survey_form.rb +32 -1
- data/lib/purecloudplatformclientv2/models/time_off_request_entity_list.rb +203 -0
- data/lib/purecloudplatformclientv2/models/time_off_request_lookup.rb +264 -0
- data/lib/purecloudplatformclientv2/models/time_off_request_lookup_list.rb +209 -0
- data/lib/purecloudplatformclientv2/models/time_off_request_query_body.rb +258 -0
- data/lib/purecloudplatformclientv2/models/trust_user.rb +27 -1
- data/lib/purecloudplatformclientv2/models/trustee_authorization.rb +204 -0
- data/lib/purecloudplatformclientv2/models/trustor.rb +27 -1
- data/lib/purecloudplatformclientv2/models/update_activity_code_request.rb +378 -0
- data/lib/purecloudplatformclientv2/models/update_week_schedule_request.rb +346 -0
- data/lib/purecloudplatformclientv2/models/user.rb +27 -1
- data/lib/purecloudplatformclientv2/models/user_me.rb +27 -1
- data/lib/purecloudplatformclientv2/models/user_schedule_adherence_update_notification_date_time.rb +17 -17
- data/lib/purecloudplatformclientv2/models/user_schedules_partial_upload_request.rb +210 -0
- data/lib/purecloudplatformclientv2/models/view_filter.rb +112 -4
- data/lib/purecloudplatformclientv2/models/week_schedule.rb +465 -0
- data/lib/purecloudplatformclientv2/models/week_schedule_generation_result.rb +282 -0
- data/lib/purecloudplatformclientv2/models/week_schedule_list_item_response.rb +384 -0
- data/lib/purecloudplatformclientv2/models/week_schedule_list_response.rb +204 -0
- data/lib/purecloudplatformclientv2/models/week_schedule_response.rb +229 -0
- data/lib/purecloudplatformclientv2/models/wfm_agent.rb +443 -0
- data/lib/purecloudplatformclientv2/models/wfm_average_speed_of_answer.rb +234 -0
- data/lib/purecloudplatformclientv2/models/wfm_forecast_modification.rb +435 -0
- data/lib/purecloudplatformclientv2/models/wfm_forecast_modification_attributes.rb +288 -0
- data/lib/purecloudplatformclientv2/models/wfm_forecast_modification_interval_offset_value.rb +239 -0
- data/lib/purecloudplatformclientv2/models/wfm_historical_adherence_query.rb +1 -1
- data/lib/purecloudplatformclientv2/models/wfm_historical_adherence_query_for_users.rb +324 -0
- data/lib/purecloudplatformclientv2/models/wfm_service_level.rb +260 -0
- data/lib/purecloudplatformclientv2/models/wfm_time_zone.rb +203 -0
- data/lib/purecloudplatformclientv2/models/work_plan.rb +627 -0
- data/lib/purecloudplatformclientv2/models/work_plan_activity.rb +515 -0
- data/lib/purecloudplatformclientv2/models/work_plan_list_item_response.rb +410 -0
- data/lib/purecloudplatformclientv2/models/work_plan_list_response.rb +203 -0
- data/lib/purecloudplatformclientv2/models/work_plan_reference.rb +207 -0
- data/lib/purecloudplatformclientv2/models/work_plan_shift.rb +678 -0
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +194 -4
@@ -0,0 +1,228 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@genesys.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: ININ
|
11
|
+
http://www.inin.com
|
12
|
+
|
13
|
+
Terms of Service: https://developer.mypurecloud.com/tos
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'date'
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
class QueueReference
|
21
|
+
# The globally unique identifier for the object.
|
22
|
+
attr_accessor :id
|
23
|
+
|
24
|
+
# The URI for this object
|
25
|
+
attr_accessor :self_uri
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
|
31
|
+
:'id' => :'id',
|
32
|
+
|
33
|
+
:'self_uri' => :'selfUri'
|
34
|
+
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
{
|
41
|
+
|
42
|
+
:'id' => :'String',
|
43
|
+
|
44
|
+
:'self_uri' => :'String'
|
45
|
+
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return unless attributes.is_a?(Hash)
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
56
|
+
|
57
|
+
|
58
|
+
if attributes.has_key?(:'id')
|
59
|
+
|
60
|
+
|
61
|
+
self.id = attributes[:'id']
|
62
|
+
|
63
|
+
|
64
|
+
end
|
65
|
+
|
66
|
+
|
67
|
+
if attributes.has_key?(:'selfUri')
|
68
|
+
|
69
|
+
|
70
|
+
self.self_uri = attributes[:'selfUri']
|
71
|
+
|
72
|
+
|
73
|
+
end
|
74
|
+
|
75
|
+
|
76
|
+
end
|
77
|
+
|
78
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
79
|
+
# @return Array for valid properies with the reasons
|
80
|
+
def list_invalid_properties
|
81
|
+
invalid_properties = Array.new
|
82
|
+
|
83
|
+
|
84
|
+
return invalid_properties
|
85
|
+
end
|
86
|
+
|
87
|
+
# Check to see if the all the properties in the model are valid
|
88
|
+
# @return true if the model is valid
|
89
|
+
def valid?
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
end
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
# Checks equality by comparing each attribute.
|
113
|
+
# @param [Object] Object to be compared
|
114
|
+
def ==(o)
|
115
|
+
return true if self.equal?(o)
|
116
|
+
self.class == o.class &&
|
117
|
+
id == o.id &&
|
118
|
+
self_uri == o.self_uri
|
119
|
+
end
|
120
|
+
|
121
|
+
# @see the `==` method
|
122
|
+
# @param [Object] Object to be compared
|
123
|
+
def eql?(o)
|
124
|
+
self == o
|
125
|
+
end
|
126
|
+
|
127
|
+
# Calculates hash code according to all attributes.
|
128
|
+
# @return [Fixnum] Hash code
|
129
|
+
def hash
|
130
|
+
[id, self_uri].hash
|
131
|
+
end
|
132
|
+
|
133
|
+
# build the object from hash
|
134
|
+
def build_from_hash(attributes)
|
135
|
+
return nil unless attributes.is_a?(Hash)
|
136
|
+
self.class.swagger_types.each_pair do |key, type|
|
137
|
+
if type =~ /^Array<(.*)>/i
|
138
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
139
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
140
|
+
else
|
141
|
+
#TODO show warning in debug mode
|
142
|
+
end
|
143
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
144
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
145
|
+
else
|
146
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
self
|
151
|
+
end
|
152
|
+
|
153
|
+
def _deserialize(type, value)
|
154
|
+
case type.to_sym
|
155
|
+
when :DateTime
|
156
|
+
DateTime.parse(value)
|
157
|
+
when :Date
|
158
|
+
Date.parse(value)
|
159
|
+
when :String
|
160
|
+
value.to_s
|
161
|
+
when :Integer
|
162
|
+
value.to_i
|
163
|
+
when :Float
|
164
|
+
value.to_f
|
165
|
+
when :BOOLEAN
|
166
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
167
|
+
true
|
168
|
+
else
|
169
|
+
false
|
170
|
+
end
|
171
|
+
when :Object
|
172
|
+
# generic object (usually a Hash), return directly
|
173
|
+
value
|
174
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
175
|
+
inner_type = Regexp.last_match[:inner_type]
|
176
|
+
value.map { |v| _deserialize(inner_type, v) }
|
177
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
178
|
+
k_type = Regexp.last_match[:k_type]
|
179
|
+
v_type = Regexp.last_match[:v_type]
|
180
|
+
{}.tap do |hash|
|
181
|
+
value.each do |k, v|
|
182
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
else # model
|
186
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
187
|
+
_model.build_from_hash(value)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
def to_s
|
192
|
+
to_hash.to_s
|
193
|
+
end
|
194
|
+
|
195
|
+
# to_body is an alias to to_body (backward compatibility))
|
196
|
+
def to_body
|
197
|
+
to_hash
|
198
|
+
end
|
199
|
+
|
200
|
+
# return the object in the form of hash
|
201
|
+
def to_hash
|
202
|
+
hash = {}
|
203
|
+
self.class.attribute_map.each_pair do |attr, param|
|
204
|
+
value = self.send(attr)
|
205
|
+
next if value.nil?
|
206
|
+
hash[param] = _to_hash(value)
|
207
|
+
end
|
208
|
+
hash
|
209
|
+
end
|
210
|
+
|
211
|
+
# Method to output non-array value in the form of hash
|
212
|
+
# For object, use to_hash. Otherwise, just return the value
|
213
|
+
def _to_hash(value)
|
214
|
+
if value.is_a?(Array)
|
215
|
+
value.compact.map{ |v| _to_hash(v) }
|
216
|
+
elsif value.is_a?(Hash)
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
219
|
+
end
|
220
|
+
elsif value.respond_to? :to_hash
|
221
|
+
value.to_hash
|
222
|
+
else
|
223
|
+
value
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
end
|
228
|
+
end
|
@@ -29,6 +29,8 @@ module PureCloud
|
|
29
29
|
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
30
30
|
attr_accessor :timestamp
|
31
31
|
|
32
|
+
attr_accessor :id
|
33
|
+
|
32
34
|
attr_accessor :message_text
|
33
35
|
|
34
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -45,6 +47,8 @@ module PureCloud
|
|
45
47
|
|
46
48
|
:'timestamp' => :'timestamp',
|
47
49
|
|
50
|
+
:'id' => :'id',
|
51
|
+
|
48
52
|
:'message_text' => :'messageText'
|
49
53
|
|
50
54
|
}
|
@@ -64,6 +68,8 @@ module PureCloud
|
|
64
68
|
|
65
69
|
:'timestamp' => :'DateTime',
|
66
70
|
|
71
|
+
:'id' => :'String',
|
72
|
+
|
67
73
|
:'message_text' => :'String'
|
68
74
|
|
69
75
|
}
|
@@ -123,6 +129,15 @@ module PureCloud
|
|
123
129
|
end
|
124
130
|
|
125
131
|
|
132
|
+
if attributes.has_key?(:'id')
|
133
|
+
|
134
|
+
|
135
|
+
self.id = attributes[:'id']
|
136
|
+
|
137
|
+
|
138
|
+
end
|
139
|
+
|
140
|
+
|
126
141
|
if attributes.has_key?(:'messageText')
|
127
142
|
|
128
143
|
|
@@ -166,6 +181,10 @@ module PureCloud
|
|
166
181
|
|
167
182
|
|
168
183
|
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
169
188
|
|
170
189
|
|
171
190
|
|
@@ -198,6 +217,11 @@ module PureCloud
|
|
198
217
|
|
199
218
|
|
200
219
|
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
201
225
|
|
202
226
|
|
203
227
|
|
@@ -214,6 +238,7 @@ module PureCloud
|
|
214
238
|
from_external_contact == o.from_external_contact &&
|
215
239
|
to == o.to &&
|
216
240
|
timestamp == o.timestamp &&
|
241
|
+
id == o.id &&
|
217
242
|
message_text == o.message_text
|
218
243
|
end
|
219
244
|
|
@@ -226,7 +251,7 @@ module PureCloud
|
|
226
251
|
# Calculates hash code according to all attributes.
|
227
252
|
# @return [Fixnum] Hash code
|
228
253
|
def hash
|
229
|
-
[from, from_user, from_external_contact, to, timestamp, message_text].hash
|
254
|
+
[from, from_user, from_external_contact, to, timestamp, id, message_text].hash
|
230
255
|
end
|
231
256
|
|
232
257
|
# build the object from hash
|
@@ -247,7 +247,7 @@ module PureCloud
|
|
247
247
|
|
248
248
|
|
249
249
|
|
250
|
-
allowed_values = ["QUEUE_PERFORMANCE_SUMMARY_VIEW", "QUEUE_PERFORMANCE_DETAIL_VIEW", "INTERACTION_SEARCH_VIEW", "AGENT_PERFORMANCE_SUMMARY_VIEW", "AGENT_PERFORMANCE_DETAIL_VIEW", "AGENT_STATUS_SUMMARY_VIEW", "AGENT_STATUS_DETAIL_VIEW", "AGENT_EVALUATION_SUMMARY_VIEW", "AGENT_EVALUATION_DETAIL_VIEW", "AGENT_QUEUE_DETAIL_VIEW", "AGENT_INTERACTION_DETAIL_VIEW", "ABANDON_INSIGHTS_VIEW", "SKILLS_PERFORMANCE_VIEW"]
|
250
|
+
allowed_values = ["QUEUE_PERFORMANCE_SUMMARY_VIEW", "QUEUE_PERFORMANCE_DETAIL_VIEW", "INTERACTION_SEARCH_VIEW", "AGENT_PERFORMANCE_SUMMARY_VIEW", "AGENT_PERFORMANCE_DETAIL_VIEW", "AGENT_STATUS_SUMMARY_VIEW", "AGENT_STATUS_DETAIL_VIEW", "AGENT_EVALUATION_SUMMARY_VIEW", "AGENT_EVALUATION_DETAIL_VIEW", "AGENT_QUEUE_DETAIL_VIEW", "AGENT_INTERACTION_DETAIL_VIEW", "ABANDON_INSIGHTS_VIEW", "SKILLS_PERFORMANCE_VIEW", "SURVEY_FORM_PERFORMANCE_SUMMARY_VIEW", "SURVEY_FORM_PERFORMANCE_DETAIL_VIEW", "DNIS_PERFORMANCE_SUMMARY_VIEW", "DNIS_PERFORMANCE_DETAIL_VIEW", "WRAP_UP_PERFORMANCE_SUMMARY_VIEW", "AGENT_WRAP_UP_PERFORMANCE_DETAIL_VIEW", "QUEUE_ACTIVITY_SUMMARY_VIEW", "QUEUE_ACTIVITY_DETAIL_VIEW", "AGENT_QUEUE_ACTIVITY_SUMMARY_VIEW", "QUEUE_AGENT_DETAIL_VIEW", "QUEUE_INTERACTION_DETAIL_VIEW", "AGENT_SCHEDULE_DETAIL_VIEW", "IVR_PERFORMANCE_SUMMARY_VIEW", "IVR_PERFORMANCE_DETAIL_VIEW", "ANSWER_INSIGHTS_VIEW", "HANDLE_INSIGHTS_VIEW", "TALK_INSIGHTS_VIEW", "HOLD_INSIGHTS_VIEW", "ACW_INSIGHTS_VIEW", "WAIT_INSIGHTS_VIEW", "AGENT_WRAP_UP_PERFORMANCE_INTERVAL_DETAIL_VIEW"]
|
251
251
|
if @view_type && !allowed_values.include?(@view_type)
|
252
252
|
return false
|
253
253
|
end
|
@@ -317,7 +317,7 @@ module PureCloud
|
|
317
317
|
# Custom attribute writer method checking allowed values (enum).
|
318
318
|
# @param [Object] view_type Object to be assigned
|
319
319
|
def view_type=(view_type)
|
320
|
-
allowed_values = ["QUEUE_PERFORMANCE_SUMMARY_VIEW", "QUEUE_PERFORMANCE_DETAIL_VIEW", "INTERACTION_SEARCH_VIEW", "AGENT_PERFORMANCE_SUMMARY_VIEW", "AGENT_PERFORMANCE_DETAIL_VIEW", "AGENT_STATUS_SUMMARY_VIEW", "AGENT_STATUS_DETAIL_VIEW", "AGENT_EVALUATION_SUMMARY_VIEW", "AGENT_EVALUATION_DETAIL_VIEW", "AGENT_QUEUE_DETAIL_VIEW", "AGENT_INTERACTION_DETAIL_VIEW", "ABANDON_INSIGHTS_VIEW", "SKILLS_PERFORMANCE_VIEW"]
|
320
|
+
allowed_values = ["QUEUE_PERFORMANCE_SUMMARY_VIEW", "QUEUE_PERFORMANCE_DETAIL_VIEW", "INTERACTION_SEARCH_VIEW", "AGENT_PERFORMANCE_SUMMARY_VIEW", "AGENT_PERFORMANCE_DETAIL_VIEW", "AGENT_STATUS_SUMMARY_VIEW", "AGENT_STATUS_DETAIL_VIEW", "AGENT_EVALUATION_SUMMARY_VIEW", "AGENT_EVALUATION_DETAIL_VIEW", "AGENT_QUEUE_DETAIL_VIEW", "AGENT_INTERACTION_DETAIL_VIEW", "ABANDON_INSIGHTS_VIEW", "SKILLS_PERFORMANCE_VIEW", "SURVEY_FORM_PERFORMANCE_SUMMARY_VIEW", "SURVEY_FORM_PERFORMANCE_DETAIL_VIEW", "DNIS_PERFORMANCE_SUMMARY_VIEW", "DNIS_PERFORMANCE_DETAIL_VIEW", "WRAP_UP_PERFORMANCE_SUMMARY_VIEW", "AGENT_WRAP_UP_PERFORMANCE_DETAIL_VIEW", "QUEUE_ACTIVITY_SUMMARY_VIEW", "QUEUE_ACTIVITY_DETAIL_VIEW", "AGENT_QUEUE_ACTIVITY_SUMMARY_VIEW", "QUEUE_AGENT_DETAIL_VIEW", "QUEUE_INTERACTION_DETAIL_VIEW", "AGENT_SCHEDULE_DETAIL_VIEW", "IVR_PERFORMANCE_SUMMARY_VIEW", "IVR_PERFORMANCE_DETAIL_VIEW", "ANSWER_INSIGHTS_VIEW", "HANDLE_INSIGHTS_VIEW", "TALK_INSIGHTS_VIEW", "HOLD_INSIGHTS_VIEW", "ACW_INSIGHTS_VIEW", "WAIT_INSIGHTS_VIEW", "AGENT_WRAP_UP_PERFORMANCE_INTERVAL_DETAIL_VIEW"]
|
321
321
|
if view_type && !allowed_values.include?(view_type)
|
322
322
|
fail ArgumentError, "invalid value for 'view_type', must be one of #{allowed_values}."
|
323
323
|
end
|
@@ -371,7 +371,7 @@ module PureCloud
|
|
371
371
|
|
372
372
|
|
373
373
|
|
374
|
-
allowed_values = ["QUEUE_PERFORMANCE_SUMMARY_VIEW", "QUEUE_PERFORMANCE_DETAIL_VIEW", "INTERACTION_SEARCH_VIEW", "AGENT_PERFORMANCE_SUMMARY_VIEW", "AGENT_PERFORMANCE_DETAIL_VIEW", "AGENT_STATUS_SUMMARY_VIEW", "AGENT_STATUS_DETAIL_VIEW", "AGENT_EVALUATION_SUMMARY_VIEW", "AGENT_EVALUATION_DETAIL_VIEW", "AGENT_QUEUE_DETAIL_VIEW", "AGENT_INTERACTION_DETAIL_VIEW", "ABANDON_INSIGHTS_VIEW", "SKILLS_PERFORMANCE_VIEW"]
|
374
|
+
allowed_values = ["QUEUE_PERFORMANCE_SUMMARY_VIEW", "QUEUE_PERFORMANCE_DETAIL_VIEW", "INTERACTION_SEARCH_VIEW", "AGENT_PERFORMANCE_SUMMARY_VIEW", "AGENT_PERFORMANCE_DETAIL_VIEW", "AGENT_STATUS_SUMMARY_VIEW", "AGENT_STATUS_DETAIL_VIEW", "AGENT_EVALUATION_SUMMARY_VIEW", "AGENT_EVALUATION_DETAIL_VIEW", "AGENT_QUEUE_DETAIL_VIEW", "AGENT_INTERACTION_DETAIL_VIEW", "ABANDON_INSIGHTS_VIEW", "SKILLS_PERFORMANCE_VIEW", "SURVEY_FORM_PERFORMANCE_SUMMARY_VIEW", "SURVEY_FORM_PERFORMANCE_DETAIL_VIEW", "DNIS_PERFORMANCE_SUMMARY_VIEW", "DNIS_PERFORMANCE_DETAIL_VIEW", "WRAP_UP_PERFORMANCE_SUMMARY_VIEW", "AGENT_WRAP_UP_PERFORMANCE_DETAIL_VIEW", "QUEUE_ACTIVITY_SUMMARY_VIEW", "QUEUE_ACTIVITY_DETAIL_VIEW", "AGENT_QUEUE_ACTIVITY_SUMMARY_VIEW", "QUEUE_AGENT_DETAIL_VIEW", "QUEUE_INTERACTION_DETAIL_VIEW", "AGENT_SCHEDULE_DETAIL_VIEW", "IVR_PERFORMANCE_SUMMARY_VIEW", "IVR_PERFORMANCE_DETAIL_VIEW", "ANSWER_INSIGHTS_VIEW", "HANDLE_INSIGHTS_VIEW", "TALK_INSIGHTS_VIEW", "HOLD_INSIGHTS_VIEW", "ACW_INSIGHTS_VIEW", "WAIT_INSIGHTS_VIEW", "AGENT_WRAP_UP_PERFORMANCE_INTERVAL_DETAIL_VIEW"]
|
375
375
|
if @view_type && !allowed_values.include?(@view_type)
|
376
376
|
return false
|
377
377
|
end
|
@@ -500,7 +500,7 @@ module PureCloud
|
|
500
500
|
# Custom attribute writer method checking allowed values (enum).
|
501
501
|
# @param [Object] view_type Object to be assigned
|
502
502
|
def view_type=(view_type)
|
503
|
-
allowed_values = ["QUEUE_PERFORMANCE_SUMMARY_VIEW", "QUEUE_PERFORMANCE_DETAIL_VIEW", "INTERACTION_SEARCH_VIEW", "AGENT_PERFORMANCE_SUMMARY_VIEW", "AGENT_PERFORMANCE_DETAIL_VIEW", "AGENT_STATUS_SUMMARY_VIEW", "AGENT_STATUS_DETAIL_VIEW", "AGENT_EVALUATION_SUMMARY_VIEW", "AGENT_EVALUATION_DETAIL_VIEW", "AGENT_QUEUE_DETAIL_VIEW", "AGENT_INTERACTION_DETAIL_VIEW", "ABANDON_INSIGHTS_VIEW", "SKILLS_PERFORMANCE_VIEW"]
|
503
|
+
allowed_values = ["QUEUE_PERFORMANCE_SUMMARY_VIEW", "QUEUE_PERFORMANCE_DETAIL_VIEW", "INTERACTION_SEARCH_VIEW", "AGENT_PERFORMANCE_SUMMARY_VIEW", "AGENT_PERFORMANCE_DETAIL_VIEW", "AGENT_STATUS_SUMMARY_VIEW", "AGENT_STATUS_DETAIL_VIEW", "AGENT_EVALUATION_SUMMARY_VIEW", "AGENT_EVALUATION_DETAIL_VIEW", "AGENT_QUEUE_DETAIL_VIEW", "AGENT_INTERACTION_DETAIL_VIEW", "ABANDON_INSIGHTS_VIEW", "SKILLS_PERFORMANCE_VIEW", "SURVEY_FORM_PERFORMANCE_SUMMARY_VIEW", "SURVEY_FORM_PERFORMANCE_DETAIL_VIEW", "DNIS_PERFORMANCE_SUMMARY_VIEW", "DNIS_PERFORMANCE_DETAIL_VIEW", "WRAP_UP_PERFORMANCE_SUMMARY_VIEW", "AGENT_WRAP_UP_PERFORMANCE_DETAIL_VIEW", "QUEUE_ACTIVITY_SUMMARY_VIEW", "QUEUE_ACTIVITY_DETAIL_VIEW", "AGENT_QUEUE_ACTIVITY_SUMMARY_VIEW", "QUEUE_AGENT_DETAIL_VIEW", "QUEUE_INTERACTION_DETAIL_VIEW", "AGENT_SCHEDULE_DETAIL_VIEW", "IVR_PERFORMANCE_SUMMARY_VIEW", "IVR_PERFORMANCE_DETAIL_VIEW", "ANSWER_INSIGHTS_VIEW", "HANDLE_INSIGHTS_VIEW", "TALK_INSIGHTS_VIEW", "HOLD_INSIGHTS_VIEW", "ACW_INSIGHTS_VIEW", "WAIT_INSIGHTS_VIEW", "AGENT_WRAP_UP_PERFORMANCE_INTERVAL_DETAIL_VIEW"]
|
504
504
|
if view_type && !allowed_values.include?(view_type)
|
505
505
|
fail ArgumentError, "invalid value for 'view_type', must be one of #{allowed_values}."
|
506
506
|
end
|
@@ -0,0 +1,363 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@genesys.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: ININ
|
11
|
+
http://www.inin.com
|
12
|
+
|
13
|
+
Terms of Service: https://developer.mypurecloud.com/tos
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'date'
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
# Route group for calculated forecasts
|
21
|
+
class RouteGroup
|
22
|
+
# The attributes that describe this route group
|
23
|
+
attr_accessor :attributes
|
24
|
+
|
25
|
+
# Interactions offered per 15 minute interval
|
26
|
+
attr_accessor :offered_per_interval
|
27
|
+
|
28
|
+
# Average talk time in seconds per 15 minute interval
|
29
|
+
attr_accessor :average_talk_time_seconds_per_interval
|
30
|
+
|
31
|
+
# Average after call work in seconds per 15 minute interval
|
32
|
+
attr_accessor :average_after_call_work_seconds_per_interval
|
33
|
+
|
34
|
+
# Interactions completed per 15 minute interval
|
35
|
+
attr_accessor :completed_per_interval
|
36
|
+
|
37
|
+
# Interactions abandoned per 15 minute interval
|
38
|
+
attr_accessor :abandoned_per_interval
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
|
44
|
+
:'attributes' => :'attributes',
|
45
|
+
|
46
|
+
:'offered_per_interval' => :'offeredPerInterval',
|
47
|
+
|
48
|
+
:'average_talk_time_seconds_per_interval' => :'averageTalkTimeSecondsPerInterval',
|
49
|
+
|
50
|
+
:'average_after_call_work_seconds_per_interval' => :'averageAfterCallWorkSecondsPerInterval',
|
51
|
+
|
52
|
+
:'completed_per_interval' => :'completedPerInterval',
|
53
|
+
|
54
|
+
:'abandoned_per_interval' => :'abandonedPerInterval'
|
55
|
+
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Attribute type mapping.
|
60
|
+
def self.swagger_types
|
61
|
+
{
|
62
|
+
|
63
|
+
:'attributes' => :'RouteGroupAttributes',
|
64
|
+
|
65
|
+
:'offered_per_interval' => :'Array<Float>',
|
66
|
+
|
67
|
+
:'average_talk_time_seconds_per_interval' => :'Array<Float>',
|
68
|
+
|
69
|
+
:'average_after_call_work_seconds_per_interval' => :'Array<Float>',
|
70
|
+
|
71
|
+
:'completed_per_interval' => :'Array<Float>',
|
72
|
+
|
73
|
+
:'abandoned_per_interval' => :'Array<Float>'
|
74
|
+
|
75
|
+
}
|
76
|
+
end
|
77
|
+
|
78
|
+
# Initializes the object
|
79
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
80
|
+
def initialize(attributes = {})
|
81
|
+
return unless attributes.is_a?(Hash)
|
82
|
+
|
83
|
+
# convert string to symbol for hash key
|
84
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
85
|
+
|
86
|
+
|
87
|
+
if attributes.has_key?(:'attributes')
|
88
|
+
|
89
|
+
|
90
|
+
self.attributes = attributes[:'attributes']
|
91
|
+
|
92
|
+
|
93
|
+
end
|
94
|
+
|
95
|
+
|
96
|
+
if attributes.has_key?(:'offeredPerInterval')
|
97
|
+
|
98
|
+
if (value = attributes[:'offeredPerInterval']).is_a?(Array)
|
99
|
+
self.offered_per_interval = value
|
100
|
+
end
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
end
|
105
|
+
|
106
|
+
|
107
|
+
if attributes.has_key?(:'averageTalkTimeSecondsPerInterval')
|
108
|
+
|
109
|
+
if (value = attributes[:'averageTalkTimeSecondsPerInterval']).is_a?(Array)
|
110
|
+
self.average_talk_time_seconds_per_interval = value
|
111
|
+
end
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
end
|
116
|
+
|
117
|
+
|
118
|
+
if attributes.has_key?(:'averageAfterCallWorkSecondsPerInterval')
|
119
|
+
|
120
|
+
if (value = attributes[:'averageAfterCallWorkSecondsPerInterval']).is_a?(Array)
|
121
|
+
self.average_after_call_work_seconds_per_interval = value
|
122
|
+
end
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
if attributes.has_key?(:'completedPerInterval')
|
130
|
+
|
131
|
+
if (value = attributes[:'completedPerInterval']).is_a?(Array)
|
132
|
+
self.completed_per_interval = value
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
end
|
138
|
+
|
139
|
+
|
140
|
+
if attributes.has_key?(:'abandonedPerInterval')
|
141
|
+
|
142
|
+
if (value = attributes[:'abandonedPerInterval']).is_a?(Array)
|
143
|
+
self.abandoned_per_interval = value
|
144
|
+
end
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
end
|
149
|
+
|
150
|
+
|
151
|
+
end
|
152
|
+
|
153
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
154
|
+
# @return Array for valid properies with the reasons
|
155
|
+
def list_invalid_properties
|
156
|
+
invalid_properties = Array.new
|
157
|
+
|
158
|
+
|
159
|
+
return invalid_properties
|
160
|
+
end
|
161
|
+
|
162
|
+
# Check to see if the all the properties in the model are valid
|
163
|
+
# @return true if the model is valid
|
164
|
+
def valid?
|
165
|
+
|
166
|
+
|
167
|
+
if @attributes.nil?
|
168
|
+
return false
|
169
|
+
end
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
if @offered_per_interval.nil?
|
177
|
+
return false
|
178
|
+
end
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
if @average_talk_time_seconds_per_interval.nil?
|
186
|
+
return false
|
187
|
+
end
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
if @average_after_call_work_seconds_per_interval.nil?
|
195
|
+
return false
|
196
|
+
end
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
end
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
# Checks equality by comparing each attribute.
|
244
|
+
# @param [Object] Object to be compared
|
245
|
+
def ==(o)
|
246
|
+
return true if self.equal?(o)
|
247
|
+
self.class == o.class &&
|
248
|
+
attributes == o.attributes &&
|
249
|
+
offered_per_interval == o.offered_per_interval &&
|
250
|
+
average_talk_time_seconds_per_interval == o.average_talk_time_seconds_per_interval &&
|
251
|
+
average_after_call_work_seconds_per_interval == o.average_after_call_work_seconds_per_interval &&
|
252
|
+
completed_per_interval == o.completed_per_interval &&
|
253
|
+
abandoned_per_interval == o.abandoned_per_interval
|
254
|
+
end
|
255
|
+
|
256
|
+
# @see the `==` method
|
257
|
+
# @param [Object] Object to be compared
|
258
|
+
def eql?(o)
|
259
|
+
self == o
|
260
|
+
end
|
261
|
+
|
262
|
+
# Calculates hash code according to all attributes.
|
263
|
+
# @return [Fixnum] Hash code
|
264
|
+
def hash
|
265
|
+
[attributes, offered_per_interval, average_talk_time_seconds_per_interval, average_after_call_work_seconds_per_interval, completed_per_interval, abandoned_per_interval].hash
|
266
|
+
end
|
267
|
+
|
268
|
+
# build the object from hash
|
269
|
+
def build_from_hash(attributes)
|
270
|
+
return nil unless attributes.is_a?(Hash)
|
271
|
+
self.class.swagger_types.each_pair do |key, type|
|
272
|
+
if type =~ /^Array<(.*)>/i
|
273
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
274
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
275
|
+
else
|
276
|
+
#TODO show warning in debug mode
|
277
|
+
end
|
278
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
279
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
280
|
+
else
|
281
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
self
|
286
|
+
end
|
287
|
+
|
288
|
+
def _deserialize(type, value)
|
289
|
+
case type.to_sym
|
290
|
+
when :DateTime
|
291
|
+
DateTime.parse(value)
|
292
|
+
when :Date
|
293
|
+
Date.parse(value)
|
294
|
+
when :String
|
295
|
+
value.to_s
|
296
|
+
when :Integer
|
297
|
+
value.to_i
|
298
|
+
when :Float
|
299
|
+
value.to_f
|
300
|
+
when :BOOLEAN
|
301
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
302
|
+
true
|
303
|
+
else
|
304
|
+
false
|
305
|
+
end
|
306
|
+
when :Object
|
307
|
+
# generic object (usually a Hash), return directly
|
308
|
+
value
|
309
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
310
|
+
inner_type = Regexp.last_match[:inner_type]
|
311
|
+
value.map { |v| _deserialize(inner_type, v) }
|
312
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
313
|
+
k_type = Regexp.last_match[:k_type]
|
314
|
+
v_type = Regexp.last_match[:v_type]
|
315
|
+
{}.tap do |hash|
|
316
|
+
value.each do |k, v|
|
317
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
318
|
+
end
|
319
|
+
end
|
320
|
+
else # model
|
321
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
322
|
+
_model.build_from_hash(value)
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
def to_s
|
327
|
+
to_hash.to_s
|
328
|
+
end
|
329
|
+
|
330
|
+
# to_body is an alias to to_body (backward compatibility))
|
331
|
+
def to_body
|
332
|
+
to_hash
|
333
|
+
end
|
334
|
+
|
335
|
+
# return the object in the form of hash
|
336
|
+
def to_hash
|
337
|
+
hash = {}
|
338
|
+
self.class.attribute_map.each_pair do |attr, param|
|
339
|
+
value = self.send(attr)
|
340
|
+
next if value.nil?
|
341
|
+
hash[param] = _to_hash(value)
|
342
|
+
end
|
343
|
+
hash
|
344
|
+
end
|
345
|
+
|
346
|
+
# Method to output non-array value in the form of hash
|
347
|
+
# For object, use to_hash. Otherwise, just return the value
|
348
|
+
def _to_hash(value)
|
349
|
+
if value.is_a?(Array)
|
350
|
+
value.compact.map{ |v| _to_hash(v) }
|
351
|
+
elsif value.is_a?(Hash)
|
352
|
+
{}.tap do |hash|
|
353
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
354
|
+
end
|
355
|
+
elsif value.respond_to? :to_hash
|
356
|
+
value.to_hash
|
357
|
+
else
|
358
|
+
value
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
end
|
363
|
+
end
|