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 ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchIpAddressResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchIpAddressResponse, error)
- func (c Client) Update(input *UpdateIpAddressInput) (*UpdateIpAddressResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateIpAddressInput) (*UpdateIpAddressResponse, error)
- type ClientProperties
- type FetchIpAddressResponse
- type UpdateIpAddressInput
- type UpdateIpAddressResponse
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 ¶
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 ¶
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 ¶
func (c Client) Update(input *UpdateIpAddressInput) (*UpdateIpAddressResponse, error)
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 ¶
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