github.com/twilio/twilio-go@v1.20.1/rest/notify/v1/model_notify_v1_service.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  // NotifyV1Service struct for NotifyV1Service
    22  type NotifyV1Service struct {
    23  	// The unique string that we created to identify the Service resource.
    24  	Sid *string `json:"sid,omitempty"`
    25  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource.
    26  	AccountSid *string `json:"account_sid,omitempty"`
    27  	// The string that you assigned to describe the resource.
    28  	FriendlyName *string `json:"friendly_name,omitempty"`
    29  	// The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    30  	DateCreated *time.Time `json:"date_created,omitempty"`
    31  	// The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    32  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    33  	// The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings.
    34  	ApnCredentialSid *string `json:"apn_credential_sid,omitempty"`
    35  	// The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings.
    36  	GcmCredentialSid *string `json:"gcm_credential_sid,omitempty"`
    37  	// The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings.
    38  	FcmCredentialSid *string `json:"fcm_credential_sid,omitempty"`
    39  	// The SID of the [Messaging Service](https://www.twilio.com/docs/sms/quickstart#messaging-services) to use for SMS Bindings. In order to send SMS notifications this parameter has to be set.
    40  	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
    41  	// Deprecated.
    42  	FacebookMessengerPageId *string `json:"facebook_messenger_page_id,omitempty"`
    43  	// The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource.
    44  	DefaultApnNotificationProtocolVersion *string `json:"default_apn_notification_protocol_version,omitempty"`
    45  	// The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource.
    46  	DefaultGcmNotificationProtocolVersion *string `json:"default_gcm_notification_protocol_version,omitempty"`
    47  	// The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource.
    48  	DefaultFcmNotificationProtocolVersion *string `json:"default_fcm_notification_protocol_version,omitempty"`
    49  	// Whether to log notifications. Can be: `true` or `false` and the default is `true`.
    50  	LogEnabled *bool `json:"log_enabled,omitempty"`
    51  	// The absolute URL of the Service resource.
    52  	Url *string `json:"url,omitempty"`
    53  	// The URLs of the Binding, Notification, Segment, and User resources related to the service.
    54  	Links *map[string]interface{} `json:"links,omitempty"`
    55  	// Deprecated.
    56  	AlexaSkillId *string `json:"alexa_skill_id,omitempty"`
    57  	// Deprecated.
    58  	DefaultAlexaNotificationProtocolVersion *string `json:"default_alexa_notification_protocol_version,omitempty"`
    59  	// URL to send delivery status callback.
    60  	DeliveryCallbackUrl *string `json:"delivery_callback_url,omitempty"`
    61  	// Callback configuration that enables delivery callbacks, default false
    62  	DeliveryCallbackEnabled *bool `json:"delivery_callback_enabled,omitempty"`
    63  }