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 ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchFieldTypeResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchFieldTypeResponse, error)
- func (c Client) Update(input *UpdateFieldTypeInput) (*UpdateFieldTypeResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateFieldTypeInput) (*UpdateFieldTypeResponse, error)
- type ClientProperties
- type FetchFieldTypeResponse
- type UpdateFieldTypeInput
- type UpdateFieldTypeResponse
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 ¶
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 ¶
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 ¶
func (c Client) Update(input *UpdateFieldTypeInput) (*UpdateFieldTypeResponse, error)
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 ¶
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
Source Files ¶
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. |