Documentation ¶
Overview ¶
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchTaskChannelResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchTaskChannelResponse, error)
- func (c Client) Update(input *UpdateTaskChannelInput) (*UpdateTaskChannelResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateTaskChannelInput) (*UpdateTaskChannelResponse, error)
- type ClientProperties
- type FetchTaskChannelResponse
- type UpdateTaskChannelInput
- type UpdateTaskChannelResponse
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 task channel resource See twilio.com/docs/taskrouter/api/task-channel for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the task channel client
func (Client) Delete ¶
Delete removes a task channel resource from the account See https://www.twilio.com/docs/taskrouter/api/task-channel#delete-a-taskchannel-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 task channel resource from the account See https://www.twilio.com/docs/taskrouter/api/task-channel#delete-a-taskchannel-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchTaskChannelResponse, error)
Fetch retrieves an task channel resource See twilio.com/docs/taskrouter/api/task-channel#fetch-a-taskchannel-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) (*FetchTaskChannelResponse, error)
FetchWithContext retrieves an task channel resource See twilio.com/docs/taskrouter/api/task-channel#fetch-a-taskchannel-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateTaskChannelInput) (*UpdateTaskChannelResponse, error)
Update modifies a task channel resource See https://www.twilio.com/docs/taskrouter/api/task-channel#update-a-taskchannel-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 *UpdateTaskChannelInput) (*UpdateTaskChannelResponse, error)
UpdateWithContext modifies a task channel resource See https://www.twilio.com/docs/taskrouter/api/task-channel#update-a-taskchannel-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the task channel resources
type FetchTaskChannelResponse ¶
type FetchTaskChannelResponse struct { AccountSid string `json:"account_sid"` ChannelOptimizedRouting *bool `json:"channel_optimized_routing,omitempty"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FriendlyName string `json:"friendly_name"` Sid string `json:"sid"` URL string `json:"url"` UniqueName string `json:"unique_name"` WorkspaceSid string `json:"workspace_sid"` }
FetchTaskChannelResponse defines the response fields for the retrieved task channel
type UpdateTaskChannelInput ¶
type UpdateTaskChannelInput struct { ChannelOptimizedRouting *bool `form:"ChannelOptimizedRouting,omitempty"` FriendlyName *string `form:"FriendlyName,omitempty"` }
UpdateTaskChannelInput defines input fields for updating a task channel resource
type UpdateTaskChannelResponse ¶
type UpdateTaskChannelResponse struct { AccountSid string `json:"account_sid"` ChannelOptimizedRouting *bool `json:"channel_optimized_routing,omitempty"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FriendlyName string `json:"friendly_name"` Sid string `json:"sid"` URL string `json:"url"` UniqueName string `json:"unique_name"` WorkspaceSid string `json:"workspace_sid"` }
UpdateTaskChannelResponse defines the response fields for the updated task channel