public_key

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

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

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

func (c Client) Delete() error

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

func (c Client) DeleteWithContext(context context.Context) error

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

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

Jump to

Keyboard shortcuts

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