field_value

package
Version: v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package field_value contains auto-generated files. DO NOT MODIFY

Package field_value contains auto-generated files. DO NOT MODIFY

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

func New

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

New creates a new instance of the field value client

func (Client) Delete

func (c Client) Delete() error

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

func (Client) Fetch

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

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

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

type ClientProperties

type ClientProperties struct {
	AssistantSid string
	FieldTypeSid string
	Sid          string
}

ClientProperties are the properties required to manage the field value resources

type FetchFieldValueResponse

type FetchFieldValueResponse struct {
	AccountSid   string     `json:"account_sid"`
	AssistantSid string     `json:"assistant_sid"`
	DateCreated  time.Time  `json:"date_created"`
	DateUpdated  *time.Time `json:"date_updated,omitempty"`
	FieldTypeSid string     `json:"field_type_sid"`
	Language     string     `json:"language"`
	Sid          string     `json:"sid"`
	SynonymOf    *string    `json:"synonym_of,omitempty"`
	URL          string     `json:"url"`
	Value        string     `json:"value"`
}

FetchFieldValueResponse defines the response fields for the retrieved field value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL