purecloudplatformclientv2 13.1.0 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (325) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/AgentActivityEntityListing.md +2 -2
  4. data/docs/ArchitectApi.md +966 -33
  5. data/docs/AttemptLimitsEntityListing.md +2 -2
  6. data/docs/AttributeEntityListing.md +2 -2
  7. data/docs/AuditQueryResponse.md +12 -0
  8. data/docs/AuthorizationApi.md +2 -0
  9. data/docs/CalibrationEntityListing.md +2 -2
  10. data/docs/Call.md +1 -0
  11. data/docs/CallBasic.md +1 -0
  12. data/docs/CallConversationEntityListing.md +2 -2
  13. data/docs/CallableTimeSetEntityListing.md +2 -2
  14. data/docs/CallbackConversationEntityListing.md +2 -2
  15. data/docs/CampaignEntityListing.md +2 -2
  16. data/docs/CampaignRuleEntityListing.md +2 -2
  17. data/docs/CampaignSequenceEntityListing.md +2 -2
  18. data/docs/CertificateAuthorityEntityListing.md +2 -2
  19. data/docs/ChatConversationEntityListing.md +2 -2
  20. data/docs/CobrowseConversationEntityListing.md +2 -2
  21. data/docs/CommandStatusEntityListing.md +2 -2
  22. data/docs/ConsumedResourcesEntityListing.md +2 -2
  23. data/docs/ConsumingResourcesEntityListing.md +2 -2
  24. data/docs/ContactListEntityListing.md +2 -2
  25. data/docs/ContactListFilterEntityListing.md +2 -2
  26. data/docs/ContactListing.md +2 -2
  27. data/docs/ConversationChat.md +1 -0
  28. data/docs/ConversationEntityListing.md +2 -2
  29. data/docs/ConversationsApi.md +71 -2
  30. data/docs/CreateCallbackOnConversationCommand.md +20 -0
  31. data/docs/DIDEntityListing.md +2 -2
  32. data/docs/DIDPoolEntityListing.md +2 -2
  33. data/docs/DependencyObjectEntityListing.md +2 -2
  34. data/docs/DependencyTypeEntityListing.md +2 -2
  35. data/docs/DialerEventEntityListing.md +2 -2
  36. data/docs/DncListEntityListing.md +2 -2
  37. data/docs/DocumentAuditEntityListing.md +2 -2
  38. data/docs/DocumentEntityListing.md +2 -2
  39. data/docs/DocumentationSearchRequest.md +1 -0
  40. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +2 -2
  41. data/docs/DomainEntityListing.md +2 -2
  42. data/docs/DomainEntityListingEvaluationForm.md +2 -2
  43. data/docs/DomainEntityListingQueryResult.md +2 -2
  44. data/docs/EdgeEntityListing.md +2 -2
  45. data/docs/EdgeGroupEntityListing.md +2 -2
  46. data/docs/EdgeLineEntityListing.md +2 -2
  47. data/docs/Email.md +2 -0
  48. data/docs/EmailConversationEntityListing.md +2 -2
  49. data/docs/EmailMessageListing.md +2 -2
  50. data/docs/EncryptionKeyEntityListing.md +2 -2
  51. data/docs/EndpointEntityListing.md +2 -2
  52. data/docs/EvaluationEntityListing.md +2 -2
  53. data/docs/EvaluationFormEntityListing.md +2 -2
  54. data/docs/EvaluatorActivityEntityListing.md +2 -2
  55. data/docs/ExtensionEntityListing.md +2 -2
  56. data/docs/ExtensionPoolEntityListing.md +2 -2
  57. data/docs/ExternalContactsApi.md +2 -2
  58. data/docs/ExternalOrganizationListing.md +2 -2
  59. data/docs/Facet.md +14 -0
  60. data/docs/FaxDocumentEntityListing.md +2 -2
  61. data/docs/Filter.md +16 -0
  62. data/docs/FlowEntityListing.md +2 -2
  63. data/docs/FlowVersionEntityListing.md +2 -2
  64. data/docs/GreetingListing.md +2 -2
  65. data/docs/GroupEntityListing.md +2 -2
  66. data/docs/GroupSearchRequest.md +1 -0
  67. data/docs/HistoryListing.md +10 -5
  68. data/docs/IVR.md +28 -0
  69. data/docs/IVREntityListing.md +22 -0
  70. data/docs/InboundDomainEntityListing.md +2 -2
  71. data/docs/InboundRouteEntityListing.md +2 -2
  72. data/docs/InteractionStatsAlertContainer.md +2 -2
  73. data/docs/InteractionStatsRuleContainer.md +2 -2
  74. data/docs/KeywordSetEntityListing.md +2 -2
  75. data/docs/LanguageEntityListing.md +2 -2
  76. data/docs/LibraryEntityListing.md +2 -2
  77. data/docs/LineBaseEntityListing.md +2 -2
  78. data/docs/LineEntityListing.md +2 -2
  79. data/docs/LocationEntityListing.md +2 -2
  80. data/docs/LocationSearchRequest.md +1 -0
  81. data/docs/LogicalInterfaceEntityListing.md +2 -2
  82. data/docs/NoteListing.md +2 -2
  83. data/docs/OAuthClientEntityListing.md +2 -2
  84. data/docs/OAuthProviderEntityListing.md +2 -2
  85. data/docs/OrganizationAuthorizationApi.md +1458 -0
  86. data/docs/OrganizationPresenceEntityListing.md +2 -2
  87. data/docs/OrganizationRoleEntityListing.md +2 -2
  88. data/docs/OrphanRecordingListing.md +2 -2
  89. data/docs/OutboundRouteBaseEntityListing.md +2 -2
  90. data/docs/OutboundRouteEntityListing.md +2 -2
  91. data/docs/Participant.md +1 -0
  92. data/docs/ParticipantBasic.md +1 -0
  93. data/docs/PermissionCollectionEntityListing.md +2 -2
  94. data/docs/PhoneBaseEntityListing.md +2 -2
  95. data/docs/PhoneEntityListing.md +2 -2
  96. data/docs/PhoneMetaBaseEntityListing.md +2 -2
  97. data/docs/PhysicalInterfaceEntityListing.md +2 -2
  98. data/docs/PolicyEntityListing.md +2 -2
  99. data/docs/PromptAssetEntityListing.md +2 -2
  100. data/docs/PromptEntityListing.md +2 -2
  101. data/docs/QualityAuditPage.md +2 -2
  102. data/docs/QueueEntityListing.md +2 -2
  103. data/docs/QueueMemberEntityListing.md +2 -2
  104. data/docs/RelationshipListing.md +2 -2
  105. data/docs/ReportMetaDataEntityListing.md +2 -2
  106. data/docs/ReportRunEntryEntityDomainListing.md +2 -2
  107. data/docs/ReportScheduleEntityListing.md +2 -2
  108. data/docs/ResponseEntityList.md +2 -2
  109. data/docs/ResponseEntityListing.md +2 -2
  110. data/docs/ResponseSetEntityListing.md +2 -2
  111. data/docs/RoutingApi.md +1 -1
  112. data/docs/RuleSetEntityListing.md +2 -2
  113. data/docs/Schedule.md +27 -0
  114. data/docs/ScheduleEntityListing.md +22 -0
  115. data/docs/ScheduleGroup.md +27 -0
  116. data/docs/ScheduleGroupEntityListing.md +22 -0
  117. data/docs/SchemaCategoryEntityListing.md +2 -2
  118. data/docs/SchemaReferenceEntityListing.md +2 -2
  119. data/docs/ScreenRecordingSession.md +1 -1
  120. data/docs/ScreenRecordingSessionListing.md +2 -2
  121. data/docs/ScriptEntityListing.md +2 -2
  122. data/docs/SearchRequest.md +1 -0
  123. data/docs/SearchSort.md +14 -0
  124. data/docs/SecurityProfileEntityListing.md +2 -2
  125. data/docs/SetUuiDataRequest.md +13 -0
  126. data/docs/ShareEntityListing.md +2 -2
  127. data/docs/SiteEntityListing.md +2 -2
  128. data/docs/SkillEntityListing.md +2 -2
  129. data/docs/SocialExpression.md +1 -0
  130. data/docs/StationEntityListing.md +2 -2
  131. data/docs/SystemPromptAssetEntityListing.md +2 -2
  132. data/docs/SystemPromptEntityListing.md +2 -2
  133. data/docs/TagValueEntityListing.md +2 -2
  134. data/docs/TimeZoneEntityListing.md +2 -2
  135. data/docs/TrunkBaseEntityListing.md +2 -2
  136. data/docs/TrunkEntityListing.md +2 -2
  137. data/docs/TrunkMetabaseEntityListing.md +2 -2
  138. data/docs/TrustCreate.md +15 -0
  139. data/docs/TrustEntityListing.md +22 -0
  140. data/docs/TrustRequest.md +18 -0
  141. data/docs/TrustRequestCreate.md +13 -0
  142. data/docs/TrustUser.md +36 -0
  143. data/docs/TrustUserCreate.md +14 -0
  144. data/docs/TrustUserDetails.md +14 -0
  145. data/docs/TrustUserEntityListing.md +22 -0
  146. data/docs/Trustee.md +18 -0
  147. data/docs/TrusteeAuditQueryRequest.md +19 -0
  148. data/docs/TrustorAuditQueryRequest.md +19 -0
  149. data/docs/TrustorEntityListing.md +22 -0
  150. data/docs/UserEntityListing.md +2 -2
  151. data/docs/UserMe.md +1 -0
  152. data/docs/UserQueueEntityListing.md +2 -2
  153. data/docs/UserRecordingEntityListing.md +2 -2
  154. data/docs/UserSearchRequest.md +1 -0
  155. data/docs/UserSkillEntityListing.md +2 -2
  156. data/docs/UsersApi.md +1 -1
  157. data/docs/VoicemailMessageEntityListing.md +2 -2
  158. data/docs/VoicemailSearchRequest.md +1 -0
  159. data/docs/WorkspaceEntityListing.md +2 -2
  160. data/docs/WorkspaceMemberEntityListing.md +2 -2
  161. data/docs/WrapupCodeEntityListing.md +2 -2
  162. data/lib/purecloudplatformclientv2.rb +25 -1
  163. data/lib/purecloudplatformclientv2/api/architect_api.rb +1216 -148
  164. data/lib/purecloudplatformclientv2/api/authorization_api.rb +9 -0
  165. data/lib/purecloudplatformclientv2/api/conversations_api.rb +97 -2
  166. data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +2 -2
  167. data/lib/purecloudplatformclientv2/api/organization_authorization_api.rb +1751 -0
  168. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  169. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +25 -25
  170. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +25 -25
  171. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +25 -25
  172. data/lib/purecloudplatformclientv2/models/audit_query_response.rb +176 -0
  173. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +25 -25
  174. data/lib/purecloudplatformclientv2/models/call.rb +30 -4
  175. data/lib/purecloudplatformclientv2/models/call_basic.rb +30 -4
  176. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +25 -25
  177. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +25 -25
  178. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +25 -25
  179. data/lib/purecloudplatformclientv2/models/campaign.rb +15 -1
  180. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +25 -25
  181. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +25 -25
  182. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +25 -25
  183. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +25 -25
  184. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +25 -25
  185. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +25 -25
  186. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +25 -25
  187. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +25 -25
  188. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +25 -25
  189. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +25 -25
  190. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +25 -25
  191. data/lib/purecloudplatformclientv2/models/contact_listing.rb +25 -25
  192. data/lib/purecloudplatformclientv2/models/conversation_chat.rb +27 -1
  193. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +25 -25
  194. data/lib/purecloudplatformclientv2/models/create_callback_on_conversation_command.rb +393 -0
  195. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +25 -25
  196. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +25 -25
  197. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +25 -25
  198. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +25 -25
  199. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +25 -25
  200. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +25 -25
  201. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +25 -25
  202. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +25 -25
  203. data/lib/purecloudplatformclientv2/models/documentation_search_request.rb +29 -1
  204. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +25 -25
  205. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +25 -25
  206. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +25 -25
  207. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +25 -25
  208. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +25 -25
  209. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +25 -25
  210. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +25 -25
  211. data/lib/purecloudplatformclientv2/models/email.rb +56 -4
  212. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +25 -25
  213. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +25 -25
  214. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +25 -25
  215. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +25 -25
  216. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +25 -25
  217. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +25 -25
  218. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +25 -25
  219. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +25 -25
  220. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +25 -25
  221. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +25 -25
  222. data/lib/purecloudplatformclientv2/models/facet.rb +238 -0
  223. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +25 -25
  224. data/lib/purecloudplatformclientv2/models/filter.rb +302 -0
  225. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +25 -25
  226. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +25 -25
  227. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +25 -25
  228. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +25 -25
  229. data/lib/purecloudplatformclientv2/models/group_search_request.rb +29 -1
  230. data/lib/purecloudplatformclientv2/models/history_listing.rb +197 -38
  231. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +25 -25
  232. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +25 -25
  233. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +25 -25
  234. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +25 -25
  235. data/lib/purecloudplatformclientv2/models/ivr.rb +607 -0
  236. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +428 -0
  237. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +25 -25
  238. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +25 -25
  239. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +25 -25
  240. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +25 -25
  241. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +25 -25
  242. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +25 -25
  243. data/lib/purecloudplatformclientv2/models/location_search_request.rb +29 -1
  244. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +25 -25
  245. data/lib/purecloudplatformclientv2/models/note_listing.rb +25 -25
  246. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +25 -25
  247. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +25 -25
  248. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +25 -25
  249. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +25 -25
  250. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +25 -25
  251. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +25 -25
  252. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +25 -25
  253. data/lib/purecloudplatformclientv2/models/participant.rb +44 -4
  254. data/lib/purecloudplatformclientv2/models/participant_basic.rb +44 -4
  255. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +25 -25
  256. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +25 -25
  257. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +25 -25
  258. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +25 -25
  259. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +25 -25
  260. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +25 -25
  261. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +25 -25
  262. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +25 -25
  263. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +25 -25
  264. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +25 -25
  265. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +25 -25
  266. data/lib/purecloudplatformclientv2/models/reaction.rb +2 -2
  267. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +25 -25
  268. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +25 -25
  269. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +25 -25
  270. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +25 -25
  271. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +25 -25
  272. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +25 -25
  273. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +25 -25
  274. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +25 -25
  275. data/lib/purecloudplatformclientv2/models/schedule.rb +578 -0
  276. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +428 -0
  277. data/lib/purecloudplatformclientv2/models/schedule_group.rb +577 -0
  278. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +428 -0
  279. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +25 -25
  280. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +25 -25
  281. data/lib/purecloudplatformclientv2/models/screen_recording_session.rb +8 -8
  282. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +25 -25
  283. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +25 -25
  284. data/lib/purecloudplatformclientv2/models/search_request.rb +29 -1
  285. data/lib/purecloudplatformclientv2/models/search_sort.rb +242 -0
  286. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +25 -25
  287. data/lib/purecloudplatformclientv2/models/set_uui_data_request.rb +202 -0
  288. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +25 -25
  289. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +25 -25
  290. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +25 -25
  291. data/lib/purecloudplatformclientv2/models/social_expression.rb +27 -1
  292. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +25 -25
  293. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +25 -25
  294. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +25 -25
  295. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +25 -25
  296. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +25 -25
  297. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +25 -25
  298. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +25 -25
  299. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +25 -25
  300. data/lib/purecloudplatformclientv2/models/trust_create.rb +271 -0
  301. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +428 -0
  302. data/lib/purecloudplatformclientv2/models/trust_request.rb +344 -0
  303. data/lib/purecloudplatformclientv2/models/trust_request_create.rb +209 -0
  304. data/lib/purecloudplatformclientv2/models/trust_user.rb +822 -0
  305. data/lib/purecloudplatformclientv2/models/trust_user_create.rb +240 -0
  306. data/lib/purecloudplatformclientv2/models/trust_user_details.rb +228 -0
  307. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +428 -0
  308. data/lib/purecloudplatformclientv2/models/{history_entry.rb → trustee.rb} +66 -46
  309. data/lib/purecloudplatformclientv2/models/trustee_audit_query_request.rb +376 -0
  310. data/lib/purecloudplatformclientv2/models/trustor_audit_query_request.rb +374 -0
  311. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +428 -0
  312. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +25 -25
  313. data/lib/purecloudplatformclientv2/models/user_me.rb +29 -1
  314. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +25 -25
  315. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +25 -25
  316. data/lib/purecloudplatformclientv2/models/user_search_request.rb +29 -1
  317. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +25 -25
  318. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +25 -25
  319. data/lib/purecloudplatformclientv2/models/voicemail_search_request.rb +29 -1
  320. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +25 -25
  321. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +25 -25
  322. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +25 -25
  323. data/lib/purecloudplatformclientv2/version.rb +1 -1
  324. metadata +52 -4
  325. data/docs/HistoryEntry.md +0 -17
