Documentation ¶
Overview ¶
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. 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 See https://www.twilio.com/docs/chat/rest/credential-resource for more details
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 credential resource from the account See https://www.twilio.com/docs/chat/rest/credential-resource#delete-a-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 credential resource from the account See https://www.twilio.com/docs/chat/rest/credential-resource#delete-a-credential-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchCredentialResponse, error)
Fetch retrieves a credential resource See https://www.twilio.com/docs/chat/rest/credential-resource#fetch-a-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 credential resource See https://www.twilio.com/docs/chat/rest/credential-resource#fetch-a-credential-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateCredentialInput) (*UpdateCredentialResponse, error)
Update modifies a credential resource See https://www.twilio.com/docs/chat/rest/credential-resource#update-a-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 credential resource See https://www.twilio.com/docs/chat/rest/credential-resource#update-a-credential-resource for more details
type ClientProperties ¶
type ClientProperties struct {
Sid string
}
ClientProperties are the properties required to manage the credential resources
type FetchCredentialResponse ¶
type FetchCredentialResponse struct { AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FriendlyName *string `json:"friendly_name,omitempty"` Sandbox *string `json:"sandbox,omitempty"` Sid string `json:"sid"` Type string `json:"type"` URL string `json:"url"` }
FetchCredentialResponse defines the response fields for the retrieved credential
type UpdateCredentialInput ¶
type UpdateCredentialInput struct { ApiKey *string `form:"ApiKey,omitempty"` Certificate *string `form:"Certificate,omitempty"` FriendlyName *string `form:"FriendlyName,omitempty"` PrivateKey *string `form:"PrivateKey,omitempty"` Sandbox *bool `form:"Sandbox,omitempty"` Secret *string `form:"Secret,omitempty"` }
UpdateCredentialInput defines the input fields for updating a credential resource
type UpdateCredentialResponse ¶
type UpdateCredentialResponse struct { AccountSid string `json:"account_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FriendlyName *string `json:"friendly_name,omitempty"` Sandbox *string `json:"sandbox,omitempty"` Sid string `json:"sid"` Type string `json:"type"` URL string `json:"url"` }
UpdateCredentialResponse defines the response fields for the updated credential