twilio-ruby 5.13.0 → 5.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES.md +18 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -8
  5. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +1 -5
  6. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +8 -8
  7. data/lib/twilio-ruby/rest/client.rb +7 -0
  8. data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
  9. data/lib/twilio-ruby/rest/preview.rb +8 -21
  10. data/lib/twilio-ruby/rest/video/v1/composition.rb +1 -1
  11. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +626 -0
  12. data/lib/twilio-ruby/rest/video/v1.rb +32 -16
  13. data/lib/twilio-ruby/rest/video.rb +18 -9
  14. data/lib/twilio-ruby/rest/{preview/permissions → voice/v1}/voice_permission/bulk_country_update.rb +12 -11
  15. data/lib/twilio-ruby/rest/{preview/permissions → voice/v1}/voice_permission/country/highrisk_special_prefix.rb +14 -14
  16. data/lib/twilio-ruby/rest/{preview/permissions → voice/v1}/voice_permission/country.rb +57 -45
  17. data/lib/twilio-ruby/rest/{preview/permissions → voice/v1}/voice_permission.rb +6 -6
  18. data/lib/twilio-ruby/rest/{preview/permissions.rb → voice/v1.rb} +6 -6
  19. data/lib/twilio-ruby/rest/voice.rb +44 -0
  20. data/lib/twilio-ruby/version.rb +1 -1
  21. data/spec/integration/video/v1/composition_hook_spec.rb +410 -0
  22. data/spec/integration/{preview/permissions → voice/v1}/voice_permission/bulk_country_update_spec.rb +5 -5
  23. data/spec/integration/{preview/permissions → voice/v1}/voice_permission/country/highrisk_special_prefix_spec.rb +9 -9
  24. data/spec/integration/{preview/permissions → voice/v1}/voice_permission/country_spec.rb +16 -16
  25. data/spec/integration/{preview/permissions → voice/v1}/voice_permission_spec.rb +0 -0
  26. metadata +20 -19
  27. data/lib/twilio-ruby/rest/preview/permissions/voice_permission/settings.rb +0 -197
  28. data/spec/integration/preview/permissions/voice_permission/settings_spec.rb +0 -77
@@ -15,13 +15,44 @@ module Twilio
15
15
  def initialize(domain)
16
16
  super
17
17
  @version = 'v1'
18
+ @compositions = nil
19
+ @composition_hooks = nil
18
20
  @composition_settings = nil
19
21
  @recordings = nil
20
22
  @recording_settings = nil
21
- @compositions = nil
22
23
  @rooms = nil
23
24
  end
24
25
 
26
+ ##
27
+ # @param [String] sid The Composition Sid that uniquely identifies the Composition
28
+ # to fetch.
29
+ # @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
30
+ # @return [Twilio::REST::Video::V1::CompositionList]
31
+ def compositions(sid=:unset)
32
+ if sid.nil?
33
+ raise ArgumentError, 'sid cannot be nil'
34
+ elsif sid == :unset
35
+ @compositions ||= CompositionList.new self
36
+ else
37
+ CompositionContext.new(self, sid)
38
+ end
39
+ end
40
+
41
+ ##
42
+ # @param [String] sid The Composition Hook Sid that uniquely identifies the
43
+ # Composition Hook to fetch.
44
+ # @return [Twilio::REST::Video::V1::CompositionHookContext] if sid was passed.
45
+ # @return [Twilio::REST::Video::V1::CompositionHookList]
46
+ def composition_hooks(sid=:unset)
47
+ if sid.nil?
48
+ raise ArgumentError, 'sid cannot be nil'
49
+ elsif sid == :unset
50
+ @composition_hooks ||= CompositionHookList.new self
51
+ else
52
+ CompositionHookContext.new(self, sid)
53
+ end
54
+ end
55
+
25
56
  ##
26
57
  # @return [Twilio::REST::Video::V1::CompositionSettingsContext]
27
58
  def composition_settings
@@ -49,21 +80,6 @@ module Twilio
49
80
  @recording_settings ||= RecordingSettingsContext.new self
50
81
  end
