daily-ruby 0.0.2 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (444) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -5
  3. data/README.md +248 -79
  4. data/daily-ruby-1.0.0.gem +0 -0
  5. data/daily-ruby.gemspec +6 -5
  6. data/docs/BatchProcessorError.md +24 -0
  7. data/docs/BatchProcessorErrorPayload.md +26 -0
  8. data/docs/BatchProcessorErrorPayloadInput.md +24 -0
  9. data/docs/BatchProcessorJobFinished.md +24 -0
  10. data/docs/BatchProcessorJobFinishedPayload.md +26 -0
  11. data/docs/BatchProcessorJobFinishedPayloadInput.md +24 -0
  12. data/docs/BatchProcessorJobFinishedPayloadOutput.md +24 -0
  13. data/docs/BatchProcessorJobFinishedPayloadOutputConcept.md +20 -0
  14. data/docs/BatchProcessorJobFinishedPayloadOutputSoap.md +20 -0
  15. data/docs/BatchProcessorJobFinishedPayloadOutputSoapS3Config.md +22 -0
  16. data/docs/BatchProcessorJobFinishedPayloadOutputSummary.md +20 -0
  17. data/docs/BatchProcessorJobFinishedPayloadOutputTranscriptionInner.md +20 -0
  18. data/docs/BatchRoomCreateRequest.md +18 -0
  19. data/docs/BatchRoomCreateRequestRoomsInner.md +22 -0
  20. data/docs/BatchRoomDelete200Response.md +18 -0
  21. data/docs/BatchRoomsApi.md +150 -0
  22. data/docs/BuyPhoneNumberRequest.md +18 -0
  23. data/docs/CreateMeetingToken200Response.md +18 -0
  24. data/docs/CreateMeetingTokenRequest.md +18 -0
  25. data/docs/CreateRoom200Response.md +30 -0
  26. data/docs/{RoomRequest.md → CreateRoomRequest.md} +3 -3
  27. data/docs/DailyLiveStreamingOptions.md +40 -0
  28. data/docs/DailyLiveStreamingOptionsRtmpUrl.md +49 -0
  29. data/docs/DailyStreamingActiveParticipantLayoutConfig.md +18 -0
  30. data/docs/DailyStreamingCustomLayoutConfig.md +24 -0
  31. data/docs/DailyStreamingCustomLayoutConfigCompositionParams.md +15 -0
  32. data/docs/DailyStreamingCustomLayoutConfigCompositionParamsValue.md +15 -0
  33. data/docs/DailyStreamingDefaultLayoutConfig.md +20 -0
  34. data/docs/DailyStreamingEndpoint.md +18 -0
  35. data/docs/DailyStreamingLayoutConfig.md +69 -0
  36. data/docs/DailyStreamingOptions.md +36 -0
  37. data/docs/DailyStreamingPortraitLayoutConfig.md +22 -0
  38. data/docs/DailyStreamingPortraitLayoutVariant.md +15 -0
  39. data/docs/DailyStreamingSingleParticipantLayoutConfig.md +20 -0
  40. data/docs/DeleteTranscript200Response.md +30 -0
  41. data/docs/DialinApi.md +80 -0
  42. data/docs/DialoutProperties.md +26 -0
  43. data/docs/DialoutPropertiesCodecs.md +20 -0
  44. data/docs/Domain.md +18 -0
  45. data/docs/DomainApi.md +149 -0
  46. data/docs/DomainProperties.md +84 -0
  47. data/docs/Eject200Response.md +18 -0
  48. data/docs/EjectRequest.md +22 -0
  49. data/docs/GetDomainConfig200Response.md +22 -0
  50. data/docs/GetDomainConfig200ResponseConfig.md +56 -0
  51. data/docs/GetDomainConfig200ResponseConfigRecordingsBucket.md +20 -0
  52. data/docs/GetMeetingInfo200Response.md +20 -0
  53. data/docs/GetMeetingInfo200ResponseDataInner.md +28 -0
  54. data/docs/GetMeetingInfo200ResponseDataInnerParticipantsInner.md +26 -0
  55. data/docs/GetPresence200Response.md +18 -0
  56. data/docs/GetPresence200ResponseAIVWWhzHlLHrSdHdw7EWInner.md +28 -0
  57. data/docs/GetRecordingInfo200Response.md +36 -0
  58. data/docs/GetRecordingInfo200ResponseTracksInner.md +22 -0
  59. data/docs/GetRecordingLink200Response.md +20 -0
  60. data/docs/GetTranscriptInfo200Response.md +32 -0
  61. data/docs/GetTranscriptInfo200ResponseOutParams.md +22 -0
  62. data/docs/GetTranscriptLink200Response.md +22 -0
  63. data/docs/ListAPILogs200Response.md +38 -0
  64. data/docs/ListRecordings200Response.md +20 -0
  65. data/docs/ListRecordings200ResponseDataInner.md +30 -0
  66. data/docs/ListRooms200Response.md +20 -0
  67. data/docs/ListRooms200ResponseDataInner.md +30 -0
  68. data/docs/ListRooms200ResponseDataInnerConfig.md +18 -0
  69. data/docs/ListTranscript200Response.md +20 -0
  70. data/docs/ListTranscript200ResponseDataInner.md +28 -0
  71. data/docs/LogsApi.md +177 -0
  72. data/docs/MeetingEnded.md +24 -0
  73. data/docs/MeetingEndedPayload.md +24 -0
  74. data/docs/MeetingParticipantsGetRes.md +18 -0
  75. data/docs/MeetingParticipantsGetResDataInner.md +28 -0
  76. data/docs/MeetingStarted.md +24 -0
  77. data/docs/MeetingStartedPayload.md +22 -0
  78. data/docs/MeetingTokensApi.md +92 -14
  79. data/docs/MeetingsApi.md +247 -0
  80. data/docs/MeetingsMeetingGetRes.md +28 -0
  81. data/docs/ParticipantJoined.md +24 -0
  82. data/docs/ParticipantJoinedPayload.md +32 -0
  83. data/docs/ParticipantJoinedPayloadPermissions.md +22 -0
  84. data/docs/ParticipantLeft.md +24 -0
  85. data/docs/ParticipantLeftPayload.md +34 -0
  86. data/docs/Permissions.md +22 -0
  87. data/docs/{MeetingTokenRequestPropertiesPermissionsCanSend.md → PermissionsCanAdmin.md} +4 -4
  88. data/docs/{MeetingTokenRequestPropertiesPermissionsCanAdmin.md → PermissionsCanSend.md} +4 -4
  89. data/docs/PhoneNumbersApi.md +304 -0
  90. data/docs/PinDialinInner.md +22 -0
  91. data/docs/PinDialinInnerIvrGreeting.md +18 -0
  92. data/docs/PinlessCallUpdateRequest.md +22 -0
  93. data/docs/PinlessDialinInner.md +24 -0
  94. data/docs/PostWebhook.md +26 -0
  95. data/docs/PresenceApi.md +74 -0
  96. data/docs/Properties.md +62 -0
  97. data/docs/RecordingError.md +24 -0
  98. data/docs/RecordingErrorPayload.md +26 -0
  99. data/docs/RecordingReadyToDownload.md +24 -0
  100. data/docs/RecordingReadyToDownloadPayload.md +34 -0
  101. data/docs/RecordingStarted.md +24 -0
  102. data/docs/RecordingStartedPayload.md +28 -0
  103. data/docs/RecordingStreamingOptions.md +38 -0
  104. data/docs/RecordingsApi.md +303 -0
  105. data/docs/RecordingsBucket.md +26 -0
  106. data/docs/RoomDialOutSendDTMFRequest.md +20 -0
  107. data/docs/RoomDialOutStopRequest.md +18 -0
  108. data/docs/RoomProperties.md +104 -0
  109. data/docs/RoomPropertiesStreamingEndpointsInner.md +28 -0
  110. data/docs/RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner.md +26 -0
  111. data/docs/RoomSipCallTransferRequest.md +20 -0
  112. data/docs/RoomsApi.md +1794 -0
  113. data/docs/RoomsRoomNameGetRes.md +30 -0
  114. data/docs/RoomsRoomNamePresenceGetRes.md +20 -0
  115. data/docs/RoomsRoomNamePresenceGetResDataInner.md +28 -0
  116. data/docs/SendAppMessageRequest.md +20 -0
  117. data/docs/SetRoomConfigRequest.md +20 -0
  118. data/docs/SetSessionDataRequest.md +22 -0
  119. data/docs/StreamingEnded.md +24 -0
  120. data/docs/StreamingEndedPayload.md +22 -0
  121. data/docs/StreamingError.md +24 -0
  122. data/docs/StreamingErrorPayload.md +26 -0
  123. data/docs/StreamingStarted.md +24 -0
  124. data/docs/StreamingStartedPayload.md +24 -0
  125. data/docs/StreamingUpdated.md +24 -0
  126. data/docs/StreamingUpdatedPayload.md +24 -0
  127. data/docs/TranscriptApi.md +305 -0
  128. data/docs/TranscriptionBucket.md +24 -0
  129. data/docs/TranscriptionProperties.md +34 -0
  130. data/docs/TranscriptionPropertiesEndpointing.md +49 -0
  131. data/docs/TranscriptionPropertiesRedact.md +51 -0
  132. data/docs/UpdatePermissionsRequest.md +18 -0
  133. data/docs/UpdatePermissionsRequestDataValue.md +22 -0
  134. data/docs/UpdatePermissionsRequestDataValueCanSend.md +49 -0
  135. data/docs/UpdateWebhook.md +26 -0
  136. data/docs/ValidateMeetingToken200Response.md +28 -0
  137. data/docs/WaitingParticipantJoined.md +24 -0
  138. data/docs/WaitingParticipantJoinedPayload.md +32 -0
  139. data/docs/WaitingParticipantLeft.md +24 -0
  140. data/docs/WaitingParticipantLeftPayload.md +34 -0
  141. data/docs/Webhook.md +40 -0
  142. data/docs/WebhooksApi.md +370 -0
  143. data/example.rb +61 -0
  144. data/lib/daily-ruby/api/batch_rooms_api.rb +143 -0
  145. data/lib/daily-ruby/api/dialin_api.rb +86 -0
  146. data/lib/daily-ruby/api/domain_api.rb +143 -0
  147. data/lib/daily-ruby/api/logs_api.rb +181 -0
  148. data/lib/daily-ruby/api/meeting_tokens_api.rb +83 -17
  149. data/lib/daily-ruby/api/meetings_api.rb +238 -0
  150. data/lib/daily-ruby/api/phone_numbers_api.rb +281 -0
  151. data/lib/daily-ruby/api/presence_api.rb +77 -0
  152. data/lib/daily-ruby/api/recordings_api.rb +280 -0
  153. data/lib/daily-ruby/api/rooms_api.rb +1652 -0
  154. data/lib/daily-ruby/api/transcript_api.rb +283 -0
  155. data/lib/daily-ruby/api/webhooks_api.rb +339 -0
  156. data/lib/daily-ruby/api_client.rb +38 -32
  157. data/lib/daily-ruby/api_error.rb +5 -5
  158. data/lib/daily-ruby/configuration.rb +30 -8
  159. data/lib/daily-ruby/models/batch_processor_error.rb +278 -0
  160. data/lib/daily-ruby/models/batch_processor_error_payload.rb +289 -0
  161. data/lib/daily-ruby/models/batch_processor_error_payload_input.rb +280 -0
  162. data/lib/daily-ruby/models/batch_processor_job_finished.rb +278 -0
  163. data/lib/daily-ruby/models/batch_processor_job_finished_payload.rb +288 -0
  164. data/lib/daily-ruby/models/batch_processor_job_finished_payload_input.rb +280 -0
  165. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output.rb +245 -0
  166. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_concept.rb +259 -0
  167. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_soap.rb +259 -0
  168. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_soap_s3_config.rb +236 -0
  169. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_summary.rb +259 -0
  170. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_transcription_inner.rb +258 -0
  171. data/lib/daily-ruby/models/batch_room_create_request.rb +216 -0
  172. data/lib/daily-ruby/models/batch_room_create_request_rooms_inner.rb +232 -0
  173. data/lib/daily-ruby/models/batch_room_delete200_response.rb +214 -0
  174. data/lib/daily-ruby/models/{room_not_found_response.rb → buy_phone_number_request.rb} +16 -25
  175. data/lib/daily-ruby/models/{meeting_token_response.rb → create_meeting_token200_response.rb} +8 -10
  176. data/lib/daily-ruby/models/create_meeting_token_request.rb +214 -0
  177. data/lib/daily-ruby/models/create_room200_response.rb +270 -0
  178. data/lib/daily-ruby/models/create_room_request.rb +232 -0
  179. data/lib/daily-ruby/models/daily_live_streaming_options.rb +324 -0
  180. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions_can_send.rb → daily_live_streaming_options_rtmp_url.rb} +7 -7
  181. data/lib/daily-ruby/models/{room_request.rb → daily_streaming_active_participant_layout_config.rb} +30 -42
  182. data/lib/daily-ruby/models/daily_streaming_custom_layout_config.rb +293 -0
  183. data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params.rb +105 -0
  184. data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params_value.rb +105 -0
  185. data/lib/daily-ruby/models/daily_streaming_default_layout_config.rb +264 -0
  186. data/lib/daily-ruby/models/daily_streaming_endpoint.rb +221 -0
  187. data/lib/daily-ruby/models/daily_streaming_layout_config.rb +46 -0
  188. data/lib/daily-ruby/models/daily_streaming_options.rb +304 -0
  189. data/lib/daily-ruby/models/daily_streaming_portrait_layout_config.rb +273 -0
  190. data/lib/daily-ruby/models/daily_streaming_portrait_layout_variant.rb +41 -0
  191. data/lib/daily-ruby/models/daily_streaming_single_participant_layout_config.rb +271 -0
  192. data/lib/daily-ruby/models/delete_transcript200_response.rb +307 -0
  193. data/lib/daily-ruby/models/dialout_properties.rb +254 -0
  194. data/lib/daily-ruby/models/dialout_properties_codecs.rb +228 -0
  195. data/lib/daily-ruby/models/{meeting_token_request.rb → domain.rb} +9 -10
  196. data/lib/daily-ruby/models/domain_properties.rb +628 -0
  197. data/lib/daily-ruby/models/eject200_response.rb +216 -0
  198. data/lib/daily-ruby/models/eject_request.rb +241 -0
  199. data/lib/daily-ruby/models/get_domain_config200_response.rb +271 -0
  200. data/lib/daily-ruby/models/get_domain_config200_response_config.rb +404 -0
  201. data/lib/daily-ruby/models/get_domain_config200_response_config_recordings_bucket.rb +223 -0
  202. data/lib/daily-ruby/models/get_meeting_info200_response.rb +259 -0
  203. data/lib/daily-ruby/models/get_meeting_info200_response_data_inner.rb +353 -0
  204. data/lib/daily-ruby/models/get_meeting_info200_response_data_inner_participants_inner.rb +290 -0
  205. data/lib/daily-ruby/models/get_presence200_response.rb +243 -0
  206. data/lib/daily-ruby/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner.rb +370 -0
  207. data/lib/daily-ruby/models/get_recording_info200_response.rb +340 -0
  208. data/lib/daily-ruby/models/get_recording_info200_response_tracks_inner.rb +269 -0
  209. data/lib/daily-ruby/models/get_recording_link200_response.rb +225 -0
  210. data/lib/daily-ruby/models/get_transcript_info200_response.rb +317 -0
  211. data/lib/daily-ruby/models/get_transcript_info200_response_out_params.rb +233 -0
  212. data/lib/daily-ruby/models/get_transcript_link200_response.rb +233 -0
  213. data/lib/daily-ruby/models/list_api_logs200_response.rb +315 -0
  214. data/lib/daily-ruby/models/list_recordings200_response.rb +227 -0
  215. data/lib/daily-ruby/models/list_recordings200_response_data_inner.rb +272 -0
  216. data/lib/daily-ruby/models/list_rooms200_response.rb +227 -0
  217. data/lib/daily-ruby/models/list_rooms200_response_data_inner.rb +270 -0
  218. data/lib/daily-ruby/models/list_rooms200_response_data_inner_config.rb +216 -0
  219. data/lib/daily-ruby/models/list_transcript200_response.rb +227 -0
  220. data/lib/daily-ruby/models/list_transcript200_response_data_inner.rb +298 -0
  221. data/lib/daily-ruby/models/meeting_ended.rb +278 -0
  222. data/lib/daily-ruby/models/{server_error_response.rb → meeting_ended_payload.rb} +47 -17
  223. data/lib/daily-ruby/models/meeting_participants_get_res.rb +216 -0
  224. data/lib/daily-ruby/models/meeting_participants_get_res_data_inner.rb +259 -0
  225. data/lib/daily-ruby/models/meeting_started.rb +278 -0
  226. data/lib/daily-ruby/models/meeting_started_payload.rb +236 -0
  227. data/lib/daily-ruby/models/meetings_meeting_get_res.rb +259 -0
  228. data/lib/daily-ruby/models/participant_joined.rb +278 -0
  229. data/lib/daily-ruby/models/participant_joined_payload.rb +285 -0
  230. data/lib/daily-ruby/models/participant_joined_payload_permissions.rb +240 -0
  231. data/lib/daily-ruby/models/participant_left.rb +278 -0
  232. data/lib/daily-ruby/models/participant_left_payload.rb +295 -0
  233. data/lib/daily-ruby/models/permissions.rb +234 -0
  234. data/lib/daily-ruby/models/permissions_can_admin.rb +106 -0
  235. data/lib/daily-ruby/models/permissions_can_send.rb +106 -0
  236. data/lib/daily-ruby/models/pin_dialin_inner.rb +234 -0
  237. data/lib/daily-ruby/models/pin_dialin_inner_ivr_greeting.rb +215 -0
  238. data/lib/daily-ruby/models/pinless_call_update_request.rb +235 -0
  239. data/lib/daily-ruby/models/pinless_dialin_inner.rb +245 -0
  240. data/lib/daily-ruby/models/post_webhook.rb +291 -0
  241. data/lib/daily-ruby/models/{meeting_token_request_properties.rb → properties.rb} +83 -21
  242. data/lib/daily-ruby/models/recording_error.rb +278 -0
  243. data/lib/daily-ruby/models/recording_error_payload.rb +290 -0
  244. data/lib/daily-ruby/models/recording_ready_to_download.rb +278 -0
  245. data/lib/daily-ruby/models/recording_ready_to_download_payload.rb +344 -0
  246. data/lib/daily-ruby/models/recording_started.rb +278 -0
  247. data/lib/daily-ruby/models/recording_started_payload.rb +299 -0
  248. data/lib/daily-ruby/models/recording_streaming_options.rb +350 -0
  249. data/lib/daily-ruby/models/recordings_bucket.rb +258 -0
  250. data/lib/daily-ruby/models/room_dial_out_send_dtmf_request.rb +224 -0
  251. data/lib/daily-ruby/models/{room_deleted_response.rb → room_dial_out_stop_request.rb} +16 -25
  252. data/lib/daily-ruby/models/room_properties.rb +736 -0
  253. data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner.rb +267 -0
  254. data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner.rb +255 -0
  255. data/lib/daily-ruby/models/room_sip_call_transfer_request.rb +224 -0
  256. data/lib/daily-ruby/models/{room_response.rb → rooms_room_name_get_res.rb} +23 -13
  257. data/lib/daily-ruby/models/rooms_room_name_presence_get_res.rb +225 -0
  258. data/lib/daily-ruby/models/rooms_room_name_presence_get_res_data_inner.rb +259 -0
  259. data/lib/daily-ruby/models/send_app_message_request.rb +227 -0
  260. data/lib/daily-ruby/models/set_room_config_request.rb +223 -0
  261. data/lib/daily-ruby/models/set_session_data_request.rb +273 -0
  262. data/lib/daily-ruby/models/streaming_ended.rb +278 -0
  263. data/lib/daily-ruby/models/streaming_ended_payload.rb +236 -0
  264. data/lib/daily-ruby/models/streaming_error.rb +278 -0
  265. data/lib/daily-ruby/models/streaming_error_payload.rb +256 -0
  266. data/lib/daily-ruby/models/streaming_started.rb +278 -0
  267. data/lib/daily-ruby/models/streaming_started_payload.rb +245 -0
  268. data/lib/daily-ruby/models/streaming_updated.rb +278 -0
  269. data/lib/daily-ruby/models/streaming_updated_payload.rb +245 -0
  270. data/lib/daily-ruby/models/transcription_bucket.rb +246 -0
  271. data/lib/daily-ruby/models/transcription_properties.rb +293 -0
  272. data/lib/daily-ruby/models/transcription_properties_endpointing.rb +106 -0
  273. data/lib/daily-ruby/models/transcription_properties_redact.rb +107 -0
  274. data/lib/daily-ruby/models/update_permissions_request.rb +216 -0
  275. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions.rb → update_permissions_request_data_value.rb} +14 -13
  276. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions_can_admin.rb → update_permissions_request_data_value_can_send.rb} +6 -6
  277. data/lib/daily-ruby/models/update_webhook.rb +291 -0
  278. data/lib/daily-ruby/models/validate_meeting_token200_response.rb +265 -0
  279. data/lib/daily-ruby/models/waiting_participant_joined.rb +278 -0
  280. data/lib/daily-ruby/models/waiting_participant_joined_payload.rb +285 -0
  281. data/lib/daily-ruby/models/waiting_participant_left.rb +278 -0
  282. data/lib/daily-ruby/models/waiting_participant_left_payload.rb +295 -0
  283. data/lib/daily-ruby/models/webhook.rb +361 -0
  284. data/lib/daily-ruby/version.rb +6 -6
  285. data/lib/daily-ruby.rb +140 -18
  286. data/run.sh +3 -3
  287. data/spec/api/batch_rooms_api_spec.rb +58 -0
  288. data/spec/api/dialin_api_spec.rb +47 -0
  289. data/spec/api/domain_api_spec.rb +58 -0
  290. data/spec/api/logs_api_spec.rb +70 -0
  291. data/spec/api/meeting_tokens_api_spec.rb +21 -8
  292. data/spec/api/meetings_api_spec.rb +81 -0
  293. data/spec/api/phone_numbers_api_spec.rb +87 -0
  294. data/spec/api/presence_api_spec.rb +45 -0
  295. data/spec/api/recordings_api_spec.rb +86 -0
  296. data/spec/api/rooms_api_spec.rb +278 -0
  297. data/spec/api/transcript_api_spec.rb +87 -0
  298. data/spec/api/webhooks_api_spec.rb +95 -0
  299. data/spec/models/batch_processor_error_payload_input_spec.rb +58 -0
  300. data/spec/models/batch_processor_error_payload_spec.rb +64 -0
  301. data/spec/models/batch_processor_error_spec.rb +58 -0
  302. data/spec/models/batch_processor_job_finished_payload_input_spec.rb +58 -0
  303. data/spec/models/batch_processor_job_finished_payload_output_concept_spec.rb +46 -0
  304. data/spec/models/batch_processor_job_finished_payload_output_soap_s3_config_spec.rb +48 -0
  305. data/spec/models/batch_processor_job_finished_payload_output_soap_spec.rb +46 -0
  306. data/spec/models/batch_processor_job_finished_payload_output_spec.rb +54 -0
  307. data/spec/models/batch_processor_job_finished_payload_output_summary_spec.rb +46 -0
  308. data/spec/models/batch_processor_job_finished_payload_output_transcription_inner_spec.rb +46 -0
  309. data/spec/models/batch_processor_job_finished_payload_spec.rb +64 -0
  310. data/spec/models/batch_processor_job_finished_spec.rb +58 -0
  311. data/spec/models/batch_room_create_request_rooms_inner_spec.rb +48 -0
  312. data/spec/models/batch_room_create_request_spec.rb +36 -0
  313. data/spec/models/batch_room_delete200_response_spec.rb +36 -0
  314. data/spec/models/buy_phone_number_request_spec.rb +36 -0
  315. data/spec/models/create_meeting_token200_response_spec.rb +36 -0
  316. data/spec/models/create_meeting_token_request_spec.rb +36 -0
  317. data/spec/models/create_room200_response_spec.rb +72 -0
  318. data/spec/models/{room_request_spec.rb → create_room_request_spec.rb} +10 -14
  319. data/spec/models/daily_live_streaming_options_rtmp_url_spec.rb +32 -0
  320. data/spec/models/daily_live_streaming_options_spec.rb +102 -0
  321. data/spec/models/daily_streaming_active_participant_layout_config_spec.rb +40 -0
  322. data/spec/models/daily_streaming_custom_layout_config_composition_params_spec.rb +21 -0
  323. data/spec/models/daily_streaming_custom_layout_config_composition_params_value_spec.rb +21 -0
  324. data/spec/models/daily_streaming_custom_layout_config_spec.rb +58 -0
  325. data/spec/models/daily_streaming_default_layout_config_spec.rb +46 -0
  326. data/spec/models/daily_streaming_endpoint_spec.rb +36 -0
  327. data/spec/models/daily_streaming_layout_config_spec.rb +38 -0
  328. data/spec/models/daily_streaming_options_spec.rb +90 -0
  329. data/spec/models/daily_streaming_portrait_layout_config_spec.rb +52 -0
  330. data/spec/models/daily_streaming_portrait_layout_variant_spec.rb +30 -0
  331. data/spec/models/daily_streaming_single_participant_layout_config_spec.rb +46 -0
  332. data/spec/models/delete_transcript200_response_spec.rb +76 -0
  333. data/spec/models/dialout_properties_codecs_spec.rb +42 -0
  334. data/spec/models/dialout_properties_spec.rb +60 -0
  335. data/spec/models/{room_request_properties_spec.rb → domain_properties_spec.rb} +39 -49
  336. data/spec/models/domain_spec.rb +36 -0
  337. data/spec/models/eject200_response_spec.rb +36 -0
  338. data/spec/models/eject_request_spec.rb +36 -0
  339. data/spec/models/get_domain_config200_response_config_recordings_bucket_spec.rb +42 -0
  340. data/spec/models/get_domain_config200_response_config_spec.rb +144 -0
  341. data/spec/models/get_domain_config200_response_spec.rb +48 -0
  342. data/spec/models/get_meeting_info200_response_data_inner_participants_inner_spec.rb +60 -0
  343. data/spec/models/get_meeting_info200_response_data_inner_spec.rb +66 -0
  344. data/spec/models/get_meeting_info200_response_spec.rb +42 -0
  345. data/spec/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner_spec.rb +66 -0
  346. data/spec/models/get_presence200_response_spec.rb +36 -0
  347. data/spec/models/get_recording_info200_response_spec.rb +94 -0
  348. data/spec/models/get_recording_info200_response_tracks_inner_spec.rb +52 -0
  349. data/spec/models/get_recording_link200_response_spec.rb +42 -0
  350. data/spec/models/get_transcript_info200_response_out_params_spec.rb +48 -0
  351. data/spec/models/get_transcript_info200_response_spec.rb +82 -0
  352. data/spec/models/get_transcript_link200_response_spec.rb +48 -0
  353. data/spec/models/list_api_logs200_response_spec.rb +96 -0
  354. data/spec/models/list_recordings200_response_data_inner_spec.rb +72 -0
  355. data/spec/models/list_recordings200_response_spec.rb +42 -0
  356. data/spec/models/list_rooms200_response_data_inner_config_spec.rb +36 -0
  357. data/spec/models/list_rooms200_response_data_inner_spec.rb +72 -0
  358. data/spec/models/list_rooms200_response_spec.rb +42 -0
  359. data/spec/models/list_transcript200_response_data_inner_spec.rb +70 -0
  360. data/spec/models/list_transcript200_response_spec.rb +42 -0
  361. data/spec/models/meeting_ended_payload_spec.rb +54 -0
  362. data/spec/models/meeting_ended_spec.rb +58 -0
  363. data/spec/models/meeting_participants_get_res_data_inner_spec.rb +66 -0
  364. data/spec/models/meeting_participants_get_res_spec.rb +42 -0
  365. data/spec/models/meeting_started_payload_spec.rb +48 -0
  366. data/spec/models/meeting_started_spec.rb +58 -0
  367. data/spec/models/meetings_meeting_get_res_spec.rb +66 -0
  368. data/spec/models/participant_joined_payload_permissions_spec.rb +48 -0
  369. data/spec/models/participant_joined_payload_spec.rb +78 -0
  370. data/spec/models/participant_joined_spec.rb +58 -0
  371. data/spec/models/participant_left_payload_spec.rb +84 -0
  372. data/spec/models/participant_left_spec.rb +58 -0
  373. data/spec/models/{meeting_token_request_properties_permissions_can_send_spec.rb → permissions_can_admin_spec.rb} +6 -6
  374. data/spec/models/{meeting_token_request_properties_permissions_can_admin_spec.rb → permissions_can_send_spec.rb} +6 -6
  375. data/spec/models/{meeting_token_request_properties_permissions_spec.rb → permissions_spec.rb} +10 -10
  376. data/spec/models/pin_dialin_inner_ivr_greeting_spec.rb +36 -0
  377. data/spec/models/pin_dialin_inner_spec.rb +48 -0
  378. data/spec/models/pinless_call_update_request_spec.rb +48 -0
  379. data/spec/models/pinless_dialin_inner_spec.rb +54 -0
  380. data/spec/models/post_webhook_spec.rb +52 -0
  381. data/spec/models/{meeting_token_request_properties_spec.rb → properties_spec.rb} +27 -15
  382. data/spec/models/recording_error_payload_spec.rb +64 -0
  383. data/spec/models/recording_error_spec.rb +58 -0
  384. data/spec/models/recording_ready_to_download_payload_spec.rb +92 -0
  385. data/spec/models/recording_ready_to_download_spec.rb +58 -0
  386. data/spec/models/recording_started_payload_spec.rb +70 -0
  387. data/spec/models/recording_started_spec.rb +58 -0
  388. data/spec/models/recording_streaming_options_spec.rb +100 -0
  389. data/spec/models/recordings_bucket_spec.rb +60 -0
  390. data/spec/models/room_dial_out_send_dtmf_request_spec.rb +42 -0
  391. data/spec/models/room_dial_out_stop_request_spec.rb +36 -0
  392. data/spec/models/room_properties_spec.rb +272 -0
  393. data/spec/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner_spec.rb +60 -0
  394. data/spec/models/room_properties_streaming_endpoints_inner_spec.rb +66 -0
  395. data/spec/models/room_sip_call_transfer_request_spec.rb +42 -0
  396. data/spec/models/{room_response_spec.rb → rooms_room_name_get_res_spec.rb} +16 -10
  397. data/spec/models/rooms_room_name_presence_get_res_data_inner_spec.rb +66 -0
  398. data/spec/models/rooms_room_name_presence_get_res_spec.rb +42 -0
  399. data/spec/models/send_app_message_request_spec.rb +42 -0
  400. data/spec/models/set_room_config_request_spec.rb +42 -0
  401. data/spec/models/set_session_data_request_spec.rb +52 -0
  402. data/spec/models/streaming_ended_payload_spec.rb +48 -0
  403. data/spec/models/streaming_ended_spec.rb +58 -0
  404. data/spec/models/streaming_error_payload_spec.rb +60 -0
  405. data/spec/models/streaming_error_spec.rb +58 -0
  406. data/spec/models/streaming_started_payload_spec.rb +54 -0
  407. data/spec/models/streaming_started_spec.rb +58 -0
  408. data/spec/models/streaming_updated_payload_spec.rb +54 -0
  409. data/spec/models/streaming_updated_spec.rb +58 -0
  410. data/spec/models/transcription_bucket_spec.rb +54 -0
  411. data/spec/models/transcription_properties_endpointing_spec.rb +32 -0
  412. data/spec/models/transcription_properties_redact_spec.rb +32 -0
  413. data/spec/models/transcription_properties_spec.rb +78 -0
  414. data/spec/models/update_permissions_request_data_value_can_send_spec.rb +32 -0
  415. data/spec/models/update_permissions_request_data_value_spec.rb +48 -0
  416. data/spec/models/update_permissions_request_spec.rb +36 -0
  417. data/spec/models/update_webhook_spec.rb +52 -0
  418. data/spec/models/validate_meeting_token200_response_spec.rb +66 -0
  419. data/spec/models/waiting_participant_joined_payload_spec.rb +78 -0
  420. data/spec/models/waiting_participant_joined_spec.rb +58 -0
  421. data/spec/models/waiting_participant_left_payload_spec.rb +84 -0
  422. data/spec/models/waiting_participant_left_spec.rb +58 -0
  423. data/spec/models/webhook_spec.rb +100 -0
  424. data/spec/spec_helper.rb +5 -5
  425. metadata +563 -56
  426. data/daily.yaml +0 -460
  427. data/docs/MeetingTokenRequest.md +0 -18
  428. data/docs/MeetingTokenRequestProperties.md +0 -56
  429. data/docs/MeetingTokenRequestPropertiesPermissions.md +0 -22
  430. data/docs/MeetingTokenResponse.md +0 -18
  431. data/docs/RoomApi.md +0 -297
  432. data/docs/RoomDeletedResponse.md +0 -20
  433. data/docs/RoomNotFoundResponse.md +0 -20
  434. data/docs/RoomRequestProperties.md +0 -76
  435. data/docs/RoomResponse.md +0 -28
  436. data/docs/ServerErrorResponse.md +0 -18
  437. data/lib/daily-ruby/api/room_api.rb +0 -281
  438. data/lib/daily-ruby/models/room_request_properties.rb +0 -521
  439. data/spec/api/room_api_spec.rb +0 -86
  440. data/spec/models/meeting_token_request_spec.rb +0 -36
  441. data/spec/models/meeting_token_response_spec.rb +0 -36
  442. data/spec/models/room_deleted_response_spec.rb +0 -42
  443. data/spec/models/room_not_found_response_spec.rb +0 -42
  444. data/spec/models/server_error_response_spec.rb +0 -36
