bandwidth-sdk 3.12.1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/bandwidth/http/api_response.rb +2 -0
  4. data/lib/bandwidth/http/faraday_client.rb +9 -2
  5. data/lib/bandwidth/messaging_lib/messaging.rb +3 -0
  6. data/lib/bandwidth/messaging_lib/messaging/controllers/api_controller.rb +138 -23
  7. data/lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb +1 -1
  8. data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_message.rb +12 -11
  9. data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_message_item.rb +125 -0
  10. data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_messages_list.rb +60 -0
  11. data/lib/bandwidth/messaging_lib/messaging/models/media.rb +4 -4
  12. data/lib/bandwidth/messaging_lib/messaging/models/message_request.rb +8 -6
  13. data/lib/bandwidth/messaging_lib/messaging/models/page_info.rb +62 -0
  14. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/controllers/api_controller.rb +3 -3
  15. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/controllers/base_controller.rb +1 -1
  16. data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_verify_request_schema.rb +0 -19
  17. data/lib/bandwidth/voice_lib/bxml/verbs/sip_uri.rb +25 -0
  18. data/lib/bandwidth/voice_lib/bxml/verbs/tag.rb +13 -0
  19. data/lib/bandwidth/voice_lib/bxml/verbs/transfer.rb +9 -2
  20. data/lib/bandwidth/voice_lib/voice.rb +1 -1
  21. data/lib/bandwidth/voice_lib/voice/controllers/api_controller.rb +51 -52
  22. data/lib/bandwidth/voice_lib/voice/controllers/base_controller.rb +1 -1
  23. data/lib/bandwidth/voice_lib/voice/models/api_create_call_request.rb +77 -17
  24. data/lib/bandwidth/voice_lib/voice/models/{call_engine_modify_conference_request.rb → api_modify_conference_request.rb} +14 -14
  25. data/lib/bandwidth/voice_lib/voice/models/state_enum.rb +3 -3
  26. data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/api_controller.rb +24 -24
  27. data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/base_controller.rb +1 -1
  28. data/test/controllers/controller_test_base.rb +21 -0
  29. data/test/http_response_catcher.rb +19 -0
  30. data/test/test_helper.rb +94 -0
  31. metadata +47 -5
@@ -0,0 +1,60 @@
1
+ # bandwidth
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module Bandwidth
7
+ # BandwidthMessagesList Model.
8
+ class BandwidthMessagesList < BaseModel
9
+ # Total number of messages matched by the search
10
+ # @return [Integer]
11
+ attr_accessor :total_count
12
+
13
+ # Total number of messages matched by the search
14
+ # @return [PageInfo]
15
+ attr_accessor :page_info
16
+
17
+ # Total number of messages matched by the search
18
+ # @return [List of BandwidthMessageItem]
19
+ attr_accessor :messages
20
+
21
+ # A mapping from model property names to API property names.
22
+ def self.names
23
+ @_hash = {} if @_hash.nil?
24
+ @_hash['total_count'] = 'totalCount'
25
+ @_hash['page_info'] = 'pageInfo'
26
+ @_hash['messages'] = 'messages'
27
+ @_hash
28
+ end
29
+
30
+ def initialize(total_count = nil,
31
+ page_info = nil,
32
+ messages = nil)
33
+ @total_count = total_count
34
+ @page_info = page_info
35
+ @messages = messages
36
+ end
37
+
38
+ # Creates an instance of the object from a hash.
39
+ def self.from_hash(hash)
40
+ return nil unless hash
41
+
42
+ # Extract variables from the hash.
43
+ total_count = hash['totalCount']
44
+ page_info = PageInfo.from_hash(hash['pageInfo']) if hash['pageInfo']
45
+ # Parameter is an array, so we need to iterate through it
46
+ messages = nil
47
+ unless hash['messages'].nil?
48
+ messages = []
49
+ hash['messages'].each do |structure|
50
+ messages << (BandwidthMessageItem.from_hash(structure) if structure)
51
+ end
52
+ end
53
+
54
+ # Create object from extracted values.
55
+ BandwidthMessagesList.new(total_count,
56
+ page_info,
57
+ messages)
58
+ end
59
+ end
60
+ end
@@ -30,19 +30,19 @@ module Bandwidth
30
30
  # @return [List of Tag]
31
31
  attr_accessor :tags
32
32
 
33
- # TODO: Write general description for this method
33
+ # User's account ID
34
34
  # @return [String]
35
35
  attr_accessor :user_id
36
36
 
37
- # TODO: Write general description for this method
37
+ # User's account ID
38
38
  # @return [String]
39
39
  attr_accessor :media_name
40
40
 
41
- # TODO: Write general description for this method
41
+ # User's account ID
42
42
  # @return [String]
43
43
  attr_accessor :media_id
44
44
 
45
- # TODO: Write general description for this method
45
+ # User's account ID
46
46
  # @return [String]
47
47
  attr_accessor :cache_control
48
48
 
@@ -6,27 +6,29 @@
6
6
  module Bandwidth
7
7
  # MessageRequest Model.
8
8
  class MessageRequest < BaseModel
9
- # TODO: Write general description for this method
9
+ # The ID of the Application your from number is associated with in the
10
+ # Bandwidth Phone Number Dashboard.
10
11
  # @return [String]
11
12
  attr_accessor :application_id
12
13
 
13
- # TODO: Write general description for this method
14
+ # The phone number(s) the message should be sent to in E164 format
14
15
  # @return [List of String]
15
16
  attr_accessor :to
16
17
 
17
- # TODO: Write general description for this method
18
+ # One of your telephone numbers the message should come from in E164 format
18
19
  # @return [String]
19
20
  attr_accessor :from
20
21
 
21
- # TODO: Write general description for this method
22
+ # The contents of the text message. Must be 2048 characters or less.
22
23
  # @return [String]
23
24
  attr_accessor :text
24
25
 
25
- # TODO: Write general description for this method
26
+ # A list of URLs to include as media attachments as part of the message.
26
27
  # @return [List of String]
27
28
  attr_accessor :media
28
29
 
29
- # TODO: Write general description for this method
30
+ # A custom string that will be included in callback events of the message.
31
+ # Max 1024 characters
30
32
  # @return [String]
31
33
  attr_accessor :tag
32
34
 
@@ -0,0 +1,62 @@
1
+ # bandwidth
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module Bandwidth
7
+ # PageInfo Model.
8
+ class PageInfo < BaseModel
9
+ # The link to the previous page for pagination
10
+ # @return [String]
11
+ attr_accessor :prev_page
12
+
13
+ # The link to the next page for pagination
14
+ # @return [String]
15
+ attr_accessor :next_page
16
+
17
+ # The isolated pagination token for the previous page
18
+ # @return [String]
19
+ attr_accessor :prev_page_token
20
+
21
+ # The isolated pagination token for the next page
22
+ # @return [String]
23
+ attr_accessor :next_page_token
24
+
25
+ # A mapping from model property names to API property names.
26
+ def self.names
27
+ @_hash = {} if @_hash.nil?
28
+ @_hash['prev_page'] = 'prevPage'
29
+ @_hash['next_page'] = 'nextPage'
30
+ @_hash['prev_page_token'] = 'prevPageToken'
31
+ @_hash['next_page_token'] = 'nextPageToken'
32
+ @_hash
33
+ end
34
+
35
+ def initialize(prev_page = nil,
36
+ next_page = nil,
37
+ prev_page_token = nil,
38
+ next_page_token = nil)
39
+ @prev_page = prev_page
40
+ @next_page = next_page
41
+ @prev_page_token = prev_page_token
42
+ @next_page_token = next_page_token
43
+ end
44
+
45
+ # Creates an instance of the object from a hash.
46
+ def self.from_hash(hash)
47
+ return nil unless hash
48
+
49
+ # Extract variables from the hash.
50
+ prev_page = hash['prevPage']
51
+ next_page = hash['nextPage']
52
+ prev_page_token = hash['prevPageToken']
53
+ next_page_token = hash['nextPageToken']
54
+
55
+ # Create object from extracted values.
56
+ PageInfo.new(prev_page,
57
+ next_page,
58
+ prev_page_token,
59
+ next_page_token)
60
+ end
61
+ end
62
+ end
@@ -23,7 +23,7 @@ module TwoFactorAuth
23
23
  _query_builder << '/accounts/{accountId}/code/voice'
