NAME

Twilio::Rest::FlexApi::V1::Plugin::PluginVersions - The PluginVersions resource

SYNOPSIS

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

my $plugin_versions = $client->flex_api->v1->plugins($plugin_sid)->plugin_versions->create($version, $plugin_url, \%options);
for my $plugin_versions ($client->flex_api->v1->plugins($plugin_sid)->plugin_versions->read({}, 20)) {
  ...
}
my $plugin_versions = $client->flex_api->v1->plugins($plugin_sid)->plugin_versions($sid)->fetch;

DESCRIPTION

This file holds PluginVersionsList, PluginVersionsPage, PluginVersionsContext and PluginVersionsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

PluginVersionsList

Returned by $client->flex_api->v1->plugins($plugin_sid)->plugin_versions. See also Twilio::ListResource.

create

my $plugin_versions = $client->flex_api->v1->plugins($plugin_sid)->plugin_versions->create($version, $plugin_url, \%options);

Returns a PluginVersionsInstance.

The required values are:

$version

The Flex Plugin Version's version.

$plugin_url

The URL of the Flex Plugin Version bundle

The options are:

changelog

The changelog of the Flex Plugin Version.

cli_version

The version of Flex Plugins CLI used to create this plugin

private

Whether this Flex Plugin Version requires authorization.

validate_status

The validation status of the plugin, indicating whether it has been validated

flex_metadata

The Flex-Metadata HTTP request header

read

my @records = $client->flex_api->v1->plugins($plugin_sid)->plugin_versions->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

The options are:

flex_metadata

The Flex-Metadata HTTP request header

stream

my $stream = $client->flex_api->v1->plugins($plugin_sid)->plugin_versions->stream(\%options, $limit, $page_size);

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

page

my $page = $client->flex_api->v1->plugins($plugin_sid)->plugin_versions->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->flex_api->v1->plugins($plugin_sid)->plugin_versions->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->flex_api->v1->plugins($plugin_sid)->plugin_versions->get_context($sid);

Returns a PluginVersionsContext, and makes no request.

PluginVersionsPage

A Twilio::Page of PluginVersionsInstance objects.

records_key

build_instance

Used by Twilio::Page.

PluginVersionsContext

Returned by $client->flex_api->v1->plugins($plugin_sid)->plugin_versions($sid). It makes no request until one of these methods is called.

fetch

my $plugin_versions = $client->flex_api->v1->plugins($plugin_sid)->plugin_versions($sid)->fetch(\%options);

Returns a PluginVersionsInstance.

The options are:

flex_metadata

The Flex-Metadata HTTP request header

PluginVersionsInstance

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 Flex Plugin Version resource and owns this resource.

archived

Whether the Flex Plugin Version is archived. The default value is false.

changelog

A changelog that describes the changes this Flex Plugin Version brings.

date_created

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

plugin_sid

The SID of the Flex Plugin resource this Flex Plugin Version belongs to.

plugin_url

The URL of where the Flex Plugin Version JavaScript bundle is hosted on.

private

Whether the Flex Plugin Version is validated. The default value is false.

sid

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

url

The absolute URL of the Flex Plugin Version resource.

validated

No description in the specification.

version

The unique version of this Flex Plugin Version.

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.