@@ -0,0 +1,243 @@
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
+ Generator version: 7.8.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Daily
17
+ #
18
+ class GetPresence200Response
19
+ attr_accessor :a_ivw_whz_hl_lhr_sd_hdw7_ew
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'a_ivw_whz_hl_lhr_sd_hdw7_ew' => :'aIVWWhzHlLHrSdHdw7EW'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'a_ivw_whz_hl_lhr_sd_hdw7_ew' => :'Array<GetPresence200ResponseAIVWWhzHlLHrSdHdw7EWInner>'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::GetPresence200Response` initialize method"
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::GetPresence200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'a_ivw_whz_hl_lhr_sd_hdw7_ew')
62
+ if (value = attributes[:'a_ivw_whz_hl_lhr_sd_hdw7_ew']).is_a?(Array)
63
+ self.a_ivw_whz_hl_lhr_sd_hdw7_ew = value
64
+ end
65
+ else
66
+ self.a_ivw_whz_hl_lhr_sd_hdw7_ew = nil
67
+ end
68
+ end
69
+
70
+ # Show invalid properties with the reasons. Usually used together with valid?
71
+ # @return Array for valid properties with the reasons
72
+ def list_invalid_properties
73
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
74
+ invalid_properties = Array.new
75
+ if @a_ivw_whz_hl_lhr_sd_hdw7_ew.nil?
76
+ invalid_properties.push('invalid value for "a_ivw_whz_hl_lhr_sd_hdw7_ew", a_ivw_whz_hl_lhr_sd_hdw7_ew cannot be nil.')
77
+ end
78
+
79
+ if @a_ivw_whz_hl_lhr_sd_hdw7_ew.length < 1
80
+ invalid_properties.push('invalid value for "a_ivw_whz_hl_lhr_sd_hdw7_ew", number of items must be greater than or equal to 1.')
81
+ end
82
+
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ warn '[DEPRECATED] the `valid?` method is obsolete'
90
+ return false if @a_ivw_whz_hl_lhr_sd_hdw7_ew.nil?
91
+ return false if @a_ivw_whz_hl_lhr_sd_hdw7_ew.length < 1
92
+ true
93
+ end
94
+
95
+ # Custom attribute writer method with validation
96
+ # @param [Object] a_ivw_whz_hl_lhr_sd_hdw7_ew Value to be assigned
97
+ def a_ivw_whz_hl_lhr_sd_hdw7_ew=(a_ivw_whz_hl_lhr_sd_hdw7_ew)
98
+ if a_ivw_whz_hl_lhr_sd_hdw7_ew.nil?
99
+ fail ArgumentError, 'a_ivw_whz_hl_lhr_sd_hdw7_ew cannot be nil'
100
+ end
101
+
102
+ if a_ivw_whz_hl_lhr_sd_hdw7_ew.length < 1
103
+ fail ArgumentError, 'invalid value for "a_ivw_whz_hl_lhr_sd_hdw7_ew", number of items must be greater than or equal to 1.'
104
+ end
105
+
106
+ @a_ivw_whz_hl_lhr_sd_hdw7_ew = a_ivw_whz_hl_lhr_sd_hdw7_ew
107
+ end
108
+
109
+ # Checks equality by comparing each attribute.
110
+ # @param [Object] Object to be compared
111
+ def ==(o)
112
+ return true if self.equal?(o)
113
+ self.class == o.class &&
114
+ a_ivw_whz_hl_lhr_sd_hdw7_ew == o.a_ivw_whz_hl_lhr_sd_hdw7_ew
115
+ end
116
+
117
+ # @see the `==` method
118
+ # @param [Object] Object to be compared
119
+ def eql?(o)
120
+ self == o
121
+ end
122
+
123
+ # Calculates hash code according to all attributes.
124
+ # @return [Integer] Hash code
125
+ def hash
126
+ [a_ivw_whz_hl_lhr_sd_hdw7_ew].hash
127
+ end
128
+
129
+ # Builds the object from hash
130
+ # @param [Hash] attributes Model attributes in the form of hash
131
+ # @return [Object] Returns the model itself
132
+ def self.build_from_hash(attributes)
133
+ return nil unless attributes.is_a?(Hash)
134
+ attributes = attributes.transform_keys(&:to_sym)
135
+ transformed_hash = {}
136
+ openapi_types.each_pair do |key, type|
137
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
138
+ transformed_hash["#{key}"] = nil
139
+ elsif type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the attribute
141
+ # is documented as an array but the input is not
142
+ if attributes[attribute_map[key]].is_a?(Array)
143
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
144
+ end
145
+ elsif !attributes[attribute_map[key]].nil?
146
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
147
+ end
148
+ end
149
+ new(transformed_hash)
150
+ end
151
+
152
+ # Deserializes the data based on type
153
+ # @param string type Data type
154
+ # @param string value Value to be deserialized
155
+ # @return [Object] Deserialized data
156
+ def self._deserialize(type, value)
157
+ case type.to_sym
158
+ when :Time
159
+ Time.parse(value)
160
+ when :Date
161
+ Date.parse(value)
162
+ when :String
163
+ value.to_s
164
+ when :Integer
165
+ value.to_i
166
+ when :Float
167
+ value.to_f
168
+ when :Boolean
169
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
170
+ true
171
+ else
172
+ false
173
+ end
174
+ when :Object
175
+ # generic object (usually a Hash), return directly
176
+ value
177
+ when /\AArray<(?<inner_type>.+)>\z/
178
+ inner_type = Regexp.last_match[:inner_type]
179
+ value.map { |v| _deserialize(inner_type, v) }
180
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
181
+ k_type = Regexp.last_match[:k_type]
182
+ v_type = Regexp.last_match[:v_type]
183
+ {}.tap do |hash|
184
+ value.each do |k, v|
185
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
186
+ end
187
+ end
188
+ else # model
189
+ # models (e.g. Pet) or oneOf
190
+ klass = Daily.const_get(type)
191
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
192
+ end
193
+ end
194
+
195
+ # Returns the string representation of the object
196
+ # @return [String] String presentation of the object
197
+ def to_s
198
+ to_hash.to_s
199
+ end
200
+
201
+ # to_body is an alias to to_hash (backward compatibility)
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_body
204
+ to_hash
205
+ end
206
+
207
+ # Returns the object in the form of hash
208
+ # @return [Hash] Returns the object in the form of hash
209
+ def to_hash
210
+ hash = {}
211
+ self.class.attribute_map.each_pair do |attr, param|
212
+ value = self.send(attr)
213
+ if value.nil?
214
+ is_nullable = self.class.openapi_nullable.include?(attr)
215
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
216
+ end
217
+
218
+ hash[param] = _to_hash(value)
219
+ end
220
+ hash
221
+ end
222
+
223
+ # Outputs non-array value in the form of hash
224
+ # For object, use to_hash. Otherwise, just return the value
225
+ # @param [Object] value Any valid value
226
+ # @return [Hash] Returns the value in the form of hash
227
+ def _to_hash(value)
228
+ if value.is_a?(Array)
229
+ value.compact.map { |v| _to_hash(v) }
230
+ elsif value.is_a?(Hash)
231
+ {}.tap do |hash|
232
+ value.each { |k, v| hash[k] = _to_hash(v) }
233
+ end
234
+ elsif value.respond_to? :to_hash
235
+ value.to_hash
236
+ else
237
+ value
238
+ end
239
+ end
240
+
241
+ end
242
+
243
+ end
@@ -0,0 +1,370 @@
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
+ Generator version: 7.8.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Daily
17
+ class GetPresence200ResponseAIVWWhzHlLHrSdHdw7EWInner
18
+ attr_accessor :room
19
+
20
+ attr_accessor :id
21
+
22
+ attr_accessor :user_id
23
+
24
+ attr_accessor :user_name
25
+
26
+ attr_accessor :join_time
27
+
28
+ attr_accessor :duration
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'room' => :'room',
34
+ :'id' => :'id',
35
+ :'user_id' => :'userId',
36
+ :'user_name' => :'userName',
37
+ :'join_time' => :'joinTime',
38
+ :'duration' => :'duration'
39
+ }
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'room' => :'String',
51
+ :'id' => :'String',
52
+ :'user_id' => :'Object',
53
+ :'user_name' => :'String',
54
+ :'join_time' => :'String',
55
+ :'duration' => :'Float'
56
+ }
57
+ end
58
+
59
+ # List of attributes with nullable: true
60
+ def self.openapi_nullable
61
+ Set.new([
62
+ ])
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ if (!attributes.is_a?(Hash))
69
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::GetPresence200ResponseAIVWWhzHlLHrSdHdw7EWInner` initialize method"
70
+ end
71
+
72
+ # check to see if the attribute exists and convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}) { |(k, v), h|
74
+ if (!self.class.attribute_map.key?(k.to_sym))
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::GetPresence200ResponseAIVWWhzHlLHrSdHdw7EWInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ end
77
+ h[k.to_sym] = v
78
+ }
79
+
80
+ if attributes.key?(:'room')
81
+ self.room = attributes[:'room']
82
+ else
83
+ self.room = nil
84
+ end
85
+
86
+ if attributes.key?(:'id')
87
+ self.id = attributes[:'id']
88
+ else
89
+ self.id = nil
90
+ end
91
+
92
+ if attributes.key?(:'user_id')
93
+ self.user_id = attributes[:'user_id']
94
+ end
95
+
96
+ if attributes.key?(:'user_name')
97
+ self.user_name = attributes[:'user_name']
98
+ else
99
+ self.user_name = nil
100
+ end
101
+
102
+ if attributes.key?(:'join_time')
103
+ self.join_time = attributes[:'join_time']
104
+ else
105
+ self.join_time = nil
106
+ end
107
+
108
+ if attributes.key?(:'duration')
109
+ self.duration = attributes[:'duration']
110
+ else
111
+ self.duration = nil
112
+ end
113
+ end
114
+
115
+ # Show invalid properties with the reasons. Usually used together with valid?
116
+ # @return Array for valid properties with the reasons
117
+ def list_invalid_properties
118
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
119
+ invalid_properties = Array.new
120
+ if @room.nil?
121
+ invalid_properties.push('invalid value for "room", room cannot be nil.')
122
+ end
123
+
124
+ if @room.to_s.length < 1
125
+ invalid_properties.push('invalid value for "room", the character length must be great than or equal to 1.')
126
+ end
127
+
128
+ if @id.nil?
129
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
130
+ end
131
+
132
+ if @id.to_s.length < 1
133
+ invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.')
134
+ end
135
+
136
+ if @user_name.nil?
137
+ invalid_properties.push('invalid value for "user_name", user_name cannot be nil.')
138
+ end
139
+
140
+ if @user_name.to_s.length < 1
141
+ invalid_properties.push('invalid value for "user_name", the character length must be great than or equal to 1.')
142
+ end
143
+
144
+ if @join_time.nil?
145
+ invalid_properties.push('invalid value for "join_time", join_time cannot be nil.')
146
+ end
147
+
148
+ if @join_time.to_s.length < 1
149
+ invalid_properties.push('invalid value for "join_time", the character length must be great than or equal to 1.')
150
+ end
151
+
152
+ if @duration.nil?
153
+ invalid_properties.push('invalid value for "duration", duration cannot be nil.')
154
+ end
155
+
156
+ invalid_properties
157
+ end
158
+
159
+ # Check to see if the all the properties in the model are valid
160
+ # @return true if the model is valid
161
+ def valid?
162
+ warn '[DEPRECATED] the `valid?` method is obsolete'
163
+ return false if @room.nil?
164
+ return false if @room.to_s.length < 1
165
+ return false if @id.nil?
166
+ return false if @id.to_s.length < 1
167
+ return false if @user_name.nil?
168
+ return false if @user_name.to_s.length < 1
169
+ return false if @join_time.nil?
170
+ return false if @join_time.to_s.length < 1
171
+ return false if @duration.nil?
172
+ true
173
+ end
174
+
175
+ # Custom attribute writer method with validation
176
+ # @param [Object] room Value to be assigned
177
+ def room=(room)
178
+ if room.nil?
179
+ fail ArgumentError, 'room cannot be nil'
180
+ end
181
+
182
+ if room.to_s.length < 1
183
+ fail ArgumentError, 'invalid value for "room", the character length must be great than or equal to 1.'
184
+ end
185
+
186
+ @room = room
187
+ end
188
+
189
+ # Custom attribute writer method with validation
190
+ # @param [Object] id Value to be assigned
191
+ def id=(id)
192
+ if id.nil?
193
+ fail ArgumentError, 'id cannot be nil'
194
+ end
195
+
196
+ if id.to_s.length < 1
197
+ fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
198
+ end
199
+
200
+ @id = id
201
+ end
202
+
203
+ # Custom attribute writer method with validation
204
+ # @param [Object] user_name Value to be assigned
205
+ def user_name=(user_name)
206
+ if user_name.nil?
207
+ fail ArgumentError, 'user_name cannot be nil'
208
+ end
209
+
210
+ if user_name.to_s.length < 1
211
+ fail ArgumentError, 'invalid value for "user_name", the character length must be great than or equal to 1.'
212
+ end
213
+
214
+ @user_name = user_name
215
+ end
216
+
217
+ # Custom attribute writer method with validation
218
+ # @param [Object] join_time Value to be assigned
219
+ def join_time=(join_time)
220
+ if join_time.nil?
221
+ fail ArgumentError, 'join_time cannot be nil'
222
+ end
223
+
224
+ if join_time.to_s.length < 1
225
+ fail ArgumentError, 'invalid value for "join_time", the character length must be great than or equal to 1.'
226
+ end
227
+
228
+ @join_time = join_time
229
+ end
230
+
231
+ # Checks equality by comparing each attribute.
232
+ # @param [Object] Object to be compared
233
+ def ==(o)
234
+ return true if self.equal?(o)
235
+ self.class == o.class &&
236
+ room == o.room &&
237
+ id == o.id &&
238
+ user_id == o.user_id &&
239
+ user_name == o.user_name &&
240
+ join_time == o.join_time &&
241
+ duration == o.duration
242
+ end
243
+
244
+ # @see the `==` method
245
+ # @param [Object] Object to be compared
246
+ def eql?(o)
247
+ self == o
248
+ end
249
+
250
+ # Calculates hash code according to all attributes.
251
+ # @return [Integer] Hash code
252
+ def hash
253
+ [room, id, user_id, user_name, join_time, duration].hash
254
+ end
255
+
256
+ # Builds the object from hash
257
+ # @param [Hash] attributes Model attributes in the form of hash
258
+ # @return [Object] Returns the model itself
259
+ def self.build_from_hash(attributes)
260
+ return nil unless attributes.is_a?(Hash)
261
+ attributes = attributes.transform_keys(&:to_sym)
262
+ transformed_hash = {}
263
+ openapi_types.each_pair do |key, type|
264
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
265
+ transformed_hash["#{key}"] = nil
266
+ elsif type =~ /\AArray<(.*)>/i
267
+ # check to ensure the input is an array given that the attribute
268
+ # is documented as an array but the input is not
269
+ if attributes[attribute_map[key]].is_a?(Array)
270
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
271
+ end
272
+ elsif !attributes[attribute_map[key]].nil?
273
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
274
+ end
275
+ end
276
+ new(transformed_hash)
277
+ end
278
+
279
+ # Deserializes the data based on type
280
+ # @param string type Data type
281
+ # @param string value Value to be deserialized
282
+ # @return [Object] Deserialized data
283
+ def self._deserialize(type, value)
284
+ case type.to_sym
285
+ when :Time
286
+ Time.parse(value)
287
+ when :Date
288
+ Date.parse(value)
289
+ when :String
290
+ value.to_s
291
+ when :Integer
292
+ value.to_i
293
+ when :Float
294
+ value.to_f
295
+ when :Boolean
296
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
297
+ true
298
+ else
299
+ false
300
+ end
301
+ when :Object
302
+ # generic object (usually a Hash), return directly
303
+ value
304
+ when /\AArray<(?<inner_type>.+)>\z/
305
+ inner_type = Regexp.last_match[:inner_type]
306
+ value.map { |v| _deserialize(inner_type, v) }
307
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
308
+ k_type = Regexp.last_match[:k_type]
309
+ v_type = Regexp.last_match[:v_type]
310
+ {}.tap do |hash|
311
+ value.each do |k, v|
312
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
313
+ end
314
+ end
315
+ else # model
316
+ # models (e.g. Pet) or oneOf
317
+ klass = Daily.const_get(type)
318
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
319
+ end
320
+ end
321
+
322
+ # Returns the string representation of the object
323
+ # @return [String] String presentation of the object
324
+ def to_s
325
+ to_hash.to_s
326
+ end
327
+
328
+ # to_body is an alias to to_hash (backward compatibility)
329
+ # @return [Hash] Returns the object in the form of hash
330
+ def to_body
331
+ to_hash
332
+ end
333
+
334
+ # Returns the object in the form of hash
335
+ # @return [Hash] Returns the object in the form of hash
336
+ def to_hash
337
+ hash = {}
338
+ self.class.attribute_map.each_pair do |attr, param|
339
+ value = self.send(attr)
340
+ if value.nil?
341
+ is_nullable = self.class.openapi_nullable.include?(attr)
342
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
343
+ end
344
+
345
+ hash[param] = _to_hash(value)
346
+ end
347
+ hash
348
+ end
349
+
350
+ # Outputs non-array value in the form of hash
351
+ # For object, use to_hash. Otherwise, just return the value
352
+ # @param [Object] value Any valid value
353
+ # @return [Hash] Returns the value in the form of hash
354
+ def _to_hash(value)
355
+ if value.is_a?(Array)
356
+ value.compact.map { |v| _to_hash(v) }
357
+ elsif value.is_a?(Hash)
358
+ {}.tap do |hash|
359
+ value.each { |k, v| hash[k] = _to_hash(v) }
360
+ end
361
+ elsif value.respond_to? :to_hash
362
+ value.to_hash
363
+ else
364
+ value
365
+ end
366
+ end
367
+
368
+ end
369
+
370
+ end