github.com/twilio/twilio-go@v1.20.1/rest/trunking/v1/model_trunking_v1_origination_url.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Trunking
     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  // TrunkingV1OriginationUrl struct for TrunkingV1OriginationUrl
    22  type TrunkingV1OriginationUrl struct {
    23  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OriginationUrl resource.
    24  	AccountSid *string `json:"account_sid,omitempty"`
    25  	// The unique string that we created to identify the OriginationUrl resource.
    26  	Sid *string `json:"sid,omitempty"`
    27  	// The SID of the Trunk that owns the Origination URL.
    28  	TrunkSid *string `json:"trunk_sid,omitempty"`
    29  	// The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority.
    30  	Weight *int `json:"weight,omitempty"`
    31  	// Whether the URL is enabled. The default is `true`.
    32  	Enabled *bool `json:"enabled,omitempty"`
    33  	// The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema.
    34  	SipUrl *string `json:"sip_url,omitempty"`
    35  	// The string that you assigned to describe the resource.
    36  	FriendlyName *string `json:"friendly_name,omitempty"`
    37  	// The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI.
    38  	Priority *int `json:"priority,omitempty"`
    39  	// The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    40  	DateCreated *time.Time `json:"date_created,omitempty"`
    41  	// The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    42  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    43  	// The absolute URL of the resource.
    44  	Url *string `json:"url,omitempty"`
    45  }