24
24
  _query_builder = APIHelper.append_url_with_template_parameters(
25
25
  _query_builder,
26
- 'accountId' => { 'value' => account_id, 'encode' => true }
26
+ 'accountId' => { 'value' => account_id, 'encode' => false }
27
27
  )
28
28
  _query_url = APIHelper.clean_url _query_builder
29
29
 
@@ -70,7 +70,7 @@ module TwoFactorAuth
70
70
  _query_builder << '/accounts/{accountId}/code/messaging'
71
71
  _query_builder = APIHelper.append_url_with_template_parameters(
72
72
  _query_builder,
73
- 'accountId' => { 'value' => account_id, 'encode' => true }
73
+ 'accountId' => { 'value' => account_id, 'encode' => false }
74
74
  )
75
75
  _query_url = APIHelper.clean_url _query_builder
76
76
 
@@ -118,7 +118,7 @@ module TwoFactorAuth
118
118
  _query_builder << '/accounts/{accountId}/code/verify'
119
119
  _query_builder = APIHelper.append_url_with_template_parameters(
120
120
  _query_builder,
121
- 'accountId' => { 'value' => account_id, 'encode' => true }
121
+ 'accountId' => { 'value' => account_id, 'encode' => false }
122
122
  )
123
123
  _query_url = APIHelper.clean_url _query_builder
124
124
 
@@ -13,7 +13,7 @@ module Bandwidth
13
13
  @http_call_back = http_call_back
14
14
 
15
15
  @global_headers = {
16
- 'user-agent' => 'ruby-sdk-refs/tags/ruby3.12.1'
16
+ 'user-agent' => 'ruby-sdk'
17
17
  }
18
18
  end
19
19
 
@@ -10,10 +10,6 @@ module Bandwidth
10
10
  # @return [String]
11
11
  attr_accessor :to
12
12
 
13
- # The application phone number, the sender of the 2fa code.
14
- # @return [String]
15
- attr_accessor :from
16
-
17
13
  # The application unique ID, obtained from Bandwidth.
18
14
  # @return [String]
19
15
  attr_accessor :application_id
@@ -23,11 +19,6 @@ module Bandwidth
23
19
  # @return [String]
24
20
  attr_accessor :scope
25
21
 
26
- # The number of digits for your 2fa code. The valid number ranges from 2 to
27
- # 8, inclusively.
28
- # @return [Float]
29
- attr_accessor :digits
30
-
31
22
  # The time period, in minutes, to validate the 2fa code. By setting this to
32
23
  # 3 minutes, it will mean any code generated within the last 3 minutes are
33
24
  # still valid. The valid range for expiration time is between 0 and 15
@@ -43,27 +34,21 @@ module Bandwidth
43
34
  def self.names
44
35
  @_hash = {} if @_hash.nil?
45
36
  @_hash['to'] = 'to'
46
- @_hash['from'] = 'from'
47
37
  @_hash['application_id'] = 'applicationId'
48
38
  @_hash['scope'] = 'scope'
49
- @_hash['digits'] = 'digits'
50
39
  @_hash['expiration_time_in_minutes'] = 'expirationTimeInMinutes'
51
40
  @_hash['code'] = 'code'
52
41
  @_hash
53
42
  end
54
43
 
55
44
  def initialize(to = nil,
56
- from = nil,
57
45
  application_id = nil,
58
- digits = nil,
59
46
  expiration_time_in_minutes = nil,
60
47
  code = nil,
61
48
  scope = nil)
62
49
  @to = to
63
- @from = from
64
50
  @application_id = application_id
65
51
  @scope = scope
