NAME

Twilio::Rest::Trusthub::V1::TrustProducts::TrustProductsEntityAssignments - The TrustProductsEntityAssignments resource

SYNOPSIS

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

my $trust_products_entity_assignments = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments->create($object_sid);
for my $trust_products_entity_assignments ($client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments->read({}, 20)) {
  ...
}
my $trust_products_entity_assignments = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments($sid)->fetch;
$client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments($sid)->delete;

DESCRIPTION

This file holds TrustProductsEntityAssignmentsList, TrustProductsEntityAssignmentsPage, TrustProductsEntityAssignmentsContext and TrustProductsEntityAssignmentsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

TrustProductsEntityAssignmentsList

Returned by $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments. See also Twilio::ListResource.

create

my $trust_products_entity_assignments = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments->create($object_sid);

Create a new Assigned Item. Returns a TrustProductsEntityAssignmentsInstance.

The required values are:

$object_sid

The SID of an object bag that holds information of the different items.

read

my @records = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments->read(\%options, $limit, $page_size);

Retrieve a list of all Assigned Items for an account. Returns the records as a list, fetching as many pages as it needs.

The options are:

object_type

A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.

stream

my $stream = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments->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_entity_assignments->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_entity_assignments->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_entity_assignments->get_context($sid);

Returns a TrustProductsEntityAssignmentsContext, and makes no request.

TrustProductsEntityAssignmentsPage

A Twilio::Page of TrustProductsEntityAssignmentsInstance objects.

records_key

build_instance

Used by Twilio::Page.

TrustProductsEntityAssignmentsContext

Returned by $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments($sid). It makes no request until one of these methods is called.

fetch

my $trust_products_entity_assignments = $client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments($sid)->fetch;

Fetch specific Assigned Item Instance. Returns a TrustProductsEntityAssignmentsInstance.

delete

$client->trusthub->v1->trust_products($trust_product_sid)->trust_products_entity_assignments($sid)->delete;

Remove an Assignment Item Instance. Returns true.

TrustProductsEntityAssignmentsInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the Item Assignment resource.

date_created

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

object_sid

The SID of an object bag that holds information of the different items.

sid

The unique string that we created to identify the Item Assignment resource.

trust_product_sid

The unique string that we created to identify the TrustProduct resource.

url

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