freeclimb 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -1
  3. data/Gemfile +2 -1
  4. data/Gemfile.lock +21 -15
  5. data/README.md +5 -4
  6. data/docs/MessageResult.md +7 -1
  7. data/docs/TFNCampaign.md +34 -0
  8. data/lib/freeclimb/configuration.rb +1 -2
  9. data/lib/freeclimb/models/dequeue.rb +2 -4
  10. data/lib/freeclimb/models/message_result.rb +36 -5
  11. data/lib/freeclimb/models/remove_from_conference.rb +2 -4
  12. data/lib/freeclimb/models/start_record_call.rb +2 -4
  13. data/lib/freeclimb/models/terminate_conference.rb +2 -4
  14. data/lib/freeclimb/models/tfn_campaign.rb +370 -0
  15. data/lib/freeclimb/models/unpark.rb +2 -4
  16. data/lib/freeclimb/version.rb +1 -1
  17. data/lib/freeclimb.rb +1 -0
  18. data/openapi.json +93 -38
  19. data/spec/api/default_api_spec.rb +39 -117
  20. data/spec/models/account_request_spec.rb +113 -2
  21. data/spec/models/account_result_spec.rb +591 -28
  22. data/spec/models/account_status_spec.rb +1 -0
  23. data/spec/models/account_type_spec.rb +1 -0
  24. data/spec/models/add_to_conference_notification_webhook_spec.rb +654 -5
  25. data/spec/models/add_to_conference_spec.rb +471 -2
  26. data/spec/models/add_to_queue_notification_webhook_spec.rb +465 -2
  27. data/spec/models/answered_by_spec.rb +1 -0
  28. data/spec/models/application_list_spec.rb +323 -2
  29. data/spec/models/application_request_spec.rb +393 -2
  30. data/spec/models/application_result_spec.rb +723 -14
  31. data/spec/models/available_number_list_spec.rb +323 -2
  32. data/spec/models/available_number_spec.rb +380 -21
  33. data/spec/models/barge_in_reason_spec.rb +1 -0
  34. data/spec/models/buy_incoming_number_request_spec.rb +169 -2
  35. data/spec/models/call_control_webhook_spec.rb +281 -2
  36. data/spec/models/call_direction_spec.rb +1 -0
  37. data/spec/models/call_ended_reason_spec.rb +1 -0
  38. data/spec/models/call_list_spec.rb +323 -2
  39. data/spec/models/call_result_spec.rb +1020 -9
  40. data/spec/models/call_status_spec.rb +1 -0
  41. data/spec/models/call_status_webhook_spec.rb +501 -2
  42. data/spec/models/capabilities_spec.rb +191 -2
  43. data/spec/models/completion_request_spec.rb +54 -2
  44. data/spec/models/completion_result_spec.rb +93 -2
  45. data/spec/models/completion_result_status_spec.rb +1 -0
  46. data/spec/models/conference_list_spec.rb +323 -2
  47. data/spec/models/conference_participant_list_spec.rb +323 -2
  48. data/spec/models/conference_participant_result_spec.rb +532 -7
  49. data/spec/models/conference_recording_status_webhook_spec.rb +654 -5
  50. data/spec/models/conference_result_spec.rb +768 -55
  51. data/spec/models/conference_status_spec.rb +1 -0
  52. data/spec/models/conference_status_webhook_spec.rb +654 -5
  53. data/spec/models/create_conference_request_spec.rb +243 -2
  54. data/spec/models/create_conference_spec.rb +281 -2
  55. data/spec/models/create_conference_webhook_spec.rb +654 -5
  56. data/spec/models/create_web_rtc_token_spec.rb +151 -2
  57. data/spec/models/dequeue_spec.rb +1 -0
  58. data/spec/models/dequeue_webhook_spec.rb +565 -8
  59. data/spec/models/enqueue_spec.rb +225 -2
  60. data/spec/models/filter_logs_request_spec.rb +57 -2
  61. data/spec/models/get_digits_reason_spec.rb +1 -0
  62. data/spec/models/get_digits_spec.rb +379 -2
  63. data/spec/models/get_digits_webhook_spec.rb +623 -12
  64. data/spec/models/get_speech_reason_spec.rb +1 -0
  65. data/spec/models/get_speech_spec.rb +556 -11
  66. data/spec/models/get_speech_webhook_spec.rb +870 -15
  67. data/spec/models/grammar_file_built_in_spec.rb +1 -0
  68. data/spec/models/grammar_type_spec.rb +1 -0
  69. data/spec/models/hangup_spec.rb +57 -2
  70. data/spec/models/if_machine_spec.rb +1 -0
  71. data/spec/models/inbound_call_webhook_spec.rb +521 -2
  72. data/spec/models/incoming_number_list_spec.rb +323 -2
  73. data/spec/models/incoming_number_request_spec.rb +169 -2
  74. data/spec/models/incoming_number_result_spec.rb +930 -43
  75. data/spec/models/language_spec.rb +1 -0
  76. data/spec/models/leave_conference_webhook_spec.rb +465 -2
  77. data/spec/models/log_level_spec.rb +1 -0
  78. data/spec/models/log_list_spec.rb +323 -2
  79. data/spec/models/log_result_spec.rb +368 -9
  80. data/spec/models/machine_detected_webhook_spec.rb +565 -10
  81. data/spec/models/machine_type_spec.rb +1 -0
  82. data/spec/models/make_call_request_spec.rb +529 -6
  83. data/spec/models/message_delivery_webhook_spec.rb +565 -6
  84. data/spec/models/message_direction_spec.rb +1 -0
  85. data/spec/models/message_request_spec.rb +469 -2
  86. data/spec/models/message_result_spec.rb +1364 -225
  87. data/spec/models/message_status_spec.rb +1 -0
  88. data/spec/models/message_status_webhook_spec.rb +615 -20
  89. data/spec/models/messages_list_spec.rb +323 -2
  90. data/spec/models/mutable_resource_model_spec.rb +207 -2
  91. data/spec/models/out_dial_api_connect_webhook_spec.rb +521 -2
  92. data/spec/models/out_dial_connect_webhook_spec.rb +521 -2
  93. data/spec/models/out_dial_spec.rb +505 -2
  94. data/spec/models/out_dial_start_webhook_spec.rb +599 -24
  95. data/spec/models/pagination_model_spec.rb +285 -2
  96. data/spec/models/park_spec.rb +169 -2
  97. data/spec/models/pause_spec.rb +39 -2
  98. data/spec/models/percl_command_spec.rb +54 -2
  99. data/spec/models/percl_script_spec.rb +39 -2
  100. data/spec/models/play_beep_spec.rb +1 -0
  101. data/spec/models/play_early_media_spec.rb +57 -2
  102. data/spec/models/play_spec.rb +133 -2
  103. data/spec/models/queue_list_spec.rb +323 -2
  104. data/spec/models/queue_member_list_spec.rb +323 -2
  105. data/spec/models/queue_member_spec.rb +245 -2
  106. data/spec/models/queue_request_spec.rb +95 -2
  107. data/spec/models/queue_result_spec.rb +564 -15
  108. data/spec/models/queue_result_status_spec.rb +1 -0
  109. data/spec/models/queue_wait_webhook_spec.rb +616 -21
  110. data/spec/models/record_utterance_spec.rb +303 -2
  111. data/spec/models/record_utterance_term_reason_spec.rb +1 -0
  112. data/spec/models/record_webhook_spec.rb +868 -13
  113. data/spec/models/recording_list_spec.rb +323 -2
  114. data/spec/models/recording_result_spec.rb +469 -2
  115. data/spec/models/redirect_spec.rb +57 -2
  116. data/spec/models/redirect_webhook_spec.rb +521 -2
  117. data/spec/models/reject_spec.rb +57 -2
  118. data/spec/models/remove_from_conference_spec.rb +1 -0
  119. data/spec/models/remove_from_queue_notification_webhook_spec.rb +546 -9
  120. data/spec/models/request_type_spec.rb +1 -0
  121. data/spec/models/say_spec.rb +189 -2
  122. data/spec/models/send_digits_spec.rb +133 -2
  123. data/spec/models/set_dtmf_pass_through_spec.rb +39 -2
  124. data/spec/models/set_listen_spec.rb +39 -2
  125. data/spec/models/set_talk_spec.rb +39 -2
  126. data/spec/models/sms_spec.rb +225 -2
  127. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +1 -0
  128. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +1 -0
  129. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +1 -0
  130. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +1 -0
  131. data/spec/models/sms_ten_dlc_brand_spec.rb +1969 -423
  132. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +1 -0
  133. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +323 -2
  134. data/spec/models/sms_ten_dlc_campaign_spec.rb +2224 -550
  135. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +1 -0
  136. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +323 -2
  137. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +597 -17
  138. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +1537 -155
  139. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +1 -0
  140. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +323 -2
  141. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +1 -0
  142. data/spec/models/sms_toll_free_campaign_spec.rb +355 -2
  143. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +323 -2
  144. data/spec/models/start_record_call_spec.rb +1 -0
  145. data/spec/models/terminate_conference_spec.rb +1 -0
  146. data/spec/models/tfn_campaign_spec.rb +1089 -0
  147. data/spec/models/tfn_spec.rb +57 -2
  148. data/spec/models/transcribe_reason_spec.rb +1 -0
  149. data/spec/models/transcribe_term_reason_spec.rb +1 -0
  150. data/spec/models/transcribe_utterance_record_spec.rb +115 -2
  151. data/spec/models/transcribe_utterance_spec.rb +288 -21
  152. data/spec/models/transcribe_webhook_spec.rb +1049 -4
  153. data/spec/models/unpark_spec.rb +1 -0
  154. data/spec/models/update_call_request_spec.rb +37 -2
  155. data/spec/models/update_call_request_status_spec.rb +1 -0
  156. data/spec/models/update_conference_participant_request_spec.rb +115 -2
  157. data/spec/models/update_conference_request_spec.rb +129 -2
  158. data/spec/models/update_conference_request_status_spec.rb +1 -0
  159. data/spec/models/webhook_spec.rb +54 -2
  160. metadata +129 -125