66
- @digits = digits
67
52
  @expiration_time_in_minutes = expiration_time_in_minutes
68
53
  @code = code
69
54
  end
@@ -74,18 +59,14 @@ module Bandwidth
74
59
 
75
60
  # Extract variables from the hash.
76
61
  to = hash['to']
77
- from = hash['from']
78
62
  application_id = hash['applicationId']
79
- digits = hash['digits']
80
63
  expiration_time_in_minutes = hash['expirationTimeInMinutes']
81
64
  code = hash['code']
82
65
  scope = hash['scope']
83
66
 
84
67
  # Create object from extracted values.
85
68
  TwoFactorVerifyRequestSchema.new(to,
86
- from,
87
69
  application_id,
88
- digits,
89
70
  expiration_time_in_minutes,
90
71
  code,
91
72
  scope)
@@ -0,0 +1,25 @@
1
+ require_relative 'xml_verb'
2
+
3
+ module Bandwidth
4
+ module Voice
5
+ class SipUri
6
+ include XmlVerb
7
+ def to_bxml(xml)
8
+ xml.SipUri(uri, compact_hash({
9
+ 'transferAnswerUrl' => transfer_answer_url,
10
+ 'transferAnswerMethod' => transfer_answer_method,
11
+ 'transferDisconnectUrl' => transfer_disconnect_url,
12
+ 'transferDisconnectMethod' => transfer_disconnect_method,
13
+ 'username' => username,
14
+ 'password' => password,
15
+ 'tag' => tag,
16
+ 'uui' => uui,
17
+ 'transferAnswerFallbackUrl' => transfer_answer_fallback_url,
18
+ 'transferAnswerFallbackMethod' => transfer_answer_fallback_method,
19
+ 'fallbackUsername' => fallback_username,
20
+ 'fallbackPassword' => fallback_password
21
+ }))
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,13 @@
1
+ require_relative 'xml_verb'
2
+
3
+ module Bandwidth
4
+ module Voice
5
+ class Tag
6
+ include XmlVerb
7
+
8
+ def to_bxml(xml)
9
+ xml.Tag(tag)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -31,8 +31,15 @@ module Bandwidth
31
31
  s.to_bxml(xml)
32
32
  end
33
33
  end
34
- phone_numbers.each do |number|
35
- embedded_xml(xml, number, PhoneNumber)
34
+ if not phone_numbers.nil?
35
+ phone_numbers.each do |number|
36
+ embedded_xml(xml, number, PhoneNumber)
37
+ end
38
+ end
39
+ if not sip_uris.nil?
40
+ sip_uris.each do |sip_uri|
41
+ embedded_xml(xml, sip_uri, SipUri)
42
+ end
36
43
  end
37
44
  end
38
45
  end
@@ -11,7 +11,7 @@ require_relative 'voice/models/api_call_response.rb'
11
11
  require_relative 'voice/models/api_call_state_response.rb'
12
12
  require_relative 'voice/models/api_create_call_request.rb'
13
13
  require_relative 'voice/models/api_modify_call_request.rb'
14
- require_relative 'voice/models/call_engine_modify_conference_request.rb'
14
+ require_relative 'voice/models/api_modify_conference_request.rb'
15
15
  require_relative 'voice/models/api_transcribe_recording_request.rb'
16
16
  require_relative 'voice/models/conference_detail.rb'
17
17
  require_relative 'voice/models/conference_member_detail.rb'
@@ -22,7 +22,7 @@ module Voice
22
22
  _query_builder << '/api/v2/accounts/{accountId}/calls'
23
23
  _query_builder = APIHelper.append_url_with_template_parameters(
24
24
  _query_builder,
25
- 'accountId' => { 'value' => account_id, 'encode' => true }
25
+ 'accountId' => { 'value' => account_id, 'encode' => false }
26
26
  )
27
27
  _query_url = APIHelper.clean_url _query_builder
28
28
 
