credential_list

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Overview

Package credential_list contains auto-generated files. DO NOT MODIFY

Package credential_list contains auto-generated files. DO NOT MODIFY

Package credential_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 credential list resource See https://www.twilio.com/docs/sip-trunking/api/credentiallist-resource for more details

func New

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

New creates a new instance of the credential list client

func (Client) Delete

func (c Client) Delete() error

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

func (Client) Fetch

Fetch retrieves a credential 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) (*FetchCredentialListResponse, error)

FetchWithContext retrieves a credential list resource

type ClientProperties

type ClientProperties struct {
	Sid      string
	TrunkSid string
}

ClientProperties are the properties required to manage the credential list resources

type FetchCredentialListResponse

type FetchCredentialListResponse 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"`
}

FetchCredentialListResponse defines the response fields for the retrieved credential list resource

Jump to

Keyboard shortcuts

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