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

- old
+ new

@@ -71,23 +71,10 @@ @solution = {sip_domain: sip_domain, } @uri = "/SipDomains/#{@solution[:sip_domain]}" end ## - # Create the SipDomainInstance - # @param [String] voice_region The voice_region - # @param [String] friendly_name The friendly_name - # @return [SipDomainInstance] Created SipDomainInstance - 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) - - SipDomainInstance.new(@version, payload, sip_domain: @solution[:sip_domain], ) - end - - ## # Update the SipDomainInstance # @param [String] voice_region The voice_region # @param [String] friendly_name The friendly_name # @return [SipDomainInstance] Updated SipDomainInstance def update(voice_region: :unset, friendly_name: :unset) @@ -204,18 +191,9 @@ ## # @return [Time] The date_updated def date_updated @properties['date_updated'] - end - - ## - # Create the SipDomainInstance - # @param [String] voice_region The voice_region - # @param [String] friendly_name The friendly_name - # @return [SipDomainInstance] Created SipDomainInstance - def create(voice_region: :unset, friendly_name: :unset) - context.create(voice_region: voice_region, friendly_name: friendly_name, ) end ## # Update the SipDomainInstance # @param [String] voice_region The voice_region \ No newline at end of file