@@ -102,8 +102,8 @@ module Voice
102
102
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}'
103
103
  _query_builder = APIHelper.append_url_with_template_parameters(
104
104
  _query_builder,
105
- 'accountId' => { 'value' => account_id, 'encode' => true },
106
- 'callId' => { 'value' => call_id, 'encode' => true }
105
+ 'accountId' => { 'value' => account_id, 'encode' => false },
106
+ 'callId' => { 'value' => call_id, 'encode' => false }
107
107
  )
108
108
  _query_url = APIHelper.clean_url _query_builder
109
109
 
@@ -183,8 +183,8 @@ module Voice
183
183
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}'
184
184
  _query_builder = APIHelper.append_url_with_template_parameters(
185
185
  _query_builder,
186
- 'accountId' => { 'value' => account_id, 'encode' => true },
187
- 'callId' => { 'value' => call_id, 'encode' => true }
186
+ 'accountId' => { 'value' => account_id, 'encode' => false },
187
+ 'callId' => { 'value' => call_id, 'encode' => false }
188
188
  )
189
189
  _query_url = APIHelper.clean_url _query_builder
190
190
 
@@ -262,8 +262,8 @@ module Voice
262
262
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recording'
263
263
  _query_builder = APIHelper.append_url_with_template_parameters(
264
264
  _query_builder,
265
- 'accountId' => { 'value' => account_id, 'encode' => true },
266
- 'callId' => { 'value' => call_id, 'encode' => true }
265
+ 'accountId' => { 'value' => account_id, 'encode' => false },
266
+ 'callId' => { 'value' => call_id, 'encode' => false }
267
267
  )
268
268
  _query_url = APIHelper.clean_url _query_builder
269
269
 
@@ -340,8 +340,8 @@ module Voice
340
340
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings'
341
341
  _query_builder = APIHelper.append_url_with_template_parameters(
342
342
  _query_builder,
343
- 'accountId' => { 'value' => account_id, 'encode' => true },
344
- 'callId' => { 'value' => call_id, 'encode' => true }
343
+ 'accountId' => { 'value' => account_id, 'encode' => false },
344
+ 'callId' => { 'value' => call_id, 'encode' => false }
345
345
  )
346
346
  _query_url = APIHelper.clean_url _query_builder
347
347
 
@@ -422,9 +422,9 @@ module Voice
422
422
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}'
423
423
  _query_builder = APIHelper.append_url_with_template_parameters(
424
424
  _query_builder,
425
- 'accountId' => { 'value' => account_id, 'encode' => true },
426
- 'callId' => { 'value' => call_id, 'encode' => true },
427
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
425
+ 'accountId' => { 'value' => account_id, 'encode' => false },
426
+ 'callId' => { 'value' => call_id, 'encode' => false },
427
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
428
428
  )
429
429
  _query_url = APIHelper.clean_url _query_builder
430
430
 
@@ -504,9 +504,9 @@ module Voice
504
504
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}'
505
505
  _query_builder = APIHelper.append_url_with_template_parameters(
506
506
  _query_builder,
507
- 'accountId' => { 'value' => account_id, 'encode' => true },
508
- 'callId' => { 'value' => call_id, 'encode' => true },
509
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
507
+ 'accountId' => { 'value' => account_id, 'encode' => false },
508
+ 'callId' => { 'value' => call_id, 'encode' => false },
509
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
510
510
  )
511
511
  _query_url = APIHelper.clean_url _query_builder
512
512
 
@@ -577,9 +577,9 @@ module Voice
577
577
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media'
578
578
  _query_builder = APIHelper.append_url_with_template_parameters(
579
579
  _query_builder,
580
- 'accountId' => { 'value' => account_id, 'encode' => true },
581
- 'callId' => { 'value' => call_id, 'encode' => true },
582
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
580
+ 'accountId' => { 'value' => account_id, 'encode' => false },
581
+ 'callId' => { 'value' => call_id, 'encode' => false },
582
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
583
583
  )
584
584
  _query_url = APIHelper.clean_url _query_builder
585
585
 
