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,24 @@
1
+ # Freeclimb::ExportRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **resource_type** | [**ExportResourceType**](ExportResourceType.md) | | |
8
+ | **format** | **Array<String>** | | [optional] |
9
+ | **output** | [**ExportRequestOutput**](ExportRequestOutput.md) | | |
10
+ | **query** | **Object** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'freeclimb'
16
+
17
+ instance = Freeclimb::ExportRequest.new(
18
+ resource_type: null,
19
+ format: null,
20
+ output: null,
21
+ query: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # Freeclimb::ExportRequestOutput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ExportOutputType**](ExportOutputType.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'freeclimb'
13
+
14
+ instance = Freeclimb::ExportRequestOutput.new(
15
+ type: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,17 @@
1
+ # Freeclimb::ExportResourceType
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **MESSAGES** | **ExportResourceType** | | Represented in Ruby as "Messages" |
8
+ | **CALLS** | **ExportResourceType** | | Represented in Ruby as "Calls" |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'freeclimb'
14
+
15
+ instance = Freeclimb::ExportResourceType::[NAME OF ENUM]
16
+ ```
17
+
@@ -0,0 +1,40 @@
1
+ # Freeclimb::ExportResult
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **account_id** | **String** | String that uniquely identifies this account resource. | |
8
+ | **uri** | **String** | | |
9
+ | **date_created** | **String** | | |
10
+ | **date_updated** | **String** | | |
11
+ | **revision** | **Integer** | | |
12
+ | **export_id** | **String** | String that uniquely identifies this export resource | |
13
+ | **status** | [**ExportStatus**](ExportStatus.md) | | |
14
+ | **size** | **Integer** | | |
15
+ | **resource_type** | [**ExportResourceType**](ExportResourceType.md) | | |
16
+ | **query** | **Object** | Query params used to filter exported documents | |
17
+ | **format** | **Array<String>** | Desired fields of exported documents | |
18
+ | **output** | [**ExportResultOutput**](ExportResultOutput.md) | | |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'freeclimb'
24
+
25
+ instance = Freeclimb::ExportResult.new(
26
+ account_id: null,
27
+ uri: null,
28
+ date_created: null,
29
+ date_updated: null,
30
+ revision: null,
31
+ export_id: null,
32
+ status: null,
33
+ size: null,
34
+ resource_type: null,
35
+ query: null,
36
+ format: null,
37
+ output: null
38
+ )
39
+ ```
40
+
@@ -0,0 +1,18 @@
1
+ # Freeclimb::ExportResultOutput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ExportOutputType**](ExportOutputType.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'freeclimb'
13
+
14
+ instance = Freeclimb::ExportResultOutput.new(
15
+ type: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,21 @@
1
+ # Freeclimb::ExportStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **INTAKING** | **ExportStatus** | | Represented in Ruby as "intaking" |
8
+ | **QUEUED** | **ExportStatus** | | Represented in Ruby as "queued" |
9
+ | **IN_PROGRESS** | **ExportStatus** | | Represented in Ruby as "inProgress" |
10
+ | **COMPLETED** | **ExportStatus** | | Represented in Ruby as "completed" |
11
+ | **FAILED** | **ExportStatus** | | Represented in Ruby as "failed" |
12
+ | **DELETED** | **ExportStatus** | | Represented in Ruby as "deleted" |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'freeclimb'
18
+
19
+ instance = Freeclimb::ExportStatus::[NAME OF ENUM]
20
+ ```
21
+
@@ -276,6 +276,68 @@ module Freeclimb
276
276
  [data, status_code, headers]
277
277
  end
278
278
 
279
+ # Create an Export
280
+ # @param [Hash] opts the optional parameters
281
+ # @option opts [ExportRequest] :export_request A JSON object containing export creation parameters
282
+ # @return [ExportResult]
283
+ def create_export(opts = {})
284
+ data, _status_code, _headers = create_export_with_http_info(opts)
285
+ data
286
+ end
287
+
288
+ # Create an Export
289
+ # @param [Hash] opts the optional parameters
290
+ # @option opts [ExportRequest] :export_request A JSON object containing export creation parameters
291
+ # @return [Array<(ExportResult, Integer, Hash)>] ExportResult data, response status code and response headers
292
+ def create_export_with_http_info(opts = {})
293
+ if @api_client.config.debugging
294
+ @api_client.config.logger.debug "Calling API: DefaultApi.create_export ..."
295
+ end
296
+ # resource path
297
+ local_var_path = "/Accounts/{accountId}/Exports".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
298
+
299
+ # query parameters
300
+ query_params = opts[:query_params] || {}
301
+
302
+ # header parameters
303
+ header_params = opts[:header_params] || {}
304
+ # HTTP header 'Accept' (if needed)
305
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
306
+ # HTTP header 'Content-Type'
307
+ content_type = @api_client.select_header_content_type(["application/json"])
308
+ if !content_type.nil?
309
+ header_params["Content-Type"] = content_type
310
+ end
311
+
312
+ # form parameters
313
+ form_params = opts[:form_params] || {}
314
+
315
+ # http body (model)
316
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:export_request])
317
+
318
+ # return_type
319
+ return_type = opts[:debug_return_type] || "ExportResult"
320
+
321
+ # auth_names
322
+ auth_names = opts[:debug_auth_names] || ["fc"]
323
+
324
+ new_options = opts.merge(
325
+ operation: :"DefaultApi.create_export",
326
+ header_params: header_params,
327
+ query_params: query_params,
328
+ form_params: form_params,
329
+ body: post_body,
330
+ auth_names: auth_names,
331
+ return_type: return_type
332
+ )
333
+
334
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
335
+ if @api_client.config.debugging
336
+ @api_client.config.logger.debug "API called: DefaultApi#create_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
337
+ end
338
+ [data, status_code, headers]
339
+ end
340
+
279
341
  # Query the knowledge base
280
342
  # @param knowledge_base_id [String] A string that uniquely identifies the KnowledgeBase resource.
281
343
  # @param [Hash] opts the optional parameters
@@ -465,6 +527,66 @@ module Freeclimb
465
527
  [data, status_code, headers]
466
528
  end
467
529
 
530
+ # Delete an Export
531
+ # @param export_id [String] A string that uniquely identifies this export resource.
532
+ # @param [Hash] opts the optional parameters
533
+ # @return [nil]
534
+ def delete_an_export(export_id, opts = {})
535
+ delete_an_export_with_http_info(export_id, opts)
536
+ nil
537
+ end
538
+
539
+ # Delete an Export
540
+ # @param export_id [String] A string that uniquely identifies this export resource.
541
+ # @param [Hash] opts the optional parameters
542
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
543
+ def delete_an_export_with_http_info(export_id, opts = {})
544
+ if @api_client.config.debugging
545
+ @api_client.config.logger.debug "Calling API: DefaultApi.delete_an_export ..."
546
+ end
547
+
548
+ # verify the required parameter 'export_id' is set
549
+ if @api_client.config.client_side_validation && export_id.nil?
550
+ fail ArgumentError, "Missing the required parameter 'export_id' when calling DefaultApi.delete_an_export"
551
+ end
552
+ # resource path
553
+ local_var_path = "/Accounts/{accountId}/Exports/{exportId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "exportId" + "}", CGI.escape(export_id.to_s))
554
+
555
+ # query parameters
556
+ query_params = opts[:query_params] || {}
557
+
558
+ # header parameters
559
+ header_params = opts[:header_params] || {}
560
+
561
+ # form parameters
562
+ form_params = opts[:form_params] || {}
563
+
564
+ # http body (model)
565
+ post_body = opts[:debug_body]
566
+
567
+ # return_type
568
+ return_type = opts[:debug_return_type]
569
+
570
+ # auth_names
571
+ auth_names = opts[:debug_auth_names] || ["fc"]
572
+
573
+ new_options = opts.merge(
574
+ operation: :"DefaultApi.delete_an_export",
575
+ header_params: header_params,
576
+ query_params: query_params,
577
+ form_params: form_params,
578
+ body: post_body,
579
+ auth_names: auth_names,
580
+ return_type: return_type
581
+ )
582
+
583
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
584
+ if @api_client.config.debugging
585
+ @api_client.config.logger.debug "API called: DefaultApi#delete_an_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
586
+ end
587
+ [data, status_code, headers]
588
+ end
589
+
468
590
  # Delete an Incoming Number
469
591
  # @param phone_number_id [String] String that uniquely identifies this phone number resource.
470
592
  # @param [Hash] opts the optional parameters
@@ -718,6 +840,68 @@ module Freeclimb
718
840
  [data, status_code, headers]
719
841
  end
720
842
 
843
+ # Download an Export
844
+ # @param export_id [String] A string that uniquely identifies this export resource.
845
+ # @param [Hash] opts the optional parameters
846
+ # @return [String]
847
+ def download_an_export(export_id, opts = {})
848
+ data, _status_code, _headers = download_an_export_with_http_info(export_id, opts)
849
+ data
850
+ end
851
+
852
+ # Download an Export
853
+ # @param export_id [String] A string that uniquely identifies this export resource.
854
+ # @param [Hash] opts the optional parameters
855
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
856
+ def download_an_export_with_http_info(export_id, opts = {})
857
+ if @api_client.config.debugging
858
+ @api_client.config.logger.debug "Calling API: DefaultApi.download_an_export ..."
859
+ end
860
+
861
+ # verify the required parameter 'export_id' is set
862
+ if @api_client.config.client_side_validation && export_id.nil?
863
+ fail ArgumentError, "Missing the required parameter 'export_id' when calling DefaultApi.download_an_export"
864
+ end
865
+ # resource path
866
+ local_var_path = "/Accounts/{accountId}/Exports/{exportId}/Download".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "exportId" + "}", CGI.escape(export_id.to_s))
867
+
868
+ # query parameters
869
+ query_params = opts[:query_params] || {}
870
+
871
+ # header parameters
872
+ header_params = opts[:header_params] || {}
873
+ # HTTP header 'Accept' (if needed)
874
+ header_params["Accept"] = @api_client.select_header_accept(["text/csv"])
875
+
876
+ # form parameters
877
+ form_params = opts[:form_params] || {}
878
+
879
+ # http body (model)
880
+ post_body = opts[:debug_body]
881
+
882
+ # return_type
883
+ return_type = opts[:debug_return_type] || "String"
884
+
885
+ # auth_names
886
+ auth_names = opts[:debug_auth_names] || ["fc"]
887
+
888
+ new_options = opts.merge(
889
+ operation: :"DefaultApi.download_an_export",
890
+ header_params: header_params,
891
+ query_params: query_params,
892
+ form_params: form_params,
893
+ body: post_body,
894
+ auth_names: auth_names,
895
+ return_type: return_type
896
+ )
897
+
898
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
899
+ if @api_client.config.debugging
900
+ @api_client.config.logger.debug "API called: DefaultApi#download_an_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
901
+ end
902
+ [data, status_code, headers]
903
+ end
904
+
721
905
  # Filter Logs
722
906
  # @param filter_logs_request [FilterLogsRequest] Filter logs request paramters
723
907
  # @param [Hash] opts the optional parameters
@@ -1288,6 +1472,68 @@ module Freeclimb
1288
1472
  [data, status_code, headers]
1289
1473
  end
1290
1474
 
1475
+ # Get an Export
1476
+ # @param export_id [String] A string that uniquely identifies this export resource.
1477
+ # @param [Hash] opts the optional parameters
1478
+ # @return [ExportResult]
1479
+ def get_an_export(export_id, opts = {})
1480
+ data, _status_code, _headers = get_an_export_with_http_info(export_id, opts)
1481
+ data
1482
+ end
1483
+
1484
+ # Get an Export
1485
+ # @param export_id [String] A string that uniquely identifies this export resource.
1486
+ # @param [Hash] opts the optional parameters
1487
+ # @return [Array<(ExportResult, Integer, Hash)>] ExportResult data, response status code and response headers
1488
+ def get_an_export_with_http_info(export_id, opts = {})
1489
+ if @api_client.config.debugging
1490
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_an_export ..."
1491
+ end
1492
+
1493
+ # verify the required parameter 'export_id' is set
1494
+ if @api_client.config.client_side_validation && export_id.nil?
1495
+ fail ArgumentError, "Missing the required parameter 'export_id' when calling DefaultApi.get_an_export"
1496
+ end
1497
+ # resource path
1498
+ local_var_path = "/Accounts/{accountId}/Exports/{exportId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "exportId" + "}", CGI.escape(export_id.to_s))
1499
+
1500
+ # query parameters
1501
+ query_params = opts[:query_params] || {}
1502
+
1503
+ # header parameters
1504
+ header_params = opts[:header_params] || {}
1505
+ # HTTP header 'Accept' (if needed)
1506
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1507
+
1508
+ # form parameters
1509
+ form_params = opts[:form_params] || {}
1510
+
1511
+ # http body (model)
1512
+ post_body = opts[:debug_body]
1513
+
1514
+ # return_type
1515
+ return_type = opts[:debug_return_type] || "ExportResult"
1516
+
1517
+ # auth_names
1518
+ auth_names = opts[:debug_auth_names] || ["fc"]
1519
+
1520
+ new_options = opts.merge(
1521
+ operation: :"DefaultApi.get_an_export",
1522
+ header_params: header_params,
1523
+ query_params: query_params,
1524
+ form_params: form_params,
1525
+ body: post_body,
1526
+ auth_names: auth_names,
1527
+ return_type: return_type
1528
+ )
1529
+
1530
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1531
+ if @api_client.config.debugging
1532
+ @api_client.config.logger.debug "API called: DefaultApi#get_an_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1533
+ end
1534
+ [data, status_code, headers]
1535
+ end
1536
+
1291
1537
  # Get an Incoming Number
1292
1538
  # @param phone_number_id [String] String that uniquely identifies this phone number resource.
1293
1539
  # @param [Hash] opts the optional parameters
@@ -2341,6 +2587,8 @@ module Freeclimb
2341
2587
  # @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
2342
2588
  # @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
2343
2589
  # @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
2590
+ # @option opts [Integer] :risk_score_min The minimum riskScore that should be included in the list.
2591
+ # @option opts [Integer] :risk_score_max The maximum riskScore that should be included in the list.
2344
2592
  # @return [CallList]
2345
2593
  def list_calls(opts = {})
2346
2594
  data, _status_code, _headers = list_calls_with_http_info(opts)
@@ -2357,6 +2605,8 @@ module Freeclimb
2357
2605
  # @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
2358
2606
  # @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
2359
2607
  # @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
2608
+ # @option opts [Integer] :risk_score_min The minimum riskScore that should be included in the list.
2609
+ # @option opts [Integer] :risk_score_max The maximum riskScore that should be included in the list.
2360
2610
  # @return [Array<(CallList, Integer, Hash)>] CallList data, response status code and response headers
2361
2611
  def list_calls_with_http_info(opts = {})
2362
2612
  if @api_client.config.debugging
@@ -2379,6 +2629,8 @@ module Freeclimb
2379
2629
  query_params[:endTime] = opts[:end_time] if !opts[:end_time].nil?
2380
2630
  query_params[:parentCallId] = opts[:parent_call_id] if !opts[:parent_call_id].nil?
2381
2631
  query_params[:applicationId] = @api_client.build_collection_param(opts[:application_id], :multi) if !opts[:application_id].nil?
2632
+ query_params[:riskScoreMin] = opts[:risk_score_min] if !opts[:risk_score_min].nil?
2633
+ query_params[:riskScoreMax] = opts[:risk_score_max] if !opts[:risk_score_max].nil?
2382
2634
 
2383
2635
  # header parameters
2384
2636
  header_params = opts[:header_params] || {}
@@ -2549,6 +2801,67 @@ module Freeclimb
2549
2801
  [data, status_code, headers]
2550
2802
  end
2551
2803
 
2804
+ # List Exports
2805
+ # @param [Hash] opts the optional parameters
2806
+ # @option opts [ExportStatus] :status Status of export
2807
+ # @option opts [String] :cursor Used to reference pages of a list of exports
2808
+ # @return [ExportList]
2809
+ def list_exports(opts = {})
2810
+ data, _status_code, _headers = list_exports_with_http_info(opts)
2811
+ data
2812
+ end
2813
+
2814
+ # List Exports
2815
+ # @param [Hash] opts the optional parameters
2816
+ # @option opts [ExportStatus] :status Status of export
2817
+ # @option opts [String] :cursor Used to reference pages of a list of exports
2818
+ # @return [Array<(ExportList, Integer, Hash)>] ExportList data, response status code and response headers
2819
+ def list_exports_with_http_info(opts = {})
2820
+ if @api_client.config.debugging
2821
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_exports ..."
2822
+ end
2823
+ # resource path
2824
+ local_var_path = "/Accounts/{accountId}/Exports".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2825
+
2826
+ # query parameters
2827
+ query_params = opts[:query_params] || {}
2828
+ query_params[:status] = opts[:status] if !opts[:status].nil?
2829
+ query_params[:cursor] = opts[:cursor] if !opts[:cursor].nil?
2830
+
2831
+ # header parameters
2832
+ header_params = opts[:header_params] || {}
2833
+ # HTTP header 'Accept' (if needed)
2834
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2835
+
2836
+ # form parameters
2837
+ form_params = opts[:form_params] || {}
2838
+
2839
+ # http body (model)
2840
+ post_body = opts[:debug_body]
2841
+
2842
+ # return_type
2843
+ return_type = opts[:debug_return_type] || "ExportList"
2844
+
2845
+ # auth_names
2846
+ auth_names = opts[:debug_auth_names] || ["fc"]
2847
+
2848
+ new_options = opts.merge(
2849
+ operation: :"DefaultApi.list_exports",
2850
+ header_params: header_params,
2851
+ query_params: query_params,
2852
+ form_params: form_params,
2853
+ body: post_body,
2854
+ auth_names: auth_names,
2855
+ return_type: return_type
2856
+ )
2857
+
2858
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2859
+ if @api_client.config.debugging
2860
+ @api_client.config.logger.debug "API called: DefaultApi#list_exports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2861
+ end
2862
+ [data, status_code, headers]
2863
+ end
2864
+
2552
2865
  # List Incoming Numbers
2553
2866
  # @param [Hash] opts the optional parameters
2554
2867
  # @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
@@ -43,7 +43,7 @@ module Freeclimb
43
43
  # If the Call was inbound, this is the ID of the IncomingPhoneNumber that received the Call (DNIS). If the Call was outbound, this is the ID of the phone number from which the Call was placed (ANI).
44
44
  attr_accessor :phone_number_id
45
45
 
46
- attr_accessor :call_status
46
+ attr_accessor :status
47
47
 
48
48
  # Start time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed.
49
49
  attr_accessor :start_time
@@ -105,7 +105,7 @@ module Freeclimb
105
105
  from: :from,
106
106
  to: :to,
107
107
  phone_number_id: :phoneNumberId,
108
- call_status: :callStatus,
108
+ status: :status,
109
109
  start_time: :startTime,
110
110
  connect_time: :connectTime,
111
111
  end_time: :endTime,
@@ -136,7 +136,7 @@ module Freeclimb
136
136
  from: :String,
137
137
  to: :String,
138
138
  phone_number_id: :String,
139
- call_status: :CallStatus,
139
+ status: :CallStatus,
140
140
  start_time: :String,
141
141
  connect_time: :String,
142
142
  end_time: :String,
@@ -158,7 +158,7 @@ module Freeclimb
158
158
  :from,
159
159
  :to,
160
160
  :phone_number_id,
161
- :call_status,
161
+ :status,
162
162
  :start_time,
163
163
  :connect_time,
164
164
  :end_time,
@@ -233,8 +233,8 @@ module Freeclimb
233
233
  self.phone_number_id = attributes[:phone_number_id]
234
234
  end
235
235
 
236
- if attributes.key?(:call_status)
237
- self.call_status = attributes[:call_status]
236
+ if attributes.key?(:status)
237
+ self.status = attributes[:status]
238
238
  end
239
239
 
240
240
  if attributes.key?(:start_time)
@@ -305,7 +305,7 @@ module Freeclimb
305
305
  from == other.from &&
306
306
  to == other.to &&
307
307
  phone_number_id == other.phone_number_id &&
308
- call_status == other.call_status &&
308
+ status == other.status &&
309
309
  start_time == other.start_time &&
310
310
  connect_time == other.connect_time &&
311
311
  end_time == other.end_time &&
@@ -326,7 +326,7 @@ module Freeclimb
326
326
  # Calculates hash code according to all attributes.
327
327
  # @return [Integer] Hash code
328
328
  def hash
329
- [uri, date_created, date_updated, revision, call_id, parent_call_id, account_id, from, to, phone_number_id, call_status, start_time, connect_time, end_time, duration, connect_duration, direction, answered_by, subresource_uris, application_id].hash
329
+ [uri, date_created, date_updated, revision, call_id, parent_call_id, account_id, from, to, phone_number_id, status, start_time, connect_time, end_time, duration, connect_duration, direction, answered_by, subresource_uris, application_id].hash
330
330
  end
331
331
 
332
332
  # Builds the object from hash
@@ -31,6 +31,9 @@ module Freeclimb
31
31
  # If specified, this URL provides the custom hold music for the Conference when it is in the populated state. This attribute is always fetched using HTTP GET and is fetched just once – when the Conference is created. The URL must be an audio file that is reachable and readable by FreeClimb.
32
32
  attr_accessor :wait_url
33
33
 
34
+ # ID of the Call that created this leg (child call).
35
+ attr_accessor :parent_call_id
36
+
34
37
  class EnumAttributeValidator
35
38
  attr_reader :datatype
36
39
  attr_reader :allowable_values
@@ -61,7 +64,8 @@ module Freeclimb
61
64
  play_beep: :playBeep,
62
65
  record: :record,
63
66
  status_callback_url: :statusCallbackUrl,
64
- wait_url: :waitUrl
67
+ wait_url: :waitUrl,
68
+ parent_call_id: :parentCallId
65
69
  }
66
70
  end
67
71
 
@@ -74,11 +78,12 @@ module Freeclimb
74
78
  def self.openapi_types
75
79
  {
76
80
  action_url: :String,
77
- _alias: :Boolean,
81
+ _alias: :String,
78
82
  play_beep: :PlayBeep,
79
83
  record: :Boolean,
80
84
  status_callback_url: :String,
81
- wait_url: :String
85
+ wait_url: :String,
86
+ parent_call_id: :String
82
87
  }
83
88
  end
84
89
 
@@ -137,6 +142,10 @@ module Freeclimb
137
142
  if attributes.key?(:wait_url)
138
143
  self.wait_url = attributes[:wait_url]
139
144
  end
145
+
146
+ if attributes.key?(:parent_call_id)
147
+ self.parent_call_id = attributes[:parent_call_id]
148
+ end
140
149
  self.command = "CreateConference"
141
150
  end
142
151
 
@@ -171,7 +180,8 @@ module Freeclimb
171
180
  play_beep == other.play_beep &&
172
181
  record == other.record &&
173
182
  status_callback_url == other.status_callback_url &&
174
- wait_url == other.wait_url && super
183
+ wait_url == other.wait_url &&
184
+ parent_call_id == other.parent_call_id && super
175
185
  end
176
186
 
177
187
  # @see the `==` method
@@ -183,7 +193,7 @@ module Freeclimb
183
193
  # Calculates hash code according to all attributes.
184
194
  # @return [Integer] Hash code
185
195
  def hash
186
- [action_url, _alias, play_beep, record, status_callback_url, wait_url].hash
196
+ [action_url, _alias, play_beep, record, status_callback_url, wait_url, parent_call_id].hash
187
197
  end
188
198
 
189
199
  # Builds the object from hash