github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/model_api_v2010_sip_domain.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Api 8 * This is the public Twilio REST API. 9 * 10 * NOTE: This class is auto generated by OpenAPI Generator. 11 * https://openapi-generator.tech 12 * Do not edit the class manually. 13 */ 14 15 package openapi 16 17 // ApiV2010SipDomain struct for ApiV2010SipDomain 18 type ApiV2010SipDomain struct { 19 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource. 20 AccountSid *string `json:"account_sid,omitempty"` 21 // The API version used to process the call. 22 ApiVersion *string `json:"api_version,omitempty"` 23 // The types of authentication you have mapped to your domain. Can be: `IP_ACL` and `CREDENTIAL_LIST`. If you have both defined for your domain, both will be returned in a comma delimited string. If `auth_type` is not defined, the domain will not be able to receive any traffic. 24 AuthType *string `json:"auth_type,omitempty"` 25 // The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 26 DateCreated *string `json:"date_created,omitempty"` 27 // The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 28 DateUpdated *string `json:"date_updated,omitempty"` 29 // The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\" and must end with `sip.twilio.com`. 30 DomainName *string `json:"domain_name,omitempty"` 31 // The string that you assigned to describe the resource. 32 FriendlyName *string `json:"friendly_name,omitempty"` 33 // The unique string that that we created to identify the SipDomain resource. 34 Sid *string `json:"sid,omitempty"` 35 // The URI of the resource, relative to `https://api.twilio.com`. 36 Uri *string `json:"uri,omitempty"` 37 // The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. 38 VoiceFallbackMethod *string `json:"voice_fallback_method,omitempty"` 39 // The URL that we call when an error occurs while retrieving or executing the TwiML requested from `voice_url`. 40 VoiceFallbackUrl *string `json:"voice_fallback_url,omitempty"` 41 // The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. 42 VoiceMethod *string `json:"voice_method,omitempty"` 43 // The HTTP method we use to call `voice_status_callback_url`. Either `GET` or `POST`. 44 VoiceStatusCallbackMethod *string `json:"voice_status_callback_method,omitempty"` 45 // The URL that we call to pass status parameters (such as call ended) to your application. 46 VoiceStatusCallbackUrl *string `json:"voice_status_callback_url,omitempty"` 47 // The URL we call using the `voice_method` when the domain receives a call. 48 VoiceUrl *string `json:"voice_url,omitempty"` 49 // A list of mapping resources associated with the SIP Domain resource identified by their relative URIs. 50 SubresourceUris *map[string]interface{} `json:"subresource_uris,omitempty"` 51 // Whether to allow SIP Endpoints to register with the domain to receive calls. 52 SipRegistration *bool `json:"sip_registration,omitempty"` 53 // Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. 54 EmergencyCallingEnabled *bool `json:"emergency_calling_enabled,omitempty"` 55 // Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. 56 Secure *bool `json:"secure,omitempty"` 57 // The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. 58 ByocTrunkSid *string `json:"byoc_trunk_sid,omitempty"` 59 // Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. 60 EmergencyCallerSid *string `json:"emergency_caller_sid,omitempty"` 61 }