NAME
Twilio::Rest::Numbers::V2::RegulatoryCompliance::Bundle::Evaluation - The Evaluation resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $evaluation = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations->create();
for my $evaluation ($client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations->read({}, 20)) {
...
}
my $evaluation = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations($sid)->fetch;
DESCRIPTION
This file holds EvaluationList, EvaluationPage, EvaluationContext and EvaluationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
EvaluationList
Returned by $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations. See also Twilio::ListResource.
create
my $evaluation = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations->create();
Creates an evaluation for a bundle. Returns a EvaluationInstance.
read
my @records = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations->read(\%options, $limit, $page_size);
Retrieve a list of Evaluations associated to the Bundle resource. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations->get_context($sid);
Returns a EvaluationContext, and makes no request.
EvaluationPage
A Twilio::Page of EvaluationInstance objects.
records_key
build_instance
Used by Twilio::Page.
EvaluationContext
Returned by $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations($sid). It makes no request until one of these methods is called.
fetch
my $evaluation = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->evaluations($sid)->fetch;
Fetch specific Evaluation Instance. Returns a EvaluationInstance.
EvaluationInstance
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 Bundle resource.
- bundle_sid
-
The unique string that we created to identify the Bundle resource.
- date_created
-
A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- regulation_sid
-
The unique string of a regulation that is associated to the Bundle resource.
- results
-
The results of the Evaluation which includes the valid and invalid attributes.
- sid
-
The unique string that identifies the Evaluation resource.
- status
-
One of
compliantornoncompliant. - url
-
No description in the specification.
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.