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
Instance Method Summary collapse
-
#create(update_request: nil) ⇒ BulkCountryUpdateInstance
Create the BulkCountryUpdateInstance.
-
#create_with_metadata(update_request: nil) ⇒ BulkCountryUpdateInstance
Create the BulkCountryUpdateInstanceMetadata.
-
#initialize(version) ⇒ BulkCountryUpdateList
constructor
Initialize the BulkCountryUpdateList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ BulkCountryUpdateList
Initialize the BulkCountryUpdateList
28 29 30 31 32 33 34 35 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 28 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/DialingPermissions/BulkCountryUpdates" end |
Instance Method Details
#create(update_request: nil) ⇒ BulkCountryUpdateInstance
Create the BulkCountryUpdateInstance
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 40 def create( update_request: nil ) data = Twilio::Values.of({ 'UpdateRequest' => update_request, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.create('POST', @uri, data: data, headers: headers) BulkCountryUpdateInstance.new( @version, payload, ) end |
#create_with_metadata(update_request: nil) ⇒ BulkCountryUpdateInstance
Create the BulkCountryUpdateInstanceMetadata
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 65 def ( update_request: nil ) data = Twilio::Values.of({ 'UpdateRequest' => update_request, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) response = @version.('POST', @uri, data: data, headers: headers) bulk_country_update_instance = BulkCountryUpdateInstance.new( @version, response.body, ) BulkCountryUpdateInstanceMetadata.new( @version, bulk_country_update_instance, response.headers, response.status_code ) end |
#to_s ⇒ Object
Provide a user friendly representation
96 97 98 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb', line 96 def to_s '#<Twilio.Voice.V1.BulkCountryUpdateList>' end |