query

package
v0.23.3 Latest Latest
Warning

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

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

Documentation

Overview

Package query contains auto-generated files. DO NOT MODIFY

Package query contains auto-generated files. DO NOT MODIFY

Package query contains auto-generated files. DO NOT MODIFY

Package query 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 a specific query resource See https://www.twilio.com/docs/autopilot/api/query for more details

func New

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

New creates a new instance of the query client

func (Client) Delete

func (c Client) Delete() error

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

func (Client) Fetch

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

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

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

func (Client) Update

func (c Client) Update(input *UpdateQueryInput) (*UpdateQueryResponse, error)

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

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

type ClientProperties

type ClientProperties struct {
	AssistantSid string
	Sid          string
}

ClientProperties are the properties required to manage the query resources

type FetchQueryFieldResponse added in v0.6.0

type FetchQueryFieldResponse struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Value string `json:"value"`
}

type FetchQueryResponse

type FetchQueryResponse struct {
	AccountSid    string                   `json:"account_sid"`
	AssistantSid  string                   `json:"assistant_sid"`
	DateCreated   time.Time                `json:"date_created"`
	DateUpdated   *time.Time               `json:"date_updated,omitempty"`
	DialogueSid   *string                  `json:"dialogue_sid,omitempty"`
	Language      string                   `json:"language"`
	ModelBuildSid string                   `json:"model_build_sid"`
	Query         string                   `json:"query"`
	Results       FetchQueryResultResponse `json:"results"`
	SampleSid     string                   `json:"sample_sid"`
	Sid           string                   `json:"sid"`
	SourceChannel string                   `json:"source_channel"`
	Status        string                   `json:"status"`
	URL           string                   `json:"url"`
}

FetchQueryResponse defines the response fields for the retrieved query

type FetchQueryResultResponse added in v0.6.0

type FetchQueryResultResponse struct {
	Fields []FetchQueryFieldResponse `json:"fields"`
	Task   string                    `json:"task"`
}

type UpdateQueryFieldResponse added in v0.6.0

type UpdateQueryFieldResponse struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Value string `json:"value"`
}

type UpdateQueryInput

type UpdateQueryInput struct {
	SampleSid *string `form:"SampleSid,omitempty"`
	Status    *string `form:"Status,omitempty"`
}

UpdateQueryInput defines the input fields for updating a query

type UpdateQueryResponse

type UpdateQueryResponse struct {
	AccountSid    string                    `json:"account_sid"`
	AssistantSid  string                    `json:"assistant_sid"`
	DateCreated   time.Time                 `json:"date_created"`
	DateUpdated   *time.Time                `json:"date_updated,omitempty"`
	DialogueSid   *string                   `json:"dialogue_sid,omitempty"`
	Language      string                    `json:"language"`
	ModelBuildSid string                    `json:"model_build_sid"`
	Query         string                    `json:"query"`
	Results       UpdateQueryResultResponse `json:"results"`
	SampleSid     string                    `json:"sample_sid"`
	Sid           string                    `json:"sid"`
	SourceChannel string                    `json:"source_channel"`
	Status        string                    `json:"status"`
	URL           string                    `json:"url"`
}

UpdateQueryResponse defines the response fields for the updated query

type UpdateQueryResultResponse added in v0.6.0

type UpdateQueryResultResponse struct {
	Fields []UpdateQueryFieldResponse `json:"fields"`
	Task   string                     `json:"task"`
}

Jump to

Keyboard shortcuts

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