origination_url

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Overview

Package origination_url contains auto-generated files. DO NOT MODIFY

Package origination_url contains auto-generated files. DO NOT MODIFY

Package origination_url contains auto-generated files. DO NOT MODIFY

Package origination_url 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 {
	// contains filtered or unexported fields
}

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

func New

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

New creates a new instance of the origination url client

func (Client) Delete

func (c Client) Delete() error

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

func (Client) Fetch

Fetch retrieves an origination url resource See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource#fetch-an-originationurl-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) (*FetchOriginationURLResponse, error)

FetchWithContext retrieves an origination url resource See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource#fetch-an-originationurl-resource for more details

func (Client) Update

Update modifies an origination url resource See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource#update-an-originationurl-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 *UpdateOriginationURLInput) (*UpdateOriginationURLResponse, error)

UpdateWithContext modifies an origination url resource See https://www.twilio.com/docs/sip-trunking/api/originationurl-resource#update-an-originationurl-resource for more details

type ClientProperties

type ClientProperties struct {
	Sid      string
	TrunkSid string
}

ClientProperties are the properties required to manage the origination url resources

type FetchOriginationURLResponse

type FetchOriginationURLResponse struct {
	AccountSid   string     `json:"account_sid"`
	DateCreated  time.Time  `json:"date_created"`
	DateUpdated  *time.Time `json:"date_updated,omitempty"`
	Enabled      bool       `json:"enabled"`
	FriendlyName string     `json:"friendly_name"`
	Priority     int        `json:"priority"`
	Sid          string     `json:"sid"`
	SipURL       string     `json:"sip_url"`
	TrunkSid     string     `json:"trunk_sid"`
	URL          string     `json:"url"`
	Weight       int        `json:"weight"`
}

FetchOriginationURLResponse defines the response fields for the retrieved origination url resource

type UpdateOriginationURLInput

type UpdateOriginationURLInput struct {
	Enabled      *bool   `form:"Enabled,omitempty"`
	FriendlyName *string `form:"FriendlyName,omitempty"`
	Priority     *int    `form:"Priority,omitempty"`
	SipURL       *string `form:"SipUrl,omitempty"`
	Weight       *int    `form:"Weight,omitempty"`
}

UpdateOriginationURLInput defines input fields for updating an origination url resource

type UpdateOriginationURLResponse

type UpdateOriginationURLResponse struct {
	AccountSid   string     `json:"account_sid"`
	DateCreated  time.Time  `json:"date_created"`
	DateUpdated  *time.Time `json:"date_updated,omitempty"`
	Enabled      bool       `json:"enabled"`
	FriendlyName string     `json:"friendly_name"`
	Priority     int        `json:"priority"`
	Sid          string     `json:"sid"`
	SipURL       string     `json:"sip_url"`
	TrunkSid     string     `json:"trunk_sid"`
	URL          string     `json:"url"`
	Weight       int        `json:"weight"`
}

UpdateOriginationURLResponse defines the response fields for the updated origination url

Jump to

Keyboard shortcuts

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