@@ -13,6 +13,7 @@ OpenAPI Generator version: 7.9.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
+ include Freeclimb
16
17
 
17
18
  # Unit tests for Freeclimb::QueueResult
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,25 +29,34 @@ describe Freeclimb::QueueResult do
28
29
 
29
30
  describe 'test attribute "uri"' do
30
31
  it 'should work' do
32
+
31
33
  instance.uri = "TEST_STRING"
32
34
  expect(instance.uri).to eq("TEST_STRING")
33
35
 
36
+
37
+
34
38
  end
35
39
  end
36
40
 
37
41
  describe 'test attribute "date_created"' do
38
42
  it 'should work' do
43
+
39
44
  instance.date_created = "TEST_STRING"
40
45
  expect(instance.date_created).to eq("TEST_STRING")
41
46
 
47
+
48
+
42
49
  end
43
50
  end
44
51
 
45
52
  describe 'test attribute "date_updated"' do
46
53
  it 'should work' do
54
+
47
55
  instance.date_updated = "TEST_STRING"
48
56
  expect(instance.date_updated).to eq("TEST_STRING")
49
57
 
58
+
59
+
50
60
  end
51
61
  end
52
62
 
@@ -57,30 +67,41 @@ describe Freeclimb::QueueResult do
57
67
  instance.revision = 1
