vcp

package
v0.1.1-beta Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "vcp",
	Short: "Manage Voice Configuration Packages (Universal Platform)",
}

Cmd is the `band vcp` parent command.

Functions

func BuildAssignBody

func BuildAssignBody(numbers []string) map[string]interface{}

BuildAssignBody builds the bulk assign request body.

func BuildVCPCreateBody

func BuildVCPCreateBody(opts VCPCreateOpts) map[string]interface{}

BuildVCPCreateBody builds the JSON request body for creating a VCP.

func BuildVCPUpdateBody

func BuildVCPUpdateBody(opts VCPUpdateOpts) (map[string]interface{}, error)

BuildVCPUpdateBody builds the PATCH body from update options. Returns an error if no fields are set.

Types

type VCPCreateOpts

type VCPCreateOpts struct {
	Name        string
	Description string
	AppID       string
}

VCPCreateOpts holds the parameters for creating a VCP.

type VCPUpdateOpts

type VCPUpdateOpts struct {
	Name        *string
	Description *string
	AppID       *string
}

VCPUpdateOpts holds optional update fields. A nil pointer means "don't change".

Jump to

Keyboard shortcuts

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