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
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 ¶
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 ¶
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 ¶
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