| 1 | |||
| 2 | package Net::Fastly::Condition; | ||
| 3 | |||
| 4 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 5 | ▶ | use base qw(Net::Fastly::BelongsToServiceAndVersion); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 5 | Net::Fastly::Backend->mk_accessors(qw(service_id name priority statement type)); | |
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | Net::Fastly::Condition - Representation of a condition that can apply to first class objects | ||
| 12 | |||
| 13 | =head1 ACCESSORS | ||
| 14 | |||
| 15 | =head2 service_id | ||
| 16 | |||
| 17 | The id of the service this belongs to. | ||
| 18 | |||
| 19 | =head2 version | ||
| 20 | |||
| 21 | The number of the version this belongs to. | ||
| 22 | |||
| 23 | =head2 name | ||
| 24 | |||
| 25 | The name of the condition | ||
| 26 | |||
| 27 | =head2 statement | ||
| 28 | |||
| 29 | The statement of the condition, should be a varnish if statement line | ||
| 30 | |||
| 31 | =head2 priority | ||
| 32 | |||
| 33 | What order to run them in, higher priority gets executed after lower priority | ||
| 34 | |||
| 35 | =head2 type | ||
| 36 | |||
| 37 | request cache or response | ||
| 38 | |||
| 39 | request has req. object only | ||
| 40 | cache has req. and beresp. | ||
| 41 | response has req. and resp. | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 5 | 1; | |