58
68
  expect(instance.revision).to eq(1)
59
69
 
70
+
71
+
60
72
  end
61
73
  end
62
74
 
63
75
  describe 'test attribute "account_id"' do
64
76
  it 'should work' do
77
+
65
78
  instance.account_id = "TEST_STRING"
66
79
  expect(instance.account_id).to eq("TEST_STRING")
67
80
 
81
+
82
+
68
83
  end
69
84
  end
70
85
 
71
86
  describe 'test attribute "queue_id"' do
72
87
  it 'should work' do
88
+
73
89
  instance.queue_id = "TEST_STRING"
74
90
  expect(instance.queue_id).to eq("TEST_STRING")
75
91
 
92
+
93
+
76
94
  end
77
95
  end
78
96
 
79
97
  describe 'test attribute "_alias"' do
80
98
  it 'should work' do
99
+
81
100
  instance._alias = "TEST_STRING"
82
101
  expect(instance._alias).to eq("TEST_STRING")
83
102
 
103
+
104
+
84
105
  end
85
106
  end
86
107
 
@@ -91,6 +112,8 @@ describe Freeclimb::QueueResult do
91
112
  instance.max_size = 1
92
113
  expect(instance.max_size).to eq(1)
93
114
 
115
+
116
+
94
117
  end
95
118
  end
96
119
 
@@ -101,6 +124,8 @@ describe Freeclimb::QueueResult do
101
124
  instance.current_size = 1
