github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/model_api_v2010_short_code.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Api
     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  // ApiV2010ShortCode struct for ApiV2010ShortCode
    18  type ApiV2010ShortCode struct {
    19  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this ShortCode resource.
    20  	AccountSid *string `json:"account_sid,omitempty"`
    21  	// The API version used to start a new TwiML session when an SMS message is sent to this short code.
    22  	ApiVersion *string `json:"api_version,omitempty"`
    23  	// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    24  	DateCreated *string `json:"date_created,omitempty"`
    25  	// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    26  	DateUpdated *string `json:"date_updated,omitempty"`
    27  	// A string that you assigned to describe this resource. By default, the `FriendlyName` is the short code.
    28  	FriendlyName *string `json:"friendly_name,omitempty"`
    29  	// The short code. e.g., 894546.
    30  	ShortCode *string `json:"short_code,omitempty"`
    31  	// The unique string that that we created to identify this ShortCode resource.
    32  	Sid *string `json:"sid,omitempty"`
    33  	// The HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`.
    34  	SmsFallbackMethod *string `json:"sms_fallback_method,omitempty"`
    35  	// The URL that we call if an error occurs while retrieving or executing the TwiML from `sms_url`.
    36  	SmsFallbackUrl *string `json:"sms_fallback_url,omitempty"`
    37  	// The HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`.
    38  	SmsMethod *string `json:"sms_method,omitempty"`
    39  	// The URL we call when receiving an incoming SMS message to this short code.
    40  	SmsUrl *string `json:"sms_url,omitempty"`
    41  	// The URI of this resource, relative to `https://api.twilio.com`.
    42  	Uri *string `json:"uri,omitempty"`
    43  }