lib/twilio-ruby/rest/routes/v2/phone_number.rb in twilio-ruby-5.70.1 vs lib/twilio-ruby/rest/routes/v2/phone_number.rb in twilio-ruby-5.71.0

- old
+ new

@@ -71,32 +71,17 @@ @solution = {phone_number: phone_number, } @uri = "/PhoneNumbers/#{@solution[:phone_number]}" end ## - # Create the PhoneNumberInstance - # @param [String] voice_region The Inbound Processing Region used for this phone - # number for voice - # @param [String] friendly_name A human readable description of this resource, up - # to 64 characters. - # @return [PhoneNumberInstance] Created PhoneNumberInstance - def create(voice_region: :unset, friendly_name: :unset) - data = Twilio::Values.of({'VoiceRegion' => voice_region, 'FriendlyName' => friendly_name, }) - - payload = @version.create('POST', @uri, data: data) - - PhoneNumberInstance.new(@version, payload, phone_number: @solution[:phone_number], ) - end - - ## # Update the PhoneNumberInstance # @param [String] voice_region The Inbound Processing Region used for this phone # number for voice # @param [String] friendly_name A human readable description of this resource, up # to 64 characters. # @return [PhoneNumberInstance] Updated PhoneNumberInstance - def update(voice_region: nil, friendly_name: nil) + def update(voice_region: :unset, friendly_name: :unset) data = Twilio::Values.of({'VoiceRegion' => voice_region, 'FriendlyName' => friendly_name, }) payload = @version.update('POST', @uri, data: data) PhoneNumberInstance.new(@version, payload, phone_number: @solution[:phone_number], ) @@ -211,27 +196,16 @@ def date_updated @properties['date_updated'] end ## - # Create the PhoneNumberInstance - # @param [String] voice_region The Inbound Processing Region used for this phone - # number for voice - # @param [String] friendly_name A human readable description of this resource, up - # to 64 characters. - # @return [PhoneNumberInstance] Created PhoneNumberInstance - def create(voice_region: :unset, friendly_name: :unset) - context.create(voice_region: voice_region, friendly_name: friendly_name, ) - end - - ## # Update the PhoneNumberInstance # @param [String] voice_region The Inbound Processing Region used for this phone # number for voice # @param [String] friendly_name A human readable description of this resource, up # to 64 characters. # @return [PhoneNumberInstance] Updated PhoneNumberInstance - def update(voice_region: nil, friendly_name: nil) + def update(voice_region: :unset, friendly_name: :unset) context.update(voice_region: voice_region, friendly_name: friendly_name, ) end ## # Fetch the PhoneNumberInstance \ No newline at end of file