@@ -132,7 +132,8 @@ def create(self, domain_name, friendly_name=values.unset,
132132 voice_method = values .unset , voice_fallback_url = values .unset ,
133133 voice_fallback_method = values .unset ,
134134 voice_status_callback_url = values .unset ,
135- voice_status_callback_method = values .unset ):
135+ voice_status_callback_method = values .unset ,
136+ sip_registration = values .unset ):
136137 """
137138 Create a new DomainInstance
138139
@@ -145,6 +146,7 @@ def create(self, domain_name, friendly_name=values.unset,
145146 :param unicode voice_fallback_method: HTTP method used with voice_fallback_url
146147 :param unicode voice_status_callback_url: URL that Twilio will request with status updates
147148 :param unicode voice_status_callback_method: The voice_status_callback_method
149+ :param bool sip_registration: The sip_registration
148150
149151 :returns: Newly created DomainInstance
150152 :rtype: twilio.rest.api.v2010.account.sip.domain.DomainInstance
@@ -159,6 +161,7 @@ def create(self, domain_name, friendly_name=values.unset,
159161 'VoiceFallbackMethod' : voice_fallback_method ,
160162 'VoiceStatusCallbackUrl' : voice_status_callback_url ,
161163 'VoiceStatusCallbackMethod' : voice_status_callback_method ,
164+ 'SipRegistration' : sip_registration ,
162165 })
163166
164167 payload = self ._version .create (
@@ -309,7 +312,8 @@ def fetch(self):
309312 def update (self , auth_type = values .unset , friendly_name = values .unset ,
310313 voice_fallback_method = values .unset , voice_fallback_url = values .unset ,
311314 voice_method = values .unset , voice_status_callback_method = values .unset ,
312- voice_status_callback_url = values .unset , voice_url = values .unset ):
315+ voice_status_callback_url = values .unset , voice_url = values .unset ,
316+ sip_registration = values .unset ):
313317 """
314318 Update the DomainInstance
315319
@@ -321,6 +325,7 @@ def update(self, auth_type=values.unset, friendly_name=values.unset,
321325 :param unicode voice_status_callback_method: The voice_status_callback_method
322326 :param unicode voice_status_callback_url: The voice_status_callback_url
323327 :param unicode voice_url: The voice_url
328+ :param bool sip_registration: The sip_registration
324329
325330 :returns: Updated DomainInstance
326331 :rtype: twilio.rest.api.v2010.account.sip.domain.DomainInstance
@@ -334,6 +339,7 @@ def update(self, auth_type=values.unset, friendly_name=values.unset,
334339 'VoiceStatusCallbackMethod' : voice_status_callback_method ,
335340 'VoiceStatusCallbackUrl' : voice_status_callback_url ,
336341 'VoiceUrl' : voice_url ,
342+ 'SipRegistration' : sip_registration ,
337343 })
338344
339345 payload = self ._version .update (
@@ -431,6 +437,7 @@ def __init__(self, version, payload, account_sid, sid=None):
431437 'voice_status_callback_url' : payload ['voice_status_callback_url' ],
432438 'voice_url' : payload ['voice_url' ],
433439 'subresource_uris' : payload ['subresource_uris' ],
440+ 'sip_registration' : payload ['sip_registration' ],
434441 }
435442
436443 # Context
@@ -585,6 +592,14 @@ def subresource_uris(self):
585592 """
586593 return self ._properties ['subresource_uris' ]
587594
595+ @property
596+ def sip_registration (self ):
597+ """
598+ :returns: If SIP registration is allowed
599+ :rtype: bool
600+ """
601+ return self ._properties ['sip_registration' ]
602+
588603 def fetch (self ):
589604 """
590605 Fetch a DomainInstance
@@ -597,7 +612,8 @@ def fetch(self):
597612 def update (self , auth_type = values .unset , friendly_name = values .unset ,
598613 voice_fallback_method = values .unset , voice_fallback_url = values .unset ,
599614 voice_method = values .unset , voice_status_callback_method = values .unset ,
600- voice_status_callback_url = values .unset , voice_url = values .unset ):
615+ voice_status_callback_url = values .unset , voice_url = values .unset ,
616+ sip_registration = values .unset ):
601617 """
602618 Update the DomainInstance
603619
@@ -609,6 +625,7 @@ def update(self, auth_type=values.unset, friendly_name=values.unset,
609625 :param unicode voice_status_callback_method: The voice_status_callback_method
610626 :param unicode voice_status_callback_url: The voice_status_callback_url
611627 :param unicode voice_url: The voice_url
628+ :param bool sip_registration: The sip_registration
612629
613630 :returns: Updated DomainInstance
614631 :rtype: twilio.rest.api.v2010.account.sip.domain.DomainInstance
@@ -622,6 +639,7 @@ def update(self, auth_type=values.unset, friendly_name=values.unset,
622639 voice_status_callback_method = voice_status_callback_method ,
623640 voice_status_callback_url = voice_status_callback_url ,
624641 voice_url = voice_url ,
642+ sip_registration = sip_registration ,
625643 )
626644
627645 def delete (self ):
0 commit comments