twilio-ruby 5.27.0 → 5.27.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +5 -5
  2. data/.dockerignore +1 -0
  3. data/CHANGES.md +13 -0
  4. data/CONTRIBUTING.md +2 -0
  5. data/Dockerfile +2 -2
  6. data/README.md +2 -2
  7. data/lib/twilio-ruby/http/http_client.rb +1 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
  9. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
  10. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
  11. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
  12. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
  13. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
  14. data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
  15. data/lib/twilio-ruby/rest/flex_api.rb +6 -3
  16. data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
  17. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
  18. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
  19. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
  20. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
  21. data/lib/twilio-ruby/rest/messaging.rb +3 -2
  22. data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
  23. data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
  24. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
  25. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
  26. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
  27. data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
  28. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
  29. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
  30. data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
  31. data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
  32. data/lib/twilio-ruby/rest/monitor.rb +4 -2
  33. data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
  34. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
  35. data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
  36. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
  37. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
  38. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
  39. data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
  40. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
  41. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
  42. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
  43. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
  44. data/lib/twilio-ruby/rest/serverless.rb +2 -1
  45. data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
  46. data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
  47. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
  48. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
  49. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
  50. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
  51. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
  52. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
  53. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
  54. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
  55. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
  56. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
  57. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
  58. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
  59. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
  60. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
  61. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
  62. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
  63. data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
  64. data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
  65. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
  66. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
  67. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
  68. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
  69. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
  70. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
  71. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
  72. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
  73. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
  74. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
  75. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
  76. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
  77. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
  78. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
  79. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
  80. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
  81. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
  82. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
  83. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
  84. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
  85. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
  86. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
  87. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
  88. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
  89. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
  90. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
  91. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
  92. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
  93. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
  94. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
  95. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
  96. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
  97. data/lib/twilio-ruby/rest/video.rb +8 -8
  98. data/lib/twilio-ruby/rest/video/v1.rb +4 -7
  99. data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
  100. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
  101. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
  102. data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
  103. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
  104. data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
  105. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
  106. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
  107. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
  108. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
  109. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
  110. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
  111. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
  112. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
  113. data/lib/twilio-ruby/version.rb +1 -1
  114. data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
  115. metadata +4 -4
@@ -15,7 +15,7 @@ module Twilio
15
15
  ##
16
16
  # Initialize the WorkspaceStatisticsList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] workspace_sid The workspace_sid
18
+ # @param [String] workspace_sid The SID of the Workspace.
19
19
  # @return [WorkspaceStatisticsList] WorkspaceStatisticsList
20
20
  def initialize(version, workspace_sid: nil)
21
21
  super(version)
@@ -64,7 +64,7 @@ module Twilio
64
64
  ##
65
65
  # Initialize the WorkspaceStatisticsContext
66
66
  # @param [Version] version Version that contains the resource
67
- # @param [String] workspace_sid The workspace_sid
67
+ # @param [String] workspace_sid The SID of the Workspace to fetch.
68
68
  # @return [WorkspaceStatisticsContext] WorkspaceStatisticsContext
69
69
  def initialize(version, workspace_sid)
70
70
  super(version)
@@ -76,23 +76,24 @@ module Twilio
76
76
 
77
77
  ##
78
78
  # Fetch a WorkspaceStatisticsInstance
