Class: Twilio::REST::Voice::V1::DialingPermissionsList::BulkCountryUpdateList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Voice::V1::DialingPermissionsList::BulkCountryUpdateList
- Defined in:
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb
Overview
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 [email protected]
Instance Method Summary collapse
-
#create(update_request: nil) ⇒ BulkCountryUpdateInstance
Create the BulkCountryUpdateInstance.
-
#initialize(version) ⇒ BulkCountryUpdateList
constructor
Initialize the BulkCountryUpdateList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ BulkCountryUpdateList
Initialize the BulkCountryUpdateList
21 22 23 24 25 26 27 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 21 def initialize(version) super(version) # Path Solution @solution = {} @uri = "/DialingPermissions/BulkCountryUpdates" end |
Instance Method Details
#create(update_request: nil) ⇒ BulkCountryUpdateInstance
Create the BulkCountryUpdateInstance
36 37 38 39 40 41 42 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 36 def create(update_request: nil) data = Twilio::Values.of({'UpdateRequest' => update_request, }) payload = @version.create('POST', @uri, data: data) BulkCountryUpdateInstance.new(@version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
46 47 48 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 46 def to_s '#<Twilio.Voice.V1.BulkCountryUpdateList>' end |