purecloudplatformclientv2 95.0.0 → 96.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/AnalyticsProposedAgent.md +14 -0
- data/docs/AnalyticsSession.md +2 -0
- data/docs/ArrayNode.md +4 -4
- data/docs/AuditApi.md +60 -0
- data/docs/BuAgentSchedulesQueryResponse.md +1 -0
- data/docs/CoachingApi.md +80 -2
- data/docs/CoachingAppointmentAggregateRequest.md +16 -0
- data/docs/CoachingAppointmentAggregateResponse.md +13 -0
- data/docs/CoachingAppointmentResponse.md +1 -0
- data/docs/ConversationMetrics.md +15 -0
- data/docs/ExternalOrganizationTrustorLink.md +1 -2
- data/docs/GenericSAML.md +1 -1
- data/docs/JsonNode.md +4 -4
- data/docs/OAuthClient.md +1 -0
- data/docs/OAuthClientListing.md +1 -0
- data/docs/OAuthClientRequest.md +1 -0
- data/docs/OrgOAuthClient.md +1 -0
- data/docs/Permissions.md +0 -2
- data/docs/QueryRequestClause.md +14 -0
- data/docs/QueryRequestFilter.md +14 -0
- data/docs/QueryRequestPredicate.md +14 -0
- data/docs/QueryResponseData.md +14 -0
- data/docs/QueryResponseGroupedData.md +14 -0
- data/docs/QueryResponseMetric.md +14 -0
- data/docs/QueryResponseStats.md +13 -0
- data/docs/ReportingDataExportTopicDataExportNotification.md +1 -0
- data/docs/ReportingExportJobResponse.md +1 -0
- data/docs/RoutingApi.md +1 -1
- data/docs/SearchApi.md +2 -1
- data/docs/SpeechTextAnalyticsApi.md +66 -0
- data/docs/StatEventFlowOutcomeTopicDatum.md +14 -0
- data/docs/StatEventFlowOutcomeTopicMetric.md +15 -0
- data/docs/StatEventFlowOutcomeTopicStatsNotification.md +14 -0
- data/docs/StatEventFlowTopicDatum.md +14 -0
- data/docs/StatEventFlowTopicMetric.md +15 -0
- data/docs/StatEventFlowTopicStatsNotification.md +14 -0
- data/docs/StatEventWrapUpCodeTopicDatum.md +14 -0
- data/docs/StatEventWrapUpCodeTopicMetric.md +15 -0
- data/docs/StatEventWrapUpCodeTopicStatsNotification.md +14 -0
- data/docs/UserScheduleAdherence.md +1 -0
- data/docs/UserSearchRequest.md +1 -0
- data/docs/UsersApi.md +2 -1
- data/docs/WemCoachingAppointmentTopicCoachingAppointmentNotification.md +1 -0
- data/docs/WfmBusinessUnitReference.md +1 -1
- data/docs/WfmScheduleReference.md +3 -3
- data/docs/WfmUserScheduleAdherenceUpdatedMuTopicUriReference.md +14 -0
- data/docs/WfmUserScheduleAdherenceUpdatedMuTopicUserScheduleAdherenceUpdate.md +1 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTeamTopicQueueReference.md +13 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTeamTopicUriReference.md +14 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTeamTopicUserReference.md +13 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTeamTopicUserScheduleAdherenceUpdate.md +28 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTopicUriReference.md +14 -0
- data/docs/WfmUserScheduleAdherenceUpdatedTopicUserScheduleAdherenceUpdate.md +1 -0
- data/lib/purecloudplatformclientv2.rb +26 -0
- data/lib/purecloudplatformclientv2/api/audit_api.rb +55 -0
- data/lib/purecloudplatformclientv2/api/coaching_api.rb +127 -0
- data/lib/purecloudplatformclientv2/api/routing_api.rb +2 -2
- data/lib/purecloudplatformclientv2/api/speech_text_analytics_api.rb +65 -0
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/acw_settings.rb +2 -2
- data/lib/purecloudplatformclientv2/models/analytics_proposed_agent.rb +228 -0
- data/lib/purecloudplatformclientv2/models/analytics_session.rb +58 -4
- data/lib/purecloudplatformclientv2/models/array_node.rb +54 -54
- data/lib/purecloudplatformclientv2/models/audit_log_message.rb +6 -6
- data/lib/purecloudplatformclientv2/models/audit_query_entity.rb +2 -2
- data/lib/purecloudplatformclientv2/models/audit_query_execution_status_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/audit_query_request.rb +2 -2
- data/lib/purecloudplatformclientv2/models/audit_query_service.rb +2 -2
- data/lib/purecloudplatformclientv2/models/audit_realtime_query_request.rb +2 -2
- data/lib/purecloudplatformclientv2/models/bu_agent_schedules_query_response.rb +30 -4
- data/lib/purecloudplatformclientv2/models/coaching_appointment_aggregate_request.rb +294 -0
- data/lib/purecloudplatformclientv2/models/coaching_appointment_aggregate_response.rb +204 -0
- data/lib/purecloudplatformclientv2/models/coaching_appointment_response.rb +27 -1
- data/lib/purecloudplatformclientv2/models/conversation_aggregate_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/conversation_message_event_topic_message_media_participant.rb +2 -2
- data/lib/purecloudplatformclientv2/models/conversation_metrics.rb +254 -0
- data/lib/purecloudplatformclientv2/models/create_outbound_messaging_conversation_request.rb +2 -2
- data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/external_organization_trustor_link.rb +8 -34
- data/lib/purecloudplatformclientv2/models/flow_aggregate_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/generic_saml.rb +12 -12
- data/lib/purecloudplatformclientv2/models/ip_address_range.rb +2 -2
- data/lib/purecloudplatformclientv2/models/journey_aggregate_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/json_node.rb +54 -54
- data/lib/purecloudplatformclientv2/models/message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/message_data.rb +2 -2
- data/lib/purecloudplatformclientv2/models/message_media_participant.rb +2 -2
- data/lib/purecloudplatformclientv2/models/messaging_integration.rb +2 -2
- data/lib/purecloudplatformclientv2/models/messaging_sticker.rb +2 -2
- data/lib/purecloudplatformclientv2/models/o_auth_client.rb +27 -1
- data/lib/purecloudplatformclientv2/models/o_auth_client_listing.rb +27 -1
- data/lib/purecloudplatformclientv2/models/o_auth_client_request.rb +30 -4
- data/lib/purecloudplatformclientv2/models/org_o_auth_client.rb +27 -1
- data/lib/purecloudplatformclientv2/models/participant.rb +2 -2
- data/lib/purecloudplatformclientv2/models/participant_basic.rb +2 -2
- data/lib/purecloudplatformclientv2/models/permissions.rb +1 -52
- data/lib/purecloudplatformclientv2/models/query_request_clause.rb +254 -0
- data/lib/purecloudplatformclientv2/models/query_request_filter.rb +254 -0
- data/lib/purecloudplatformclientv2/models/query_request_predicate.rb +252 -0
- data/lib/purecloudplatformclientv2/models/query_response_data.rb +230 -0
- data/lib/purecloudplatformclientv2/models/query_response_grouped_data.rb +232 -0
- data/lib/purecloudplatformclientv2/models/query_response_metric.rb +242 -0
- data/lib/purecloudplatformclientv2/models/query_response_stats.rb +202 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/queue_conversation_message_event_topic_message_media_participant.rb +2 -2
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/recipient.rb +2 -2
- data/lib/purecloudplatformclientv2/models/reporting_data_export_topic_data_export_notification.rb +26 -1
- data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +32 -1
- data/lib/purecloudplatformclientv2/models/segment_detail_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/send_agentless_outbound_message_request.rb +2 -2
- data/lib/purecloudplatformclientv2/models/send_agentless_outbound_message_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/stat_event_flow_outcome_topic_datum.rb +228 -0
- data/lib/purecloudplatformclientv2/models/stat_event_flow_outcome_topic_metric.rb +253 -0
- data/lib/purecloudplatformclientv2/models/stat_event_flow_outcome_topic_stats_notification.rb +230 -0
- data/lib/purecloudplatformclientv2/models/stat_event_flow_topic_datum.rb +228 -0
- data/lib/purecloudplatformclientv2/models/stat_event_flow_topic_metric.rb +253 -0
- data/lib/purecloudplatformclientv2/models/stat_event_flow_topic_stats_notification.rb +230 -0
- data/lib/purecloudplatformclientv2/models/stat_event_wrap_up_code_topic_datum.rb +228 -0
- data/lib/purecloudplatformclientv2/models/stat_event_wrap_up_code_topic_metric.rb +253 -0
- data/lib/purecloudplatformclientv2/models/stat_event_wrap_up_code_topic_stats_notification.rb +230 -0
- data/lib/purecloudplatformclientv2/models/user_schedule_adherence.rb +27 -1
- data/lib/purecloudplatformclientv2/models/user_search_request.rb +30 -4
- data/lib/purecloudplatformclientv2/models/wem_coaching_appointment_topic_coaching_appointment_notification.rb +29 -4
- data/lib/purecloudplatformclientv2/models/wfm_business_unit_reference.rb +6 -1
- data/lib/purecloudplatformclientv2/models/wfm_schedule_reference.rb +16 -1
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_mu_topic_uri_reference.rb +226 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_mu_topic_user_schedule_adherence_update.rb +26 -1
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_team_topic_queue_reference.rb +201 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_team_topic_uri_reference.rb +226 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_team_topic_user_reference.rb +201 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_team_topic_user_schedule_adherence_update.rb +606 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_topic_uri_reference.rb +226 -0
- data/lib/purecloudplatformclientv2/models/wfm_user_schedule_adherence_updated_topic_user_schedule_adherence_update.rb +26 -1
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +55 -3
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
|
|
19
19
|
module PureCloud
|
|
20
20
|
class WfmBusinessUnitReference
|
|
21
|
-
# The
|
|
21
|
+
# The ID of the business unit
|
|
22
22
|
attr_accessor :id
|
|
23
23
|
|
|
24
24
|
# The URI for this object
|
|
@@ -89,6 +89,11 @@ module PureCloud
|
|
|
89
89
|
def valid?
|
|
90
90
|
|
|
91
91
|
|
|
92
|
+
if @id.nil?
|
|
93
|
+
return false
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
|
|
92
97
|
|
|
93
98
|
|
|
94
99
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
|
|
19
19
|
module PureCloud
|
|
20
20
|
class WfmScheduleReference
|
|
21
|
-
# The
|
|
21
|
+
# The ID of the WFM schedule
|
|
22
22
|
attr_accessor :id
|
|
23
23
|
|
|
24
24
|
# A reference to a Workforce Management Business Unit
|
|
@@ -121,15 +121,30 @@ module PureCloud
|
|
|
121
121
|
def valid?
|
|
122
122
|
|
|
123
123
|
|
|
124
|
+
if @id.nil?
|
|
125
|
+
return false
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
|
|
124
129
|
|
|
125
130
|
|
|
126
131
|
|
|
127
132
|
|
|
133
|
+
if @business_unit.nil?
|
|
134
|
+
return false
|
|
135
|
+
end
|
|
136
|
+
|
|
128
137
|
|
|
129
138
|
|
|
130
139
|
|
|
131
140
|
|
|
132
141
|
|
|
142
|
+
if @week_date.nil?
|
|
143
|
+
return false
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
133
148
|
|
|
134
149
|
|
|
135
150
|
|
|
@@ -0,0 +1,226 @@
|
|
|
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 WfmUserScheduleAdherenceUpdatedMuTopicUriReference
|
|
21
|
+
attr_accessor :id
|
|
22
|
+
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
|
|
29
|
+
:'id' => :'id',
|
|
30
|
+
|
|
31
|
+
:'name' => :'name'
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Attribute type mapping.
|
|
37
|
+
def self.swagger_types
|
|
38
|
+
{
|
|
39
|
+
|
|
40
|
+
:'id' => :'String',
|
|
41
|
+
|
|
42
|
+
:'name' => :'String'
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Initializes the object
|
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
49
|
+
def initialize(attributes = {})
|
|
50
|
+
return unless attributes.is_a?(Hash)
|
|
51
|
+
|
|
52
|
+
# convert string to symbol for hash key
|
|
53
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
if attributes.has_key?(:'id')
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
self.id = attributes[:'id']
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
if attributes.has_key?(:'name')
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
self.name = attributes[:'name']
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
77
|
+
# @return Array for valid properies with the reasons
|
|
78
|
+
def list_invalid_properties
|
|
79
|
+
invalid_properties = Array.new
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
return invalid_properties
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Check to see if the all the properties in the model are valid
|
|
86
|
+
# @return true if the model is valid
|
|
87
|
+
def valid?
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# Checks equality by comparing each attribute.
|
|
111
|
+
# @param [Object] Object to be compared
|
|
112
|
+
def ==(o)
|
|
113
|
+
return true if self.equal?(o)
|
|
114
|
+
self.class == o.class &&
|
|
115
|
+
id == o.id &&
|
|
116
|
+
name == o.name
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# @see the `==` method
|
|
120
|
+
# @param [Object] Object to be compared
|
|
121
|
+
def eql?(o)
|
|
122
|
+
self == o
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Calculates hash code according to all attributes.
|
|
126
|
+
# @return [Fixnum] Hash code
|
|
127
|
+
def hash
|
|
128
|
+
[id, name].hash
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# build the object from hash
|
|
132
|
+
def build_from_hash(attributes)
|
|
133
|
+
return nil unless attributes.is_a?(Hash)
|
|
134
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
135
|
+
if type =~ /^Array<(.*)>/i
|
|
136
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
137
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
138
|
+
else
|
|
139
|
+
#TODO show warning in debug mode
|
|
140
|
+
end
|
|
141
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
142
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
143
|
+
else
|
|
144
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
self
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
def _deserialize(type, value)
|
|
152
|
+
case type.to_sym
|
|
153
|
+
when :DateTime
|
|
154
|
+
DateTime.parse(value)
|
|
155
|
+
when :Date
|
|
156
|
+
Date.parse(value)
|
|
157
|
+
when :String
|
|
158
|
+
value.to_s
|
|
159
|
+
when :Integer
|
|
160
|
+
value.to_i
|
|
161
|
+
when :Float
|
|
162
|
+
value.to_f
|
|
163
|
+
when :BOOLEAN
|
|
164
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
|
165
|
+
true
|
|
166
|
+
else
|
|
167
|
+
false
|
|
168
|
+
end
|
|
169
|
+
when :Object
|
|
170
|
+
# generic object (usually a Hash), return directly
|
|
171
|
+
value
|
|
172
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
173
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
174
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
175
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
|
176
|
+
k_type = Regexp.last_match[:k_type]
|
|
177
|
+
v_type = Regexp.last_match[:v_type]
|
|
178
|
+
{}.tap do |hash|
|
|
179
|
+
value.each do |k, v|
|
|
180
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
else # model
|
|
184
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
|
185
|
+
_model.build_from_hash(value)
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
def to_s
|
|
190
|
+
to_hash.to_s
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# to_body is an alias to to_body (backward compatibility))
|
|
194
|
+
def to_body
|
|
195
|
+
to_hash
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# return the object in the form of hash
|
|
199
|
+
def to_hash
|
|
200
|
+
hash = {}
|
|
201
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
202
|
+
value = self.send(attr)
|
|
203
|
+
next if value.nil?
|
|
204
|
+
hash[param] = _to_hash(value)
|
|
205
|
+
end
|
|
206
|
+
hash
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Method to output non-array value in the form of hash
|
|
210
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
211
|
+
def _to_hash(value)
|
|
212
|
+
if value.is_a?(Array)
|
|
213
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
214
|
+
elsif value.is_a?(Hash)
|
|
215
|
+
{}.tap do |hash|
|
|
216
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
217
|
+
end
|
|
218
|
+
elsif value.respond_to? :to_hash
|
|
219
|
+
value.to_hash
|
|
220
|
+
else
|
|
221
|
+
value
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
end
|
|
226
|
+
end
|
|
@@ -22,6 +22,8 @@ module PureCloud
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :management_unit_id
|
|
24
24
|
|
|
25
|
+
attr_accessor :team
|
|
26
|
+
|
|
25
27
|
attr_accessor :scheduled_activity_category
|
|
26
28
|
|
|
27
29
|
attr_accessor :system_presence
|
|
@@ -56,6 +58,8 @@ module PureCloud
|
|
|
56
58
|
|
|
57
59
|
:'management_unit_id' => :'managementUnitId',
|
|
58
60
|
|
|
61
|
+
:'team' => :'team',
|
|
62
|
+
|
|
59
63
|
:'scheduled_activity_category' => :'scheduledActivityCategory',
|
|
60
64
|
|
|
61
65
|
:'system_presence' => :'systemPresence',
|
|
@@ -93,6 +97,8 @@ module PureCloud
|
|
|
93
97
|
|
|
94
98
|
:'management_unit_id' => :'String',
|
|
95
99
|
|
|
100
|
+
:'team' => :'WfmUserScheduleAdherenceUpdatedMuTopicUriReference',
|
|
101
|
+
|
|
96
102
|
:'scheduled_activity_category' => :'String',
|
|
97
103
|
|
|
98
104
|
:'system_presence' => :'String',
|
|
@@ -149,6 +155,15 @@ module PureCloud
|
|
|
149
155
|
end
|
|
150
156
|
|
|
151
157
|
|
|
158
|
+
if attributes.has_key?(:'team')
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
self.team = attributes[:'team']
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
|
|
152
167
|
if attributes.has_key?(:'scheduledActivityCategory')
|
|
153
168
|
|
|
154
169
|
|
|
@@ -300,6 +315,10 @@ module PureCloud
|
|
|
300
315
|
|
|
301
316
|
|
|
302
317
|
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
303
322
|
|
|
304
323
|
|
|
305
324
|
|
|
@@ -376,6 +395,11 @@ module PureCloud
|
|
|
376
395
|
|
|
377
396
|
|
|
378
397
|
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
379
403
|
|
|
380
404
|
|
|
381
405
|
|
|
@@ -456,6 +480,7 @@ module PureCloud
|
|
|
456
480
|
self.class == o.class &&
|
|
457
481
|
user == o.user &&
|
|
458
482
|
management_unit_id == o.management_unit_id &&
|
|
483
|
+
team == o.team &&
|
|
459
484
|
scheduled_activity_category == o.scheduled_activity_category &&
|
|
460
485
|
system_presence == o.system_presence &&
|
|
461
486
|
organization_secondary_presence_id == o.organization_secondary_presence_id &&
|
|
@@ -480,7 +505,7 @@ module PureCloud
|
|
|
480
505
|
# Calculates hash code according to all attributes.
|
|
481
506
|
# @return [Fixnum] Hash code
|
|
482
507
|
def hash
|
|
483
|
-
[user, management_unit_id, scheduled_activity_category, system_presence, organization_secondary_presence_id, routing_status, actual_activity_category, is_out_of_office, adherence_state, impact, adherence_change_time, presence_update_time, active_queues, active_queues_modified_time, removed_from_management_unit].hash
|
|
508
|
+
[user, management_unit_id, team, scheduled_activity_category, system_presence, organization_secondary_presence_id, routing_status, actual_activity_category, is_out_of_office, adherence_state, impact, adherence_change_time, presence_update_time, active_queues, active_queues_modified_time, removed_from_management_unit].hash
|
|
484
509
|
end
|
|
485
510
|
|
|
486
511
|
# build the object from hash
|
|
@@ -0,0 +1,201 @@
|
|
|
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 WfmUserScheduleAdherenceUpdatedTeamTopicQueueReference
|
|
21
|
+
attr_accessor :id
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
|
|
27
|
+
:'id' => :'id'
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Attribute type mapping.
|
|
33
|
+
def self.swagger_types
|
|
34
|
+
{
|
|
35
|
+
|
|
36
|
+
:'id' => :'String'
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Initializes the object
|
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
43
|
+
def initialize(attributes = {})
|
|
44
|
+
return unless attributes.is_a?(Hash)
|
|
45
|
+
|
|
46
|
+
# convert string to symbol for hash key
|
|
47
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
if attributes.has_key?(:'id')
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
self.id = attributes[:'id']
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
62
|
+
# @return Array for valid properies with the reasons
|
|
63
|
+
def list_invalid_properties
|
|
64
|
+
invalid_properties = Array.new
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
return invalid_properties
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Check to see if the all the properties in the model are valid
|
|
71
|
+
# @return true if the model is valid
|
|
72
|
+
def valid?
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# Checks equality by comparing each attribute.
|
|
87
|
+
# @param [Object] Object to be compared
|
|
88
|
+
def ==(o)
|
|
89
|
+
return true if self.equal?(o)
|
|
90
|
+
self.class == o.class &&
|
|
91
|
+
id == o.id
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# @see the `==` method
|
|
95
|
+
# @param [Object] Object to be compared
|
|
96
|
+
def eql?(o)
|
|
97
|
+
self == o
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Calculates hash code according to all attributes.
|
|
101
|
+
# @return [Fixnum] Hash code
|
|
102
|
+
def hash
|
|
103
|
+
[id].hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# build the object from hash
|
|
107
|
+
def build_from_hash(attributes)
|
|
108
|
+
return nil unless attributes.is_a?(Hash)
|
|
109
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
110
|
+
if type =~ /^Array<(.*)>/i
|
|
111
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
112
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
113
|
+
else
|
|
114
|
+
#TODO show warning in debug mode
|
|
115
|
+
end
|
|
116
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
117
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
118
|
+
else
|
|
119
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
self
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
def _deserialize(type, value)
|
|
127
|
+
case type.to_sym
|
|
128
|
+
when :DateTime
|
|
129
|
+
DateTime.parse(value)
|
|
130
|
+
when :Date
|
|
131
|
+
Date.parse(value)
|
|
132
|
+
when :String
|
|
133
|
+
value.to_s
|
|
134
|
+
when :Integer
|
|
135
|
+
value.to_i
|
|
136
|
+
when :Float
|
|
137
|
+
value.to_f
|
|
138
|
+
when :BOOLEAN
|
|
139
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
|
140
|
+
true
|
|
141
|
+
else
|
|
142
|
+
false
|
|
143
|
+
end
|
|
144
|
+
when :Object
|
|
145
|
+
# generic object (usually a Hash), return directly
|
|
146
|
+
value
|
|
147
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
148
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
149
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
150
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
|
151
|
+
k_type = Regexp.last_match[:k_type]
|
|
152
|
+
v_type = Regexp.last_match[:v_type]
|
|
153
|
+
{}.tap do |hash|
|
|
154
|
+
value.each do |k, v|
|
|
155
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
else # model
|
|
159
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
|
160
|
+
_model.build_from_hash(value)
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
def to_s
|
|
165
|
+
to_hash.to_s
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# to_body is an alias to to_body (backward compatibility))
|
|
169
|
+
def to_body
|
|
170
|
+
to_hash
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# return the object in the form of hash
|
|
174
|
+
def to_hash
|
|
175
|
+
hash = {}
|
|
176
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
177
|
+
value = self.send(attr)
|
|
178
|
+
next if value.nil?
|
|
179
|
+
hash[param] = _to_hash(value)
|
|
180
|
+
end
|
|
181
|
+
hash
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Method to output non-array value in the form of hash
|
|
185
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
186
|
+
def _to_hash(value)
|
|
187
|
+
if value.is_a?(Array)
|
|
188
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
189
|
+
elsif value.is_a?(Hash)
|
|
190
|
+
{}.tap do |hash|
|
|
191
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
192
|
+
end
|
|
193
|
+
elsif value.respond_to? :to_hash
|
|
194
|
+
value.to_hash
|
|
195
|
+
else
|
|
196
|
+
value
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
end
|
|
201
|
+
end
|