| 1 | # -*- coding: utf-8 -*- | ||||||||||||||||||||||||||||||||||||||||||
| 2 | # vim: ai ts=4 sts=4 et sw=4 | ||||||||||||||||||||||||||||||||||||||||||
| 3 | # Net::BaruwaAPI Perl bindings for the Baruwa REST API | ||||||||||||||||||||||||||||||||||||||||||
| 4 | # Copyright (C) 2015-2019 Andrew Colin Kissa <andrew@topdog.za.net> | ||||||||||||||||||||||||||||||||||||||||||
| 5 | # | ||||||||||||||||||||||||||||||||||||||||||
| 6 | # This Source Code Form is subject to the terms of the Mozilla Public | ||||||||||||||||||||||||||||||||||||||||||
| 7 | # License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||||||||||||||||||||||||||||||||||||||||||
| 8 | # You can obtain one at http://mozilla.org/MPL/2.0/. | ||||||||||||||||||||||||||||||||||||||||||
| 9 | package Net::BaruwaAPI; | ||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||
| 11 | # use utf8; | ||||||||||||||||||||||||||||||||||||||||||
| 12 | 17 | ▶ | use feature 'state'; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 13 | 17 | ▶ | use JSON::MaybeXS; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 14 | 17 | ▶ | use HTTP::Request; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 15 | 17 | ▶ | use Carp qw/croak/; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 16 | 17 | ▶ | use LWP::UserAgent; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 17 | 17 | ▶ | use Type::Params qw/compile/; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 18 | 17 | ▶ | use Types::Standard qw(Str InstanceOf Object Int Bool Dict Num ArrayRef); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 19 | 17 | ▶ | use Moo; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||||||||||||||||
| 21 | 17 | our $VERSION = '0.05'; | |||||||||||||||||||||||||||||||||||||||||
| 22 | 17 | our $AUTHORITY = 'cpan:DATOPDOG'; | |||||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||||||
| 24 | 17 | my $api_path = '/api/v1'; | |||||||||||||||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||||||||||||||
| 26 | 17 | has 'api_url' => (is => 'ro', isa => Str, predicate => 'has_api_url', required => 1); | |||||||||||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||||||||||||
| 28 | 17 | has 'api_token' => (is => 'ro', isa => Str, predicate => 'has_api_token', required => 1); | |||||||||||||||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||||||||||||||||
| 30 | has 'ua' => ( | ||||||||||||||||||||||||||||||||||||||||||
| 31 | isa => InstanceOf['LWP::UserAgent'], | ||||||||||||||||||||||||||||||||||||||||||
| 32 | is => 'ro', | ||||||||||||||||||||||||||||||||||||||||||
| 33 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 34 | default => sub { | ||||||||||||||||||||||||||||||||||||||||||
| 35 | 0 | ▶ | LWP::UserAgent->new( | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 36 | agent => "BaruwaAPI-Perl", | ||||||||||||||||||||||||||||||||||||||||||
| 37 | cookie_jar => {}, | ||||||||||||||||||||||||||||||||||||||||||
| 38 | keep_alive => 4, | ||||||||||||||||||||||||||||||||||||||||||
| 39 | timeout => 60, | ||||||||||||||||||||||||||||||||||||||||||
| 40 | ); | ||||||||||||||||||||||||||||||||||||||||||
| 41 | }, | ||||||||||||||||||||||||||||||||||||||||||
| 42 | 17 | ); | |||||||||||||||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||||||||||||||||
| 44 | has 'json' => ( | ||||||||||||||||||||||||||||||||||||||||||
| 45 | is => 'ro', | ||||||||||||||||||||||||||||||||||||||||||
| 46 | isa => Object, | ||||||||||||||||||||||||||||||||||||||||||
| 47 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 48 | default => sub { | ||||||||||||||||||||||||||||||||||||||||||
| 49 | 0 | ▶ | return JSON::MaybeXS->new( utf8 => 1 ); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 50 | } | ||||||||||||||||||||||||||||||||||||||||||
| 51 | 17 | ); | |||||||||||||||||||||||||||||||||||||||||
| 52 | |||||||||||||||||||||||||||||||||||||||||||
| 53 | sub _call { | ||||||||||||||||||||||||||||||||||||||||||
| 54 | 0 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_call: not called CC=10 SCAR=47.0
| |||||||||||||||||||||||||||||||||||||||||||
| 55 | 0 | my $request_method = shift @_; | |||||||||||||||||||||||||||||||||||||||||
| 56 | 0 | my $url = shift @_; | |||||||||||||||||||||||||||||||||||||||||
| 57 | 0 | my $data = shift @_; | |||||||||||||||||||||||||||||||||||||||||
| 58 | |||||||||||||||||||||||||||||||||||||||||||
| 59 | 0 | my $ua = $self->ua; | |||||||||||||||||||||||||||||||||||||||||
| 60 | 0 | $ua->default_header('Authorization', "Bearer " . $self->api_token); | |||||||||||||||||||||||||||||||||||||||||
| 61 | 0 | $url = $self->api_url . $url; | |||||||||||||||||||||||||||||||||||||||||
| 62 | |||||||||||||||||||||||||||||||||||||||||||
| 63 | 0 | my $req = HTTP::Request->new( $request_method, $url ); | |||||||||||||||||||||||||||||||||||||||||
| 64 | 0 | $req->accept_decodable; | |||||||||||||||||||||||||||||||||||||||||
| 65 | |||||||||||||||||||||||||||||||||||||||||||
| 66 | 0 | ▶ | if ($data) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 67 | 0 | $req->content($data); | |||||||||||||||||||||||||||||||||||||||||
| 68 | } | ||||||||||||||||||||||||||||||||||||||||||
| 69 | 0 | $req->header( 'Content-Length' => length $req->content ); | |||||||||||||||||||||||||||||||||||||||||
| 70 | |||||||||||||||||||||||||||||||||||||||||||
| 71 | 0 | my $res = $ua->request($req); | |||||||||||||||||||||||||||||||||||||||||
| 72 | |||||||||||||||||||||||||||||||||||||||||||
| 73 | 0 | ▶ | if ($res->header('Content-Type') and $res->header('Content-Type') =~ 'application/json') { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$res->header("Content-Type") and $res->header("Content-Type") =~ m[application/json]
MC/DC0%0/2
$res->header("Content-Type") and $res->header("Content-Type") =~ m[application/json]
$res->header("Content-Type")
$res->header("Content-Type") =~ m[application/json]
Truth table0%0/3
A and B
A= $res->header("Content-Type")B= $res->header("Content-Type") =~ m[application/json]
| |||||||||||||||||||||||||||||||||||||||||||
| 74 | 0 | my $json = $res->decoded_content; | |||||||||||||||||||||||||||||||||||||||||
| 75 | 0 | $data = eval { $self->json->decode($json) }; | |||||||||||||||||||||||||||||||||||||||||
| 76 | 0 | ▶ | unless ($data) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 77 | 0 | ▶ | die unless $res->is_error; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 78 | 0 | $data = { code => $res->code, message => $res->message }; | |||||||||||||||||||||||||||||||||||||||||
| 79 | } | ||||||||||||||||||||||||||||||||||||||||||
| 80 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 81 | 0 | $data = { code => $res->code, message => $res->message }; | |||||||||||||||||||||||||||||||||||||||||
| 82 | } | ||||||||||||||||||||||||||||||||||||||||||
| 83 | |||||||||||||||||||||||||||||||||||||||||||
| 84 | 0 | ▶ | if (not $res->is_success and ref $data eq 'HASH' and exists $data->{message}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/6
not $res->is_success and ref $data eq "HASH" and exists $data->{"message"}
not $res->is_success and ref $data eq "HASH"
MC/DC0%0/3
not $res->is_success and ref $data eq "HASH" and exists $data->{"message"}
not $res->is_success
ref $data eq "HASH"
exists $data->{"message"}
Truth table0%0/4
not(A) and B and C
A= not $res->is_successB= ref $data eq "HASH"C= exists $data->{"message"}
| |||||||||||||||||||||||||||||||||||||||||||
| 85 | 0 | my $message = $data->{message}; | |||||||||||||||||||||||||||||||||||||||||
| 86 | |||||||||||||||||||||||||||||||||||||||||||
| 87 | 0 | ▶ | if (exists $data->{errors}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 88 | 0 | $message .= ': '.join(' - ', map { $_->{message} } grep { exists $_->{message} } @{ $data->{errors} }); | |||||||||||||||||||||||||||||||||||||||||
| 89 | } | ||||||||||||||||||||||||||||||||||||||||||
| 90 | 0 | croak $message; | |||||||||||||||||||||||||||||||||||||||||
| 91 | } | ||||||||||||||||||||||||||||||||||||||||||
| 92 | 0 | return $data; | |||||||||||||||||||||||||||||||||||||||||
| 93 | } | ||||||||||||||||||||||||||||||||||||||||||
| 94 | |||||||||||||||||||||||||||||||||||||||||||
| 95 | |||||||||||||||||||||||||||||||||||||||||||
| 96 | sub get_users { | ||||||||||||||||||||||||||||||||||||||||||
| 97 | 1 | ▶ | state $check = compile(Object); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_users: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 98 | 1 | my ($self) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 99 | 1 | return $self->_call('GET', "$api_path/users"); | |||||||||||||||||||||||||||||||||||||||||
| 100 | } | ||||||||||||||||||||||||||||||||||||||||||
| 101 | |||||||||||||||||||||||||||||||||||||||||||
| 102 | sub get_user { | ||||||||||||||||||||||||||||||||||||||||||
| 103 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_user: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 104 | 1 | my ($self, $userid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 105 | 1 | return $self->_call('GET', "$api_path/users/$userid"); | |||||||||||||||||||||||||||||||||||||||||
| 106 | } | ||||||||||||||||||||||||||||||||||||||||||
| 107 | |||||||||||||||||||||||||||||||||||||||||||
| 108 | sub create_user { | ||||||||||||||||||||||||||||||||||||||||||
| 109 | 1 | ▶ | state $check = compile(Object, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_user: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 110 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 111 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 112 | firstname => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 113 | lastname => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 114 | password1 => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 115 | password2 => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 116 | email => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 117 | timezone => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 118 | account_type => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 119 | domains => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 120 | active => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 121 | send_report => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 122 | spam_checks => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 123 | low_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 124 | high_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 125 | block_macros => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 126 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 127 | 1 | my ($self, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 128 | 1 | return $self->_call('POST', "$api_path/users", $data); | |||||||||||||||||||||||||||||||||||||||||
| 129 | } | ||||||||||||||||||||||||||||||||||||||||||
| 130 | |||||||||||||||||||||||||||||||||||||||||||
| 131 | sub update_user { | ||||||||||||||||||||||||||||||||||||||||||
| 132 | 1 | ▶ | state $check = compile(Object, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_user: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 133 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 134 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 135 | firstname => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 136 | lastname => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 137 | email => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 138 | timezone => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 139 | domains => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 140 | active => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 141 | send_report => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 142 | spam_checks => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 143 | low_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 144 | high_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 145 | block_macros => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 146 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 147 | 1 | my ($self, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 148 | 1 | return $self->_call('PUT', "$api_path/users", $data); | |||||||||||||||||||||||||||||||||||||||||
| 149 | } | ||||||||||||||||||||||||||||||||||||||||||
| 150 | |||||||||||||||||||||||||||||||||||||||||||
| 151 | sub delete_user { | ||||||||||||||||||||||||||||||||||||||||||
| 152 | 1 | ▶ | state $check = compile(Object, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_user: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 153 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 154 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 155 | firstname => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 156 | lastname => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 157 | email => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 158 | timezone => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 159 | domains => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 160 | active => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 161 | send_report => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 162 | spam_checks => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 163 | low_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 164 | high_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 165 | block_macros => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 166 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 167 | 1 | my ($self, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 168 | # my ($self, $data) = @_; | ||||||||||||||||||||||||||||||||||||||||||
| 169 | 1 | return $self->_call('DELETE', "$api_path/users", $data); | |||||||||||||||||||||||||||||||||||||||||
| 170 | } | ||||||||||||||||||||||||||||||||||||||||||
| 171 | |||||||||||||||||||||||||||||||||||||||||||
| 172 | sub set_user_passwd { | ||||||||||||||||||||||||||||||||||||||||||
| 173 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_user_passwd: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 174 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 175 | password1 => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 176 | password2 => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 177 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 178 | 1 | my ($self, $userid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 179 | 1 | return $self->_call('POST', "$api_path/users/chpw/$userid"); | |||||||||||||||||||||||||||||||||||||||||
| 180 | } | ||||||||||||||||||||||||||||||||||||||||||
| 181 | |||||||||||||||||||||||||||||||||||||||||||
| 182 | sub get_aliases { | ||||||||||||||||||||||||||||||||||||||||||
| 183 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_aliases: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 184 | 1 | my ($self, $addressid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 185 | 1 | return $self->_call('GET', "$api_path/aliasaddresses/$addressid"); | |||||||||||||||||||||||||||||||||||||||||
| 186 | } | ||||||||||||||||||||||||||||||||||||||||||
| 187 | |||||||||||||||||||||||||||||||||||||||||||
| 188 | sub create_alias { | ||||||||||||||||||||||||||||||||||||||||||
| 189 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_alias: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 190 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 191 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 192 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 193 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 194 | 1 | my ($self, $userid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 195 | 1 | return $self->_call('POST', "$api_path/aliasaddresses/$userid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 196 | } | ||||||||||||||||||||||||||||||||||||||||||
| 197 | |||||||||||||||||||||||||||||||||||||||||||
| 198 | sub update_alias { | ||||||||||||||||||||||||||||||||||||||||||
| 199 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_alias: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 200 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 201 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 202 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 203 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 204 | 1 | my ($self, $addressid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 205 | 1 | return $self->_call('PUT', "$api_path/aliasaddresses/$addressid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 206 | } | ||||||||||||||||||||||||||||||||||||||||||
| 207 | |||||||||||||||||||||||||||||||||||||||||||
| 208 | sub delete_alias { | ||||||||||||||||||||||||||||||||||||||||||
| 209 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_alias: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 210 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 211 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 212 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 213 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 214 | 1 | my ($self, $addressid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 215 | 1 | return $self->_call('DELETE', "$api_path/aliasaddresses/$addressid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 216 | } | ||||||||||||||||||||||||||||||||||||||||||
| 217 | |||||||||||||||||||||||||||||||||||||||||||
| 218 | sub get_domains { | ||||||||||||||||||||||||||||||||||||||||||
| 219 | 1 | ▶ | state $check = compile(Object); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_domains: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 220 | 1 | my ($self) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 221 | 1 | return $self->_call('GET', "$api_path/domains"); | |||||||||||||||||||||||||||||||||||||||||
| 222 | } | ||||||||||||||||||||||||||||||||||||||||||
| 223 | |||||||||||||||||||||||||||||||||||||||||||
| 224 | sub get_domain { | ||||||||||||||||||||||||||||||||||||||||||
| 225 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_domain: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 226 | 1 | my ($self, $domainid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 227 | 1 | return $self->_call('GET', "$api_path/domains/$domainid"); | |||||||||||||||||||||||||||||||||||||||||
| 228 | } | ||||||||||||||||||||||||||||||||||||||||||
| 229 | |||||||||||||||||||||||||||||||||||||||||||
| 230 | sub get_domain_by_name { | ||||||||||||||||||||||||||||||||||||||||||
| 231 | 1 | ▶ | state $check = compile(Object, Str); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_domain_by_name: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 232 | 1 | my ($self, $domain_name) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 233 | 1 | return $self->_call('GET', "$api_path/domains/byname/$domain_name"); | |||||||||||||||||||||||||||||||||||||||||
| 234 | } | ||||||||||||||||||||||||||||||||||||||||||
| 235 | |||||||||||||||||||||||||||||||||||||||||||
| 236 | sub create_domain { | ||||||||||||||||||||||||||||||||||||||||||
| 237 | 1 | ▶ | state $check = compile(Object, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_domain: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 238 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 239 | name => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 240 | site_url => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 241 | status => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 242 | accept_inbound => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 243 | discard_mail => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 244 | smtp_callout => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 245 | ldap_callout => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 246 | virus_checks => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 247 | virus_checks_at_smtp => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 248 | block_macros => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 249 | spam_checks => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 250 | spam_actions => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 251 | highspam_actions => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 252 | virus_actions => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 253 | low_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 254 | high_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 255 | message_size => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 256 | delivery_mode => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 257 | language => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 258 | timezone => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 259 | report_every => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 260 | organizations => Num | ||||||||||||||||||||||||||||||||||||||||||
| 261 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 262 | 1 | my ($self, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 263 | 1 | return $self->_call('POST', "$api_path/domains", $data); | |||||||||||||||||||||||||||||||||||||||||
| 264 | } | ||||||||||||||||||||||||||||||||||||||||||
| 265 | |||||||||||||||||||||||||||||||||||||||||||
| 266 | sub update_domain { | ||||||||||||||||||||||||||||||||||||||||||
| 267 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_domain: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 268 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 269 | name => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 270 | site_url => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 271 | status => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 272 | accept_inbound => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 273 | discard_mail => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 274 | smtp_callout => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 275 | ldap_callout => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 276 | virus_checks => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 277 | virus_checks_at_smtp => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 278 | block_macros => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 279 | spam_checks => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 280 | spam_actions => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 281 | highspam_actions => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 282 | virus_actions => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 283 | low_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 284 | high_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 285 | message_size => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 286 | delivery_mode => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 287 | language => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 288 | timezone => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 289 | report_every => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 290 | organizations => Num | ||||||||||||||||||||||||||||||||||||||||||
| 291 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 292 | 1 | my ($self, $domainid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 293 | 1 | return $self->_call('PUT', "$api_path/domains/$domainid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 294 | } | ||||||||||||||||||||||||||||||||||||||||||
| 295 | |||||||||||||||||||||||||||||||||||||||||||
| 296 | sub delete_domain { | ||||||||||||||||||||||||||||||||||||||||||
| 297 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_domain: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 298 | 1 | my ($self, $domainid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 299 | 1 | return $self->_call('DELETE', "$api_path/domains/$domainid"); | |||||||||||||||||||||||||||||||||||||||||
| 300 | } | ||||||||||||||||||||||||||||||||||||||||||
| 301 | |||||||||||||||||||||||||||||||||||||||||||
| 302 | sub get_domainaliases { | ||||||||||||||||||||||||||||||||||||||||||
| 303 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_domainaliases: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 304 | 1 | my ($self, $domainid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 305 | 1 | return $self->_call('GET', "$api_path/domainaliases/$domainid"); | |||||||||||||||||||||||||||||||||||||||||
| 306 | } | ||||||||||||||||||||||||||||||||||||||||||
| 307 | |||||||||||||||||||||||||||||||||||||||||||
| 308 | sub get_domainalias { | ||||||||||||||||||||||||||||||||||||||||||
| 309 | 1 | ▶ | state $check = compile(Object, Int, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_domainalias: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 310 | 1 | my ($self, $domainid, $aliasid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 311 | 1 | return $self->_call('GET', "$api_path/domainaliases/$domainid/$aliasid"); | |||||||||||||||||||||||||||||||||||||||||
| 312 | } | ||||||||||||||||||||||||||||||||||||||||||
| 313 | |||||||||||||||||||||||||||||||||||||||||||
| 314 | sub create_domainalias { | ||||||||||||||||||||||||||||||||||||||||||
| 315 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_domainalias: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 316 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 317 | name => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 318 | status => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 319 | accept_inbound => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 320 | domain => Int | ||||||||||||||||||||||||||||||||||||||||||
| 321 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 322 | 1 | my ($self, $domainid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 323 | 1 | return $self->_call('POST', "$api_path/domainaliases/$domainid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 324 | } | ||||||||||||||||||||||||||||||||||||||||||
| 325 | |||||||||||||||||||||||||||||||||||||||||||
| 326 | sub update_domainalias { | ||||||||||||||||||||||||||||||||||||||||||
| 327 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_domainalias: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 328 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 329 | name => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 330 | status => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 331 | accept_inbound => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 332 | domain => Int | ||||||||||||||||||||||||||||||||||||||||||
| 333 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 334 | 1 | my ($self, $domainid, $aliasid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 335 | 1 | return $self->_call('PUT', "$api_path/domainaliases/$domainid/$aliasid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 336 | } | ||||||||||||||||||||||||||||||||||||||||||
| 337 | |||||||||||||||||||||||||||||||||||||||||||
| 338 | sub delete_domainalias { | ||||||||||||||||||||||||||||||||||||||||||
| 339 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_domainalias: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 340 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 341 | name => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 342 | status => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 343 | accept_inbound => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 344 | domain => Int | ||||||||||||||||||||||||||||||||||||||||||
| 345 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 346 | 1 | my ($self, $domainid, $aliasid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 347 | 1 | return $self->_call('DELETE', "$api_path/domainaliases/$domainid/$aliasid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 348 | } | ||||||||||||||||||||||||||||||||||||||||||
| 349 | |||||||||||||||||||||||||||||||||||||||||||
| 350 | sub get_deliveryservers { | ||||||||||||||||||||||||||||||||||||||||||
| 351 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_deliveryservers: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 352 | 1 | my ($self, $domainid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 353 | 1 | return $self->_call('GET', "$api_path/deliveryservers/$domainid"); | |||||||||||||||||||||||||||||||||||||||||
| 354 | } | ||||||||||||||||||||||||||||||||||||||||||
| 355 | |||||||||||||||||||||||||||||||||||||||||||
| 356 | sub get_deliveryserver { | ||||||||||||||||||||||||||||||||||||||||||
| 357 | 1 | ▶ | state $check = compile(Object, Int, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_deliveryserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 358 | 1 | my ($self, $domainid, $serverid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 359 | 1 | return $self->_call('GET', "$api_path/deliveryservers/$domainid/$serverid"); | |||||||||||||||||||||||||||||||||||||||||
| 360 | } | ||||||||||||||||||||||||||||||||||||||||||
| 361 | |||||||||||||||||||||||||||||||||||||||||||
| 362 | sub create_deliveryserver { | ||||||||||||||||||||||||||||||||||||||||||
| 363 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_deliveryserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 364 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 365 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 366 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 367 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 368 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 369 | verification_only => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 370 | enabled => Bool | ||||||||||||||||||||||||||||||||||||||||||
| 371 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 372 | 1 | my ($self, $domainid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 373 | 1 | return $self->_call('POST', "$api_path/deliveryservers/$domainid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 374 | } | ||||||||||||||||||||||||||||||||||||||||||
| 375 | |||||||||||||||||||||||||||||||||||||||||||
| 376 | sub update_deliveryserver { | ||||||||||||||||||||||||||||||||||||||||||
| 377 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_deliveryserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 378 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 379 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 380 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 381 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 382 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 383 | verification_only => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 384 | enabled => Bool | ||||||||||||||||||||||||||||||||||||||||||
| 385 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 386 | 1 | my ($self, $domainid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 387 | 1 | return $self->_call('PUT', "$api_path/deliveryservers/$domainid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 388 | } | ||||||||||||||||||||||||||||||||||||||||||
| 389 | |||||||||||||||||||||||||||||||||||||||||||
| 390 | sub delete_deliveryserver { | ||||||||||||||||||||||||||||||||||||||||||
| 391 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_deliveryserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 392 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 393 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 394 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 395 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 396 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 397 | verification_only => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 398 | enabled => Bool | ||||||||||||||||||||||||||||||||||||||||||
| 399 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 400 | 1 | my ($self, $domainid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 401 | 1 | return $self->_call('DELETE', "$api_path/deliveryservers/$domainid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 402 | } | ||||||||||||||||||||||||||||||||||||||||||
| 403 | |||||||||||||||||||||||||||||||||||||||||||
| 404 | sub get_user_deliveryservers { | ||||||||||||||||||||||||||||||||||||||||||
| 405 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_user_deliveryservers: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 406 | 1 | my ($self, $domainid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 407 | 1 | return $self->_call('GET', "$api_path/userdeliveryservers/$domainid"); | |||||||||||||||||||||||||||||||||||||||||
| 408 | } | ||||||||||||||||||||||||||||||||||||||||||
| 409 | |||||||||||||||||||||||||||||||||||||||||||
| 410 | sub get_user_deliveryserver { | ||||||||||||||||||||||||||||||||||||||||||
| 411 | 1 | ▶ | state $check = compile(Object, Int, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_user_deliveryserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 412 | 1 | my ($self, $domainid, $serverid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 413 | 1 | return $self->_call('GET', "$api_path/userdeliveryservers/$domainid/$serverid"); | |||||||||||||||||||||||||||||||||||||||||
| 414 | } | ||||||||||||||||||||||||||||||||||||||||||
| 415 | |||||||||||||||||||||||||||||||||||||||||||
| 416 | sub create_user_deliveryserver { | ||||||||||||||||||||||||||||||||||||||||||
| 417 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_user_deliveryserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 418 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 419 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 420 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 421 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 422 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 423 | verification_only => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 424 | enabled => Bool | ||||||||||||||||||||||||||||||||||||||||||
| 425 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 426 | 1 | my ($self, $domainid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 427 | 1 | return $self->_call('POST', "$api_path/userdeliveryservers/$domainid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 428 | } | ||||||||||||||||||||||||||||||||||||||||||
| 429 | |||||||||||||||||||||||||||||||||||||||||||
| 430 | sub update_user_deliveryserver { | ||||||||||||||||||||||||||||||||||||||||||
| 431 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_user_deliveryserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 432 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 433 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 434 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 435 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 436 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 437 | verification_only => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 438 | enabled => Bool | ||||||||||||||||||||||||||||||||||||||||||
| 439 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 440 | 1 | my ($self, $domainid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 441 | 1 | return $self->_call('PUT', "$api_path/userdeliveryservers/$domainid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 442 | } | ||||||||||||||||||||||||||||||||||||||||||
| 443 | |||||||||||||||||||||||||||||||||||||||||||
| 444 | sub delete_user_deliveryserver { | ||||||||||||||||||||||||||||||||||||||||||
| 445 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_user_deliveryserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 446 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 447 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 448 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 449 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 450 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 451 | verification_only => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 452 | enabled => Bool | ||||||||||||||||||||||||||||||||||||||||||
| 453 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 454 | 1 | my ($self, $domainid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 455 | 1 | return $self->_call('DELETE', "$api_path/userdeliveryservers/$domainid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 456 | } | ||||||||||||||||||||||||||||||||||||||||||
| 457 | |||||||||||||||||||||||||||||||||||||||||||
| 458 | sub get_domain_smarthosts { | ||||||||||||||||||||||||||||||||||||||||||
| 459 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_domain_smarthosts: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 460 | 1 | my ($self, $domainid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 461 | 1 | return $self->_call('GET', "$api_path/domains/smarthosts/$domainid"); | |||||||||||||||||||||||||||||||||||||||||
| 462 | } | ||||||||||||||||||||||||||||||||||||||||||
| 463 | |||||||||||||||||||||||||||||||||||||||||||
| 464 | sub get_domain_smarthost { | ||||||||||||||||||||||||||||||||||||||||||
| 465 | 2 | ▶ | state $check = compile(Object, Int, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_domain_smarthost: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 466 | 2 | my ($self, $domainid, $serverid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 467 | 2 | return $self->_call('GET', "$api_path/domains/smarthosts/$domainid/$serverid"); | |||||||||||||||||||||||||||||||||||||||||
| 468 | } | ||||||||||||||||||||||||||||||||||||||||||
| 469 | |||||||||||||||||||||||||||||||||||||||||||
| 470 | sub create_domain_smarthost { | ||||||||||||||||||||||||||||||||||||||||||
| 471 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_domain_smarthost: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 472 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 473 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 474 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 475 | password => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 476 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 477 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 478 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 479 | description => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 480 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 481 | 1 | my ($self, $domainid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 482 | 1 | return $self->_call('POST', "$api_path/domains/smarthosts/$domainid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 483 | } | ||||||||||||||||||||||||||||||||||||||||||
| 484 | |||||||||||||||||||||||||||||||||||||||||||
| 485 | sub update_domain_smarthost { | ||||||||||||||||||||||||||||||||||||||||||
| 486 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_domain_smarthost: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 487 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 488 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 489 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 490 | password => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 491 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 492 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 493 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 494 | description => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 495 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 496 | 1 | my ($self, $domainid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 497 | 1 | return $self->_call('PUT', "$api_path/domains/smarthosts/$domainid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 498 | } | ||||||||||||||||||||||||||||||||||||||||||
| 499 | |||||||||||||||||||||||||||||||||||||||||||
| 500 | sub delete_domain_smarthost { | ||||||||||||||||||||||||||||||||||||||||||
| 501 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_domain_smarthost: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 502 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 503 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 504 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 505 | password => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 506 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 507 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 508 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 509 | description => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 510 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 511 | 1 | my ($self, $domainid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 512 | 1 | return $self->_call('DELETE', "$api_path/domains/smarthosts/$domainid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 513 | } | ||||||||||||||||||||||||||||||||||||||||||
| 514 | |||||||||||||||||||||||||||||||||||||||||||
| 515 | sub get_org_smarthosts { | ||||||||||||||||||||||||||||||||||||||||||
| 516 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_org_smarthosts: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 517 | 1 | my ($self, $orgid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 518 | 1 | return $self->_call('GET', "$api_path/organizations/smarthosts/$orgid"); | |||||||||||||||||||||||||||||||||||||||||
| 519 | } | ||||||||||||||||||||||||||||||||||||||||||
| 520 | |||||||||||||||||||||||||||||||||||||||||||
| 521 | sub get_org_smarthost { | ||||||||||||||||||||||||||||||||||||||||||
| 522 | 2 | ▶ | state $check = compile(Object, Int, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_org_smarthost: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 523 | 2 | my ($self, $orgid, $serverid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 524 | 2 | return $self->_call('GET', "$api_path/organizations/smarthosts/$orgid/$serverid"); | |||||||||||||||||||||||||||||||||||||||||
| 525 | } | ||||||||||||||||||||||||||||||||||||||||||
| 526 | |||||||||||||||||||||||||||||||||||||||||||
| 527 | sub create_org_smarthost { | ||||||||||||||||||||||||||||||||||||||||||
| 528 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_org_smarthost: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 529 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 530 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 531 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 532 | password => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 533 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 534 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 535 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 536 | description => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 537 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 538 | 1 | my ($self, $orgid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 539 | 1 | return $self->_call('POST', "$api_path/organizations/smarthosts/$orgid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 540 | } | ||||||||||||||||||||||||||||||||||||||||||
| 541 | |||||||||||||||||||||||||||||||||||||||||||
| 542 | sub update_org_smarthost { | ||||||||||||||||||||||||||||||||||||||||||
| 543 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_org_smarthost: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 544 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 545 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 546 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 547 | password => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 548 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 549 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 550 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 551 | description => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 552 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 553 | 1 | my ($self, $orgid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 554 | 1 | return $self->_call('PUT', "$api_path/organizations/smarthosts/$orgid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 555 | } | ||||||||||||||||||||||||||||||||||||||||||
| 556 | |||||||||||||||||||||||||||||||||||||||||||
| 557 | sub delete_org_smarthost { | ||||||||||||||||||||||||||||||||||||||||||
| 558 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_org_smarthost: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 559 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 560 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 561 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 562 | password => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 563 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 564 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 565 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 566 | description => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 567 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 568 | 1 | my ($self, $orgid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 569 | 1 | return $self->_call('DELETE', "$api_path/organizations/smarthosts/$orgid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 570 | } | ||||||||||||||||||||||||||||||||||||||||||
| 571 | |||||||||||||||||||||||||||||||||||||||||||
| 572 | sub get_fallbackservers { | ||||||||||||||||||||||||||||||||||||||||||
| 573 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_fallbackservers: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 574 | 1 | my ($self, $orgid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 575 | 1 | return $self->_call('GET', "$api_path/fallbackservers/$orgid"); | |||||||||||||||||||||||||||||||||||||||||
| 576 | } | ||||||||||||||||||||||||||||||||||||||||||
| 577 | |||||||||||||||||||||||||||||||||||||||||||
| 578 | sub get_fallbackserver { | ||||||||||||||||||||||||||||||||||||||||||
| 579 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_fallbackserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 580 | 1 | my ($self, $serverid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 581 | 1 | return $self->_call('GET', "$api_path/fallbackservers/$serverid"); | |||||||||||||||||||||||||||||||||||||||||
| 582 | } | ||||||||||||||||||||||||||||||||||||||||||
| 583 | |||||||||||||||||||||||||||||||||||||||||||
| 584 | sub create_fallbackserver { | ||||||||||||||||||||||||||||||||||||||||||
| 585 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_fallbackserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 586 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 587 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 588 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 589 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 590 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 591 | verification_only => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 592 | enabled => Bool | ||||||||||||||||||||||||||||||||||||||||||
| 593 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 594 | 1 | my ($self, $orgid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 595 | 1 | return $self->_call('POST', "$api_path/fallbackservers/$orgid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 596 | } | ||||||||||||||||||||||||||||||||||||||||||
| 597 | |||||||||||||||||||||||||||||||||||||||||||
| 598 | sub update_fallbackserver { | ||||||||||||||||||||||||||||||||||||||||||
| 599 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_fallbackserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 600 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 601 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 602 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 603 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 604 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 605 | verification_only => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 606 | enabled => Bool | ||||||||||||||||||||||||||||||||||||||||||
| 607 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 608 | 1 | my ($self, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 609 | 1 | return $self->_call('PUT', "$api_path/fallbackservers/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 610 | } | ||||||||||||||||||||||||||||||||||||||||||
| 611 | |||||||||||||||||||||||||||||||||||||||||||
| 612 | sub delete_fallbackserver { | ||||||||||||||||||||||||||||||||||||||||||
| 613 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_fallbackserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 614 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 615 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 616 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 617 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 618 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 619 | verification_only => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 620 | enabled => Bool | ||||||||||||||||||||||||||||||||||||||||||
| 621 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 622 | 1 | my ($self, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 623 | 1 | return $self->_call('DELETE', "$api_path/fallbackservers/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 624 | } | ||||||||||||||||||||||||||||||||||||||||||
| 625 | |||||||||||||||||||||||||||||||||||||||||||
| 626 | sub get_authservers { | ||||||||||||||||||||||||||||||||||||||||||
| 627 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_authservers: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 628 | 1 | my ($self, $domainid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 629 | 1 | return $self->_call('GET', "$api_path/authservers/$domainid"); | |||||||||||||||||||||||||||||||||||||||||
| 630 | } | ||||||||||||||||||||||||||||||||||||||||||
| 631 | |||||||||||||||||||||||||||||||||||||||||||
| 632 | sub get_authserver { | ||||||||||||||||||||||||||||||||||||||||||
| 633 | 1 | ▶ | state $check = compile(Object, Int, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_authserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 634 | 1 | my ($self, $domainid, $serverid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 635 | 1 | return $self->_call('GET', "$api_path/authservers/$domainid/$serverid"); | |||||||||||||||||||||||||||||||||||||||||
| 636 | } | ||||||||||||||||||||||||||||||||||||||||||
| 637 | |||||||||||||||||||||||||||||||||||||||||||
| 638 | sub create_authserver { | ||||||||||||||||||||||||||||||||||||||||||
| 639 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_authserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 640 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 641 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 642 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 643 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 644 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 645 | split_address => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 646 | user_map_template => Str | ||||||||||||||||||||||||||||||||||||||||||
| 647 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 648 | 1 | my ($self, $domainid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 649 | 1 | return $self->_call('POST', "$api_path/authservers/$domainid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 650 | } | ||||||||||||||||||||||||||||||||||||||||||
| 651 | |||||||||||||||||||||||||||||||||||||||||||
| 652 | sub update_authserver { | ||||||||||||||||||||||||||||||||||||||||||
| 653 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_authserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 654 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 655 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 656 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 657 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 658 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 659 | split_address => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 660 | user_map_template => Str | ||||||||||||||||||||||||||||||||||||||||||
| 661 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 662 | 1 | my ($self, $domainid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 663 | 1 | return $self->_call('PUT', "$api_path/authservers/$domainid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 664 | } | ||||||||||||||||||||||||||||||||||||||||||
| 665 | |||||||||||||||||||||||||||||||||||||||||||
| 666 | sub delete_authserver { | ||||||||||||||||||||||||||||||||||||||||||
| 667 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_authserver: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 668 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 669 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 670 | protocol => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 671 | port => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 672 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 673 | split_address => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 674 | user_map_template => Str | ||||||||||||||||||||||||||||||||||||||||||
| 675 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 676 | 1 | my ($self, $domainid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 677 | 1 | return $self->_call('DELETE', "$api_path/authservers/$domainid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 678 | } | ||||||||||||||||||||||||||||||||||||||||||
| 679 | |||||||||||||||||||||||||||||||||||||||||||
| 680 | sub get_ldapsettings { | ||||||||||||||||||||||||||||||||||||||||||
| 681 | 1 | ▶ | state $check = compile(Object, Int, Int, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_ldapsettings: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 682 | 1 | my ($self, $domainid, $serverid, $settingsid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 683 | 1 | return $self->_call('GET', "$api_path/ldapsettings/$domainid/$serverid/$settingsid"); | |||||||||||||||||||||||||||||||||||||||||
| 684 | } | ||||||||||||||||||||||||||||||||||||||||||
| 685 | |||||||||||||||||||||||||||||||||||||||||||
| 686 | sub create_ldapsettings { | ||||||||||||||||||||||||||||||||||||||||||
| 687 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_ldapsettings: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 688 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 689 | basedn => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 690 | nameattribute => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 691 | emailattribute => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 692 | binddn => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 693 | bindpw => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 694 | usetls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 695 | usesearch => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 696 | searchfilter => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 697 | search_scope => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 698 | emailsearchfilter => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 699 | emailsearch_scope => Str | ||||||||||||||||||||||||||||||||||||||||||
| 700 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 701 | 1 | my ($self, $domainid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 702 | 1 | return $self->_call('POST', "$api_path/ldapsettings/$domainid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 703 | } | ||||||||||||||||||||||||||||||||||||||||||
| 704 | |||||||||||||||||||||||||||||||||||||||||||
| 705 | sub update_ldapsettings { | ||||||||||||||||||||||||||||||||||||||||||
| 706 | 1 | ▶ | state $check = compile(Object, Int, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_ldapsettings: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 707 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 708 | basedn => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 709 | nameattribute => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 710 | emailattribute => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 711 | binddn => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 712 | bindpw => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 713 | usetls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 714 | usesearch => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 715 | searchfilter => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 716 | search_scope => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 717 | emailsearchfilter => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 718 | emailsearch_scope => Str | ||||||||||||||||||||||||||||||||||||||||||
| 719 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 720 | 1 | my ($self, $domainid, $serverid, $settingsid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 721 | 1 | return $self->_call('PUT', "$api_path/ldapsettings/$domainid/$serverid/$settingsid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 722 | } | ||||||||||||||||||||||||||||||||||||||||||
| 723 | |||||||||||||||||||||||||||||||||||||||||||
| 724 | sub delete_ldapsettings { | ||||||||||||||||||||||||||||||||||||||||||
| 725 | 1 | ▶ | state $check = compile(Object, Int, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_ldapsettings: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 726 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 727 | basedn => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 728 | nameattribute => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 729 | emailattribute => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 730 | binddn => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 731 | bindpw => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 732 | usetls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 733 | usesearch => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 734 | searchfilter => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 735 | search_scope => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 736 | emailsearchfilter => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 737 | emailsearch_scope => Str | ||||||||||||||||||||||||||||||||||||||||||
| 738 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 739 | 1 | my ($self, $domainid, $serverid, $settingsid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 740 | 1 | return $self->_call('DELETE', "$api_path/ldapsettings/$domainid/$serverid/$settingsid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 741 | } | ||||||||||||||||||||||||||||||||||||||||||
| 742 | |||||||||||||||||||||||||||||||||||||||||||
| 743 | sub get_radiussettings { | ||||||||||||||||||||||||||||||||||||||||||
| 744 | 1 | ▶ | state $check = compile(Object, Int, Int, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_radiussettings: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 745 | 1 | my ($self, $domainid, $serverid, $settingsid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 746 | 1 | return $self->_call('GET', "$api_path/radiussettings/$domainid/$serverid/$settingsid"); | |||||||||||||||||||||||||||||||||||||||||
| 747 | } | ||||||||||||||||||||||||||||||||||||||||||
| 748 | |||||||||||||||||||||||||||||||||||||||||||
| 749 | sub create_radiussettings { | ||||||||||||||||||||||||||||||||||||||||||
| 750 | 1 | ▶ | state $check = compile(Object, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_radiussettings: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 751 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 752 | secret => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 753 | timeout => Int | ||||||||||||||||||||||||||||||||||||||||||
| 754 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 755 | 1 | my ($self, $domainid, $serverid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 756 | 1 | return $self->_call('POST', "$api_path/radiussettings/$domainid/$serverid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 757 | } | ||||||||||||||||||||||||||||||||||||||||||
| 758 | |||||||||||||||||||||||||||||||||||||||||||
| 759 | sub update_radiussettings { | ||||||||||||||||||||||||||||||||||||||||||
| 760 | 1 | ▶ | state $check = compile(Object, Int, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_radiussettings: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 761 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 762 | secret => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 763 | timeout => Int | ||||||||||||||||||||||||||||||||||||||||||
| 764 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 765 | 1 | my ($self, $domainid, $serverid, $settingsid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 766 | 1 | return $self->_call('PUT', "$api_path/radiussettings/$domainid/$serverid/$settingsid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 767 | } | ||||||||||||||||||||||||||||||||||||||||||
| 768 | |||||||||||||||||||||||||||||||||||||||||||
| 769 | sub delete_radiussettings { | ||||||||||||||||||||||||||||||||||||||||||
| 770 | 1 | ▶ | state $check = compile(Object, Int, Int, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_radiussettings: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 771 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 772 | secret => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 773 | timeout => Int | ||||||||||||||||||||||||||||||||||||||||||
| 774 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 775 | 1 | my ($self, $domainid, $serverid, $settingsid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 776 | 1 | return $self->_call('DELETE', "$api_path/radiussettings/$domainid/$serverid/$settingsid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 777 | } | ||||||||||||||||||||||||||||||||||||||||||
| 778 | |||||||||||||||||||||||||||||||||||||||||||
| 779 | sub get_organizations { | ||||||||||||||||||||||||||||||||||||||||||
| 780 | 1 | ▶ | state $check = compile(Object); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_organizations: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 781 | 1 | my ($self) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 782 | 1 | return $self->_call('GET', "$api_path/organizations"); | |||||||||||||||||||||||||||||||||||||||||
| 783 | } | ||||||||||||||||||||||||||||||||||||||||||
| 784 | |||||||||||||||||||||||||||||||||||||||||||
| 785 | sub get_organization { | ||||||||||||||||||||||||||||||||||||||||||
| 786 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_organization: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 787 | 1 | my ($self, $orgid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 788 | 1 | return $self->_call('GET', "$api_path/organizations/$orgid"); | |||||||||||||||||||||||||||||||||||||||||
| 789 | } | ||||||||||||||||||||||||||||||||||||||||||
| 790 | |||||||||||||||||||||||||||||||||||||||||||
| 791 | sub create_organization { | ||||||||||||||||||||||||||||||||||||||||||
| 792 | 1 | ▶ | state $check = compile(Object, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_organization: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 793 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 794 | name => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 795 | domains => ArrayRef, | ||||||||||||||||||||||||||||||||||||||||||
| 796 | admins => ArrayRef | ||||||||||||||||||||||||||||||||||||||||||
| 797 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 798 | 1 | my ($self, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 799 | 1 | return $self->_call('POST', "$api_path/organizations", $data); | |||||||||||||||||||||||||||||||||||||||||
| 800 | } | ||||||||||||||||||||||||||||||||||||||||||
| 801 | |||||||||||||||||||||||||||||||||||||||||||
| 802 | sub update_organization { | ||||||||||||||||||||||||||||||||||||||||||
| 803 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_organization: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 804 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 805 | name => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 806 | domains => ArrayRef, | ||||||||||||||||||||||||||||||||||||||||||
| 807 | admins => ArrayRef | ||||||||||||||||||||||||||||||||||||||||||
| 808 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 809 | 1 | my ($self, $orgid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 810 | 1 | return $self->_call('PUT', "$api_path/organizations/$orgid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 811 | } | ||||||||||||||||||||||||||||||||||||||||||
| 812 | |||||||||||||||||||||||||||||||||||||||||||
| 813 | sub delete_organization { | ||||||||||||||||||||||||||||||||||||||||||
| 814 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_organization: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 815 | 1 | my ($self, $orgid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 816 | 1 | return $self->_call('DELETE', "$api_path/organizations/$orgid"); | |||||||||||||||||||||||||||||||||||||||||
| 817 | } | ||||||||||||||||||||||||||||||||||||||||||
| 818 | |||||||||||||||||||||||||||||||||||||||||||
| 819 | sub get_relay { | ||||||||||||||||||||||||||||||||||||||||||
| 820 | 1 | ▶ | state $check = compile(Object, Int); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_relay: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 821 | 1 | my ($self, $relayid) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 822 | 1 | return $self->_call('GET', "$api_path/relays/$relayid"); | |||||||||||||||||||||||||||||||||||||||||
| 823 | } | ||||||||||||||||||||||||||||||||||||||||||
| 824 | |||||||||||||||||||||||||||||||||||||||||||
| 825 | sub create_relay { | ||||||||||||||||||||||||||||||||||||||||||
| 826 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
create_relay: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 827 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 828 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 829 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 830 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 831 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 832 | password1 => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 833 | password2 => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 834 | description => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 835 | low_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 836 | high_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 837 | spam_actions => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 838 | highspam_actions => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 839 | block_macros => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 840 | ratelimit => Int | ||||||||||||||||||||||||||||||||||||||||||
| 841 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 842 | 1 | my ($self, $orgid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 843 | 1 | return $self->_call('POST', "$api_path/relays/$orgid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 844 | } | ||||||||||||||||||||||||||||||||||||||||||
| 845 | |||||||||||||||||||||||||||||||||||||||||||
| 846 | sub update_relay { | ||||||||||||||||||||||||||||||||||||||||||
| 847 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_relay: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 848 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 849 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 850 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 851 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 852 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 853 | password1 => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 854 | password2 => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 855 | description => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 856 | low_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 857 | high_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 858 | spam_actions => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 859 | highspam_actions => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 860 | block_macros => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 861 | ratelimit => Int | ||||||||||||||||||||||||||||||||||||||||||
| 862 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 863 | 1 | my ($self, $relayid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 864 | 1 | return $self->_call('PUT', "$api_path/relays/$relayid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 865 | } | ||||||||||||||||||||||||||||||||||||||||||
| 866 | |||||||||||||||||||||||||||||||||||||||||||
| 867 | sub delete_relay { | ||||||||||||||||||||||||||||||||||||||||||
| 868 | 1 | ▶ | state $check = compile(Object, Int, | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete_relay: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 869 | Dict[ | ||||||||||||||||||||||||||||||||||||||||||
| 870 | address => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 871 | username => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 872 | enabled => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 873 | require_tls => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 874 | password1 => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 875 | password2 => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 876 | description => Str, | ||||||||||||||||||||||||||||||||||||||||||
| 877 | low_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 878 | high_score => Num, | ||||||||||||||||||||||||||||||||||||||||||
| 879 | spam_actions => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 880 | highspam_actions => Int, | ||||||||||||||||||||||||||||||||||||||||||
| 881 | block_macros => Bool, | ||||||||||||||||||||||||||||||||||||||||||
| 882 | ratelimit => Int | ||||||||||||||||||||||||||||||||||||||||||
| 883 | ]); | ||||||||||||||||||||||||||||||||||||||||||
| 884 | 1 | my ($self, $relayid, $data) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 885 | 1 | return $self->_call('DELETE', "$api_path/relays/$relayid", $data); | |||||||||||||||||||||||||||||||||||||||||
| 886 | } | ||||||||||||||||||||||||||||||||||||||||||
| 887 | |||||||||||||||||||||||||||||||||||||||||||
| 888 | sub get_status { | ||||||||||||||||||||||||||||||||||||||||||
| 889 | 1 | ▶ | state $check = compile(Object); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_status: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 890 | 1 | my ($self) = $check->(@_); | |||||||||||||||||||||||||||||||||||||||||
| 891 | 1 | return $self->_call('GET', "$api_path/status"); | |||||||||||||||||||||||||||||||||||||||||
| 892 | } | ||||||||||||||||||||||||||||||||||||||||||
| 893 | |||||||||||||||||||||||||||||||||||||||||||
| 894 | 17 | ▶ | no Moo; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 895 | |||||||||||||||||||||||||||||||||||||||||||
| 896 | 17 | 1; | |||||||||||||||||||||||||||||||||||||||||
| 897 | |||||||||||||||||||||||||||||||||||||||||||
| 898 | __END__ | ||||||||||||||||||||||||||||||||||||||||||