freeclimb 5.2.0 → 5.3.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -1
  3. data/Gemfile.lock +3 -3
  4. data/README.md +17 -4
  5. data/docs/CallResult.md +2 -2
  6. data/docs/CreateConference.md +4 -2
  7. data/docs/DefaultApi.md +368 -1
  8. data/docs/ExportList.md +32 -0
  9. data/docs/ExportOutputType.md +16 -0
  10. data/docs/ExportRequest.md +24 -0
  11. data/docs/ExportRequestOutput.md +18 -0
  12. data/docs/ExportResourceType.md +17 -0
  13. data/docs/ExportResult.md +40 -0
  14. data/docs/ExportResultOutput.md +18 -0
  15. data/docs/ExportStatus.md +21 -0
  16. data/lib/freeclimb/api/default_api.rb +313 -0
  17. data/lib/freeclimb/models/call_result.rb +8 -8
  18. data/lib/freeclimb/models/create_conference.rb +15 -5
  19. data/lib/freeclimb/models/export_list.rb +304 -0
  20. data/lib/freeclimb/models/export_output_type.rb +34 -0
  21. data/lib/freeclimb/models/export_request.rb +276 -0
  22. data/lib/freeclimb/models/export_request_output.rb +243 -0
  23. data/lib/freeclimb/models/export_resource_type.rb +35 -0
  24. data/lib/freeclimb/models/export_result.rb +405 -0
  25. data/lib/freeclimb/models/export_result_output.rb +243 -0
  26. data/lib/freeclimb/models/export_status.rb +39 -0
  27. data/lib/freeclimb/version.rb +1 -1
  28. data/lib/freeclimb.rb +8 -0
  29. data/openapi.json +370 -2
  30. data/spec/api/default_api_spec.rb +141 -2
  31. data/spec/models/call_result_spec.rb +36 -36
  32. data/spec/models/create_conference_spec.rb +83 -35
  33. data/spec/models/export_list_spec.rb +502 -0
  34. data/spec/models/export_output_type_spec.rb +43 -0
  35. data/spec/models/export_request_output_spec.rb +162 -0
  36. data/spec/models/export_request_spec.rb +320 -0
  37. data/spec/models/export_resource_type_spec.rb +59 -0
  38. data/spec/models/export_result_output_spec.rb +162 -0
  39. data/spec/models/export_result_spec.rb +718 -0
  40. data/spec/models/export_status_spec.rb +123 -0
  41. data/yarn.lock +29 -29
  42. metadata +26 -2
