Documentation ¶
Index ¶
- type CreateCredentialListParams
- type CreateIpAccessControlListParams
- type CreateOriginationUrlParams
- func (params *CreateOriginationUrlParams) SetEnabled(Enabled bool) *CreateOriginationUrlParams
- func (params *CreateOriginationUrlParams) SetFriendlyName(FriendlyName string) *CreateOriginationUrlParams
- func (params *CreateOriginationUrlParams) SetPriority(Priority int32) *CreateOriginationUrlParams
- func (params *CreateOriginationUrlParams) SetSipUrl(SipUrl string) *CreateOriginationUrlParams
- func (params *CreateOriginationUrlParams) SetWeight(Weight int32) *CreateOriginationUrlParams
- type CreatePhoneNumberParams
- type CreateTrunkParams
- func (params *CreateTrunkParams) SetCnamLookupEnabled(CnamLookupEnabled bool) *CreateTrunkParams
- func (params *CreateTrunkParams) SetDisasterRecoveryMethod(DisasterRecoveryMethod string) *CreateTrunkParams
- func (params *CreateTrunkParams) SetDisasterRecoveryUrl(DisasterRecoveryUrl string) *CreateTrunkParams
- func (params *CreateTrunkParams) SetDomainName(DomainName string) *CreateTrunkParams
- func (params *CreateTrunkParams) SetFriendlyName(FriendlyName string) *CreateTrunkParams
- func (params *CreateTrunkParams) SetSecure(Secure bool) *CreateTrunkParams
- func (params *CreateTrunkParams) SetTransferMode(TransferMode string) *CreateTrunkParams
- type DefaultApiService
- func (c *DefaultApiService) CreateCredentialList(TrunkSid string, params *CreateCredentialListParams) (*TrunkingV1TrunkCredentialList, error)
- func (c *DefaultApiService) CreateIpAccessControlList(TrunkSid string, params *CreateIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlList, error)
- func (c *DefaultApiService) CreateOriginationUrl(TrunkSid string, params *CreateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error)
- func (c *DefaultApiService) CreatePhoneNumber(TrunkSid string, params *CreatePhoneNumberParams) (*TrunkingV1TrunkPhoneNumber, error)
- func (c *DefaultApiService) CreateTrunk(params *CreateTrunkParams) (*TrunkingV1Trunk, error)
- func (c *DefaultApiService) DeleteCredentialList(TrunkSid string, Sid string) error
- func (c *DefaultApiService) DeleteIpAccessControlList(TrunkSid string, Sid string) error
- func (c *DefaultApiService) DeleteOriginationUrl(TrunkSid string, Sid string) error
- func (c *DefaultApiService) DeletePhoneNumber(TrunkSid string, Sid string) error
- func (c *DefaultApiService) DeleteTrunk(Sid string) error
- func (c *DefaultApiService) FetchCredentialList(TrunkSid string, Sid string) (*TrunkingV1TrunkCredentialList, error)
- func (c *DefaultApiService) FetchIpAccessControlList(TrunkSid string, Sid string) (*TrunkingV1TrunkIpAccessControlList, error)
- func (c *DefaultApiService) FetchOriginationUrl(TrunkSid string, Sid string) (*TrunkingV1TrunkOriginationUrl, error)
- func (c *DefaultApiService) FetchPhoneNumber(TrunkSid string, Sid string) (*TrunkingV1TrunkPhoneNumber, error)
- func (c *DefaultApiService) FetchRecording(TrunkSid string) (*TrunkingV1TrunkRecording, error)
- func (c *DefaultApiService) FetchTrunk(Sid string) (*TrunkingV1Trunk, error)
- func (c *DefaultApiService) ListCredentialList(TrunkSid string, params *ListCredentialListParams) (*ListCredentialListResponse, error)
- func (c *DefaultApiService) ListIpAccessControlList(TrunkSid string, params *ListIpAccessControlListParams) (*ListIpAccessControlListResponse, error)
- func (c *DefaultApiService) ListOriginationUrl(TrunkSid string, params *ListOriginationUrlParams) (*ListOriginationUrlResponse, error)
- func (c *DefaultApiService) ListPhoneNumber(TrunkSid string, params *ListPhoneNumberParams) (*ListPhoneNumberResponse, error)
- func (c *DefaultApiService) ListTrunk(params *ListTrunkParams) (*ListTrunkResponse, error)
- func (c *DefaultApiService) UpdateOriginationUrl(TrunkSid string, Sid string, params *UpdateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error)
- func (c *DefaultApiService) UpdateRecording(TrunkSid string, params *UpdateRecordingParams) (*TrunkingV1TrunkRecording, error)
- func (c *DefaultApiService) UpdateTrunk(Sid string, params *UpdateTrunkParams) (*TrunkingV1Trunk, error)
- type ListCredentialListParams
- type ListCredentialListResponse
- type ListIpAccessControlListParams
- type ListIpAccessControlListResponse
- type ListOriginationUrlParams
- type ListOriginationUrlResponse
- type ListPhoneNumberParams
- type ListPhoneNumberResponse
- type ListTrunkParams
- type ListTrunkResponse
- type ListTrunkResponseMeta
- type TrunkingV1Trunk
- type TrunkingV1TrunkCredentialList
- type TrunkingV1TrunkIpAccessControlList
- type TrunkingV1TrunkOriginationUrl
- type TrunkingV1TrunkPhoneNumber
- type TrunkingV1TrunkRecording
- type UpdateOriginationUrlParams
- func (params *UpdateOriginationUrlParams) SetEnabled(Enabled bool) *UpdateOriginationUrlParams
- func (params *UpdateOriginationUrlParams) SetFriendlyName(FriendlyName string) *UpdateOriginationUrlParams
- func (params *UpdateOriginationUrlParams) SetPriority(Priority int32) *UpdateOriginationUrlParams
- func (params *UpdateOriginationUrlParams) SetSipUrl(SipUrl string) *UpdateOriginationUrlParams
- func (params *UpdateOriginationUrlParams) SetWeight(Weight int32) *UpdateOriginationUrlParams
- type UpdateRecordingParams
- type UpdateTrunkParams
- func (params *UpdateTrunkParams) SetCnamLookupEnabled(CnamLookupEnabled bool) *UpdateTrunkParams
- func (params *UpdateTrunkParams) SetDisasterRecoveryMethod(DisasterRecoveryMethod string) *UpdateTrunkParams
- func (params *UpdateTrunkParams) SetDisasterRecoveryUrl(DisasterRecoveryUrl string) *UpdateTrunkParams
- func (params *UpdateTrunkParams) SetDomainName(DomainName string) *UpdateTrunkParams
- func (params *UpdateTrunkParams) SetFriendlyName(FriendlyName string) *UpdateTrunkParams
- func (params *UpdateTrunkParams) SetSecure(Secure bool) *UpdateTrunkParams
- func (params *UpdateTrunkParams) SetTransferMode(TransferMode string) *UpdateTrunkParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCredentialListParams ¶
type CreateCredentialListParams struct { // The SID of the [Credential List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource) that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. CredentialListSid *string `json:"CredentialListSid,omitempty"` }
Optional parameters for the method 'CreateCredentialList'
func (*CreateCredentialListParams) SetCredentialListSid ¶
func (params *CreateCredentialListParams) SetCredentialListSid(CredentialListSid string) *CreateCredentialListParams
type CreateIpAccessControlListParams ¶
type CreateIpAccessControlListParams struct { // The SID of the [IP Access Control List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk. IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` }
Optional parameters for the method 'CreateIpAccessControlList'
func (*CreateIpAccessControlListParams) SetIpAccessControlListSid ¶
func (params *CreateIpAccessControlListParams) SetIpAccessControlListSid(IpAccessControlListSid string) *CreateIpAccessControlListParams
type CreateOriginationUrlParams ¶
type CreateOriginationUrlParams struct { // Whether the URL is enabled. The default is `true`. Enabled *bool `json:"Enabled,omitempty"` // A descriptive string that you create to describe the resource. It can be up to 64 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // 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. Priority *int32 `json:"Priority,omitempty"` // The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. SipUrl *string `json:"SipUrl,omitempty"` // 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. Weight *int32 `json:"Weight,omitempty"` }
Optional parameters for the method 'CreateOriginationUrl'
func (*CreateOriginationUrlParams) SetEnabled ¶
func (params *CreateOriginationUrlParams) SetEnabled(Enabled bool) *CreateOriginationUrlParams
func (*CreateOriginationUrlParams) SetFriendlyName ¶
func (params *CreateOriginationUrlParams) SetFriendlyName(FriendlyName string) *CreateOriginationUrlParams
func (*CreateOriginationUrlParams) SetPriority ¶
func (params *CreateOriginationUrlParams) SetPriority(Priority int32) *CreateOriginationUrlParams
func (*CreateOriginationUrlParams) SetSipUrl ¶
func (params *CreateOriginationUrlParams) SetSipUrl(SipUrl string) *CreateOriginationUrlParams
func (*CreateOriginationUrlParams) SetWeight ¶
func (params *CreateOriginationUrlParams) SetWeight(Weight int32) *CreateOriginationUrlParams
type CreatePhoneNumberParams ¶
type CreatePhoneNumberParams struct { // The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk. PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` }
Optional parameters for the method 'CreatePhoneNumber'
func (*CreatePhoneNumberParams) SetPhoneNumberSid ¶
func (params *CreatePhoneNumberParams) SetPhoneNumberSid(PhoneNumberSid string) *CreatePhoneNumberParams
type CreateTrunkParams ¶
type CreateTrunkParams struct { // Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` // The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` // The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` // The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and `-` and must end with `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. DomainName *string `json:"DomainName,omitempty"` // A descriptive string that you create to describe the resource. It can be up to 64 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. Secure *bool `json:"Secure,omitempty"` // The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. TransferMode *string `json:"TransferMode,omitempty"` }
Optional parameters for the method 'CreateTrunk'
func (*CreateTrunkParams) SetCnamLookupEnabled ¶
func (params *CreateTrunkParams) SetCnamLookupEnabled(CnamLookupEnabled bool) *CreateTrunkParams
func (*CreateTrunkParams) SetDisasterRecoveryMethod ¶
func (params *CreateTrunkParams) SetDisasterRecoveryMethod(DisasterRecoveryMethod string) *CreateTrunkParams
func (*CreateTrunkParams) SetDisasterRecoveryUrl ¶
func (params *CreateTrunkParams) SetDisasterRecoveryUrl(DisasterRecoveryUrl string) *CreateTrunkParams
func (*CreateTrunkParams) SetDomainName ¶
func (params *CreateTrunkParams) SetDomainName(DomainName string) *CreateTrunkParams
func (*CreateTrunkParams) SetFriendlyName ¶
func (params *CreateTrunkParams) SetFriendlyName(FriendlyName string) *CreateTrunkParams
func (*CreateTrunkParams) SetSecure ¶
func (params *CreateTrunkParams) SetSecure(Secure bool) *CreateTrunkParams
func (*CreateTrunkParams) SetTransferMode ¶
func (params *CreateTrunkParams) SetTransferMode(TransferMode string) *CreateTrunkParams
type DefaultApiService ¶
type DefaultApiService struct {
// contains filtered or unexported fields
}
func NewDefaultApiService ¶
func NewDefaultApiService(requestHandler *twilio.RequestHandler) *DefaultApiService
func NewDefaultApiServiceWithClient ¶ added in v0.9.0
func NewDefaultApiServiceWithClient(client twilio.BaseClient) *DefaultApiService
func (*DefaultApiService) CreateCredentialList ¶
func (c *DefaultApiService) CreateCredentialList(TrunkSid string, params *CreateCredentialListParams) (*TrunkingV1TrunkCredentialList, error)
func (*DefaultApiService) CreateIpAccessControlList ¶
func (c *DefaultApiService) CreateIpAccessControlList(TrunkSid string, params *CreateIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlList, error)
Associate an IP Access Control List with a Trunk
func (*DefaultApiService) CreateOriginationUrl ¶
func (c *DefaultApiService) CreateOriginationUrl(TrunkSid string, params *CreateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error)
func (*DefaultApiService) CreatePhoneNumber ¶
func (c *DefaultApiService) CreatePhoneNumber(TrunkSid string, params *CreatePhoneNumberParams) (*TrunkingV1TrunkPhoneNumber, error)
func (*DefaultApiService) CreateTrunk ¶
func (c *DefaultApiService) CreateTrunk(params *CreateTrunkParams) (*TrunkingV1Trunk, error)
func (*DefaultApiService) DeleteCredentialList ¶
func (c *DefaultApiService) DeleteCredentialList(TrunkSid string, Sid string) error
func (*DefaultApiService) DeleteIpAccessControlList ¶
func (c *DefaultApiService) DeleteIpAccessControlList(TrunkSid string, Sid string) error
Remove an associated IP Access Control List from a Trunk
func (*DefaultApiService) DeleteOriginationUrl ¶
func (c *DefaultApiService) DeleteOriginationUrl(TrunkSid string, Sid string) error
func (*DefaultApiService) DeletePhoneNumber ¶
func (c *DefaultApiService) DeletePhoneNumber(TrunkSid string, Sid string) error
func (*DefaultApiService) DeleteTrunk ¶
func (c *DefaultApiService) DeleteTrunk(Sid string) error
func (*DefaultApiService) FetchCredentialList ¶
func (c *DefaultApiService) FetchCredentialList(TrunkSid string, Sid string) (*TrunkingV1TrunkCredentialList, error)
func (*DefaultApiService) FetchIpAccessControlList ¶
func (c *DefaultApiService) FetchIpAccessControlList(TrunkSid string, Sid string) (*TrunkingV1TrunkIpAccessControlList, error)
func (*DefaultApiService) FetchOriginationUrl ¶
func (c *DefaultApiService) FetchOriginationUrl(TrunkSid string, Sid string) (*TrunkingV1TrunkOriginationUrl, error)
func (*DefaultApiService) FetchPhoneNumber ¶
func (c *DefaultApiService) FetchPhoneNumber(TrunkSid string, Sid string) (*TrunkingV1TrunkPhoneNumber, error)
func (*DefaultApiService) FetchRecording ¶
func (c *DefaultApiService) FetchRecording(TrunkSid string) (*TrunkingV1TrunkRecording, error)
func (*DefaultApiService) FetchTrunk ¶
func (c *DefaultApiService) FetchTrunk(Sid string) (*TrunkingV1Trunk, error)
func (*DefaultApiService) ListCredentialList ¶
func (c *DefaultApiService) ListCredentialList(TrunkSid string, params *ListCredentialListParams) (*ListCredentialListResponse, error)
func (*DefaultApiService) ListIpAccessControlList ¶
func (c *DefaultApiService) ListIpAccessControlList(TrunkSid string, params *ListIpAccessControlListParams) (*ListIpAccessControlListResponse, error)
List all IP Access Control Lists for a Trunk
func (*DefaultApiService) ListOriginationUrl ¶
func (c *DefaultApiService) ListOriginationUrl(TrunkSid string, params *ListOriginationUrlParams) (*ListOriginationUrlResponse, error)
func (*DefaultApiService) ListPhoneNumber ¶
func (c *DefaultApiService) ListPhoneNumber(TrunkSid string, params *ListPhoneNumberParams) (*ListPhoneNumberResponse, error)
func (*DefaultApiService) ListTrunk ¶
func (c *DefaultApiService) ListTrunk(params *ListTrunkParams) (*ListTrunkResponse, error)
func (*DefaultApiService) UpdateOriginationUrl ¶
func (c *DefaultApiService) UpdateOriginationUrl(TrunkSid string, Sid string, params *UpdateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error)
func (*DefaultApiService) UpdateRecording ¶
func (c *DefaultApiService) UpdateRecording(TrunkSid string, params *UpdateRecordingParams) (*TrunkingV1TrunkRecording, error)
func (*DefaultApiService) UpdateTrunk ¶
func (c *DefaultApiService) UpdateTrunk(Sid string, params *UpdateTrunkParams) (*TrunkingV1Trunk, error)
type ListCredentialListParams ¶
type ListCredentialListParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListCredentialList'
func (*ListCredentialListParams) SetPageSize ¶
func (params *ListCredentialListParams) SetPageSize(PageSize int32) *ListCredentialListParams
type ListCredentialListResponse ¶
type ListCredentialListResponse struct { CredentialLists []TrunkingV1TrunkCredentialList `json:"credential_lists,omitempty"` Meta ListTrunkResponseMeta `json:"meta,omitempty"` }
ListCredentialListResponse struct for ListCredentialListResponse
type ListIpAccessControlListParams ¶
type ListIpAccessControlListParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListIpAccessControlList'
func (*ListIpAccessControlListParams) SetPageSize ¶
func (params *ListIpAccessControlListParams) SetPageSize(PageSize int32) *ListIpAccessControlListParams
type ListIpAccessControlListResponse ¶
type ListIpAccessControlListResponse struct { IpAccessControlLists []TrunkingV1TrunkIpAccessControlList `json:"ip_access_control_lists,omitempty"` Meta ListTrunkResponseMeta `json:"meta,omitempty"` }
ListIpAccessControlListResponse struct for ListIpAccessControlListResponse
type ListOriginationUrlParams ¶
type ListOriginationUrlParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListOriginationUrl'
func (*ListOriginationUrlParams) SetPageSize ¶
func (params *ListOriginationUrlParams) SetPageSize(PageSize int32) *ListOriginationUrlParams
type ListOriginationUrlResponse ¶
type ListOriginationUrlResponse struct { Meta ListTrunkResponseMeta `json:"meta,omitempty"` OriginationUrls []TrunkingV1TrunkOriginationUrl `json:"origination_urls,omitempty"` }
ListOriginationUrlResponse struct for ListOriginationUrlResponse
type ListPhoneNumberParams ¶
type ListPhoneNumberParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListPhoneNumber'
func (*ListPhoneNumberParams) SetPageSize ¶
func (params *ListPhoneNumberParams) SetPageSize(PageSize int32) *ListPhoneNumberParams
type ListPhoneNumberResponse ¶
type ListPhoneNumberResponse struct { Meta ListTrunkResponseMeta `json:"meta,omitempty"` PhoneNumbers []TrunkingV1TrunkPhoneNumber `json:"phone_numbers,omitempty"` }
ListPhoneNumberResponse struct for ListPhoneNumberResponse
type ListTrunkParams ¶
type ListTrunkParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListTrunk'
func (*ListTrunkParams) SetPageSize ¶
func (params *ListTrunkParams) SetPageSize(PageSize int32) *ListTrunkParams
type ListTrunkResponse ¶
type ListTrunkResponse struct { Meta ListTrunkResponseMeta `json:"meta,omitempty"` Trunks []TrunkingV1Trunk `json:"trunks,omitempty"` }
ListTrunkResponse struct for ListTrunkResponse
type ListTrunkResponseMeta ¶
type ListTrunkResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` Key string `json:"key,omitempty"` NextPageUrl string `json:"next_page_url,omitempty"` Page int32 `json:"page,omitempty"` PageSize int32 `json:"page_size,omitempty"` PreviousPageUrl string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` }
ListTrunkResponseMeta struct for ListTrunkResponseMeta
type TrunkingV1Trunk ¶
type TrunkingV1Trunk struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The types of authentication mapped to the domain AuthType *string `json:"auth_type,omitempty"` // Reserved AuthTypeSet *[]string `json:"auth_type_set,omitempty"` // Whether Caller ID Name (CNAM) lookup is enabled for the trunk CnamLookupEnabled *bool `json:"cnam_lookup_enabled,omitempty"` // The RFC 2822 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The RFC 2822 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // The HTTP method we use to call the disaster_recovery_url DisasterRecoveryMethod *string `json:"disaster_recovery_method,omitempty"` // The HTTP URL that we call if an error occurs while sending SIP traffic towards your configured Origination URL DisasterRecoveryUrl *string `json:"disaster_recovery_url,omitempty"` // The unique address you reserve on Twilio to which you route your SIP traffic DomainName *string `json:"domain_name,omitempty"` // The string that you assigned to describe the resource FriendlyName *string `json:"friendly_name,omitempty"` // The URLs of related resources Links *map[string]interface{} `json:"links,omitempty"` // The recording settings for the trunk Recording *map[string]interface{} `json:"recording,omitempty"` // Whether Secure Trunking is enabled for the trunk Secure *bool `json:"secure,omitempty"` // The unique string that identifies the resource Sid *string `json:"sid,omitempty"` // The call transfer settings for the trunk TransferMode *string `json:"transfer_mode,omitempty"` // The absolute URL of the resource Url *string `json:"url,omitempty"` }
TrunkingV1Trunk struct for TrunkingV1Trunk
type TrunkingV1TrunkCredentialList ¶
type TrunkingV1TrunkCredentialList struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The RFC 2822 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The RFC 2822 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // The string that you assigned to describe the resource FriendlyName *string `json:"friendly_name,omitempty"` // The unique string that identifies the resource Sid *string `json:"sid,omitempty"` // The SID of the Trunk the credential list in associated with TrunkSid *string `json:"trunk_sid,omitempty"` // The absolute URL of the resource Url *string `json:"url,omitempty"` }
TrunkingV1TrunkCredentialList struct for TrunkingV1TrunkCredentialList
type TrunkingV1TrunkIpAccessControlList ¶
type TrunkingV1TrunkIpAccessControlList struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The RFC 2822 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The RFC 2822 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // The string that you assigned to describe the resource FriendlyName *string `json:"friendly_name,omitempty"` // The unique string that identifies the resource Sid *string `json:"sid,omitempty"` // The SID of the Trunk the resource is associated with TrunkSid *string `json:"trunk_sid,omitempty"` // The absolute URL of the resource Url *string `json:"url,omitempty"` }
TrunkingV1TrunkIpAccessControlList struct for TrunkingV1TrunkIpAccessControlList
type TrunkingV1TrunkOriginationUrl ¶
type TrunkingV1TrunkOriginationUrl struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // The RFC 2822 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The RFC 2822 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // Whether the URL is enabled Enabled *bool `json:"enabled,omitempty"` // The string that you assigned to describe the resource FriendlyName *string `json:"friendly_name,omitempty"` // The relative importance of the URI Priority *int32 `json:"priority,omitempty"` // The unique string that identifies the resource Sid *string `json:"sid,omitempty"` // The SIP address you want Twilio to route your Origination calls to SipUrl *string `json:"sip_url,omitempty"` // The SID of the Trunk that owns the Origination URL TrunkSid *string `json:"trunk_sid,omitempty"` // The absolute URL of the resource Url *string `json:"url,omitempty"` // The value that determines the relative load the URI should receive compared to others with the same priority Weight *int32 `json:"weight,omitempty"` }
TrunkingV1TrunkOriginationUrl struct for TrunkingV1TrunkOriginationUrl
type TrunkingV1TrunkPhoneNumber ¶
type TrunkingV1TrunkPhoneNumber struct { // The SID of the Account that created the resource AccountSid *string `json:"account_sid,omitempty"` // Whether the phone number requires an Address registered with Twilio AddressRequirements *string `json:"address_requirements,omitempty"` // The API version used to start a new TwiML session ApiVersion *string `json:"api_version,omitempty"` // Whether the phone number is new to the Twilio platform Beta *bool `json:"beta,omitempty"` // Indicate if a phone can receive calls or messages Capabilities *map[string]interface{} `json:"capabilities,omitempty"` // The RFC 2822 date and time in GMT when the resource was created DateCreated *time.Time `json:"date_created,omitempty"` // The RFC 2822 date and time in GMT when the resource was last updated DateUpdated *time.Time `json:"date_updated,omitempty"` // The string that you assigned to describe the resource FriendlyName *string `json:"friendly_name,omitempty"` // The URLs of related resources Links *map[string]interface{} `json:"links,omitempty"` // The phone number in E.164 format PhoneNumber *string `json:"phone_number,omitempty"` // The unique string that identifies the resource Sid *string `json:"sid,omitempty"` // The SID of the application that handles SMS messages sent to the phone number SmsApplicationSid *string `json:"sms_application_sid,omitempty"` // The HTTP method used with sms_fallback_url SmsFallbackMethod *string `json:"sms_fallback_method,omitempty"` // The URL that we call when an error occurs while retrieving or executing the TwiML SmsFallbackUrl *string `json:"sms_fallback_url,omitempty"` // The HTTP method to use with sms_url SmsMethod *string `json:"sms_method,omitempty"` // The URL we call when the phone number receives an incoming SMS message SmsUrl *string `json:"sms_url,omitempty"` // The URL to send status information to your application StatusCallback *string `json:"status_callback,omitempty"` // The HTTP method we use to call status_callback StatusCallbackMethod *string `json:"status_callback_method,omitempty"` // The SID of the Trunk that handles calls to the phone number TrunkSid *string `json:"trunk_sid,omitempty"` // The absolute URL of the resource Url *string `json:"url,omitempty"` // The SID of the application that handles calls to the phone number VoiceApplicationSid *string `json:"voice_application_sid,omitempty"` // Whether to lookup the caller's name VoiceCallerIdLookup *bool `json:"voice_caller_id_lookup,omitempty"` // The HTTP method that we use to call voice_fallback_url VoiceFallbackMethod *string `json:"voice_fallback_method,omitempty"` // The URL we call when an error occurs in TwiML VoiceFallbackUrl *string `json:"voice_fallback_url,omitempty"` // The HTTP method used with the voice_url VoiceMethod *string `json:"voice_method,omitempty"` // The URL we call when the phone number receives a call VoiceUrl *string `json:"voice_url,omitempty"` }
TrunkingV1TrunkPhoneNumber struct for TrunkingV1TrunkPhoneNumber
type TrunkingV1TrunkRecording ¶
type TrunkingV1TrunkRecording struct { // The recording mode for the trunk. Mode *string `json:"mode,omitempty"` // The recording trim setting for the trunk. Trim *string `json:"trim,omitempty"` }
TrunkingV1TrunkRecording struct for TrunkingV1TrunkRecording
type UpdateOriginationUrlParams ¶
type UpdateOriginationUrlParams struct { // Whether the URL is enabled. The default is `true`. Enabled *bool `json:"Enabled,omitempty"` // A descriptive string that you create to describe the resource. It can be up to 64 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // 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. Priority *int32 `json:"Priority,omitempty"` // The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. `sips` is NOT supported. SipUrl *string `json:"SipUrl,omitempty"` // 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. Weight *int32 `json:"Weight,omitempty"` }
Optional parameters for the method 'UpdateOriginationUrl'
func (*UpdateOriginationUrlParams) SetEnabled ¶
func (params *UpdateOriginationUrlParams) SetEnabled(Enabled bool) *UpdateOriginationUrlParams
func (*UpdateOriginationUrlParams) SetFriendlyName ¶
func (params *UpdateOriginationUrlParams) SetFriendlyName(FriendlyName string) *UpdateOriginationUrlParams
func (*UpdateOriginationUrlParams) SetPriority ¶
func (params *UpdateOriginationUrlParams) SetPriority(Priority int32) *UpdateOriginationUrlParams
func (*UpdateOriginationUrlParams) SetSipUrl ¶
func (params *UpdateOriginationUrlParams) SetSipUrl(SipUrl string) *UpdateOriginationUrlParams
func (*UpdateOriginationUrlParams) SetWeight ¶
func (params *UpdateOriginationUrlParams) SetWeight(Weight int32) *UpdateOriginationUrlParams
type UpdateRecordingParams ¶
type UpdateRecordingParams struct { // The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual. Mode *string `json:"Mode,omitempty"` // The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence. Trim *string `json:"Trim,omitempty"` }
Optional parameters for the method 'UpdateRecording'
func (*UpdateRecordingParams) SetMode ¶
func (params *UpdateRecordingParams) SetMode(Mode string) *UpdateRecordingParams
func (*UpdateRecordingParams) SetTrim ¶
func (params *UpdateRecordingParams) SetTrim(Trim string) *UpdateRecordingParams
type UpdateTrunkParams ¶
type UpdateTrunkParams struct { // Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` // The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` // The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` // The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and `-` and must end with `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. DomainName *string `json:"DomainName,omitempty"` // A descriptive string that you create to describe the resource. It can be up to 64 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. Secure *bool `json:"Secure,omitempty"` // The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. TransferMode *string `json:"TransferMode,omitempty"` }
Optional parameters for the method 'UpdateTrunk'
func (*UpdateTrunkParams) SetCnamLookupEnabled ¶
func (params *UpdateTrunkParams) SetCnamLookupEnabled(CnamLookupEnabled bool) *UpdateTrunkParams
func (*UpdateTrunkParams) SetDisasterRecoveryMethod ¶
func (params *UpdateTrunkParams) SetDisasterRecoveryMethod(DisasterRecoveryMethod string) *UpdateTrunkParams
func (*UpdateTrunkParams) SetDisasterRecoveryUrl ¶
func (params *UpdateTrunkParams) SetDisasterRecoveryUrl(DisasterRecoveryUrl string) *UpdateTrunkParams
func (*UpdateTrunkParams) SetDomainName ¶
func (params *UpdateTrunkParams) SetDomainName(DomainName string) *UpdateTrunkParams
func (*UpdateTrunkParams) SetFriendlyName ¶
func (params *UpdateTrunkParams) SetFriendlyName(FriendlyName string) *UpdateTrunkParams
func (*UpdateTrunkParams) SetSecure ¶
func (params *UpdateTrunkParams) SetSecure(Secure bool) *UpdateTrunkParams
func (*UpdateTrunkParams) SetTransferMode ¶
func (params *UpdateTrunkParams) SetTransferMode(TransferMode string) *UpdateTrunkParams
Source Files ¶
- api_default.go
- model_list_credential_list_response.go
- model_list_ip_access_control_list_response.go
- model_list_origination_url_response.go
- model_list_phone_number_response.go
- model_list_trunk_response.go
- model_list_trunk_response_meta.go
- model_trunking_v1_trunk.go
- model_trunking_v1_trunk_credential_list.go
- model_trunking_v1_trunk_ip_access_control_list.go
- model_trunking_v1_trunk_origination_url.go
- model_trunking_v1_trunk_phone_number.go
- model_trunking_v1_trunk_recording.go