bandwidth-sdk 6.2.0 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bandwidth/api_helper.rb +19 -29
  3. data/lib/bandwidth/client.rb +8 -8
  4. data/lib/bandwidth/configuration.rb +20 -32
  5. data/lib/bandwidth/http/auth/{two_factor_auth_basic_auth.rb → multi_factor_auth_basic_auth.rb} +3 -3
  6. data/lib/bandwidth/http/faraday_client.rb +1 -1
  7. data/lib/bandwidth/messaging_lib/messaging/client.rb +14 -5
  8. data/lib/bandwidth/messaging_lib/messaging/controllers/api_controller.rb +78 -71
  9. data/lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb +3 -5
  10. data/lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb +5 -2
  11. data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_callback_message.rb +31 -11
  12. data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_message.rb +54 -25
  13. data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_message_item.rb +102 -24
  14. data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_messages_list.rb +23 -4
  15. data/lib/bandwidth/messaging_lib/messaging/models/deferred_result.rb +20 -4
  16. data/lib/bandwidth/messaging_lib/messaging/models/media.rb +27 -80
  17. data/lib/bandwidth/messaging_lib/messaging/models/message_request.rb +32 -14
  18. data/lib/bandwidth/messaging_lib/messaging/models/page_info.rb +28 -8
  19. data/lib/bandwidth/messaging_lib/messaging/models/tag.rb +20 -4
  20. data/lib/bandwidth/models/base_model.rb +30 -8
  21. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/client.rb +15 -6
  22. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/controllers/base_controller.rb +3 -5
  23. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/controllers/mfa_controller.rb +28 -23
  24. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/exceptions/error_with_request_exception.rb +5 -2
  25. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/exceptions/forbidden_request_exception.rb +4 -1
  26. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/exceptions/unauthorized_request_exception.rb +4 -1
  27. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/models/two_factor_code_request_schema.rb +27 -12
  28. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/models/two_factor_messaging_response.rb +17 -2
  29. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/models/two_factor_verify_code_response.rb +17 -2
  30. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/models/two_factor_verify_request_schema.rb +29 -10
  31. data/lib/bandwidth/{two_factor_auth_lib/two_factor_auth → multi_factor_auth_lib/multi_factor_auth}/models/two_factor_voice_response.rb +17 -2
  32. data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth.rb +23 -0
  33. data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/controllers/api_controller.rb +212 -210
  34. data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/controllers/base_controller.rb +3 -5
  35. data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/exceptions/accounts_tnlookup400_error_exception.rb +4 -1
  36. data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb +17 -2
  37. data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_response.rb +20 -4
  38. data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_status.rb +28 -7
  39. data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/result.rb +43 -18
  40. data/lib/bandwidth/utilities/date_time_helper.rb +156 -0
  41. data/lib/bandwidth/utilities/file_wrapper.rb +1 -2
  42. data/lib/bandwidth/voice_lib/voice/client.rb +14 -5
  43. data/lib/bandwidth/voice_lib/voice/controllers/api_controller.rb +418 -379
  44. data/lib/bandwidth/voice_lib/voice/controllers/base_controller.rb +3 -5
  45. data/lib/bandwidth/voice_lib/voice/exceptions/{api_error_response_exception.rb → api_error_exception.rb} +8 -5
  46. data/lib/bandwidth/voice_lib/voice/models/call_callback.rb +343 -0
  47. data/lib/bandwidth/voice_lib/voice/models/call_recording_metadata.rb +250 -0
  48. data/lib/bandwidth/voice_lib/voice/models/call_state.rb +284 -0
  49. data/lib/bandwidth/voice_lib/voice/models/callback_method_enum.rb +2 -20
  50. data/lib/bandwidth/voice_lib/voice/models/conference_callback.rb +211 -0
  51. data/lib/bandwidth/voice_lib/voice/models/conference_event_method_enum.rb +2 -20
  52. data/lib/bandwidth/voice_lib/voice/models/{conference_member_detail.rb → conference_member_state.rb} +43 -20
  53. data/lib/bandwidth/voice_lib/voice/models/conference_recording_metadata.rb +173 -0
  54. data/lib/bandwidth/voice_lib/voice/models/conference_state.rb +153 -0
  55. data/lib/bandwidth/voice_lib/voice/models/create_call_request.rb +301 -0
  56. data/lib/bandwidth/voice_lib/voice/models/create_call_response.rb +256 -0
  57. data/lib/bandwidth/voice_lib/voice/models/diversion.rb +80 -0
  58. data/lib/bandwidth/voice_lib/voice/models/fallback_method_enum.rb +17 -0
  59. data/lib/bandwidth/voice_lib/voice/models/machine_detection_configuration.rb +218 -0
  60. data/lib/bandwidth/voice_lib/voice/models/mode_enum.rb +20 -0
  61. data/lib/bandwidth/voice_lib/voice/models/{modify_call_recording_state.rb → modify_call_recording_request.rb} +19 -6
  62. data/lib/bandwidth/voice_lib/voice/models/modify_call_request.rb +156 -0
  63. data/lib/bandwidth/voice_lib/voice/models/modify_conference_request.rb +144 -0
  64. data/lib/bandwidth/voice_lib/voice/models/state1_enum.rb +7 -4
  65. data/lib/bandwidth/voice_lib/voice/models/state_enum.rb +4 -7
  66. data/lib/bandwidth/voice_lib/voice/models/transcribe_recording_request.rb +108 -0
  67. data/lib/bandwidth/voice_lib/voice/models/transcript.rb +20 -4
  68. data/lib/bandwidth/voice_lib/voice/models/transcription.rb +35 -17
  69. data/lib/bandwidth/voice_lib/voice/models/transcription_metadata.rb +89 -0
  70. data/lib/bandwidth/voice_lib/voice/models/transcription_response.rb +18 -1
  71. data/lib/bandwidth/voice_lib/voice.rb +20 -18
  72. data/lib/bandwidth/web_rtc_lib/utils/web_rtc_transfer.rb +7 -2
  73. data/lib/bandwidth/web_rtc_lib/web_rtc/client.rb +4 -4
  74. data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/api_controller.rb +75 -64
  75. data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/base_controller.rb +3 -5
  76. data/lib/bandwidth/web_rtc_lib/web_rtc/exceptions/error_exception.rb +5 -2
  77. data/lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb +20 -5
  78. data/lib/bandwidth/web_rtc_lib/web_rtc/models/participant.rb +37 -14
  79. data/lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb +15 -2
  80. data/lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb +20 -4
  81. data/lib/bandwidth/web_rtc_lib/web_rtc/models/subscriptions.rb +20 -3
  82. data/lib/bandwidth.rb +20 -18
  83. data/test/integration/test_integration.rb +92 -57
  84. metadata +35 -31
  85. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth.rb +0 -22
  86. data/lib/bandwidth/voice_lib/voice/models/api_call_response.rb +0 -207
  87. data/lib/bandwidth/voice_lib/voice/models/api_call_state_response.rb +0 -164
  88. data/lib/bandwidth/voice_lib/voice/models/api_create_call_request.rb +0 -248
  89. data/lib/bandwidth/voice_lib/voice/models/api_modify_call_request.rb +0 -116
  90. data/lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb +0 -107
  91. data/lib/bandwidth/voice_lib/voice/models/api_transcribe_recording_request.rb +0 -80
  92. data/lib/bandwidth/voice_lib/voice/models/conference_detail.rb +0 -108
  93. data/lib/bandwidth/voice_lib/voice/models/conference_recording_metadata_response.rb +0 -126
  94. data/lib/bandwidth/voice_lib/voice/models/disconnect_cause_enum.rb +0 -47
  95. data/lib/bandwidth/voice_lib/voice/models/recording_metadata_response.rb +0 -190
  96. data/lib/bandwidth/voice_lib/voice/models/state2_enum.rb +0 -20
  97. data/lib/bandwidth/voice_lib/voice/models/status1_enum.rb +0 -29
  98. data/lib/bandwidth/voice_lib/voice/models/status3_enum.rb +0 -32
