Documentation ¶
Overview ¶
Package credential contains auto-generated files. DO NOT MODIFY
Package credential contains auto-generated files. DO NOT MODIFY
Package credential contains auto-generated files. DO NOT MODIFY
Package credential 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() (*FetchCredentialResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchCredentialResponse, error)
- func (c Client) Update(input *UpdateCredentialInput) (*UpdateCredentialResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateCredentialInput) (*UpdateCredentialResponse, error)
- type ClientProperties
- type FetchCredentialResponse
- type UpdateCredentialInput
- type UpdateCredentialResponse
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 resource
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the credential client
func (Client) Delete ¶
Delete removes a SIP credential from the account See https://www.twilio.com/docs/voice/sip/api/sip-credential-resource#delete-a-sip-credential-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 SIP credential from the account See https://www.twilio.com/docs/voice/sip/api/sip-credential-resource#delete-a-sip-credential-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchCredentialResponse, error)
Fetch retrieves a SIP credential resource See https://www.twilio.com/docs/voice/sip/api/sip-credential-resource#fetch-a-sip-credential-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) (*FetchCredentialResponse, error)
FetchWithContext retrieves a SIP credential resource See https://www.twilio.com/docs/voice/sip/api/sip-credential-resource#fetch-a-sip-credential-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateCredentialInput) (*UpdateCredentialResponse, error)
Update modifies a SIP credential resource See https://www.twilio.com/docs/voice/sip/api/sip-credential-resource#update-a-sip-credential-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 *UpdateCredentialInput) (*UpdateCredentialResponse, error)
UpdateWithContext modifies a SIP credential resource See https://www.twilio.com/docs/voice/sip/api/sip-credential-resource#update-a-sip-credential-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the credential resources
type FetchCredentialResponse ¶
type FetchCredentialResponse struct { AccountSid string `json:"account_sid"` CredentialListSid string `json:"credential_list_sid"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` Sid string `json:"sid"` Username string `json:"username"` }
FetchCredentialResponse defines the response fields for retrieving a SIP credential
type UpdateCredentialInput ¶
type UpdateCredentialInput struct {
Password string `validate:"required" form:"Password"`
}
UpdateCredentialInput defines input fields for updating a SIP credential
type UpdateCredentialResponse ¶
type UpdateCredentialResponse struct { AccountSid string `json:"account_sid"` CredentialListSid string `json:"credential_list_sid"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` Sid string `json:"sid"` Username string `json:"username"` }
UpdateCredentialResponse defines the response fields for the updated SIP credential