content

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. 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 function version content resources See https://www.twilio.com/docs/runtime/functions-assets-api/api/function-version/function-version-content for more details

func New

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

New creates a new instance of the content client

func (Client) Fetch

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

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

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

type ClientProperties

type ClientProperties struct {
	FunctionSid string
	ServiceSid  string
	VersionSid  string
}

ClientProperties are the properties required to manage the content resources

type FetchContentResponse

type FetchContentResponse struct {
	AccountSid  string `json:"account_sid"`
	Content     string `json:"content"`
	FunctionSid string `json:"function_sid"`
	ServiceSid  string `json:"service_sid"`
	Sid         string `json:"sid"`
	URL         string `json:"url"`
}

FetchContentResponse defines the response fields for the retrieved function version content

Jump to

Keyboard shortcuts

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