ip_address

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package ip_address contains auto-generated files. DO NOT MODIFY

Package ip_address contains auto-generated files. DO NOT MODIFY

Package ip_address contains auto-generated files. DO NOT MODIFY

Package ip_address 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 Address resource

func New

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

New creates a new instance of the ip address client

func (Client) Delete

func (c Client) Delete() error

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

func (Client) Fetch

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

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

FetchWithContext retrieves a IP address resource See https://www.twilio.com/docs/voice/sip/api/sip-ipaddress-resource#fetch-a-sip-ipaddress-resource for more details

func (Client) Update

Update modifies a IP address resource See https://www.twilio.com/docs/voice/sip/api/sip-ipaddress-resource#update-a-sip-ipaddress-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 *UpdateIpAddressInput) (*UpdateIpAddressResponse, error)

UpdateWithContext modifies a IP address resource See https://www.twilio.com/docs/voice/sip/api/sip-ipaddress-resource#update-a-sip-ipaddress-resource for more details

type ClientProperties

type ClientProperties struct {
	AccountSid             string
	IpAccessControlListSid string
	Sid                    string
}

ClientProperties are the properties required to manage the ip address resources

type FetchIpAddressResponse

type FetchIpAddressResponse struct {
	AccountSid             string             `json:"account_sid"`
	CidrPrefixLength       int                `json:"cidr_prefix_length"`
	DateCreated            utils.RFC2822Time  `json:"date_created"`
	DateUpdated            *utils.RFC2822Time `json:"date_updated,omitempty"`
	FriendlyName           string             `json:"friendly_name"`
	IpAccessControlListSid string             `json:"ip_access_control_list_sid"`
	IpAddress              string             `json:"ip_address"`
	Sid                    string             `json:"sid"`
}

FetchIpAddressResponse defines the response fields for retrieving a IP address

type UpdateIpAddressInput

type UpdateIpAddressInput struct {
	CidrPrefixLength *int    `form:"CidrPrefixLength,omitempty"`
	FriendlyName     *string `form:"FriendlyName,omitempty"`
	IpAddress        *string `form:"IpAddress,omitempty"`
}

UpdateIpAddressInput defines input fields for updating a IP address

type UpdateIpAddressResponse

type UpdateIpAddressResponse struct {
	AccountSid             string             `json:"account_sid"`
	CidrPrefixLength       int                `json:"cidr_prefix_length"`
	DateCreated            utils.RFC2822Time  `json:"date_created"`
	DateUpdated            *utils.RFC2822Time `json:"date_updated,omitempty"`
	FriendlyName           string             `json:"friendly_name"`
	IpAccessControlListSid string             `json:"ip_access_control_list_sid"`
	IpAddress              string             `json:"ip_address"`
	Sid                    string             `json:"sid"`
}

UpdateIpAddressResponse defines the response fields for the updated IP address

Jump to

Keyboard shortcuts

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