purecloud 0.30.1 → 0.31.1

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.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/config-ruby.json +1 -1
  3. data/lib/purecloud/api/configuration_api.rb +4 -814
  4. data/lib/purecloud/api/conversations_api.rb +1035 -1763
  5. data/lib/purecloud/api/organization_api.rb +0 -58
  6. data/lib/purecloud/api/quality_api.rb +629 -0
  7. data/lib/purecloud/api/telephony_providers_edge_api.rb +1033 -677
  8. data/lib/purecloud/api/users_api.rb +311 -0
  9. data/lib/purecloud/api/voicemail_api.rb +176 -176
  10. data/lib/purecloud/models/address_listing.rb +17 -17
  11. data/lib/purecloud/models/agent_activity_entity_listing.rb +17 -17
  12. data/lib/purecloud/models/aggregate_metric_data.rb +1 -1
  13. data/lib/purecloud/models/analytics_conversation_segment.rb +18 -235
  14. data/lib/purecloud/models/analytics_participant.rb +40 -1
  15. data/lib/purecloud/models/analytics_query_predicate.rb +2 -2
  16. data/lib/purecloud/models/analytics_session.rb +150 -1
  17. data/lib/purecloud/models/attribute_entity_listing.rb +17 -17
  18. data/lib/purecloud/models/automate_queue_member_entity_listing.rb +17 -17
  19. data/lib/purecloud/models/available_additional_service_listing.rb +17 -17
  20. data/lib/purecloud/models/available_topic_entity_listing.rb +17 -17
  21. data/lib/purecloud/models/calibration_entity_listing.rb +17 -17
  22. data/lib/purecloud/models/call_conversation_entity_listing.rb +17 -17
  23. data/lib/purecloud/models/callable_time_set_entity_listing.rb +17 -17
  24. data/lib/purecloud/models/callback_conversation_entity_listing.rb +17 -17
  25. data/lib/purecloud/models/campaign_entity_listing.rb +17 -17
  26. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +17 -17
  27. data/lib/purecloud/models/carrier_entity_listing.rb +17 -17
  28. data/lib/purecloud/models/certificate_authority_entity_listing.rb +17 -17
  29. data/lib/purecloud/models/channel_entity_listing.rb +17 -17
  30. data/lib/purecloud/models/channel_topic_entity_listing.rb +17 -17
  31. data/lib/purecloud/models/chat_conversation_entity_listing.rb +17 -17
  32. data/lib/purecloud/models/command_status_entity_listing.rb +17 -17
  33. data/lib/purecloud/models/consumed_resources_entity_listing.rb +17 -17
  34. data/lib/purecloud/models/consuming_resources_entity_listing.rb +17 -17
  35. data/lib/purecloud/models/contact_list_entity_listing.rb +17 -17
  36. data/lib/purecloud/models/contact_listing.rb +17 -17
  37. data/lib/purecloud/models/conversation_entity_listing.rb +17 -17
  38. data/lib/purecloud/models/create_user.rb +1 -11
  39. data/lib/purecloud/models/data_item.rb +23 -19
  40. data/lib/purecloud/models/deleted_resource_consumer_entity_listing.rb +17 -17
  41. data/lib/purecloud/models/dependency_object_entity_listing.rb +17 -17
  42. data/lib/purecloud/models/dependency_type_entity_listing.rb +17 -17
  43. data/lib/purecloud/models/did_entity_listing.rb +17 -17
  44. data/lib/purecloud/models/did_pool_entity_listing.rb +17 -17
  45. data/lib/purecloud/models/dnc_list_entity_listing.rb +17 -17
  46. data/lib/purecloud/models/document_audit_entity_listing.rb +17 -17
  47. data/lib/purecloud/models/document_entity_listing.rb +17 -17
  48. data/lib/purecloud/models/domain_billing_period_entity_listing.rb +17 -17
  49. data/lib/purecloud/models/domain_entity_listing.rb +17 -17
  50. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +17 -17
  51. data/lib/purecloud/models/domain_entity_listing_query_result.rb +17 -17
  52. data/lib/purecloud/models/domain_invoice_entity_listing.rb +17 -17
  53. data/lib/purecloud/models/domain_third_party_account_entity_listing.rb +17 -17
  54. data/lib/purecloud/models/domain_third_party_subscription_entity_listing.rb +17 -17
  55. data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +17 -17
  56. data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +17 -17
  57. data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +17 -17
  58. data/lib/purecloud/models/edge_entity_listing.rb +17 -17
  59. data/lib/purecloud/models/edge_group_entity_listing.rb +17 -17
  60. data/lib/purecloud/models/edge_line_entity_listing.rb +17 -17
  61. data/lib/purecloud/models/email_conversation_entity_listing.rb +17 -17
  62. data/lib/purecloud/models/email_message_listing.rb +17 -17
  63. data/lib/purecloud/models/encryption_key_entity_listing.rb +17 -17
  64. data/lib/purecloud/models/endpoint_entity_listing.rb +17 -17
  65. data/lib/purecloud/models/evaluation_entity_listing.rb +17 -17
  66. data/lib/purecloud/models/evaluation_form_entity_listing.rb +17 -17
  67. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +17 -17
  68. data/lib/purecloud/models/extension_entity_listing.rb +17 -17
  69. data/lib/purecloud/models/extension_pool_entity_listing.rb +17 -17
  70. data/lib/purecloud/models/external_organization_listing.rb +17 -17
  71. data/lib/purecloud/models/fax_document_entity_listing.rb +17 -17
  72. data/lib/purecloud/models/flow_config_meta_data_entity_listing.rb +17 -17
  73. data/lib/purecloud/models/flow_entity_listing.rb +17 -17
  74. data/lib/purecloud/models/flow_history_result_item_entity_listing.rb +17 -17
  75. data/lib/purecloud/models/flow_version_config_meta_data_entity_listing.rb +17 -17
  76. data/lib/purecloud/models/flow_version_entity_listing.rb +17 -17
  77. data/lib/purecloud/models/group_entity_listing.rb +17 -17
  78. data/lib/purecloud/models/hardware_rate_listing.rb +17 -17
  79. data/lib/purecloud/models/inbound_domain_entity_listing.rb +17 -17
  80. data/lib/purecloud/models/inbound_route_entity_listing.rb +17 -17
  81. data/lib/purecloud/models/integration_type_entity_listing.rb +17 -17
  82. data/lib/purecloud/models/interaction_stats_alert_container.rb +17 -17
  83. data/lib/purecloud/models/interaction_stats_rule_container.rb +17 -17
  84. data/lib/purecloud/models/ivr_entity_listing.rb +17 -17
  85. data/lib/purecloud/models/json_node.rb +32 -32
  86. data/lib/purecloud/models/language_entity_listing.rb +17 -17
  87. data/lib/purecloud/models/library_entity_listing.rb +17 -17
  88. data/lib/purecloud/models/line_base_entity_listing.rb +17 -17
  89. data/lib/purecloud/models/line_entity_listing.rb +17 -17
  90. data/lib/purecloud/models/linked_entity_listing_flow_details.rb +17 -17
  91. data/lib/purecloud/models/linked_entity_listing_work_item_search_details.rb +17 -17
  92. data/lib/purecloud/models/location_entity_listing.rb +17 -17
  93. data/lib/purecloud/models/logical_interface_entity_listing.rb +17 -17
  94. data/lib/purecloud/models/note_listing.rb +17 -17
  95. data/lib/purecloud/models/o_auth_client_entity_listing.rb +17 -17
  96. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +17 -17
  97. data/lib/purecloud/models/organization.rb +1 -0
  98. data/lib/purecloud/models/organization_presence_entity_listing.rb +17 -17
  99. data/lib/purecloud/models/organization_role_entity_listing.rb +17 -17
  100. data/lib/purecloud/models/orphan_recording_listing.rb +17 -17
  101. data/lib/purecloud/models/outbound_route_entity_listing.rb +17 -17
  102. data/lib/purecloud/models/payment_method_listing.rb +17 -17
  103. data/lib/purecloud/models/permission_collection_entity_listing.rb +17 -17
  104. data/lib/purecloud/models/phone_base_entity_listing.rb +17 -17
  105. data/lib/purecloud/models/phone_entity_listing.rb +17 -17
  106. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +17 -17
  107. data/lib/purecloud/models/physical_interface_entity_listing.rb +17 -17
  108. data/lib/purecloud/models/policy_entity_listing.rb +17 -17
  109. data/lib/purecloud/models/prompt_asset_entity_listing.rb +17 -17
  110. data/lib/purecloud/models/prompt_entity_listing.rb +17 -17
  111. data/lib/purecloud/models/property_index_request.rb +1 -12
  112. data/lib/purecloud/models/quality_audit_page.rb +17 -17
  113. data/lib/purecloud/models/queue_entity_listing.rb +17 -17
  114. data/lib/purecloud/models/queues_entity_listing.rb +17 -17
  115. data/lib/purecloud/models/quote_listing.rb +17 -17
  116. data/lib/purecloud/models/relationship_listing.rb +17 -17
  117. data/lib/purecloud/models/report_meta_data_entity_listing.rb +17 -17
  118. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +17 -17
  119. data/lib/purecloud/models/report_schedule_entity_listing.rb +17 -17
  120. data/lib/purecloud/models/response_entity_list.rb +17 -17
  121. data/lib/purecloud/models/response_entity_listing.rb +17 -17
  122. data/lib/purecloud/models/response_set_entity_listing.rb +17 -17
  123. data/lib/purecloud/models/rule_set_entity_listing.rb +17 -17
  124. data/lib/purecloud/models/schedule_entity_listing.rb +17 -17
  125. data/lib/purecloud/models/schedule_group_entity_listing.rb +17 -17
  126. data/lib/purecloud/models/schema_category_entity_listing.rb +17 -17
  127. data/lib/purecloud/models/schema_reference_entity_listing.rb +17 -17
  128. data/lib/purecloud/models/script_entity_listing.rb +17 -17
  129. data/lib/purecloud/models/security_profile_entity_listing.rb +17 -17
  130. data/lib/purecloud/models/service_entity_listing.rb +17 -17
  131. data/lib/purecloud/models/share_entity_listing.rb +17 -17
  132. data/lib/purecloud/models/site.rb +1 -1
  133. data/lib/purecloud/models/site_entity_listing.rb +17 -17
  134. data/lib/purecloud/models/skill_entity_listing.rb +17 -17
  135. data/lib/purecloud/models/social_conversation_entity_listing.rb +17 -17
  136. data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +17 -17
  137. data/lib/purecloud/models/station_entity_listing.rb +17 -17
  138. data/lib/purecloud/models/system_prompt_asset_entity_listing.rb +17 -17
  139. data/lib/purecloud/models/system_prompt_entity_listing.rb +17 -17
  140. data/lib/purecloud/models/tag_value_entity_listing.rb +17 -17
  141. data/lib/purecloud/models/template_entity_listing.rb +17 -17
  142. data/lib/purecloud/models/text_table_transform_entity_listing.rb +17 -17
  143. data/lib/purecloud/models/time_zone_entity_listing.rb +17 -17
  144. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +17 -17
  145. data/lib/purecloud/models/user_action_category_entity_listing.rb +17 -17
  146. data/lib/purecloud/models/user_action_metadata_entity_listing.rb +11 -11
  147. data/lib/purecloud/models/user_entity_listing.rb +17 -17
  148. data/lib/purecloud/models/user_queue_entity_listing.rb +17 -17
  149. data/lib/purecloud/models/user_recording_entity_listing.rb +17 -17
  150. data/lib/purecloud/models/user_skill_entity_listing.rb +17 -17
  151. data/lib/purecloud/models/users_entity_listing.rb +17 -17
  152. data/lib/purecloud/models/video_conversation_entity_listing.rb +17 -17
  153. data/lib/purecloud/models/voice_rate_international_entity_listing.rb +17 -17
  154. data/lib/purecloud/models/voice_xml_operation_entity_listing.rb +17 -17
  155. data/lib/purecloud/models/voicemail_message_entity_listing.rb +17 -17
  156. data/lib/purecloud/models/workspace_entity_listing.rb +17 -17
  157. data/lib/purecloud/models/workspace_member_entity_listing.rb +17 -17
  158. data/lib/purecloud/models/wrapup_code_entity_listing.rb +17 -17
  159. data/lib/purecloud/version.rb +1 -1
  160. data/lib/purecloud.rb +83 -100
  161. data/newVersion.md +1 -1
  162. data/swagger.json +1 -1
  163. data/version.json +1 -1
  164. metadata +2 -19
  165. data/lib/purecloud/api/callbacks_api.rb +0 -483
  166. data/lib/purecloud/api/calls_api.rb +0 -1088
  167. data/lib/purecloud/api/chats_api.rb +0 -483
  168. data/lib/purecloud/api/compliance_api.rb +0 -129
  169. data/lib/purecloud/api/downloads_api.rb +0 -140
  170. data/lib/purecloud/api/emails_api.rb +0 -1013
  171. data/lib/purecloud/api/evaluations_api.rb +0 -73
  172. data/lib/purecloud/api/faxes_api.rb +0 -73
  173. data/lib/purecloud/api/integrations_api.rb +0 -150
  174. data/lib/purecloud/api/integrations_workforce_management_api.rb +0 -73
  175. data/lib/purecloud/api/licensing_api.rb +0 -428
  176. data/lib/purecloud/api/scripts_api.rb +0 -718
  177. data/lib/purecloud/api/socials_api.rb +0 -483
  178. data/lib/purecloud/api/videos_api.rb +0 -483
  179. data/lib/purecloud/models/body.rb +0 -136
  180. data/lib/purecloud/models/organization_address.rb +0 -194
  181. data/lib/purecloud/models/participant_request.rb +0 -242
