lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb in twilio-ruby-5.2.2 vs lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb in twilio-ruby-5.2.3

- old
+ new

@@ -133,22 +133,24 @@ # @param [String] voice_fallback_method The HTTP method Twilio will use when # requesting the VoiceFallbackUrl # @param [String] voice_status_callback_url The URL that Twilio will request to # pass status parameters # @param [String] voice_status_callback_method The voice_status_callback_method + # @param [Boolean] sip_registration The sip_registration # @return [DomainInstance] Newly created DomainInstance - def create(domain_name: nil, friendly_name: :unset, auth_type: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, voice_status_callback_url: :unset, voice_status_callback_method: :unset) + def create(domain_name: nil, friendly_name: :unset, auth_type: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, voice_status_callback_url: :unset, voice_status_callback_method: :unset, sip_registration: :unset) data = Twilio::Values.of({ 'DomainName' => domain_name, 'FriendlyName' => friendly_name, 'AuthType' => auth_type, 'VoiceUrl' => voice_url, 'VoiceMethod' => voice_method, 'VoiceFallbackUrl' => voice_fallback_url, 'VoiceFallbackMethod' => voice_fallback_method, 'VoiceStatusCallbackUrl' => voice_status_callback_url, 'VoiceStatusCallbackMethod' => voice_status_callback_method, + 'SipRegistration' => sip_registration, }) payload = @version.create( 'POST', @uri, @@ -253,21 +255,23 @@ # @param [String] voice_fallback_url The voice_fallback_url # @param [String] voice_method The HTTP method to use with the voice_url # @param [String] voice_status_callback_method The voice_status_callback_method # @param [String] voice_status_callback_url The voice_status_callback_url # @param [String] voice_url The voice_url + # @param [Boolean] sip_registration The sip_registration # @return [DomainInstance] Updated DomainInstance - def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset) + def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset, sip_registration: :unset) data = Twilio::Values.of({ 'AuthType' => auth_type, 'FriendlyName' => friendly_name, 'VoiceFallbackMethod' => voice_fallback_method, 'VoiceFallbackUrl' => voice_fallback_url, 'VoiceMethod' => voice_method, 'VoiceStatusCallbackMethod' => voice_status_callback_method, 'VoiceStatusCallbackUrl' => voice_status_callback_url, 'VoiceUrl' => voice_url, + 'SipRegistration' => sip_registration, }) payload = @version.update( 'POST', @uri, @@ -379,10 +383,11 @@ 'voice_method' => payload['voice_method'], 'voice_status_callback_method' => payload['voice_status_callback_method'], 'voice_status_callback_url' => payload['voice_status_callback_url'], 'voice_url' => payload['voice_url'], 'subresource_uris' => payload['subresource_uris'], + 'sip_registration' => payload['sip_registration'], } # Context @instance_context = nil @params = { @@ -501,10 +506,16 @@ def subresource_uris @properties['subresource_uris'] end ## + # @return [Boolean] If SIP registration is allowed + def sip_registration + @properties['sip_registration'] + end + + ## # Fetch a DomainInstance # @return [DomainInstance] Fetched DomainInstance def fetch context.fetch end @@ -518,20 +529,22 @@ # @param [String] voice_fallback_url The voice_fallback_url # @param [String] voice_method The HTTP method to use with the voice_url # @param [String] voice_status_callback_method The voice_status_callback_method # @param [String] voice_status_callback_url The voice_status_callback_url # @param [String] voice_url The voice_url + # @param [Boolean] sip_registration The sip_registration # @return [DomainInstance] Updated DomainInstance - def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset) + def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset, sip_registration: :unset) context.update( auth_type: auth_type, friendly_name: friendly_name, voice_fallback_method: voice_fallback_method, voice_fallback_url: voice_fallback_url, voice_method: voice_method, voice_status_callback_method: voice_status_callback_method, voice_status_callback_url: voice_status_callback_url, voice_url: voice_url, + sip_registration: sip_registration, ) end ## # Deletes the DomainInstance \ No newline at end of file