defaults

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package defaults contains auto-generated files. DO NOT MODIFY

Package defaults contains auto-generated files. DO NOT MODIFY

Package defaults 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 default resources See https://www.twilio.com/docs/autopilot/api/assistant/defaults for more details

func New

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

New creates a new instance of the defaults client

func (Client) Fetch

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

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

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

func (Client) Update

Update modifies a defaults resource See https://www.twilio.com/docs/autopilot/api/assistant/defaults#update-a-defaults-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 *UpdateDefaultInput) (*UpdateDefaultResponse, error)

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

type ClientProperties

type ClientProperties struct {
	AssistantSid string
}

ClientProperties are the properties required to manage the defaults resources

type FetchDefaultResponse

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

FetchDefaultResponse defines the response fields for the retrieved defaults

type UpdateDefaultInput

type UpdateDefaultInput struct {
	Defaults *string `form:"Defaults,omitempty"`
}

UpdateDefaultInput defines the input fields for updating defaults

type UpdateDefaultResponse

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

UpdateDefaultResponse defines the response fields for the updated defaults

Jump to

Keyboard shortcuts

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