| 1 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | # This file is part of Cloudflare::API. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | # This software is copyright (c) 2026 by Andrew Speer <andrew.speer@isolutions.com.au>. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | # This is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | # the same terms as the Perl 5 programming language system itself. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | # Full license text is available at: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | # <http://dev.perl.org/licenses/> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | package Cloudflare::API; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | # Compiler Pragma | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | 43 | ▶ | use strict qw(vars); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | 43 | ▶ | use vars qw($VERSION); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | 43 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | # External modules | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | 43 | ▶ | use HTTP::API::Core 1.08; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | # Cloudflare::API modules | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | 43 | ▶ | use Cloudflare::API::Error; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | # Version information | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | 43 | $VERSION='1.011'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | # All done. Positive return | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | 43 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | #============================================================================ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | 11 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=15 SCAR=31.5
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | # Resolve credentials and account context from options or environment | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | 11 | my ($class, %opt)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | 11 | ▶ | my $token=exists($opt{'token'}) ? delete($opt{'token'}) : $ENV{'CLOUDFLARE_API_TOKEN'}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | 11 | ▶ | die "token is required\n" unless defined($token)&&!ref($token)&&length($token); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
defined $token and not ref $token and length $token
defined $token and not ref $token
MC/DC0%0/3
defined $token and not ref $token and length $token
defined $token
not ref $token
length $token
Truth table25%1/4
A and not(B) and C
A= defined $tokenB= not ref $tokenC= length $token
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | my $account_id=exists($opt{'account_id'}) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | 11 | ▶ | ? delete($opt{'account_id'}) : $ENV{'CLOUDFLARE_ACCOUNT_ID'}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | 11 | ▶ | die "account_id must be a non-empty scalar\n" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition50%3/6
defined $account_id and ref $account_id || !length($account_id)
ref $account_id or not length $account_id
MC/DC0%0/3
defined $account_id and ref $account_id || !length($account_id)
defined $account_id
ref $account_id
not length $account_id
Truth table50%2/4
A and B or not(C)
A= defined $account_idB= ref $account_idC= not length $account_id
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | if defined($account_id)&&(ref($account_id)||!length($account_id)); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | my $base_url=exists($opt{'base_url'}) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | 11 | ▶ | ? delete($opt{'base_url'}) : 'https://api.cloudflare.com/client/v4'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | 11 | ▶ | die "base_url must be an HTTPS URL\n" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $base_url and $base_url =~ m[\Ahttps://[^/]+(?:/.*)?\z]
MC/DC0%0/2
defined $base_url and $base_url =~ m[\Ahttps://[^/]+(?:/.*)?\z]
defined $base_url
$base_url =~ m[\Ahttps://[^/]+(?:/.*)?\z]
Truth table33%1/3
A and B
A= defined $base_urlB= $base_url =~ m[\Ahttps://[^/]+(?:/.*)?\z]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | unless defined($base_url)&&$base_url=~m{\Ahttps://[^/]+(?:/.*)?\z}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | # Build the HTTP client with bearer authentication | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | 11 | my %core_opt=( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | base_url => $base_url, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | headers => { Authorization => "Bearer $token", Accept => 'application/json' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | retry => { attempts => 1 } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | 11 | foreach my $name (qw(timeout transport retry hooks)) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | 44 | ▶ | $core_opt{$name}=delete($opt{$name}) if exists($opt{$name}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | 11 | die "unknown constructor option: $_\n" foreach sort(keys(%opt)); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | # Retain the account ID for resource methods | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | 11 | my $self=bless({ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | account_id => $account_id, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | core_or => HTTP::API::Core->new(%core_opt) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | }, $class); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | 11 | return $self; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | 0 | ▶ | sub account_id { return $_[0]->{'account_id'} } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
account_id: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | 65 | ▶ | sub response { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
response: called CC=4 SCAR=14.6
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | # Require a relative API path so credentials stay on the configured host | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | 65 | my ($self, $method, $path, %opt)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | 65 | ▶ | die "path must begin with one slash\n" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition50%3/6
defined $path and not ref $path and $path =~ m[\A/(?!/)]
defined $path and not ref $path
MC/DC33%1/3
defined $path and not ref $path and $path =~ m[\A/(?!/)]
defined $path
not ref $path
$path =~ m[\A/(?!/)]
Truth table50%2/4
A and not(B) and C
A= defined $pathB= not ref $pathC= $path =~ m[\A/(?!/)]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | unless defined($path)&&!ref($path)&&$path=~m{\A/(?!/)}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | 64 | return $self->{'core_or'}->request($method, $path, %opt); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | 0 | ▶ | sub raw_request { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
raw_request: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | 0 | my $self=shift(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | 0 | return $self->response(@_); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | 57 | ▶ | sub request { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
request: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | # Unwrap result by default, but allow the full decoded envelope | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | 57 | my ($self, $method, $path, %opt)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | 57 | my $full_response=delete($opt{'full_response'}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | 57 | my $body_hr=$self->request_full($method, $path, %opt); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | 56 | ▶ | return $full_response ? $body_hr : $body_hr->{'result'}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | 61 | ▶ | sub request_full { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
request_full: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | # Parse the Cloudflare envelope and surface reported API failures | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | 61 | my ($self, $method, $path, %opt)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | 61 | my $response_or=$self->response($method, $path, %opt); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | 61 | return $self->decode_response($response_or); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | 100 | ▶ | sub decode_response { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
decode_response: called CC=6 SCAR=18.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | # Decode and validate the Cloudflare response shared by direct requests | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | # and paginated extractors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | 100 | my ($self, $response_or, $body_hr)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | 100 | ▶ | return { success => 1, result => undef } unless $response_or->has_content(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | 99 | ▶ | $body_hr=$response_or->json() unless defined($body_hr); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | 99 | ▶ | die "Cloudflare returned a non-object JSON response\n" unless ref($body_hr) eq 'HASH'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | 99 | ▶ | if (exists($body_hr->{'success'})&&!$body_hr->{'success'}) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
exists $body_hr->{"success"} and not $body_hr->{"success"}
MC/DC50%1/2
exists $body_hr->{"success"} and not $body_hr->{"success"}
exists $body_hr->{"success"}
not $body_hr->{"success"}
Truth table66%2/3
A and not(B)
A= exists $body_hr->{"success"}B= not $body_hr->{"success"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | die Cloudflare::API::Error->new( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | response => $response_or, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | errors => $body_hr->{'errors'}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | 2 | messages => $body_hr->{'messages'} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | 97 | return $body_hr; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | 17 | ▶ | sub pagination { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
pagination: called CC=21 SCAR=34.2
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | # Configure the Core iterator while retaining Cloudflare validation and | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | # the endpoint's result and continuation shapes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | 17 | my ($self, $path, %opt)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | 17 | ▶ | die "path must begin with one slash\n" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
defined $path and not ref $path and $path =~ m[\A/(?!/)]
defined $path and not ref $path
MC/DC0%0/3
defined $path and not ref $path and $path =~ m[\A/(?!/)]
defined $path
not ref $path
$path =~ m[\A/(?!/)]
Truth table25%1/4
A and not(B) and C
A= defined $pathB= not ref $pathC= $path =~ m[\A/(?!/)]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | unless defined($path)&&!ref($path)&&$path=~m{\A/(?!/)}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | 17 | ▶ | my $mode=delete($opt{'mode'}) || 'page'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
delete $opt{'mode'} || 'page'
MC/DC0%0/1
delete $opt{'mode'} || 'page'
delete $opt{'mode'}
Truth table50%1/2
A
A= delete $opt{'mode'}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | 17 | ▶ | die "unsupported Cloudflare pagination mode: $mode\n" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | unless $mode=~/\A(?:page|cursor|single)\z/; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | 17 | ▶ | my $items_path=delete($opt{'items'}) || 'result'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%2/2
delete $opt{'items'} || 'result'
MC/DC100%1/1
delete $opt{'items'} || 'result'
delete $opt{'items'}
Truth table100%2/2
A
A= delete $opt{'items'}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | 17 | ▶ | my $next_path=delete($opt{'next'}) || 'result_info.cursor'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
delete $opt{'next'} || 'result_info.cursor'
MC/DC0%0/1
delete $opt{'next'} || 'result_info.cursor'
delete $opt{'next'}
Truth table50%1/2
A
A= delete $opt{'next'}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | 17 | ▶ | my $page_param=delete($opt{'page_param'}) || 'page'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
delete $opt{'page_param'} || 'page'
MC/DC0%0/1
delete $opt{'page_param'} || 'page'
delete $opt{'page_param'}
Truth table50%1/2
A
A= delete $opt{'page_param'}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | 17 | ▶ | my $page_size_param=delete($opt{'page_size_param'}) || 'per_page'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%2/2
delete $opt{'page_size_param'} || 'per_page'
MC/DC100%1/1
delete $opt{'page_size_param'} || 'per_page'
delete $opt{'page_size_param'}
Truth table100%2/2
A
A= delete $opt{'page_size_param'}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | 17 | ▶ | my $cursor_param=delete($opt{'cursor_param'}) || 'cursor'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
delete $opt{'cursor_param'} || 'cursor'
MC/DC0%0/1
delete $opt{'cursor_param'} || 'cursor'
delete $opt{'cursor_param'}
Truth table50%1/2
A
A= delete $opt{'cursor_param'}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | 17 | ▶ | my $query_hr=delete($opt{'query'}) || {}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%2/2
delete $opt{'query'} || {}
MC/DC100%1/1
delete $opt{'query'} || {}
delete $opt{'query'}
Truth table100%2/2
A
A= delete $opt{'query'}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | 17 | ▶ | my $request_hr=delete($opt{'request'}) || {}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
delete $opt{'request'} || {}
MC/DC0%0/1
delete $opt{'request'} || {}
delete $opt{'request'}
Truth table50%1/2
A
A= delete $opt{'request'}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | 17 | ▶ | die "query must be a hash reference\n" unless ref($query_hr) eq 'HASH'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | 17 | ▶ | die "request must be a hash reference\n" unless ref($request_hr) eq 'HASH'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | 17 | die "unknown Cloudflare pagination option: $_\n" foreach sort(keys(%opt)); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | 17 | my %query=%$query_hr; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | 20 | ▶ | my $items_cr=sub { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | 20 | my ($body_hr, $response_or)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 190 | 20 | $body_hr=$self->decode_response($response_or, $body_hr); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | 19 | return $self->response_value($body_hr, $items_path); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 192 | 17 | }; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 193 | 17 | my %page_opt=( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 194 | items => $items_cr, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 195 | query => \%query, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 196 | request => $request_hr, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 197 | response_aware_extractors => 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 198 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 199 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 200 | 17 | ▶ | if ($mode=~/\A(?:cursor|single)\z/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 201 | 10 | $page_opt{'mode'}='cursor'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 202 | 10 | ▶ | if ($mode eq 'cursor') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 203 | 2 | $page_opt{'cursor_param'}=$cursor_param; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 204 | $page_opt{'cursor'}=delete($query{$cursor_param}) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 205 | 2 | ▶ | if exists($query{$cursor_param}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 206 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 207 | 11 | ▶ | $page_opt{'next'}=sub { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 208 | 11 | my ($body_hr, $response_or)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 209 | 11 | $body_hr=$self->decode_response($response_or, $body_hr); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 210 | 11 | ▶ | return undef if $mode eq 'single'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 211 | 3 | return $self->response_value($body_hr, $next_path); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 212 | 10 | }; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 213 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 214 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 215 | 7 | $page_opt{'mode'}='page'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 216 | 7 | $page_opt{'page_param'}=$page_param; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 217 | $page_opt{'start_page'}=delete($query{$page_param}) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 218 | 7 | ▶ | if exists($query{$page_param}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 219 | 7 | $page_opt{'page_size_param'}=$page_size_param; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 220 | $page_opt{'page_size'}=delete($query{$page_size_param}) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 221 | 7 | ▶ | if exists($query{$page_size_param}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 222 | 8 | ▶ | $page_opt{'has_more'}=sub { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=10 SCAR=32.2
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 223 | 8 | my ($body_hr, $response_or)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 224 | 8 | $body_hr=$self->decode_response($response_or, $body_hr); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 225 | 8 | my $info_hr=$body_hr->{'result_info'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 226 | 8 | ▶ | if (ref($info_hr) eq 'HASH') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 227 | return $info_hr->{'page'}<$info_hr->{'total_pages'} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 228 | 6 | ▶ | if defined($info_hr->{'page'})&&defined($info_hr->{'total_pages'}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $info_hr->{"page"} and defined $info_hr->{"total_pages"}
MC/DC0%0/2
defined $info_hr->{"page"} and defined $info_hr->{"total_pages"}
defined $info_hr->{"page"}
defined $info_hr->{"total_pages"}
Truth table33%1/3
A and B
A= defined $info_hr->{"page"}B= defined $info_hr->{"total_pages"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 229 | 0 | ▶ | if (defined($info_hr->{'page'})&&defined($info_hr->{'per_page'})&& | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/9
defined $info_hr->{"page"} and defined $info_hr->{"per_page"} and defined $info_hr->{"total_count"} and $info_hr->{"per_page"} > 0
defined $info_hr->{"page"} and defined $info_hr->{"per_page"} and defined $info_hr->{"total_count"}
defined $info_hr->{"page"} and defined $info_hr->{"per_page"}
MC/DC0%0/4
defined $info_hr->{"page"} and defined $info_hr->{"per_page"} and defined $info_hr->{"total_count"} and $info_hr->{"per_page"} > 0
defined $info_hr->{"page"}
defined $info_hr->{"per_page"}
defined $info_hr->{"total_count"}
$info_hr->{"per_page"} > 0
Truth table0%0/5
A and B and C and D
A= defined $info_hr->{"page"}B= defined $info_hr->{"per_page"}C= defined $info_hr->{"total_count"}D= $info_hr->{"per_page"} > 0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 230 | defined($info_hr->{'total_count'})&&$info_hr->{'per_page'}>0) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 231 | return $info_hr->{'page'}*$info_hr->{'per_page'}< | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 232 | 0 | $info_hr->{'total_count'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 233 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 234 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 235 | 2 | my $items_ar=$self->response_value($body_hr, $items_path); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 236 | 2 | ▶ | return ref($items_ar) eq 'ARRAY'&&@$items_ar ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
ref $items_ar eq "ARRAY" and @$items_ar
MC/DC50%1/2
ref $items_ar eq "ARRAY" and @$items_ar
ref $items_ar eq "ARRAY"
@$items_ar
Truth table66%2/3
A and B
A= ref $items_ar eq "ARRAY"B= @$items_ar
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 237 | 7 | }; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 238 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 239 | 17 | return $self->{'core_or'}->paginate($path, %page_opt); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 240 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 241 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 242 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 243 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 244 | 24 | ▶ | sub response_value { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
response_value: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 245 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 246 | 24 | my ($self, $body_hr, $path)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 247 | 24 | my $value_ref=$body_hr; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 248 | 24 | foreach my $part (split(/\./, $path)) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 249 | 34 | ▶ | return undef unless ref($value_ref) eq 'HASH'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 250 | 34 | $value_ref=$value_ref->{$part}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 251 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 252 | 24 | return $value_ref; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 253 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 254 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 255 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 256 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 257 | 67 | ▶ | sub account_path { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
account_path: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 258 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 259 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 260 | # Encode each account-scoped path component separately | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 261 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 262 | 67 | my ($self, @part)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 263 | 67 | ▶ | die "account_id is required for this operation\n" unless defined($self->{'account_id'}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 264 | 67 | return '/accounts/'.join('/', map { $self->segment($_) } ($self->{'account_id'}, @part)); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 265 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 266 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 267 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 268 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 269 | 300 | ▶ | sub segment { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
segment: called CC=5 SCAR=18.1
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 270 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 271 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 272 | # Percent-encode UTF-8 bytes, preserving only unreserved URL characters | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 273 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 274 | 300 | my ($self, $value)=@_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 275 | 300 | ▶ | die "path segment must be a non-empty scalar\n" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
defined $value and not ref $value and length $value
defined $value and not ref $value
MC/DC0%0/3
defined $value and not ref $value and length $value
defined $value
not ref $value
length $value
Truth table25%1/4
A and not(B) and C
A= defined $valueB= not ref $valueC= length $value
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 276 | unless defined($value)&&!ref($value)&&length($value); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 277 | 300 | my $bytes="$value"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 278 | 300 | ▶ | utf8::encode($bytes) if utf8::is_utf8($bytes); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 279 | 300 | $bytes=~s/([^A-Za-z0-9._~-])/sprintf('%%%02X', ord($1))/ge; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 280 | 300 | return $bytes; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 281 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 282 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 283 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 284 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 285 | # Load resource modules only when their accessor is used | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 286 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 287 | 30 | ▶ | sub workers { require Cloudflare::API::Workers; return Cloudflare::API::Workers->new($_[0]) } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
workers: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 288 | 4 | ▶ | sub r2 { require Cloudflare::API::R2; return Cloudflare::API::R2->new($_[0]) } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
r2: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 289 | 7 | ▶ | sub kv { require Cloudflare::API::KV; return Cloudflare::API::KV->new($_[0]) } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
kv: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 290 | 5 | ▶ | sub d1 { require Cloudflare::API::D1; return Cloudflare::API::D1->new($_[0]) } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
d1: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 291 | 5 | ▶ | sub queues { require Cloudflare::API::Queues; return Cloudflare::API::Queues->new($_[0]) } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
queues: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 292 | 4 | ▶ | sub hyperdrive { require Cloudflare::API::Hyperdrive; return Cloudflare::API::Hyperdrive->new($_[0]) } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
hyperdrive: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 293 | 4 | ▶ | sub secrets_store { require Cloudflare::API::SecretsStore; return Cloudflare::API::SecretsStore->new($_[0]) } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
secrets_store: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 294 | 1 | ▶ | sub accounts { require Cloudflare::API::Accounts; return Cloudflare::API::Accounts->new($_[0]) } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
accounts: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 295 | 5 | ▶ | sub zones { require Cloudflare::API::Zones; return Cloudflare::API::Zones->new($_[0]) } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
zones: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 296 | __END__ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||