version

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package version contains auto-generated files. DO NOT MODIFY

Package version 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 {
	Content func() *content.Client
	// contains filtered or unexported fields
}

Client for managing a specific function version resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/function-version for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the version client

func (Client) Fetch

func (c Client) Fetch() (*FetchVersionResponse, error)

Fetch retrieves a function version resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/function-version#fetch-a-functionversion-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) (*FetchVersionResponse, error)

FetchWithContext retrieves a function version resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/function-version#fetch-a-functionversion-resource for more details

type ClientProperties

type ClientProperties struct {
	FunctionSid string
	ServiceSid  string
	Sid         string
}

ClientProperties are the properties required to manage the version resources

type FetchVersionResponse

type FetchVersionResponse struct {
	AccountSid  string    `json:"account_sid"`
	DateCreated time.Time `json:"date_created"`
	FunctionSid string    `json:"function_sid"`
	Path        string    `json:"path"`
	ServiceSid  string    `json:"service_sid"`
	Sid         string    `json:"sid"`
	URL         string    `json:"url"`
	Visibility  string    `json:"visibility"`
}

FetchVersionResponse defines the response fields for the retrieved function version

Directories

Path Synopsis
Package content contains auto-generated files.
Package content contains auto-generated files.

Jump to

Keyboard shortcuts

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