class Twilio::REST::Voice::V1::DialingPermissionsList::BulkCountryUpdateList
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.
Public Class Methods
new(version)
click to toggle source
Initialize the BulkCountryUpdateList
@param [Version] version Version
that contains the resource @return [BulkCountryUpdateList] BulkCountryUpdateList
Calls superclass method
Twilio::REST::ListResource::new
# File lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb 21 def initialize(version) 22 super(version) 23 24 # Path Solution 25 @solution = {} 26 @uri = "/DialingPermissions/BulkCountryUpdates" 27 end
Public Instance Methods
create(update_request: nil)
click to toggle source
Create the BulkCountryUpdateInstance
@param [String] update_request URL encoded JSON array of update objects. example
: `[ { "iso_code": "GB", "low_risk_numbers_enabled": "true", "high_risk_special_numbers_enabled":"true", "high_risk_tollfraud_numbers_enabled": "false" } ]`
@return [BulkCountryUpdateInstance] Created BulkCountryUpdateInstance
# File lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb 36 def create(update_request: nil) 37 data = Twilio::Values.of({'UpdateRequest' => update_request, }) 38 39 payload = @version.create('POST', @uri, data: data) 40 41 BulkCountryUpdateInstance.new(@version, payload, ) 42 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb 46 def to_s 47 '#<Twilio.Voice.V1.BulkCountryUpdateList>' 48 end