daily-ruby 0.0.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +13 -12
  4. data/README.md +203 -40
  5. data/daily-ruby.gemspec +4 -4
  6. data/docs/BatchRoomCreateRequest.md +18 -0
  7. data/docs/BatchRoomCreateRequestRoomsInner.md +22 -0
  8. data/docs/BatchRoomDelete200Response.md +18 -0
  9. data/docs/BatchRoomsApi.md +150 -0
  10. data/docs/CreateMeetingToken200Response.md +1 -1
  11. data/docs/CreateMeetingTokenRequest.md +18 -0
  12. data/docs/CreateRoom200Response.md +30 -0
  13. data/docs/{RoomRequest.md → CreateRoomRequest.md} +3 -3
  14. data/docs/DailyLiveStreamingOptions.md +40 -0
  15. data/docs/DailyLiveStreamingOptionsRtmpUrl.md +49 -0
  16. data/docs/DailyStreamingActiveParticipantLayoutConfig.md +18 -0
  17. data/docs/DailyStreamingCustomLayoutConfig.md +24 -0
  18. data/docs/DailyStreamingCustomLayoutConfigCompositionParams.md +15 -0
  19. data/docs/DailyStreamingDefaultLayoutConfig.md +20 -0
  20. data/docs/{ServerErrorResponse.md → DailyStreamingEndpoint.md} +4 -4
  21. data/docs/DailyStreamingLayoutConfig.md +69 -0
  22. data/docs/DailyStreamingOptions.md +36 -0
  23. data/docs/DailyStreamingPortraitLayoutConfig.md +22 -0
  24. data/docs/DailyStreamingPortraitLayoutVariant.md +15 -0
  25. data/docs/DailyStreamingSingleParticipantLayoutConfig.md +20 -0
  26. data/docs/DeleteTranscript200Response.md +30 -0
  27. data/docs/Domain.md +18 -0
  28. data/docs/DomainApi.md +149 -0
  29. data/docs/DomainProperties.md +74 -0
  30. data/docs/Eject200Response.md +18 -0
  31. data/docs/EjectRequest.md +18 -0
  32. data/docs/GetDomainConfig200Response.md +22 -0
  33. data/docs/GetDomainConfig200ResponseConfig.md +54 -0
  34. data/docs/GetDomainConfig200ResponseConfigRecordingsBucket.md +20 -0
  35. data/docs/GetMeetingInfo200Response.md +20 -0
  36. data/docs/GetMeetingInfo200ResponseDataInner.md +28 -0
  37. data/docs/GetMeetingInfo200ResponseDataInnerParticipantsInner.md +26 -0
  38. data/docs/GetPresence200Response.md +18 -0
  39. data/docs/GetPresence200ResponseAIVWWhzHlLHrSdHdw7EWInner.md +28 -0
  40. data/docs/GetRecordingInfo200Response.md +36 -0
  41. data/docs/GetRecordingInfo200ResponseTracksInner.md +22 -0
  42. data/docs/GetRecordingLink200Response.md +20 -0
  43. data/docs/GetTranscriptInfo200Response.md +32 -0
  44. data/docs/GetTranscriptInfo200ResponseOutParams.md +22 -0
  45. data/docs/GetTranscriptLink200Response.md +22 -0
  46. data/docs/ListAPILogs200Response.md +38 -0
  47. data/docs/ListRecordings200Response.md +20 -0
  48. data/docs/ListRecordings200ResponseDataInner.md +30 -0
  49. data/docs/ListRooms200Response.md +20 -0
  50. data/docs/ListRooms200ResponseDataInner.md +30 -0
  51. data/docs/ListRooms200ResponseDataInnerConfig.md +18 -0
  52. data/docs/ListTranscript200Response.md +20 -0
  53. data/docs/ListTranscript200ResponseDataInner.md +28 -0
  54. data/docs/LogsApi.md +177 -0
  55. data/docs/MeetingParticipantsGetRes.md +20 -0
  56. data/docs/MeetingParticipantsGetResDataInner.md +28 -0
  57. data/docs/MeetingTokensApi.md +88 -10
  58. data/docs/MeetingsApi.md +247 -0
  59. data/docs/MeetingsMeetingGetRes.md +28 -0
  60. data/docs/Permissions.md +22 -0
  61. data/docs/{MeetingTokenRequestPropertiesPermissionsCanSend.md → PermissionsCanAdmin.md} +4 -4
  62. data/docs/{MeetingTokenRequestPropertiesPermissionsCanAdmin.md → PermissionsCanSend.md} +4 -4
  63. data/docs/PostWebhook.md +22 -0
  64. data/docs/PresenceApi.md +74 -0
  65. data/docs/Properties.md +60 -0
  66. data/docs/RecordingError.md +24 -0
  67. data/docs/RecordingErrorPayload.md +26 -0
  68. data/docs/RecordingReadyToDownload.md +24 -0
  69. data/docs/RecordingReadyToDownloadPayload.md +34 -0
  70. data/docs/RecordingStarted.md +24 -0
  71. data/docs/RecordingStartedPayload.md +28 -0
  72. data/docs/RecordingStreamingOptions.md +38 -0
  73. data/docs/RecordingsApi.md +303 -0
  74. data/docs/RecordingsBucket.md +26 -0
  75. data/docs/RoomProperties.md +94 -0
  76. data/docs/RoomPropertiesStreamingEndpointsInner.md +28 -0
  77. data/docs/RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner.md +26 -0
  78. data/docs/RoomsApi.md +1418 -0
  79. data/docs/RoomsRoomNameGetRes.md +30 -0
  80. data/docs/RoomsRoomNamePresenceGetRes.md +20 -0
  81. data/docs/RoomsRoomNamePresenceGetResDataInner.md +28 -0
  82. data/docs/SendAppMessageRequest.md +20 -0
  83. data/docs/SetRoomConfigRequest.md +20 -0
  84. data/docs/SetSessionDataRequest.md +22 -0
  85. data/docs/StreamingEnded.md +24 -0
  86. data/docs/StreamingEndedPayload.md +22 -0
  87. data/docs/StreamingError.md +24 -0
  88. data/docs/StreamingErrorPayload.md +26 -0
  89. data/docs/StreamingStarted.md +24 -0
  90. data/docs/StreamingStartedPayload.md +24 -0
  91. data/docs/StreamingUpdated.md +24 -0
  92. data/docs/StreamingUpdatedPayload.md +24 -0
  93. data/docs/TranscriptApi.md +305 -0
  94. data/docs/TranscriptionBucket.md +24 -0
  95. data/docs/TranscriptionProperties.md +32 -0
  96. data/docs/TranscriptionPropertiesEndpointing.md +49 -0
  97. data/docs/TranscriptionPropertiesRedact.md +51 -0
  98. data/docs/UpdatePermissionsRequest.md +18 -0
  99. data/docs/UpdatePermissionsRequestDataValue.md +22 -0
  100. data/docs/UpdatePermissionsRequestDataValueCanSend.md +49 -0
  101. data/docs/UpdateWebhook.md +22 -0
  102. data/docs/ValidateMeetingToken200Response.md +28 -0
  103. data/docs/Webhook.md +38 -0
  104. data/docs/WebhooksApi.md +370 -0
  105. data/example.rb +61 -0
  106. data/lib/daily-ruby/api/batch_rooms_api.rb +143 -0
  107. data/lib/daily-ruby/api/domain_api.rb +143 -0
  108. data/lib/daily-ruby/api/logs_api.rb +181 -0
  109. data/lib/daily-ruby/api/meeting_tokens_api.rb +78 -12
  110. data/lib/daily-ruby/api/meetings_api.rb +238 -0
  111. data/lib/daily-ruby/api/presence_api.rb +77 -0
  112. data/lib/daily-ruby/api/recordings_api.rb +280 -0
  113. data/lib/daily-ruby/api/rooms_api.rb +1302 -0
  114. data/lib/daily-ruby/api/transcript_api.rb +283 -0
  115. data/lib/daily-ruby/api/webhooks_api.rb +339 -0
  116. data/lib/daily-ruby/api_client.rb +4 -4
  117. data/lib/daily-ruby/api_error.rb +4 -4
  118. data/lib/daily-ruby/configuration.rb +19 -7
  119. data/lib/daily-ruby/models/{room_deleted_response.rb → batch_room_create_request.rb} +16 -24
  120. data/lib/daily-ruby/models/batch_room_create_request_rooms_inner.rb +232 -0
  121. data/lib/daily-ruby/models/batch_room_delete200_response.rb +214 -0
  122. data/lib/daily-ruby/models/create_meeting_token200_response.rb +4 -4
  123. data/lib/daily-ruby/models/{server_error_response.rb → create_meeting_token_request.rb} +14 -15
  124. data/lib/daily-ruby/models/create_room200_response.rb +270 -0
  125. data/lib/daily-ruby/models/create_room_request.rb +232 -0
  126. data/lib/daily-ruby/models/daily_live_streaming_options.rb +324 -0
  127. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions_can_send.rb → daily_live_streaming_options_rtmp_url.rb} +6 -6
  128. data/lib/daily-ruby/models/{room_request.rb → daily_streaming_active_participant_layout_config.rb} +29 -41
  129. data/lib/daily-ruby/models/daily_streaming_custom_layout_config.rb +293 -0
  130. data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params.rb +105 -0
  131. data/lib/daily-ruby/models/daily_streaming_default_layout_config.rb +264 -0
  132. data/lib/daily-ruby/models/daily_streaming_endpoint.rb +221 -0
  133. data/lib/daily-ruby/models/daily_streaming_layout_config.rb +46 -0
  134. data/lib/daily-ruby/models/daily_streaming_options.rb +304 -0
  135. data/lib/daily-ruby/models/daily_streaming_portrait_layout_config.rb +273 -0
  136. data/lib/daily-ruby/models/daily_streaming_portrait_layout_variant.rb +40 -0
  137. data/lib/daily-ruby/models/daily_streaming_single_participant_layout_config.rb +271 -0
  138. data/lib/daily-ruby/models/delete_transcript200_response.rb +307 -0
  139. data/lib/daily-ruby/models/{meeting_token_request.rb → domain.rb} +8 -9
  140. data/lib/daily-ruby/models/domain_properties.rb +570 -0
  141. data/lib/daily-ruby/models/eject200_response.rb +216 -0
  142. data/lib/daily-ruby/models/eject_request.rb +217 -0
  143. data/lib/daily-ruby/models/get_domain_config200_response.rb +271 -0
  144. data/lib/daily-ruby/models/get_domain_config200_response_config.rb +395 -0
  145. data/lib/daily-ruby/models/get_domain_config200_response_config_recordings_bucket.rb +223 -0
  146. data/lib/daily-ruby/models/get_meeting_info200_response.rb +259 -0
  147. data/lib/daily-ruby/models/get_meeting_info200_response_data_inner.rb +353 -0
  148. data/lib/daily-ruby/models/get_meeting_info200_response_data_inner_participants_inner.rb +290 -0
  149. data/lib/daily-ruby/models/get_presence200_response.rb +243 -0
  150. data/lib/daily-ruby/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner.rb +370 -0
  151. data/lib/daily-ruby/models/get_recording_info200_response.rb +340 -0
  152. data/lib/daily-ruby/models/get_recording_info200_response_tracks_inner.rb +269 -0
  153. data/lib/daily-ruby/models/get_recording_link200_response.rb +225 -0
  154. data/lib/daily-ruby/models/get_transcript_info200_response.rb +317 -0
  155. data/lib/daily-ruby/models/get_transcript_info200_response_out_params.rb +232 -0
  156. data/lib/daily-ruby/models/get_transcript_link200_response.rb +233 -0
  157. data/lib/daily-ruby/models/list_api_logs200_response.rb +315 -0
  158. data/lib/daily-ruby/models/list_recordings200_response.rb +227 -0
  159. data/lib/daily-ruby/models/list_recordings200_response_data_inner.rb +272 -0
  160. data/lib/daily-ruby/models/list_rooms200_response.rb +227 -0
  161. data/lib/daily-ruby/models/list_rooms200_response_data_inner.rb +270 -0
  162. data/lib/daily-ruby/models/list_rooms200_response_data_inner_config.rb +216 -0
  163. data/lib/daily-ruby/models/list_transcript200_response.rb +227 -0
  164. data/lib/daily-ruby/models/list_transcript200_response_data_inner.rb +298 -0
  165. data/lib/daily-ruby/models/meeting_participants_get_res.rb +225 -0
  166. data/lib/daily-ruby/models/meeting_participants_get_res_data_inner.rb +259 -0
  167. data/lib/daily-ruby/models/meetings_meeting_get_res.rb +259 -0
  168. data/lib/daily-ruby/models/permissions.rb +234 -0
  169. data/lib/daily-ruby/models/permissions_can_admin.rb +106 -0
  170. data/lib/daily-ruby/models/permissions_can_send.rb +106 -0
  171. data/lib/daily-ruby/models/post_webhook.rb +259 -0
  172. data/lib/daily-ruby/models/{meeting_token_request_properties.rb → properties.rb} +81 -29
  173. data/lib/daily-ruby/models/recording_error.rb +278 -0
  174. data/lib/daily-ruby/models/recording_error_payload.rb +290 -0
  175. data/lib/daily-ruby/models/recording_ready_to_download.rb +278 -0
  176. data/lib/daily-ruby/models/recording_ready_to_download_payload.rb +344 -0
  177. data/lib/daily-ruby/models/recording_started.rb +278 -0
  178. data/lib/daily-ruby/models/recording_started_payload.rb +299 -0
  179. data/lib/daily-ruby/models/recording_streaming_options.rb +350 -0
  180. data/lib/daily-ruby/models/recordings_bucket.rb +258 -0
  181. data/lib/daily-ruby/models/room_properties.rb +678 -0
  182. data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner.rb +267 -0
  183. data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner.rb +255 -0
  184. data/lib/daily-ruby/models/{room_response.rb → rooms_room_name_get_res.rb} +22 -12
  185. data/lib/daily-ruby/models/rooms_room_name_presence_get_res.rb +225 -0
  186. data/lib/daily-ruby/models/rooms_room_name_presence_get_res_data_inner.rb +259 -0
  187. data/lib/daily-ruby/models/send_app_message_request.rb +227 -0
  188. data/lib/daily-ruby/models/set_room_config_request.rb +223 -0
  189. data/lib/daily-ruby/models/set_session_data_request.rb +273 -0
  190. data/lib/daily-ruby/models/streaming_ended.rb +278 -0
  191. data/lib/daily-ruby/models/streaming_ended_payload.rb +236 -0
  192. data/lib/daily-ruby/models/streaming_error.rb +278 -0
  193. data/lib/daily-ruby/models/streaming_error_payload.rb +256 -0
  194. data/lib/daily-ruby/models/streaming_started.rb +278 -0
  195. data/lib/daily-ruby/models/streaming_started_payload.rb +245 -0
  196. data/lib/daily-ruby/models/streaming_updated.rb +278 -0
  197. data/lib/daily-ruby/models/streaming_updated_payload.rb +245 -0
  198. data/lib/daily-ruby/models/transcription_bucket.rb +246 -0
  199. data/lib/daily-ruby/models/transcription_properties.rb +283 -0
  200. data/lib/daily-ruby/models/transcription_properties_endpointing.rb +106 -0
  201. data/lib/daily-ruby/models/transcription_properties_redact.rb +107 -0
  202. data/lib/daily-ruby/models/{room_not_found_response.rb → update_permissions_request.rb} +16 -24
  203. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions.rb → update_permissions_request_data_value.rb} +13 -12
  204. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions_can_admin.rb → update_permissions_request_data_value_can_send.rb} +5 -5
  205. data/lib/daily-ruby/models/update_webhook.rb +259 -0
  206. data/lib/daily-ruby/models/validate_meeting_token200_response.rb +265 -0
  207. data/lib/daily-ruby/models/webhook.rb +339 -0
  208. data/lib/daily-ruby/version.rb +5 -5
  209. data/lib/daily-ruby.rb +101 -16
  210. data/run.sh +1 -1
  211. data/spec/api/batch_rooms_api_spec.rb +58 -0
  212. data/spec/api/domain_api_spec.rb +58 -0
  213. data/spec/api/logs_api_spec.rb +70 -0
  214. data/spec/api/meeting_tokens_api_spec.rb +20 -7
  215. data/spec/api/meetings_api_spec.rb +81 -0
  216. data/spec/api/presence_api_spec.rb +45 -0
  217. data/spec/api/recordings_api_spec.rb +86 -0
  218. data/spec/api/rooms_api_spec.rb +278 -0
  219. data/spec/api/transcript_api_spec.rb +87 -0
  220. data/spec/api/webhooks_api_spec.rb +95 -0
  221. data/spec/models/batch_room_create_request_rooms_inner_spec.rb +48 -0
  222. data/spec/models/batch_room_create_request_spec.rb +36 -0
  223. data/spec/models/batch_room_delete200_response_spec.rb +36 -0
  224. data/spec/models/create_meeting_token200_response_spec.rb +4 -4
  225. data/spec/models/create_meeting_token_request_spec.rb +36 -0
  226. data/spec/models/create_room200_response_spec.rb +72 -0
  227. data/spec/models/{room_request_spec.rb → create_room_request_spec.rb} +10 -14
  228. data/spec/models/daily_live_streaming_options_rtmp_url_spec.rb +32 -0
  229. data/spec/models/daily_live_streaming_options_spec.rb +102 -0
  230. data/spec/models/daily_streaming_active_participant_layout_config_spec.rb +40 -0
  231. data/spec/models/daily_streaming_custom_layout_config_composition_params_spec.rb +21 -0
  232. data/spec/models/daily_streaming_custom_layout_config_spec.rb +58 -0
  233. data/spec/models/daily_streaming_default_layout_config_spec.rb +46 -0
  234. data/spec/models/daily_streaming_endpoint_spec.rb +36 -0
  235. data/spec/models/daily_streaming_layout_config_spec.rb +38 -0
  236. data/spec/models/daily_streaming_options_spec.rb +90 -0
  237. data/spec/models/daily_streaming_portrait_layout_config_spec.rb +52 -0
  238. data/spec/models/daily_streaming_portrait_layout_variant_spec.rb +30 -0
  239. data/spec/models/daily_streaming_single_participant_layout_config_spec.rb +46 -0
  240. data/spec/models/delete_transcript200_response_spec.rb +76 -0
  241. data/spec/models/{room_request_properties_spec.rb → domain_properties_spec.rb} +39 -49
  242. data/spec/models/domain_spec.rb +36 -0
  243. data/spec/models/eject200_response_spec.rb +36 -0
  244. data/spec/models/eject_request_spec.rb +36 -0
  245. data/spec/models/get_domain_config200_response_config_recordings_bucket_spec.rb +42 -0
  246. data/spec/models/get_domain_config200_response_config_spec.rb +144 -0
  247. data/spec/models/get_domain_config200_response_spec.rb +48 -0
  248. data/spec/models/get_meeting_info200_response_data_inner_participants_inner_spec.rb +60 -0
  249. data/spec/models/get_meeting_info200_response_data_inner_spec.rb +66 -0
  250. data/spec/models/get_meeting_info200_response_spec.rb +42 -0
  251. data/spec/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner_spec.rb +66 -0
  252. data/spec/models/get_presence200_response_spec.rb +36 -0
  253. data/spec/models/get_recording_info200_response_spec.rb +94 -0
  254. data/spec/models/get_recording_info200_response_tracks_inner_spec.rb +52 -0
  255. data/spec/models/get_recording_link200_response_spec.rb +42 -0
  256. data/spec/models/get_transcript_info200_response_out_params_spec.rb +48 -0
  257. data/spec/models/get_transcript_info200_response_spec.rb +82 -0
  258. data/spec/models/get_transcript_link200_response_spec.rb +48 -0
  259. data/spec/models/list_api_logs200_response_spec.rb +96 -0
  260. data/spec/models/list_recordings200_response_data_inner_spec.rb +72 -0
  261. data/spec/models/list_recordings200_response_spec.rb +42 -0
  262. data/spec/models/list_rooms200_response_data_inner_config_spec.rb +36 -0
  263. data/spec/models/list_rooms200_response_data_inner_spec.rb +72 -0
  264. data/spec/models/list_rooms200_response_spec.rb +42 -0
  265. data/spec/models/list_transcript200_response_data_inner_spec.rb +70 -0
  266. data/spec/models/list_transcript200_response_spec.rb +42 -0
  267. data/spec/models/meeting_participants_get_res_data_inner_spec.rb +66 -0
  268. data/spec/models/meeting_participants_get_res_spec.rb +42 -0
  269. data/spec/models/meetings_meeting_get_res_spec.rb +66 -0
  270. data/spec/models/{meeting_token_request_properties_permissions_can_send_spec.rb → permissions_can_admin_spec.rb} +6 -6
  271. data/spec/models/{meeting_token_request_properties_permissions_can_admin_spec.rb → permissions_can_send_spec.rb} +6 -6
  272. data/spec/models/{meeting_token_request_properties_permissions_spec.rb → permissions_spec.rb} +10 -10
  273. data/spec/models/post_webhook_spec.rb +52 -0
  274. data/spec/models/{meeting_token_request_properties_spec.rb → properties_spec.rb} +27 -15
  275. data/spec/models/recording_error_payload_spec.rb +64 -0
  276. data/spec/models/recording_error_spec.rb +58 -0
  277. data/spec/models/recording_ready_to_download_payload_spec.rb +92 -0
  278. data/spec/models/recording_ready_to_download_spec.rb +58 -0
  279. data/spec/models/recording_started_payload_spec.rb +70 -0
  280. data/spec/models/recording_started_spec.rb +58 -0
  281. data/spec/models/recording_streaming_options_spec.rb +100 -0
  282. data/spec/models/recordings_bucket_spec.rb +60 -0
  283. data/spec/models/room_properties_spec.rb +272 -0
  284. data/spec/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner_spec.rb +60 -0
  285. data/spec/models/room_properties_streaming_endpoints_inner_spec.rb +66 -0
  286. data/spec/models/{room_response_spec.rb → rooms_room_name_get_res_spec.rb} +16 -10
  287. data/spec/models/rooms_room_name_presence_get_res_data_inner_spec.rb +66 -0
  288. data/spec/models/rooms_room_name_presence_get_res_spec.rb +42 -0
  289. data/spec/models/send_app_message_request_spec.rb +42 -0
  290. data/spec/models/set_room_config_request_spec.rb +42 -0
  291. data/spec/models/set_session_data_request_spec.rb +52 -0
  292. data/spec/models/streaming_ended_payload_spec.rb +48 -0
  293. data/spec/models/streaming_ended_spec.rb +58 -0
  294. data/spec/models/streaming_error_payload_spec.rb +60 -0
  295. data/spec/models/streaming_error_spec.rb +58 -0
  296. data/spec/models/streaming_started_payload_spec.rb +54 -0
  297. data/spec/models/streaming_started_spec.rb +58 -0
  298. data/spec/models/streaming_updated_payload_spec.rb +54 -0
  299. data/spec/models/streaming_updated_spec.rb +58 -0
  300. data/spec/models/transcription_bucket_spec.rb +54 -0
  301. data/spec/models/transcription_properties_endpointing_spec.rb +32 -0
  302. data/spec/models/transcription_properties_redact_spec.rb +32 -0
  303. data/spec/models/transcription_properties_spec.rb +78 -0
  304. data/spec/models/update_permissions_request_data_value_can_send_spec.rb +32 -0
  305. data/spec/models/update_permissions_request_data_value_spec.rb +48 -0
  306. data/spec/models/update_permissions_request_spec.rb +36 -0
  307. data/spec/models/update_webhook_spec.rb +52 -0
  308. data/spec/models/validate_meeting_token200_response_spec.rb +66 -0
  309. data/spec/models/webhook_spec.rb +100 -0
  310. data/spec/spec_helper.rb +4 -4
  311. metadata +391 -52
  312. data/daily.yaml +0 -422
  313. data/docs/MeetingTokenRequest.md +0 -18
  314. data/docs/MeetingTokenRequestProperties.md +0 -56
  315. data/docs/MeetingTokenRequestPropertiesPermissions.md +0 -22
  316. data/docs/RoomApi.md +0 -227
  317. data/docs/RoomDeletedResponse.md +0 -20
  318. data/docs/RoomNotFoundResponse.md +0 -20
  319. data/docs/RoomRequestProperties.md +0 -76
  320. data/docs/RoomResponse.md +0 -28
  321. data/lib/daily-ruby/api/room_api.rb +0 -218
  322. data/lib/daily-ruby/models/room_request_properties.rb +0 -521
  323. data/script.rb +0 -35
  324. data/spec/api/room_api_spec.rb +0 -74
  325. data/spec/models/meeting_token_request_spec.rb +0 -36
  326. data/spec/models/room_deleted_response_spec.rb +0 -42
  327. data/spec/models/room_not_found_response_spec.rb +0 -42
  328. data/spec/models/server_error_response_spec.rb +0 -36