@@ -429,6 +429,7 @@ module PureCloud
429
429
  # @option opts [Array<Object>] :expand variable name requested by expand list
430
430
  # @option opts [String] :next_page next page token
431
431
  # @option opts [String] :previous_page Previous page token
432
+ # @option opts [String] :name
432
433
  # @option opts [Array<Object>] :permission
433
434
  # @option opts [Array<Object>] :default_role_id
434
435
  # @option opts [BOOLEAN] :user_count (default to true)
@@ -447,6 +448,7 @@ module PureCloud
447
448
  # @option opts [Array<Object>] :expand variable name requested by expand list
448
449
  # @option opts [String] :next_page next page token
449
450
  # @option opts [String] :previous_page Previous page token
451
+ # @option opts [String] :name
450
452
  # @option opts [Array<Object>] :permission
451
453
  # @option opts [Array<Object>] :default_role_id
452
454
  # @option opts [BOOLEAN] :user_count
@@ -503,6 +505,12 @@ module PureCloud
503
505
 
504
506
 
505
507
 
508
+
509
+
510
+
511
+
512
+
513
+
506
514
 
507
515
 
508
516
 
@@ -521,6 +529,7 @@ module PureCloud
521
529
  query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
522
530
  query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
523
531
  query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
532
+ query_params[:'name'] = opts[:'name'] if opts[:'name']
524
533
  query_params[:'permission'] = @api_client.build_collection_param(opts[:'permission'], :multi) if opts[:'permission']
525
534
  query_params[:'defaultRoleId'] = @api_client.build_collection_param(opts[:'default_role_id'], :multi) if opts[:'default_role_id']
526
535
  query_params[:'userCount'] = opts[:'user_count'] if opts[:'user_count']
@@ -4495,7 +4495,7 @@ module PureCloud
4495
4495
  # @param conversation_id conversation ID
4496
4496
  # @param participant_id participant ID
4497
4497
  # @param [Hash] opts the optional parameters
4498
- # @option opts [CreateCallbackCommand] :body
4498
+ # @option opts [CreateCallbackOnConversationCommand] :body
4499
4499
  # @return [nil]
4500
4500
  def post_conversation_participant_callbacks(conversation_id, participant_id, opts = {})
4501
4501
  post_conversation_participant_callbacks_with_http_info(conversation_id, participant_id, opts)
@@ -4507,7 +4507,7 @@ module PureCloud
4507
4507
  # @param conversation_id conversation ID
4508
4508
  # @param participant_id participant ID
4509
4509
  # @param [Hash] opts the optional parameters
4510
- # @option opts [CreateCallbackCommand] :body
4510
+ # @option opts [CreateCallbackOnConversationCommand] :body
4511
4511
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
4512
4512
  def post_conversation_participant_callbacks_with_http_info(conversation_id, participant_id, opts = {})
4513
4513
  if @api_client.config.debugging
@@ -5783,6 +5783,101 @@ module PureCloud
5783
5783
  return data, status_code, headers
5784
5784
  end
5785
5785
 
