version

package
v0.17.0 Latest Latest
Warning

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

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

Documentation

Overview

Package version contains auto-generated files. DO NOT MODIFY

Package version contains auto-generated files. DO NOT MODIFY

Package version 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 ArchiveVersionResponse added in v0.15.0

type ArchiveVersionResponse struct {
	AccountSid  string    `json:"account_sid"`
	Archived    bool      `json:"archived"`
	Changelog   *string   `json:"changelog,omitempty"`
	DateCreated time.Time `json:"date_created"`
	PluginSid   string    `json:"plugin_sid"`
	PluginURL   string    `json:"plugin_url"`
	Private     bool      `json:"private"`
	Sid         string    `json:"sid"`
	URL         string    `json:"url"`
	Version     string    `json:"version"`
}

ArchiveVersionResponse defines the response fields for the archived plugin version resource

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for managing a specific plugin resource See https://www.twilio.com/docs/flex/developer/plugins/api/plugin for more details This client is currently in beta and subject to change. Please use with caution

func New

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

New creates a new instance of the version client

func (Client) Archive added in v0.15.0

func (c Client) Archive() (*ArchiveVersionResponse, error)

Archive archives a plugin version resource Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information This resource is currently in beta and subject to change. Please use with caution

func (Client) ArchiveWithContext added in v0.15.0

func (c Client) ArchiveWithContext(context context.Context) (*ArchiveVersionResponse, error)

ArchiveWithContext archives a plugin version resource This resource is currently in beta and subject to change. Please use with caution

func (Client) Fetch

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

Fetch retrieves a plugin version resource See https://www.twilio.com/docs/flex/developer/plugins/api/plugin-version#fetch-a-pluginversion-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information This resource is currently in beta and subject to change. Please use with caution

func (Client) FetchWithContext

func (c Client) FetchWithContext(context context.Context) (*FetchVersionResponse, error)

FetchWithContext retrieves a plugin version resource See https://www.twilio.com/docs/flex/developer/plugins/api/plugin-version#fetch-a-pluginversion-resource for more details This resource is currently in beta and subject to change. Please use with caution

type ClientProperties

type ClientProperties struct {
	PluginSid string
	Sid       string
}

ClientProperties are the properties required to manage the version resources

type FetchVersionResponse

type FetchVersionResponse struct {
	AccountSid  string    `json:"account_sid"`
	Archived    bool      `json:"archived"`
	Changelog   *string   `json:"changelog,omitempty"`
	DateCreated time.Time `json:"date_created"`
	PluginSid   string    `json:"plugin_sid"`
	PluginURL   string    `json:"plugin_url"`
	Private     bool      `json:"private"`
	Sid         string    `json:"sid"`
	URL         string    `json:"url"`
	Version     string    `json:"version"`
}

FetchVersionResponse defines the response fields for the retrieved plugin version resource

Jump to

Keyboard shortcuts

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