102
125
  expect(instance.current_size).to eq(1)
103
126
 
127
+
128
+
104
129
  end
105
130
  end
106
131
 
@@ -111,6 +136,8 @@ describe Freeclimb::QueueResult do
111
136
  instance.average_queue_removal_time = 1
112
137
  expect(instance.average_queue_removal_time).to eq(1)
113
138
 
139
+
140
+
114
141
  end
115
142
  end
116
143
 
@@ -120,86 +147,178 @@ describe Freeclimb::QueueResult do
120
147
  testObject = Object.new()
121
148
  instance.subresource_uris = testObject
122
149
  expect(instance.subresource_uris).to eq(testObject)
150
+
151
+
152
+ instance.subresource_uris = Object.new
153
+ expect(instance.subresource_uris).to be_instance_of(Object)
154
+
123
155
  end
124
156
  end
125
157
 
126
158
  describe 'test method "initialize"' do
127
159
  it 'properly initializes with values' do
128
160
  expect { instance = Freeclimb::QueueResult.new(
161
+
129
162
  uri: "TS",
130
163
 
164
+
165
+
166
+
131
167
  date_created: "TS",
132
168
 
169
+
170
+
171
+
133
172
  date_updated: "TS",
134
173
 
174
+
175
+
135
176
  revision: 1,
136
177
 
178
+
179
+
180
+
137
181
  account_id: "TS",
138
182
 
183
+
184
+
185
+
139
186
  queue_id: "TS",
140
187
 
188
+
189
+
190
+
141
191
  _alias: "TS",
142
192
 
193
+
194
+
143
195
  max_size: 1,
144
196
 
197
+
198
+
145
199
  current_size: 1,
146
200
 
201
+
202
+
147
203
  average_queue_removal_time: 1,
148
204
 
205
+
206
+
207
+
208
+
209
+
149
210
  subresource_uris: Object.new(),
150
211
 
151
212
  )}.not_to raise_error()
152
213
  end
153
214
  it 'fails to initialize with input argument that is not a hash in Freeclimb::QueueResult' do
154
215
  expect { instance = Freeclimb::QueueResult.new(
216
+
155
217
  uri: "TS",
156
218
 
219
+
220
+
221
+
157
222
  date_created: "TS",
158
223
 
224
+
225
+
226
+
159
227
  date_updated: "TS",
160
228
 
229
+
230
+
161
231
  revision: 1,
162
232
 
233
+
234
+
235
+
163
236
  account_id: "TS",
164
237
 
238
+
239
+
240
+
165
241
  queue_id: "TS",
166
242
 
243
+
244
+
245
+
167
246
  _alias: "TS",
168
247
 
248
+
249
+
169
250
  max_size: 1,
170
251
 
252
+
253
+
171
254
  current_size: 1,
172
255
 
256
+
257
+
173
258
  average_queue_removal_time: 1,
174
259
 
175
- subresource_uris: Object.new(),
260
+
261
+
262
+
263
+
264
+
265
+ subresource_uris: Object.new,
176
266
 
177
267
  invalid_attribute: true
178
268
  )}.to raise_error(ArgumentError)
179
269
  end
180
270
  it 'fails to initialize with invalid attribute' do
181
271
  expect { instance = Freeclimb::QueueResult.new(
272
+
182
273
  uri: "TS",
183
274
 
275
+
276
+
277
+
184
278
  date_created: "TS",
185
279
 
280
+
281
+
282
+
186
283
  date_updated: "TS",
187
284
 
285
+
286
+
188
287
  revision: 1,
189
288
 
289
+
290
+
291
+
190
292
  account_id: "TS",
191
293
 
294
+
295
+
296
+
192
297
  queue_id: "TS",
193
298
 
299
+
300
+
301
+
194
302
  _alias: "TS",
195
303
 
304
+
305
+
196
306
  max_size: 1,
197
307
 
308
+
309
+
198
310
  current_size: 1,
199
311
 
312
+
313
+
200
314
  average_queue_removal_time: 1,
201
315
 
202
- subresource_uris: Object.new(),
316
+
317
+
318
+
319
+
320
+
321
+ subresource_uris: Object.new,
203
322
 
204
323
  invalid_attribute: true
205
324
  )}.to raise_error(ArgumentError)
@@ -209,26 +328,55 @@ describe Freeclimb::QueueResult do
209
328
  describe 'test method "valid"' do
