freeclimb 5.2.0 → 5.4.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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -2
  3. data/Gemfile.lock +3 -3
  4. data/README.md +31 -4
  5. data/docs/AvailableNumber.md +0 -4
  6. data/docs/BlobListResponse.md +32 -0
  7. data/docs/BlobResult.md +32 -0
  8. data/docs/CallResult.md +2 -2
  9. data/docs/CreateBlobRequest.md +22 -0
  10. data/docs/CreateConference.md +4 -2
  11. data/docs/DefaultApi.md +835 -25
  12. data/docs/ExportList.md +32 -0
  13. data/docs/ExportOutputType.md +16 -0
  14. data/docs/ExportRequest.md +24 -0
  15. data/docs/ExportRequestOutput.md +18 -0
  16. data/docs/ExportResourceType.md +17 -0
  17. data/docs/ExportResult.md +40 -0
  18. data/docs/ExportResultOutput.md +18 -0
  19. data/docs/ExportStatus.md +21 -0
  20. data/docs/IncomingNumberResult.md +0 -4
  21. data/docs/ModifyBlobRequest.md +20 -0
  22. data/docs/PlatformError.md +24 -0
  23. data/docs/ReplaceBlobRequest.md +18 -0
  24. data/docs/Say.md +2 -0
  25. data/docs/TTSEngine.md +20 -0
  26. data/docs/TTSEngineName.md +18 -0
  27. data/lib/freeclimb/api/default_api.rb +1032 -12
  28. data/lib/freeclimb/models/available_number.rb +1 -23
  29. data/lib/freeclimb/models/blob_list_response.rb +303 -0
  30. data/lib/freeclimb/models/blob_result.rb +332 -0
  31. data/lib/freeclimb/models/call_result.rb +8 -8
  32. data/lib/freeclimb/models/create_blob_request.rb +255 -0
  33. data/lib/freeclimb/models/create_conference.rb +15 -5
  34. data/lib/freeclimb/models/export_list.rb +304 -0
  35. data/lib/freeclimb/models/export_output_type.rb +34 -0
  36. data/lib/freeclimb/models/export_request.rb +276 -0
  37. data/lib/freeclimb/models/export_request_output.rb +243 -0
  38. data/lib/freeclimb/models/export_resource_type.rb +35 -0
  39. data/lib/freeclimb/models/export_result.rb +405 -0
  40. data/lib/freeclimb/models/export_result_output.rb +243 -0
  41. data/lib/freeclimb/models/export_status.rb +39 -0
  42. data/lib/freeclimb/models/incoming_number_result.rb +1 -23
  43. data/lib/freeclimb/models/modify_blob_request.rb +245 -0
  44. data/lib/freeclimb/models/platform_error.rb +244 -0
  45. data/lib/freeclimb/models/replace_blob_request.rb +221 -0
  46. data/lib/freeclimb/models/say.rb +10 -1
  47. data/lib/freeclimb/models/tts_engine.rb +250 -0
  48. data/lib/freeclimb/models/tts_engine_name.rb +36 -0
  49. data/lib/freeclimb/version.rb +1 -1
  50. data/lib/freeclimb.rb +16 -0
  51. data/openapi.json +1245 -80
  52. data/spec/api/default_api_spec.rb +328 -33
  53. data/spec/models/account_result_spec.rb +3 -3
  54. data/spec/models/available_number_spec.rb +3 -98
  55. data/spec/models/blob_list_response_spec.rb +502 -0
  56. data/spec/models/blob_result_spec.rb +489 -0
  57. data/spec/models/call_result_spec.rb +39 -39
  58. data/spec/models/conference_result_spec.rb +3 -3
  59. data/spec/models/create_blob_request_spec.rb +273 -0
  60. data/spec/models/create_conference_spec.rb +83 -35
  61. data/spec/models/export_list_spec.rb +502 -0
  62. data/spec/models/export_output_type_spec.rb +43 -0
  63. data/spec/models/export_request_output_spec.rb +162 -0
  64. data/spec/models/export_request_spec.rb +320 -0
  65. data/spec/models/export_resource_type_spec.rb +59 -0
  66. data/spec/models/export_result_output_spec.rb +162 -0
  67. data/spec/models/export_result_spec.rb +718 -0
  68. data/spec/models/export_status_spec.rb +123 -0
  69. data/spec/models/incoming_number_result_spec.rb +6 -102
  70. data/spec/models/log_result_spec.rb +3 -3
  71. data/spec/models/message_result_spec.rb +3 -3
  72. data/spec/models/modify_blob_request_spec.rb +226 -0
  73. data/spec/models/platform_error_spec.rb +318 -0
  74. data/spec/models/queue_result_spec.rb +3 -3
  75. data/spec/models/replace_blob_request_spec.rb +176 -0
  76. data/spec/models/say_spec.rb +50 -0
  77. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +3 -3
  78. data/spec/models/transcribe_utterance_spec.rb +3 -3
  79. data/spec/models/tts_engine_name_spec.rb +75 -0
  80. data/spec/models/tts_engine_spec.rb +183 -0
  81. data/spec/spec_helper.rb +1 -1
  82. data/yarn.lock +29 -29
  83. metadata +50 -2
