github.com/twilio/twilio-go@v1.20.1/rest/conversations/v1/model_conversations_v1_service_binding.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Conversations 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 // ConversationsV1ServiceBinding struct for ConversationsV1ServiceBinding 22 type ConversationsV1ServiceBinding struct { 23 // A 34 character string that uniquely identifies this resource. 24 Sid *string `json:"sid,omitempty"` 25 // The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this binding. 26 AccountSid *string `json:"account_sid,omitempty"` 27 // The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. 28 ChatServiceSid *string `json:"chat_service_sid,omitempty"` 29 // The SID of the [Credential](https://www.twilio.com/docs/conversations/api/credential-resource) for the binding. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. 30 CredentialSid *string `json:"credential_sid,omitempty"` 31 // The date that this resource was created. 32 DateCreated *time.Time `json:"date_created,omitempty"` 33 // The date that this resource was last updated. 34 DateUpdated *time.Time `json:"date_updated,omitempty"` 35 // The unique endpoint identifier for the Binding. The format of this value depends on the `binding_type`. 36 Endpoint *string `json:"endpoint,omitempty"` 37 // The application-defined string that uniquely identifies the [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more info. 38 Identity *string `json:"identity,omitempty"` 39 BindingType *string `json:"binding_type,omitempty"` 40 // The [Conversation message types](https://www.twilio.com/docs/chat/push-notification-configuration#push-types) the binding is subscribed to. 41 MessageTypes *[]string `json:"message_types,omitempty"` 42 // An absolute API resource URL for this binding. 43 Url *string `json:"url,omitempty"` 44 }