ip_access_control_list

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Overview

Package ip_access_control_list contains auto-generated files. DO NOT MODIFY

Package ip_access_control_list contains auto-generated files. DO NOT MODIFY

Package ip_access_control_list 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 IP access control list resource See https://www.twilio.com/docs/sip-trunking/api/ipaccesscontrollist-resource for more details

func New

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

New creates a new instance of the ip access control list client

func (Client) Delete

func (c Client) Delete() error

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

func (Client) Fetch

Fetch retrieves a IP access control list 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) (*FetchIpAccessControlListResponse, error)

FetchWithContext retrieves a IP access control list resource

type ClientProperties

type ClientProperties struct {
	Sid      string
	TrunkSid string
}

ClientProperties are the properties required to manage the ip access control list resources

type FetchIpAccessControlListResponse

type FetchIpAccessControlListResponse struct {
	AccountSid   string     `json:"account_sid"`
	DateCreated  time.Time  `json:"date_created"`
	DateUpdated  *time.Time `json:"date_updated,omitempty"`
	FriendlyName string     `json:"friendly_name"`
	Sid          string     `json:"sid"`
	TrunkSid     string     `json:"trunk_sid"`
	URL          string     `json:"url"`
}

FetchIpAccessControlListResponse defines the response fields for the retrieved IP access control list resource

Jump to

Keyboard shortcuts

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