210
329
  it 'checks if properties are valid' do
211
330
  instance = Freeclimb::QueueResult.new(
331
+
212
332
  uri: "TS",
213
333
 
334
+
335
+
336
+
214
337
  date_created: "TS",
215
338
 
339
+
340
+
341
+
216
342
  date_updated: "TS",
217
343
 
344
+
345
+
218
346
  revision: 1,
219
347
 
348
+
349
+
350
+
220
351
  account_id: "TS",
221
352
 
353
+
354
+
355
+
222
356
  queue_id: "TS",
223
357
 
358
+
359
+
360
+
224
361
  _alias: "TS",
225
362
 
363
+
364
+
226
365
  max_size: 1,
227
366
 
367
+
368
+
228
369
  current_size: 1,
229
370
 
371
+
372
+
230
373
  average_queue_removal_time: 1,
231
374
 
375
+
376
+
377
+
378
+
379
+
232
380
  subresource_uris: Object.new(),
233
381
 
234
382
  )
@@ -247,53 +395,123 @@ describe Freeclimb::QueueResult do
247
395
 
248
396
  describe 'test method "eql?"' do
249
397
  it 'checks if objects are equal' do
250
- obj = Object.new()
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+ obj_Object = Object.new()
410
+
251
411
  instance_1 = Freeclimb::QueueResult.new(
412
+
252
413
  uri: "TS",
253
414
 
415
+
416
+
417
+
254
418
  date_created: "TS",
255
419
 
420
+
421
+
422
+
256
423
  date_updated: "TS",
257
424
 
425
+
426
+
258
427
  revision: 1,
259
428
 
429
+
430
+
431
+
260
432
  account_id: "TS",
261
433
 
434
+
435
+
436
+
262
437
  queue_id: "TS",
263
438
 
439
+
440
+
441
+
264
442
  _alias: "TS",
265
443
 
444
+
445
+
266
446
  max_size: 1,
267
447
 
448
+
449
+
268
450
  current_size: 1,
269
451
 
452
+
453
+
270
454
  average_queue_removal_time: 1,
271
455
 
272
- subresource_uris: obj,
456
+
457
+
458
+
459
+
460
+ subresource_uris: obj_Object,
461
+
273
462
 
274
463
  )
275
464
  instance_2 = Freeclimb::QueueResult.new(
465
+
276
466
  uri: "TS",
277
467
 
468
+
469
+
470
+
278
471
  date_created: "TS",
279
472
 
473
+
474
+
475
+
280
476
  date_updated: "TS",
281
477
 
478
+
479
+
480
+
481
+
282
482
  revision: 1,
283
483
 
484
+
284
485
  account_id: "TS",
285
486
 
487
+
488
+
489
+
286
490
  queue_id: "TS",
287
491
 
492
+
493
+
494
+
288
495
  _alias: "TS",
289
496
 
497
+
498
+
499
+
500
+
290
501
  max_size: 1,
291
502
 
503
+
504
+
292
505
  current_size: 1,
293
506
 
507
+
508
+
294
509
  average_queue_removal_time: 1,
295
510
 
296
- subresource_uris: obj,
511
+
512
+
513
+ subresource_uris: obj_Object,
514
+
297
515
 
298
516
  )
299
517
  expect(instance_1.eql?(instance_2)).to eq(true)
@@ -301,51 +519,110 @@ describe Freeclimb::QueueResult do
301
519
 
302
520
  it 'checks if objects are not equal' do
303
521
  instance_1 = Freeclimb::QueueResult.new(
522
+
304
523
  uri: "TS",
305
524
 
525
+
526
+
527
+
306
528
  date_created: "TS",
307
529
 
530
+
531
+
532
+
308
533
  date_updated: "TS",
309
534
 
535
+
536
+
310
537
  revision: 2,
311
538
 
539
+
540
+
541
+
312
542
  account_id: "TS",
313
543
 
544
+
545
+
546
+
314
547
  queue_id: "TS",
315
548
 
549
+
550
+
551
+
316
552
  _alias: "TS",
317
553
 
554
+
555
+
318
556
  max_size: 2,
319
557
 
558
+
559
+
320
560
  current_size: 2,
321
561
 
562
+
563
+
322
564
  average_queue_removal_time: 2,
323
565
 
566
+
567
+
568
+
569
+
570
+ subresource_uris: Object.new(),
571
+
324
572
  subresource_uris: Object.new(),
325
573
 
326
574
  )