@@ -0,0 +1,320 @@
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::ExportRequest
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe Freeclimb::ExportRequest do
20
+ let(:instance) { Freeclimb::ExportRequest.new }
21
+
22
+ describe "test an instance of ExportRequest" do
23
+ it "should create an instance of ExportRequest" do
24
+ expect(instance).to be_instance_of(Freeclimb::ExportRequest)
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "resource_type"' do
29
+ it "assigns value MESSAGES" do
30
+ instance.resource_type = Freeclimb::ExportResourceType::MESSAGES
31
+ expect(instance.resource_type).to eq(Freeclimb::ExportResourceType::MESSAGES)
32
+ end
33
+ it "assigns value CALLS" do
34
+ instance.resource_type = Freeclimb::ExportResourceType::CALLS
35
+ expect(instance.resource_type).to eq(Freeclimb::ExportResourceType::CALLS)
36
+ end
37
+ end
38
+ describe 'test attribute "format"' do
39
+ it "should work" do
40
+ instance.format = ["ELEMENT_1", "ELEMENT_2"]
41
+ expect(instance.format).to eq(["ELEMENT_1", "ELEMENT_2"])
42
+ end
43
+ end
44
+
45
+ describe 'test attribute "output"' do
46
+ it "should work" do
47
+ instance.output = ExportRequestOutput.new
48
+ expect(instance.output).to be_instance_of(ExportRequestOutput)
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "query"' do
53
+ it "should work" do
54
+ testObject = Object.new
55
+ instance.query = testObject
56
+ expect(instance.query).to eq(testObject)
57
+
58
+ instance.query = Object.new
59
+ expect(instance.query).to be_instance_of(Object)
60
+ end
61
+ end
62
+
63
+ describe 'test method "initialize"' do
64
+ it "properly initializes with values" do
65
+ expect {
66
+ Freeclimb::ExportRequest.new(
67
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
68
+
69
+ format: [],
70
+
71
+ output: ExportRequestOutput.new,
72
+
73
+ query: Object.new
74
+ )
75
+ }.not_to raise_error
76
+ end
77
+ it "fails to initialize with input argument that is not a hash in Freeclimb::ExportRequest" do
78
+ expect {
79
+ Freeclimb::ExportRequest.new(
80
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
81
+
82
+ format: [],
83
+
84
+ output: ExportRequestOutput.new,
85
+
86
+ query: Object.new,
87
+
88
+ invalid_attribute: true
89
+ )
90
+ }.to raise_error(ArgumentError)
91
+ end
92
+ it "fails to initialize with invalid attribute" do
93
+ expect {
94
+ Freeclimb::ExportRequest.new(
95
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
96
+
97
+ format: [],
98
+
99
+ output: ExportRequestOutput.new,
100
+
101
+ query: Object.new,
102
+
103
+ invalid_attribute: true
104
+ )
105
+ }.to raise_error(ArgumentError)
106
+ end
107
+ end
108
+
109
+ describe 'test method "valid"' do
110
+ it "checks if properties are valid" do
111
+ instance = Freeclimb::ExportRequest.new(
112
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
113
+
114
+ format: [],
115
+
116
+ output: ExportRequestOutput.new,
117
+
118
+ query: Object.new
119
+ )
120
+ expect(instance.valid?).to eq(true)
121
+ end
122
+
123
+ skip "checks if properties are invalid" do
124
+ instance = Freeclimb::ExportRequest.new
125
+
126
+ expect(instance.valid?).to eq(false)
127
+ end
128
+ end
129
+
130
+ describe 'test method "eql?"' do
131
+ it "checks if objects are equal" do
132
+ obj_ExportRequestOutput = ExportRequestOutput.new
133
+
134
+ obj_Object = Object.new
135
+
136
+ instance_1 = Freeclimb::ExportRequest.new(
137
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
138
+
139
+ format: [],
140
+
141
+ output: obj_ExportRequestOutput,
142
+
143
+ query: obj_Object
144
+ )
145
+ instance_2 = Freeclimb::ExportRequest.new(
146
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
147
+
148
+ format: [],
149
+
150
+ output: obj_ExportRequestOutput,
151
+
152
+ query: obj_Object
153
+ )
154
+ expect(instance_1.eql?(instance_2)).to eq(true)
155
+ end
156
+
157
+ it "checks if objects are not equal" do
158
+ instance_1 = Freeclimb::ExportRequest.new(
159
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
160
+
161
+ format: [],
162
+
163
+ output: ExportRequestOutput.new,
164
+
165
+ query: Object.new,
166
+
167
+ query: Object.new
168
+ )
169
+ instance_2 = Freeclimb::ExportRequest.new(
170
+ resource_type: nil,
171
+
172
+ format: nil,
173
+
174
+ output: ExportRequestOutput.new,
175
+
176
+ query: Object.new
177
+ )
178
+ expect(instance_1.eql?(instance_2)).to eq(false)
179
+ end
180
+ end
181
+
182
+ describe 'test method "hash"' do
183
+ it "calculates hash code" do
184
+ instance = Freeclimb::ExportRequest.new(
185
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
186
+
187
+ format: [],
188
+
189
+ output: ExportRequestOutput.new,
190
+
191
+ query: Object.new
192
+ )
193
+ expect(instance.hash).to be_a_kind_of(Integer)
194
+ end
195
+ end
196
+
197
+ describe 'test method "build_from_hash"' do
198
+ it "builds equivalent model from hash code" do
199
+ instance_1 = Freeclimb::ExportRequest.new(
200
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
201
+
202
+ format: [],
203
+
204
+ output: ExportRequestOutput.new,
205
+
206
+ query: Object.new
207
+ )
208
+ instance_2 = Freeclimb::ExportRequest.new(
209
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
210
+
211
+ format: [],
212
+
213
+ output: ExportRequestOutput.new,
214
+
215
+ query: Object.new
216
+ )
217
+
218
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
219
+ end
220
+ end
221
+
222
+ describe 'test method "_deserialize"' do
223
+ instance = Freeclimb::ExportRequest.new(
224
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
225
+
226
+ format: [],
227
+
228
+ output: ExportRequestOutput.new,
229
+
230
+ query: Object.new
231
+ )
232
+
233
+ it "deserializes the data of format" do
234
+ expect(instance._deserialize("Array<String>", instance.format)).to be_a_kind_of(Array)
235
+ end
236
+
237
+ it "deserializes the data of output" do
238
+ expect(instance._deserialize("Object", instance.output)).to be_a_kind_of(ExportRequestOutput)
239
+ end
240
+
241
+ it "deserializes the data of query" do
242
+ expect(instance._deserialize("Object", instance.query)).to be_a_kind_of(Object)
243
+ end
244
+ end
245
+
246
+ describe 'test method "to_s"' do
247
+ it "returns the string representation of the object" do
248
+ instance = Freeclimb::ExportRequest.new(
249
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
250
+
251
+ format: [],
252
+
253
+ output: ExportRequestOutput.new,
254
+
255
+ query: Object.new
256
+ )
257
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
258
+ end
259
+ end
260
+
261
+ describe 'test method "to_hash"' do
262
+ it "returns the object in the form of hash" do
263
+ instance = Freeclimb::ExportRequest.new(
264
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
265
+
266
+ format: [],
267
+
268
+ output: ExportRequestOutput.new,
269
+
270
+ query: Object.new
271
+ )
272
+ expect(instance.to_hash).to be_a_kind_of(Hash)
273
+ end
274
+ it "creates equal hash for two equal objects" do
275
+ ExportRequestOutput.new
276
+
277
+ obj = Object.new
278
+
279
+ instance_1 = Freeclimb::ExportRequest.new(
280
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
281
+
282
+ format: [],
283
+
284
+ output: obj,
285
+
286
+ query: obj
287
+ )
288
+ instance_2 = Freeclimb::ExportRequest.new(
289
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
290
+
291
+ format: [],
292
+
293
+ output: obj,
294
+
295
+ query: obj
296
+ )
297
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
298
+ end
299
+ end
300
+
301
+ describe 'test method "_to_hash"' do
302
+ instance = Freeclimb::ExportRequest.new(
303
+ resource_type: Freeclimb::ExportResourceType::MESSAGES,
304
+
305
+ format: []
306
+ )
307
+ it "returns resource_type in the form of hash" do
308
+ expect(instance._to_hash(instance.resource_type)).to eq(instance.resource_type)
309
+ end
310
+ it "returns format in the form of hash" do
311
+ expect(instance._to_hash(instance.format)).to eq(instance.format)
312
+ end
313
+ it "returns output in the form of hash" do
314
+ expect(instance._to_hash(instance.output)).to eq(instance.output)
315
+ end
316
+ it "returns query in the form of hash" do
317
+ expect(instance._to_hash(instance.query)).to eq(instance.query)
318
+ end
319
+ end
320
+ end
@@ -0,0 +1,59 @@
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::ExportResourceType
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe Freeclimb::ExportResourceType do
20
+ let(:instance) { Freeclimb::ExportResourceType.new }
21
+
22
+ describe "test an instance of ExportResourceType" do
23
+ it "should create an instance of ExportResourceType" do
24
+ expect(instance).to be_instance_of(Freeclimb::ExportResourceType)
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "MESSAGES"' do
29
+ it "should work" do
30
+ expect { Freeclimb::ExportResourceType::MESSAGES = "Messages" }.not_to raise_error
31
+ end
32
+ it "should serialize to enum" do
33
+ expectedValue = Freeclimb::ExportResourceType::MESSAGES
34
+ calculatedValue = Freeclimb::ExportResourceType.build_from_hash("Messages")
35
+ expect(expectedValue).to eq(calculatedValue)
36
+ end
37
+ it "should deserialize to string" do
38
+ expectedValue = "Messages"
39
+ calculatedValue = Freeclimb::ExportResourceType::MESSAGES
40
+ expect(expectedValue).to eq(calculatedValue)
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "CALLS"' do
45
+ it "should work" do
46
+ expect { Freeclimb::ExportResourceType::CALLS = "Calls" }.not_to raise_error
47
+ end
48
+ it "should serialize to enum" do
49
+ expectedValue = Freeclimb::ExportResourceType::CALLS
50
+ calculatedValue = Freeclimb::ExportResourceType.build_from_hash("Calls")
51
+ expect(expectedValue).to eq(calculatedValue)
52
+ end
53
+ it "should deserialize to string" do
54
+ expectedValue = "Calls"
55
+ calculatedValue = Freeclimb::ExportResourceType::CALLS
56
+ expect(expectedValue).to eq(calculatedValue)
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,162 @@
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::ExportResultOutput
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe Freeclimb::ExportResultOutput do
20
+ let(:instance) { Freeclimb::ExportResultOutput.new }
21
+
22
+ describe "test an instance of ExportResultOutput" do
23
+ it "should create an instance of ExportResultOutput" do
24
+ expect(instance).to be_instance_of(Freeclimb::ExportResultOutput)
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "type"' do
29
+ it "assigns value CSV" do
30
+ instance.type = Freeclimb::ExportOutputType::CSV
31
+ expect(instance.type).to eq(Freeclimb::ExportOutputType::CSV)
32
+ end
33
+ end
34
+ describe 'test method "initialize"' do
35
+ it "properly initializes with values" do
36
+ expect {
37
+ Freeclimb::ExportResultOutput.new(
38
+ type: Freeclimb::ExportOutputType::CSV
39
+ )
40
+ }.not_to raise_error
41
+ end
42
+ it "fails to initialize with input argument that is not a hash in Freeclimb::ExportResultOutput" do
43
+ expect {
44
+ Freeclimb::ExportResultOutput.new(
45
+ type: Freeclimb::ExportOutputType::CSV,
46
+
47
+ invalid_attribute: true
48
+ )
49
+ }.to raise_error(ArgumentError)
50
+ end
51
+ it "fails to initialize with invalid attribute" do
52
+ expect {
53
+ Freeclimb::ExportResultOutput.new(
54
+ type: Freeclimb::ExportOutputType::CSV,
55
+
56
+ invalid_attribute: true
57
+ )
58
+ }.to raise_error(ArgumentError)
59
+ end
60
+ end
61
+
62
+ describe 'test method "valid"' do
63
+ it "checks if properties are valid" do
64
+ instance = Freeclimb::ExportResultOutput.new(
65
+ type: Freeclimb::ExportOutputType::CSV
66
+ )
67
+ expect(instance.valid?).to eq(true)
68
+ end
69
+
70
+ skip "checks if properties are invalid" do
71
+ instance = Freeclimb::ExportResultOutput.new
72
+
73
+ expect(instance.valid?).to eq(false)
74
+ end
75
+ end
76
+
77
+ describe 'test method "eql?"' do
78
+ it "checks if objects are equal" do
79
+ instance_1 = Freeclimb::ExportResultOutput.new(
80
+ type: Freeclimb::ExportOutputType::CSV
81
+ )
82
+ instance_2 = Freeclimb::ExportResultOutput.new(
83
+ type: Freeclimb::ExportOutputType::CSV
84
+ )
85
+ expect(instance_1.eql?(instance_2)).to eq(true)
86
+ end
87
+
88
+ it "checks if objects are not equal" do
89
+ instance_1 = Freeclimb::ExportResultOutput.new(
90
+ type: Freeclimb::ExportOutputType::CSV
91
+ )
92
+ instance_2 = Freeclimb::ExportResultOutput.new(
93
+ type: nil
94
+ )
95
+ expect(instance_1.eql?(instance_2)).to eq(false)
96
+ end
97
+ end
98
+
99
+ describe 'test method "hash"' do
100
+ it "calculates hash code" do
101
+ instance = Freeclimb::ExportResultOutput.new(
102
+ type: Freeclimb::ExportOutputType::CSV
103
+ )
104
+ expect(instance.hash).to be_a_kind_of(Integer)
105
+ end
106
+ end
107
+
108
+ describe 'test method "build_from_hash"' do
109
+ it "builds equivalent model from hash code" do
110
+ instance_1 = Freeclimb::ExportResultOutput.new(
111
+ type: Freeclimb::ExportOutputType::CSV
112
+ )
113
+ instance_2 = Freeclimb::ExportResultOutput.new(
114
+ type: Freeclimb::ExportOutputType::CSV
115
+ )
116
+
117
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
118
+ end
119
+ end
120
+
121
+ describe 'test method "_deserialize"' do
122
+ Freeclimb::ExportResultOutput.new(
123
+ type: Freeclimb::ExportOutputType::CSV
124
+ )
125
+ end
126
+
127
+ describe 'test method "to_s"' do
128
+ it "returns the string representation of the object" do
129
+ instance = Freeclimb::ExportResultOutput.new(
130
+ type: Freeclimb::ExportOutputType::CSV
131
+ )
132
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
133
+ end
134
+ end
135
+
136
+ describe 'test method "to_hash"' do
137
+ it "returns the object in the form of hash" do
138
+ instance = Freeclimb::ExportResultOutput.new(
139
+ type: Freeclimb::ExportOutputType::CSV
140
+ )
141
+ expect(instance.to_hash).to be_a_kind_of(Hash)
142
+ end
143
+ it "creates equal hash for two equal objects" do
144
+ instance_1 = Freeclimb::ExportResultOutput.new(
145
+ type: Freeclimb::ExportOutputType::CSV
146
+ )
147
+ instance_2 = Freeclimb::ExportResultOutput.new(
148
+ type: Freeclimb::ExportOutputType::CSV
149
+ )
150
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
151
+ end
152
+ end
153
+
154
+ describe 'test method "_to_hash"' do
155
+ instance = Freeclimb::ExportResultOutput.new(
156
+ type: Freeclimb::ExportOutputType::CSV
157
+ )
158
+ it "returns type in the form of hash" do
159
+ expect(instance._to_hash(instance.type)).to eq(instance.type)
160
+ end
161
+ end
162
+ end