@@ -0,0 +1,123 @@
1
+ # #FreeClimb API
2
+ #
3
+ # FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
4
+ #
5
+ # The version of the OpenAPI document: 1.0.0
6
+ # Contact: support@freeclimb.com
7
+ # Generated by: https://openapi-generator.tech
8
+ # OpenAPI Generator version: 7.9.0
9
+ #
10
+
11
+ require "spec_helper"
12
+ require "json"
13
+ require "date"
14
+ include Freeclimb
15
+
16
+ # Unit tests for Freeclimb::ExportStatus
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe Freeclimb::ExportStatus do
20
+ let(:instance) { Freeclimb::ExportStatus.new }
21
+
22
+ describe "test an instance of ExportStatus" do
23
+ it "should create an instance of ExportStatus" do
24
+ expect(instance).to be_instance_of(Freeclimb::ExportStatus)
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "INTAKING"' do
29
+ it "should work" do
30
+ expect { Freeclimb::ExportStatus::INTAKING = "intaking" }.not_to raise_error
31
+ end
32
+ it "should serialize to enum" do
33
+ expectedValue = Freeclimb::ExportStatus::INTAKING
34
+ calculatedValue = Freeclimb::ExportStatus.build_from_hash("intaking")
35
+ expect(expectedValue).to eq(calculatedValue)
36
+ end
37
+ it "should deserialize to string" do
38
+ expectedValue = "intaking"
39
+ calculatedValue = Freeclimb::ExportStatus::INTAKING
40
+ expect(expectedValue).to eq(calculatedValue)
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "QUEUED"' do
45
+ it "should work" do
46
+ expect { Freeclimb::ExportStatus::QUEUED = "queued" }.not_to raise_error
47
+ end
48
+ it "should serialize to enum" do
49
+ expectedValue = Freeclimb::ExportStatus::QUEUED
50
+ calculatedValue = Freeclimb::ExportStatus.build_from_hash("queued")
51
+ expect(expectedValue).to eq(calculatedValue)
52
+ end
53
+ it "should deserialize to string" do
54
+ expectedValue = "queued"
55
+ calculatedValue = Freeclimb::ExportStatus::QUEUED
56
+ expect(expectedValue).to eq(calculatedValue)
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "IN_PROGRESS"' do
61
+ it "should work" do
62
+ expect { Freeclimb::ExportStatus::IN_PROGRESS = "inProgress" }.not_to raise_error
63
+ end
64
+ it "should serialize to enum" do
65
+ expectedValue = Freeclimb::ExportStatus::IN_PROGRESS
66
+ calculatedValue = Freeclimb::ExportStatus.build_from_hash("inProgress")
67
+ expect(expectedValue).to eq(calculatedValue)
68
+ end
69
+ it "should deserialize to string" do
70
+ expectedValue = "inProgress"
71
+ calculatedValue = Freeclimb::ExportStatus::IN_PROGRESS
72
+ expect(expectedValue).to eq(calculatedValue)
73
+ end
74
+ end
75
+
76
+ describe 'test attribute "COMPLETED"' do
77
+ it "should work" do
78
+ expect { Freeclimb::ExportStatus::COMPLETED = "completed" }.not_to raise_error
79
+ end
80
+ it "should serialize to enum" do
81
+ expectedValue = Freeclimb::ExportStatus::COMPLETED
82
+ calculatedValue = Freeclimb::ExportStatus.build_from_hash("completed")
83
+ expect(expectedValue).to eq(calculatedValue)
84
+ end
85
+ it "should deserialize to string" do
86
+ expectedValue = "completed"
87
+ calculatedValue = Freeclimb::ExportStatus::COMPLETED
88
+ expect(expectedValue).to eq(calculatedValue)
89
+ end
90
+ end
91
+
92
+ describe 'test attribute "FAILED"' do
93
+ it "should work" do
94
+ expect { Freeclimb::ExportStatus::FAILED = "failed" }.not_to raise_error
95
+ end
96
+ it "should serialize to enum" do
97
+ expectedValue = Freeclimb::ExportStatus::FAILED
98
+ calculatedValue = Freeclimb::ExportStatus.build_from_hash("failed")
99
+ expect(expectedValue).to eq(calculatedValue)
100
+ end
101
+ it "should deserialize to string" do
102
+ expectedValue = "failed"
103
+ calculatedValue = Freeclimb::ExportStatus::FAILED
104
+ expect(expectedValue).to eq(calculatedValue)
105
+ end
106
+ end
107
+
108
+ describe 'test attribute "DELETED"' do
109
+ it "should work" do
110
+ expect { Freeclimb::ExportStatus::DELETED = "deleted" }.not_to raise_error
111
+ end
112
+ it "should serialize to enum" do
113
+ expectedValue = Freeclimb::ExportStatus::DELETED
114
+ calculatedValue = Freeclimb::ExportStatus.build_from_hash("deleted")
115
+ expect(expectedValue).to eq(calculatedValue)
116
+ end
117
+ it "should deserialize to string" do
118
+ expectedValue = "deleted"
119
+ calculatedValue = Freeclimb::ExportStatus::DELETED
120
+ expect(expectedValue).to eq(calculatedValue)
121
+ end
122
+ end
123
+ end
@@ -116,20 +116,6 @@ describe Freeclimb::IncomingNumberResult do
116
116
  end