51
82
 
52
- ##
53
- # @param [String] sid The Composition Sid that uniquely identifies the Composition
54
- # to fetch.
55
- # @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
56
- # @return [Twilio::REST::Video::V1::CompositionList]
57
- def compositions(sid=:unset)
58
- if sid.nil?
59
- raise ArgumentError, 'sid cannot be nil'
60
- elsif sid == :unset
61
- @compositions ||= CompositionList.new self
62
- else
63
- CompositionContext.new(self, sid)
64
- end
65
- end
66
-
67
83
  ##
68
84
  # @param [String] sid The Room Sid or name that uniquely identifies this resource.
69
85
  # @return [Twilio::REST::Video::V1::RoomContext] if sid was passed.
@@ -28,6 +28,24 @@ module Twilio
28
28
  @v1 ||= V1.new self
29
29
  end
30
30
 
31
+ ##
32
+ # @param [String] sid `CJxx…xx` A system-generated 34-character string that
33
+ # uniquely identifies this Composition.
34
+ # @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
35
+ # @return [Twilio::REST::Video::V1::CompositionList]
36
+ def compositions(sid=:unset)
37
+ self.v1.compositions(sid)
38
+ end
39
+
40
+ ##
41
+ # @param [String] sid `HKxx…xx` A system-generated 34-character string that
42
+ # uniquely identifies this Composition Hook.
43
+ # @return [Twilio::REST::Video::V1::CompositionHookInstance] if sid was passed.
44
+ # @return [Twilio::REST::Video::V1::CompositionHookList]
45
+ def composition_hooks(sid=:unset)
46
+ self.v1.composition_hooks(sid)
47
+ end
48
+
31
49
  ##
32
50
  # @return [Twilio::REST::Video::V1::CompositionSettingsInstance]
33
51
  def composition_settings
@@ -49,15 +67,6 @@ module Twilio
49
67
  self.v1.recording_settings()
50
68
  end
51
69
 
52
- ##
53
- # @param [String] sid `CJxx…xx` A system-generated 34-character string that
54
- # uniquely identifies this Composition.
55
- # @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
56
- # @return [Twilio::REST::Video::V1::CompositionList]
57
- def compositions(sid=:unset)
58
- self.v1.compositions(sid)
59
- end
60
-
61
70
  ##
62
71
  # @param [String] sid A system-generated 34-character string that uniquely
63
72
  # identifies this resource.
@@ -8,8 +8,8 @@
8
8
 
9
9
  module Twilio
10
10
  module REST
11
- class Preview < Domain
12
- class Permissions < Version
11
+ class Voice < Domain
12
+ class V1 < Version
13
13
  class VoicePermissionList < ListResource
14
14
  ##
15
15
  # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
@@ -23,15 +23,16 @@ module Twilio
23
23
 
24
24
  # Path Solution
25
25
  @solution = {}
26
- @uri = "/VoicePermissions/BulkCountryUpdates"
26
+ @uri = "/DialingPermissions/BulkCountryUpdates"
27
27
  end
28
28
 
29
29
  ##
30
30
  # Retrieve a single page of BulkCountryUpdateInstance records from the API.
31
31
  # Request is executed immediately.
32
- # @param [String] update_request Json list of update objects. eg : [ { "iso_code":
33
- # "GB", "low_risk_numbers": "Enabled", "high_risk_special_numbers":"Enabled",
34
- # "high_risk_irsf_numbers": "Enabled" } ]
32
+ # @param [String] update_request URL encoded JSON array of update objects. example
33
+ # : [ { "iso_code": "GB", "low_risk_numbers_enabled": "true",
34
+ # "high_risk_special_numbers_enabled":"true",
35
+ # "high_risk_tollfraud_numbers_enabled": "false" } ]
35
36
  # @return [BulkCountryUpdateInstance] Newly created BulkCountryUpdateInstance
36
37
  def create(update_request: nil)
37
38
  data = Twilio::Values.of({'UpdateRequest' => update_request, })
@@ -48,7 +49,7 @@ module Twilio
48
49
  ##
