github.com/twilio/twilio-go@v1.20.1/rest/proxy/v1/model_proxy_v1_service.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Proxy 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 import ( 18 "time" 19 ) 20 21 // ProxyV1Service struct for ProxyV1Service 22 type ProxyV1Service struct { 23 // The unique string that we created to identify the Service resource. 24 Sid *string `json:"sid,omitempty"` 25 // An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. Supports UTF-8 characters. **This value should not have PII.** 26 UniqueName *string `json:"unique_name,omitempty"` 27 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource. 28 AccountSid *string `json:"account_sid,omitempty"` 29 // The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. 30 ChatInstanceSid *string `json:"chat_instance_sid,omitempty"` 31 // The URL we call when the interaction status changes. 32 CallbackUrl *string `json:"callback_url,omitempty"` 33 // The default `ttl` value for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. 34 DefaultTtl *int `json:"default_ttl,omitempty"` 35 NumberSelectionBehavior *string `json:"number_selection_behavior,omitempty"` 36 GeoMatchLevel *string `json:"geo_match_level,omitempty"` 37 // The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. 38 InterceptCallbackUrl *string `json:"intercept_callback_url,omitempty"` 39 // The URL we call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/en-us/serverless/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. 40 OutOfSessionCallbackUrl *string `json:"out_of_session_callback_url,omitempty"` 41 // The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time in GMT when the resource was created. 42 DateCreated *time.Time `json:"date_created,omitempty"` 43 // The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time in GMT when the resource was last updated. 44 DateUpdated *time.Time `json:"date_updated,omitempty"` 45 // The absolute URL of the Service resource. 46 Url *string `json:"url,omitempty"` 47 // The URLs of resources related to the Service. 48 Links *map[string]interface{} `json:"links,omitempty"` 49 }