field_type

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package field_type contains auto-generated files. DO NOT MODIFY

Package field_type contains auto-generated files. DO NOT MODIFY

Package field_type contains auto-generated files. DO NOT MODIFY

Package field_type 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 {
	FieldValue  func(string) *field_value.Client
	FieldValues *field_values.Client
	// contains filtered or unexported fields
}

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

func New

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

New creates a new instance of the field type 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-type#delete-a-fieldtype-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-type#delete-a-fieldtype-resource for more details

func (Client) Fetch

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

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

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

func (Client) Update

Update modifies a field type resource See https://www.twilio.com/docs/autopilot/api/field-type#update-a-fieldtype-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 *UpdateFieldTypeInput) (*UpdateFieldTypeResponse, error)

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

type ClientProperties

type ClientProperties struct {
	AssistantSid string
	Sid          string
}

ClientProperties are the properties required to manage the field type resources

type FetchFieldTypeResponse

type FetchFieldTypeResponse struct {
	AccountSid   string     `json:"account_sid"`
	AssistantSid string     `json:"assistant_sid"`
	DateCreated  time.Time  `json:"date_created"`
	DateUpdated  *time.Time `json:"date_updated,omitempty"`
	FriendlyName *string    `json:"friendly_name,omitempty"`
	Sid          string     `json:"sid"`
	URL          string     `json:"url"`
	UniqueName   string     `json:"unique_name"`
}

FetchFieldTypeResponse defines the response fields for the retrieved field type

type UpdateFieldTypeInput

type UpdateFieldTypeInput struct {
	FriendlyName *string `form:"FriendlyName,omitempty"`
	UniqueName   *string `form:"UniqueName,omitempty"`
}

UpdateFieldTypeInput defines the input fields for updating a field type

type UpdateFieldTypeResponse

type UpdateFieldTypeResponse struct {
	AccountSid   string     `json:"account_sid"`
	AssistantSid string     `json:"assistant_sid"`
	DateCreated  time.Time  `json:"date_created"`
	DateUpdated  *time.Time `json:"date_updated,omitempty"`
	FriendlyName *string    `json:"friendly_name,omitempty"`
	Sid          string     `json:"sid"`
	URL          string     `json:"url"`
	UniqueName   string     `json:"unique_name"`
}

UpdateFieldTypeResponse defines the response fields for the updated field type

Directories

Path Synopsis
Package field_value contains auto-generated files.
Package field_value contains auto-generated files.
Package field_values contains auto-generated files.
Package field_values contains auto-generated files.

Jump to

Keyboard shortcuts

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