49
50
  # Provide a user friendly representation
50
51
  def to_s
51
- '#<Twilio.Preview.Permissions.BulkCountryUpdateList>'
52
+ '#<Twilio.Voice.V1.BulkCountryUpdateList>'
52
53
  end
53
54
  end
54
55
 
@@ -79,7 +80,7 @@ module Twilio
79
80
  ##
80
81
  # Provide a user friendly representation
81
82
  def to_s
82
- '<Twilio.Preview.Permissions.BulkCountryUpdatePage>'
83
+ '<Twilio.Voice.V1.BulkCountryUpdatePage>'
83
84
  end
84
85
  end
85
86
 
@@ -102,7 +103,7 @@ module Twilio
102
103
  end
103
104
 
104
105
  ##
105
- # @return [String] The number of countries successfully updated
106
+ # @return [String] The number of countries updated
106
107
  def update_count
107
108
  @properties['update_count']
108
109
  end
@@ -116,13 +117,13 @@ module Twilio
116
117
  ##
117
118
  # Provide a user friendly representation
118
119
  def to_s
119
- "<Twilio.Preview.Permissions.BulkCountryUpdateInstance>"
120
+ "<Twilio.Voice.V1.BulkCountryUpdateInstance>"
120
121
  end
121
122
 
122
123
  ##
123
124
  # Provide a detailed, user friendly representation
124
125
  def inspect
125
- "<Twilio.Preview.Permissions.BulkCountryUpdateInstance>"
126
+ "<Twilio.Voice.V1.BulkCountryUpdateInstance>"
126
127
  end
127
128
  end
128
129
  end
@@ -8,8 +8,8 @@
8
8
 
9
9
  module Twilio
10
10
  module REST
11
- class Preview < Domain
12
- class Permissions < Version
11
+ class Voice < Domain
12
+ class V1 < Version
13
13
  class VoicePermissionList < ListResource
14
14
  class CountryContext < InstanceContext
15
15
  ##
@@ -18,15 +18,15 @@ module Twilio
18
18
  ##
19
19
  # Initialize the HighriskSpecialPrefixList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] parent_iso_code The [ISO country
21
+ # @param [String] iso_code The [ISO country
22
22
  # code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
23
23
  # @return [HighriskSpecialPrefixList] HighriskSpecialPrefixList
24
- def initialize(version, parent_iso_code: nil)
24
+ def initialize(version, iso_code: nil)
25
25
  super(version)
26
26
 
27
27
  # Path Solution
28
- @solution = {parent_iso_code: parent_iso_code}
29
- @uri = "/VoicePermissions/Countries/#{@solution[:parent_iso_code]}/HighRiskSpecialPrefixes"
28
+ @solution = {iso_code: iso_code}
29
+ @uri = "/DialingPermissions/Countries/#{@solution[:iso_code]}/HighRiskSpecialPrefixes"
30
30
  end
31
31
 
32
32
  ##
@@ -114,7 +114,7 @@ module Twilio
114
114
  ##
115
115
  # Provide a user friendly representation
116
116
  def to_s
117
- '#<Twilio.Preview.Permissions.HighriskSpecialPrefixList>'
117
+ '#<Twilio.Voice.V1.HighriskSpecialPrefixList>'
118
118
  end
119
119
  end
120
120
 
@@ -139,13 +139,13 @@ module Twilio
139
139
  # @param [Hash] payload Payload response from the API
140
140
  # @return [HighriskSpecialPrefixInstance] HighriskSpecialPrefixInstance
141
141
  def get_instance(payload)
142
- HighriskSpecialPrefixInstance.new(@version, payload, parent_iso_code: @solution[:parent_iso_code], )
142
+ HighriskSpecialPrefixInstance.new(@version, payload, iso_code: @solution[:iso_code], )
143
143
  end
144
144
 
145
145
  ##
146
146
  # Provide a user friendly representation
147
147
  def to_s
148
- '<Twilio.Preview.Permissions.HighriskSpecialPrefixPage>'
148
+ '<Twilio.Voice.V1.HighriskSpecialPrefixPage>'
149
149
  end
150
150
  end
151
151
 
@@ -156,10 +156,10 @@ module Twilio
156
156
  # Initialize the HighriskSpecialPrefixInstance
157
157
  # @param [Version] version Version that contains the resource
158
158
  # @param [Hash] payload payload that contains response from Twilio
159
- # @param [String] parent_iso_code The [ISO country
159
+ # @param [String] iso_code The [ISO country
160
160
  # code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
161
161
  # @return [HighriskSpecialPrefixInstance] HighriskSpecialPrefixInstance
162
- def initialize(version, payload, parent_iso_code: nil)
162
+ def initialize(version, payload, iso_code: nil)
163
163
  super(version)
164
164
 
165
165
  # Marshaled Properties
@@ -167,7 +167,7 @@ module Twilio
167
167
  end
168
168
 
169
169
  ##
170
- # @return [String] prefix string of phone number
170
+ # @return [String] A prefix that includes the E.164 assigned country code
171
171
  def prefix
172
172
  @properties['prefix']
173
173
  end
@@ -175,13 +175,13 @@ module Twilio
175
175
  ##
176
176
  # Provide a user friendly representation
177
177
  def to_s
178
- "<Twilio.Preview.Permissions.HighriskSpecialPrefixInstance>"
178
+ "<Twilio.Voice.V1.HighriskSpecialPrefixInstance>"
179
179
  end
180
180
 
181
181
  ##
182
182
  # Provide a detailed, user friendly representation
183
183
  def inspect
184
- "<Twilio.Preview.Permissions.HighriskSpecialPrefixInstance>"
184
+ "<Twilio.Voice.V1.HighriskSpecialPrefixInstance>"
185
185
  end
186
186
  end
187
187
  end
@@ -8,8 +8,8 @@
8
8
 
9
9
  module Twilio
10
10
  module REST
11
- class Preview < Domain
12
- class Permissions < Version
11
+ class Voice < Domain
12
+ class V1 < Version
13
13
  class VoicePermissionList < ListResource
14
14
  ##
15
15
  # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
@@ -23,24 +23,29 @@ module Twilio
23
23
 
24
24
  # Path Solution
25
25
  @solution = {}
26
- @uri = "/VoicePermissions/Countries"
26
+ @uri = "/DialingPermissions/Countries"
27
27
  end
28
28
 
29
29
  ##
30
30
  # Lists CountryInstance records from the API as a list.
31
31
  # Unlike stream(), this operation is eager and will load `limit` records into
32
32
  # memory before returning.
33
- # @param [String] iso_code The [ISO country
33
+ # @param [String] iso_code Filter to retrieve the country permissions by
34
+ # specifying the [ISO country
34
35
  # code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
35
- # @param [String] continent Filter the results by specified continent
36
+ # @param [String] continent Filter to retrieve the country permissions by
37
+ # specifying the continent
36
38
  # @param [String] country_code Filter the results by specified [country
37
- # codes](https://countrycode.org/)
38
- # @param [Boolean] low_risk_numbers_enabled Filter the results by specified low
39
- # risk special status
40
- # @param [Boolean] high_risk_special_numbers_enabled Filter the results by
41
- # specified the status of high risk special
42
- # @param [Boolean] high_risk_tollfraud_numbers_enabled Filter the results by
43
- # specified the status of high risk tollfraud special
39
+ # codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html)
40
+ # @param [Boolean] low_risk_numbers_enabled Filter to retrieve the country
41
+ # permissions with dialing to low-risk numbers enabled set to true / false
42
+ # @param [Boolean] high_risk_special_numbers_enabled Filter to retrieve the
43
+ # country permissions with dialing to high-risk special service numbers enabled
44
+ # set to true / false
45
+ # @param [Boolean] high_risk_tollfraud_numbers_enabled Filter to retrieve the
46
+ # country permissions with dialing to high-risk [toll
47
+ # fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled
48
+ # set to true / false
44
49
  # @param [Integer] limit Upper limit for the number of records to return. stream()
45
50
  # guarantees to never return more than limit. Default is no limit
