trunk

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package trunk contains auto-generated files. DO NOT MODIFY

Package trunk contains auto-generated files. DO NOT MODIFY

Package trunk contains auto-generated files. DO NOT MODIFY

Package trunk 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 {
	OriginationURL  func(string) *origination_url.Client
	OriginationURLs *origination_urls.Client
	PhoneNumber     func(string) *phone_number.Client
	PhoneNumbers    *phone_numbers.Client
	Recording       func() *recording.Client
	// contains filtered or unexported fields
}

Client for managing a specific trunk resource See https://www.twilio.com/docs/sip-trunking/api/trunk-resource for more details

func New

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

New creates a new instance of the trunk client

func (Client) Delete

func (c Client) Delete() error

Delete removes a trunk resource from the account See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#delete-a-trunk-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 trunk resource from the account See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#delete-a-trunk-resource for more details

func (Client) Fetch

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

Fetch retrieves a trunk resource See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#fetch-a-trunk-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) (*FetchTrunkResponse, error)

FetchWithContext retrieves a trunk resource See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#fetch-a-trunk-resource for more details

func (Client) Update

func (c Client) Update(input *UpdateTrunkInput) (*UpdateTrunkResponse, error)

Update modifies a trunk resource See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#update-a-trunk-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 *UpdateTrunkInput) (*UpdateTrunkResponse, error)

UpdateWithContext modifies a trunk resource See https://www.twilio.com/docs/sip-trunking/api/trunk-resource#update-a-trunk-resource for more details

type ClientProperties

type ClientProperties struct {
	Sid string
}

ClientProperties are the properties required to manage the trunk resources

type FetchTrunkRecordingResponse

type FetchTrunkRecordingResponse struct {
	Mode string `json:"mode"`
	Trim string `json:"trim"`
}

type FetchTrunkResponse

type FetchTrunkResponse struct {
	AccountSid             string                      `json:"account_sid"`
	AuthType               *string                     `json:"auth_type,omitempty"`
	AuthTypeSet            *[]string                   `json:"auth_type_set,omitempty"`
	CnamLookupEnabled      bool                        `json:"cnam_lookup_enabled"`
	DateCreated            time.Time                   `json:"date_created"`
	DateUpdated            *time.Time                  `json:"date_updated,omitempty"`
	DisasterRecoveryMethod *string                     `json:"disaster_recovery_method,omitempty"`
	DisasterRecoveryURL    *string                     `json:"disaster_recovery_url,omitempty"`
	DomainName             *string                     `json:"domain_name,omitempty"`
	FriendlyName           *string                     `json:"friendly_name,omitempty"`
	Recording              FetchTrunkRecordingResponse `json:"recording"`
	Secure                 bool                        `json:"secure"`
	Sid                    string                      `json:"sid"`
	TransferMode           string                      `json:"transfer_mode"`
	URL                    string                      `json:"url"`
}

FetchTrunkResponse defines the response fields for the retrieved trunk resource

type UpdateTrunkInput

type UpdateTrunkInput struct {
	CnamLookupEnabled      *bool   `form:"CnamLookupEnabled,omitempty"`
	DisasterRecoveryMethod *string `form:"DisasterRecoveryMethod,omitempty"`
	DisasterRecoveryURL    *string `form:"DisasterRecoveryUrl,omitempty"`
	DomainName             *string `form:"DomainName,omitempty"`
	FriendlyName           *string `form:"FriendlyName,omitempty"`
	Secure                 *bool   `form:"Secure,omitempty"`
	TransferMode           *string `form:"TransferMode,omitempty"`
}

UpdateTrunkInput defines input fields for updating a trunk resource

type UpdateTrunkRecordingResponse

type UpdateTrunkRecordingResponse struct {
	Mode string `json:"mode"`
	Trim string `json:"trim"`
}

type UpdateTrunkResponse

type UpdateTrunkResponse struct {
	AccountSid             string                       `json:"account_sid"`
	AuthType               *string                      `json:"auth_type,omitempty"`
	AuthTypeSet            *[]string                    `json:"auth_type_set,omitempty"`
	CnamLookupEnabled      bool                         `json:"cnam_lookup_enabled"`
	DateCreated            time.Time                    `json:"date_created"`
	DateUpdated            *time.Time                   `json:"date_updated,omitempty"`
	DisasterRecoveryMethod *string                      `json:"disaster_recovery_method,omitempty"`
	DisasterRecoveryURL    *string                      `json:"disaster_recovery_url,omitempty"`
	DomainName             *string                      `json:"domain_name,omitempty"`
	FriendlyName           *string                      `json:"friendly_name,omitempty"`
	Recording              UpdateTrunkRecordingResponse `json:"recording"`
	Secure                 bool                         `json:"secure"`
	Sid                    string                       `json:"sid"`
	TransferMode           string                       `json:"transfer_mode"`
	URL                    string                       `json:"url"`
}

UpdateTrunkResponse defines the response fields for the updated trunk

Directories

Path Synopsis
Package origination_url contains auto-generated files.
Package origination_url contains auto-generated files.
Package origination_urls contains auto-generated files.
Package origination_urls contains auto-generated files.
Package phone_number contains auto-generated files.
Package phone_number contains auto-generated files.
Package phone_numbers contains auto-generated files.
Package phone_numbers contains auto-generated files.
Package recording contains auto-generated files.
Package recording contains auto-generated files.

Jump to

Keyboard shortcuts

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