@@ -0,0 +1,1302 @@
1
+ =begin
2
+ #Daily API
3
+
4
+ #The Daily REST API offers the ability to manage the following: - Overall Domain Configuration - Individual Room creation and config management - Meeting token creation and validation - Recording and compositing management - Meeting analytics - Logs and metrics - Real-time presence Please reach out to help@daily.co if we can help with anything
5
+
6
+ The version of the OpenAPI document: 1.1.1
7
+ Contact: help@daily.co
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Daily
16
+ class RoomsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # /rooms
23
+ # Create a room
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [CreateRoomRequest] :create_room_request
26
+ # @return [CreateRoom200Response]
27
+ def create_room(opts = {})
28
+ data, _status_code, _headers = create_room_with_http_info(opts)
29
+ data
30
+ end
31
+
32
+ # /rooms
33
+ # Create a room
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [CreateRoomRequest] :create_room_request
36
+ # @return [Array<(CreateRoom200Response, Integer, Hash)>] CreateRoom200Response data, response status code and response headers
37
+ def create_room_with_http_info(opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: RoomsApi.create_room ...'
40
+ end
41
+ # resource path
42
+ local_var_path = '/rooms'
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
+ # HTTP header 'Content-Type'
52
+ content_type = @api_client.select_header_content_type(['application/json'])
53
+ if !content_type.nil?
54
+ header_params['Content-Type'] = content_type
55
+ end
56
+
57
+ # form parameters
58
+ form_params = opts[:form_params] || {}
59
+
60
+ # http body (model)
61
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_room_request'])
62
+
63
+ # return_type
64
+ return_type = opts[:debug_return_type] || 'CreateRoom200Response'
65
+
66
+ # auth_names
67
+ auth_names = opts[:debug_auth_names] || ['sec0']
68
+
69
+ new_options = opts.merge(
70
+ :operation => :"RoomsApi.create_room",
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: RoomsApi#create_room\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # rooms/:name
87
+ # Delete a room
88
+ # @param room_name [String]
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Object]
91
+ def delete_room(room_name, opts = {})
92
+ data, _status_code, _headers = delete_room_with_http_info(room_name, opts)
93
+ data
94
+ end
95
+
96
+ # rooms/:name
97
+ # Delete a room
98
+ # @param room_name [String]
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
101
+ def delete_room_with_http_info(room_name, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: RoomsApi.delete_room ...'
104
+ end
105
+ # verify the required parameter 'room_name' is set
106
+ if @api_client.config.client_side_validation && room_name.nil?
107
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.delete_room"
108
+ end
109
+ # resource path
110
+ local_var_path = '/rooms/{room_name}'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
+
120
+ # form parameters
121
+ form_params = opts[:form_params] || {}
122
+
123
+ # http body (model)
124
+ post_body = opts[:debug_body]
125
+
126
+ # return_type
127
+ return_type = opts[:debug_return_type] || 'Object'
128
+
129
+ # auth_names
130
+ auth_names = opts[:debug_auth_names] || ['sec0']
131
+
132
+ new_options = opts.merge(
133
+ :operation => :"RoomsApi.delete_room",
134
+ :header_params => header_params,
135
+ :query_params => query_params,
136
+ :form_params => form_params,
137
+ :body => post_body,
138
+ :auth_names => auth_names,
139
+ :return_type => return_type
140
+ )
141
+
142
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
143
+ if @api_client.config.debugging
144
+ @api_client.config.logger.debug "API called: RoomsApi#delete_room\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
+ end
146
+ return data, status_code, headers
147
+ end
148
+
149
+ # rooms/:name/eject
150
+ # Ejects participants from a room
151
+ # @param room_name [String]
152
+ # @param [Hash] opts the optional parameters
153
+ # @option opts [EjectRequest] :eject_request
154
+ # @return [Eject200Response]
155
+ def eject(room_name, opts = {})
156
+ data, _status_code, _headers = eject_with_http_info(room_name, opts)
157
+ data
158
+ end
159
+
160
+ # rooms/:name/eject
161
+ # Ejects participants from a room
162
+ # @param room_name [String]
163
+ # @param [Hash] opts the optional parameters
164
+ # @option opts [EjectRequest] :eject_request
165
+ # @return [Array<(Eject200Response, Integer, Hash)>] Eject200Response data, response status code and response headers
166
+ def eject_with_http_info(room_name, opts = {})
167
+ if @api_client.config.debugging
168
+ @api_client.config.logger.debug 'Calling API: RoomsApi.eject ...'
169
+ end
170
+ # verify the required parameter 'room_name' is set
171
+ if @api_client.config.client_side_validation && room_name.nil?
172
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.eject"
173
+ end
174
+ # resource path
175
+ local_var_path = '/rooms/{room_name}/eject'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
176
+
177
+ # query parameters
178
+ query_params = opts[:query_params] || {}
179
+
180
+ # header parameters
181
+ header_params = opts[:header_params] || {}
182
+ # HTTP header 'Accept' (if needed)
183
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
184
+ # HTTP header 'Content-Type'
185
+ content_type = @api_client.select_header_content_type(['application/json'])
186
+ if !content_type.nil?
187
+ header_params['Content-Type'] = content_type
188
+ end
189
+
190
+ # form parameters
191
+ form_params = opts[:form_params] || {}
192
+
193
+ # http body (model)
194
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'eject_request'])
195
+
196
+ # return_type
197
+ return_type = opts[:debug_return_type] || 'Eject200Response'
198
+
199
+ # auth_names
200
+ auth_names = opts[:debug_auth_names] || ['sec0']
201
+
202
+ new_options = opts.merge(
203
+ :operation => :"RoomsApi.eject",
204
+ :header_params => header_params,
205
+ :query_params => query_params,
206
+ :form_params => form_params,
207
+ :body => post_body,
208
+ :auth_names => auth_names,
209
+ :return_type => return_type
210
+ )
211
+
212
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
213
+ if @api_client.config.debugging
214
+ @api_client.config.logger.debug "API called: RoomsApi#eject\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
215
+ end
216
+ return data, status_code, headers
217
+ end
218
+
219
+ # rooms/:name
220
+ # Get info about a room
221
+ # @param room_name [String]
222
+ # @param [Hash] opts the optional parameters
223
+ # @return [RoomsRoomNameGetRes]
224
+ def get_room_config(room_name, opts = {})
225
+ data, _status_code, _headers = get_room_config_with_http_info(room_name, opts)
226
+ data
227
+ end
228
+
229
+ # rooms/:name
230
+ # Get info about a room
231
+ # @param room_name [String]
232
+ # @param [Hash] opts the optional parameters
233
+ # @return [Array<(RoomsRoomNameGetRes, Integer, Hash)>] RoomsRoomNameGetRes data, response status code and response headers
234
+ def get_room_config_with_http_info(room_name, opts = {})
235
+ if @api_client.config.debugging
236
+ @api_client.config.logger.debug 'Calling API: RoomsApi.get_room_config ...'
237
+ end
238
+ # verify the required parameter 'room_name' is set
239
+ if @api_client.config.client_side_validation && room_name.nil?
240
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.get_room_config"
241
+ end
242
+ # resource path
243
+ local_var_path = '/rooms/{room_name}'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
244
+
245
+ # query parameters
246
+ query_params = opts[:query_params] || {}
247
+
248
+ # header parameters
249
+ header_params = opts[:header_params] || {}
250
+ # HTTP header 'Accept' (if needed)
251
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
252
+
253
+ # form parameters
254
+ form_params = opts[:form_params] || {}
255
+
256
+ # http body (model)
257
+ post_body = opts[:debug_body]
258
+
259
+ # return_type
260
+ return_type = opts[:debug_return_type] || 'RoomsRoomNameGetRes'
261
+
262
+ # auth_names
263
+ auth_names = opts[:debug_auth_names] || ['sec0']
264
+
265
+ new_options = opts.merge(
266
+ :operation => :"RoomsApi.get_room_config",
267
+ :header_params => header_params,
268
+ :query_params => query_params,
269
+ :form_params => form_params,
270
+ :body => post_body,
271
+ :auth_names => auth_names,
272
+ :return_type => return_type
273
+ )
274
+
275
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
276
+ if @api_client.config.debugging
277
+ @api_client.config.logger.debug "API called: RoomsApi#get_room_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
+ end
279
+ return data, status_code, headers
280
+ end
281
+
282
+ # rooms/:name/presence
283
+ # Get a presence snapshot for a room
284
+ # @param room_name [String] The name of the room
285
+ # @param [Hash] opts the optional parameters
286
+ # @option opts [Integer] :limit Sets the number of participants returned.
287
+ # @option opts [String] :user_id Returns presence for the user with the given userId, if available. The userId is specified via a [meeting token](/reference/rest-api/meeting-tokens/config#user_id).
288
+ # @option opts [String] :user_name Returns presence for the user with the given name, if available.
289
+ # @return [RoomsRoomNamePresenceGetRes]
290
+ def get_room_presence(room_name, opts = {})
291
+ data, _status_code, _headers = get_room_presence_with_http_info(room_name, opts)
292
+ data
293
+ end
294
+
295
+ # rooms/:name/presence
296
+ # Get a presence snapshot for a room
297
+ # @param room_name [String] The name of the room
298
+ # @param [Hash] opts the optional parameters
299
+ # @option opts [Integer] :limit Sets the number of participants returned.
300
+ # @option opts [String] :user_id Returns presence for the user with the given userId, if available. The userId is specified via a [meeting token](/reference/rest-api/meeting-tokens/config#user_id).
301
+ # @option opts [String] :user_name Returns presence for the user with the given name, if available.
302
+ # @return [Array<(RoomsRoomNamePresenceGetRes, Integer, Hash)>] RoomsRoomNamePresenceGetRes data, response status code and response headers
303
+ def get_room_presence_with_http_info(room_name, opts = {})
304
+ if @api_client.config.debugging
305
+ @api_client.config.logger.debug 'Calling API: RoomsApi.get_room_presence ...'
306
+ end
307
+ # verify the required parameter 'room_name' is set
308
+ if @api_client.config.client_side_validation && room_name.nil?
309
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.get_room_presence"
310
+ end
311
+ # resource path
312
+ local_var_path = '/rooms/{room_name}/presence'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
313
+
314
+ # query parameters
315
+ query_params = opts[:query_params] || {}
316
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
317
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
318
+ query_params[:'userName'] = opts[:'user_name'] if !opts[:'user_name'].nil?
319
+
320
+ # header parameters
321
+ header_params = opts[:header_params] || {}
322
+ # HTTP header 'Accept' (if needed)
323
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
324
+
325
+ # form parameters
326
+ form_params = opts[:form_params] || {}
327
+
328
+ # http body (model)
329
+ post_body = opts[:debug_body]
330
+
331
+ # return_type
332
+ return_type = opts[:debug_return_type] || 'RoomsRoomNamePresenceGetRes'
333
+
334
+ # auth_names
335
+ auth_names = opts[:debug_auth_names] || ['sec0']
336
+
337
+ new_options = opts.merge(
338
+ :operation => :"RoomsApi.get_room_presence",
339
+ :header_params => header_params,
340
+ :query_params => query_params,
341
+ :form_params => form_params,
342
+ :body => post_body,
343
+ :auth_names => auth_names,
344
+ :return_type => return_type
345
+ )
346
+
347
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
348
+ if @api_client.config.debugging
349
+ @api_client.config.logger.debug "API called: RoomsApi#get_room_presence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
350
+ end
351
+ return data, status_code, headers
352
+ end
353
+
354
+ # rooms/:name/get-session-data
355
+ # Gets meeting session data
356
+ # @param room_name [String]
357
+ # @param [Hash] opts the optional parameters
358
+ # @return [nil]
359
+ def get_session_data(room_name, opts = {})
360
+ get_session_data_with_http_info(room_name, opts)
361
+ nil
362
+ end
363
+
364
+ # rooms/:name/get-session-data
365
+ # Gets meeting session data
366
+ # @param room_name [String]
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
369
+ def get_session_data_with_http_info(room_name, opts = {})
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug 'Calling API: RoomsApi.get_session_data ...'
372
+ end
373
+ # verify the required parameter 'room_name' is set
374
+ if @api_client.config.client_side_validation && room_name.nil?
375
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.get_session_data"
376
+ end
377
+ # resource path
378
+ local_var_path = '/rooms/{room_name}/get-session-data'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
379
+
380
+ # query parameters
381
+ query_params = opts[:query_params] || {}
382
+
383
+ # header parameters
384
+ header_params = opts[:header_params] || {}
385
+ # HTTP header 'Accept' (if needed)
386
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
387
+
388
+ # form parameters
389
+ form_params = opts[:form_params] || {}
390
+
391
+ # http body (model)
392
+ post_body = opts[:debug_body]
393
+
394
+ # return_type
395
+ return_type = opts[:debug_return_type]
396
+
397
+ # auth_names
398
+ auth_names = opts[:debug_auth_names] || ['sec0']
399
+
400
+ new_options = opts.merge(
401
+ :operation => :"RoomsApi.get_session_data",
402
+ :header_params => header_params,
403
+ :query_params => query_params,
404
+ :form_params => form_params,
405
+ :body => post_body,
406
+ :auth_names => auth_names,
407
+ :return_type => return_type
408
+ )
409
+
410
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
411
+ if @api_client.config.debugging
412
+ @api_client.config.logger.debug "API called: RoomsApi#get_session_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
413
+ end
414
+ return data, status_code, headers
415
+ end
416
+
417
+ # /rooms
418
+ # List rooms
419
+ # @param [Hash] opts the optional parameters
420
+ # @option opts [Integer] :limit Sets the number of rooms listed
421
+ # @option opts [String] :ending_before Returns room objects created before a provided room id
422
+ # @option opts [String] :starting_after Returns room objects created after a provided room id
423
+ # @return [ListRooms200Response]
424
+ def list_rooms(opts = {})
425
+ data, _status_code, _headers = list_rooms_with_http_info(opts)
426
+ data
427
+ end
428
+
429
+ # /rooms
430
+ # List rooms
431
+ # @param [Hash] opts the optional parameters
432
+ # @option opts [Integer] :limit Sets the number of rooms listed
433
+ # @option opts [String] :ending_before Returns room objects created before a provided room id
434
+ # @option opts [String] :starting_after Returns room objects created after a provided room id
435
+ # @return [Array<(ListRooms200Response, Integer, Hash)>] ListRooms200Response data, response status code and response headers
436
+ def list_rooms_with_http_info(opts = {})
437
+ if @api_client.config.debugging
438
+ @api_client.config.logger.debug 'Calling API: RoomsApi.list_rooms ...'
439
+ end
440
+ # resource path
441
+ local_var_path = '/rooms'
442
+
443
+ # query parameters
444
+ query_params = opts[:query_params] || {}
445
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
446
+ query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
447
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
448
+
449
+ # header parameters
450
+ header_params = opts[:header_params] || {}
451
+ # HTTP header 'Accept' (if needed)
452
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
453
+
454
+ # form parameters
455
+ form_params = opts[:form_params] || {}
456
+
457
+ # http body (model)
458
+ post_body = opts[:debug_body]
459
+
460
+ # return_type
461
+ return_type = opts[:debug_return_type] || 'ListRooms200Response'
462
+
463
+ # auth_names
464
+ auth_names = opts[:debug_auth_names] || ['sec0']
465
+
466
+ new_options = opts.merge(
467
+ :operation => :"RoomsApi.list_rooms",
468
+ :header_params => header_params,
469
+ :query_params => query_params,
470
+ :form_params => form_params,
471
+ :body => post_body,
472
+ :auth_names => auth_names,
473
+ :return_type => return_type
474
+ )
475
+
476
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
477
+ if @api_client.config.debugging
478
+ @api_client.config.logger.debug "API called: RoomsApi#list_rooms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
479
+ end
480
+ return data, status_code, headers
481
+ end
482
+
483
+ # rooms/:name/live-streaming/start
484
+ # Start a live stream in a room
485
+ # @param room_name [String]
486
+ # @param [Hash] opts the optional parameters
487
+ # @option opts [DailyLiveStreamingOptions] :daily_live_streaming_options
488
+ # @return [nil]
489
+ def room_livestreaming_start(room_name, opts = {})
490
+ room_livestreaming_start_with_http_info(room_name, opts)
491
+ nil
492
+ end
493
+
494
+ # rooms/:name/live-streaming/start
495
+ # Start a live stream in a room
496
+ # @param room_name [String]
497
+ # @param [Hash] opts the optional parameters
498
+ # @option opts [DailyLiveStreamingOptions] :daily_live_streaming_options
499
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
500
+ def room_livestreaming_start_with_http_info(room_name, opts = {})
501
+ if @api_client.config.debugging
502
+ @api_client.config.logger.debug 'Calling API: RoomsApi.room_livestreaming_start ...'
503
+ end
504
+ # verify the required parameter 'room_name' is set
505
+ if @api_client.config.client_side_validation && room_name.nil?
506
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.room_livestreaming_start"
507
+ end
508
+ # resource path
509
+ local_var_path = '/rooms/{room_name}/live-streaming/start'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
510
+
511
+ # query parameters
512
+ query_params = opts[:query_params] || {}
513
+
514
+ # header parameters
515
+ header_params = opts[:header_params] || {}
516
+ # HTTP header 'Accept' (if needed)
517
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
518
+ # HTTP header 'Content-Type'
519
+ content_type = @api_client.select_header_content_type(['application/json'])
520
+ if !content_type.nil?
521
+ header_params['Content-Type'] = content_type
522
+ end
523
+
524
+ # form parameters
525
+ form_params = opts[:form_params] || {}
526
+
527
+ # http body (model)
528
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'daily_live_streaming_options'])
529
+
530
+ # return_type
531
+ return_type = opts[:debug_return_type]
532
+
533
+ # auth_names
534
+ auth_names = opts[:debug_auth_names] || ['sec0']
535
+
536
+ new_options = opts.merge(
537
+ :operation => :"RoomsApi.room_livestreaming_start",
538
+ :header_params => header_params,
539
+ :query_params => query_params,
540
+ :form_params => form_params,
541
+ :body => post_body,
542
+ :auth_names => auth_names,
543
+ :return_type => return_type
544
+ )
545
+
546
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
547
+ if @api_client.config.debugging
548
+ @api_client.config.logger.debug "API called: RoomsApi#room_livestreaming_start\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
549
+ end
550
+ return data, status_code, headers
551
+ end
552
+
553
+ # rooms/:name/live-streaming/stop
554
+ # Stop a live stream in a room
555
+ # @param room_name [String]
556
+ # @param [Hash] opts the optional parameters
557
+ # @return [nil]
558
+ def room_livestreaming_stop(room_name, opts = {})
559
+ room_livestreaming_stop_with_http_info(room_name, opts)
560
+ nil
561
+ end
562
+
563
+ # rooms/:name/live-streaming/stop
564
+ # Stop a live stream in a room
565
+ # @param room_name [String]
566
+ # @param [Hash] opts the optional parameters
567
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
568
+ def room_livestreaming_stop_with_http_info(room_name, opts = {})
569
+ if @api_client.config.debugging
570
+ @api_client.config.logger.debug 'Calling API: RoomsApi.room_livestreaming_stop ...'
571
+ end
572
+ # verify the required parameter 'room_name' is set
573
+ if @api_client.config.client_side_validation && room_name.nil?
574
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.room_livestreaming_stop"
575
+ end
576
+ # resource path
577
+ local_var_path = '/rooms/{room_name}/live-streaming/stop'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
578
+
579
+ # query parameters
580
+ query_params = opts[:query_params] || {}
581
+
582
+ # header parameters
583
+ header_params = opts[:header_params] || {}
584
+ # HTTP header 'Accept' (if needed)
585
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
586
+
587
+ # form parameters
588
+ form_params = opts[:form_params] || {}
589
+
590
+ # http body (model)
591
+ post_body = opts[:debug_body]
592
+
593
+ # return_type
594
+ return_type = opts[:debug_return_type]
595
+
596
+ # auth_names
597
+ auth_names = opts[:debug_auth_names] || ['sec0']
598
+
599
+ new_options = opts.merge(
600
+ :operation => :"RoomsApi.room_livestreaming_stop",
601
+ :header_params => header_params,
602
+ :query_params => query_params,
603
+ :form_params => form_params,
604
+ :body => post_body,
605
+ :auth_names => auth_names,
606
+ :return_type => return_type
607
+ )
608
+
609
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
610
+ if @api_client.config.debugging
611
+ @api_client.config.logger.debug "API called: RoomsApi#room_livestreaming_stop\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
612
+ end
613
+ return data, status_code, headers
614
+ end
615
+
616
+ # rooms/:name/live-streaming/update
617
+ # Update a live stream in a room
618
+ # @param room_name [String]
619
+ # @param [Hash] opts the optional parameters
620
+ # @option opts [DailyLiveStreamingOptions] :daily_live_streaming_options
621
+ # @return [nil]
622
+ def room_livestreaming_update(room_name, opts = {})
623
+ room_livestreaming_update_with_http_info(room_name, opts)
624
+ nil
625
+ end
626
+
627
+ # rooms/:name/live-streaming/update
628
+ # Update a live stream in a room
629
+ # @param room_name [String]
630
+ # @param [Hash] opts the optional parameters
631
+ # @option opts [DailyLiveStreamingOptions] :daily_live_streaming_options
632
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
633
+ def room_livestreaming_update_with_http_info(room_name, opts = {})
634
+ if @api_client.config.debugging
635
+ @api_client.config.logger.debug 'Calling API: RoomsApi.room_livestreaming_update ...'
636
+ end
637
+ # verify the required parameter 'room_name' is set
638
+ if @api_client.config.client_side_validation && room_name.nil?
639
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.room_livestreaming_update"
640
+ end
641
+ # resource path
642
+ local_var_path = '/rooms/{room_name}/live-streaming/update'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
643
+
644
+ # query parameters
645
+ query_params = opts[:query_params] || {}
646
+
647
+ # header parameters
648
+ header_params = opts[:header_params] || {}
649
+ # HTTP header 'Accept' (if needed)
650
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
651
+ # HTTP header 'Content-Type'
652
+ content_type = @api_client.select_header_content_type(['application/json'])
653
+ if !content_type.nil?
654
+ header_params['Content-Type'] = content_type
655
+ end
656
+
657
+ # form parameters
658
+ form_params = opts[:form_params] || {}
659
+
660
+ # http body (model)
661
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'daily_live_streaming_options'])
662
+
663
+ # return_type
664
+ return_type = opts[:debug_return_type]
665
+
666
+ # auth_names
667
+ auth_names = opts[:debug_auth_names] || ['sec0']
668
+
669
+ new_options = opts.merge(
670
+ :operation => :"RoomsApi.room_livestreaming_update",
671
+ :header_params => header_params,
672
+ :query_params => query_params,
673
+ :form_params => form_params,
674
+ :body => post_body,
675
+ :auth_names => auth_names,
676
+ :return_type => return_type
677
+ )
678
+
679
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
680
+ if @api_client.config.debugging
681
+ @api_client.config.logger.debug "API called: RoomsApi#room_livestreaming_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
682
+ end
683
+ return data, status_code, headers
684
+ end
685
+
686
+ # rooms/:name/recordings/start
687
+ # Start a recording in a room
688
+ # @param room_name [String]
689
+ # @param [Hash] opts the optional parameters
690
+ # @option opts [RecordingStreamingOptions] :recording_streaming_options
691
+ # @return [nil]
692
+ def room_recordings_start(room_name, opts = {})
693
+ room_recordings_start_with_http_info(room_name, opts)
694
+ nil
695
+ end
696
+
697
+ # rooms/:name/recordings/start
698
+ # Start a recording in a room
699
+ # @param room_name [String]
700
+ # @param [Hash] opts the optional parameters
701
+ # @option opts [RecordingStreamingOptions] :recording_streaming_options
702
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
703
+ def room_recordings_start_with_http_info(room_name, opts = {})
704
+ if @api_client.config.debugging
705
+ @api_client.config.logger.debug 'Calling API: RoomsApi.room_recordings_start ...'
706
+ end
707
+ # verify the required parameter 'room_name' is set
708
+ if @api_client.config.client_side_validation && room_name.nil?
709
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.room_recordings_start"
710
+ end
711
+ # resource path
712
+ local_var_path = '/rooms/{room_name}/recordings/start'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
713
+
714
+ # query parameters
715
+ query_params = opts[:query_params] || {}
716
+
717
+ # header parameters
718
+ header_params = opts[:header_params] || {}
719
+ # HTTP header 'Accept' (if needed)
720
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
721
+ # HTTP header 'Content-Type'
722
+ content_type = @api_client.select_header_content_type(['application/json'])
723
+ if !content_type.nil?
724
+ header_params['Content-Type'] = content_type
725
+ end
726
+
727
+ # form parameters
728
+ form_params = opts[:form_params] || {}
729
+
730
+ # http body (model)
731
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'recording_streaming_options'])
732
+
733
+ # return_type
734
+ return_type = opts[:debug_return_type]
735
+
736
+ # auth_names
737
+ auth_names = opts[:debug_auth_names] || ['sec0']
738
+
739
+ new_options = opts.merge(
740
+ :operation => :"RoomsApi.room_recordings_start",
741
+ :header_params => header_params,
742
+ :query_params => query_params,
743
+ :form_params => form_params,
744
+ :body => post_body,
745
+ :auth_names => auth_names,
746
+ :return_type => return_type
747
+ )
748
+
749
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
750
+ if @api_client.config.debugging
751
+ @api_client.config.logger.debug "API called: RoomsApi#room_recordings_start\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
752
+ end
753
+ return data, status_code, headers
754
+ end
755
+
756
+ # rooms/:name/recordings/stop
757
+ # Stop a recording in a room
758
+ # @param room_name [String]
759
+ # @param [Hash] opts the optional parameters
760
+ # @return [nil]
761
+ def room_recordings_stop(room_name, opts = {})
762
+ room_recordings_stop_with_http_info(room_name, opts)
763
+ nil
764
+ end
765
+
766
+ # rooms/:name/recordings/stop
767
+ # Stop a recording in a room
768
+ # @param room_name [String]
769
+ # @param [Hash] opts the optional parameters
770
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
771
+ def room_recordings_stop_with_http_info(room_name, opts = {})
772
+ if @api_client.config.debugging
773
+ @api_client.config.logger.debug 'Calling API: RoomsApi.room_recordings_stop ...'
774
+ end
775
+ # verify the required parameter 'room_name' is set
776
+ if @api_client.config.client_side_validation && room_name.nil?
777
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.room_recordings_stop"
778
+ end
779
+ # resource path
780
+ local_var_path = '/rooms/{room_name}/recordings/stop'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
781
+
782
+ # query parameters
783
+ query_params = opts[:query_params] || {}
784
+
785
+ # header parameters
786
+ header_params = opts[:header_params] || {}
787
+ # HTTP header 'Accept' (if needed)
788
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
789
+
790
+ # form parameters
791
+ form_params = opts[:form_params] || {}
792
+
793
+ # http body (model)
794
+ post_body = opts[:debug_body]
795
+
796
+ # return_type
797
+ return_type = opts[:debug_return_type]
798
+
799
+ # auth_names
800
+ auth_names = opts[:debug_auth_names] || ['sec0']
801
+
802
+ new_options = opts.merge(
803
+ :operation => :"RoomsApi.room_recordings_stop",
804
+ :header_params => header_params,
805
+ :query_params => query_params,
806
+ :form_params => form_params,
807
+ :body => post_body,
808
+ :auth_names => auth_names,
809
+ :return_type => return_type
810
+ )
811
+
812
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
813
+ if @api_client.config.debugging
814
+ @api_client.config.logger.debug "API called: RoomsApi#room_recordings_stop\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
815
+ end
816
+ return data, status_code, headers
817
+ end
818
+
819
+ # rooms/:name/recordings/update
820
+ # Update a recording in a room
821
+ # @param room_name [String]
822
+ # @param [Hash] opts the optional parameters
823
+ # @option opts [DailyStreamingOptions] :daily_streaming_options
824
+ # @return [nil]
825
+ def room_recordings_update(room_name, opts = {})
826
+ room_recordings_update_with_http_info(room_name, opts)
827
+ nil
828
+ end
829
+
830
+ # rooms/:name/recordings/update
831
+ # Update a recording in a room
832
+ # @param room_name [String]
833
+ # @param [Hash] opts the optional parameters
834
+ # @option opts [DailyStreamingOptions] :daily_streaming_options
835
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
836
+ def room_recordings_update_with_http_info(room_name, opts = {})
837
+ if @api_client.config.debugging
838
+ @api_client.config.logger.debug 'Calling API: RoomsApi.room_recordings_update ...'
839
+ end
840
+ # verify the required parameter 'room_name' is set
841
+ if @api_client.config.client_side_validation && room_name.nil?
842
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.room_recordings_update"
843
+ end
844
+ # resource path
845
+ local_var_path = '/rooms/{room_name}/recordings/update'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
846
+
847
+ # query parameters
848
+ query_params = opts[:query_params] || {}
849
+
850
+ # header parameters
851
+ header_params = opts[:header_params] || {}
852
+ # HTTP header 'Accept' (if needed)
853
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
854
+ # HTTP header 'Content-Type'
855
+ content_type = @api_client.select_header_content_type(['application/json'])
856
+ if !content_type.nil?
857
+ header_params['Content-Type'] = content_type
858
+ end
859
+
860
+ # form parameters
861
+ form_params = opts[:form_params] || {}
862
+
863
+ # http body (model)
864
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'daily_streaming_options'])
865
+
866
+ # return_type
867
+ return_type = opts[:debug_return_type]
868
+
869
+ # auth_names
870
+ auth_names = opts[:debug_auth_names] || ['sec0']
871
+
872
+ new_options = opts.merge(
873
+ :operation => :"RoomsApi.room_recordings_update",
874
+ :header_params => header_params,
875
+ :query_params => query_params,
876
+ :form_params => form_params,
877
+ :body => post_body,
878
+ :auth_names => auth_names,
879
+ :return_type => return_type
880
+ )
881
+
882
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
883
+ if @api_client.config.debugging
884
+ @api_client.config.logger.debug "API called: RoomsApi#room_recordings_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
885
+ end
886
+ return data, status_code, headers
887
+ end
888
+
889
+ # rooms/:name/transcription/start
890
+ # Start a transcription in a room
891
+ # @param room_name [String]
892
+ # @param [Hash] opts the optional parameters
893
+ # @option opts [TranscriptionProperties] :transcription_properties
894
+ # @return [nil]
895
+ def room_transcription_start(room_name, opts = {})
896
+ room_transcription_start_with_http_info(room_name, opts)
897
+ nil
898
+ end
899
+
900
+ # rooms/:name/transcription/start
901
+ # Start a transcription in a room
902
+ # @param room_name [String]
903
+ # @param [Hash] opts the optional parameters
904
+ # @option opts [TranscriptionProperties] :transcription_properties
905
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
906
+ def room_transcription_start_with_http_info(room_name, opts = {})
907
+ if @api_client.config.debugging
908
+ @api_client.config.logger.debug 'Calling API: RoomsApi.room_transcription_start ...'
909
+ end
910
+ # verify the required parameter 'room_name' is set
911
+ if @api_client.config.client_side_validation && room_name.nil?
912
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.room_transcription_start"
913
+ end
914
+ # resource path
915
+ local_var_path = '/rooms/{room_name}/transcription/start'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
916
+
917
+ # query parameters
918
+ query_params = opts[:query_params] || {}
919
+
920
+ # header parameters
921
+ header_params = opts[:header_params] || {}
922
+ # HTTP header 'Accept' (if needed)
923
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
924
+ # HTTP header 'Content-Type'
925
+ content_type = @api_client.select_header_content_type(['application/json'])
926
+ if !content_type.nil?
927
+ header_params['Content-Type'] = content_type
928
+ end
929
+
930
+ # form parameters
931
+ form_params = opts[:form_params] || {}
932
+
933
+ # http body (model)
934
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'transcription_properties'])
935
+
936
+ # return_type
937
+ return_type = opts[:debug_return_type]
938
+
939
+ # auth_names
940
+ auth_names = opts[:debug_auth_names] || ['sec0']
941
+
942
+ new_options = opts.merge(
943
+ :operation => :"RoomsApi.room_transcription_start",
944
+ :header_params => header_params,
945
+ :query_params => query_params,
946
+ :form_params => form_params,
947
+ :body => post_body,
948
+ :auth_names => auth_names,
949
+ :return_type => return_type
950
+ )
951
+
952
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
953
+ if @api_client.config.debugging
954
+ @api_client.config.logger.debug "API called: RoomsApi#room_transcription_start\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
955
+ end
956
+ return data, status_code, headers
957
+ end
958
+
959
+ # rooms/:name/transcription/stop
960
+ # Stop a transcription in a room
961
+ # @param room_name [String]
962
+ # @param [Hash] opts the optional parameters
963
+ # @return [nil]
964
+ def room_transcription_stop(room_name, opts = {})
965
+ room_transcription_stop_with_http_info(room_name, opts)
966
+ nil
967
+ end
968
+
969
+ # rooms/:name/transcription/stop
970
+ # Stop a transcription in a room
971
+ # @param room_name [String]
972
+ # @param [Hash] opts the optional parameters
973
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
974
+ def room_transcription_stop_with_http_info(room_name, opts = {})
975
+ if @api_client.config.debugging
976
+ @api_client.config.logger.debug 'Calling API: RoomsApi.room_transcription_stop ...'
977
+ end
978
+ # verify the required parameter 'room_name' is set
979
+ if @api_client.config.client_side_validation && room_name.nil?
980
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.room_transcription_stop"
981
+ end
982
+ # resource path
983
+ local_var_path = '/rooms/{room_name}/transcription/stop'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
984
+
985
+ # query parameters
986
+ query_params = opts[:query_params] || {}
987
+
988
+ # header parameters
989
+ header_params = opts[:header_params] || {}
990
+ # HTTP header 'Accept' (if needed)
991
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
992
+
993
+ # form parameters
994
+ form_params = opts[:form_params] || {}
995
+
996
+ # http body (model)
997
+ post_body = opts[:debug_body]
998
+
999
+ # return_type
1000
+ return_type = opts[:debug_return_type]
1001
+
1002
+ # auth_names
1003
+ auth_names = opts[:debug_auth_names] || ['sec0']
1004
+
1005
+ new_options = opts.merge(
1006
+ :operation => :"RoomsApi.room_transcription_stop",
1007
+ :header_params => header_params,
1008
+ :query_params => query_params,
1009
+ :form_params => form_params,
1010
+ :body => post_body,
1011
+ :auth_names => auth_names,
1012
+ :return_type => return_type
1013
+ )
1014
+
1015
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1016
+ if @api_client.config.debugging
1017
+ @api_client.config.logger.debug "API called: RoomsApi#room_transcription_stop\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1018
+ end
1019
+ return data, status_code, headers
1020
+ end
1021
+
1022
+ # rooms/:name/send-app-message
1023
+ # Send a message to participants in a room
1024
+ # @param room_name [String]
1025
+ # @param [Hash] opts the optional parameters
1026
+ # @option opts [SendAppMessageRequest] :send_app_message_request
1027
+ # @return [nil]
1028
+ def send_app_message(room_name, opts = {})
1029
+ send_app_message_with_http_info(room_name, opts)
1030
+ nil
1031
+ end
1032
+
1033
+ # rooms/:name/send-app-message
1034
+ # Send a message to participants in a room
1035
+ # @param room_name [String]
1036
+ # @param [Hash] opts the optional parameters
1037
+ # @option opts [SendAppMessageRequest] :send_app_message_request
1038
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1039
+ def send_app_message_with_http_info(room_name, opts = {})
1040
+ if @api_client.config.debugging
1041
+ @api_client.config.logger.debug 'Calling API: RoomsApi.send_app_message ...'
1042
+ end
1043
+ # verify the required parameter 'room_name' is set
1044
+ if @api_client.config.client_side_validation && room_name.nil?
1045
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.send_app_message"
1046
+ end
1047
+ # resource path
1048
+ local_var_path = '/rooms/{room_name}/send-app-message'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
1049
+
1050
+ # query parameters
1051
+ query_params = opts[:query_params] || {}
1052
+
1053
+ # header parameters
1054
+ header_params = opts[:header_params] || {}
1055
+ # HTTP header 'Accept' (if needed)
1056
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1057
+ # HTTP header 'Content-Type'
1058
+ content_type = @api_client.select_header_content_type(['application/json'])
1059
+ if !content_type.nil?
1060
+ header_params['Content-Type'] = content_type
1061
+ end
1062
+
1063
+ # form parameters
1064
+ form_params = opts[:form_params] || {}
1065
+
1066
+ # http body (model)
1067
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'send_app_message_request'])
1068
+
1069
+ # return_type
1070
+ return_type = opts[:debug_return_type]
1071
+
1072
+ # auth_names
1073
+ auth_names = opts[:debug_auth_names] || ['sec0']
1074
+
1075
+ new_options = opts.merge(
1076
+ :operation => :"RoomsApi.send_app_message",
1077
+ :header_params => header_params,
1078
+ :query_params => query_params,
1079
+ :form_params => form_params,
1080
+ :body => post_body,
1081
+ :auth_names => auth_names,
1082
+ :return_type => return_type
1083
+ )
1084
+
1085
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1086
+ if @api_client.config.debugging
1087
+ @api_client.config.logger.debug "API called: RoomsApi#send_app_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1088
+ end
1089
+ return data, status_code, headers
1090
+ end
1091
+
1092
+ # rooms/:name
1093
+ # Set a room's privacy and config properties
1094
+ # @param room_name [String]
1095
+ # @param [Hash] opts the optional parameters
1096
+ # @option opts [SetRoomConfigRequest] :set_room_config_request
1097
+ # @return [nil]
1098
+ def set_room_config(room_name, opts = {})
1099
+ set_room_config_with_http_info(room_name, opts)
1100
+ nil
1101
+ end
1102
+
1103
+ # rooms/:name
1104
+ # Set a room&#39;s privacy and config properties
1105
+ # @param room_name [String]
1106
+ # @param [Hash] opts the optional parameters
1107
+ # @option opts [SetRoomConfigRequest] :set_room_config_request
1108
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1109
+ def set_room_config_with_http_info(room_name, opts = {})
1110
+ if @api_client.config.debugging
1111
+ @api_client.config.logger.debug 'Calling API: RoomsApi.set_room_config ...'
1112
+ end
1113
+ # verify the required parameter 'room_name' is set
1114
+ if @api_client.config.client_side_validation && room_name.nil?
1115
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.set_room_config"
1116
+ end
1117
+ # resource path
1118
+ local_var_path = '/rooms/{room_name}'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
1119
+
1120
+ # query parameters
1121
+ query_params = opts[:query_params] || {}
1122
+
1123
+ # header parameters
1124
+ header_params = opts[:header_params] || {}
1125
+ # HTTP header 'Accept' (if needed)
1126
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1127
+ # HTTP header 'Content-Type'
1128
+ content_type = @api_client.select_header_content_type(['application/json'])
1129
+ if !content_type.nil?
1130
+ header_params['Content-Type'] = content_type
1131
+ end
1132
+
1133
+ # form parameters
1134
+ form_params = opts[:form_params] || {}
1135
+
1136
+ # http body (model)
1137
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'set_room_config_request'])
1138
+
1139
+ # return_type
1140
+ return_type = opts[:debug_return_type]
1141
+
1142
+ # auth_names
1143
+ auth_names = opts[:debug_auth_names] || ['sec0']
1144
+
1145
+ new_options = opts.merge(
1146
+ :operation => :"RoomsApi.set_room_config",
1147
+ :header_params => header_params,
1148
+ :query_params => query_params,
1149
+ :form_params => form_params,
1150
+ :body => post_body,
1151
+ :auth_names => auth_names,
1152
+ :return_type => return_type
1153
+ )
1154
+
1155
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1156
+ if @api_client.config.debugging
1157
+ @api_client.config.logger.debug "API called: RoomsApi#set_room_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1158
+ end
1159
+ return data, status_code, headers
1160
+ end
1161
+
1162
+ # rooms/:name/set-session-data
1163
+ # Sets meeting session data
1164
+ # @param room_name [String]
1165
+ # @param [Hash] opts the optional parameters
1166
+ # @option opts [SetSessionDataRequest] :set_session_data_request
1167
+ # @return [nil]
1168
+ def set_session_data(room_name, opts = {})
1169
+ set_session_data_with_http_info(room_name, opts)
1170
+ nil
1171
+ end
1172
+
1173
+ # rooms/:name/set-session-data
1174
+ # Sets meeting session data
1175
+ # @param room_name [String]
1176
+ # @param [Hash] opts the optional parameters
1177
+ # @option opts [SetSessionDataRequest] :set_session_data_request
1178
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1179
+ def set_session_data_with_http_info(room_name, opts = {})
1180
+ if @api_client.config.debugging
1181
+ @api_client.config.logger.debug 'Calling API: RoomsApi.set_session_data ...'
1182
+ end
1183
+ # verify the required parameter 'room_name' is set
1184
+ if @api_client.config.client_side_validation && room_name.nil?
1185
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.set_session_data"
1186
+ end
1187
+ # resource path
1188
+ local_var_path = '/rooms/{room_name}/set-session-data'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
1189
+
1190
+ # query parameters
1191
+ query_params = opts[:query_params] || {}
1192
+
1193
+ # header parameters
1194
+ header_params = opts[:header_params] || {}
1195
+ # HTTP header 'Accept' (if needed)
1196
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1197
+ # HTTP header 'Content-Type'
1198
+ content_type = @api_client.select_header_content_type(['application/json'])
1199
+ if !content_type.nil?
1200
+ header_params['Content-Type'] = content_type
1201
+ end
1202
+
1203
+ # form parameters
1204
+ form_params = opts[:form_params] || {}
1205
+
1206
+ # http body (model)
1207
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'set_session_data_request'])
1208
+
1209
+ # return_type
1210
+ return_type = opts[:debug_return_type]
1211
+
1212
+ # auth_names
1213
+ auth_names = opts[:debug_auth_names] || ['sec0']
1214
+
1215
+ new_options = opts.merge(
1216
+ :operation => :"RoomsApi.set_session_data",
1217
+ :header_params => header_params,
1218
+ :query_params => query_params,
1219
+ :form_params => form_params,
1220
+ :body => post_body,
1221
+ :auth_names => auth_names,
1222
+ :return_type => return_type
1223
+ )
1224
+
1225
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1226
+ if @api_client.config.debugging
1227
+ @api_client.config.logger.debug "API called: RoomsApi#set_session_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1228
+ end
1229
+ return data, status_code, headers
1230
+ end
1231
+
1232
+ # rooms/:name/update-permissions
1233
+ # Modifies permissions for one or more participants in a room
1234
+ # @param room_name [String]
1235
+ # @param [Hash] opts the optional parameters
1236
+ # @option opts [UpdatePermissionsRequest] :update_permissions_request
1237
+ # @return [nil]
1238
+ def update_permissions(room_name, opts = {})
1239
+ update_permissions_with_http_info(room_name, opts)
1240
+ nil
1241
+ end
1242
+
1243
+ # rooms/:name/update-permissions
1244
+ # Modifies permissions for one or more participants in a room
1245
+ # @param room_name [String]
1246
+ # @param [Hash] opts the optional parameters
1247
+ # @option opts [UpdatePermissionsRequest] :update_permissions_request
1248
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1249
+ def update_permissions_with_http_info(room_name, opts = {})
1250
+ if @api_client.config.debugging
1251
+ @api_client.config.logger.debug 'Calling API: RoomsApi.update_permissions ...'
1252
+ end
1253
+ # verify the required parameter 'room_name' is set
1254
+ if @api_client.config.client_side_validation && room_name.nil?
1255
+ fail ArgumentError, "Missing the required parameter 'room_name' when calling RoomsApi.update_permissions"
1256
+ end
1257
+ # resource path
1258
+ local_var_path = '/rooms/{room_name}/update-permissions'.sub('{' + 'room_name' + '}', CGI.escape(room_name.to_s))
1259
+
1260
+ # query parameters
1261
+ query_params = opts[:query_params] || {}
1262
+
1263
+ # header parameters
1264
+ header_params = opts[:header_params] || {}
1265
+ # HTTP header 'Accept' (if needed)
1266
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1267
+ # HTTP header 'Content-Type'
1268
+ content_type = @api_client.select_header_content_type(['application/json'])
1269
+ if !content_type.nil?
1270
+ header_params['Content-Type'] = content_type
1271
+ end
1272
+
1273
+ # form parameters
1274
+ form_params = opts[:form_params] || {}
1275
+
1276
+ # http body (model)
1277
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_permissions_request'])
1278
+
1279
+ # return_type
1280
+ return_type = opts[:debug_return_type]
1281
+
1282
+ # auth_names
1283
+ auth_names = opts[:debug_auth_names] || ['sec0']
1284
+
1285
+ new_options = opts.merge(
1286
+ :operation => :"RoomsApi.update_permissions",
1287
+ :header_params => header_params,
1288
+ :query_params => query_params,
1289
+ :form_params => form_params,
1290
+ :body => post_body,
1291
+ :auth_names => auth_names,
1292
+ :return_type => return_type
1293
+ )
1294
+
1295
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1296
+ if @api_client.config.debugging
1297
+ @api_client.config.logger.debug "API called: RoomsApi#update_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1298
+ end
1299
+ return data, status_code, headers
1300
+ end
1301
+ end
1302
+ end