github.com/twilio/twilio-go@v1.20.1/rest/chat/v2/model_chat_v2_user_binding.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Chat 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 // ChatV2UserBinding struct for ChatV2UserBinding 22 type ChatV2UserBinding struct { 23 // The unique string that we created to identify the User Binding resource. 24 Sid *string `json:"sid,omitempty"` 25 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the User Binding resource. 26 AccountSid *string `json:"account_sid,omitempty"` 27 // The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the User Binding resource is associated with. 28 ServiceSid *string `json:"service_sid,omitempty"` 29 // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 30 DateCreated *time.Time `json:"date_created,omitempty"` 31 // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 32 DateUpdated *time.Time `json:"date_updated,omitempty"` 33 // The unique endpoint identifier for the User Binding. The format of the value depends on the `binding_type`. 34 Endpoint *string `json:"endpoint,omitempty"` 35 // The application-defined string that uniquely identifies the resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. 36 Identity *string `json:"identity,omitempty"` 37 // The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resource. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. 38 UserSid *string `json:"user_sid,omitempty"` 39 // The SID of the [Credential](https://www.twilio.com/docs/chat/rest/credential-resource) for the binding. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. 40 CredentialSid *string `json:"credential_sid,omitempty"` 41 BindingType *string `json:"binding_type,omitempty"` 42 // The [Programmable Chat message types](https://www.twilio.com/docs/chat/push-notification-configuration#push-types) the binding is subscribed to. 43 MessageTypes *[]string `json:"message_types,omitempty"` 44 // The absolute URL of the User Binding resource. 45 Url *string `json:"url,omitempty"` 46 }