46
51
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -65,17 +70,22 @@ module Twilio
65
70
  # Streams CountryInstance records from the API as an Enumerable.
66
71
  # This operation lazily loads records as efficiently as possible until the limit
67
72
  # is reached.
68
- # @param [String] iso_code The [ISO country
73
+ # @param [String] iso_code Filter to retrieve the country permissions by
74
+ # specifying the [ISO country
69
75
  # code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
70
- # @param [String] continent Filter the results by specified continent
76
+ # @param [String] continent Filter to retrieve the country permissions by
77
+ # specifying the continent
71
78
  # @param [String] country_code Filter the results by specified [country
72
- # codes](https://countrycode.org/)
73
- # @param [Boolean] low_risk_numbers_enabled Filter the results by specified low
74
- # risk special status
75
- # @param [Boolean] high_risk_special_numbers_enabled Filter the results by
76
- # specified the status of high risk special
77
- # @param [Boolean] high_risk_tollfraud_numbers_enabled Filter the results by
78
- # specified the status of high risk tollfraud special
79
+ # codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html)
80
+ # @param [Boolean] low_risk_numbers_enabled Filter to retrieve the country
81
+ # permissions with dialing to low-risk numbers enabled set to true / false
82
+ # @param [Boolean] high_risk_special_numbers_enabled Filter to retrieve the
83
+ # country permissions with dialing to high-risk special service numbers enabled
84
+ # set to true / false
85
+ # @param [Boolean] high_risk_tollfraud_numbers_enabled Filter to retrieve the
86
+ # country permissions with dialing to high-risk [toll
87
+ # fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled
88
+ # set to true / false
79
89
  # @param [Integer] limit Upper limit for the number of records to return. stream()
80
90
  # guarantees to never return more than limit. Default is no limit.
81
91
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -116,17 +126,22 @@ module Twilio
116
126
  ##
117
127
  # Retrieve a single page of CountryInstance records from the API.
118
128
  # Request is executed immediately.
119
- # @param [String] iso_code The [ISO country
129
+ # @param [String] iso_code Filter to retrieve the country permissions by
130
+ # specifying the [ISO country
120
131
  # code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
121
- # @param [String] continent Filter the results by specified continent
132
+ # @param [String] continent Filter to retrieve the country permissions by
133
+ # specifying the continent
122
134
  # @param [String] country_code Filter the results by specified [country
123
- # codes](https://countrycode.org/)
124
- # @param [Boolean] low_risk_numbers_enabled Filter the results by specified low
125
- # risk special status
126
- # @param [Boolean] high_risk_special_numbers_enabled Filter the results by
127
- # specified the status of high risk special
128
- # @param [Boolean] high_risk_tollfraud_numbers_enabled Filter the results by
129
- # specified the status of high risk tollfraud special
135
+ # codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html)
136
+ # @param [Boolean] low_risk_numbers_enabled Filter to retrieve the country
137
+ # permissions with dialing to low-risk numbers enabled set to true / false
138
+ # @param [Boolean] high_risk_special_numbers_enabled Filter to retrieve the
139
+ # country permissions with dialing to high-risk special service numbers enabled
140
+ # set to true / false
141
+ # @param [Boolean] high_risk_tollfraud_numbers_enabled Filter to retrieve the
142
+ # country permissions with dialing to high-risk [toll
143
+ # fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled
144
+ # set to true / false
130
145
  # @param [String] page_token PageToken provided by the API
131
146
  # @param [Integer] page_number Page Number, this value is simply for client state
132
147
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -167,7 +182,7 @@ module Twilio
167
182
  ##
168
183
  # Provide a user friendly representation
169
184
  def to_s
170
- '#<Twilio.Preview.Permissions.CountryList>'
185
+ '#<Twilio.Voice.V1.CountryList>'
171
186
  end
172
187
  end
173
188
 
@@ -198,7 +213,7 @@ module Twilio
198
213
  ##
199
214
  # Provide a user friendly representation
200
215
  def to_s
201
- '<Twilio.Preview.Permissions.CountryPage>'
216
+ '<Twilio.Voice.V1.CountryPage>'
202
217
  end