117
117
  end
118
118
 
119
- describe 'test attribute "voice_enabled"' do
120
- it "should work" do
121
- instance.voice_enabled = false
122
- expect(instance.voice_enabled).to eq(false)
123
- end
124
- end
125
-
126
- describe 'test attribute "sms_enabled"' do
127
- it "should work" do
128
- instance.sms_enabled = false
129
- expect(instance.sms_enabled).to eq(false)
130
- end
131
- end
132
-
133
119
  describe 'test attribute "offnet"' do
134
120
  it "should work" do
135
121
  instance.offnet = false
@@ -174,10 +160,6 @@ describe Freeclimb::IncomingNumberResult do
174
160
 
175
161
  country: "TS",
176
162
 
177
- voice_enabled: true,
178
-
179
- sms_enabled: true,
180
-
181
163
  offnet: true,
182
164
 
183
165
  tfn: TFN.new
@@ -213,10 +195,6 @@ describe Freeclimb::IncomingNumberResult do
213
195
 
214
196
  country: "TS",
215
197
 
216
- voice_enabled: true,
217
-
218
- sms_enabled: true,
219
-
220
198
  offnet: true,
221
199
 
222
200
  tfn: TFN.new,
@@ -254,10 +232,6 @@ describe Freeclimb::IncomingNumberResult do
254
232
 
255
233
  country: "TS",
256
234
 
257
- voice_enabled: true,
258
-
259
- sms_enabled: true,
260
-
261
235
  offnet: true,
262
236
 
263
237
  tfn: TFN.new,
@@ -297,10 +271,6 @@ describe Freeclimb::IncomingNumberResult do
297
271
 
298
272
  country: "TS",
299
273
 
300
- voice_enabled: true,
301
-
302
- sms_enabled: true,
303
-
304
274
  offnet: true,
305
275
 
