NAME

Twilio::Rest::Serverless::V1::Service::Function::FunctionVersion - The FunctionVersion resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $function_version ($client->serverless->v1->services($service_sid)->functions($function_sid)->function_versions->read({}, 20)) {
  ...
}
my $function_version = $client->serverless->v1->services($service_sid)->functions($function_sid)->function_versions($sid)->fetch;

DESCRIPTION

The content of a Function.

This file holds FunctionVersionList, FunctionVersionPage, FunctionVersionContext and FunctionVersionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

FunctionVersionList

Returned by $client->serverless->v1->services($service_sid)->functions($function_sid)->function_versions. See also Twilio::ListResource.

read

my @records = $client->serverless->v1->services($service_sid)->functions($function_sid)->function_versions->read(\%options, $limit, $page_size);

Retrieve a list of all Function Version resources. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->serverless->v1->services($service_sid)->functions($function_sid)->function_versions->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->serverless->v1->services($service_sid)->functions($function_sid)->function_versions->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->serverless->v1->services($service_sid)->functions($function_sid)->function_versions->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->serverless->v1->services($service_sid)->functions($function_sid)->function_versions->get_context($sid);

Returns a FunctionVersionContext, and makes no request.

FunctionVersionPage

A Twilio::Page of FunctionVersionInstance objects.

records_key

build_instance

Used by Twilio::Page.

FunctionVersionContext

Returned by $client->serverless->v1->services($service_sid)->functions($function_sid)->function_versions($sid). It makes no request until one of these methods is called.

fetch

my $function_version = $client->serverless->v1->services($service_sid)->functions($function_sid)->function_versions($sid)->fetch;

Retrieve a specific Function Version resource. Returns a FunctionVersionInstance.

function_version_content

my $context = $object->function_version_content;

See Twilio::Rest::Serverless::V1::Service::Function::FunctionVersion::FunctionVersionContent.

FunctionVersionInstance

See also Twilio::InstanceResource.

It has fetch and function_version_content, which work as they do on the context.

Its fields are:

account_sid

The SID of the Account that created the Function Version resource.

date_created

The date and time in GMT when the Function Version resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

function_sid

The SID of the Function resource that is the parent of the Function Version resource.

No description in the specification.

path

The URL-friendly string by which the Function Version resource can be referenced. It can be a maximum of 255 characters. All paths begin with a forward slash ('/'). If a Function Version creation request is submitted with a path not containing a leading slash, the path will automatically be prepended with one.

service_sid

The SID of the Service that the Function Version resource is associated with.

sid

The unique string that we created to identify the Function Version resource.

url

The absolute URL of the Function Version resource.

visibility

One of public, private or protected.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.