@@ -1,483 +0,0 @@
1
- require "uri"
2
-
3
- module PureCloud
4
- class VideosApi
5
- attr_accessor :api_client
6
-
7
- def initialize(api_client = ApiClient.default)
8
- @api_client = api_client
9
- end
10
-
11
- # Get conversations
12
- #
13
- # @param conversation_id conversation ID
14
- # @param participant_id participant ID
15
- # @param [Hash] opts the optional parameters
16
- # @return [VideoConversationEntityListing]
17
- def get_videos(conversation_id, participant_id, opts = {})
18
- data, status_code, headers = get_videos_with_http_info(conversation_id, participant_id, opts)
19
- return data
20
- end
21
-
22
- # Get conversations
23
- #
24
- # @param conversation_id conversation ID
25
- # @param participant_id participant ID
26
- # @param [Hash] opts the optional parameters
27
- # @return [Array<(VideoConversationEntityListing, Fixnum, Hash)>] VideoConversationEntityListing data, response status code and response headers
28
- def get_videos_with_http_info(conversation_id, participant_id, opts = {})
29
- if @api_client.config.debugging
30
- @api_client.config.logger.debug "Calling API: VideosApi#get_videos ..."
31
- end
32
-
33
- # verify the required parameter 'conversation_id' is set
34
- fail "Missing the required parameter 'conversation_id' when calling get_videos" if conversation_id.nil?
35
-
36
- # verify the required parameter 'participant_id' is set
37
- fail "Missing the required parameter 'participant_id' when calling get_videos" if participant_id.nil?
38
-
39
- # resource path
40
- path = "/api/v2/videos".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
41
-
42
- # query parameters
43
- query_params = {}
44
-
45
- # header parameters
46
- header_params = {}
47
-
48
- # HTTP header 'Accept' (if needed)
49
- _header_accept = ['application/json']
50
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
51
-
52
- # HTTP header 'Content-Type'
53
- _header_content_type = ['application/json']
54
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
55
-
56
- # form parameters
57
- form_params = {}
58
-
59
- # http body (model)
60
- post_body = nil
61
-
62
-
63
- auth_names = ['PureCloud Auth']
64
- data, status_code, headers = @api_client.call_api(:GET, path,
65
- :header_params => header_params,
66
- :query_params => query_params,
67
- :form_params => form_params,
68
- :body => post_body,
69
- :auth_names => auth_names,
70
- :return_type => 'VideoConversationEntityListing')
71
- if @api_client.config.debugging
72
- @api_client.config.logger.debug "API called: VideosApi#get_videos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
- end
74
- return data, status_code, headers
75
- end
76
-
77
- # Update conversation participant
78
- #
79
- # @param conversation_id conversation ID
80
- # @param participant_id participant ID
81
- # @param [Hash] opts the optional parameters
82
- # @option opts [MediaParticipantRequest] :body
83
- # @return [nil]
84
- def patch_participants_participant_id(conversation_id, participant_id, opts = {})
85
- patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts)
86
- return nil
87
- end
88
-
89
- # Update conversation participant
90
- #
91
- # @param conversation_id conversation ID
92
- # @param participant_id participant ID
93
- # @param [Hash] opts the optional parameters
94
- # @option opts [MediaParticipantRequest] :body
95
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
96
- def patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {})
97
- if @api_client.config.debugging
98
- @api_client.config.logger.debug "Calling API: VideosApi#patch_participants_participant_id ..."
99
- end
100
-
101
- # verify the required parameter 'conversation_id' is set
102
- fail "Missing the required parameter 'conversation_id' when calling patch_participants_participant_id" if conversation_id.nil?
103
-
104
- # verify the required parameter 'participant_id' is set
105
- fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id" if participant_id.nil?
106
-
107
- # resource path
108
- path = "/api/v2/videos/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
109
-
110
- # query parameters
111
- query_params = {}
112
-
113
- # header parameters
114
- header_params = {}
115
-
116
- # HTTP header 'Accept' (if needed)
117
- _header_accept = ['application/json']
118
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
119
-
120
- # HTTP header 'Content-Type'
121
- _header_content_type = ['application/json']
122
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
123
-
124
- # form parameters
125
- form_params = {}
126
-
127
- # http body (model)
128
- post_body = @api_client.object_to_http_body(opts[:'body'])
129
-
130
-
131
- auth_names = ['PureCloud Auth']
132
- data, status_code, headers = @api_client.call_api(:PATCH, path,
133
- :header_params => header_params,
134
- :query_params => query_params,
135
- :form_params => form_params,
136
- :body => post_body,
137
- :auth_names => auth_names)
138
- if @api_client.config.debugging
139
- @api_client.config.logger.debug "API called: VideosApi#patch_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
- end
141
- return data, status_code, headers
142
- end
143
-
144
- # Update the attributes on a conversation participant.
145
- #
146
- # @param conversation_id conversation ID
147
- # @param participant_id participant ID
148
- # @param [Hash] opts the optional parameters
149
- # @option opts [ParticipantAttributes] :body
150
- # @return [nil]
151
- def patch_participants_participant_id_attributes(conversation_id, participant_id, opts = {})
152
- patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts)
153
- return nil
154
- end
155
-
156
- # Update the attributes on a conversation participant.
157
- #
158
- # @param conversation_id conversation ID
159
- # @param participant_id participant ID
160
- # @param [Hash] opts the optional parameters
161
- # @option opts [ParticipantAttributes] :body
162
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
163
- def patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts = {})
164
- if @api_client.config.debugging
165
- @api_client.config.logger.debug "Calling API: VideosApi#patch_participants_participant_id_attributes ..."
166
- end
167
-
168
- # verify the required parameter 'conversation_id' is set
169
- fail "Missing the required parameter 'conversation_id' when calling patch_participants_participant_id_attributes" if conversation_id.nil?
170
-
171
- # verify the required parameter 'participant_id' is set
172
- fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id_attributes" if participant_id.nil?
173
-
174
- # resource path
175
- path = "/api/v2/videos/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
176
-
177
- # query parameters
178
- query_params = {}
179
-
180
- # header parameters
181
- header_params = {}
182
-
183
- # HTTP header 'Accept' (if needed)
184
- _header_accept = ['application/json']
185
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
186
-
187
- # HTTP header 'Content-Type'
188
- _header_content_type = ['application/json']
189
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
190
-
191
- # form parameters
192
- form_params = {}
193
-
194
- # http body (model)
195
- post_body = @api_client.object_to_http_body(opts[:'body'])
196
-
197
-
198
- auth_names = ['PureCloud Auth']
199
- data, status_code, headers = @api_client.call_api(:PATCH, path,
200
- :header_params => header_params,
201
- :query_params => query_params,
202
- :form_params => form_params,
203
- :body => post_body,
204
- :auth_names => auth_names)
205
- if @api_client.config.debugging
206
- @api_client.config.logger.debug "API called: VideosApi#patch_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
207
- end
208
- return data, status_code, headers
209
- end
210
-
211
- # Replace this participant with the specified user and/or address
212
- #
213
- # @param conversation_id conversation ID
214
- # @param participant_id participant ID
215
- # @param [Hash] opts the optional parameters
216
- # @option opts [TransferRequest] :body
217
- # @return [nil]
218
- def post_participants_participant_id_replace(conversation_id, participant_id, opts = {})
219
- post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts)
220
- return nil
221
- end
222
-
223
- # Replace this participant with the specified user and/or address
224
- #
225
- # @param conversation_id conversation ID
226
- # @param participant_id participant ID
227
- # @param [Hash] opts the optional parameters
228
- # @option opts [TransferRequest] :body
229
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
230
- def post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {})
231
- if @api_client.config.debugging
232
- @api_client.config.logger.debug "Calling API: VideosApi#post_participants_participant_id_replace ..."
233
- end
234
-
235
- # verify the required parameter 'conversation_id' is set
236
- fail "Missing the required parameter 'conversation_id' when calling post_participants_participant_id_replace" if conversation_id.nil?
237
-
238
- # verify the required parameter 'participant_id' is set
239
- fail "Missing the required parameter 'participant_id' when calling post_participants_participant_id_replace" if participant_id.nil?
240
-
241
- # resource path
242
- path = "/api/v2/videos/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
243
-
244
- # query parameters
245
- query_params = {}
246
-
247
- # header parameters
248
- header_params = {}
249
-
250
- # HTTP header 'Accept' (if needed)
251
- _header_accept = ['application/json']
252
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
253
-
254
- # HTTP header 'Content-Type'
255
- _header_content_type = ['application/json']
256
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
257
-
258
- # form parameters
259
- form_params = {}
260
-
261
- # http body (model)
262
- post_body = @api_client.object_to_http_body(opts[:'body'])
263
-
264
-
265
- auth_names = ['PureCloud Auth']
266
- data, status_code, headers = @api_client.call_api(:POST, path,
267
- :header_params => header_params,
268
- :query_params => query_params,
269
- :form_params => form_params,
270
- :body => post_body,
271
- :auth_names => auth_names)
272
- if @api_client.config.debugging
273
- @api_client.config.logger.debug "API called: VideosApi#post_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
274
- end
275
- return data, status_code, headers
276
- end
277
-
278
- # Get the wrap-up for this conversation participant.
279
- #
280
- # @param conversation_id conversation ID
281
- # @param participant_id participant ID
282
- # @param [Hash] opts the optional parameters
283
- # @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
284
- # @return [WrapupCode]
285
- def get_participants_participant_id_wrapup(conversation_id, participant_id, opts = {})
286
- data, status_code, headers = get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts)
287
- return data
288
- end
289
-
290
- # Get the wrap-up for this conversation participant.
291
- #
292
- # @param conversation_id conversation ID
293
- # @param participant_id participant ID
294
- # @param [Hash] opts the optional parameters
295
- # @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
296
- # @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
297
- def get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {})
298
- if @api_client.config.debugging
299
- @api_client.config.logger.debug "Calling API: VideosApi#get_participants_participant_id_wrapup ..."
300
- end
301
-
302
- # verify the required parameter 'conversation_id' is set
303
- fail "Missing the required parameter 'conversation_id' when calling get_participants_participant_id_wrapup" if conversation_id.nil?
304
-
305
- # verify the required parameter 'participant_id' is set
306
- fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapup" if participant_id.nil?
307
-
308
- # resource path
309
- path = "/api/v2/videos/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
310
-
311
- # query parameters
312
- query_params = {}
313
- query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional']
314
-
315
- # header parameters
316
- header_params = {}
317
-
318
- # HTTP header 'Accept' (if needed)
319
- _header_accept = ['application/json']
320
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
321
-
322
- # HTTP header 'Content-Type'
323
- _header_content_type = ['application/json']
324
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
325
-
326
- # form parameters
327
- form_params = {}
328
-
329
- # http body (model)
330
- post_body = nil
331
-
332
-
333
- auth_names = ['PureCloud Auth']
334
- data, status_code, headers = @api_client.call_api(:GET, path,
335
- :header_params => header_params,
336
- :query_params => query_params,
337
- :form_params => form_params,
338
- :body => post_body,
339
- :auth_names => auth_names,
340
- :return_type => 'WrapupCode')
341
- if @api_client.config.debugging
342
- @api_client.config.logger.debug "API called: VideosApi#get_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
343
- end
344
- return data, status_code, headers
345
- end
346
-
347
- # Get list of wrapup codes for this conversation participant
348
- #
349
- # @param conversation_id conversation ID
350
- # @param participant_id participant ID
351
- # @param [Hash] opts the optional parameters
352
- # @return [WrapupCode]
353
- def get_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {})
354
- data, status_code, headers = get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts)
355
- return data
356
- end
357
-
358
- # Get list of wrapup codes for this conversation participant
359
- #
360
- # @param conversation_id conversation ID
361
- # @param participant_id participant ID
362
- # @param [Hash] opts the optional parameters
363
- # @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
364
- def get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {})
365
- if @api_client.config.debugging
366
- @api_client.config.logger.debug "Calling API: VideosApi#get_participants_participant_id_wrapupcodes ..."
367
- end
368
-
369
- # verify the required parameter 'conversation_id' is set
370
- fail "Missing the required parameter 'conversation_id' when calling get_participants_participant_id_wrapupcodes" if conversation_id.nil?
371
-
372
- # verify the required parameter 'participant_id' is set
373
- fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapupcodes" if participant_id.nil?
374
-
375
- # resource path
376
- path = "/api/v2/videos/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
377
-
378
- # query parameters
379
- query_params = {}
380
-
381
- # header parameters
382
- header_params = {}
383
-
384
- # HTTP header 'Accept' (if needed)
385
- _header_accept = ['application/json']
386
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
387
-
388
- # HTTP header 'Content-Type'
389
- _header_content_type = ['application/json']
390
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
391
-
392
- # form parameters
393
- form_params = {}
394
-
395
- # http body (model)
396
- post_body = nil
397
-
398
-
399
- auth_names = ['PureCloud Auth']
400
- data, status_code, headers = @api_client.call_api(:GET, path,
401
- :header_params => header_params,
402
- :query_params => query_params,
403
- :form_params => form_params,
404
- :body => post_body,
405
- :auth_names => auth_names,
406
- :return_type => 'WrapupCode')
407
- if @api_client.config.debugging
408
- @api_client.config.logger.debug "API called: VideosApi#get_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
409
- end
410
- return data, status_code, headers
411
- end
412
-
413
- # Get video conversation
414
- #
415
- # @param conversation_id conversation ID
416
- # @param participant_id participant ID
417
- # @param [Hash] opts the optional parameters
418
- # @return [VideoConversation]
419
- def get_conversation_id(conversation_id, participant_id, opts = {})
420
- data, status_code, headers = get_conversation_id_with_http_info(conversation_id, participant_id, opts)
421
- return data
422
- end
423
-
424
- # Get video conversation
425
- #
426
- # @param conversation_id conversation ID
427
- # @param participant_id participant ID
428
- # @param [Hash] opts the optional parameters
429
- # @return [Array<(VideoConversation, Fixnum, Hash)>] VideoConversation data, response status code and response headers
430
- def get_conversation_id_with_http_info(conversation_id, participant_id, opts = {})
431
- if @api_client.config.debugging
432
- @api_client.config.logger.debug "Calling API: VideosApi#get_conversation_id ..."
433
- end
434
-
435
- # verify the required parameter 'conversation_id' is set
436
- fail "Missing the required parameter 'conversation_id' when calling get_conversation_id" if conversation_id.nil?
437
-
438
- # verify the required parameter 'participant_id' is set
439
- fail "Missing the required parameter 'participant_id' when calling get_conversation_id" if participant_id.nil?
440
-
441
- # resource path
442
- path = "/api/v2/videos/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
443
-
444
- # query parameters
445
- query_params = {}
446
-
447
- # header parameters
448
- header_params = {}
449
-
450
- # HTTP header 'Accept' (if needed)
451
- _header_accept = ['application/json']
452
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
453
-
454
- # HTTP header 'Content-Type'
455
- _header_content_type = ['application/json']
456
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
457
-
458
- # form parameters
459
- form_params = {}
460
-
461
- # http body (model)
462
- post_body = nil
463
-
464
-
465
- auth_names = ['PureCloud Auth']
466
- data, status_code, headers = @api_client.call_api(:GET, path,
467
- :header_params => header_params,
468
- :query_params => query_params,
469
- :form_params => form_params,
470
- :body => post_body,
471
- :auth_names => auth_names,
472
- :return_type => 'VideoConversation')
473
- if @api_client.config.debugging
474
- @api_client.config.logger.debug "API called: VideosApi#get_conversation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
475
- end
476
- return data, status_code, headers
477
- end
478
- end
479
- end
480
-
481
-
482
-
483
-
@@ -1,136 +0,0 @@
1
- require 'date'
2
-
3
- module PureCloud
4
- class Body
5
- # Attribute mapping from ruby-style variable name to JSON key.
6
- def self.attribute_map
7
- {
8
-
9
- }
10
- end
11
-
12
- # Attribute type mapping.
13
- def self.swagger_types
14
- {
15
-
16
- }
17
- end
18
-
19
- def initialize(attributes = {})
20
- return unless attributes.is_a?(Hash)
21
-
22
- # convert string to symbol for hash key
23
- attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
24
-
25
-
26
- end
27
-
28
- # Check equality by comparing each attribute.
29
- def ==(o)
30
- return true if self.equal?(o)
31
- self.class == o.class
32
- end
33
-
34
- # @see the `==` method
35
- def eql?(o)
36
- self == o
37
- end
38
-
39
- # Calculate hash code according to all attributes.
40
- def hash
41
- [].hash
42
- end
43
-
44
- # build the object from hash
45
- def build_from_hash(attributes)
46
- return nil unless attributes.is_a?(Hash)
47
- self.class.swagger_types.each_pair do |key, type|
48
- if type =~ /^Array<(.*)>/i
49
- if attributes[self.class.attribute_map[key]].is_a?(Array)
50
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
51
- else
52
- #TODO show warning in debug mode
53
- end
54
- elsif !attributes[self.class.attribute_map[key]].nil?
55
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
56
- else
57
- # data not found in attributes(hash), not an issue as the data can be optional
58
- end
59
- end
60
-
61
- self
62
- end
63
-
64
- def _deserialize(type, value)
65
- case type.to_sym
66
- when :DateTime
67
- DateTime.parse(value)
68
- when :Date
69
- Date.parse(value)
70
- when :String
71
- value.to_s
72
- when :Integer
73
- value.to_i
74
- when :Float
75
- value.to_f
76
- when :BOOLEAN
77
- if value =~ /^(true|t|yes|y|1)$/i
78
- true
79
- else
80
- false
81
- end
82
- when /\AArray<(?<inner_type>.+)>\z/
83
- inner_type = Regexp.last_match[:inner_type]
84
- value.map { |v| _deserialize(inner_type, v) }
85
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
86
- k_type = Regexp.last_match[:k_type]
87
- v_type = Regexp.last_match[:v_type]
88
- {}.tap do |hash|
89
- value.each do |k, v|
90
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
91
- end
92
- end
93
- else # model
94
- _model = Object.const_get("PureCloud").const_get(type).new
95
- _model.build_from_hash(value)
96
- end
97
- end
98
-
99
- def to_s
100
- to_hash.to_s
101
- end
102
-
103
- # to_body is an alias to to_body (backward compatibility))
104
- def to_body
105
- to_hash
106
- end
107
-
108
- # return the object in the form of hash
109
- def to_hash
110
- hash = {}
111
- self.class.attribute_map.each_pair do |attr, param|
112
- value = self.send(attr)
113
- next if value.nil?
114
- hash[param] = _to_hash(value)
115
- end
116
- hash
117
- end
118
-
119
- # Method to output non-array value in the form of hash
120
- # For object, use to_hash. Otherwise, just return the value
121
- def _to_hash(value)
122
- if value.is_a?(Array)
123
- value.compact.map{ |v| _to_hash(v) }
124
- elsif value.is_a?(Hash)
125
- {}.tap do |hash|
126
- value.each { |k, v| hash[k] = _to_hash(v) }
127
- end
128
- elsif value.respond_to? :to_hash
129
- value.to_hash
130
- else
131
- value
132
- end
133
- end
134
-
135
- end
136
- end