327
575
  instance_2 = Freeclimb::QueueResult.new(
576
+
328
577
  uri: "ST",
329
578
 
330
- date_created: "ST",
331
579
 
332
- date_updated: "ST",
333
580
 
334
- revision: 1,
335
581
 
336
- account_id: "ST",
582
+ date_created: "ST",
583
+
584
+
585
+
586
+
587
+ date_updated: "ST",
588
+
589
+
590
+
591
+ revision: 1,
592
+
593
+
594
+
595
+
596
+ account_id: "ST",
597
+
598
+
599
+
600
+
601
+ queue_id: "ST",
602
+
603
+
604
+
605
+
606
+ _alias: "ST",
337
607
 
338
- queue_id: "ST",
339
608
 
340
- _alias: "ST",
341
609
 
342
610
  max_size: 1,
343
611
 
612
+
613
+
344
614
  current_size: 1,
345
615
 
616
+
617
+
346
618
  average_queue_removal_time: 1,
347
619
 
348
- subresource_uris: nil,
620
+
621
+
622
+
623
+
624
+ subresource_uris: Object.new(),
625
+
349
626
 
350
627
  )
351
628
  expect(instance_1.eql?(instance_2)).to eq(false)
@@ -355,26 +632,55 @@ describe Freeclimb::QueueResult do
355
632
  describe 'test method "hash"' do
356
633
  it 'calculates hash code' do
357
634
  instance = Freeclimb::QueueResult.new(
635
+
358
636
  uri: "TS",
359
637
 
638
+
639
+
640
+
360
641
  date_created: "TS",
361
642
 
643
+
644
+
645
+
362
646
  date_updated: "TS",
363
647
 
648
+
649
+
364
650
  revision: 1,
365
651
 
652
+
653
+
654
+
366
655
  account_id: "TS",
367
656
 
657
+
658
+
659
+
368
660
  queue_id: "TS",
369
661
 
662
+
663
+
664
+
370
665
  _alias: "TS",
371
666
 
667
+
668
+
372
669
  max_size: 1,
373
670
 
671
+
672
+
374
673
  current_size: 1,
375
674
 
675
+
676
+
376
677
  average_queue_removal_time: 1,
377
678
 
679
+
680
+
681
+
682
+
683
+
378
684
  subresource_uris: Object.new(),
379
685
 
380
686
  )
@@ -385,50 +691,108 @@ describe Freeclimb::QueueResult do
385
691
  describe 'test method "build_from_hash"' do
386
692
  it 'builds equivalent model from hash code' do
387
693
  instance_1 = Freeclimb::QueueResult.new(
694
+
388
695
  uri: "TS",
389
696
 
697
+
698
+
699
+
390
700
  date_created: "TS",
391
701
 
702
+
703
+
704
+
392
705
  date_updated: "TS",
393
706
 
707
+
708
+
394
709
  revision: 1,
395
710
 
711
+
712
+
713
+
396
714
  account_id: "TS",
397
715
 
716
+
717
+
718
+
398
719
  queue_id: "TS",
399
720
 
721
+
722
+
723
+
400
724
  _alias: "TS",
401
725
 
726
+
727
+
402
728
  max_size: 1,
403
729
 
730
+
731
+
404
732
  current_size: 1,
405
733
 
734
+
735
+
406
736
  average_queue_removal_time: 1,
407
737
 
738
+
739
+
740
+
741
+
742
+
408
743
  subresource_uris: Object.new(),
409
744
 
410
745
  )
411
746
  instance_2 = Freeclimb::QueueResult.new(
747
+
412
748
  uri: "TS",
413
749
 
750
+
751
+
752
+
414
753
  date_created: "TS",
415
754
 
755
+
756
+
757
+
416
758
  date_updated: "TS",
417
759
 
760
+
761
+
418
762
  revision: 1,
419
763
 
764
+
765
+
766
+
420
767
  account_id: "TS",
421
768
 
769
+
770
+
771
+
422
772
  queue_id: "TS",
423
773
 
774
+
775
+
776
+
424
777
  _alias: "TS",
425
778
 
779
+
780
+
426
781
  max_size: 1,
427
782
 
783
+
784
+
428
785
  current_size: 1,
429
786
 
787
+
788
+
430
789
  average_queue_removal_time: 1,
431
790
 
791
+
792
+
793
+
794
+
795
+
432
796
  subresource_uris: Object.new(),
433
797
 
434
798
  )
