actions

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package actions contains auto-generated files. DO NOT MODIFY

Package actions contains auto-generated files. DO NOT MODIFY

Package actions contains auto-generated files. 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 {
	// contains filtered or unexported fields
}

Client for managing task action resources See https://www.twilio.com/docs/autopilot/api/task-action for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the actions client

func (Client) Fetch

func (c Client) Fetch() (*FetchActionResponse, error)

Fetch retrieves a task action resource See https://www.twilio.com/docs/autopilot/api/task-action#fetch-a-taskactions-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) (*FetchActionResponse, error)

FetchWithContext retrieves a task action resource See https://www.twilio.com/docs/autopilot/api/task-action#fetch-a-taskactions-resource for more details

func (Client) Update

func (c Client) Update(input *UpdateActionInput) (*UpdateActionResponse, error)

Update modifies a task action resource See https://www.twilio.com/docs/autopilot/api/task-action#update-a-taskactions-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 *UpdateActionInput) (*UpdateActionResponse, error)

UpdateWithContext modifies a task action resource See https://www.twilio.com/docs/autopilot/api/task-action#update-a-taskactions-resource for more details

type ClientProperties

type ClientProperties struct {
	AssistantSid string
	TaskSid      string
}

ClientProperties are the properties required to manage the actions resources

type FetchActionResponse

type FetchActionResponse struct {
	AccountSid   string                 `json:"account_sid"`
	AssistantSid string                 `json:"assistant_sid"`
	Data         map[string]interface{} `json:"data"`
	TaskSid      string                 `json:"task_sid"`
	URL          string                 `json:"url"`
}

FetchActionResponse defines the response fields for the retrieved task action>

type UpdateActionInput

type UpdateActionInput struct {
	Actions *string `form:"Actions,omitempty"`
}

UpdateActionInput defines the input fields for updating a task action

type UpdateActionResponse

type UpdateActionResponse struct {
	AccountSid   string                 `json:"account_sid"`
	AssistantSid string                 `json:"assistant_sid"`
	Data         map[string]interface{} `json:"data"`
	TaskSid      string                 `json:"task_sid"`
	URL          string                 `json:"url"`
}

UpdateActionResponse defines the response fields for the updated task action

Jump to

Keyboard shortcuts

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