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: 6 Imported by: 1

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

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 {
	IpAddress   func(string) *ip_address.Client
	IpAddresses *ip_addresses.Client
	// contains filtered or unexported fields
}

Client for managing a specific IP Access Control List resource

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 control access list from the account See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource#delete-a-sip-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 control access list from the account See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource#delete-a-sip-ipaccesscontrollist-resource for more details

func (Client) Fetch

Fetch retrieves a IP control access list resource See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource#fetch-a-sip-ipaccesscontrollist-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) (*FetchIpAccessControlListResponse, error)

FetchWithContext retrieves a IP control access list resource See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource#fetch-a-sip-ipaccesscontrollist-resource for more details

func (Client) Update

Update modifies a IP control access list resource See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource#update-a-sip-ipaccesscontrollist-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) UpdateWithContext

UpdateWithContext modifies a IP control access list resource See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource#update-a-sip-ipaccesscontrollist-resource for more details

type ClientProperties

type ClientProperties struct {
	AccountSid string
	Sid        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  utils.RFC2822Time  `json:"date_created"`
	DateUpdated  *utils.RFC2822Time `json:"date_updated,omitempty"`
	FriendlyName string             `json:"friendly_name"`
	Sid          string             `json:"sid"`
}

FetchIpAccessControlListResponse defines the response fields for retrieving a credential list

type UpdateIpAccessControlListInput

type UpdateIpAccessControlListInput struct {
	FriendlyName string `validate:"required" form:"FriendlyName"`
}

UpdateIpAccessControlListInput defines input fields for updating a IP control access list

type UpdateIpAccessControlListResponse

type UpdateIpAccessControlListResponse struct {
	AccountSid   string             `json:"account_sid"`
	DateCreated  utils.RFC2822Time  `json:"date_created"`
	DateUpdated  *utils.RFC2822Time `json:"date_updated,omitempty"`
	FriendlyName string             `json:"friendly_name"`
	Sid          string             `json:"sid"`
}

UpdateIpAccessControlListResponse defines the response fields for the updated IP control access list

Directories

Path Synopsis
Package ip_address contains auto-generated files.
Package ip_address contains auto-generated files.
Package ip_addresses contains auto-generated files.
Package ip_addresses contains auto-generated files.

Jump to

Keyboard shortcuts

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