5786
+ # Set uuiData to be sent on future commands.
5787
+ #
5788
+ # @param conversation_id conversationId
5789
+ # @param participant_id participantId
5790
+ # @param communication_id communicationId
5791
+ # @param body UUIData Request
5792
+ # @param [Hash] opts the optional parameters
5793
+ # @return [Empty]
5794
+ def put_conversations_call_participant_communication_uuidata(conversation_id, participant_id, communication_id, body, opts = {})
5795
+ data, _status_code, _headers = put_conversations_call_participant_communication_uuidata_with_http_info(conversation_id, participant_id, communication_id, body, opts)
5796
+ return data
5797
+ end
5798
+
5799
+ # Set uuiData to be sent on future commands.
5800
+ #
5801
+ # @param conversation_id conversationId
5802
+ # @param participant_id participantId
5803
+ # @param communication_id communicationId
5804
+ # @param body UUIData Request
5805
+ # @param [Hash] opts the optional parameters
5806
+ # @return [Array<(Empty, Fixnum, Hash)>] Empty data, response status code and response headers
5807
+ def put_conversations_call_participant_communication_uuidata_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
5808
+ if @api_client.config.debugging
5809
+ @api_client.config.logger.debug "Calling API: ConversationsApi.put_conversations_call_participant_communication_uuidata ..."
5810
+ end
5811
+
5812
+
5813
+ # verify the required parameter 'conversation_id' is set
5814
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.put_conversations_call_participant_communication_uuidata" if conversation_id.nil?
5815
+
5816
+
5817
+
5818
+
5819
+
5820
+
5821
+ # verify the required parameter 'participant_id' is set
5822
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.put_conversations_call_participant_communication_uuidata" if participant_id.nil?
5823
+
5824
+
5825
+
5826
+
5827
+
5828
+
5829
+ # verify the required parameter 'communication_id' is set
5830
+ fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.put_conversations_call_participant_communication_uuidata" if communication_id.nil?
5831
+
5832
+
5833
+
5834
+
5835
+
5836
+
5837
+ # verify the required parameter 'body' is set
5838
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.put_conversations_call_participant_communication_uuidata" if body.nil?
5839
+
5840
+
5841
+
5842
+
5843
+
5844
+ # resource path
5845
+ local_var_path = "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/uuidata".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
5846
+
5847
+ # query parameters
5848
+ query_params = {}
5849
+
5850
+ # header parameters
5851
+ header_params = {}
5852
+
5853
+ # HTTP header 'Accept' (if needed)
5854
+ local_header_accept = ['application/json']
5855
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
5856
+
5857
+ # HTTP header 'Content-Type'
5858
+ local_header_content_type = ['application/json']
5859
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
5860
+
5861
+ # form parameters
5862
+ form_params = {}
5863
+
5864
+ # http body (model)
5865
+ post_body = @api_client.object_to_http_body(body)
5866
+
5867
+ auth_names = ['PureCloud Auth']
5868
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
5869
+ :header_params => header_params,
5870
+ :query_params => query_params,
5871
+ :form_params => form_params,
5872
+ :body => post_body,
5873
+ :auth_names => auth_names,
5874
+ :return_type => 'Empty')
5875
+ if @api_client.config.debugging
5876
+ @api_client.config.logger.debug "API called: ConversationsApi#put_conversations_call_participant_communication_uuidata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5877
+ end
5878
+ return data, status_code, headers
5879
+ end
5880
+
5786
5881
  # Update conversation draft reply
5787
5882
  #
5788
5883
  # @param conversation_id conversationId
@@ -882,7 +882,7 @@ module PureCloud
882
882
  # @option opts [Integer] :page_number Page number (default to 1)
883
883
  # @option opts [String] :q User supplied search keywords (no special syntax is currently supported)
884
884
  # @option opts [String] :sort_order Sort order
885
- # @option opts [Array<String>] :expand which fields, if any, to expand (externalOrganization)
885
+ # @option opts [Array<String>] :expand which fields, if any, to expand
886
886
  # @return [ContactListing]
887
887
  def get_externalcontacts_organization_contacts(external_organization_id, opts = {})
888
888
  data, _status_code, _headers = get_externalcontacts_organization_contacts_with_http_info(external_organization_id, opts)
@@ -897,7 +897,7 @@ module PureCloud
897
897
  # @option opts [Integer] :page_number Page number
898
898
  # @option opts [String] :q User supplied search keywords (no special syntax is currently supported)
899
899
  # @option opts [String] :sort_order Sort order
900
- # @option opts [Array<String>] :expand which fields, if any, to expand (externalOrganization)
900
+ # @option opts [Array<String>] :expand which fields, if any, to expand
901
901
  # @return [Array<(ContactListing, Fixnum, Hash)>] ContactListing data, response status code and response headers
902
902
  def get_externalcontacts_organization_contacts_with_http_info(external_organization_id, opts = {})
903
903
  if @api_client.config.debugging