@@ -1,116 +0,0 @@
1
- # bandwidth
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module Bandwidth
7
- # ApiModifyCallRequest Model.
8
- class ApiModifyCallRequest < BaseModel
9
- # TODO: Write general description for this method
10
- # @return [State1Enum]
11
- attr_accessor :state
12
-
13
- # TODO: Write general description for this method
14
- # @return [String]
15
- attr_accessor :redirect_url
16
-
17
- # TODO: Write general description for this method
18
- # @return [String]
19
- attr_accessor :redirect_fallback_url
20
-
21
- # TODO: Write general description for this method
22
- # @return [RedirectMethodEnum]
23
- attr_accessor :redirect_method
24
-
25
- # TODO: Write general description for this method
26
- # @return [RedirectFallbackMethodEnum]
27
- attr_accessor :redirect_fallback_method
28
-
29
- # TODO: Write general description for this method
30
- # @return [String]
31
- attr_accessor :username
32
-
33
- # TODO: Write general description for this method
34
- # @return [String]
35
- attr_accessor :password
36
-
37
- # TODO: Write general description for this method
38
- # @return [String]
39
- attr_accessor :fallback_username
40
-
41
- # TODO: Write general description for this method
42
- # @return [String]
43
- attr_accessor :fallback_password
44
-
45
- # TODO: Write general description for this method
46
- # @return [String]
47
- attr_accessor :tag
48
-
49
- # A mapping from model property names to API property names.
50
- def self.names
51
- @_hash = {} if @_hash.nil?
52
- @_hash['state'] = 'state'
53
- @_hash['redirect_url'] = 'redirectUrl'
54
- @_hash['redirect_fallback_url'] = 'redirectFallbackUrl'
55
- @_hash['redirect_method'] = 'redirectMethod'
56
- @_hash['redirect_fallback_method'] = 'redirectFallbackMethod'
57
- @_hash['username'] = 'username'
58
- @_hash['password'] = 'password'
59
- @_hash['fallback_username'] = 'fallbackUsername'
60
- @_hash['fallback_password'] = 'fallbackPassword'
61
- @_hash['tag'] = 'tag'
62
- @_hash
63
- end
64
-
65
- def initialize(redirect_url = nil,
66
- state = nil,
67
- redirect_fallback_url = nil,
68
- redirect_method = nil,
69
- redirect_fallback_method = nil,
70
- username = nil,
71
- password = nil,
72
- fallback_username = nil,
73
- fallback_password = nil,
74
- tag = nil)
75
- @state = state
76
- @redirect_url = redirect_url
77
- @redirect_fallback_url = redirect_fallback_url
78
- @redirect_method = redirect_method
79
- @redirect_fallback_method = redirect_fallback_method
80
- @username = username
81
- @password = password
82
- @fallback_username = fallback_username
83
- @fallback_password = fallback_password
84
- @tag = tag
85
- end
86
-
87
- # Creates an instance of the object from a hash.
88
- def self.from_hash(hash)
89
- return nil unless hash
90
-
91
- # Extract variables from the hash.
92
- redirect_url = hash['redirectUrl']
93
- state = hash['state']
94
- redirect_fallback_url = hash['redirectFallbackUrl']
95
- redirect_method = hash['redirectMethod']
96
- redirect_fallback_method = hash['redirectFallbackMethod']
97
- username = hash['username']
98
- password = hash['password']
99
- fallback_username = hash['fallbackUsername']
100
- fallback_password = hash['fallbackPassword']
101
- tag = hash['tag']
102
-
103
- # Create object from extracted values.
104
- ApiModifyCallRequest.new(redirect_url,
105
- state,
106
- redirect_fallback_url,
107
- redirect_method,
108
- redirect_fallback_method,
109
- username,
110
- password,
111
- fallback_username,
112
- fallback_password,
113
- tag)
114
- end
115
- end
116
- end
@@ -1,107 +0,0 @@
1
- # bandwidth
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module Bandwidth
7
- # ApiModifyConferenceRequest Model.
8
- class ApiModifyConferenceRequest < BaseModel
9
- # TODO: Write general description for this method
10
- # @return [StatusEnum]
11
- attr_accessor :status
12
-
13
- # TODO: Write general description for this method
14
- # @return [String]
15
- attr_accessor :redirect_url
16
-
17
- # TODO: Write general description for this method
18
- # @return [String]
19
- attr_accessor :redirect_fallback_url
20
-
21
- # TODO: Write general description for this method
22
- # @return [RedirectMethodEnum]
23
- attr_accessor :redirect_method
24
-
25
- # TODO: Write general description for this method
26
- # @return [RedirectFallbackMethodEnum]
27
- attr_accessor :redirect_fallback_method
28
-
29
- # TODO: Write general description for this method
30
- # @return [String]
31
- attr_accessor :username
32
-
33
- # TODO: Write general description for this method
34
- # @return [String]
35
- attr_accessor :password
36
-
37
- # TODO: Write general description for this method
38
- # @return [String]
39
- attr_accessor :fallback_username
40
-
41
- # TODO: Write general description for this method
42
- # @return [String]
43
- attr_accessor :fallback_password
44
-
45
- # A mapping from model property names to API property names.
46
- def self.names
47
- @_hash = {} if @_hash.nil?
48
- @_hash['status'] = 'status'
49
- @_hash['redirect_url'] = 'redirectUrl'
50
- @_hash['redirect_fallback_url'] = 'redirectFallbackUrl'
51
- @_hash['redirect_method'] = 'redirectMethod'
52
- @_hash['redirect_fallback_method'] = 'redirectFallbackMethod'
53
- @_hash['username'] = 'username'
54
- @_hash['password'] = 'password'
55
- @_hash['fallback_username'] = 'fallbackUsername'
56
- @_hash['fallback_password'] = 'fallbackPassword'
57
- @_hash
58
- end
59
-
60
- def initialize(status = nil,
61
- redirect_url = nil,
62
- redirect_fallback_url = nil,
63
- redirect_method = nil,
64
- redirect_fallback_method = nil,
65
- username = nil,
66
- password = nil,
67
- fallback_username = nil,
68
- fallback_password = nil)
69
- @status = status
70
- @redirect_url = redirect_url
71
- @redirect_fallback_url = redirect_fallback_url
72
- @redirect_method = redirect_method
73
- @redirect_fallback_method = redirect_fallback_method
74
- @username = username
75
- @password = password
76
- @fallback_username = fallback_username
77
- @fallback_password = fallback_password
78
- end
79
-
80
- # Creates an instance of the object from a hash.
81
- def self.from_hash(hash)
82
- return nil unless hash
83
-
84
- # Extract variables from the hash.
85
- status = hash['status']
86
- redirect_url = hash['redirectUrl']
87
- redirect_fallback_url = hash['redirectFallbackUrl']
88
- redirect_method = hash['redirectMethod']
89
- redirect_fallback_method = hash['redirectFallbackMethod']
90
- username = hash['username']
91
- password = hash['password']
92
- fallback_username = hash['fallbackUsername']
93
- fallback_password = hash['fallbackPassword']
94
-
95
- # Create object from extracted values.
96
- ApiModifyConferenceRequest.new(status,
97
- redirect_url,
98
- redirect_fallback_url,
99
- redirect_method,
100
- redirect_fallback_method,
101
- username,
102
- password,
103
- fallback_username,
104
- fallback_password)
105
- end
106
- end
107
- end
@@ -1,80 +0,0 @@
1
- # bandwidth
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module Bandwidth
7
- # ApiTranscribeRecordingRequest Model.
8
- class ApiTranscribeRecordingRequest < BaseModel
9
- # TODO: Write general description for this method
10
- # @return [String]
11
- attr_accessor :callback_url
12
-
13
- # TODO: Write general description for this method
14
- # @return [CallbackMethodEnum]
15
- attr_accessor :callback_method
16
-
17
- # TODO: Write general description for this method
18
- # @return [String]
19
- attr_accessor :username
20
-
21
- # TODO: Write general description for this method
22
- # @return [String]
23
- attr_accessor :password
24
-
25
- # TODO: Write general description for this method
26
- # @return [String]
27
- attr_accessor :tag
28
-
29
- # TODO: Write general description for this method
30
- # @return [Float]
31
- attr_accessor :callback_timeout
32
-
33
- # A mapping from model property names to API property names.
34
- def self.names
35
- @_hash = {} if @_hash.nil?
36
- @_hash['callback_url'] = 'callbackUrl'
37
- @_hash['callback_method'] = 'callbackMethod'
38
- @_hash['username'] = 'username'
39
- @_hash['password'] = 'password'
40
- @_hash['tag'] = 'tag'
41
- @_hash['callback_timeout'] = 'callbackTimeout'
42
- @_hash
43
- end
44
-
45
- def initialize(callback_url = nil,
46
- callback_method = nil,
47
- username = nil,
48
- password = nil,
49
- tag = nil,
50
- callback_timeout = nil)
51
- @callback_url = callback_url
52
- @callback_method = callback_method
53
- @username = username
54
- @password = password
55
- @tag = tag
56
- @callback_timeout = callback_timeout
57
- end
58
-
59
- # Creates an instance of the object from a hash.
60
- def self.from_hash(hash)
61
- return nil unless hash
62
-
63
- # Extract variables from the hash.
64
- callback_url = hash['callbackUrl']
65
- callback_method = hash['callbackMethod']
66
- username = hash['username']
67
- password = hash['password']
68
- tag = hash['tag']
69
- callback_timeout = hash['callbackTimeout']
70
-
71
- # Create object from extracted values.
72
- ApiTranscribeRecordingRequest.new(callback_url,
73
- callback_method,
74
- username,
75
- password,
76
- tag,
77
- callback_timeout)
78
- end
79
- end
80
- end
@@ -1,108 +0,0 @@
1
- # bandwidth
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require 'date'
7
- module Bandwidth
8
- # ConferenceDetail Model.
9
- class ConferenceDetail < BaseModel
10
- # TODO: Write general description for this method
11
- # @return [String]
12
- attr_accessor :id
13
-
14
- # TODO: Write general description for this method
15
- # @return [String]
16
- attr_accessor :name
17
-
18
- # TODO: Write general description for this method
19
- # @return [DateTime]
20
- attr_accessor :created_time
21
-
22
- # TODO: Write general description for this method
23
- # @return [DateTime]
24
- attr_accessor :completed_time
25
-
26
- # TODO: Write general description for this method
27
- # @return [String]
28
- attr_accessor :conference_event_url
29
-
30
- # TODO: Write general description for this method
31
- # @return [ConferenceEventMethodEnum]
32
- attr_accessor :conference_event_method
33
-
34
- # TODO: Write general description for this method
35
- # @return [String]
36
- attr_accessor :tag
37
-
38
- # TODO: Write general description for this method
39
- # @return [List of ConferenceMemberDetail]
40
- attr_accessor :active_members
41
-
42
- # A mapping from model property names to API property names.
43
- def self.names
44
- @_hash = {} if @_hash.nil?
45
- @_hash['id'] = 'id'
46
- @_hash['name'] = 'name'
47
- @_hash['created_time'] = 'createdTime'
48
- @_hash['completed_time'] = 'completedTime'
49
- @_hash['conference_event_url'] = 'conferenceEventUrl'
50
- @_hash['conference_event_method'] = 'conferenceEventMethod'
51
- @_hash['tag'] = 'tag'
52
- @_hash['active_members'] = 'activeMembers'
53
- @_hash
54
- end
55
-
56
- def initialize(id = nil,
57
- name = nil,
58
- created_time = nil,
59
- completed_time = nil,
60
- conference_event_url = nil,
61
- conference_event_method = nil,
62
- tag = nil,
63
- active_members = nil)
64
- @id = id
65
- @name = name
66
- @created_time = created_time
67
- @completed_time = completed_time
68
- @conference_event_url = conference_event_url
69
- @conference_event_method = conference_event_method
70
- @tag = tag
71
- @active_members = active_members
72
- end
73
-
74
- # Creates an instance of the object from a hash.
75
- def self.from_hash(hash)
76
- return nil unless hash
77
-
78
- # Extract variables from the hash.
79
- id = hash['id']
80
- name = hash['name']
81
- created_time = APIHelper.rfc3339(hash['createdTime']) if
82
- hash['createdTime']
83
- completed_time = APIHelper.rfc3339(hash['completedTime']) if
84
- hash['completedTime']
85
- conference_event_url = hash['conferenceEventUrl']
86
- conference_event_method = hash['conferenceEventMethod']
87
- tag = hash['tag']
88
- # Parameter is an array, so we need to iterate through it
89
- active_members = nil
90
- unless hash['activeMembers'].nil?
91
- active_members = []
92
- hash['activeMembers'].each do |structure|
93
- active_members << (ConferenceMemberDetail.from_hash(structure) if structure)
94
- end
95
- end
96
-
97
- # Create object from extracted values.
98
- ConferenceDetail.new(id,
99
- name,
100
- created_time,
101
- completed_time,
102
- conference_event_url,
103
- conference_event_method,
104
- tag,
105
- active_members)
106
- end
107
- end
108
- end
@@ -1,126 +0,0 @@
1
- # bandwidth
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require 'date'
7
- module Bandwidth
8
- # ConferenceRecordingMetadataResponse Model.
9
- class ConferenceRecordingMetadataResponse < BaseModel
10
- # TODO: Write general description for this method
11
- # @return [String]
12
- attr_accessor :account_id
13
-
14
- # TODO: Write general description for this method
15
- # @return [String]
16
- attr_accessor :conference_id
17
-
18
- # TODO: Write general description for this method
19
- # @return [String]
20
- attr_accessor :name
21
-
22
- # TODO: Write general description for this method
23
- # @return [String]
24
- attr_accessor :recording_id
25
-
26
- # Format is ISO-8601
27
- # @return [String]
28
- attr_accessor :duration
29
-
30
- # Format is ISO-8601
31
- # @return [Integer]
32
- attr_accessor :channels
33
-
34
- # Format is ISO-8601
35
- # @return [DateTime]
36
- attr_accessor :start_time
37
-
38
- # Format is ISO-8601
39
- # @return [DateTime]
40
- attr_accessor :end_time
41
-
42
- # Format is ISO-8601
43
- # @return [FileFormatEnum]
44
- attr_accessor :file_format
45
-
46
- # Format is ISO-8601
47
- # @return [Status1Enum]
48
- attr_accessor :status
49
-
50
- # Format is ISO-8601
51
- # @return [String]
52
- attr_accessor :media_url
53
-
54
- # A mapping from model property names to API property names.
55
- def self.names
56
- @_hash = {} if @_hash.nil?
57
- @_hash['account_id'] = 'accountId'
58
- @_hash['conference_id'] = 'conferenceId'
59
- @_hash['name'] = 'name'
60
- @_hash['recording_id'] = 'recordingId'
61
- @_hash['duration'] = 'duration'
62
- @_hash['channels'] = 'channels'
63
- @_hash['start_time'] = 'startTime'
64
- @_hash['end_time'] = 'endTime'
65
- @_hash['file_format'] = 'fileFormat'
66
- @_hash['status'] = 'status'
67
- @_hash['media_url'] = 'mediaUrl'
68
- @_hash
69
- end
70
-
71
- def initialize(account_id = nil,
72
- conference_id = nil,
73
- name = nil,
74
- recording_id = nil,
75
- duration = nil,
76
- channels = nil,
77
- start_time = nil,
78
- end_time = nil,
79
- file_format = nil,
80
- status = nil,
81
- media_url = nil)
82
- @account_id = account_id
83
- @conference_id = conference_id
84
- @name = name
85
- @recording_id = recording_id
86
- @duration = duration
87
- @channels = channels
88
- @start_time = start_time
89
- @end_time = end_time
90
- @file_format = file_format
91
- @status = status
92
- @media_url = media_url
93
- end
94
-
95
- # Creates an instance of the object from a hash.
96
- def self.from_hash(hash)
97
- return nil unless hash
98
-
99
- # Extract variables from the hash.
100
- account_id = hash['accountId']
101
- conference_id = hash['conferenceId']
102
- name = hash['name']
103
- recording_id = hash['recordingId']
104
- duration = hash['duration']
105
- channels = hash['channels']
106
- start_time = APIHelper.rfc3339(hash['startTime']) if hash['startTime']
107
- end_time = APIHelper.rfc3339(hash['endTime']) if hash['endTime']
108
- file_format = hash['fileFormat']
109
- status = hash['status']
110
- media_url = hash['mediaUrl']
111
-
112
- # Create object from extracted values.
113
- ConferenceRecordingMetadataResponse.new(account_id,
114
- conference_id,
115
- name,
116
- recording_id,
117
- duration,
118
- channels,
119
- start_time,
120
- end_time,
121
- file_format,
122
- status,
123
- media_url)
124
- end
125
- end
126
- end
@@ -1,47 +0,0 @@
1
- # bandwidth
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module Bandwidth
7
- # DisconnectCause.
8
- class DisconnectCauseEnum
9
- DISCONNECT_CAUSE_ENUM = [
10
- # TODO: Write general description for BUSY
11
- BUSY = 'busy'.freeze,
12
-
13
- # TODO: Write general description for CALLBACKERROR
14
- CALLBACKERROR = 'callback-error'.freeze,
15
-
16
- # TODO: Write general description for CANCEL
17
- CANCEL = 'cancel'.freeze,
18
-
19
- # TODO: Write general description for ERROR
20
- ERROR = 'error'.freeze,
21
-
22
- # TODO: Write general description for HANGUP
23
- HANGUP = 'hangup'.freeze,
24
-
25
- # TODO: Write general description for INVALIDBXML
26
- INVALIDBXML = 'invalid-bxml'.freeze,
27
-
28
- # TODO: Write general description for REJECTED
29
- REJECTED = 'rejected'.freeze,
30
-
31
- # TODO: Write general description for TIMEOUT
32
- TIMEOUT = 'timeout'.freeze,
33
-
34
- # TODO: Write general description for ACCOUNTLIMIT
35
- ACCOUNTLIMIT = 'account-limit'.freeze,
36
-
37
- # TODO: Write general description for NODECAPACITYEXCEEDED
38
- NODECAPACITYEXCEEDED = 'node-capacity-exceeded'.freeze,
39
-
40
- # TODO: Write general description for UNKNOWN
41
- UNKNOWN = 'unknown'.freeze,
42
-
43
- # TODO: Write general description for APPLICATIONERROR
44
- APPLICATIONERROR = 'application-error'.freeze
45
- ].freeze
46
- end
47
- end