NAME
Twilio::Rest::Trusthub::V1::TrustProducts::TrustProductsEvaluations - The TrustProductsEvaluations resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $trust_products_evaluations = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations->create($policy_sid);
for my $trust_products_evaluations ($client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations->read({}, 20)) {
...
}
my $trust_products_evaluations = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations($sid)->fetch;
DESCRIPTION
This file holds TrustProductsEvaluationsList, TrustProductsEvaluationsPage, TrustProductsEvaluationsContext and TrustProductsEvaluationsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
TrustProductsEvaluationsList
Returned by $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations. See also Twilio::ListResource.
create
my $trust_products_evaluations = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations->create($policy_sid);
Create a new Evaluation. Returns a TrustProductsEvaluationsInstance.
The required values are:
read
my @records = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations->read(\%options, $limit, $page_size);
Retrieve a list of Evaluations associated to the trust_product resource. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations->get_context($sid);
Returns a TrustProductsEvaluationsContext, and makes no request.
TrustProductsEvaluationsPage
A Twilio::Page of TrustProductsEvaluationsInstance objects.
records_key
build_instance
Used by Twilio::Page.
TrustProductsEvaluationsContext
Returned by $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations($sid). It makes no request until one of these methods is called.
fetch
my $trust_products_evaluations = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_evaluations($sid)->fetch;
Fetch specific Evaluation Instance. Returns a TrustProductsEvaluationsInstance.
TrustProductsEvaluationsInstance
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 trust_product resource.
- date_created
-
A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- policy_sid
-
The unique string of a policy that is associated to the trust_product 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. - trust_product_sid
-
The unique string that we created to identify the trust_product resource.
- 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.