purecloudplatformclientv2 85.0.1 → 86.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/AnalyticsEvaluation.md +1 -1
- data/docs/Call.md +1 -0
- data/docs/CallBasic.md +1 -0
- data/docs/Callback.md +1 -0
- data/docs/CallbackBasic.md +1 -0
- data/docs/Cobrowsesession.md +1 -0
- data/docs/{PartialUploadResponse.md → ContextEntity.md} +3 -3
- data/docs/ContextIntent.md +13 -0
- data/docs/ConversationCallbackEventTopicCallbackMediaParticipant.md +1 -0
- data/docs/ConversationChat.md +1 -0
- data/docs/ConversationEventTopicCallback.md +1 -0
- data/docs/Coretype.md +23 -0
- data/docs/CoretypeListing.md +15 -0
- data/docs/DataExtensionsApi.md +198 -0
- data/docs/DataSchemaListing.md +15 -0
- data/docs/DetectedDialogAct.md +14 -0
- data/docs/DetectedIntent.md +15 -0
- data/docs/DetectedNamedEntity.md +16 -0
- data/docs/DetectedNamedEntityValue.md +14 -0
- data/docs/DialogflowAgent.md +3 -2
- data/docs/Edge.md +1 -1
- data/docs/Email.md +1 -0
- data/docs/EntityListing.md +1 -5
- data/docs/ExternalContactsApi.md +1001 -144
- data/docs/FlowDivisionView.md +2 -0
- data/docs/IntentDefinition.md +15 -0
- data/docs/IntentFeedback.md +16 -0
- data/docs/ItemValidationLimits.md +14 -0
- data/docs/Items.md +14 -0
- data/docs/LanguageUnderstandingApi.md +1160 -0
- data/docs/MaxLength.md +14 -0
- data/docs/Message.md +1 -0
- data/docs/MinLength.md +14 -0
- data/docs/NamedEntityAnnotation.md +13 -0
- data/docs/NamedEntityTypeBinding.md +14 -0
- data/docs/NamedEntityTypeDefinition.md +15 -0
- data/docs/NamedEntityTypeItem.md +14 -0
- data/docs/NamedEntityTypeMechanism.md +15 -0
- data/docs/NluConfusionMatrixColumn.md +14 -0
- data/docs/NluConfusionMatrixRow.md +14 -0
- data/docs/NluDetectionContext.md +14 -0
- data/docs/NluDetectionInput.md +13 -0
- data/docs/NluDetectionOutput.md +14 -0
- data/docs/NluDetectionRequest.md +14 -0
- data/docs/NluDetectionResponse.md +15 -0
- data/docs/NluDomain.md +19 -0
- data/docs/NluDomainListing.md +22 -0
- data/docs/NluDomainVersion.md +24 -0
- data/docs/NluDomainVersionListing.md +22 -0
- data/docs/NluDomainVersionQualityReport.md +15 -0
- data/docs/NluDomainVersionTrainingResponse.md +14 -0
- data/docs/NluFeedbackListing.md +22 -0
- data/docs/NluFeedbackRequest.md +15 -0
- data/docs/NluFeedbackResponse.md +18 -0
- data/docs/NluQualityReportSummary.md +13 -0
- data/docs/NluQualityReportSummaryMetric.md +14 -0
- data/docs/NluUtterance.md +13 -0
- data/docs/NluUtteranceSegment.md +14 -0
- data/docs/QueueConversationCallbackEventTopicCallbackMediaParticipant.md +1 -0
- data/docs/QueueConversationEventTopicCallback.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicCallback.md +1 -0
- data/docs/QueueConversationVideoEventTopicCallback.md +1 -0
- data/docs/ReportingExportJobRequest.md +1 -0
- data/docs/ReportingExportJobResponse.md +2 -0
- data/docs/RoutingApi.md +65 -0
- data/docs/SCIMApi.md +12 -12
- data/docs/Schema.md +17 -0
- data/docs/SchemaQuantityLimits.md +26 -0
- data/docs/ScimV2EnterpriseUser.md +1 -0
- data/docs/Screenshare.md +1 -0
- data/docs/SocialExpression.md +1 -0
- data/docs/{TimeOffRequestLookup.md → TimeOffRequest.md} +2 -2
- data/docs/TimeOffRequestListing.md +13 -0
- data/docs/UploadUrlRequest.md +15 -0
- data/docs/UploadUrlResponse.md +14 -0
- data/docs/UploadsApi.md +78 -0
- data/docs/ValidationLimits.md +18 -0
- data/docs/Video.md +1 -0
- data/docs/WorkforceManagementApi.md +297 -448
- data/lib/purecloudplatformclientv2.rb +50 -57
- data/lib/purecloudplatformclientv2/api/data_extensions_api.rb +207 -0
- data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +868 -4
- data/lib/purecloudplatformclientv2/api/language_understanding_api.rb +1304 -0
- data/lib/purecloudplatformclientv2/api/routing_api.rb +64 -0
- data/lib/purecloudplatformclientv2/api/scim_api.rb +8 -8
- data/lib/purecloudplatformclientv2/api/uploads_api.rb +92 -0
- data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +314 -571
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +13 -13
- data/lib/purecloudplatformclientv2/models/bulk_update_shift_trade_state_result_item.rb +2 -2
- data/lib/purecloudplatformclientv2/models/call.rb +30 -4
- data/lib/purecloudplatformclientv2/models/call_basic.rb +30 -4
- data/lib/purecloudplatformclientv2/models/callback.rb +30 -4
- data/lib/purecloudplatformclientv2/models/callback_basic.rb +30 -4
- data/lib/purecloudplatformclientv2/models/cobrowsesession.rb +30 -4
- data/lib/purecloudplatformclientv2/models/{partial_upload_response.rb → context_entity.rb} +14 -9
- data/lib/purecloudplatformclientv2/models/{list_wrapper_wfm_forecast_modification.rb → context_intent.rb} +14 -10
- data/lib/purecloudplatformclientv2/models/conversation_callback_event_topic_callback_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_chat.rb +30 -4
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/{rescheduling_options_response.rb → coretype.rb} +97 -102
- data/lib/purecloudplatformclientv2/models/{service_goal_group_list.rb → coretype_listing.rb} +34 -11
- data/lib/purecloudplatformclientv2/models/data_schema_listing.rb +253 -0
- data/lib/purecloudplatformclientv2/models/{forecast_result_response.rb → detected_dialog_act.rb} +16 -16
- data/lib/purecloudplatformclientv2/models/{intraday_queue.rb → detected_intent.rb} +23 -23
- data/lib/purecloudplatformclientv2/models/detected_named_entity.rb +280 -0
- data/lib/purecloudplatformclientv2/models/detected_named_entity_value.rb +228 -0
- data/lib/purecloudplatformclientv2/models/dialogflow_agent.rb +31 -3
- data/lib/purecloudplatformclientv2/models/edge.rb +1 -0
- data/lib/purecloudplatformclientv2/models/email.rb +30 -4
- data/lib/purecloudplatformclientv2/models/entity_listing.rb +4 -104
- data/lib/purecloudplatformclientv2/models/flow_division_view.rb +53 -1
- data/lib/purecloudplatformclientv2/models/{create_service_goal_group_request.rb → intent_definition.rb} +30 -19
- data/lib/purecloudplatformclientv2/models/{wfm_intraday_queue_listing.rb → intent_feedback.rb} +71 -18
- data/lib/purecloudplatformclientv2/models/{service_goal_group_goals.rb → item_validation_limits.rb} +18 -45
- data/lib/purecloudplatformclientv2/models/{short_term_forecast_list_response.rb → items.rb} +33 -10
- data/lib/purecloudplatformclientv2/models/max_length.rb +238 -0
- data/lib/purecloudplatformclientv2/models/message.rb +30 -4
- data/lib/purecloudplatformclientv2/models/{forecast_generation_route_group_result.rb → min_length.rb} +26 -18
- data/lib/purecloudplatformclientv2/models/{list_wrapper_forecast_source_day_pointer.rb → named_entity_annotation.rb} +14 -10
- data/lib/purecloudplatformclientv2/models/{copy_short_term_forecast_request.rb → named_entity_type_binding.rb} +18 -19
- data/lib/purecloudplatformclientv2/models/{generate_week_schedule_request.rb → named_entity_type_definition.rb} +38 -13
- data/lib/purecloudplatformclientv2/models/{wfm_abandon_rate.rb → named_entity_type_item.rb} +19 -18
- data/lib/purecloudplatformclientv2/models/{short_term_forecast_response.rb → named_entity_type_mechanism.rb} +48 -36
- data/lib/purecloudplatformclientv2/models/{copy_week_schedule_request.rb → nlu_confusion_matrix_column.rb} +18 -18
- data/lib/purecloudplatformclientv2/models/{wfm_average_speed_of_answer.rb → nlu_confusion_matrix_row.rb} +24 -18
- data/lib/purecloudplatformclientv2/models/nlu_detection_context.rb +228 -0
- data/lib/purecloudplatformclientv2/models/{scheduling_run_list_response.rb → nlu_detection_input.rb} +14 -10
- data/lib/purecloudplatformclientv2/models/nlu_detection_output.rb +232 -0
- data/lib/purecloudplatformclientv2/models/nlu_detection_request.rb +233 -0
- data/lib/purecloudplatformclientv2/models/{route_group_list.rb → nlu_detection_response.rb} +39 -22
- data/lib/purecloudplatformclientv2/models/{short_term_forecast_list_item_response.rb → nlu_domain.rb} +66 -60
- data/lib/purecloudplatformclientv2/models/{intraday_query_data_command.rb → nlu_domain_listing.rb} +156 -53
- data/lib/purecloudplatformclientv2/models/{short_term_forecast.rb → nlu_domain_version.rb} +132 -87
- data/lib/purecloudplatformclientv2/models/nlu_domain_version_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/{intraday_metric.rb → nlu_domain_version_quality_report.rb} +57 -28
- data/lib/purecloudplatformclientv2/models/{user_schedules_partial_upload_request.rb → nlu_domain_version_training_response.rb} +33 -16
- data/lib/purecloudplatformclientv2/models/{import_week_schedule_request.rb → nlu_feedback_listing.rb} +158 -46
- data/lib/purecloudplatformclientv2/models/{wfm_service_level.rb → nlu_feedback_request.rb} +36 -25
- data/lib/purecloudplatformclientv2/models/{service_goal_group.rb → nlu_feedback_response.rb} +32 -37
- data/lib/purecloudplatformclientv2/models/{generate_short_term_forecast_request.rb → nlu_quality_report_summary.rb} +12 -10
- data/lib/purecloudplatformclientv2/models/nlu_quality_report_summary_metric.rb +238 -0
- data/lib/purecloudplatformclientv2/models/nlu_utterance.rb +209 -0
- data/lib/purecloudplatformclientv2/models/nlu_utterance_segment.rb +233 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_callback_event_topic_callback_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_callback.rb +26 -1
- data/lib/purecloudplatformclientv2/models/reporting_export_job_request.rb +32 -4
- data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +57 -1
- data/lib/purecloudplatformclientv2/models/{import_short_term_forecast_request.rb → schema.rb} +50 -35
- data/lib/purecloudplatformclientv2/models/schema_quantity_limits.rb +539 -0
- data/lib/purecloudplatformclientv2/models/scim_v2_enterprise_user.rb +30 -4
- data/lib/purecloudplatformclientv2/models/screenshare.rb +30 -4
- data/lib/purecloudplatformclientv2/models/shift_trade_match_violation.rb +2 -2
- data/lib/purecloudplatformclientv2/models/social_expression.rb +30 -4
- data/lib/purecloudplatformclientv2/models/{time_off_request_lookup.rb → time_off_request.rb} +1 -1
- data/lib/purecloudplatformclientv2/models/{time_off_request_lookup_list.rb → time_off_request_listing.rb} +2 -2
- data/lib/purecloudplatformclientv2/models/{create_queue_media_association_request.rb → upload_url_request.rb} +23 -26
- data/lib/purecloudplatformclientv2/models/upload_url_response.rb +230 -0
- data/lib/purecloudplatformclientv2/models/{wfm_forecast_modification_attributes.rb → validation_limits.rb} +76 -38
- data/lib/purecloudplatformclientv2/models/video.rb +30 -4
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +102 -116
- data/docs/AsyncWeekScheduleResponse.md +0 -16
- data/docs/CopyShortTermForecastRequest.md +0 -14
- data/docs/CopyWeekScheduleRequest.md +0 -14
- data/docs/CreateQueueMediaAssociationRequest.md +0 -15
- data/docs/CreateServiceGoalGroupRequest.md +0 -15
- data/docs/ForecastGenerationResult.md +0 -13
- data/docs/ForecastGenerationRouteGroupResult.md +0 -14
- data/docs/ForecastResultResponse.md +0 -14
- data/docs/ForecastTimeSeriesResult.md +0 -14
- data/docs/GenerateShortTermForecastRequest.md +0 -13
- data/docs/GenerateShortTermForecastResponse.md +0 -16
- data/docs/GenerateWeekScheduleRequest.md +0 -14
- data/docs/GenerateWeekScheduleResponse.md +0 -15
- data/docs/ImportShortTermForecastRequest.md +0 -16
- data/docs/ImportWeekScheduleRequest.md +0 -17
- data/docs/IntradayDataGroup.md +0 -19
- data/docs/IntradayForecastData.md +0 -15
- data/docs/IntradayHistoricalAgentData.md +0 -14
- data/docs/IntradayHistoricalQueueData.md +0 -20
- data/docs/IntradayMetric.md +0 -14
- data/docs/IntradayPerformancePredictionAgentData.md +0 -13
- data/docs/IntradayPerformancePredictionQueueData.md +0 -15
- data/docs/IntradayQueryDataCommand.md +0 -17
- data/docs/IntradayQueue.md +0 -15
- data/docs/IntradayResponse.md +0 -20
- data/docs/IntradayScheduleData.md +0 -14
- data/docs/ListWrapperForecastSourceDayPointer.md +0 -13
- data/docs/ListWrapperWfmForecastModification.md +0 -13
- data/docs/QueueMediaAssociation.md +0 -16
- data/docs/RescheduleRequest.md +0 -20
- data/docs/RescheduleResult.md +0 -13
- data/docs/ReschedulingOptionsResponse.md +0 -22
- data/docs/RouteGroup.md +0 -18
- data/docs/RouteGroupAttributes.md +0 -16
- data/docs/RouteGroupList.md +0 -14
- data/docs/SchedulingRunListResponse.md +0 -13
- data/docs/SchedulingRunResponse.md +0 -28
- data/docs/ServiceGoalGroup.md +0 -18
- data/docs/ServiceGoalGroupGoals.md +0 -15
- data/docs/ServiceGoalGroupList.md +0 -14
- data/docs/ShortTermForecast.md +0 -22
- data/docs/ShortTermForecastListItemResponse.md +0 -18
- data/docs/ShortTermForecastListResponse.md +0 -13
- data/docs/ShortTermForecastResponse.md +0 -15
- data/docs/TimeOffRequestEntityList.md +0 -13
- data/docs/TimeOffRequestLookupList.md +0 -13
- data/docs/UnscheduledAgentWarning.md +0 -14
- data/docs/UpdateWeekScheduleRequest.md +0 -21
- data/docs/UserSchedulesPartialUploadRequest.md +0 -13
- data/docs/WfmAbandonRate.md +0 -14
- data/docs/WfmAverageSpeedOfAnswer.md +0 -14
- data/docs/WfmForecastModification.md +0 -20
- data/docs/WfmForecastModificationAttributes.md +0 -16
- data/docs/WfmIntradayQueueListing.md +0 -14
- data/docs/WfmServiceLevel.md +0 -15
- data/lib/purecloudplatformclientv2/models/async_week_schedule_response.rb +0 -295
- data/lib/purecloudplatformclientv2/models/forecast_generation_result.rb +0 -204
- data/lib/purecloudplatformclientv2/models/forecast_time_series_result.rb +0 -256
- data/lib/purecloudplatformclientv2/models/generate_short_term_forecast_response.rb +0 -294
- data/lib/purecloudplatformclientv2/models/generate_week_schedule_response.rb +0 -269
- data/lib/purecloudplatformclientv2/models/intraday_data_group.rb +0 -384
- data/lib/purecloudplatformclientv2/models/intraday_forecast_data.rb +0 -254
- data/lib/purecloudplatformclientv2/models/intraday_historical_agent_data.rb +0 -228
- data/lib/purecloudplatformclientv2/models/intraday_historical_queue_data.rb +0 -384
- data/lib/purecloudplatformclientv2/models/intraday_performance_prediction_agent_data.rb +0 -202
- data/lib/purecloudplatformclientv2/models/intraday_performance_prediction_queue_data.rb +0 -254
- data/lib/purecloudplatformclientv2/models/intraday_response.rb +0 -404
- data/lib/purecloudplatformclientv2/models/intraday_schedule_data.rb +0 -228
- data/lib/purecloudplatformclientv2/models/queue_media_association.rb +0 -283
- data/lib/purecloudplatformclientv2/models/reschedule_request.rb +0 -418
- data/lib/purecloudplatformclientv2/models/reschedule_result.rb +0 -202
- data/lib/purecloudplatformclientv2/models/route_group.rb +0 -363
- data/lib/purecloudplatformclientv2/models/route_group_attributes.rb +0 -307
- data/lib/purecloudplatformclientv2/models/scheduling_run_response.rb +0 -609
- data/lib/purecloudplatformclientv2/models/time_off_request_entity_list.rb +0 -203
- data/lib/purecloudplatformclientv2/models/unscheduled_agent_warning.rb +0 -242
- data/lib/purecloudplatformclientv2/models/update_week_schedule_request.rb +0 -438
- data/lib/purecloudplatformclientv2/models/wfm_forecast_modification.rb +0 -435
@@ -1,384 +0,0 @@
|
|
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: UNLICENSED
|
11
|
-
https://help.mypurecloud.com/articles/terms-and-conditions/
|
12
|
-
|
13
|
-
Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
|
14
|
-
|
15
|
-
=end
|
16
|
-
|
17
|
-
require 'date'
|
18
|
-
|
19
|
-
module PureCloud
|
20
|
-
class IntradayHistoricalQueueData
|
21
|
-
# The number of interactions routed into the queue for the given media type(s) for an agent to answer
|
22
|
-
attr_accessor :offered
|
23
|
-
|
24
|
-
# The number of interactions completed
|
25
|
-
attr_accessor :completed
|
26
|
-
|
27
|
-
# The number of interactions answered by an agent in a given period
|
28
|
-
attr_accessor :answered
|
29
|
-
|
30
|
-
# The number of customers who disconnect before connecting with an agent
|
31
|
-
attr_accessor :abandoned
|
32
|
-
|
33
|
-
# The average time in seconds an agent spends interacting with a customer per talk segment for a defined period of time
|
34
|
-
attr_accessor :average_talk_time_seconds
|
35
|
-
|
36
|
-
# The average time in seconds spent in after-call work. After-call work is the work that an agent performs immediately following an interaction
|
37
|
-
attr_accessor :average_after_call_work_seconds
|
38
|
-
|
39
|
-
# Percent of interactions answered in X seconds, where X is the service level objective configured in the service goal group matching this intraday group
|
40
|
-
attr_accessor :service_level_percent
|
41
|
-
|
42
|
-
# The average time in seconds it takes to answer an interaction once the interaction becomes available to be routed
|
43
|
-
attr_accessor :average_speed_of_answer_seconds
|
44
|
-
|
45
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
46
|
-
def self.attribute_map
|
47
|
-
{
|
48
|
-
|
49
|
-
:'offered' => :'offered',
|
50
|
-
|
51
|
-
:'completed' => :'completed',
|
52
|
-
|
53
|
-
:'answered' => :'answered',
|
54
|
-
|
55
|
-
:'abandoned' => :'abandoned',
|
56
|
-
|
57
|
-
:'average_talk_time_seconds' => :'averageTalkTimeSeconds',
|
58
|
-
|
59
|
-
:'average_after_call_work_seconds' => :'averageAfterCallWorkSeconds',
|
60
|
-
|
61
|
-
:'service_level_percent' => :'serviceLevelPercent',
|
62
|
-
|
63
|
-
:'average_speed_of_answer_seconds' => :'averageSpeedOfAnswerSeconds'
|
64
|
-
|
65
|
-
}
|
66
|
-
end
|
67
|
-
|
68
|
-
# Attribute type mapping.
|
69
|
-
def self.swagger_types
|
70
|
-
{
|
71
|
-
|
72
|
-
:'offered' => :'Integer',
|
73
|
-
|
74
|
-
:'completed' => :'Integer',
|
75
|
-
|
76
|
-
:'answered' => :'Integer',
|
77
|
-
|
78
|
-
:'abandoned' => :'Integer',
|
79
|
-
|
80
|
-
:'average_talk_time_seconds' => :'Float',
|
81
|
-
|
82
|
-
:'average_after_call_work_seconds' => :'Float',
|
83
|
-
|
84
|
-
:'service_level_percent' => :'Float',
|
85
|
-
|
86
|
-
:'average_speed_of_answer_seconds' => :'Float'
|
87
|
-
|
88
|
-
}
|
89
|
-
end
|
90
|
-
|
91
|
-
# Initializes the object
|
92
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
93
|
-
def initialize(attributes = {})
|
94
|
-
return unless attributes.is_a?(Hash)
|
95
|
-
|
96
|
-
# convert string to symbol for hash key
|
97
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
98
|
-
|
99
|
-
|
100
|
-
if attributes.has_key?(:'offered')
|
101
|
-
|
102
|
-
|
103
|
-
self.offered = attributes[:'offered']
|
104
|
-
|
105
|
-
|
106
|
-
end
|
107
|
-
|
108
|
-
|
109
|
-
if attributes.has_key?(:'completed')
|
110
|
-
|
111
|
-
|
112
|
-
self.completed = attributes[:'completed']
|
113
|
-
|
114
|
-
|
115
|
-
end
|
116
|
-
|
117
|
-
|
118
|
-
if attributes.has_key?(:'answered')
|
119
|
-
|
120
|
-
|
121
|
-
self.answered = attributes[:'answered']
|
122
|
-
|
123
|
-
|
124
|
-
end
|
125
|
-
|
126
|
-
|
127
|
-
if attributes.has_key?(:'abandoned')
|
128
|
-
|
129
|
-
|
130
|
-
self.abandoned = attributes[:'abandoned']
|
131
|
-
|
132
|
-
|
133
|
-
end
|
134
|
-
|
135
|
-
|
136
|
-
if attributes.has_key?(:'averageTalkTimeSeconds')
|
137
|
-
|
138
|
-
|
139
|
-
self.average_talk_time_seconds = attributes[:'averageTalkTimeSeconds']
|
140
|
-
|
141
|
-
|
142
|
-
end
|
143
|
-
|
144
|
-
|
145
|
-
if attributes.has_key?(:'averageAfterCallWorkSeconds')
|
146
|
-
|
147
|
-
|
148
|
-
self.average_after_call_work_seconds = attributes[:'averageAfterCallWorkSeconds']
|
149
|
-
|
150
|
-
|
151
|
-
end
|
152
|
-
|
153
|
-
|
154
|
-
if attributes.has_key?(:'serviceLevelPercent')
|
155
|
-
|
156
|
-
|
157
|
-
self.service_level_percent = attributes[:'serviceLevelPercent']
|
158
|
-
|
159
|
-
|
160
|
-
end
|
161
|
-
|
162
|
-
|
163
|
-
if attributes.has_key?(:'averageSpeedOfAnswerSeconds')
|
164
|
-
|
165
|
-
|
166
|
-
self.average_speed_of_answer_seconds = attributes[:'averageSpeedOfAnswerSeconds']
|
167
|
-
|
168
|
-
|
169
|
-
end
|
170
|
-
|
171
|
-
|
172
|
-
end
|
173
|
-
|
174
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
175
|
-
# @return Array for valid properies with the reasons
|
176
|
-
def list_invalid_properties
|
177
|
-
invalid_properties = Array.new
|
178
|
-
|
179
|
-
|
180
|
-
return invalid_properties
|
181
|
-
end
|
182
|
-
|
183
|
-
# Check to see if the all the properties in the model are valid
|
184
|
-
# @return true if the model is valid
|
185
|
-
def valid?
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
end
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
# Checks equality by comparing each attribute.
|
263
|
-
# @param [Object] Object to be compared
|
264
|
-
def ==(o)
|
265
|
-
return true if self.equal?(o)
|
266
|
-
self.class == o.class &&
|
267
|
-
offered == o.offered &&
|
268
|
-
completed == o.completed &&
|
269
|
-
answered == o.answered &&
|
270
|
-
abandoned == o.abandoned &&
|
271
|
-
average_talk_time_seconds == o.average_talk_time_seconds &&
|
272
|
-
average_after_call_work_seconds == o.average_after_call_work_seconds &&
|
273
|
-
service_level_percent == o.service_level_percent &&
|
274
|
-
average_speed_of_answer_seconds == o.average_speed_of_answer_seconds
|
275
|
-
end
|
276
|
-
|
277
|
-
# @see the `==` method
|
278
|
-
# @param [Object] Object to be compared
|
279
|
-
def eql?(o)
|
280
|
-
self == o
|
281
|
-
end
|
282
|
-
|
283
|
-
# Calculates hash code according to all attributes.
|
284
|
-
# @return [Fixnum] Hash code
|
285
|
-
def hash
|
286
|
-
[offered, completed, answered, abandoned, average_talk_time_seconds, average_after_call_work_seconds, service_level_percent, average_speed_of_answer_seconds].hash
|
287
|
-
end
|
288
|
-
|
289
|
-
# build the object from hash
|
290
|
-
def build_from_hash(attributes)
|
291
|
-
return nil unless attributes.is_a?(Hash)
|
292
|
-
self.class.swagger_types.each_pair do |key, type|
|
293
|
-
if type =~ /^Array<(.*)>/i
|
294
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
295
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
296
|
-
else
|
297
|
-
#TODO show warning in debug mode
|
298
|
-
end
|
299
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
300
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
301
|
-
else
|
302
|
-
# data not found in attributes(hash), not an issue as the data can be optional
|
303
|
-
end
|
304
|
-
end
|
305
|
-
|
306
|
-
self
|
307
|
-
end
|
308
|
-
|
309
|
-
def _deserialize(type, value)
|
310
|
-
case type.to_sym
|
311
|
-
when :DateTime
|
312
|
-
DateTime.parse(value)
|
313
|
-
when :Date
|
314
|
-
Date.parse(value)
|
315
|
-
when :String
|
316
|
-
value.to_s
|
317
|
-
when :Integer
|
318
|
-
value.to_i
|
319
|
-
when :Float
|
320
|
-
value.to_f
|
321
|
-
when :BOOLEAN
|
322
|
-
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
323
|
-
true
|
324
|
-
else
|
325
|
-
false
|
326
|
-
end
|
327
|
-
when :Object
|
328
|
-
# generic object (usually a Hash), return directly
|
329
|
-
value
|
330
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
331
|
-
inner_type = Regexp.last_match[:inner_type]
|
332
|
-
value.map { |v| _deserialize(inner_type, v) }
|
333
|
-
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
334
|
-
k_type = Regexp.last_match[:k_type]
|
335
|
-
v_type = Regexp.last_match[:v_type]
|
336
|
-
{}.tap do |hash|
|
337
|
-
value.each do |k, v|
|
338
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
339
|
-
end
|
340
|
-
end
|
341
|
-
else # model
|
342
|
-
_model = Object.const_get("PureCloud").const_get(type).new
|
343
|
-
_model.build_from_hash(value)
|
344
|
-
end
|
345
|
-
end
|
346
|
-
|
347
|
-
def to_s
|
348
|
-
to_hash.to_s
|
349
|
-
end
|
350
|
-
|
351
|
-
# to_body is an alias to to_body (backward compatibility))
|
352
|
-
def to_body
|
353
|
-
to_hash
|
354
|
-
end
|
355
|
-
|
356
|
-
# return the object in the form of hash
|
357
|
-
def to_hash
|
358
|
-
hash = {}
|
359
|
-
self.class.attribute_map.each_pair do |attr, param|
|
360
|
-
value = self.send(attr)
|
361
|
-
next if value.nil?
|
362
|
-
hash[param] = _to_hash(value)
|
363
|
-
end
|
364
|
-
hash
|
365
|
-
end
|
366
|
-
|
367
|
-
# Method to output non-array value in the form of hash
|
368
|
-
# For object, use to_hash. Otherwise, just return the value
|
369
|
-
def _to_hash(value)
|
370
|
-
if value.is_a?(Array)
|
371
|
-
value.compact.map{ |v| _to_hash(v) }
|
372
|
-
elsif value.is_a?(Hash)
|
373
|
-
{}.tap do |hash|
|
374
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
375
|
-
end
|
376
|
-
elsif value.respond_to? :to_hash
|
377
|
-
value.to_hash
|
378
|
-
else
|
379
|
-
value
|
380
|
-
end
|
381
|
-
end
|
382
|
-
|
383
|
-
end
|
384
|
-
end
|
@@ -1,202 +0,0 @@
|
|
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: UNLICENSED
|
11
|
-
https://help.mypurecloud.com/articles/terms-and-conditions/
|
12
|
-
|
13
|
-
Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
|
14
|
-
|
15
|
-
=end
|
16
|
-
|
17
|
-
require 'date'
|
18
|
-
|
19
|
-
module PureCloud
|
20
|
-
class IntradayPerformancePredictionAgentData
|
21
|
-
# The total time spent interacting in seconds for all agents in this group
|
22
|
-
attr_accessor :interacting_time_seconds
|
23
|
-
|
24
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
-
def self.attribute_map
|
26
|
-
{
|
27
|
-
|
28
|
-
:'interacting_time_seconds' => :'interactingTimeSeconds'
|
29
|
-
|
30
|
-
}
|
31
|
-
end
|
32
|
-
|
33
|
-
# Attribute type mapping.
|
34
|
-
def self.swagger_types
|
35
|
-
{
|
36
|
-
|
37
|
-
:'interacting_time_seconds' => :'Float'
|
38
|
-
|
39
|
-
}
|
40
|
-
end
|
41
|
-
|
42
|
-
# Initializes the object
|
43
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
44
|
-
def initialize(attributes = {})
|
45
|
-
return unless attributes.is_a?(Hash)
|
46
|
-
|
47
|
-
# convert string to symbol for hash key
|
48
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
49
|
-
|
50
|
-
|
51
|
-
if attributes.has_key?(:'interactingTimeSeconds')
|
52
|
-
|
53
|
-
|
54
|
-
self.interacting_time_seconds = attributes[:'interactingTimeSeconds']
|
55
|
-
|
56
|
-
|
57
|
-
end
|
58
|
-
|
59
|
-
|
60
|
-
end
|
61
|
-
|
62
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
63
|
-
# @return Array for valid properies with the reasons
|
64
|
-
def list_invalid_properties
|
65
|
-
invalid_properties = Array.new
|
66
|
-
|
67
|
-
|
68
|
-
return invalid_properties
|
69
|
-
end
|
70
|
-
|
71
|
-
# Check to see if the all the properties in the model are valid
|
72
|
-
# @return true if the model is valid
|
73
|
-
def valid?
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
end
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
# Checks equality by comparing each attribute.
|
88
|
-
# @param [Object] Object to be compared
|
89
|
-
def ==(o)
|
90
|
-
return true if self.equal?(o)
|
91
|
-
self.class == o.class &&
|
92
|
-
interacting_time_seconds == o.interacting_time_seconds
|
93
|
-
end
|
94
|
-
|
95
|
-
# @see the `==` method
|
96
|
-
# @param [Object] Object to be compared
|
97
|
-
def eql?(o)
|
98
|
-
self == o
|
99
|
-
end
|
100
|
-
|
101
|
-
# Calculates hash code according to all attributes.
|
102
|
-
# @return [Fixnum] Hash code
|
103
|
-
def hash
|
104
|
-
[interacting_time_seconds].hash
|
105
|
-
end
|
106
|
-
|
107
|
-
# build the object from hash
|
108
|
-
def build_from_hash(attributes)
|
109
|
-
return nil unless attributes.is_a?(Hash)
|
110
|
-
self.class.swagger_types.each_pair do |key, type|
|
111
|
-
if type =~ /^Array<(.*)>/i
|
112
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
113
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
114
|
-
else
|
115
|
-
#TODO show warning in debug mode
|
116
|
-
end
|
117
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
118
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
119
|
-
else
|
120
|
-
# data not found in attributes(hash), not an issue as the data can be optional
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
self
|
125
|
-
end
|
126
|
-
|
127
|
-
def _deserialize(type, value)
|
128
|
-
case type.to_sym
|
129
|
-
when :DateTime
|
130
|
-
DateTime.parse(value)
|
131
|
-
when :Date
|
132
|
-
Date.parse(value)
|
133
|
-
when :String
|
134
|
-
value.to_s
|
135
|
-
when :Integer
|
136
|
-
value.to_i
|
137
|
-
when :Float
|
138
|
-
value.to_f
|
139
|
-
when :BOOLEAN
|
140
|
-
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
141
|
-
true
|
142
|
-
else
|
143
|
-
false
|
144
|
-
end
|
145
|
-
when :Object
|
146
|
-
# generic object (usually a Hash), return directly
|
147
|
-
value
|
148
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
149
|
-
inner_type = Regexp.last_match[:inner_type]
|
150
|
-
value.map { |v| _deserialize(inner_type, v) }
|
151
|
-
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
152
|
-
k_type = Regexp.last_match[:k_type]
|
153
|
-
v_type = Regexp.last_match[:v_type]
|
154
|
-
{}.tap do |hash|
|
155
|
-
value.each do |k, v|
|
156
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
157
|
-
end
|
158
|
-
end
|
159
|
-
else # model
|
160
|
-
_model = Object.const_get("PureCloud").const_get(type).new
|
161
|
-
_model.build_from_hash(value)
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
def to_s
|
166
|
-
to_hash.to_s
|
167
|
-
end
|
168
|
-
|
169
|
-
# to_body is an alias to to_body (backward compatibility))
|
170
|
-
def to_body
|
171
|
-
to_hash
|
172
|
-
end
|
173
|
-
|
174
|
-
# return the object in the form of hash
|
175
|
-
def to_hash
|
176
|
-
hash = {}
|
177
|
-
self.class.attribute_map.each_pair do |attr, param|
|
178
|
-
value = self.send(attr)
|
179
|
-
next if value.nil?
|
180
|
-
hash[param] = _to_hash(value)
|
181
|
-
end
|
182
|
-
hash
|
183
|
-
end
|
184
|
-
|
185
|
-
# Method to output non-array value in the form of hash
|
186
|
-
# For object, use to_hash. Otherwise, just return the value
|
187
|
-
def _to_hash(value)
|
188
|
-
if value.is_a?(Array)
|
189
|
-
value.compact.map{ |v| _to_hash(v) }
|
190
|
-
elsif value.is_a?(Hash)
|
191
|
-
{}.tap do |hash|
|
192
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
193
|
-
end
|
194
|
-
elsif value.respond_to? :to_hash
|
195
|
-
value.to_hash
|
196
|
-
else
|
197
|
-
value
|
198
|
-
end
|
199
|
-
end
|
200
|
-
|
201
|
-
end
|
202
|
-
end
|