freeclimb 5.3.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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +18 -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/CreateBlobRequest.md +22 -0
  9. data/docs/DefaultApi.md +449 -6
  10. data/docs/IncomingNumberResult.md +0 -4
  11. data/docs/ModifyBlobRequest.md +20 -0
  12. data/docs/PlatformError.md +24 -0
  13. data/docs/ReplaceBlobRequest.md +18 -0
  14. data/docs/Say.md +2 -0
  15. data/docs/TTSEngine.md +20 -0
  16. data/docs/TTSEngineName.md +18 -0
  17. data/lib/freeclimb/api/default_api.rb +715 -8
  18. data/lib/freeclimb/models/available_number.rb +1 -23
  19. data/lib/freeclimb/models/blob_list_response.rb +303 -0
  20. data/lib/freeclimb/models/blob_result.rb +332 -0
  21. data/lib/freeclimb/models/create_blob_request.rb +255 -0
  22. data/lib/freeclimb/models/incoming_number_result.rb +1 -23
  23. data/lib/freeclimb/models/modify_blob_request.rb +245 -0
  24. data/lib/freeclimb/models/platform_error.rb +244 -0
  25. data/lib/freeclimb/models/replace_blob_request.rb +221 -0
  26. data/lib/freeclimb/models/say.rb +10 -1
  27. data/lib/freeclimb/models/tts_engine.rb +250 -0
  28. data/lib/freeclimb/models/tts_engine_name.rb +36 -0
  29. data/lib/freeclimb/version.rb +1 -1
  30. data/lib/freeclimb.rb +8 -0
  31. data/openapi.json +894 -97
  32. data/spec/api/default_api_spec.rb +188 -32
  33. data/spec/models/account_result_spec.rb +3 -3
  34. data/spec/models/available_number_spec.rb +3 -98
  35. data/spec/models/blob_list_response_spec.rb +502 -0
  36. data/spec/models/blob_result_spec.rb +489 -0
  37. data/spec/models/call_result_spec.rb +3 -3
  38. data/spec/models/conference_result_spec.rb +3 -3
  39. data/spec/models/create_blob_request_spec.rb +273 -0
  40. data/spec/models/export_request_spec.rb +6 -6
  41. data/spec/models/export_result_spec.rb +6 -6
  42. data/spec/models/incoming_number_result_spec.rb +6 -102
  43. data/spec/models/log_result_spec.rb +3 -3
  44. data/spec/models/message_result_spec.rb +3 -3
  45. data/spec/models/modify_blob_request_spec.rb +226 -0
  46. data/spec/models/platform_error_spec.rb +318 -0
  47. data/spec/models/queue_result_spec.rb +3 -3
  48. data/spec/models/replace_blob_request_spec.rb +176 -0
  49. data/spec/models/say_spec.rb +50 -0
  50. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +3 -3
  51. data/spec/models/transcribe_utterance_spec.rb +3 -3
  52. data/spec/models/tts_engine_name_spec.rb +75 -0
  53. data/spec/models/tts_engine_spec.rb +183 -0
  54. data/spec/spec_helper.rb +1 -1
  55. metadata +26 -2
