NAME

Twilio::Rest::Trusthub::V1::Policies - The Policies resource

SYNOPSIS

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

for my $policies ($client->trusthub->v1->policies->read({}, 20)) {
  ...
}
my $policies = $client->trusthub->v1->policies($sid)->fetch;

DESCRIPTION

This file holds PoliciesList, PoliciesPage, PoliciesContext and PoliciesInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

PoliciesList

Returned by $client->trusthub->v1->policies. See also Twilio::ListResource.

read

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

Retrieve a list of all Policys. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->trusthub->v1->policies->stream(\%options, $limit, $page_size);

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

page

my $page = $client->trusthub->v1->policies->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->trusthub->v1->policies->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->trusthub->v1->policies->get_context($sid);

Returns a PoliciesContext, and makes no request.

PoliciesPage

A Twilio::Page of PoliciesInstance objects.

records_key

build_instance

Used by Twilio::Page.

PoliciesContext

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

fetch

my $policies = $client->trusthub->v1->policies($sid)->fetch;

Fetch specific Policy Instance. Returns a PoliciesInstance.

PoliciesInstance

See also Twilio::InstanceResource.

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

Its fields are:

friendly_name

A human-readable description that is assigned to describe the Policy resource. Examples can include Primary Customer profile policy

requirements

The SID of an object that holds the policy information

sid

The unique string that identifies the Policy resource.

url

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