assistant

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: 16 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 {
	Defaults    func() *defaults.Client
	FieldType   func(string) *field_type.Client
	FieldTypes  *field_types.Client
	ModelBuild  func(string) *model_build.Client
	ModelBuilds *model_builds.Client
	Queries     *queries.Client
	Query       func(string) *query.Client
	StyleSheet  func() *style_sheet.Client
	Task        func(string) *task.Client
	Tasks       *tasks.Client
	Webhook     func(string) *webhook.Client
	Webhooks    *webhooks.Client
	// contains filtered or unexported fields
}

Client for managing a specific assistant resource See https://www.twilio.com/docs/autopilot/api/assistant for more details

func New

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

New creates a new instance of the assistant client

func (Client) Delete

func (c Client) Delete() error

Delete removes a assistant resource from the account See https://www.twilio.com/docs/autopilot/api/assistant#delete-an-assistant-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 assistant resource from the account See https://www.twilio.com/docs/autopilot/api/assistant#delete-an-assistant-resource for more details

func (Client) Fetch

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

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

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

func (Client) Update

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

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

type ClientProperties

type ClientProperties struct {
	Sid string
}

ClientProperties are the properties required to manage the assistant resources

type FetchAssistantResponse

type FetchAssistantResponse struct {
	AccountSid          string     `json:"account_sid"`
	CallbackEvents      *string    `json:"callback_events,omitempty"`
	CallbackURL         *string    `json:"callback_url,omitempty"`
	DateCreated         time.Time  `json:"date_created"`
	DateUpdated         *time.Time `json:"date_updated,omitempty"`
	DevelopmentStage    string     `json:"development_stage"`
	FriendlyName        *string    `json:"friendly_name,omitempty"`
	LatestModelBuildSid *string    `json:"latest_model_build_sid,omitempty"`
	LogQueries          bool       `json:"log_queries"`
	NeedsModelBuild     *bool      `json:"needs_model_build,omitempty"`
	Sid                 string     `json:"sid"`
	URL                 string     `json:"url"`
	UniqueName          string     `json:"unique_name"`
}

FetchAssistantResponse defines the response fields for the retrieved assistant

type UpdateAssistantInput

type UpdateAssistantInput struct {
	CallbackEvents   *string `form:"CallbackEvents,omitempty"`
	CallbackURL      *string `form:"CallbackUrl,omitempty"`
	Defaults         *string `form:"Defaults,omitempty"`
	DevelopmentStage *string `form:"DevelopmentStage,omitempty"`
	FriendlyName     *string `form:"FriendlyName,omitempty"`
	LogQueries       *bool   `form:"LogQueries,omitempty"`
	StyleSheet       *string `form:"StyleSheet,omitempty"`
	UniqueName       *string `form:"UniqueName,omitempty"`
}

UpdateAssistantInput defines the input fields for updating an assistant resource

type UpdateAssistantResponse

type UpdateAssistantResponse struct {
	AccountSid          string     `json:"account_sid"`
	CallbackEvents      *string    `json:"callback_events,omitempty"`
	CallbackURL         *string    `json:"callback_url,omitempty"`
	DateCreated         time.Time  `json:"date_created"`
	DateUpdated         *time.Time `json:"date_updated,omitempty"`
	DevelopmentStage    string     `json:"development_stage"`
	FriendlyName        *string    `json:"friendly_name,omitempty"`
	LatestModelBuildSid *string    `json:"latest_model_build_sid,omitempty"`
	LogQueries          bool       `json:"log_queries"`
	NeedsModelBuild     *bool      `json:"needs_model_build,omitempty"`
	Sid                 string     `json:"sid"`
	URL                 string     `json:"url"`
	UniqueName          string     `json:"unique_name"`
}

UpdateAssistantResponse defines the response fields for the updated assistant

Directories

Path Synopsis
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
field_value
This is an autogenerated file.
This is an autogenerated file.
field_values
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.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
actions
This is an autogenerated file.
This is an autogenerated file.
field
This is an autogenerated file.
This is an autogenerated file.
fields
This is an autogenerated file.
This is an autogenerated file.
sample
This is an autogenerated file.
This is an autogenerated file.
samples
This is an autogenerated file.
This is an autogenerated file.
statistics
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