@@ -439,88 +803,169 @@ describe Freeclimb::QueueResult do
439
803
 
440
804
  describe 'test method "_deserialize"' do
441
805
  instance = Freeclimb::QueueResult.new(
806
+
442
807
  uri: "TS",
443
808
 
809
+
810
+
811
+
444
812
  date_created: "TS",
445
813
 
814
+
815
+
816
+
446
817
  date_updated: "TS",
447
818
 
819
+
820
+
448
821
  revision: 1,
449
822
 
823
+
824
+
825
+
450
826
  account_id: "TS",
451
827
 
828
+
829
+
830
+
452
831
  queue_id: "TS",
453
832
 
833
+
834
+
835
+
454
836
  _alias: "TS",
455
837
 
838
+
839
+
456
840
  max_size: 1,
457
841
 
842
+
843
+
458
844
  current_size: 1,
459
845
 
846
+
847
+
460
848
  average_queue_removal_time: 1,
461
849
 
850
+
851
+
852
+
853
+
854
+
462
855
  subresource_uris: Object.new(),
463
856
 
464
857
  )
465
858
  it 'deserializes the data of uri' do
466
859
  expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
467
860
  end
861
+
862
+
468
863
  it 'deserializes the data of date_created' do
469
864
  expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
470
865
  end
866
+
867
+
471
868
  it 'deserializes the data of date_updated' do
472
869
  expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
473
870
  end
871
+
872
+
474
873
  it 'deserializes the data of revision' do
475
874
  expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
476
875
  end
876
+
877
+
477
878
  it 'deserializes the data of account_id' do
478
879
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
479
880
  end
881
+
882
+
480
883
  it 'deserializes the data of queue_id' do
481
884
  expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String)
482
885
  end
886
+
887
+
483
888
  it 'deserializes the data of _alias' do
484
889
  expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
485
890
  end
891
+
892
+
486
893
  it 'deserializes the data of max_size' do
487
894
  expect(instance._deserialize("Integer", instance.max_size)).to be_a_kind_of(Integer)
488
895
  end
896
+
897
+
489
898
  it 'deserializes the data of current_size' do
490
899
  expect(instance._deserialize("Integer", instance.current_size)).to be_a_kind_of(Integer)
491
900
  end
901
+
902
+
492
903
  it 'deserializes the data of average_queue_removal_time' do
493
904
  expect(instance._deserialize("Integer", instance.average_queue_removal_time)).to be_a_kind_of(Integer)
494
905
  end
906
+
907
+
908
+
909
+
495
910
  it 'deserializes the data of subresource_uris' do
496
911
  expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object)
497
912
  end
913
+
498
914
  end
499
915
 
500
916
  describe 'test method "to_s"' do
501
917
  it 'returns the string representation of the object' do
502
918
  instance = Freeclimb::QueueResult.new(
919
+
503
920
  uri: "TS",
504
921
 
922
+
923
+
924
+
505
925
  date_created: "TS",
506
926
 
927
+
928
+
929
+
507
930
  date_updated: "TS",
508
931
 
932
+
933
+
509
934
  revision: 1,
510
935
 
936
+
937
+
938
+
511
939
  account_id: "TS",
512
940
 
941
+
942
+
943
+
513
944
  queue_id: "TS",
514
945
 
946
+
947
+
948
+
515
949
  _alias: "TS",
516
950
 
951
+
952
+
517
953
  max_size: 1,
518
954
 
955
+
956
+
519
957
  current_size: 1,
520
958
 
959
+
960
+
521
961
  average_queue_removal_time: 1,
522
962
 
523
- subresource_uris: Object.new(),
963
+
964
+
965
+
966
+
967
+
968
+ subresource_uris: Object.new,
524
969
 
525
970
  )
526
971
  expect(instance.to_s).to eq(instance.to_hash.to_s)
@@ -530,78 +975,177 @@ describe Freeclimb::QueueResult do
530
975
  describe 'test method "to_hash"' do
531
976
  it 'returns the object in the form of hash' do
532
977
  instance = Freeclimb::QueueResult.new(
978
+
533
979
  uri: "TS",
534
980
 
981
+
982
+
983
+
535
984
  date_created: "TS",
536
985
 
986
+
987
+
988
+
537
989
  date_updated: "TS",
538
990
 
991
+
992
+
539
993
  revision: 1,
540
994
 
995
+
996
+
997
+
541
998
  account_id: "TS",
542
999
 
1000
+
1001
+
1002
+
543
1003
  queue_id: "TS",
544
1004
 
1005
+
1006
+
1007
+
545
1008
  _alias: "TS",
546
1009
 
1010
+
1011
+
547
1012
  max_size: 1,
548
1013
 
1014
+
1015
+
549
1016
  current_size: 1,
550
1017
 
1018
+
1019
+
551
1020
  average_queue_removal_time: 1,
552
1021
 
553
- subresource_uris: Object.new(),
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+ subresource_uris: Object.new,
554
1028
 
555
1029
  )
556
1030
  expect(instance.to_hash).to be_a_kind_of(Hash)
557
1031
  end
558
1032
  it 'creates equal hash for two equal objects' do
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
559
1044
  obj = Object.new()
1045
+
560
1046
  instance_1 = Freeclimb::QueueResult.new(
1047
+
561
1048
  uri: "TS",
562
1049
 
1050
+
1051
+
1052
+
563
1053
  date_created: "TS",
564
1054
 
1055
+
1056
+
1057
+
565
1058
  date_updated: "TS",
566
1059
 
1060
+
1061
+
567
1062
  revision: 1,
568
1063
 
1064
+
1065
+
1066
+
569
1067
  account_id: "TS",
570
1068
 
1069
+
1070
+
1071
+
571
1072
  queue_id: "TS",
572
1073
 
1074
+
1075
+
1076
+
573
1077
  _alias: "TS",
574
1078
 
1079
+
1080
+
575
1081
  max_size: 1,
576
1082
 
1083
+
1084
+
577
1085
  current_size: 1,
578
1086
 
1087
+
1088
+
579
1089
  average_queue_removal_time: 1,
580
1090
 
1091
+
1092
+
1093
+
1094
+
1095
+
581
1096
  subresource_uris: obj,
582
1097
 
583
1098
  )
584
1099
  instance_2 = Freeclimb::QueueResult.new(
1100
+
585
1101
  uri: "TS",
586
1102
 
1103
+
1104
+
1105
+
587
1106
  date_created: "TS",
588
1107
 
1108
+
1109
+
1110
+
589
1111
  date_updated: "TS",
590
1112
 
1113
+
1114
+
591
1115
  revision: 1,
592
1116
 
1117
+
1118
+
1119
+
593
1120
  account_id: "TS",
594
1121
 
1122
+
1123
+
1124
+
595
1125
  queue_id: "TS",
596
1126
 
1127
+
1128
+
1129
+
597
1130
  _alias: "TS",
598
1131
 
1132
+
1133
+
599
1134
  max_size: 1,
600
1135
 
1136
+
1137
+
601
1138
  current_size: 1,
602
1139
 
1140
+
1141
+
603
1142
  average_queue_removal_time: 1,
604
1143
 
1144
+
1145
+
1146
+
1147
+
1148
+
605
1149
  subresource_uris: obj,
606
1150
 
607
1151
  )
@@ -611,24 +1155,30 @@ describe Freeclimb::QueueResult do
611
1155
 
612
1156
  describe 'test method "_to_hash"' do
613
1157
  instance = Freeclimb::QueueResult.new(
1158
+
614
1159
  uri: "TS",
615
1160
 
616
1161
 
1162
+
617
1163
  date_created: "TS",
618
1164
 
619
1165
 
1166
+
620
1167
  date_updated: "TS",
621
1168
 
622
1169
 
623
1170
  revision: 1,
624
1171
 
625
1172
 
1173
+
626
1174
  account_id: "TS",
627
1175
 
628
1176
 
1177
+
629
1178
  queue_id: "TS",
630
1179
 
631
1180
 
1181
+
632
1182
  _alias: "TS",
633
1183
 
634
1184
 
@@ -641,7 +1191,6 @@ describe Freeclimb::QueueResult do
641
1191
  average_queue_removal_time: 1,
642
1192
 
643
1193
 
644
- subresource_uris: Object.new(),
645
1194
 
646
1195
  )
647
1196
  it 'returns uri in the form of hash' do