NAME

Twilio::Rest::Serverless::V1::Service::Asset::AssetVersion - The AssetVersion resource

SYNOPSIS

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

for my $asset_version ($client->serverless->v1->services($service_sid)->assets($asset_sid)->asset_versions->read({}, 20)) {
  ...
}
my $asset_version = $client->serverless->v1->services($service_sid)->assets($asset_sid)->asset_versions($sid)->fetch;

DESCRIPTION

The content of an Asset.

This file holds AssetVersionList, AssetVersionPage, AssetVersionContext and AssetVersionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

AssetVersionList

Returned by $client->serverless->v1->services($service_sid)->assets($asset_sid)->asset_versions. See also Twilio::ListResource.

read

my @records = $client->serverless->v1->services($service_sid)->assets($asset_sid)->asset_versions->read(\%options, $limit, $page_size);

Retrieve a list of all Asset Versions. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->serverless->v1->services($service_sid)->assets($asset_sid)->asset_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)->assets($asset_sid)->asset_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)->assets($asset_sid)->asset_versions->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->serverless->v1->services($service_sid)->assets($asset_sid)->asset_versions->get_context($sid);

Returns a AssetVersionContext, and makes no request.

AssetVersionPage

A Twilio::Page of AssetVersionInstance objects.

records_key

build_instance

Used by Twilio::Page.

AssetVersionContext

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

fetch

my $asset_version = $client->serverless->v1->services($service_sid)->assets($asset_sid)->asset_versions($sid)->fetch;

Retrieve a specific Asset Version. Returns a AssetVersionInstance.

AssetVersionInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

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

asset_sid

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

date_created

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

path

The URL-friendly string by which the Asset Version can be referenced. It can be a maximum of 255 characters. All paths begin with a forward slash ('/'). If an Asset 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 Asset Version resource is associated with.

sid

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

url

The absolute URL of the Asset 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.