79
- # @param [String] minutes Filter cumulative statistics by up to 'x' minutes in the
80
- # past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
81
- # hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
82
- # @param [Time] start_date Filter cumulative statistics by a start date. This is
83
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
84
- # Timestamp
85
- # @param [Time] end_date Filter cumulative statistics by an end date. This is
86
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
87
- # Timestamp
88
- # @param [String] task_channel Filter real-time and cumulative statistics by
89
- # TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
90
- # TaskChannelSid.
91
- # @param [String] split_by_wait_time A comma separated values for viewing splits
92
- # of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
93
- # would show splits of tasks that were canceled or accepted before or after 5
94
- # seconds and respectively, 30 seconds. This is great for showing short abandoned
95
- # tasks or tasks that failed to meet your SLA.
79
+ # @param [String] minutes Only calculate statistics since this many minutes in the
80
+ # past. The default 15 minutes. This is helpful for displaying statistics for the
81
+ # last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.
82
+ # @param [Time] start_date Only calculate statistics from this date and time and
83
+ # later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
84
+ # @param [Time] end_date Only calculate statistics from this date and time and
85
+ # earlier, specified in GMT as an [ISO
86
+ # 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
87
+ # @param [String] task_channel Only calculate statistics on this TaskChannel. Can
88
+ # be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or
89
+ # `default`.
90
+ # @param [String] split_by_wait_time A comma separated list of values that
91
+ # describes the thresholds, in seconds, to calculate statistics on. For each
92
+ # threshold specified, the number of Tasks canceled and reservations accepted
93
+ # above and below the specified thresholds in seconds are computed. For example,
94
+ # `5,30` would show splits of Tasks that were canceled or accepted before and
95
+ # after 5 seconds and before and after 30 seconds. This can be used to show short
96
+ # abandoned Tasks or Tasks that failed to meet an SLA.
96
97
  # @return [WorkspaceStatisticsInstance] Fetched WorkspaceStatisticsInstance
