Documentation
¶
Overview ¶
Package trunk contains auto-generated files. DO NOT MODIFY
Package trunk contains auto-generated files. DO NOT MODIFY
Package trunk contains auto-generated files. DO NOT MODIFY
Package trunk contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchTrunkResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchTrunkResponse, error)
- func (c Client) Update(input *UpdateTrunkInput) (*UpdateTrunkResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateTrunkInput) (*UpdateTrunkResponse, error)
- type ClientProperties
- type FetchTrunkRecordingResponse
- type FetchTrunkResponse
- type UpdateTrunkInput
- type UpdateTrunkRecordingResponse
- type UpdateTrunkResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { CredentialList func(string) *credential_list.Client CredentialLists *credential_lists.Client IpAccessControlList func(string) *ip_access_control_list.Client IpAccessControlLists *ip_access_control_lists.Client OriginationURL func(string) *origination_url.Client OriginationURLs *origination_urls.Client PhoneNumber func(string) *phone_number.Client PhoneNumbers *phone_numbers.Client Recording func() *recording.Client // contains filtered or unexported fields }
Client for managing a specific trunk resource See https://www.twilio.com/docs/sip-trunking/api/trunk-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the trunk client
func (Client) Delete ¶
Delete removes a trunk resource from the account See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#delete-a-trunk-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) DeleteWithContext ¶
DeleteWithContext removes a trunk resource from the account See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#delete-a-trunk-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchTrunkResponse, error)
Fetch retrieves a trunk resource See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#fetch-a-trunk-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) FetchWithContext ¶
func (c Client) FetchWithContext(context context.Context) (*FetchTrunkResponse, error)
FetchWithContext retrieves a trunk resource See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#fetch-a-trunk-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateTrunkInput) (*UpdateTrunkResponse, error)
Update modifies a trunk resource See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#update-a-trunk-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) UpdateWithContext ¶
func (c Client) UpdateWithContext(context context.Context, input *UpdateTrunkInput) (*UpdateTrunkResponse, error)
UpdateWithContext modifies a trunk resource See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#update-a-trunk-resource for more details
type ClientProperties ¶
type ClientProperties struct {
Sid string
}
ClientProperties are the properties required to manage the trunk resources
type FetchTrunkResponse ¶
type FetchTrunkResponse struct { AccountSid string `json:"account_sid"` AuthType *string `json:"auth_type,omitempty"` AuthTypeSet *[]string `json:"auth_type_set,omitempty"` CnamLookupEnabled bool `json:"cnam_lookup_enabled"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` DisasterRecoveryMethod *string `json:"disaster_recovery_method,omitempty"` DisasterRecoveryURL *string `json:"disaster_recovery_url,omitempty"` DomainName *string `json:"domain_name,omitempty"` FriendlyName *string `json:"friendly_name,omitempty"` Recording FetchTrunkRecordingResponse `json:"recording"` Secure bool `json:"secure"` Sid string `json:"sid"` TransferMode string `json:"transfer_mode"` URL string `json:"url"` }
FetchTrunkResponse defines the response fields for the retrieved trunk resource
type UpdateTrunkInput ¶
type UpdateTrunkInput struct { CnamLookupEnabled *bool `form:"CnamLookupEnabled,omitempty"` DisasterRecoveryMethod *string `form:"DisasterRecoveryMethod,omitempty"` DisasterRecoveryURL *string `form:"DisasterRecoveryUrl,omitempty"` DomainName *string `form:"DomainName,omitempty"` FriendlyName *string `form:"FriendlyName,omitempty"` Secure *bool `form:"Secure,omitempty"` TransferMode *string `form:"TransferMode,omitempty"` }
UpdateTrunkInput defines input fields for updating a trunk resource
type UpdateTrunkResponse ¶
type UpdateTrunkResponse struct { AccountSid string `json:"account_sid"` AuthType *string `json:"auth_type,omitempty"` AuthTypeSet *[]string `json:"auth_type_set,omitempty"` CnamLookupEnabled bool `json:"cnam_lookup_enabled"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` DisasterRecoveryMethod *string `json:"disaster_recovery_method,omitempty"` DisasterRecoveryURL *string `json:"disaster_recovery_url,omitempty"` DomainName *string `json:"domain_name,omitempty"` FriendlyName *string `json:"friendly_name,omitempty"` Recording UpdateTrunkRecordingResponse `json:"recording"` Secure bool `json:"secure"` Sid string `json:"sid"` TransferMode string `json:"transfer_mode"` URL string `json:"url"` }
UpdateTrunkResponse defines the response fields for the updated trunk
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package credential_list contains auto-generated files.
|
Package credential_list contains auto-generated files. |
Package credential_lists contains auto-generated files.
|
Package credential_lists contains auto-generated files. |
Package ip_access_control_list contains auto-generated files.
|
Package ip_access_control_list contains auto-generated files. |
Package ip_access_control_lists contains auto-generated files.
|
Package ip_access_control_lists contains auto-generated files. |
Package origination_url contains auto-generated files.
|
Package origination_url contains auto-generated files. |
Package origination_urls contains auto-generated files.
|
Package origination_urls contains auto-generated files. |
Package phone_number contains auto-generated files.
|
Package phone_number contains auto-generated files. |
Package phone_numbers contains auto-generated files.
|
Package phone_numbers contains auto-generated files. |
Package recording contains auto-generated files.
|
Package recording contains auto-generated files. |