configuration

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Overview

Package configuration contains auto-generated files. DO NOT MODIFY

Package configuration contains auto-generated files. DO NOT MODIFY

Package configuration 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 {
	Webhook func() *webhook.Client
	// contains filtered or unexported fields
}

Client for managing conversation configuration

func New

func New(client *client.Client) *Client

New creates a new instance of the configuration client

func (Client) Fetch

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

Fetch retrieves configuration resource 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) (*FetchConfigurationResponse, error)

FetchWithContext retrieves configuration resource

func (Client) Update

Update modifies a configuration resource 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 *UpdateConfigurationInput) (*UpdateConfigurationResponse, error)

UpdateWithContext modifies a configuration resource

type FetchConfigurationResponse

type FetchConfigurationResponse struct {
	AccountSid                 string  `json:"account_sid"`
	DefaultChatServiceSid      string  `json:"default_chat_service_sid"`
	DefaultClosedTimer         *string `json:"default_closed_timer,omitempty"`
	DefaultInactiveTimer       *string `json:"default_inactive_timer,omitempty"`
	DefaultMessagingServiceSid string  `json:"default_messaging_service_sid"`
	URL                        string  `json:"url"`
}

FetchConfigurationResponse defines the response fields for the retrieved configuration

type UpdateConfigurationInput

type UpdateConfigurationInput struct {
	DefaultChatServiceSid      *string `form:"DefaultChatServiceSid,omitempty"`
	DefaultClosedTimer         *string `form:"DefaultClosedTimer,omitempty"`
	DefaultInactiveTimer       *string `form:"DefaultInactiveTimer,omitempty"`
	DefaultMessagingServiceSid *string `form:"DefaultMessagingServiceSid,omitempty"`
}

UpdateConfigurationInput defines input fields for updating a configuration resource

type UpdateConfigurationResponse

type UpdateConfigurationResponse struct {
	AccountSid                 string  `json:"account_sid"`
	DefaultChatServiceSid      string  `json:"default_chat_service_sid"`
	DefaultClosedTimer         *string `json:"default_closed_timer,omitempty"`
	DefaultInactiveTimer       *string `json:"default_inactive_timer,omitempty"`
	DefaultMessagingServiceSid string  `json:"default_messaging_service_sid"`
	URL                        string  `json:"url"`
}

UpdateConfigurationResponse defines the response fields for the updated configuration

Directories

Path Synopsis
Package webhook contains auto-generated files.
Package webhook contains auto-generated files.

Jump to

Keyboard shortcuts

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