97
98
  def fetch(minutes: :unset, start_date: :unset, end_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
98
99
  params = Twilio::Values.of({
@@ -132,7 +133,7 @@ module Twilio
132
133
  # Initialize the WorkspaceStatisticsInstance
133
134
  # @param [Version] version Version that contains the resource
134
135
  # @param [Hash] payload payload that contains response from Twilio
135
- # @param [String] workspace_sid The workspace_sid
136
+ # @param [String] workspace_sid The SID of the Workspace.
136
137
  # @return [WorkspaceStatisticsInstance] WorkspaceStatisticsInstance
137
138
  def initialize(version, payload, workspace_sid: nil)
138
139
  super(version)
@@ -163,54 +164,55 @@ module Twilio
163
164
  end
164
165
 
165
166
  ##
166
- # @return [Hash] The realtime
167
+ # @return [Hash] n object that contains the real-time statistics for the Workspace
167
168
  def realtime
168
169
  @properties['realtime']
169
170
  end
170
171
 
171
172
  ##
172
- # @return [Hash] The cumulative
173
+ # @return [Hash] An object that contains the cumulative statistics for the Workspace
173
174
  def cumulative
174
175
  @properties['cumulative']
175
176
  end
176
177
 
177
178
  ##
178
- # @return [String] The account_sid
179
+ # @return [String] The SID of the Account that created the resource
179
180
  def account_sid
180
181
  @properties['account_sid']
181
182
  end
182
183
 
183
184
  ##
184
- # @return [String] The workspace_sid
185
+ # @return [String] The SID of the Workspace
185
186
  def workspace_sid
186
187
  @properties['workspace_sid']
187
188
  end
188
189
 
189
190
  ##
190
- # @return [String] The url
191
+ # @return [String] The absolute URL of the Workspace statistics resource
191
192
  def url
192
193
  @properties['url']
193
194
  end
194
195
 
195
196
  ##
196
197
  # Fetch a WorkspaceStatisticsInstance
197
- # @param [String] minutes Filter cumulative statistics by up to 'x' minutes in the
198
- # past. This is helpful for statistics for the last 15 minutes, 240 minutes (4
199
- # hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
200
- # @param [Time] start_date Filter cumulative statistics by a start date. This is
201
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
202
- # Timestamp
203
- # @param [Time] end_date Filter cumulative statistics by an end date. This is
204
- # helpful for defining a range of statistics to capture. Input is a GMT ISO 8601
205
- # Timestamp
206
- # @param [String] task_channel Filter real-time and cumulative statistics by
207
- # TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a
208
- # TaskChannelSid.
209
- # @param [String] split_by_wait_time A comma separated values for viewing splits
210
- # of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30"
211
- # would show splits of tasks that were canceled or accepted before or after 5
212
- # seconds and respectively, 30 seconds. This is great for showing short abandoned
213
- # tasks or tasks that failed to meet your SLA.
198
+ # @param [String] minutes Only calculate statistics since this many minutes in the
199
+ # past. The default 15 minutes. This is helpful for displaying statistics for the
200
+ # last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.
201
+ # @param [Time] start_date Only calculate statistics from this date and time and
202
+ # later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
203
+ # @param [Time] end_date Only calculate statistics from this date and time and
204
+ # earlier, specified in GMT as an [ISO
205
+ # 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
206
+ # @param [String] task_channel Only calculate statistics on this TaskChannel. Can
207
+ # be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or
208
+ # `default`.
209
+ # @param [String] split_by_wait_time A comma separated list of values that
210
+ # describes the thresholds, in seconds, to calculate statistics on. For each
211
+ # threshold specified, the number of Tasks canceled and reservations accepted
212
+ # above and below the specified thresholds in seconds are computed. For example,
213
+ # `5,30` would show splits of Tasks that were canceled or accepted before and
214
+ # after 5 seconds and before and after 30 seconds. This can be used to show short
215
+ # abandoned Tasks or Tasks that failed to meet an SLA.
214
216
  # @return [WorkspaceStatisticsInstance] Fetched WorkspaceStatisticsInstance
215
217
  def fetch(minutes: :unset, start_date: :unset, end_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
216
218
  context.fetch(
@@ -31,13 +31,14 @@ module Twilio
31
31
  # @param [String] domain_name The unique address you reserve on Twilio to which
32
32
  # you route your SIP traffic. Domain names can contain letters, digits, and `-`
33
33
  # and must end with `pstn.twilio.com`. See [Termination
34
- # Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination)
35
- # for more information.
34
+ # Settings](https://www.twilio.com/docs/sip-trunking#termination) for more
35
+ # information.
36
36
  # @param [String] disaster_recovery_url The URL we should call using the
37
37
  # `disaster_recovery_method` if an error occurs while sending SIP traffic towards
38
38
  # the configured Origination URL. We retrieve TwiML from the URL and execute the
39
39
  # instructions like any other normal TwiML call. See [Disaster
40
- # Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
40
+ # Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more
41
+ # information.
41
42
  # @param [String] disaster_recovery_method The HTTP method we should use to call
42
43
  # the `disaster_recovery_url`. Can be: `GET` or `POST`.
43
44
  # @param [trunk.RecordingSetting] recording The recording settings for the trunk.
@@ -46,12 +47,13 @@ module Twilio
46
47
  # will be recorded. The only way to change recording parameters is on a
47
48
  # sub-resource of a Trunk after it has been created.
48
49
  # e.g.`/Trunks/[Trunk_SID]/Recording -XPOST -d'Mode=record-from-answer'`. See
49
- # [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording)
50
- # for more information.
50
+ # [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more
51
+ # information.
51
52
  # @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
52
53
  # enabled, all calls going through the trunk will be secure using SRTP for media
53
54
  # and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
54
- # Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
55
+ # Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more
56
+ # information.
55
57
  # @param [Boolean] cnam_lookup_enabled Whether Caller ID Name (CNAM) lookup should
56
58
  # be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from
57
59
  # the United States and Canada automatically perform a CNAM Lookup and display
@@ -247,25 +249,27 @@ module Twilio
247
249
  # @param [String] domain_name The unique address you reserve on Twilio to which
248
250
  # you route your SIP traffic. Domain names can contain letters, digits, and `-`
249
251
  # and must end with `pstn.twilio.com`. See [Termination
250
- # Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination)
251
- # for more information.
252
+ # Settings](https://www.twilio.com/docs/sip-trunking#termination) for more
253
+ # information.
252
254
  # @param [String] disaster_recovery_url The URL we should call using the
253
255
  # `disaster_recovery_method` if an error occurs while sending SIP traffic towards
254
256
  # the configured Origination URL. We retrieve TwiML from the URL and execute the
255
257
  # instructions like any other normal TwiML call. See [Disaster
256
- # Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
258
+ # Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more
259
+ # information.
257
260
  # @param [String] disaster_recovery_method The HTTP method we should use to call
258
261
  # the `disaster_recovery_url`. Can be: `GET` or `POST`.
259
262
  # @param [trunk.RecordingSetting] recording The recording settings for the trunk.
260
263
  # Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to
261
264
  # `record-from-ringing` or `record-from-answer`, all calls going through the trunk
262
265
  # will be recorded. See
263
- # [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording)
264
- # for more information.
266
+ # [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more
267
+ # information.
265
268
  # @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
266
269
  # enabled, all calls going through the trunk will be secure using SRTP for media
267
270
  # and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
268
- # Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
271
+ # Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more
272
+ # information.
269
273
  # @param [Boolean] cnam_lookup_enabled Whether Caller ID Name (CNAM) lookup should
270
274
  # be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from
271
275
  # the United States and Canada automatically perform a CNAM Lookup and display
@@ -554,25 +558,27 @@ module Twilio
554
558
  # @param [String] domain_name The unique address you reserve on Twilio to which
555
559
  # you route your SIP traffic. Domain names can contain letters, digits, and `-`
556
560
  # and must end with `pstn.twilio.com`. See [Termination
557
- # Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination)
558
- # for more information.
561
+ # Settings](https://www.twilio.com/docs/sip-trunking#termination) for more
562
+ # information.
559
563
  # @param [String] disaster_recovery_url The URL we should call using the
560
564
  # `disaster_recovery_method` if an error occurs while sending SIP traffic towards
561
565
  # the configured Origination URL. We retrieve TwiML from the URL and execute the
562
566
  # instructions like any other normal TwiML call. See [Disaster
563
- # Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
567
+ # Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more
568
+ # information.
564
569
  # @param [String] disaster_recovery_method The HTTP method we should use to call
565
570
  # the `disaster_recovery_url`. Can be: `GET` or `POST`.
566
571
  # @param [trunk.RecordingSetting] recording The recording settings for the trunk.
567
572
  # Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to
568
573
  # `record-from-ringing` or `record-from-answer`, all calls going through the trunk
569
574
  # will be recorded. See
570
- # [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording)
571
- # for more information.
575
+ # [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more
576
+ # information.
572
577
  # @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
573
578
  # enabled, all calls going through the trunk will be secure using SRTP for media
574
579
  # and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
575
- # Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
580
+ # Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more
581
+ # information.
576
582
  # @param [Boolean] cnam_lookup_enabled Whether Caller ID Name (CNAM) lookup should
577
583
  # be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from
578
584
  # the United States and Canada automatically perform a CNAM Lookup and display
@@ -30,9 +30,9 @@ module Twilio
30
30
  # Retrieve a single page of CredentialListInstance records from the API.
31
31
  # Request is executed immediately.
32
32
  # @param [String] credential_list_sid The SID of the [Credential
33
- # List](https://www.twilio.com/docs/api/rest/credential-list) that you want to
34
- # associate with the trunk. Once associated, we will authenticate access to the
35
- # trunk against this list.
33
+ # List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource)
34
+ # that you want to associate with the trunk. Once associated, we will authenticate
35
+ # access to the trunk against this list.
36
36
  # @return [CredentialListInstance] Newly created CredentialListInstance
37
37
  def create(credential_list_sid: nil)
38
38
  data = Twilio::Values.of({'CredentialListSid' => credential_list_sid, })
@@ -29,8 +29,7 @@ module Twilio
29
29
  # Retrieve a single page of IpAccessControlListInstance records from the API.
30
30
  # Request is executed immediately.
31
31
  # @param [String] ip_access_control_list_sid The SID of the [IP Access Control
32
- # List](https://www.twilio.com/docs/api/rest/ip-access-control-list) that you want
33
- # to associate with the trunk.
32
+ # List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk.
34
33
  # @return [IpAccessControlListInstance] Newly created IpAccessControlListInstance
35
34
  def create(ip_access_control_list_sid: nil)
36
35
  data = Twilio::Values.of({'IpAccessControlListSid' => ip_access_control_list_sid, })
@@ -32,8 +32,7 @@ module Twilio
32
32
  # Retrieve a single page of PhoneNumberInstance records from the API.
33
33
  # Request is executed immediately.
34
34
  # @param [String] phone_number_sid The SID of the [Incoming Phone
35
- # Number](https://www.twilio.com/docs/api/rest/incoming-phone-numbers) that you
36
- # want to associate with the trunk.
35
+ # Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk.
37
36
  # @return [PhoneNumberInstance] Newly created PhoneNumberInstance
38
37
  def create(phone_number_sid: nil)
39
38
  data = Twilio::Values.of({'PhoneNumberSid' => phone_number_sid, })
@@ -18,8 +18,8 @@ module Twilio
18
18
  # Initialize the MessagingConfigurationList
19
19
  # @param [Version] version Version that contains the resource
20
20
  # @param [String] service_sid The SID of the
21
- # [Service](https://www.twilio.com/docs/verify/api-beta/service-beta) that the
22
- # resource is associated with.
21
+ # [Service](https://www.twilio.com/docs/verify/api/service) that the resource is
22
+ # associated with.
23
23
  # @return [MessagingConfigurationList] MessagingConfigurationList
24
24
  def initialize(version, service_sid: nil)
25
25
  super(version)
@@ -37,8 +37,8 @@ module Twilio
37
37
  # the country this configuration will be applied to. If this is a global
38
38
  # configuration, Country will take the value `all`.
39
39
  # @param [String] messaging_service_sid The SID of the [Messaging
40
- # Service](https://www.twilio.com/docs/api/messaging/services) to be used to send
41
- # SMS to the country of this configuration.
40
+ # Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to
41
+ # the country of this configuration.
42
42
  # @return [MessagingConfigurationInstance] Newly created MessagingConfigurationInstance
43
43
  def create(country: nil, messaging_service_sid: nil)
44
44
  data = Twilio::Values.of({'Country' => country, 'MessagingServiceSid' => messaging_service_sid, })
@@ -179,8 +179,8 @@ module Twilio
179
179
  # Initialize the MessagingConfigurationContext
180
180
  # @param [Version] version Version that contains the resource
181
181
  # @param [String] service_sid The SID of the
182
- # [Service](https://www.twilio.com/docs/verify/api-beta/service-beta) that the
183
- # resource is associated with.
182
+ # [Service](https://www.twilio.com/docs/verify/api/service) that the resource is
183
+ # associated with.
184
184
  # @param [String] country The
185
185
  # [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of
186
186
  # the country this configuration will be applied to. If this is a global
@@ -197,8 +197,8 @@ module Twilio
197
197
  ##
198
198
  # Update the MessagingConfigurationInstance
199
199
  # @param [String] messaging_service_sid The SID of the [Messaging
200
- # Service](https://www.twilio.com/docs/api/messaging/services) to be used to send
201
- # SMS to the country of this configuration.
200
+ # Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to
201
+ # the country of this configuration.
202
202
  # @return [MessagingConfigurationInstance] Updated MessagingConfigurationInstance
203
203
  def update(messaging_service_sid: nil)
204
204
  data = Twilio::Values.of({'MessagingServiceSid' => messaging_service_sid, })
@@ -267,8 +267,8 @@ module Twilio
267
267
  # @param [Version] version Version that contains the resource
268
268
  # @param [Hash] payload payload that contains response from Twilio
269
269
  # @param [String] service_sid The SID of the
270
- # [Service](https://www.twilio.com/docs/verify/api-beta/service-beta) that the
271
- # resource is associated with.
270
+ # [Service](https://www.twilio.com/docs/verify/api/service) that the resource is
271
+ # associated with.
272
272
  # @param [String] country The
273
273
  # [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of
274
274
  # the country this configuration will be applied to. If this is a global
@@ -353,8 +353,8 @@ module Twilio
353
353
  ##
354
354
  # Update the MessagingConfigurationInstance
355
355
  # @param [String] messaging_service_sid The SID of the [Messaging
356
- # Service](https://www.twilio.com/docs/api/messaging/services) to be used to send
357
- # SMS to the country of this configuration.
356
+ # Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to
357
+ # the country of this configuration.
358
358
  # @return [MessagingConfigurationInstance] Updated MessagingConfigurationInstance
359
359
  def update(messaging_service_sid: nil)
360
360
  context.update(messaging_service_sid: messaging_service_sid, )
@@ -18,8 +18,8 @@ module Twilio
18
18
  # Initialize the RateLimitList
19
19
  # @param [Version] version Version that contains the resource
20
20
  # @param [String] service_sid The SID of the
21
- # [Service](https://www.twilio.com/docs/verify/api-beta/service-beta) the resource
22
- # is associated with.
21
+ # [Service](https://www.twilio.com/docs/verify/api/service) the resource is
22
+ # associated with.
23
23
  # @return [RateLimitList] RateLimitList
24
24
  def initialize(version, service_sid: nil)
25
25
  super(version)
@@ -176,8 +176,8 @@ module Twilio
176
176
  # Initialize the RateLimitContext
177
177
  # @param [Version] version Version that contains the resource
178
178
  # @param [String] service_sid The SID of the
179
- # [Service](https://www.twilio.com/docs/verify/api-beta/service-beta) the resource
180
- # is associated with.
179
+ # [Service](https://www.twilio.com/docs/verify/api/service) the resource is
180
+ # associated with.
181
181
  # @param [String] sid The Twilio-provided string that uniquely identifies the Rate
182
182
  # Limit resource to fetch.
183
183
  # @return [RateLimitContext] RateLimitContext
@@ -275,8 +275,8 @@ module Twilio
275
275
  # @param [Version] version Version that contains the resource
276
276
  # @param [Hash] payload payload that contains response from Twilio
277
277
  # @param [String] service_sid The SID of the
278
- # [Service](https://www.twilio.com/docs/verify/api-beta/service-beta) the resource
279
- # is associated with.
278
+ # [Service](https://www.twilio.com/docs/verify/api/service) the resource is
279
+ # associated with.
280
280
  # @param [String] sid The Twilio-provided string that uniquely identifies the Rate
281
281
  # Limit resource to fetch.
282
282
  # @return [RateLimitInstance] RateLimitInstance
@@ -19,8 +19,8 @@ module Twilio
19
19
  # Initialize the BucketList
20
20
  # @param [Version] version Version that contains the resource
21
21
  # @param [String] service_sid The SID of the
22
- # [Service](https://www.twilio.com/docs/verify/api-beta/service-beta) the resource
23
- # is associated with.
22
+ # [Service](https://www.twilio.com/docs/verify/api/service) the resource is
23
+ # associated with.
24
24
  # @param [String] rate_limit_sid The Twilio-provided string that uniquely
25
25
  # identifies the Rate Limit resource.
26
26
  # @return [BucketList] BucketList
@@ -188,8 +188,8 @@ module Twilio
188
188
  # Initialize the BucketContext
189
189
  # @param [Version] version Version that contains the resource
190
190
  # @param [String] service_sid The SID of the
191
- # [Service](https://www.twilio.com/docs/verify/api-beta/service-beta) the resource
192
- # is associated with.
191
+ # [Service](https://www.twilio.com/docs/verify/api/service) the resource is
192
+ # associated with.
193
193
  # @param [String] rate_limit_sid The Twilio-provided string that uniquely
194
194
  # identifies the Rate Limit resource.
195
195
  # @param [String] sid A 34 character string that uniquely identifies this Bucket.
@@ -277,8 +277,8 @@ module Twilio
277
277
  # @param [Version] version Version that contains the resource
278
278
  # @param [Hash] payload payload that contains response from Twilio
279
279
  # @param [String] service_sid The SID of the
280
- # [Service](https://www.twilio.com/docs/verify/api-beta/service-beta) the resource
281
- # is associated with.
280
+ # [Service](https://www.twilio.com/docs/verify/api/service) the resource is
281
+ # associated with.
282
282
  # @param [String] rate_limit_sid The Twilio-provided string that uniquely
283
283
  # identifies the Rate Limit resource.
284
284
  # @param [String] sid A 34 character string that uniquely identifies this Bucket.
@@ -32,7 +32,8 @@ module Twilio
32
32
  ##
33
33
  # Retrieve a single page of VerificationInstance records from the API.
34
34
  # Request is executed immediately.
35
- # @param [String] to The phone number to verify.
35
+ # @param [String] to The phone number to verify. Phone numbers must be in [E.164
36
+ # format](https://www.twilio.com/docs/glossary/what-e164).
36
37
  # @param [String] channel The verification method to use. Can be: `sms` or `call`.
37
38
  # @param [String] custom_message The text of a custom message to use for the
38
39
  # verification.
@@ -34,7 +34,8 @@ module Twilio
34
34
  # Request is executed immediately.
35
35
  # @param [String] code The 4-10 character string being verified.
36
36
  # @param [String] to The phone number to verify. Either this parameter or the
37
- # `verification_sid` must be specified
37
+ # `verification_sid` must be specified. Phone numbers must be in [E.164
38
+ # format](https://www.twilio.com/docs/glossary/what-e164).
38
39
  # @param [String] verification_sid A SID that uniquely identifies the Verification
39
40
  # Check. Either this parameter or the `to` phone number must be specified.
40
41
  # @param [String] amount The amount of the associated PSD2 compliant transaction.
@@ -29,8 +29,8 @@ module Twilio
29
29
  end
30
30
 
31
31
  ##
32
- # @param [String] sid `HKxx…xx` A system-generated 34-character string that
33
- # uniquely identifies this Composition Hook.
32
+ # @param [String] sid The unique string that we created to identify the
33
+ # CompositionHook resource.
34
34
  # @return [Twilio::REST::Video::V1::CompositionHookInstance] if sid was passed.
35
35
  # @return [Twilio::REST::Video::V1::CompositionHookList]
36
36
  def composition_hooks(sid=:unset)
@@ -44,8 +44,8 @@ module Twilio
44
44
  end
45
45
 
46
46
  ##
47
- # @param [String] sid `RTxx…xx` A system-generated 34-character string that
48
- # uniquely identifies this Recording.
47
+ # @param [String] sid The unique string that we created to identify the Recording
48
+ # resource.
49
49
  # @return [Twilio::REST::Video::V1::RecordingInstance] if sid was passed.
50
50
  # @return [Twilio::REST::Video::V1::RecordingList]
51
51
  def recordings(sid=:unset)
@@ -59,8 +59,8 @@ module Twilio
59
59
  end
60
60
 
61
61
  ##
62
- # @param [String] sid `CJxx…xx` A system-generated 34-character string that
63
- # uniquely identifies this Composition.
62
+ # @param [String] sid The unique string that we created to identify the
63
+ # Composition resource.
64
64
  # @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
65
65
  # @return [Twilio::REST::Video::V1::CompositionList]
66
66
  def compositions(sid=:unset)
@@ -68,8 +68,8 @@ module Twilio
68
68
  end
69
69
 
70
70
  ##
71
- # @param [String] sid A system-generated 34-character string that uniquely
72
- # identifies this resource.
71
+ # @param [String] sid The unique string that we created to identify the Room
72
+ # resource.
73
73
  # @return [Twilio::REST::Video::V1::RoomInstance] if sid was passed.
74
74
  # @return [Twilio::REST::Video::V1::RoomList]
75
75
  def rooms(sid=:unset)