Documentation
¶
Overview ¶
Package public_key contains auto-generated files. DO NOT MODIFY
Package public_key contains auto-generated files. DO NOT MODIFY
Package public_key contains auto-generated files. DO NOT MODIFY
Package public_key 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() (*FetchPublicKeyResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchPublicKeyResponse, error)
- func (c Client) Update(input *UpdatePublicKeyInput) (*UpdatePublicKeyResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdatePublicKeyInput) (*UpdatePublicKeyResponse, error)
- type ClientProperties
- type FetchPublicKeyResponse
- type UpdatePublicKeyInput
- type UpdatePublicKeyResponse
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 public key resource See https://www.twilio.com/docs/iam/credentials/api for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the public key client
func (Client) Delete ¶
Delete removes a public key resource from the account Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) DeleteWithContext ¶
DeleteWithContext removes a public key resource from the account
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchPublicKeyResponse, error)
Fetch retrieves a public key 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) (*FetchPublicKeyResponse, error)
FetchWithContext retrieves a public key resource
func (Client) Update ¶
func (c Client) Update(input *UpdatePublicKeyInput) (*UpdatePublicKeyResponse, error)
Update modifies a public key resource 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 *UpdatePublicKeyInput) (*UpdatePublicKeyResponse, error)
UpdateWithContext modifies a public key resource
type ClientProperties ¶
type ClientProperties struct {
Sid string
}
ClientProperties are the properties required to manage the public key resources
type FetchPublicKeyResponse ¶
type FetchPublicKeyResponse 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"` Sid string `json:"sid"` URL string `json:"url"` }
FetchPublicKeyResponse defines the response fields for the retrieved public key resource
type UpdatePublicKeyInput ¶
type UpdatePublicKeyInput struct {
FriendlyName *string `form:"FriendlyName,omitempty"`
}
UpdatePublicKeyInput defines input fields for updating a public key resource
type UpdatePublicKeyResponse ¶
type UpdatePublicKeyResponse 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"` Sid string `json:"sid"` URL string `json:"url"` }
UpdatePublicKeyResponse defines the response fields for the updated public key resource