github.com/twilio/twilio-go@v1.20.1/rest/notify/v1/model_notify_v1_binding.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Notify 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 // NotifyV1Binding struct for NotifyV1Binding 22 type NotifyV1Binding struct { 23 // The unique string that we created to identify the 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 Binding resource. 26 AccountSid *string `json:"account_sid,omitempty"` 27 // The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) the resource is associated with. 28 ServiceSid *string `json:"service_sid,omitempty"` 29 // The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applicable only to `apn`, `fcm`, and `gcm` type Bindings. 30 CredentialSid *string `json:"credential_sid,omitempty"` 31 // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 32 DateCreated *time.Time `json:"date_created,omitempty"` 33 // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 34 DateUpdated *time.Time `json:"date_updated,omitempty"` 35 // The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` in the [Service](https://www.twilio.com/docs/notify/api/service-resource) for the protocol. The current version is `\"3\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed. 36 NotificationProtocolVersion *string `json:"notification_protocol_version,omitempty"` 37 // Deprecated. 38 Endpoint *string `json:"endpoint,omitempty"` 39 // The `identity` value that uniquely identifies the resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service. 40 Identity *string `json:"identity,omitempty"` 41 // The transport technology to use for the Binding. Can be: `apn`, `fcm`, `gcm`, `sms`, or `facebook-messenger`. 42 BindingType *string `json:"binding_type,omitempty"` 43 // The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format. 44 Address *string `json:"address,omitempty"` 45 // The list of tags associated with this Binding. Tags can be used to select the Bindings to use when sending a notification. Maximum 20 tags are allowed. 46 Tags *[]string `json:"tags,omitempty"` 47 // The absolute URL of the Binding resource. 48 Url *string `json:"url,omitempty"` 49 // The URLs of related resources. 50 Links *map[string]interface{} `json:"links,omitempty"` 51 }