@@ -0,0 +1,1751 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@genesys.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require "uri"
18
+
19
+ module PureCloud
20
+ class OrganizationAuthorizationApi
21
+ attr_accessor :api_client
22
+
23
+ def initialize(api_client = ApiClient.default)
24
+ @api_client = api_client
25
+ end
26
+
27
+ # Delete Org Trust
28
+ #
29
+ # @param trustee_org_id Trustee Organization Id
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [nil]
32
+ def delete_orgauthorization_trustee(trustee_org_id, opts = {})
33
+ delete_orgauthorization_trustee_with_http_info(trustee_org_id, opts)
34
+ return nil
35
+ end
36
+
37
+ # Delete Org Trust
38
+ #
39
+ # @param trustee_org_id Trustee Organization Id
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
42
+ def delete_orgauthorization_trustee_with_http_info(trustee_org_id, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.delete_orgauthorization_trustee ..."
45
+ end
46
+
47
+
48
+ # verify the required parameter 'trustee_org_id' is set
49
+ fail ArgumentError, "Missing the required parameter 'trustee_org_id' when calling OrganizationAuthorizationApi.delete_orgauthorization_trustee" if trustee_org_id.nil?
50
+
51
+
52
+
53
+
54
+
55
+ # resource path
56
+ local_var_path = "/api/v2/orgauthorization/trustees/{trusteeOrgId}".sub('{format}','json').sub('{' + 'trusteeOrgId' + '}', trustee_org_id.to_s)
57
+
58
+ # query parameters
59
+ query_params = {}
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # HTTP header 'Accept' (if needed)
65
+ local_header_accept = ['application/json']
66
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
+
68
+ # HTTP header 'Content-Type'
69
+ local_header_content_type = ['application/json']
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+
78
+ auth_names = ['PureCloud Auth']
79
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names)
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#delete_orgauthorization_trustee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+
91
+ # Delete Trustee User
92
+ #
93
+ # @param trustee_org_id Trustee Organization Id
94
+ # @param trustee_user_id Trustee User Id
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [nil]
97
+ def delete_orgauthorization_trustee_user(trustee_org_id, trustee_user_id, opts = {})
98
+ delete_orgauthorization_trustee_user_with_http_info(trustee_org_id, trustee_user_id, opts)
99
+ return nil
100
+ end
101
+
102
+ # Delete Trustee User
103
+ #
104
+ # @param trustee_org_id Trustee Organization Id
105
+ # @param trustee_user_id Trustee User Id
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
108
+ def delete_orgauthorization_trustee_user_with_http_info(trustee_org_id, trustee_user_id, opts = {})
109
+ if @api_client.config.debugging
110
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.delete_orgauthorization_trustee_user ..."
111
+ end
112
+
113
+
114
+ # verify the required parameter 'trustee_org_id' is set
115
+ fail ArgumentError, "Missing the required parameter 'trustee_org_id' when calling OrganizationAuthorizationApi.delete_orgauthorization_trustee_user" if trustee_org_id.nil?
116
+
117
+
118
+
119
+
120
+
121
+
122
+ # verify the required parameter 'trustee_user_id' is set
123
+ fail ArgumentError, "Missing the required parameter 'trustee_user_id' when calling OrganizationAuthorizationApi.delete_orgauthorization_trustee_user" if trustee_user_id.nil?
124
+
125
+
126
+
127
+
128
+
129
+ # resource path
130
+ local_var_path = "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}".sub('{format}','json').sub('{' + 'trusteeOrgId' + '}', trustee_org_id.to_s).sub('{' + 'trusteeUserId' + '}', trustee_user_id.to_s)
131
+
132
+ # query parameters
133
+ query_params = {}
134
+
135
+ # header parameters
136
+ header_params = {}
137
+
138
+ # HTTP header 'Accept' (if needed)
139
+ local_header_accept = ['application/json']
140
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
141
+
142
+ # HTTP header 'Content-Type'
143
+ local_header_content_type = ['application/json']
144
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
145
+
146
+ # form parameters
147
+ form_params = {}
148
+
149
+ # http body (model)
150
+ post_body = nil
151
+
152
+ auth_names = ['PureCloud Auth']
153
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
154
+ :header_params => header_params,
155
+ :query_params => query_params,
156
+ :form_params => form_params,
157
+ :body => post_body,
158
+ :auth_names => auth_names)
159
+ if @api_client.config.debugging
160
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#delete_orgauthorization_trustee_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
161
+ end
162
+ return data, status_code, headers
163
+ end
164
+
165
+ # Delete Trustee User Roles
166
+ #
167
+ # @param trustee_org_id Trustee Organization Id
168
+ # @param trustee_user_id Trustee User Id
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [nil]
171
+ def delete_orgauthorization_trustee_user_roles(trustee_org_id, trustee_user_id, opts = {})
172
+ delete_orgauthorization_trustee_user_roles_with_http_info(trustee_org_id, trustee_user_id, opts)
173
+ return nil
174
+ end
175
+
176
+ # Delete Trustee User Roles
177
+ #
178
+ # @param trustee_org_id Trustee Organization Id
179
+ # @param trustee_user_id Trustee User Id
180
+ # @param [Hash] opts the optional parameters
181
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
182
+ def delete_orgauthorization_trustee_user_roles_with_http_info(trustee_org_id, trustee_user_id, opts = {})
183
+ if @api_client.config.debugging
184
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.delete_orgauthorization_trustee_user_roles ..."
185
+ end
186
+
187
+
188
+ # verify the required parameter 'trustee_org_id' is set
189
+ fail ArgumentError, "Missing the required parameter 'trustee_org_id' when calling OrganizationAuthorizationApi.delete_orgauthorization_trustee_user_roles" if trustee_org_id.nil?
190
+
191
+
192
+
193
+
194
+
195
+
196
+ # verify the required parameter 'trustee_user_id' is set
197
+ fail ArgumentError, "Missing the required parameter 'trustee_user_id' when calling OrganizationAuthorizationApi.delete_orgauthorization_trustee_user_roles" if trustee_user_id.nil?
198
+
199
+
200
+
201
+
202
+
203
+ # resource path
204
+ local_var_path = "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles".sub('{format}','json').sub('{' + 'trusteeOrgId' + '}', trustee_org_id.to_s).sub('{' + 'trusteeUserId' + '}', trustee_user_id.to_s)
205
+
206
+ # query parameters
207
+ query_params = {}
208
+
209
+ # header parameters
210
+ header_params = {}
211
+
212
+ # HTTP header 'Accept' (if needed)
213
+ local_header_accept = ['application/json']
214
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
215
+
216
+ # HTTP header 'Content-Type'
217
+ local_header_content_type = ['application/json']
218
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
219
+
220
+ # form parameters
221
+ form_params = {}
222
+
223
+ # http body (model)
224
+ post_body = nil
225
+
226
+ auth_names = ['PureCloud Auth']
227
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
228
+ :header_params => header_params,
229
+ :query_params => query_params,
230
+ :form_params => form_params,
231
+ :body => post_body,
232
+ :auth_names => auth_names)
233
+ if @api_client.config.debugging
234
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#delete_orgauthorization_trustee_user_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
235
+ end
236
+ return data, status_code, headers
237
+ end
238
+
239
+ # Delete Org Trust
240
+ #
241
+ # @param trustor_org_id Trustor Organization Id
242
+ # @param [Hash] opts the optional parameters
243
+ # @return [nil]
244
+ def delete_orgauthorization_trustor(trustor_org_id, opts = {})
245
+ delete_orgauthorization_trustor_with_http_info(trustor_org_id, opts)
246
+ return nil
247
+ end
248
+
249
+ # Delete Org Trust
250
+ #
251
+ # @param trustor_org_id Trustor Organization Id
252
+ # @param [Hash] opts the optional parameters
253
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
254
+ def delete_orgauthorization_trustor_with_http_info(trustor_org_id, opts = {})
255
+ if @api_client.config.debugging
256
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.delete_orgauthorization_trustor ..."
257
+ end
258
+
259
+
260
+ # verify the required parameter 'trustor_org_id' is set
261
+ fail ArgumentError, "Missing the required parameter 'trustor_org_id' when calling OrganizationAuthorizationApi.delete_orgauthorization_trustor" if trustor_org_id.nil?
262
+
263
+
264
+
265
+
266
+
267
+ # resource path
268
+ local_var_path = "/api/v2/orgauthorization/trustors/{trustorOrgId}".sub('{format}','json').sub('{' + 'trustorOrgId' + '}', trustor_org_id.to_s)
269
+
270
+ # query parameters
271
+ query_params = {}
272
+
273
+ # header parameters
274
+ header_params = {}
275
+
276
+ # HTTP header 'Accept' (if needed)
277
+ local_header_accept = ['application/json']
278
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
279
+
280
+ # HTTP header 'Content-Type'
281
+ local_header_content_type = ['application/json']
282
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
283
+
284
+ # form parameters
285
+ form_params = {}
286
+
287
+ # http body (model)
288
+ post_body = nil
289
+
290
+ auth_names = ['PureCloud Auth']
291
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
292
+ :header_params => header_params,
293
+ :query_params => query_params,
294
+ :form_params => form_params,
295
+ :body => post_body,
296
+ :auth_names => auth_names)
297
+ if @api_client.config.debugging
298
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#delete_orgauthorization_trustor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
299
+ end
300
+ return data, status_code, headers
301
+ end
302
+
303
+ # Delete Trustee User
304
+ #
305
+ # @param trustor_org_id Trustor Organization Id
306
+ # @param trustee_user_id Trustee User Id
307
+ # @param [Hash] opts the optional parameters
308
+ # @return [nil]
309
+ def delete_orgauthorization_trustor_user(trustor_org_id, trustee_user_id, opts = {})
310
+ delete_orgauthorization_trustor_user_with_http_info(trustor_org_id, trustee_user_id, opts)
311
+ return nil
312
+ end
313
+
314
+ # Delete Trustee User
315
+ #
316
+ # @param trustor_org_id Trustor Organization Id
317
+ # @param trustee_user_id Trustee User Id
318
+ # @param [Hash] opts the optional parameters
319
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
320
+ def delete_orgauthorization_trustor_user_with_http_info(trustor_org_id, trustee_user_id, opts = {})
321
+ if @api_client.config.debugging
322
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.delete_orgauthorization_trustor_user ..."
323
+ end
324
+
325
+
326
+ # verify the required parameter 'trustor_org_id' is set
327
+ fail ArgumentError, "Missing the required parameter 'trustor_org_id' when calling OrganizationAuthorizationApi.delete_orgauthorization_trustor_user" if trustor_org_id.nil?
328
+
329
+
330
+
331
+
332
+
333
+
334
+ # verify the required parameter 'trustee_user_id' is set
335
+ fail ArgumentError, "Missing the required parameter 'trustee_user_id' when calling OrganizationAuthorizationApi.delete_orgauthorization_trustor_user" if trustee_user_id.nil?
336
+
337
+
338
+
339
+
340
+
341
+ # resource path
342
+ local_var_path = "/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}".sub('{format}','json').sub('{' + 'trustorOrgId' + '}', trustor_org_id.to_s).sub('{' + 'trusteeUserId' + '}', trustee_user_id.to_s)
343
+
344
+ # query parameters
345
+ query_params = {}
346
+
347
+ # header parameters
348
+ header_params = {}
349
+
350
+ # HTTP header 'Accept' (if needed)
351
+ local_header_accept = ['application/json']
352
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
353
+
354
+ # HTTP header 'Content-Type'
355
+ local_header_content_type = ['application/json']
356
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
357
+
358
+ # form parameters
359
+ form_params = {}
360
+
361
+ # http body (model)
362
+ post_body = nil
363
+
364
+ auth_names = ['PureCloud Auth']
365
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
366
+ :header_params => header_params,
367
+ :query_params => query_params,
368
+ :form_params => form_params,
369
+ :body => post_body,
370
+ :auth_names => auth_names)
371
+ if @api_client.config.debugging
372
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#delete_orgauthorization_trustor_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
373
+ end
374
+ return data, status_code, headers
375
+ end
376
+
377
+ # Get Pairing Info
378
+ #
379
+ # @param pairing_id Pairing Id
380
+ # @param [Hash] opts the optional parameters
381
+ # @return [TrustRequest]
382
+ def get_orgauthorization_pairing(pairing_id, opts = {})
383
+ data, _status_code, _headers = get_orgauthorization_pairing_with_http_info(pairing_id, opts)
384
+ return data
385
+ end
386
+
387
+ # Get Pairing Info
388
+ #
389
+ # @param pairing_id Pairing Id
390
+ # @param [Hash] opts the optional parameters
391
+ # @return [Array<(TrustRequest, Fixnum, Hash)>] TrustRequest data, response status code and response headers
392
+ def get_orgauthorization_pairing_with_http_info(pairing_id, opts = {})
393
+ if @api_client.config.debugging
394
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.get_orgauthorization_pairing ..."
395
+ end
396
+
397
+
398
+ # verify the required parameter 'pairing_id' is set
399
+ fail ArgumentError, "Missing the required parameter 'pairing_id' when calling OrganizationAuthorizationApi.get_orgauthorization_pairing" if pairing_id.nil?
400
+
401
+
402
+
403
+
404
+
405
+ # resource path
406
+ local_var_path = "/api/v2/orgauthorization/pairings/{pairingId}".sub('{format}','json').sub('{' + 'pairingId' + '}', pairing_id.to_s)
407
+
408
+ # query parameters
409
+ query_params = {}
410
+
411
+ # header parameters
412
+ header_params = {}
413
+
414
+ # HTTP header 'Accept' (if needed)
415
+ local_header_accept = ['application/json']
416
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
417
+
418
+ # HTTP header 'Content-Type'
419
+ local_header_content_type = ['application/json']
420
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
421
+
422
+ # form parameters
423
+ form_params = {}
424
+
425
+ # http body (model)
426
+ post_body = nil
427
+
428
+ auth_names = ['PureCloud Auth']
429
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
430
+ :header_params => header_params,
431
+ :query_params => query_params,
432
+ :form_params => form_params,
433
+ :body => post_body,
434
+ :auth_names => auth_names,
435
+ :return_type => 'TrustRequest')
436
+ if @api_client.config.debugging
437
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#get_orgauthorization_pairing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
438
+ end
439
+ return data, status_code, headers
440
+ end
441
+
442
+ # Get Org Trust
443
+ #
444
+ # @param trustee_org_id Trustee Organization Id
445
+ # @param [Hash] opts the optional parameters
446
+ # @return [Trustee]
447
+ def get_orgauthorization_trustee(trustee_org_id, opts = {})
448
+ data, _status_code, _headers = get_orgauthorization_trustee_with_http_info(trustee_org_id, opts)
449
+ return data
450
+ end
451
+
452
+ # Get Org Trust
453
+ #
454
+ # @param trustee_org_id Trustee Organization Id
455
+ # @param [Hash] opts the optional parameters
456
+ # @return [Array<(Trustee, Fixnum, Hash)>] Trustee data, response status code and response headers
457
+ def get_orgauthorization_trustee_with_http_info(trustee_org_id, opts = {})
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.get_orgauthorization_trustee ..."
460
+ end
461
+
462
+
463
+ # verify the required parameter 'trustee_org_id' is set
464
+ fail ArgumentError, "Missing the required parameter 'trustee_org_id' when calling OrganizationAuthorizationApi.get_orgauthorization_trustee" if trustee_org_id.nil?
465
+
466
+
467
+
468
+
469
+
470
+ # resource path
471
+ local_var_path = "/api/v2/orgauthorization/trustees/{trusteeOrgId}".sub('{format}','json').sub('{' + 'trusteeOrgId' + '}', trustee_org_id.to_s)
472
+
473
+ # query parameters
474
+ query_params = {}
475
+
476
+ # header parameters
477
+ header_params = {}
478
+
479
+ # HTTP header 'Accept' (if needed)
480
+ local_header_accept = ['application/json']
481
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
482
+
483
+ # HTTP header 'Content-Type'
484
+ local_header_content_type = ['application/json']
485
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
486
+
487
+ # form parameters
488
+ form_params = {}
489
+
490
+ # http body (model)
491
+ post_body = nil
492
+
493
+ auth_names = ['PureCloud Auth']
494
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
495
+ :header_params => header_params,
496
+ :query_params => query_params,
497
+ :form_params => form_params,
498
+ :body => post_body,
499
+ :auth_names => auth_names,
500
+ :return_type => 'Trustee')
501
+ if @api_client.config.debugging
502
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#get_orgauthorization_trustee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
503
+ end
504
+ return data, status_code, headers
505
+ end
506
+
507
+ # Get Trustee User
508
+ #
509
+ # @param trustee_org_id Trustee Organization Id
510
+ # @param trustee_user_id Trustee User Id
511
+ # @param [Hash] opts the optional parameters
512
+ # @return [TrustUser]
513
+ def get_orgauthorization_trustee_user(trustee_org_id, trustee_user_id, opts = {})
514
+ data, _status_code, _headers = get_orgauthorization_trustee_user_with_http_info(trustee_org_id, trustee_user_id, opts)
515
+ return data
516
+ end
517
+
518
+ # Get Trustee User
519
+ #
520
+ # @param trustee_org_id Trustee Organization Id
521
+ # @param trustee_user_id Trustee User Id
522
+ # @param [Hash] opts the optional parameters
523
+ # @return [Array<(TrustUser, Fixnum, Hash)>] TrustUser data, response status code and response headers
524
+ def get_orgauthorization_trustee_user_with_http_info(trustee_org_id, trustee_user_id, opts = {})
525
+ if @api_client.config.debugging
526
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.get_orgauthorization_trustee_user ..."
527
+ end
528
+
529
+
530
+ # verify the required parameter 'trustee_org_id' is set
531
+ fail ArgumentError, "Missing the required parameter 'trustee_org_id' when calling OrganizationAuthorizationApi.get_orgauthorization_trustee_user" if trustee_org_id.nil?
532
+
533
+
534
+
535
+
536
+
537
+
538
+ # verify the required parameter 'trustee_user_id' is set
539
+ fail ArgumentError, "Missing the required parameter 'trustee_user_id' when calling OrganizationAuthorizationApi.get_orgauthorization_trustee_user" if trustee_user_id.nil?
540
+
541
+
542
+
543
+
544
+
545
+ # resource path
546
+ local_var_path = "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}".sub('{format}','json').sub('{' + 'trusteeOrgId' + '}', trustee_org_id.to_s).sub('{' + 'trusteeUserId' + '}', trustee_user_id.to_s)
547
+
548
+ # query parameters
549
+ query_params = {}
550
+
551
+ # header parameters
552
+ header_params = {}
553
+
554
+ # HTTP header 'Accept' (if needed)
555
+ local_header_accept = ['application/json']
556
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
557
+
558
+ # HTTP header 'Content-Type'
559
+ local_header_content_type = ['application/json']
560
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
561
+
562
+ # form parameters
563
+ form_params = {}
564
+
565
+ # http body (model)
566
+ post_body = nil
567
+
568
+ auth_names = ['PureCloud Auth']
569
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
570
+ :header_params => header_params,
571
+ :query_params => query_params,
572
+ :form_params => form_params,
573
+ :body => post_body,
574
+ :auth_names => auth_names,
575
+ :return_type => 'TrustUser')
576
+ if @api_client.config.debugging
577
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#get_orgauthorization_trustee_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
578
+ end
579
+ return data, status_code, headers
580
+ end
581
+
582
+ # Get Trustee User Roles
583
+ #
584
+ # @param trustee_org_id Trustee Organization Id
585
+ # @param trustee_user_id Trustee User Id
586
+ # @param [Hash] opts the optional parameters
587
+ # @return [UserAuthorization]
588
+ def get_orgauthorization_trustee_user_roles(trustee_org_id, trustee_user_id, opts = {})
589
+ data, _status_code, _headers = get_orgauthorization_trustee_user_roles_with_http_info(trustee_org_id, trustee_user_id, opts)
590
+ return data
591
+ end
592
+
593
+ # Get Trustee User Roles
594
+ #
595
+ # @param trustee_org_id Trustee Organization Id
596
+ # @param trustee_user_id Trustee User Id
597
+ # @param [Hash] opts the optional parameters
598
+ # @return [Array<(UserAuthorization, Fixnum, Hash)>] UserAuthorization data, response status code and response headers
599
+ def get_orgauthorization_trustee_user_roles_with_http_info(trustee_org_id, trustee_user_id, opts = {})
600
+ if @api_client.config.debugging
601
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.get_orgauthorization_trustee_user_roles ..."
602
+ end
603
+
604
+
605
+ # verify the required parameter 'trustee_org_id' is set
606
+ fail ArgumentError, "Missing the required parameter 'trustee_org_id' when calling OrganizationAuthorizationApi.get_orgauthorization_trustee_user_roles" if trustee_org_id.nil?
607
+
608
+
609
+
610
+
611
+
612
+
613
+ # verify the required parameter 'trustee_user_id' is set
614
+ fail ArgumentError, "Missing the required parameter 'trustee_user_id' when calling OrganizationAuthorizationApi.get_orgauthorization_trustee_user_roles" if trustee_user_id.nil?
615
+
616
+
617
+
618
+
619
+
620
+ # resource path
621
+ local_var_path = "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles".sub('{format}','json').sub('{' + 'trusteeOrgId' + '}', trustee_org_id.to_s).sub('{' + 'trusteeUserId' + '}', trustee_user_id.to_s)
622
+
623
+ # query parameters
624
+ query_params = {}
625
+
626
+ # header parameters
627
+ header_params = {}
628
+
629
+ # HTTP header 'Accept' (if needed)
630
+ local_header_accept = ['application/json']
631
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
632
+
633
+ # HTTP header 'Content-Type'
634
+ local_header_content_type = ['application/json']
635
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
636
+
637
+ # form parameters
638
+ form_params = {}
639
+
640
+ # http body (model)
641
+ post_body = nil
642
+
643
+ auth_names = ['PureCloud Auth']
644
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
645
+ :header_params => header_params,
646
+ :query_params => query_params,
647
+ :form_params => form_params,
648
+ :body => post_body,
649
+ :auth_names => auth_names,
650
+ :return_type => 'UserAuthorization')
651
+ if @api_client.config.debugging
652
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#get_orgauthorization_trustee_user_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
653
+ end
654
+ return data, status_code, headers
655
+ end
656
+
657
+ # The list of trustee users for this organization (i.e. users granted access to this organization).
658
+ #
659
+ # @param trustee_org_id Trustee Organization Id
660
+ # @param [Hash] opts the optional parameters
661
+ # @option opts [Integer] :page_size Page size (default to 25)
662
+ # @option opts [Integer] :page_number Page number (default to 1)
663
+ # @return [TrustUserEntityListing]
664
+ def get_orgauthorization_trustee_users(trustee_org_id, opts = {})
665
+ data, _status_code, _headers = get_orgauthorization_trustee_users_with_http_info(trustee_org_id, opts)
666
+ return data
667
+ end
668
+
669
+ # The list of trustee users for this organization (i.e. users granted access to this organization).
670
+ #
671
+ # @param trustee_org_id Trustee Organization Id
672
+ # @param [Hash] opts the optional parameters
673
+ # @option opts [Integer] :page_size Page size
674
+ # @option opts [Integer] :page_number Page number
675
+ # @return [Array<(TrustUserEntityListing, Fixnum, Hash)>] TrustUserEntityListing data, response status code and response headers
676
+ def get_orgauthorization_trustee_users_with_http_info(trustee_org_id, opts = {})
677
+ if @api_client.config.debugging
678
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.get_orgauthorization_trustee_users ..."
679
+ end
680
+
681
+
682
+ # verify the required parameter 'trustee_org_id' is set
683
+ fail ArgumentError, "Missing the required parameter 'trustee_org_id' when calling OrganizationAuthorizationApi.get_orgauthorization_trustee_users" if trustee_org_id.nil?
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+ # resource path
702
+ local_var_path = "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users".sub('{format}','json').sub('{' + 'trusteeOrgId' + '}', trustee_org_id.to_s)
703
+
704
+ # query parameters
705
+ query_params = {}
706
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
707
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
708
+
709
+ # header parameters
710
+ header_params = {}
711
+
712
+ # HTTP header 'Accept' (if needed)
713
+ local_header_accept = ['application/json']
714
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
715
+
716
+ # HTTP header 'Content-Type'
717
+ local_header_content_type = ['application/json']
718
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
719
+
720
+ # form parameters
721
+ form_params = {}
722
+
723
+ # http body (model)
724
+ post_body = nil
725
+
726
+ auth_names = ['PureCloud Auth']
727
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
728
+ :header_params => header_params,
729
+ :query_params => query_params,
730
+ :form_params => form_params,
731
+ :body => post_body,
732
+ :auth_names => auth_names,
733
+ :return_type => 'TrustUserEntityListing')
734
+ if @api_client.config.debugging
735
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#get_orgauthorization_trustee_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
736
+ end
737
+ return data, status_code, headers
738
+ end
739
+
740
+ # The list of trustees for this organization (i.e. organizations granted access to this organization).
741
+ #
742
+ # @param [Hash] opts the optional parameters
743
+ # @option opts [Integer] :page_size Page size (default to 25)
744
+ # @option opts [Integer] :page_number Page number (default to 1)
745
+ # @return [TrustEntityListing]
746
+ def get_orgauthorization_trustees(opts = {})
747
+ data, _status_code, _headers = get_orgauthorization_trustees_with_http_info(opts)
748
+ return data
749
+ end
750
+
751
+ # The list of trustees for this organization (i.e. organizations granted access to this organization).
752
+ #
753
+ # @param [Hash] opts the optional parameters
754
+ # @option opts [Integer] :page_size Page size
755
+ # @option opts [Integer] :page_number Page number
756
+ # @return [Array<(TrustEntityListing, Fixnum, Hash)>] TrustEntityListing data, response status code and response headers
757
+ def get_orgauthorization_trustees_with_http_info(opts = {})
758
+ if @api_client.config.debugging
759
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.get_orgauthorization_trustees ..."
760
+ end
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+ # resource path
775
+ local_var_path = "/api/v2/orgauthorization/trustees".sub('{format}','json')
776
+
777
+ # query parameters
778
+ query_params = {}
779
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
780
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
781
+
782
+ # header parameters
783
+ header_params = {}
784
+
785
+ # HTTP header 'Accept' (if needed)
786
+ local_header_accept = ['application/json']
787
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
788
+
789
+ # HTTP header 'Content-Type'
790
+ local_header_content_type = ['application/json']
791
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
792
+
793
+ # form parameters
794
+ form_params = {}
795
+
796
+ # http body (model)
797
+ post_body = nil
798
+
799
+ auth_names = ['PureCloud Auth']
800
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
801
+ :header_params => header_params,
802
+ :query_params => query_params,
803
+ :form_params => form_params,
804
+ :body => post_body,
805
+ :auth_names => auth_names,
806
+ :return_type => 'TrustEntityListing')
807
+ if @api_client.config.debugging
808
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#get_orgauthorization_trustees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
809
+ end
810
+ return data, status_code, headers
811
+ end
812
+
813
+ # Get Org Trust
814
+ #
815
+ # @param trustor_org_id Trustor Organization Id
816
+ # @param [Hash] opts the optional parameters
817
+ # @return [Trustor]
818
+ def get_orgauthorization_trustor(trustor_org_id, opts = {})
819
+ data, _status_code, _headers = get_orgauthorization_trustor_with_http_info(trustor_org_id, opts)
820
+ return data
821
+ end
822
+
823
+ # Get Org Trust
824
+ #
825
+ # @param trustor_org_id Trustor Organization Id
826
+ # @param [Hash] opts the optional parameters
827
+ # @return [Array<(Trustor, Fixnum, Hash)>] Trustor data, response status code and response headers
828
+ def get_orgauthorization_trustor_with_http_info(trustor_org_id, opts = {})
829
+ if @api_client.config.debugging
830
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.get_orgauthorization_trustor ..."
831
+ end
832
+
833
+
834
+ # verify the required parameter 'trustor_org_id' is set
835
+ fail ArgumentError, "Missing the required parameter 'trustor_org_id' when calling OrganizationAuthorizationApi.get_orgauthorization_trustor" if trustor_org_id.nil?
836
+
837
+
838
+
839
+
840
+
841
+ # resource path
842
+ local_var_path = "/api/v2/orgauthorization/trustors/{trustorOrgId}".sub('{format}','json').sub('{' + 'trustorOrgId' + '}', trustor_org_id.to_s)
843
+
844
+ # query parameters
845
+ query_params = {}
846
+
847
+ # header parameters
848
+ header_params = {}
849
+
850
+ # HTTP header 'Accept' (if needed)
851
+ local_header_accept = ['application/json']
852
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
853
+
854
+ # HTTP header 'Content-Type'
855
+ local_header_content_type = ['application/json']
856
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
857
+
858
+ # form parameters
859
+ form_params = {}
860
+
861
+ # http body (model)
862
+ post_body = nil
863
+
864
+ auth_names = ['PureCloud Auth']
865
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
866
+ :header_params => header_params,
867
+ :query_params => query_params,
868
+ :form_params => form_params,
869
+ :body => post_body,
870
+ :auth_names => auth_names,
871
+ :return_type => 'Trustor')
872
+ if @api_client.config.debugging
873
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#get_orgauthorization_trustor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
874
+ end
875
+ return data, status_code, headers
876
+ end
877
+
878
+ # Get Trustee User
879
+ #
880
+ # @param trustor_org_id Trustor Organization Id
881
+ # @param trustee_user_id Trustee User Id
882
+ # @param [Hash] opts the optional parameters
883
+ # @return [TrustUser]
884
+ def get_orgauthorization_trustor_user(trustor_org_id, trustee_user_id, opts = {})
885
+ data, _status_code, _headers = get_orgauthorization_trustor_user_with_http_info(trustor_org_id, trustee_user_id, opts)
886
+ return data
887
+ end
888
+
889
+ # Get Trustee User
890
+ #
891
+ # @param trustor_org_id Trustor Organization Id
892
+ # @param trustee_user_id Trustee User Id
893
+ # @param [Hash] opts the optional parameters
894
+ # @return [Array<(TrustUser, Fixnum, Hash)>] TrustUser data, response status code and response headers
895
+ def get_orgauthorization_trustor_user_with_http_info(trustor_org_id, trustee_user_id, opts = {})
896
+ if @api_client.config.debugging
897
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.get_orgauthorization_trustor_user ..."
898
+ end
899
+
900
+
901
+ # verify the required parameter 'trustor_org_id' is set
902
+ fail ArgumentError, "Missing the required parameter 'trustor_org_id' when calling OrganizationAuthorizationApi.get_orgauthorization_trustor_user" if trustor_org_id.nil?
903
+
904
+
905
+
906
+
907
+
908
+
909
+ # verify the required parameter 'trustee_user_id' is set
910
+ fail ArgumentError, "Missing the required parameter 'trustee_user_id' when calling OrganizationAuthorizationApi.get_orgauthorization_trustor_user" if trustee_user_id.nil?
911
+
912
+
913
+
914
+
915
+
916
+ # resource path
917
+ local_var_path = "/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}".sub('{format}','json').sub('{' + 'trustorOrgId' + '}', trustor_org_id.to_s).sub('{' + 'trusteeUserId' + '}', trustee_user_id.to_s)
918
+
919
+ # query parameters
920
+ query_params = {}
921
+
922
+ # header parameters
923
+ header_params = {}
924
+
925
+ # HTTP header 'Accept' (if needed)
926
+ local_header_accept = ['application/json']
927
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
928
+
929
+ # HTTP header 'Content-Type'
930
+ local_header_content_type = ['application/json']
931
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
932
+
933
+ # form parameters
934
+ form_params = {}
935
+
936
+ # http body (model)
937
+ post_body = nil
938
+
939
+ auth_names = ['PureCloud Auth']
940
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
941
+ :header_params => header_params,
942
+ :query_params => query_params,
943
+ :form_params => form_params,
944
+ :body => post_body,
945
+ :auth_names => auth_names,
946
+ :return_type => 'TrustUser')
947
+ if @api_client.config.debugging
948
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#get_orgauthorization_trustor_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
949
+ end
950
+ return data, status_code, headers
951
+ end
952
+
953
+ # The list of users in the trustor organization (i.e. users granted access).
954
+ #
955
+ # @param trustor_org_id Trustee Organization Id
956
+ # @param [Hash] opts the optional parameters
957
+ # @option opts [Integer] :page_size Page size (default to 25)
958
+ # @option opts [Integer] :page_number Page number (default to 1)
959
+ # @return [TrustUserEntityListing]
960
+ def get_orgauthorization_trustor_users(trustor_org_id, opts = {})
961
+ data, _status_code, _headers = get_orgauthorization_trustor_users_with_http_info(trustor_org_id, opts)
962
+ return data
963
+ end
964
+
965
+ # The list of users in the trustor organization (i.e. users granted access).
966
+ #
967
+ # @param trustor_org_id Trustee Organization Id
968
+ # @param [Hash] opts the optional parameters
969
+ # @option opts [Integer] :page_size Page size
970
+ # @option opts [Integer] :page_number Page number
971
+ # @return [Array<(TrustUserEntityListing, Fixnum, Hash)>] TrustUserEntityListing data, response status code and response headers
972
+ def get_orgauthorization_trustor_users_with_http_info(trustor_org_id, opts = {})
973
+ if @api_client.config.debugging
974
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.get_orgauthorization_trustor_users ..."
975
+ end
976
+
977
+
978
+ # verify the required parameter 'trustor_org_id' is set
979
+ fail ArgumentError, "Missing the required parameter 'trustor_org_id' when calling OrganizationAuthorizationApi.get_orgauthorization_trustor_users" if trustor_org_id.nil?
980
+
981
+
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+ # resource path
998
+ local_var_path = "/api/v2/orgauthorization/trustors/{trustorOrgId}/users".sub('{format}','json').sub('{' + 'trustorOrgId' + '}', trustor_org_id.to_s)
999
+
1000
+ # query parameters
1001
+ query_params = {}
1002
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1003
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1004
+
1005
+ # header parameters
1006
+ header_params = {}
1007
+
1008
+ # HTTP header 'Accept' (if needed)
1009
+ local_header_accept = ['application/json']
1010
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1011
+
1012
+ # HTTP header 'Content-Type'
1013
+ local_header_content_type = ['application/json']
1014
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1015
+
1016
+ # form parameters
1017
+ form_params = {}
1018
+
1019
+ # http body (model)
1020
+ post_body = nil
1021
+
1022
+ auth_names = ['PureCloud Auth']
1023
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1024
+ :header_params => header_params,
1025
+ :query_params => query_params,
1026
+ :form_params => form_params,
1027
+ :body => post_body,
1028
+ :auth_names => auth_names,
1029
+ :return_type => 'TrustUserEntityListing')
1030
+ if @api_client.config.debugging
1031
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#get_orgauthorization_trustor_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1032
+ end
1033
+ return data, status_code, headers
1034
+ end
1035
+
1036
+ # The list of organizations that have authorized/trusted your organization.
1037
+ #
1038
+ # @param [Hash] opts the optional parameters
1039
+ # @option opts [Integer] :page_size Page size (default to 25)
1040
+ # @option opts [Integer] :page_number Page number (default to 1)
1041
+ # @return [TrustorEntityListing]
1042
+ def get_orgauthorization_trustors(opts = {})
1043
+ data, _status_code, _headers = get_orgauthorization_trustors_with_http_info(opts)
1044
+ return data
1045
+ end
1046
+
1047
+ # The list of organizations that have authorized/trusted your organization.
1048
+ #
1049
+ # @param [Hash] opts the optional parameters
1050
+ # @option opts [Integer] :page_size Page size
1051
+ # @option opts [Integer] :page_number Page number
1052
+ # @return [Array<(TrustorEntityListing, Fixnum, Hash)>] TrustorEntityListing data, response status code and response headers
1053
+ def get_orgauthorization_trustors_with_http_info(opts = {})
1054
+ if @api_client.config.debugging
1055
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.get_orgauthorization_trustors ..."
1056
+ end
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+ # resource path
1071
+ local_var_path = "/api/v2/orgauthorization/trustors".sub('{format}','json')
1072
+
1073
+ # query parameters
1074
+ query_params = {}
1075
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1076
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1077
+
1078
+ # header parameters
1079
+ header_params = {}
1080
+
1081
+ # HTTP header 'Accept' (if needed)
1082
+ local_header_accept = ['application/json']
1083
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1084
+
1085
+ # HTTP header 'Content-Type'
1086
+ local_header_content_type = ['application/json']
1087
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1088
+
1089
+ # form parameters
1090
+ form_params = {}
1091
+
1092
+ # http body (model)
1093
+ post_body = nil
1094
+
1095
+ auth_names = ['PureCloud Auth']
1096
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1097
+ :header_params => header_params,
1098
+ :query_params => query_params,
1099
+ :form_params => form_params,
1100
+ :body => post_body,
1101
+ :auth_names => auth_names,
1102
+ :return_type => 'TrustorEntityListing')
1103
+ if @api_client.config.debugging
1104
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#get_orgauthorization_trustors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1105
+ end
1106
+ return data, status_code, headers
1107
+ end
1108
+
1109
+ # A pairing id is created by the trustee and given to the trustor to create a trust.
1110
+ #
1111
+ # @param body Pairing Info
1112
+ # @param [Hash] opts the optional parameters
1113
+ # @return [TrustRequest]
1114
+ def post_orgauthorization_pairings(body, opts = {})
1115
+ data, _status_code, _headers = post_orgauthorization_pairings_with_http_info(body, opts)
1116
+ return data
1117
+ end
1118
+
1119
+ # A pairing id is created by the trustee and given to the trustor to create a trust.
1120
+ #
1121
+ # @param body Pairing Info
1122
+ # @param [Hash] opts the optional parameters
1123
+ # @return [Array<(TrustRequest, Fixnum, Hash)>] TrustRequest data, response status code and response headers
1124
+ def post_orgauthorization_pairings_with_http_info(body, opts = {})
1125
+ if @api_client.config.debugging
1126
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.post_orgauthorization_pairings ..."
1127
+ end
1128
+
1129
+
1130
+ # verify the required parameter 'body' is set
1131
+ fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationAuthorizationApi.post_orgauthorization_pairings" if body.nil?
1132
+
1133
+
1134
+
1135
+
1136
+
1137
+ # resource path
1138
+ local_var_path = "/api/v2/orgauthorization/pairings".sub('{format}','json')
1139
+
1140
+ # query parameters
1141
+ query_params = {}
1142
+
1143
+ # header parameters
1144
+ header_params = {}
1145
+
1146
+ # HTTP header 'Accept' (if needed)
1147
+ local_header_accept = ['application/json']
1148
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1149
+
1150
+ # HTTP header 'Content-Type'
1151
+ local_header_content_type = ['application/json']
1152
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1153
+
1154
+ # form parameters
1155
+ form_params = {}
1156
+
1157
+ # http body (model)
1158
+ post_body = @api_client.object_to_http_body(body)
1159
+
1160
+ auth_names = ['PureCloud Auth']
1161
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1162
+ :header_params => header_params,
1163
+ :query_params => query_params,
1164
+ :form_params => form_params,
1165
+ :body => post_body,
1166
+ :auth_names => auth_names,
1167
+ :return_type => 'TrustRequest')
1168
+ if @api_client.config.debugging
1169
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#post_orgauthorization_pairings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1170
+ end
1171
+ return data, status_code, headers
1172
+ end
1173
+
1174
+ # Add a user to the trust.
1175
+ #
1176
+ # @param trustee_org_id Trustee Organization Id
1177
+ # @param body Trust
1178
+ # @param [Hash] opts the optional parameters
1179
+ # @return [TrustUser]
1180
+ def post_orgauthorization_trustee_users(trustee_org_id, body, opts = {})
1181
+ data, _status_code, _headers = post_orgauthorization_trustee_users_with_http_info(trustee_org_id, body, opts)
1182
+ return data
1183
+ end
1184
+
1185
+ # Add a user to the trust.
1186
+ #
1187
+ # @param trustee_org_id Trustee Organization Id
1188
+ # @param body Trust
1189
+ # @param [Hash] opts the optional parameters
1190
+ # @return [Array<(TrustUser, Fixnum, Hash)>] TrustUser data, response status code and response headers
1191
+ def post_orgauthorization_trustee_users_with_http_info(trustee_org_id, body, opts = {})
1192
+ if @api_client.config.debugging
1193
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.post_orgauthorization_trustee_users ..."
1194
+ end
1195
+
1196
+
1197
+ # verify the required parameter 'trustee_org_id' is set
1198
+ fail ArgumentError, "Missing the required parameter 'trustee_org_id' when calling OrganizationAuthorizationApi.post_orgauthorization_trustee_users" if trustee_org_id.nil?
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+ # verify the required parameter 'body' is set
1206
+ fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationAuthorizationApi.post_orgauthorization_trustee_users" if body.nil?
1207
+
1208
+
1209
+
1210
+
1211
+
1212
+ # resource path
1213
+ local_var_path = "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users".sub('{format}','json').sub('{' + 'trusteeOrgId' + '}', trustee_org_id.to_s)
1214
+
1215
+ # query parameters
1216
+ query_params = {}
1217
+
1218
+ # header parameters
1219
+ header_params = {}
1220
+
1221
+ # HTTP header 'Accept' (if needed)
1222
+ local_header_accept = ['application/json']
1223
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1224
+
1225
+ # HTTP header 'Content-Type'
1226
+ local_header_content_type = ['application/json']
1227
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1228
+
1229
+ # form parameters
1230
+ form_params = {}
1231
+
1232
+ # http body (model)
1233
+ post_body = @api_client.object_to_http_body(body)
1234
+
1235
+ auth_names = ['PureCloud Auth']
1236
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1237
+ :header_params => header_params,
1238
+ :query_params => query_params,
1239
+ :form_params => form_params,
1240
+ :body => post_body,
1241
+ :auth_names => auth_names,
1242
+ :return_type => 'TrustUser')
1243
+ if @api_client.config.debugging
1244
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#post_orgauthorization_trustee_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1245
+ end
1246
+ return data, status_code, headers
1247
+ end
1248
+
1249
+ # Create a new organization authorization trust. This is required to grant other organizations access to your organization.
1250
+ #
1251
+ # @param body Trust
1252
+ # @param [Hash] opts the optional parameters
1253
+ # @return [Trustee]
1254
+ def post_orgauthorization_trustees(body, opts = {})
1255
+ data, _status_code, _headers = post_orgauthorization_trustees_with_http_info(body, opts)
1256
+ return data
1257
+ end
1258
+
1259
+ # Create a new organization authorization trust. This is required to grant other organizations access to your organization.
1260
+ #
1261
+ # @param body Trust
1262
+ # @param [Hash] opts the optional parameters
1263
+ # @return [Array<(Trustee, Fixnum, Hash)>] Trustee data, response status code and response headers
1264
+ def post_orgauthorization_trustees_with_http_info(body, opts = {})
1265
+ if @api_client.config.debugging
1266
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.post_orgauthorization_trustees ..."
1267
+ end
1268
+
1269
+
1270
+ # verify the required parameter 'body' is set
1271
+ fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationAuthorizationApi.post_orgauthorization_trustees" if body.nil?
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+ # resource path
1278
+ local_var_path = "/api/v2/orgauthorization/trustees".sub('{format}','json')
1279
+
1280
+ # query parameters
1281
+ query_params = {}
1282
+
1283
+ # header parameters
1284
+ header_params = {}
1285
+
1286
+ # HTTP header 'Accept' (if needed)
1287
+ local_header_accept = ['application/json']
1288
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1289
+
1290
+ # HTTP header 'Content-Type'
1291
+ local_header_content_type = ['application/json']
1292
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1293
+
1294
+ # form parameters
1295
+ form_params = {}
1296
+
1297
+ # http body (model)
1298
+ post_body = @api_client.object_to_http_body(body)
1299
+
1300
+ auth_names = ['PureCloud Auth']
1301
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1302
+ :header_params => header_params,
1303
+ :query_params => query_params,
1304
+ :form_params => form_params,
1305
+ :body => post_body,
1306
+ :auth_names => auth_names,
1307
+ :return_type => 'Trustee')
1308
+ if @api_client.config.debugging
1309
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#post_orgauthorization_trustees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1310
+ end
1311
+ return data, status_code, headers
1312
+ end
1313
+
1314
+ # Get Org Trustee Audits
1315
+ #
1316
+ # @param body Values to scope the request.
1317
+ # @param [Hash] opts the optional parameters
1318
+ # @option opts [Integer] :page_size Page size (default to 25)
1319
+ # @option opts [Integer] :page_number Page number (default to 1)
1320
+ # @option opts [String] :sort_by Sort by (default to timestamp)
1321
+ # @option opts [String] :sort_order Sort order (default to descending)
1322
+ # @return [AuditQueryResponse]
1323
+ def post_orgauthorization_trustees_audits(body, opts = {})
1324
+ data, _status_code, _headers = post_orgauthorization_trustees_audits_with_http_info(body, opts)
1325
+ return data
1326
+ end
1327
+
1328
+ # Get Org Trustee Audits
1329
+ #
1330
+ # @param body Values to scope the request.
1331
+ # @param [Hash] opts the optional parameters
1332
+ # @option opts [Integer] :page_size Page size
1333
+ # @option opts [Integer] :page_number Page number
1334
+ # @option opts [String] :sort_by Sort by
1335
+ # @option opts [String] :sort_order Sort order
1336
+ # @return [Array<(AuditQueryResponse, Fixnum, Hash)>] AuditQueryResponse data, response status code and response headers
1337
+ def post_orgauthorization_trustees_audits_with_http_info(body, opts = {})
1338
+ if @api_client.config.debugging
1339
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.post_orgauthorization_trustees_audits ..."
1340
+ end
1341
+
1342
+
1343
+ # verify the required parameter 'body' is set
1344
+ fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationAuthorizationApi.post_orgauthorization_trustees_audits" if body.nil?
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+ # resource path
1375
+ local_var_path = "/api/v2/orgauthorization/trustees/audits".sub('{format}','json')
1376
+
1377
+ # query parameters
1378
+ query_params = {}
1379
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1380
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1381
+ query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
1382
+ query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
1383
+
1384
+ # header parameters
1385
+ header_params = {}
1386
+
1387
+ # HTTP header 'Accept' (if needed)
1388
+ local_header_accept = ['application/json']
1389
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1390
+
1391
+ # HTTP header 'Content-Type'
1392
+ local_header_content_type = ['application/json']
1393
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1394
+
1395
+ # form parameters
1396
+ form_params = {}
1397
+
1398
+ # http body (model)
1399
+ post_body = @api_client.object_to_http_body(body)
1400
+
1401
+ auth_names = ['PureCloud Auth']
1402
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1403
+ :header_params => header_params,
1404
+ :query_params => query_params,
1405
+ :form_params => form_params,
1406
+ :body => post_body,
1407
+ :auth_names => auth_names,
1408
+ :return_type => 'AuditQueryResponse')
1409
+ if @api_client.config.debugging
1410
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#post_orgauthorization_trustees_audits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1411
+ end
1412
+ return data, status_code, headers
1413
+ end
1414
+
1415
+ # Get Org Trustor Audits
1416
+ #
1417
+ # @param body Values to scope the request.
1418
+ # @param [Hash] opts the optional parameters
1419
+ # @option opts [Integer] :page_size Page size (default to 25)
1420
+ # @option opts [Integer] :page_number Page number (default to 1)
1421
+ # @option opts [String] :sort_by Sort by (default to timestamp)
1422
+ # @option opts [String] :sort_order Sort order (default to descending)
1423
+ # @return [AuditQueryResponse]
1424
+ def post_orgauthorization_trustor_audits(body, opts = {})
1425
+ data, _status_code, _headers = post_orgauthorization_trustor_audits_with_http_info(body, opts)
1426
+ return data
1427
+ end
1428
+
1429
+ # Get Org Trustor Audits
1430
+ #
1431
+ # @param body Values to scope the request.
1432
+ # @param [Hash] opts the optional parameters
1433
+ # @option opts [Integer] :page_size Page size
1434
+ # @option opts [Integer] :page_number Page number
1435
+ # @option opts [String] :sort_by Sort by
1436
+ # @option opts [String] :sort_order Sort order
1437
+ # @return [Array<(AuditQueryResponse, Fixnum, Hash)>] AuditQueryResponse data, response status code and response headers
1438
+ def post_orgauthorization_trustor_audits_with_http_info(body, opts = {})
1439
+ if @api_client.config.debugging
1440
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.post_orgauthorization_trustor_audits ..."
1441
+ end
1442
+
1443
+
1444
+ # verify the required parameter 'body' is set
1445
+ fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationAuthorizationApi.post_orgauthorization_trustor_audits" if body.nil?
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+ # resource path
1476
+ local_var_path = "/api/v2/orgauthorization/trustor/audits".sub('{format}','json')
1477
+
1478
+ # query parameters
1479
+ query_params = {}
1480
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
1481
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
1482
+ query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
1483
+ query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
1484
+
1485
+ # header parameters
1486
+ header_params = {}
1487
+
1488
+ # HTTP header 'Accept' (if needed)
1489
+ local_header_accept = ['application/json']
1490
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1491
+
1492
+ # HTTP header 'Content-Type'
1493
+ local_header_content_type = ['application/json']
1494
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1495
+
1496
+ # form parameters
1497
+ form_params = {}
1498
+
1499
+ # http body (model)
1500
+ post_body = @api_client.object_to_http_body(body)
1501
+
1502
+ auth_names = ['PureCloud Auth']
1503
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1504
+ :header_params => header_params,
1505
+ :query_params => query_params,
1506
+ :form_params => form_params,
1507
+ :body => post_body,
1508
+ :auth_names => auth_names,
1509
+ :return_type => 'AuditQueryResponse')
1510
+ if @api_client.config.debugging
1511
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#post_orgauthorization_trustor_audits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1512
+ end
1513
+ return data, status_code, headers
1514
+ end
1515
+
1516
+ # Update Org Trust
1517
+ #
1518
+ # @param trustee_org_id Trustee Organization Id
1519
+ # @param body Client
1520
+ # @param [Hash] opts the optional parameters
1521
+ # @return [Trustee]
1522
+ def put_orgauthorization_trustee(trustee_org_id, body, opts = {})
1523
+ data, _status_code, _headers = put_orgauthorization_trustee_with_http_info(trustee_org_id, body, opts)
1524
+ return data
1525
+ end
1526
+
1527
+ # Update Org Trust
1528
+ #
1529
+ # @param trustee_org_id Trustee Organization Id
1530
+ # @param body Client
1531
+ # @param [Hash] opts the optional parameters
1532
+ # @return [Array<(Trustee, Fixnum, Hash)>] Trustee data, response status code and response headers
1533
+ def put_orgauthorization_trustee_with_http_info(trustee_org_id, body, opts = {})
1534
+ if @api_client.config.debugging
1535
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.put_orgauthorization_trustee ..."
1536
+ end
1537
+
1538
+
1539
+ # verify the required parameter 'trustee_org_id' is set
1540
+ fail ArgumentError, "Missing the required parameter 'trustee_org_id' when calling OrganizationAuthorizationApi.put_orgauthorization_trustee" if trustee_org_id.nil?
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+ # verify the required parameter 'body' is set
1548
+ fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationAuthorizationApi.put_orgauthorization_trustee" if body.nil?
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+ # resource path
1555
+ local_var_path = "/api/v2/orgauthorization/trustees/{trusteeOrgId}".sub('{format}','json').sub('{' + 'trusteeOrgId' + '}', trustee_org_id.to_s)
1556
+
1557
+ # query parameters
1558
+ query_params = {}
1559
+
1560
+ # header parameters
1561
+ header_params = {}
1562
+
1563
+ # HTTP header 'Accept' (if needed)
1564
+ local_header_accept = ['application/json']
1565
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1566
+
1567
+ # HTTP header 'Content-Type'
1568
+ local_header_content_type = ['application/json']
1569
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1570
+
1571
+ # form parameters
1572
+ form_params = {}
1573
+
1574
+ # http body (model)
1575
+ post_body = @api_client.object_to_http_body(body)
1576
+
1577
+ auth_names = ['PureCloud Auth']
1578
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1579
+ :header_params => header_params,
1580
+ :query_params => query_params,
1581
+ :form_params => form_params,
1582
+ :body => post_body,
1583
+ :auth_names => auth_names,
1584
+ :return_type => 'Trustee')
1585
+ if @api_client.config.debugging
1586
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#put_orgauthorization_trustee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1587
+ end
1588
+ return data, status_code, headers
1589
+ end
1590
+
1591
+ # Update Trustee User Roles
1592
+ #
1593
+ # @param trustee_org_id Trustee Organization Id
1594
+ # @param trustee_user_id Trustee User Id
1595
+ # @param body List of roles
1596
+ # @param [Hash] opts the optional parameters
1597
+ # @return [UserAuthorization]
1598
+ def put_orgauthorization_trustee_user_roles(trustee_org_id, trustee_user_id, body, opts = {})
1599
+ data, _status_code, _headers = put_orgauthorization_trustee_user_roles_with_http_info(trustee_org_id, trustee_user_id, body, opts)
1600
+ return data
1601
+ end
1602
+
1603
+ # Update Trustee User Roles
1604
+ #
1605
+ # @param trustee_org_id Trustee Organization Id
1606
+ # @param trustee_user_id Trustee User Id
1607
+ # @param body List of roles
1608
+ # @param [Hash] opts the optional parameters
1609
+ # @return [Array<(UserAuthorization, Fixnum, Hash)>] UserAuthorization data, response status code and response headers
1610
+ def put_orgauthorization_trustee_user_roles_with_http_info(trustee_org_id, trustee_user_id, body, opts = {})
1611
+ if @api_client.config.debugging
1612
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.put_orgauthorization_trustee_user_roles ..."
1613
+ end
1614
+
1615
+
1616
+ # verify the required parameter 'trustee_org_id' is set
1617
+ fail ArgumentError, "Missing the required parameter 'trustee_org_id' when calling OrganizationAuthorizationApi.put_orgauthorization_trustee_user_roles" if trustee_org_id.nil?
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+ # verify the required parameter 'trustee_user_id' is set
1625
+ fail ArgumentError, "Missing the required parameter 'trustee_user_id' when calling OrganizationAuthorizationApi.put_orgauthorization_trustee_user_roles" if trustee_user_id.nil?
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+ # verify the required parameter 'body' is set
1633
+ fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationAuthorizationApi.put_orgauthorization_trustee_user_roles" if body.nil?
1634
+
1635
+
1636
+
1637
+
1638
+
1639
+ # resource path
1640
+ local_var_path = "/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles".sub('{format}','json').sub('{' + 'trusteeOrgId' + '}', trustee_org_id.to_s).sub('{' + 'trusteeUserId' + '}', trustee_user_id.to_s)
1641
+
1642
+ # query parameters
1643
+ query_params = {}
1644
+
1645
+ # header parameters
1646
+ header_params = {}
1647
+
1648
+ # HTTP header 'Accept' (if needed)
1649
+ local_header_accept = ['application/json']
1650
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1651
+
1652
+ # HTTP header 'Content-Type'
1653
+ local_header_content_type = ['application/json']
1654
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1655
+
1656
+ # form parameters
1657
+ form_params = {}
1658
+
1659
+ # http body (model)
1660
+ post_body = @api_client.object_to_http_body(body)
1661
+
1662
+ auth_names = ['PureCloud Auth']
1663
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1664
+ :header_params => header_params,
1665
+ :query_params => query_params,
1666
+ :form_params => form_params,
1667
+ :body => post_body,
1668
+ :auth_names => auth_names,
1669
+ :return_type => 'UserAuthorization')
1670
+ if @api_client.config.debugging
1671
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#put_orgauthorization_trustee_user_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1672
+ end
1673
+ return data, status_code, headers
1674
+ end
1675
+
1676
+ # Add a Trustee user to the trust.
1677
+ #
1678
+ # @param trustor_org_id Trustor Organization Id
1679
+ # @param trustee_user_id Trustee User Id
1680
+ # @param [Hash] opts the optional parameters
1681
+ # @return [TrustUser]
1682
+ def put_orgauthorization_trustor_user(trustor_org_id, trustee_user_id, opts = {})
1683
+ data, _status_code, _headers = put_orgauthorization_trustor_user_with_http_info(trustor_org_id, trustee_user_id, opts)
1684
+ return data
1685
+ end
1686
+
1687
+ # Add a Trustee user to the trust.
1688
+ #
1689
+ # @param trustor_org_id Trustor Organization Id
1690
+ # @param trustee_user_id Trustee User Id
1691
+ # @param [Hash] opts the optional parameters
1692
+ # @return [Array<(TrustUser, Fixnum, Hash)>] TrustUser data, response status code and response headers
1693
+ def put_orgauthorization_trustor_user_with_http_info(trustor_org_id, trustee_user_id, opts = {})
1694
+ if @api_client.config.debugging
1695
+ @api_client.config.logger.debug "Calling API: OrganizationAuthorizationApi.put_orgauthorization_trustor_user ..."
1696
+ end
1697
+
1698
+
1699
+ # verify the required parameter 'trustor_org_id' is set
1700
+ fail ArgumentError, "Missing the required parameter 'trustor_org_id' when calling OrganizationAuthorizationApi.put_orgauthorization_trustor_user" if trustor_org_id.nil?
1701
+
1702
+
1703
+
1704
+
1705
+
1706
+
1707
+ # verify the required parameter 'trustee_user_id' is set
1708
+ fail ArgumentError, "Missing the required parameter 'trustee_user_id' when calling OrganizationAuthorizationApi.put_orgauthorization_trustor_user" if trustee_user_id.nil?
1709
+
1710
+
1711
+
1712
+
1713
+
1714
+ # resource path
1715
+ local_var_path = "/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}".sub('{format}','json').sub('{' + 'trustorOrgId' + '}', trustor_org_id.to_s).sub('{' + 'trusteeUserId' + '}', trustee_user_id.to_s)
1716
+
1717
+ # query parameters
1718
+ query_params = {}
1719
+
1720
+ # header parameters
1721
+ header_params = {}
1722
+
1723
+ # HTTP header 'Accept' (if needed)
1724
+ local_header_accept = ['application/json']
1725
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1726
+
1727
+ # HTTP header 'Content-Type'
1728
+ local_header_content_type = ['application/json']
1729
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1730
+
1731
+ # form parameters
1732
+ form_params = {}
1733
+
1734
+ # http body (model)
1735
+ post_body = nil
1736
+
1737
+ auth_names = ['PureCloud Auth']
1738
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1739
+ :header_params => header_params,
1740
+ :query_params => query_params,
1741
+ :form_params => form_params,
1742
+ :body => post_body,
1743
+ :auth_names => auth_names,
1744
+ :return_type => 'TrustUser')
1745
+ if @api_client.config.debugging
1746
+ @api_client.config.logger.debug "API called: OrganizationAuthorizationApi#put_orgauthorization_trustor_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1747
+ end
1748
+ return data, status_code, headers
1749
+ end
1750
+ end
1751
+ end