306
276
  tfn: TFN.new
@@ -317,9 +287,9 @@ describe Freeclimb::IncomingNumberResult do
317
287
 
318
288
  describe 'test method "eql?"' do
319
289
  it "checks if objects are equal" do
320
- obj_Capabilities = Capabilities.new
290
+ obj_capabilities = Object.new
321
291
 
322
- obj_TFN = TFN.new
292
+ obj_tfn = Object.new
323
293
 
324
294
  instance_1 = Freeclimb::IncomingNumberResult.new(
325
295
  uri: "TS",
@@ -330,7 +300,7 @@ describe Freeclimb::IncomingNumberResult do
330
300
 
331
301
  revision: 1,
332
302
 
333
- capabilities: obj_Capabilities,
303
+ capabilities: obj_capabilities,
334
304
 
335
305
  campaign_id: "TS",
336
306
 
@@ -348,13 +318,9 @@ describe Freeclimb::IncomingNumberResult do
348
318
 
349
319
  country: "TS",
350
320
 
351
- voice_enabled: true,
352
-
353
- sms_enabled: true,
354
-
355
321
  offnet: true,
356
322
 
357
- tfn: obj_TFN
323
+ tfn: obj_tfn
358
324
  )
359
325
  instance_2 = Freeclimb::IncomingNumberResult.new(
360
326
  uri: "TS",
@@ -365,7 +331,7 @@ describe Freeclimb::IncomingNumberResult do
365
331
 
366
332
  revision: 1,
367
333
 
368
- capabilities: obj_Capabilities,
334
+ capabilities: obj_capabilities,
369
335
 
370
336
  campaign_id: "TS",
371
337
 
@@ -383,13 +349,9 @@ describe Freeclimb::IncomingNumberResult do
383
349
 
384
350
  country: "TS",
385
351
 
386
- voice_enabled: true,
387
-
388
- sms_enabled: true,
389
-
390
352
  offnet: true,
391
353
 
392
- tfn: obj_TFN
354
+ tfn: obj_tfn
393
355
  )
394
356
  expect(instance_1.eql?(instance_2)).to eq(true)
395
357
  end
@@ -422,10 +384,6 @@ describe Freeclimb::IncomingNumberResult do
422
384
 
423
385
  country: "TS",
424
386
 
425
- voice_enabled: true,
426
-
427
- sms_enabled: true,
428
-
429
387
  offnet: true,
430
388
 
431
389
  tfn: TFN.new
@@ -457,10 +415,6 @@ describe Freeclimb::IncomingNumberResult do
457
415
 
458
416
  country: "ST",
459
417
 
460
- voice_enabled: false,
461
-
462
- sms_enabled: false,
463
-
464
418
  offnet: false,
465
419
 
466
420
  tfn: TFN.new
@@ -498,10 +452,6 @@ describe Freeclimb::IncomingNumberResult do
498
452
 
499
453
  country: "TS",
500
454
 
501
- voice_enabled: true,
502
-
503
- sms_enabled: true,
504
-
505
455
  offnet: true,
506
456
 
507
457
  tfn: TFN.new
@@ -539,10 +489,6 @@ describe Freeclimb::IncomingNumberResult do
539
489
 
540
490
  country: "TS",
541
491
 
542
- voice_enabled: true,
543
-
544
- sms_enabled: true,
545
-
546
492
  offnet: true,
547
493
 
548
494
  tfn: TFN.new
@@ -574,10 +520,6 @@ describe Freeclimb::IncomingNumberResult do
574
520
 
575
521
  country: "TS",
576
522
 
577
- voice_enabled: true,
578
-
579
- sms_enabled: true,
580
-
581
523
  offnet: true,
582
524
 
583
525
  tfn: TFN.new
@@ -615,10 +557,6 @@ describe Freeclimb::IncomingNumberResult do
615
557
 
616
558
  country: "TS",
617
559
 
618
- voice_enabled: true,
619
-
620
- sms_enabled: true,
621
-
622
560
  offnet: true,
623
561
 
624
562
  tfn: TFN.new
