task

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

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

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

func (c Client) Delete() error

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

func (c Client) DeleteWithContext(context context.Context) error

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

type ClientProperties struct {
	AssistantSid string
	Sid          string
}

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

Directories

Path Synopsis
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL