NAME
Twilio::Rest::FlexApi::V1::PluginConfiguration - The PluginConfiguration resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $plugin_configuration = $client->flex_api->v1->plugin_configurations->create($name, \%options);
for my $plugin_configuration ($client->flex_api->v1->plugin_configurations->read({}, 20)) {
...
}
my $plugin_configuration = $client->flex_api->v1->plugin_configurations($sid)->fetch;
DESCRIPTION
This file holds PluginConfigurationList, PluginConfigurationPage, PluginConfigurationContext and PluginConfigurationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
PluginConfigurationList
Returned by $client->flex_api->v1->plugin_configurations. See also Twilio::ListResource.
create
my $plugin_configuration = $client->flex_api->v1->plugin_configurations->create($name, \%options);
Returns a PluginConfigurationInstance.
The required values are:
The options are:
description-
The Flex Plugin Configuration's description.
plugins-
A list of objects that describe the plugin versions included in the configuration. Each object contains the sid of the plugin version. An array reference. A hash or array reference, or a string of JSON.
flex_metadata-
The Flex-Metadata HTTP request header
read
my @records = $client->flex_api->v1->plugin_configurations->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->plugin_configurations->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->flex_api->v1->plugin_configurations->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->flex_api->v1->plugin_configurations->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->flex_api->v1->plugin_configurations->get_context($sid);
Returns a PluginConfigurationContext, and makes no request.
PluginConfigurationPage
A Twilio::Page of PluginConfigurationInstance objects.
records_key
build_instance
Used by Twilio::Page.
PluginConfigurationContext
Returned by $client->flex_api->v1->plugin_configurations($sid). It makes no request until one of these methods is called.
fetch
my $plugin_configuration = $client->flex_api->v1->plugin_configurations($sid)->fetch(\%options);
Returns a PluginConfigurationInstance.
The options are:
flex_metadata-
The Flex-Metadata HTTP request header
plugins
my $list = $object->plugins;
my $context = $object->plugins($plugin_sid);
See Twilio::Rest::FlexApi::V1::PluginConfiguration::ConfiguredPlugin.
PluginConfigurationInstance
See also Twilio::InstanceResource.
It has fetch and plugins, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Flex Plugin Configuration resource and owns this resource.
- archived
-
Whether the Flex Plugin Configuration is archived. The default value is false.
- date_created
-
The date and time in GMT when the Flex Plugin Configuration was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- description
-
The description of the Flex Plugin Configuration resource.
- links
-
No description in the specification.
- name
-
The name of this Flex Plugin Configuration.
- sid
-
The unique string that we created to identify the Flex Plugin Configuration resource.
- url
-
The absolute URL of the Flex Plugin Configuration resource.
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.