@@ -675,14 +613,6 @@ describe Freeclimb::IncomingNumberResult do
675
613
  expect(instance._deserialize("String", instance.country)).to be_a_kind_of(String)
676
614
  end
677
615
 
678
- it "deserializes the data of voice_enabled" do
679
- expect(instance._deserialize("Boolean", instance.voice_enabled)).to be_a_kind_of(TrueClass)
680
- end
681
-
682
- it "deserializes the data of sms_enabled" do
683
- expect(instance._deserialize("Boolean", instance.sms_enabled)).to be_a_kind_of(TrueClass)
684
- end
685
-
686
616
  it "deserializes the data of offnet" do
687
617
  expect(instance._deserialize("Boolean", instance.offnet)).to be_a_kind_of(TrueClass)
688
618
  end
@@ -721,10 +651,6 @@ describe Freeclimb::IncomingNumberResult do
721
651
 
722
652
  country: "TS",
723
653
 
724
- voice_enabled: true,
725
-
726
- sms_enabled: true,
727
-
728
654
  offnet: true,
729
655
 
730
656
  tfn: TFN.new
@@ -762,10 +688,6 @@ describe Freeclimb::IncomingNumberResult do
762
688
 
763
689
  country: "TS",
764
690
 
765
- voice_enabled: true,
766
-
767
- sms_enabled: true,
768
-
769
691
  offnet: true,
770
692
 
771
693
  tfn: TFN.new
@@ -804,10 +726,6 @@ describe Freeclimb::IncomingNumberResult do
804
726
 
805
727
  country: "TS",
806
728
 
807
- voice_enabled: true,
808
-
809
- sms_enabled: true,
810
-
811
729
  offnet: true,
812
730
 
813
731
  tfn: obj
@@ -839,10 +757,6 @@ describe Freeclimb::IncomingNumberResult do
839
757
 
840
758
  country: "TS",
841
759
 
842
- voice_enabled: true,
843
-
844
- sms_enabled: true,
845
-
846
760
  offnet: true,
847
761
 
848
762
  tfn: obj
@@ -877,10 +791,6 @@ describe Freeclimb::IncomingNumberResult do
877
791
 
878
792
  country: "TS",
879
793
 
880
- voice_enabled: true,
881
-
882
- sms_enabled: true,
883
-
884
794
  offnet: true
885
795
  )
886
796
  it "returns uri in the form of hash" do
@@ -922,12 +832,6 @@ describe Freeclimb::IncomingNumberResult do
922
832
  it "returns country in the form of hash" do
923
833
  expect(instance._to_hash(instance.country)).to eq(instance.country)
924
834
  end
925
- it "returns voice_enabled in the form of hash" do
926
- expect(instance._to_hash(instance.voice_enabled)).to eq(instance.voice_enabled)
927
- end
928
- it "returns sms_enabled in the form of hash" do
929
- expect(instance._to_hash(instance.sms_enabled)).to eq(instance.sms_enabled)
930
- end
931
835
  it "returns offnet in the form of hash" do
932
836
  expect(instance._to_hash(instance.offnet)).to eq(instance.offnet)
933
837
  end
@@ -178,7 +178,7 @@ describe Freeclimb::LogResult do
178
178
 
179
179
  describe 'test method "eql?"' do
180
180
  it "checks if objects are equal" do
181
- obj_Object = Object.new
181
+ obj_metadata = Object.new
182
182
 
183
183
  instance_1 = Freeclimb::LogResult.new(
184
184
  timestamp: 1,
@@ -193,7 +193,7 @@ describe Freeclimb::LogResult do
193
193
 
194
194
  message: "TS",
195
195
 
196
- metadata: obj_Object
196
+ metadata: obj_metadata
197
197
  )
198
198
  instance_2 = Freeclimb::LogResult.new(
199
199
  timestamp: 1,
@@ -208,7 +208,7 @@ describe Freeclimb::LogResult do
208
208
 
209
209
  message: "TS",
210
210
 
211
- metadata: obj_Object
211
+ metadata: obj_metadata
212
212
  )
213
213
  expect(instance_1.eql?(instance_2)).to eq(true)
214
214
  end
@@ -380,7 +380,7 @@ describe Freeclimb::MessageResult do
380
380
 
