Documentation ¶
Overview ¶
Package origination_url contains auto-generated files. DO NOT MODIFY
Package origination_url contains auto-generated files. DO NOT MODIFY
Package origination_url contains auto-generated files. DO NOT MODIFY
Package origination_url 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() (*FetchOriginationURLResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchOriginationURLResponse, error)
- func (c Client) Update(input *UpdateOriginationURLInput) (*UpdateOriginationURLResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateOriginationURLInput) (*UpdateOriginationURLResponse, error)
- type ClientProperties
- type FetchOriginationURLResponse
- type UpdateOriginationURLInput
- type UpdateOriginationURLResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for managing a specific origination url resource See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the origination url client
func (Client) Delete ¶
Delete removes a origination url resource from the account See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource#delete-an-originationurl-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 origination url resource from the account See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource#delete-an-originationurl-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchOriginationURLResponse, error)
Fetch retrieves an origination url resource See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource#fetch-an-originationurl-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) (*FetchOriginationURLResponse, error)
FetchWithContext retrieves an origination url resource See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource#fetch-an-originationurl-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateOriginationURLInput) (*UpdateOriginationURLResponse, error)
Update modifies an origination url resource See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource#update-an-originationurl-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 *UpdateOriginationURLInput) (*UpdateOriginationURLResponse, error)
UpdateWithContext modifies an origination url resource See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource#update-an-originationurl-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the origination url resources
type FetchOriginationURLResponse ¶
type FetchOriginationURLResponse struct { AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Enabled bool `json:"enabled"` FriendlyName string `json:"friendly_name"` Priority int `json:"priority"` Sid string `json:"sid"` SipURL string `json:"sip_url"` TrunkSid string `json:"trunk_sid"` URL string `json:"url"` Weight int `json:"weight"` }
FetchOriginationURLResponse defines the response fields for the retrieved origination url resource
type UpdateOriginationURLInput ¶
type UpdateOriginationURLInput struct { Enabled *bool `form:"Enabled,omitempty"` FriendlyName *string `form:"FriendlyName,omitempty"` Priority *int `form:"Priority,omitempty"` SipURL *string `form:"SipUrl,omitempty"` Weight *int `form:"Weight,omitempty"` }
UpdateOriginationURLInput defines input fields for updating an origination url resource
type UpdateOriginationURLResponse ¶
type UpdateOriginationURLResponse struct { AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Enabled bool `json:"enabled"` FriendlyName string `json:"friendly_name"` Priority int `json:"priority"` Sid string `json:"sid"` SipURL string `json:"sip_url"` TrunkSid string `json:"trunk_sid"` URL string `json:"url"` Weight int `json:"weight"` }
UpdateOriginationURLResponse defines the response fields for the updated origination url