203
218
  end
204
219
 
@@ -216,7 +231,7 @@ module Twilio
216
231
 
217
232
  # Path Solution
218
233
  @solution = {iso_code: iso_code, }
219
- @uri = "/VoicePermissions/Countries/#{@solution[:iso_code]}"
234
+ @uri = "/DialingPermissions/Countries/#{@solution[:iso_code]}"
220
235
 
221
236
  # Dependents
222
237
  @highrisk_special_prefixes = nil
@@ -243,10 +258,7 @@ module Twilio
243
258
  # @return [HighriskSpecialPrefixContext]
244
259
  def highrisk_special_prefixes
245
260
  unless @highrisk_special_prefixes
246
- @highrisk_special_prefixes = HighriskSpecialPrefixList.new(
247
- @version,
248
- parent_iso_code: @solution[:iso_code],
249
- )
261
+ @highrisk_special_prefixes = HighriskSpecialPrefixList.new(@version, iso_code: @solution[:iso_code], )
250
262
  end
251
263
 
252
264
  @highrisk_special_prefixes
@@ -256,7 +268,7 @@ module Twilio
256
268
  # Provide a user friendly representation
257
269
  def to_s
258
270
  context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
259
- "#<Twilio.Preview.Permissions.CountryContext #{context}>"
271
+ "#<Twilio.Voice.V1.CountryContext #{context}>"
260
272
  end
261
273
  end
262
274
 
@@ -321,31 +333,31 @@ module Twilio
321
333
  end
322
334
 
323
335
  ##
324
- # @return [String] The list of country codes
336
+ # @return [String] The E.164 assigned country codes(s)
325
337
  def country_codes
326
338
  @properties['country_codes']
327
339
  end
328
340
 
329
341
  ##
330
- # @return [Boolean] True, if low risk numbers are enabled, else false
342
+ # @return [Boolean] true, if dialing to low-risk numbers is enabled, else false
331
343
  def low_risk_numbers_enabled
332
344
  @properties['low_risk_numbers_enabled']
333
345
  end
334
346
 
335
347
  ##
336
- # @return [Boolean] True, if high risk special numbers are enabled, else false
348
+ # @return [Boolean] true, if dialing to high-risk special services numbers is enabled, else false. This group of prefixes, are number ranges allocated by the corresponding country. They consist of number types such as premium numbers, special services, shared cost and others
337
349
  def high_risk_special_numbers_enabled
338
350
  @properties['high_risk_special_numbers_enabled']
339
351
  end
340
352
 
341
353
  ##
342
- # @return [Boolean] True, if high risk tollfraud numbers are enabled, else false
354
+ # @return [Boolean] true, if dialing to high-risk toll fraud numbers is enabled, else false. This group of prefixes are narrow number ranges that have a high-risk of international revenue sharing fraud (IRSF) attacks also called toll fraud. The group of prefixes is formed through integration with anti-fraud databases and verified by analyzing calls on the Twilio Super Network. This group of prefixes are not available for download and are updated frequently
343
355
  def high_risk_tollfraud_numbers_enabled
344
356
  @properties['high_risk_tollfraud_numbers_enabled']
345
357
  end
346
358
 
347
359
  ##
348
- # @return [String] The URL for this resource.
360
+ # @return [String] The URL for this resource
349
361
  def url
350
362
  @properties['url']
351
363
  end
@@ -374,14 +386,14 @@ module Twilio
374
386
  # Provide a user friendly representation
375
387
  def to_s
376
388
  values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
377
- "<Twilio.Preview.Permissions.CountryInstance #{values}>"
389
+ "<Twilio.Voice.V1.CountryInstance #{values}>"
378
390
  end
379
391
 
380
392
  ##
381
393
  # Provide a detailed, user friendly representation
382
394
  def inspect
383
395
  values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
384
- "<Twilio.Preview.Permissions.CountryInstance #{values}>"
396
+ "<Twilio.Voice.V1.CountryInstance #{values}>"
385
397
  end
386
398
  end
387
399
  end