credential_list

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

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

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 {
	Credential  func(string) *credential.Client
	Credentials *credentials.Client
	// contains filtered or unexported fields
}

Client for managing a specific Credential List resource

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

func (Client) Fetch

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

FetchWithContext retrieves a credential list resource See https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource#fetch-a-sip-credentiallist-resource for more details

func (Client) Update

Update modifies a credential list resource See https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource#update-a-sip-credentiallist-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 *UpdateCredentialListInput) (*UpdateCredentialListResponse, error)

UpdateWithContext modifies a credential list resource See https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource#update-a-sip-credentiallist-resource for more details

type ClientProperties

type ClientProperties struct {
	AccountSid string
	Sid        string
}

ClientProperties are the properties required to manage the credential list resources

type FetchCredentialListResponse

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

FetchCredentialListResponse defines the response fields for retrieving a credential list

type UpdateCredentialListInput

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

UpdateCredentialListInput defines input fields for updating a credential list

type UpdateCredentialListResponse

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

UpdateCredentialListResponse defines the response fields for the updated credential list

Directories

Path Synopsis
Package credential contains auto-generated files.
Package credential contains auto-generated files.
Package credentials contains auto-generated files.
Package credentials contains auto-generated files.

Jump to

Keyboard shortcuts

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