@@ -652,9 +652,9 @@ module Voice
652
652
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media'
653
653
  _query_builder = APIHelper.append_url_with_template_parameters(
654
654
  _query_builder,
655
- 'accountId' => { 'value' => account_id, 'encode' => true },
656
- 'callId' => { 'value' => call_id, 'encode' => true },
657
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
655
+ 'accountId' => { 'value' => account_id, 'encode' => false },
656
+ 'callId' => { 'value' => call_id, 'encode' => false },
657
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
658
658
  )
659
659
  _query_url = APIHelper.clean_url _query_builder
660
660
 
@@ -725,9 +725,9 @@ module Voice
725
725
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription'
726
726
  _query_builder = APIHelper.append_url_with_template_parameters(
727
727
  _query_builder,
728
- 'accountId' => { 'value' => account_id, 'encode' => true },
729
- 'callId' => { 'value' => call_id, 'encode' => true },
730
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
728
+ 'accountId' => { 'value' => account_id, 'encode' => false },
729
+ 'callId' => { 'value' => call_id, 'encode' => false },
730
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
731
731
  )
732
732
  _query_url = APIHelper.clean_url _query_builder
733
733
 
@@ -809,9 +809,9 @@ module Voice
809
809
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription'
810
810
  _query_builder = APIHelper.append_url_with_template_parameters(
811
811
  _query_builder,
812
- 'accountId' => { 'value' => account_id, 'encode' => true },
813
- 'callId' => { 'value' => call_id, 'encode' => true },
814
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
812
+ 'accountId' => { 'value' => account_id, 'encode' => false },
813
+ 'callId' => { 'value' => call_id, 'encode' => false },
814
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
815
815
  )
816
816
  _query_url = APIHelper.clean_url _query_builder
817
817
 
@@ -895,9 +895,9 @@ module Voice
895
895
  _query_builder << '/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription'
896
896
  _query_builder = APIHelper.append_url_with_template_parameters(
897
897
  _query_builder,
898
- 'accountId' => { 'value' => account_id, 'encode' => true },
899
- 'callId' => { 'value' => call_id, 'encode' => true },
900
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
898
+ 'accountId' => { 'value' => account_id, 'encode' => false },
899
+ 'callId' => { 'value' => call_id, 'encode' => false },
900
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
901
901
  )
902
902
  _query_url = APIHelper.clean_url _query_builder
903
903
 
@@ -974,7 +974,7 @@ module Voice
974
974
  _query_builder << '/api/v2/accounts/{accountId}/conferences'
975
975
  _query_builder = APIHelper.append_url_with_template_parameters(
976
976
  _query_builder,
977
- 'accountId' => { 'value' => account_id, 'encode' => true }
977
+ 'accountId' => { 'value' => account_id, 'encode' => false }
978
978
  )
979
979
  _query_builder = APIHelper.append_url_with_query_parameters(
980
980
  _query_builder,
@@ -1061,8 +1061,8 @@ module Voice
1061
1061
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}'
1062
1062
  _query_builder = APIHelper.append_url_with_template_parameters(
1063
1063
  _query_builder,
1064
- 'accountId' => { 'value' => account_id, 'encode' => true },
1065
- 'conferenceId' => { 'value' => conference_id, 'encode' => true }
1064
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1065
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false }
1066
1066
  )
1067
1067
  _query_url = APIHelper.clean_url _query_builder
1068
1068
 
@@ -1132,8 +1132,7 @@ module Voice
1132
1132
  # Modify the conference state
1133
1133
  # @param [String] account_id Required parameter: Example:
1134
1134
  # @param [String] conference_id Required parameter: Example:
1135
- # @param [CallEngineModifyConferenceRequest] body Optional parameter:
1136
- # Example:
1135
+ # @param [ApiModifyConferenceRequest] body Optional parameter: Example:
1137
1136
  # @return [void] response from the API call
1138
1137
  def modify_conference(account_id,
1139
1138
  conference_id,
@@ -1143,8 +1142,8 @@ module Voice
1143
1142
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}'
1144
1143
  _query_builder = APIHelper.append_url_with_template_parameters(
1145
1144
  _query_builder,
1146
- 'accountId' => { 'value' => account_id, 'encode' => true },
1147
- 'conferenceId' => { 'value' => conference_id, 'encode' => true }
1145
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1146
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false }
1148
1147
  )
1149
1148
  _query_url = APIHelper.clean_url _query_builder
1150
1149
 
@@ -1224,9 +1223,9 @@ module Voice
1224
1223
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}/members/{callId}'
1225
1224
  _query_builder = APIHelper.append_url_with_template_parameters(
1226
1225
  _query_builder,
1227
- 'accountId' => { 'value' => account_id, 'encode' => true },
1228
- 'conferenceId' => { 'value' => conference_id, 'encode' => true },
1229
- 'callId' => { 'value' => call_id, 'encode' => true }
1226
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1227
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false },
1228
+ 'callId' => { 'value' => call_id, 'encode' => false }
1230
1229
  )
1231
1230
  _query_url = APIHelper.clean_url _query_builder
1232
1231
 
@@ -1304,9 +1303,9 @@ module Voice
1304
1303
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}/members/{memberId}'
1305
1304
  _query_builder = APIHelper.append_url_with_template_parameters(
1306
1305
  _query_builder,
1307
- 'accountId' => { 'value' => account_id, 'encode' => true },
1308
- 'conferenceId' => { 'value' => conference_id, 'encode' => true },
1309
- 'memberId' => { 'value' => member_id, 'encode' => true }
1306
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1307
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false },
1308
+ 'memberId' => { 'value' => member_id, 'encode' => false }
1310
1309
  )
1311
1310
  _query_url = APIHelper.clean_url _query_builder
1312
1311
 
@@ -1385,8 +1384,8 @@ module Voice
1385
1384
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}/recordings'
1386
1385
  _query_builder = APIHelper.append_url_with_template_parameters(
1387
1386
  _query_builder,
1388
- 'accountId' => { 'value' => account_id, 'encode' => true },
1389
- 'conferenceId' => { 'value' => conference_id, 'encode' => true }
1387
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1388
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false }
1390
1389
  )
1391
1390
  _query_url = APIHelper.clean_url _query_builder
1392
1391
 
@@ -1467,9 +1466,9 @@ module Voice
1467
1466
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}'
1468
1467
  _query_builder = APIHelper.append_url_with_template_parameters(
1469
1468
  _query_builder,
1470
- 'accountId' => { 'value' => account_id, 'encode' => true },
1471
- 'conferenceId' => { 'value' => conference_id, 'encode' => true },
1472
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
1469
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1470
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false },
1471
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
1473
1472
  )
1474
1473
  _query_url = APIHelper.clean_url _query_builder
1475
1474
 
@@ -1549,9 +1548,9 @@ module Voice
1549
1548
  _query_builder << '/api/v2/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/media'
1550
1549
  _query_builder = APIHelper.append_url_with_template_parameters(
1551
1550
  _query_builder,
1552
- 'accountId' => { 'value' => account_id, 'encode' => true },
1553
- 'conferenceId' => { 'value' => conference_id, 'encode' => true },
1554
- 'recordingId' => { 'value' => recording_id, 'encode' => true }
1551
+ 'accountId' => { 'value' => account_id, 'encode' => false },
1552
+ 'conferenceId' => { 'value' => conference_id, 'encode' => false },
1553
+ 'recordingId' => { 'value' => recording_id, 'encode' => false }
1555
1554
  )
1556
1555
  _query_url = APIHelper.clean_url _query_builder
1557
1556
 
@@ -1631,7 +1630,7 @@ module Voice
1631
1630
  _query_builder << '/api/v2/accounts/{accountId}/recordings'
1632
1631
  _query_builder = APIHelper.append_url_with_template_parameters(
1633
1632
  _query_builder,
1634
- 'accountId' => { 'value' => account_id, 'encode' => true }
1633
+ 'accountId' => { 'value' => account_id, 'encode' => false }
1635
1634
  )
1636
1635
  _query_builder = APIHelper.append_url_with_query_parameters(
1637
1636
  _query_builder,