daily-ruby 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +17 -16
- data/README.md +205 -192
- data/daily-ruby-1.0.0.gem +0 -0
- data/daily-ruby.gemspec +2 -1
- data/docs/BatchProcessorError.md +24 -0
- data/docs/BatchProcessorErrorPayload.md +26 -0
- data/docs/BatchProcessorErrorPayloadInput.md +24 -0
- data/docs/BatchProcessorJobFinished.md +24 -0
- data/docs/BatchProcessorJobFinishedPayload.md +26 -0
- data/docs/BatchProcessorJobFinishedPayloadInput.md +24 -0
- data/docs/BatchProcessorJobFinishedPayloadOutput.md +24 -0
- data/docs/BatchProcessorJobFinishedPayloadOutputConcept.md +20 -0
- data/docs/BatchProcessorJobFinishedPayloadOutputSoap.md +20 -0
- data/docs/BatchProcessorJobFinishedPayloadOutputSoapS3Config.md +22 -0
- data/docs/BatchProcessorJobFinishedPayloadOutputSummary.md +20 -0
- data/docs/BatchProcessorJobFinishedPayloadOutputTranscriptionInner.md +20 -0
- data/docs/BuyPhoneNumberRequest.md +18 -0
- data/docs/DailyStreamingCustomLayoutConfig.md +1 -1
- data/docs/DailyStreamingCustomLayoutConfigCompositionParamsValue.md +15 -0
- data/docs/DialinApi.md +80 -0
- data/docs/DialoutProperties.md +26 -0
- data/docs/DialoutPropertiesCodecs.md +20 -0
- data/docs/DomainProperties.md +14 -4
- data/docs/EjectRequest.md +6 -2
- data/docs/GetDomainConfig200ResponseConfig.md +2 -0
- data/docs/GetTranscriptInfo200Response.md +1 -1
- data/docs/ListAPILogs200Response.md +1 -1
- data/docs/MeetingEnded.md +24 -0
- data/docs/MeetingEndedPayload.md +24 -0
- data/docs/MeetingParticipantsGetRes.md +0 -2
- data/docs/MeetingStarted.md +24 -0
- data/docs/MeetingStartedPayload.md +22 -0
- data/docs/ParticipantJoined.md +24 -0
- data/docs/ParticipantJoinedPayload.md +32 -0
- data/docs/ParticipantJoinedPayloadPermissions.md +22 -0
- data/docs/ParticipantLeft.md +24 -0
- data/docs/ParticipantLeftPayload.md +34 -0
- data/docs/PhoneNumbersApi.md +304 -0
- data/docs/PinDialinInner.md +22 -0
- data/docs/PinDialinInnerIvrGreeting.md +18 -0
- data/docs/PinlessCallUpdateRequest.md +22 -0
- data/docs/PinlessDialinInner.md +24 -0
- data/docs/PostWebhook.md +5 -1
- data/docs/Properties.md +3 -1
- data/docs/RecordingError.md +1 -1
- data/docs/RecordingReadyToDownload.md +1 -1
- data/docs/RecordingStarted.md +1 -1
- data/docs/RoomDialOutSendDTMFRequest.md +20 -0
- data/docs/RoomDialOutStopRequest.md +18 -0
- data/docs/RoomProperties.md +12 -2
- data/docs/RoomSipCallTransferRequest.md +20 -0
- data/docs/RoomsApi.md +376 -0
- data/docs/StreamingEnded.md +1 -1
- data/docs/StreamingError.md +1 -1
- data/docs/StreamingStarted.md +1 -1
- data/docs/StreamingUpdated.md +1 -1
- data/docs/TranscriptionProperties.md +4 -2
- data/docs/UpdateWebhook.md +5 -1
- data/docs/WaitingParticipantJoined.md +24 -0
- data/docs/WaitingParticipantJoinedPayload.md +32 -0
- data/docs/WaitingParticipantLeft.md +24 -0
- data/docs/WaitingParticipantLeftPayload.md +34 -0
- data/docs/Webhook.md +6 -4
- data/lib/daily-ruby/api/batch_rooms_api.rb +3 -3
- data/lib/daily-ruby/api/dialin_api.rb +86 -0
- data/lib/daily-ruby/api/domain_api.rb +3 -3
- data/lib/daily-ruby/api/logs_api.rb +4 -4
- data/lib/daily-ruby/api/meeting_tokens_api.rb +3 -3
- data/lib/daily-ruby/api/meetings_api.rb +4 -4
- data/lib/daily-ruby/api/phone_numbers_api.rb +281 -0
- data/lib/daily-ruby/api/presence_api.rb +2 -2
- data/lib/daily-ruby/api/recordings_api.rb +5 -5
- data/lib/daily-ruby/api/rooms_api.rb +370 -20
- data/lib/daily-ruby/api/transcript_api.rb +6 -6
- data/lib/daily-ruby/api/webhooks_api.rb +6 -6
- data/lib/daily-ruby/api_client.rb +34 -28
- data/lib/daily-ruby/api_error.rb +1 -1
- data/lib/daily-ruby/configuration.rb +11 -1
- data/lib/daily-ruby/models/batch_processor_error.rb +278 -0
- data/lib/daily-ruby/models/batch_processor_error_payload.rb +289 -0
- data/lib/daily-ruby/models/batch_processor_error_payload_input.rb +280 -0
- data/lib/daily-ruby/models/batch_processor_job_finished.rb +278 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload.rb +288 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_input.rb +280 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output.rb +245 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_concept.rb +259 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_soap.rb +259 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_soap_s3_config.rb +236 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_summary.rb +259 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_transcription_inner.rb +258 -0
- data/lib/daily-ruby/models/batch_room_create_request.rb +1 -1
- data/lib/daily-ruby/models/batch_room_create_request_rooms_inner.rb +1 -1
- data/lib/daily-ruby/models/batch_room_delete200_response.rb +1 -1
- data/lib/daily-ruby/models/buy_phone_number_request.rb +215 -0
- data/lib/daily-ruby/models/create_meeting_token200_response.rb +1 -1
- data/lib/daily-ruby/models/create_meeting_token_request.rb +1 -1
- data/lib/daily-ruby/models/create_room200_response.rb +1 -1
- data/lib/daily-ruby/models/create_room_request.rb +1 -1
- data/lib/daily-ruby/models/daily_live_streaming_options.rb +1 -1
- data/lib/daily-ruby/models/daily_live_streaming_options_rtmp_url.rb +1 -1
- data/lib/daily-ruby/models/daily_streaming_active_participant_layout_config.rb +3 -3
- data/lib/daily-ruby/models/daily_streaming_custom_layout_config.rb +4 -4
- data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params.rb +1 -1
- data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params_value.rb +105 -0
- data/lib/daily-ruby/models/daily_streaming_default_layout_config.rb +3 -3
- data/lib/daily-ruby/models/daily_streaming_endpoint.rb +1 -1
- data/lib/daily-ruby/models/daily_streaming_layout_config.rb +1 -1
- data/lib/daily-ruby/models/daily_streaming_options.rb +1 -1
- data/lib/daily-ruby/models/daily_streaming_portrait_layout_config.rb +3 -3
- data/lib/daily-ruby/models/daily_streaming_portrait_layout_variant.rb +3 -2
- data/lib/daily-ruby/models/daily_streaming_single_participant_layout_config.rb +3 -3
- data/lib/daily-ruby/models/delete_transcript200_response.rb +3 -3
- data/lib/daily-ruby/models/dialout_properties.rb +254 -0
- data/lib/daily-ruby/models/dialout_properties_codecs.rb +228 -0
- data/lib/daily-ruby/models/domain.rb +1 -1
- data/lib/daily-ruby/models/domain_properties.rb +74 -16
- data/lib/daily-ruby/models/eject200_response.rb +1 -1
- data/lib/daily-ruby/models/eject_request.rb +30 -6
- data/lib/daily-ruby/models/get_domain_config200_response.rb +1 -1
- data/lib/daily-ruby/models/get_domain_config200_response_config.rb +11 -2
- data/lib/daily-ruby/models/get_domain_config200_response_config_recordings_bucket.rb +1 -1
- data/lib/daily-ruby/models/get_meeting_info200_response.rb +1 -1
- data/lib/daily-ruby/models/get_meeting_info200_response_data_inner.rb +1 -1
- data/lib/daily-ruby/models/get_meeting_info200_response_data_inner_participants_inner.rb +1 -1
- data/lib/daily-ruby/models/get_presence200_response.rb +1 -1
- data/lib/daily-ruby/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner.rb +1 -1
- data/lib/daily-ruby/models/get_recording_info200_response.rb +3 -3
- data/lib/daily-ruby/models/get_recording_info200_response_tracks_inner.rb +3 -3
- data/lib/daily-ruby/models/get_recording_link200_response.rb +1 -1
- data/lib/daily-ruby/models/get_transcript_info200_response.rb +4 -4
- data/lib/daily-ruby/models/get_transcript_info200_response_out_params.rb +2 -1
- data/lib/daily-ruby/models/get_transcript_link200_response.rb +1 -1
- data/lib/daily-ruby/models/list_api_logs200_response.rb +2 -2
- data/lib/daily-ruby/models/list_recordings200_response.rb +1 -1
- data/lib/daily-ruby/models/list_recordings200_response_data_inner.rb +1 -1
- data/lib/daily-ruby/models/list_rooms200_response.rb +1 -1
- data/lib/daily-ruby/models/list_rooms200_response_data_inner.rb +1 -1
- data/lib/daily-ruby/models/list_rooms200_response_data_inner_config.rb +1 -1
- data/lib/daily-ruby/models/list_transcript200_response.rb +1 -1
- data/lib/daily-ruby/models/list_transcript200_response_data_inner.rb +3 -3
- data/lib/daily-ruby/models/meeting_ended.rb +278 -0
- data/lib/daily-ruby/models/meeting_ended_payload.rb +246 -0
- data/lib/daily-ruby/models/meeting_participants_get_res.rb +2 -11
- data/lib/daily-ruby/models/meeting_participants_get_res_data_inner.rb +1 -1
- data/lib/daily-ruby/models/meeting_started.rb +278 -0
- data/lib/daily-ruby/models/meeting_started_payload.rb +236 -0
- data/lib/daily-ruby/models/meetings_meeting_get_res.rb +1 -1
- data/lib/daily-ruby/models/participant_joined.rb +278 -0
- data/lib/daily-ruby/models/participant_joined_payload.rb +285 -0
- data/lib/daily-ruby/models/participant_joined_payload_permissions.rb +240 -0
- data/lib/daily-ruby/models/participant_left.rb +278 -0
- data/lib/daily-ruby/models/participant_left_payload.rb +295 -0
- data/lib/daily-ruby/models/permissions.rb +1 -1
- data/lib/daily-ruby/models/permissions_can_admin.rb +1 -1
- data/lib/daily-ruby/models/permissions_can_send.rb +1 -1
- data/lib/daily-ruby/models/pin_dialin_inner.rb +234 -0
- data/lib/daily-ruby/models/pin_dialin_inner_ivr_greeting.rb +215 -0
- data/lib/daily-ruby/models/pinless_call_update_request.rb +235 -0
- data/lib/daily-ruby/models/pinless_dialin_inner.rb +245 -0
- data/lib/daily-ruby/models/post_webhook.rb +37 -5
- data/lib/daily-ruby/models/properties.rb +17 -7
- data/lib/daily-ruby/models/recording_error.rb +4 -4
- data/lib/daily-ruby/models/recording_error_payload.rb +3 -3
- data/lib/daily-ruby/models/recording_ready_to_download.rb +4 -4
- data/lib/daily-ruby/models/recording_ready_to_download_payload.rb +5 -5
- data/lib/daily-ruby/models/recording_started.rb +4 -4
- data/lib/daily-ruby/models/recording_started_payload.rb +3 -3
- data/lib/daily-ruby/models/recording_streaming_options.rb +3 -3
- data/lib/daily-ruby/models/recordings_bucket.rb +1 -1
- data/lib/daily-ruby/models/room_dial_out_send_dtmf_request.rb +224 -0
- data/lib/daily-ruby/models/room_dial_out_stop_request.rb +215 -0
- data/lib/daily-ruby/models/room_properties.rb +67 -9
- data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner.rb +267 -267
- data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner.rb +1 -1
- data/lib/daily-ruby/models/room_sip_call_transfer_request.rb +224 -0
- data/lib/daily-ruby/models/rooms_room_name_get_res.rb +1 -1
- data/lib/daily-ruby/models/rooms_room_name_presence_get_res.rb +1 -1
- data/lib/daily-ruby/models/rooms_room_name_presence_get_res_data_inner.rb +1 -1
- data/lib/daily-ruby/models/send_app_message_request.rb +1 -1
- data/lib/daily-ruby/models/set_room_config_request.rb +1 -1
- data/lib/daily-ruby/models/set_session_data_request.rb +3 -3
- data/lib/daily-ruby/models/streaming_ended.rb +4 -4
- data/lib/daily-ruby/models/streaming_ended_payload.rb +1 -1
- data/lib/daily-ruby/models/streaming_error.rb +4 -4
- data/lib/daily-ruby/models/streaming_error_payload.rb +1 -1
- data/lib/daily-ruby/models/streaming_started.rb +4 -4
- data/lib/daily-ruby/models/streaming_started_payload.rb +1 -1
- data/lib/daily-ruby/models/streaming_updated.rb +4 -4
- data/lib/daily-ruby/models/streaming_updated_payload.rb +1 -1
- data/lib/daily-ruby/models/transcription_bucket.rb +1 -1
- data/lib/daily-ruby/models/transcription_properties.rb +16 -6
- data/lib/daily-ruby/models/transcription_properties_endpointing.rb +1 -1
- data/lib/daily-ruby/models/transcription_properties_redact.rb +1 -1
- data/lib/daily-ruby/models/update_permissions_request.rb +1 -1
- data/lib/daily-ruby/models/update_permissions_request_data_value.rb +1 -1
- data/lib/daily-ruby/models/update_permissions_request_data_value_can_send.rb +1 -1
- data/lib/daily-ruby/models/update_webhook.rb +37 -5
- data/lib/daily-ruby/models/validate_meeting_token200_response.rb +1 -1
- data/lib/daily-ruby/models/waiting_participant_joined.rb +278 -0
- data/lib/daily-ruby/models/waiting_participant_joined_payload.rb +285 -0
- data/lib/daily-ruby/models/waiting_participant_left.rb +278 -0
- data/lib/daily-ruby/models/waiting_participant_left_payload.rb +295 -0
- data/lib/daily-ruby/models/webhook.rb +32 -10
- data/lib/daily-ruby/version.rb +2 -2
- data/lib/daily-ruby.rb +39 -2
- data/run.sh +3 -3
- data/spec/api/dialin_api_spec.rb +47 -0
- data/spec/api/phone_numbers_api_spec.rb +87 -0
- data/spec/models/batch_processor_error_payload_input_spec.rb +58 -0
- data/spec/models/batch_processor_error_payload_spec.rb +64 -0
- data/spec/models/batch_processor_error_spec.rb +58 -0
- data/spec/models/batch_processor_job_finished_payload_input_spec.rb +58 -0
- data/spec/models/batch_processor_job_finished_payload_output_concept_spec.rb +46 -0
- data/spec/models/batch_processor_job_finished_payload_output_soap_s3_config_spec.rb +48 -0
- data/spec/models/batch_processor_job_finished_payload_output_soap_spec.rb +46 -0
- data/spec/models/batch_processor_job_finished_payload_output_spec.rb +54 -0
- data/spec/models/batch_processor_job_finished_payload_output_summary_spec.rb +46 -0
- data/spec/models/batch_processor_job_finished_payload_output_transcription_inner_spec.rb +46 -0
- data/spec/models/batch_processor_job_finished_payload_spec.rb +64 -0
- data/spec/models/batch_processor_job_finished_spec.rb +58 -0
- data/spec/models/buy_phone_number_request_spec.rb +36 -0
- data/spec/models/daily_streaming_custom_layout_config_composition_params_value_spec.rb +21 -0
- data/spec/models/dialout_properties_codecs_spec.rb +42 -0
- data/spec/models/dialout_properties_spec.rb +60 -0
- data/spec/models/meeting_ended_payload_spec.rb +54 -0
- data/spec/models/meeting_ended_spec.rb +58 -0
- data/spec/models/meeting_started_payload_spec.rb +48 -0
- data/spec/models/meeting_started_spec.rb +58 -0
- data/spec/models/participant_joined_payload_permissions_spec.rb +48 -0
- data/spec/models/participant_joined_payload_spec.rb +78 -0
- data/spec/models/participant_joined_spec.rb +58 -0
- data/spec/models/participant_left_payload_spec.rb +84 -0
- data/spec/models/participant_left_spec.rb +58 -0
- data/spec/models/pin_dialin_inner_ivr_greeting_spec.rb +36 -0
- data/spec/models/pin_dialin_inner_spec.rb +48 -0
- data/spec/models/pinless_call_update_request_spec.rb +48 -0
- data/spec/models/pinless_dialin_inner_spec.rb +54 -0
- data/spec/models/room_dial_out_send_dtmf_request_spec.rb +42 -0
- data/spec/models/room_dial_out_stop_request_spec.rb +36 -0
- data/spec/models/room_sip_call_transfer_request_spec.rb +42 -0
- data/spec/models/waiting_participant_joined_payload_spec.rb +78 -0
- data/spec/models/waiting_participant_joined_spec.rb +58 -0
- data/spec/models/waiting_participant_left_payload_spec.rb +84 -0
- data/spec/models/waiting_participant_left_spec.rb +58 -0
- data/spec/spec_helper.rb +1 -1
- metadata +170 -3
@@ -1,267 +1,267 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
#
|
19
|
-
|
20
|
-
|
21
|
-
#
|
22
|
-
|
23
|
-
|
24
|
-
#
|
25
|
-
|
26
|
-
|
27
|
-
#
|
28
|
-
|
29
|
-
|
30
|
-
#
|
31
|
-
|
32
|
-
|
33
|
-
#
|
34
|
-
|
35
|
-
|
36
|
-
#
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
#
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
#
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
#
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
#
|
72
|
-
#
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
#
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
#
|
114
|
-
#
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
#
|
122
|
-
#
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
#
|
129
|
-
#
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
#
|
142
|
-
#
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
#
|
148
|
-
#
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
#
|
165
|
-
#
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
#
|
177
|
-
#
|
178
|
-
#
|
179
|
-
#
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
#
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
#
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
#
|
220
|
-
#
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
#
|
226
|
-
#
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
#
|
232
|
-
#
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
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 RoomPropertiesStreamingEndpointsInner
|
18
|
+
# Used by the `startLiveStreaming()` API to reference which stream configuration to start.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# Whether the streaming endpoint is `rtmp` or `hls`.
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# The `s3Key` path prefix for where to store the recordings. Therefore, the final final master.m3u8 path template is `<bucket_name>/<path>/<mtgSessionId>/master.m3u8`, i.e. `hls_config['storage']['bucket_name']/hls_config['storage']['path']/<mtgSessionId>/master.m3u8`.
|
25
|
+
attr_accessor :hls_config_storage_path
|
26
|
+
|
27
|
+
# `path_template` is made up of a replacement string with prefixes, suffixes, or both. `path_template` without replacement string is also valid. The currently supported replacements are: - `epoch_time`: The epoch time in seconds (optional) - `domain_name`: Your Daily domain (optional) - `room_name`: The name of the room which is getting recorded (optional) - `mtg_session_id`: The ID of the meeting session which is getting recorded (optional) - `instance_id`: The instance ID of the recording (optional) - `live_streaming_id`: The ID of the live streaming in our DB (optional) The restrictions for defining a recording template are as follows: - The maximum size of the template is 1024 characters - Each replacement parameter should be placed within a curly bracket (e.g., `{domain_name}`) - Only alphanumeric characters `(0-9, A-Z, a-z)` and `.`, `/`, `-`, `_` are valid within the template Examples - Example domain: \"myDomain\" - Example room: \"myRoom\" - example hls bucket: \"HLS_S3_BUCKET\" Example 1: - Template: `my-hls-{domain_name}-{epoch_time}` - Resulting path of master.m3u8: `s3://HLS_S3_BUCKET/my-hls-myDomain-1675842936274/master.m3u8` Example 2: - Template: `{room_name}/{instance_id}/` - Resulting path of master.m3u8: `myRoom/d529cd2f-fbcc-4fb7-b2c0-c4995b1162b6/master.m3u8`
|
28
|
+
attr_accessor :hls_config_storage_path_template
|
29
|
+
|
30
|
+
# If `true`, the live stream will be saved as a recording after streaming has ended. If `false`, the stream is available only until the streaming is live.
|
31
|
+
attr_accessor :hls_config_save_hls_recording
|
32
|
+
|
33
|
+
# An optional array of variants to generate for HLS. For most use cases this property can be omitted as Daily uses sensible defaults. The array defines the resolution, FPS, and bitrate for each variant. The following limitations apply: - There can be a maximum of one variant with 1080p resolution. All other variants must be less than or equal to 720p. - A maximum of four variants can be specified, other than iframe-only stream - We do not support iframe-only variant, at least one full-stream variant is required
|
34
|
+
attr_accessor :hls_config_variants
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'name' => :'name',
|
40
|
+
:'type' => :'type',
|
41
|
+
:'hls_config_storage_path' => :'hls_config['storage']['path']',
|
42
|
+
:'hls_config_storage_path_template' => :'hls_config['storage']['path_template']',
|
43
|
+
:'hls_config_save_hls_recording' => :'hls_config['save_hls_recording']',
|
44
|
+
:'hls_config_variants' => :'hls_config['variants']'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Returns all the JSON keys this model knows about
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
def self.openapi_types
|
55
|
+
{
|
56
|
+
:'name' => :'String',
|
57
|
+
:'type' => :'String',
|
58
|
+
:'hls_config_storage_path' => :'String',
|
59
|
+
:'hls_config_storage_path_template' => :'String',
|
60
|
+
:'hls_config_save_hls_recording' => :'Boolean',
|
61
|
+
:'hls_config_variants' => :'Array<RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner>'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# List of attributes with nullable: true
|
66
|
+
def self.openapi_nullable
|
67
|
+
Set.new([
|
68
|
+
])
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::RoomPropertiesStreamingEndpointsInner` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::RoomPropertiesStreamingEndpointsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'name')
|
87
|
+
self.name = attributes[:'name']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'type')
|
91
|
+
self.type = attributes[:'type']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'hls_config_storage_path')
|
95
|
+
self.hls_config_storage_path = attributes[:'hls_config_storage_path']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'hls_config_storage_path_template')
|
99
|
+
self.hls_config_storage_path_template = attributes[:'hls_config_storage_path_template']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'hls_config_save_hls_recording')
|
103
|
+
self.hls_config_save_hls_recording = attributes[:'hls_config_save_hls_recording']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'hls_config_variants')
|
107
|
+
if (value = attributes[:'hls_config_variants']).is_a?(Array)
|
108
|
+
self.hls_config_variants = value
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
114
|
+
# @return Array for valid properties with the reasons
|
115
|
+
def list_invalid_properties
|
116
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
117
|
+
invalid_properties = Array.new
|
118
|
+
invalid_properties
|
119
|
+
end
|
120
|
+
|
121
|
+
# Check to see if the all the properties in the model are valid
|
122
|
+
# @return true if the model is valid
|
123
|
+
def valid?
|
124
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
125
|
+
true
|
126
|
+
end
|
127
|
+
|
128
|
+
# Checks equality by comparing each attribute.
|
129
|
+
# @param [Object] Object to be compared
|
130
|
+
def ==(o)
|
131
|
+
return true if self.equal?(o)
|
132
|
+
self.class == o.class &&
|
133
|
+
name == o.name &&
|
134
|
+
type == o.type &&
|
135
|
+
hls_config_storage_path == o.hls_config_storage_path &&
|
136
|
+
hls_config_storage_path_template == o.hls_config_storage_path_template &&
|
137
|
+
hls_config_save_hls_recording == o.hls_config_save_hls_recording &&
|
138
|
+
hls_config_variants == o.hls_config_variants
|
139
|
+
end
|
140
|
+
|
141
|
+
# @see the `==` method
|
142
|
+
# @param [Object] Object to be compared
|
143
|
+
def eql?(o)
|
144
|
+
self == o
|
145
|
+
end
|
146
|
+
|
147
|
+
# Calculates hash code according to all attributes.
|
148
|
+
# @return [Integer] Hash code
|
149
|
+
def hash
|
150
|
+
[name, type, hls_config_storage_path, hls_config_storage_path_template, hls_config_save_hls_recording, hls_config_variants].hash
|
151
|
+
end
|
152
|
+
|
153
|
+
# Builds the object from hash
|
154
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
155
|
+
# @return [Object] Returns the model itself
|
156
|
+
def self.build_from_hash(attributes)
|
157
|
+
return nil unless attributes.is_a?(Hash)
|
158
|
+
attributes = attributes.transform_keys(&:to_sym)
|
159
|
+
transformed_hash = {}
|
160
|
+
openapi_types.each_pair do |key, type|
|
161
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
162
|
+
transformed_hash["#{key}"] = nil
|
163
|
+
elsif type =~ /\AArray<(.*)>/i
|
164
|
+
# check to ensure the input is an array given that the attribute
|
165
|
+
# is documented as an array but the input is not
|
166
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
167
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
168
|
+
end
|
169
|
+
elsif !attributes[attribute_map[key]].nil?
|
170
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
171
|
+
end
|
172
|
+
end
|
173
|
+
new(transformed_hash)
|
174
|
+
end
|
175
|
+
|
176
|
+
# Deserializes the data based on type
|
177
|
+
# @param string type Data type
|
178
|
+
# @param string value Value to be deserialized
|
179
|
+
# @return [Object] Deserialized data
|
180
|
+
def self._deserialize(type, value)
|
181
|
+
case type.to_sym
|
182
|
+
when :Time
|
183
|
+
Time.parse(value)
|
184
|
+
when :Date
|
185
|
+
Date.parse(value)
|
186
|
+
when :String
|
187
|
+
value.to_s
|
188
|
+
when :Integer
|
189
|
+
value.to_i
|
190
|
+
when :Float
|
191
|
+
value.to_f
|
192
|
+
when :Boolean
|
193
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
194
|
+
true
|
195
|
+
else
|
196
|
+
false
|
197
|
+
end
|
198
|
+
when :Object
|
199
|
+
# generic object (usually a Hash), return directly
|
200
|
+
value
|
201
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
202
|
+
inner_type = Regexp.last_match[:inner_type]
|
203
|
+
value.map { |v| _deserialize(inner_type, v) }
|
204
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
205
|
+
k_type = Regexp.last_match[:k_type]
|
206
|
+
v_type = Regexp.last_match[:v_type]
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each do |k, v|
|
209
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
else # model
|
213
|
+
# models (e.g. Pet) or oneOf
|
214
|
+
klass = Daily.const_get(type)
|
215
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
# Returns the string representation of the object
|
220
|
+
# @return [String] String presentation of the object
|
221
|
+
def to_s
|
222
|
+
to_hash.to_s
|
223
|
+
end
|
224
|
+
|
225
|
+
# to_body is an alias to to_hash (backward compatibility)
|
226
|
+
# @return [Hash] Returns the object in the form of hash
|
227
|
+
def to_body
|
228
|
+
to_hash
|
229
|
+
end
|
230
|
+
|
231
|
+
# Returns the object in the form of hash
|
232
|
+
# @return [Hash] Returns the object in the form of hash
|
233
|
+
def to_hash
|
234
|
+
hash = {}
|
235
|
+
self.class.attribute_map.each_pair do |attr, param|
|
236
|
+
value = self.send(attr)
|
237
|
+
if value.nil?
|
238
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
239
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
240
|
+
end
|
241
|
+
|
242
|
+
hash[param] = _to_hash(value)
|
243
|
+
end
|
244
|
+
hash
|
245
|
+
end
|
246
|
+
|
247
|
+
# Outputs non-array value in the form of hash
|
248
|
+
# For object, use to_hash. Otherwise, just return the value
|
249
|
+
# @param [Object] value Any valid value
|
250
|
+
# @return [Hash] Returns the value in the form of hash
|
251
|
+
def _to_hash(value)
|
252
|
+
if value.is_a?(Array)
|
253
|
+
value.compact.map { |v| _to_hash(v) }
|
254
|
+
elsif value.is_a?(Hash)
|
255
|
+
{}.tap do |hash|
|
256
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
257
|
+
end
|
258
|
+
elsif value.respond_to? :to_hash
|
259
|
+
value.to_hash
|
260
|
+
else
|
261
|
+
value
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
end
|
266
|
+
|
267
|
+
end
|