Documentation ¶
Overview ¶
Package task contains auto-generated files. DO NOT MODIFY
Package task contains auto-generated files. DO NOT MODIFY
Package task contains auto-generated files. DO NOT MODIFY
Package task 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() (*FetchTaskResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchTaskResponse, error)
- func (c Client) Update(input *UpdateTaskInput) (*UpdateTaskResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateTaskInput) (*UpdateTaskResponse, error)
- type ClientProperties
- type FetchTaskResponse
- type UpdateTaskInput
- type UpdateTaskResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Actions func() *actions.Client Field func(string) *field.Client Fields *fields.Client Sample func(string) *sample.Client Samples *samples.Client Statistics func() *statistics.Client // contains filtered or unexported fields }
Client for managing a specific task resource See https://www.twilio.com/docs/autopilot/api/task for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the task client
func (Client) Delete ¶
Delete removes a task resource from the account See https://www.twilio.com/docs/autopilot/api/task#delete-a-task-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 resource from the account See https://www.twilio.com/docs/autopilot/api/task#delete-a-task-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchTaskResponse, error)
Fetch retrieves a task resource See https://www.twilio.com/docs/autopilot/api/task#fetch-a-task-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) (*FetchTaskResponse, error)
FetchWithContext retrieves a task resource See https://www.twilio.com/docs/autopilot/api/task#fetch-a-task-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateTaskInput) (*UpdateTaskResponse, error)
Update modifies a task resource See https://www.twilio.com/docs/autopilot/api/task#update-a-task-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 *UpdateTaskInput) (*UpdateTaskResponse, error)
UpdateWithContext modifies a task resource See https://www.twilio.com/docs/autopilot/api/task#update-a-task-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the task resources
type FetchTaskResponse ¶
type FetchTaskResponse struct { AccountSid string `json:"account_sid"` ActionsURL string `json:"actions_url"` AssistantSid string `json:"assistant_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FriendlyName *string `json:"friendly_name,omitempty"` Sid string `json:"sid"` URL string `json:"url"` UniqueName string `json:"unique_name"` }
FetchTaskResponse defines the response fields for the retrieved task
type UpdateTaskInput ¶
type UpdateTaskInput struct { Actions *string `form:"Actions,omitempty"` ActionsURL *string `form:"ActionsUrl,omitempty"` FriendlyName *string `form:"FriendlyName,omitempty"` UniqueName *string `form:"UniqueName,omitempty"` }
UpdateTaskInput defines the input fields for updating a task
type UpdateTaskResponse ¶
type UpdateTaskResponse struct { AccountSid string `json:"account_sid"` ActionsURL string `json:"actions_url"` AssistantSid string `json:"assistant_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FriendlyName *string `json:"friendly_name,omitempty"` Sid string `json:"sid"` URL string `json:"url"` UniqueName string `json:"unique_name"` }
UpdateTaskResponse defines the response fields for the updated task
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package actions contains auto-generated files.
|
Package actions contains auto-generated files. |
Package field contains auto-generated files.
|
Package field contains auto-generated files. |
Package fields contains auto-generated files.
|
Package fields contains auto-generated files. |
Package sample contains auto-generated files.
|
Package sample contains auto-generated files. |
Package samples contains auto-generated files.
|
Package samples contains auto-generated files. |
Package statistics contains auto-generated files.
|
Package statistics contains auto-generated files. |