381
381
  describe 'test method "eql?"' do
382
382
  it "checks if objects are equal" do
383
- obj_TFN = TFN.new
383
+ obj_tfn = Object.new
384
384
 
385
385
  instance_1 = Freeclimb::MessageResult.new(
386
386
  uri: "TS",
@@ -413,7 +413,7 @@ describe Freeclimb::MessageResult do
413
413
 
414
414
  media_urls: [],
415
415
 
416
- tfn: obj_TFN,
416
+ tfn: obj_tfn,
417
417
 
418
418
  phone_number_id: "TS",
419
419
 
@@ -450,7 +450,7 @@ describe Freeclimb::MessageResult do
450
450
 
451
451
  media_urls: [],
452
452
 
453
- tfn: obj_TFN,
453
+ tfn: obj_tfn,
454
454
 
455
455
  phone_number_id: "TS",
456
456
 
@@ -0,0 +1,226 @@
1
+ # #FreeClimb API
2
+ #
3
+ # FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
4
+ #
5
+ # The version of the OpenAPI document: 1.0.0
6
+ # Contact: support@freeclimb.com
7
+ # Generated by: https://openapi-generator.tech
8
+ # OpenAPI Generator version: 7.9.0
9
+ #
10
+
11
+ require "spec_helper"
12
+ require "json"
13
+ require "date"
14
+ include Freeclimb
15
+
16
+ # Unit tests for Freeclimb::ModifyBlobRequest
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe Freeclimb::ModifyBlobRequest do
20
+ let(:instance) { Freeclimb::ModifyBlobRequest.new }
21
+
22
+ describe "test an instance of ModifyBlobRequest" do
23
+ it "should create an instance of ModifyBlobRequest" do
24
+ expect(instance).to be_instance_of(Freeclimb::ModifyBlobRequest)
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "blob"' do
29
+ it "should work" do
30
+ testObject = Object.new
31
+ instance.blob = testObject
32
+ expect(instance.blob).to eq(testObject)
33
+
34
+ instance.blob = Object.new
35
+ expect(instance.blob).to be_instance_of(Object)
36
+ end
37
+ end
38
+
39
+ describe 'test attribute "_alias"' do
40
+ it "should assign a value of maxLength" do
41
+ instance._alias = "T" * 64
42
+ expect(instance._alias).to eq("T" * 64)
43
+ end
44
+ it "should not assign a value over maxLength" do
45
+ expect { instance._alias = "T" * (64 + 1) }.to raise_error(ArgumentError)
46
+ end
47
+ end
48
+
49
+ describe 'test method "initialize"' do
50
+ it "properly initializes with values" do
51
+ expect {
52
+ Freeclimb::ModifyBlobRequest.new(
53
+ blob: Object.new,
54
+
55
+ _alias: "TS"
56
+ )
57
+ }.not_to raise_error
58
+ end
59
+ it "fails to initialize with input argument that is not a hash in Freeclimb::ModifyBlobRequest" do
60
+ expect {
61
+ Freeclimb::ModifyBlobRequest.new(
62
+ blob: Object.new,
63
+
64
+ _alias: "TS",
65
+
66
+ invalid_attribute: true
67
+ )
68
+ }.to raise_error(ArgumentError)
69
+ end
70
+ it "fails to initialize with invalid attribute" do
71
+ expect {
72
+ Freeclimb::ModifyBlobRequest.new(
73
+ blob: Object.new,
74
+
75
+ _alias: "TS",
76
+
77
+ invalid_attribute: true
78
+ )
79
+ }.to raise_error(ArgumentError)
80
+ end
81
+ end
82
+
83
+ describe 'test method "valid"' do
84
+ it "checks if properties are valid" do
85
+ instance = Freeclimb::ModifyBlobRequest.new(
86
+ blob: Object.new,
87
+
88
+ _alias: "TS"
89
+ )
90
+ expect(instance.valid?).to eq(true)
91
+ end
92
+
93
+ skip "checks if properties are invalid" do
94
+ instance = Freeclimb::ModifyBlobRequest.new
95
+
96
+ expect(instance.valid?).to eq(false)
97
+ end
98
+ end
99
+
100
+ describe 'test method "eql?"' do
101
+ it "checks if objects are equal" do
102
+ obj_blob = Object.new
103
+
104
+ instance_1 = Freeclimb::ModifyBlobRequest.new(
105
+ blob: obj_blob,
106
+
107
+ _alias: "TS"
108
+ )
109
+ instance_2 = Freeclimb::ModifyBlobRequest.new(
110
+ blob: obj_blob,
111
+
112
+ _alias: "TS"
113
+ )
114
+ expect(instance_1.eql?(instance_2)).to eq(true)
115
+ end
116
+
117
+ it "checks if objects are not equal" do
118
+ instance_1 = Freeclimb::ModifyBlobRequest.new(
119
+ blob: Object.new,
120
+
121
+ blob: Object.new,
122
+
123
+ _alias: "TS"
124
+ )
125
+ instance_2 = Freeclimb::ModifyBlobRequest.new(
126
+ blob: Object.new,
127
+
128
+ _alias: "ST"
129
+ )
130
+ expect(instance_1.eql?(instance_2)).to eq(false)
131
+ end
132
+ end
133
+
134
+ describe 'test method "hash"' do
135
+ it "calculates hash code" do
136
+ instance = Freeclimb::ModifyBlobRequest.new(
137
+ blob: Object.new,
138
+
139
+ _alias: "TS"
140
+ )
141
+ expect(instance.hash).to be_a_kind_of(Integer)
142
+ end
143
+ end
144
+
145
+ describe 'test method "build_from_hash"' do
146
+ it "builds equivalent model from hash code" do
147
+ instance_1 = Freeclimb::ModifyBlobRequest.new(
148
+ blob: Object.new,
149
+
150
+ _alias: "TS"
151
+ )
152
+ instance_2 = Freeclimb::ModifyBlobRequest.new(
153
+ blob: Object.new,
154
+
155
+ _alias: "TS"
156
+ )
157
+
158
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
159
+ end
160
+ end
161
+
162
+ describe 'test method "_deserialize"' do
163
+ instance = Freeclimb::ModifyBlobRequest.new(
164
+ blob: Object.new,
165
+
166
+ _alias: "TS"
167
+ )
168
+
169
+ it "deserializes the data of blob" do
170
+ expect(instance._deserialize("Object", instance.blob)).to be_a_kind_of(Object)
171
+ end
172
+
173
+ it "deserializes the data of _alias" do
174
+ expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
175
+ end
176
+ end
177
+
178
+ describe 'test method "to_s"' do
179
+ it "returns the string representation of the object" do
180
+ instance = Freeclimb::ModifyBlobRequest.new(
181
+ blob: Object.new,
182
+
183
+ _alias: "TS"
184
+ )
185
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
186
+ end
187
+ end
188
+
189
+ describe 'test method "to_hash"' do
190
+ it "returns the object in the form of hash" do
191
+ instance = Freeclimb::ModifyBlobRequest.new(
192
+ blob: Object.new,
193
+
194
+ _alias: "TS"
195
+ )
196
+ expect(instance.to_hash).to be_a_kind_of(Hash)
197
+ end
198
+ it "creates equal hash for two equal objects" do
199
+ obj = Object.new
200
+
201
+ instance_1 = Freeclimb::ModifyBlobRequest.new(
202
+ blob: obj,
203
+
204
+ _alias: "TS"
205
+ )
206
+ instance_2 = Freeclimb::ModifyBlobRequest.new(
207
+ blob: obj,
208
+
209
+ _alias: "TS"
210
+ )
211
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
212
+ end
213
+ end
214
+
215
+ describe 'test method "_to_hash"' do
216
+ instance = Freeclimb::ModifyBlobRequest.new(
217
+ _alias: "TS"
218
+ )
219
+ it "returns blob in the form of hash" do
220
+ expect(instance._to_hash(instance.blob)).to eq(instance.blob)
221
+ end
222
+ it "returns _alias in the form of hash" do
223
+ expect(instance._to_hash(instance._alias)).to eq(instance._alias)
224
+ end
225
+ end
226
+ end