@@ -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
@@ -0,0 +1,318 @@
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::PlatformError
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe Freeclimb::PlatformError do
20
+ let(:instance) { Freeclimb::PlatformError.new }
21
+
22
+ describe "test an instance of PlatformError" do
23
+ it "should create an instance of PlatformError" do
24
+ expect(instance).to be_instance_of(Freeclimb::PlatformError)
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "code"' do
29
+ it "should work" do
30
+ instance.code = 1
31
+ expect(instance.code).to eq(1)
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "call"' do
36
+ it "should work" do
37
+ instance.call = "TEST_STRING"
38
+ expect(instance.call).to eq("TEST_STRING")
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "url"' do
43
+ it "should work" do
44
+ instance.url = "TEST_STRING"
45
+ expect(instance.url).to eq("TEST_STRING")
46
+ end
47
+ end
48
+
49
+ describe 'test attribute "details"' do
50
+ it "should work" do
51
+ testObject = Object.new
52
+ instance.details = testObject
53
+ expect(instance.details).to eq(testObject)
54
+
55
+ instance.details = Object.new
56
+ expect(instance.details).to be_instance_of(Object)
57
+ end
58
+ end
59
+
60
+ describe 'test method "initialize"' do
61
+ it "properly initializes with values" do
62
+ expect {
63
+ Freeclimb::PlatformError.new(
64
+ code: 1,
65
+
66
+ call: "TS",
67
+
68
+ url: "TS",
69
+
70
+ details: Object.new
71
+ )
72
+ }.not_to raise_error
73
+ end
74
+ it "fails to initialize with input argument that is not a hash in Freeclimb::PlatformError" do
75
+ expect {
76
+ Freeclimb::PlatformError.new(
77
+ code: 1,
78
+
79
+ call: "TS",
80
+
81
+ url: "TS",
82
+
83
+ details: Object.new,
84
+
85
+ invalid_attribute: true
86
+ )
87
+ }.to raise_error(ArgumentError)
88
+ end
89
+ it "fails to initialize with invalid attribute" do
90
+ expect {
91
+ Freeclimb::PlatformError.new(
92
+ code: 1,
93
+
94
+ call: "TS",
95
+
96
+ url: "TS",
97
+
98
+ details: Object.new,
99
+
100
+ invalid_attribute: true
101
+ )
102
+ }.to raise_error(ArgumentError)
103
+ end
104
+ end
105
+
106
+ describe 'test method "valid"' do
107
+ it "checks if properties are valid" do
108
+ instance = Freeclimb::PlatformError.new(
109
+ code: 1,
110
+
111
+ call: "TS",
112
+
113
+ url: "TS",
114
+
115
+ details: Object.new
116
+ )
117
+ expect(instance.valid?).to eq(true)
118
+ end
119
+
120
+ skip "checks if properties are invalid" do
121
+ instance = Freeclimb::PlatformError.new
122
+
123
+ expect(instance.valid?).to eq(false)
124
+ end
125
+ end
126
+
127
+ describe 'test method "eql?"' do
128
+ it "checks if objects are equal" do
129
+ obj_details = Object.new
130
+
131
+ instance_1 = Freeclimb::PlatformError.new(
132
+ code: 1,
133
+
134
+ call: "TS",
135
+
136
+ url: "TS",
137
+
138
+ details: obj_details
139
+ )
140
+ instance_2 = Freeclimb::PlatformError.new(
141
+ code: 1,
142
+
143
+ call: "TS",
144
+
145
+ url: "TS",
146
+
147
+ details: obj_details
148
+ )
149
+ expect(instance_1.eql?(instance_2)).to eq(true)
150
+ end
151
+
152
+ it "checks if objects are not equal" do
153
+ instance_1 = Freeclimb::PlatformError.new(
154
+ code: 2,
155
+
156
+ call: "TS",
157
+
158
+ url: "TS",
159
+
160
+ details: Object.new,
161
+
162
+ details: Object.new
163
+ )
164
+ instance_2 = Freeclimb::PlatformError.new(
165
+ code: 1,
166
+
167
+ call: "ST",
168
+
169
+ url: "ST",
170
+
171
+ details: Object.new
172
+ )
173
+ expect(instance_1.eql?(instance_2)).to eq(false)
174
+ end
175
+ end
176
+
177
+ describe 'test method "hash"' do
178
+ it "calculates hash code" do
179
+ instance = Freeclimb::PlatformError.new(
180
+ code: 1,
181
+
182
+ call: "TS",
183
+
184
+ url: "TS",
185
+
186
+ details: Object.new
187
+ )
188
+ expect(instance.hash).to be_a_kind_of(Integer)
189
+ end
190
+ end
191
+
192
+ describe 'test method "build_from_hash"' do
193
+ it "builds equivalent model from hash code" do
194
+ instance_1 = Freeclimb::PlatformError.new(
195
+ code: 1,
196
+
197
+ call: "TS",
198
+
199
+ url: "TS",
200
+
201
+ details: Object.new
202
+ )
203
+ instance_2 = Freeclimb::PlatformError.new(
204
+ code: 1,
205
+
206
+ call: "TS",
207
+
208
+ url: "TS",
209
+
210
+ details: Object.new
211
+ )
212
+
213
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
214
+ end
215
+ end
216
+
217
+ describe 'test method "_deserialize"' do
218
+ instance = Freeclimb::PlatformError.new(
219
+ code: 1,
220
+
221
+ call: "TS",
222
+
223
+ url: "TS",
224
+
225
+ details: Object.new
226
+ )
227
+ it "deserializes the data of code" do
228
+ expect(instance._deserialize("Integer", instance.code)).to be_a_kind_of(Integer)
229
+ end
230
+
231
+ it "deserializes the data of call" do
232
+ expect(instance._deserialize("String", instance.call)).to be_a_kind_of(String)
233
+ end
234
+
235
+ it "deserializes the data of url" do
236
+ expect(instance._deserialize("String", instance.url)).to be_a_kind_of(String)
237
+ end
238
+
239
+ it "deserializes the data of details" do
240
+ expect(instance._deserialize("Object", instance.details)).to be_a_kind_of(Object)
241
+ end
242
+ end
243
+
244
+ describe 'test method "to_s"' do
245
+ it "returns the string representation of the object" do
246
+ instance = Freeclimb::PlatformError.new(
247
+ code: 1,
248
+
249
+ call: "TS",
250
+
251
+ url: "TS",
252
+
253
+ details: Object.new
254
+ )
255
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
256
+ end
257
+ end
258
+
259
+ describe 'test method "to_hash"' do
260
+ it "returns the object in the form of hash" do
261
+ instance = Freeclimb::PlatformError.new(
262
+ code: 1,
263
+
264
+ call: "TS",
265
+
266
+ url: "TS",
267
+
268
+ details: Object.new
269
+ )
270
+ expect(instance.to_hash).to be_a_kind_of(Hash)
271
+ end
272
+ it "creates equal hash for two equal objects" do
273
+ obj = Object.new
274
+
275
+ instance_1 = Freeclimb::PlatformError.new(
276
+ code: 1,
277
+
278
+ call: "TS",
279
+
280
+ url: "TS",
281
+
282
+ details: obj
283
+ )
284
+ instance_2 = Freeclimb::PlatformError.new(
285
+ code: 1,
286
+
287
+ call: "TS",
288
+
289
+ url: "TS",
290
+
291
+ details: obj
292
+ )
293
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
294
+ end
295
+ end
296
+
297
+ describe 'test method "_to_hash"' do
298
+ instance = Freeclimb::PlatformError.new(
299
+ code: 1,
300
+
301
+ call: "TS",
302
+
303
+ url: "TS"
304
+ )
305
+ it "returns code in the form of hash" do
306
+ expect(instance._to_hash(instance.code)).to eq(instance.code)
307
+ end
308
+ it "returns call in the form of hash" do
309
+ expect(instance._to_hash(instance.call)).to eq(instance.call)
310
+ end
311
+ it "returns url in the form of hash" do
312
+ expect(instance._to_hash(instance.url)).to eq(instance.url)
313
+ end
314
+ it "returns details in the form of hash" do
315
+ expect(instance._to_hash(instance.details)).to eq(instance.details)
316
+ end
317
+ end
318
+ end
@@ -231,7 +231,7 @@ describe Freeclimb::QueueResult do
231
231
 
232
232
  describe 'test method "eql?"' do
233
233
  it "checks if objects are equal" do
234
- obj_Object = Object.new
234
+ obj_subresource_uris = Object.new
235
235
 
236
236
  instance_1 = Freeclimb::QueueResult.new(
237
237
  uri: "TS",
@@ -254,7 +254,7 @@ describe Freeclimb::QueueResult do
254
254
 
255
255
  average_queue_removal_time: 1,
256
256
 
257
- subresource_uris: obj_Object
257
+ subresource_uris: obj_subresource_uris
258
258
  )
259
259
  instance_2 = Freeclimb::QueueResult.new(
260
260
  uri: "TS",
@@ -277,7 +277,7 @@ describe Freeclimb::QueueResult do
277
277
 
278
278
  average_queue_removal_time: 1,
279
279
 
280
- subresource_uris: obj_Object
280
+ subresource_uris: obj_subresource_uris
281
281
  )
282
282
  expect(instance_1.eql?(instance_2)).to eq(true)
283
283
  end