NAME

Twilio::Rest::Events::V1::Schema::SchemaVersion - The SchemaVersion resource

SYNOPSIS

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

for my $schema_version ($client->events->v1->schemas($id)->versions->read({}, 20)) {
  ...
}
my $schema_version = $client->events->v1->schemas($id)->versions($schema_version)->fetch;

DESCRIPTION

Version of the Schema

This file holds SchemaVersionList, SchemaVersionPage, SchemaVersionContext and SchemaVersionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

SchemaVersionList

Returned by $client->events->v1->schemas($id)->versions. See also Twilio::ListResource.

read

my @records = $client->events->v1->schemas($id)->versions->read(\%options, $limit, $page_size);

Retrieve a paginated list of versions of the schema. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->events->v1->schemas($id)->versions->stream(\%options, $limit, $page_size);

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

page

my $page = $client->events->v1->schemas($id)->versions->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->events->v1->schemas($id)->versions->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->events->v1->schemas($id)->versions->get_context($schema_version);

Returns a SchemaVersionContext, and makes no request.

SchemaVersionPage

A Twilio::Page of SchemaVersionInstance objects.

records_key

build_instance

Used by Twilio::Page.

SchemaVersionContext

Returned by $client->events->v1->schemas($id)->versions($schema_version). It makes no request until one of these methods is called.

fetch

my $schema_version = $client->events->v1->schemas($id)->versions($schema_version)->fetch;

Fetch a specific schema and version. Returns a SchemaVersionInstance.

SchemaVersionInstance

See also Twilio::InstanceResource.

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

Its fields are:

date_created

The date the schema version was created, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

id

The unique identifier of the schema. Each schema can have multiple versions, that share the same id.

raw

No description in the specification.

schema_version

The version of this schema.

url

The URL of this 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.