Fastly/RateLimiterApi.pm untested

filter: Statementstmt 0.0% 0 / 230 Branchbran 0.0% 0 / 94 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 0.0% 0 / 15 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 354 CC 48 SCAR 52.0
CC
48
Cov
0%
create_rate_limiter
342.0
update_rate_limiter
272.0
list_rate_limiters
56.0
CRAP 181.1
1 =begin comment
2  
3 Fastly API
4  
5 Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
6  
7 The version of the API Spec document: 1.0.0
8 Contact: oss@fastly.com
9  
10 =end comment
11  
12 =cut
13  
14 #
15 # NOTE: This class is auto generated.
16 # Do not edit the class manually.
17 #
18 package WebService::Fastly::RateLimiterApi;
19  
20 require 5.6.0;
21 use strict;
22 use warnings;
23 use utf8;
24 use Exporter;
25 use Carp qw( croak );
26 use Log::Any qw($log);
27  
28 use WebService::Fastly::ApiClient;
29  
30 use base "Class::Data::Inheritable";
31  
32 __PACKAGE__->mk_classdata('method_documentation' => {});
33  
34 sub new {
35 my $class = shift;
36 my $api_client;
37  
38 if ($_[0] && ref $_[0] && ref $_[0] eq 'WebService::Fastly::ApiClient' ) {
39 $api_client = $_[0];
40 } else {
41 $api_client = WebService::Fastly::ApiClient->new(@_);
42 }
43  
44 bless { api_client => $api_client }, $class;
45  
46 }
47  
48  
49 #
50 # create_rate_limiter
51 #
52 # Create a rate limiter
53 #
54 # @param string $service_id Alphanumeric string identifying the service. (required)
55 # @param int $version_id Integer identifying a service version. (required)
56 # @param string $name A human readable name for the rate limiting rule. (optional)
57 # @param string $uri_dictionary_name The name of a Dictionary containing URIs as keys. If not defined or `null`, all origin URIs will be rate limited. (optional)
58 # @param ARRAY[string] $http_methods Array of HTTP methods to apply rate limiting to. (optional)
59 # @param int $rps_limit Upper limit of requests per second allowed by the rate limiter. (optional)
60 # @param int $window_size Number of seconds during which the RPS limit must be exceeded in order to trigger a violation. (optional)
61 # @param ARRAY[string] $client_key Array of VCL variables used to generate a counter key to identify a client. Example variables include `req.http.Fastly-Client-IP`, `req.http.User-Agent`, or a custom header like `req.http.API-Key`. (optional)
62 # @param int $penalty_box_duration Length of time in minutes that the rate limiter is in effect after the initial violation is detected. (optional)
63 # @param string $action The action to take when a rate limiter violation is detected. (optional)
64 # @param string $response_object_name Name of existing response object. Required if `action` is `response_object`. Note that the rate limiter response is only updated to reflect the response object content when saving the rate limiter configuration. (optional)
65 # @param string $logger_type Name of the type of logging endpoint to be used when action is `log_only`. The logging endpoint type is used to determine the appropriate log format to use when emitting log entries. (optional)
66 # @param int $feature_revision Revision number of the rate limiting feature implementation. Defaults to the most recent revision. (optional)
67 {
68 my $params = {
69 'service_id' => {
70 data_type => 'string',
71 description => 'Alphanumeric string identifying the service.',
72 required => '1',
73 },
74 'version_id' => {
75 data_type => 'int',
76 description => 'Integer identifying a service version.',
77 required => '1',
78 },
79 'name' => {
80 data_type => 'string',
81 description => 'A human readable name for the rate limiting rule.',
82 required => '0',
83 },
84 'uri_dictionary_name' => {
85 data_type => 'string',
86 description => 'The name of a Dictionary containing URIs as keys. If not defined or `null`, all origin URIs will be rate limited.',
87 required => '0',
88 },
89 'http_methods' => {
90 data_type => 'ARRAY[string]',
91 description => 'Array of HTTP methods to apply rate limiting to.',
92 required => '0',
93 },
94 'rps_limit' => {
95 data_type => 'int',
96 description => 'Upper limit of requests per second allowed by the rate limiter.',
97 required => '0',
98 },
99 'window_size' => {
100 data_type => 'int',
101 description => 'Number of seconds during which the RPS limit must be exceeded in order to trigger a violation.',
102 required => '0',
103 },
104 'client_key' => {
105 data_type => 'ARRAY[string]',
106 description => 'Array of VCL variables used to generate a counter key to identify a client. Example variables include `req.http.Fastly-Client-IP`, `req.http.User-Agent`, or a custom header like `req.http.API-Key`.',
107 required => '0',
108 },
109 'penalty_box_duration' => {
110 data_type => 'int',
111 description => 'Length of time in minutes that the rate limiter is in effect after the initial violation is detected.',
112 required => '0',
113 },
114 'action' => {
115 data_type => 'string',
116 description => 'The action to take when a rate limiter violation is detected.',
117 required => '0',
118 },
119 'response_object_name' => {
120 data_type => 'string',
121 description => 'Name of existing response object. Required if `action` is `response_object`. Note that the rate limiter response is only updated to reflect the response object content when saving the rate limiter configuration.',
122 required => '0',
123 },
124 'logger_type' => {
125 data_type => 'string',
126 description => 'Name of the type of logging endpoint to be used when action is `log_only`. The logging endpoint type is used to determine the appropriate log format to use when emitting log entries.',
127 required => '0',
128 },
129 'feature_revision' => {
130 data_type => 'int',
131 description => 'Revision number of the rate limiting feature implementation. Defaults to the most recent revision.',
132 required => '0',
133 },
134 };
135 __PACKAGE__->method_documentation->{ 'create_rate_limiter' } = {
136 summary => 'Create a rate limiter',
137 params => $params,
138 returns => 'RateLimiterResponse',
139 };
140 }
141 # @return RateLimiterResponse
142 #
143 sub create_rate_limiter {
144 my ($self, %args) = @_;
145  
146 # verify the required parameter 'service_id' is set
147 unless (exists $args{'service_id'}) {
148 croak("Missing the required parameter 'service_id' when calling create_rate_limiter");
149 }
150  
151 # verify the required parameter 'version_id' is set
152 unless (exists $args{'version_id'}) {
153 croak("Missing the required parameter 'version_id' when calling create_rate_limiter");
154 }
155  
156 # parse inputs
157 my $_resource_path = '/service/{service_id}/version/{version_id}/rate-limiters';
158  
159 my $_method = 'POST';
160 my $query_params = {};
161 my $header_params = {};
162 my $form_params = {};
163  
164 # 'Accept' and 'Content-Type' header
165 my $_header_accept = $self->{api_client}->select_header_accept('application/json');
166 if ($_header_accept) {
167 $header_params->{'Accept'} = $_header_accept;
168 }
169 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/x-www-form-urlencoded');
170  
171 # path params
172 if ( exists $args{'service_id'}) {
173 my $_base_variable = "{" . "service_id" . "}";
174 my $_base_value = $self->{api_client}->to_path_value($args{'service_id'});
175 $_resource_path =~ s/$_base_variable/$_base_value/g;
176 }
177  
178 # path params
179 if ( exists $args{'version_id'}) {
180 my $_base_variable = "{" . "version_id" . "}";
181 my $_base_value = $self->{api_client}->to_path_value($args{'version_id'});
182 $_resource_path =~ s/$_base_variable/$_base_value/g;
183 }
184  
185 # form params
186 if ( exists $args{'name'} ) {
187 $form_params->{'name'} = $self->{api_client}->to_form_value($args{'name'});
188 }
189  
190 # form params
191 if ( exists $args{'uri_dictionary_name'} ) {
192 $form_params->{'uri_dictionary_name'} = $self->{api_client}->to_form_value($args{'uri_dictionary_name'});
193 }
194  
195 # form params
196 if ( exists $args{'http_methods'} ) {
197 $form_params->{'http_methods'} = $self->{api_client}->to_form_value($args{'http_methods'});
198 }
199  
200 # form params
201 if ( exists $args{'rps_limit'} ) {
202 $form_params->{'rps_limit'} = $self->{api_client}->to_form_value($args{'rps_limit'});
203 }
204  
205 # form params
206 if ( exists $args{'window_size'} ) {
207 $form_params->{'window_size'} = $self->{api_client}->to_form_value($args{'window_size'});
208 }
209  
210 # form params
211 if ( exists $args{'client_key'} ) {
212 $form_params->{'client_key'} = $self->{api_client}->to_form_value($args{'client_key'});
213 }
214  
215 # form params
216 if ( exists $args{'penalty_box_duration'} ) {
217 $form_params->{'penalty_box_duration'} = $self->{api_client}->to_form_value($args{'penalty_box_duration'});
218 }
219  
220 # form params
221 if ( exists $args{'action'} ) {
222 $form_params->{'action'} = $self->{api_client}->to_form_value($args{'action'});
223 }
224  
225 # form params
226 if ( exists $args{'response_object_name'} ) {
227 $form_params->{'response_object_name'} = $self->{api_client}->to_form_value($args{'response_object_name'});
228 }
229  
230 # form params
231 if ( exists $args{'logger_type'} ) {
232 $form_params->{'logger_type'} = $self->{api_client}->to_form_value($args{'logger_type'});
233 }
234  
235 # form params
236 if ( exists $args{'feature_revision'} ) {
237 $form_params->{'feature_revision'} = $self->{api_client}->to_form_value($args{'feature_revision'});
238 }
239  
240 my $_body_data;
241 # authentication setting, if any
242 my $auth_settings = [qw(token )];
243  
244 # make the API Call
245 my $response = $self->{api_client}->call_api($_resource_path, $_method,
246 $query_params, $form_params,
247 $header_params, $_body_data, $auth_settings);
248 if (!$response) {
249 return;
250 }
251 my $_response_object = $self->{api_client}->deserialize('RateLimiterResponse', $response);
252 return $_response_object;
253 }
254  
255 #
256 # delete_rate_limiter
257 #
258 # Delete a rate limiter
259 #
260 # @param string $rate_limiter_id Alphanumeric string identifying the rate limiter. (required)
261 {
262 my $params = {
263 'rate_limiter_id' => {
264 data_type => 'string',
265 description => 'Alphanumeric string identifying the rate limiter.',
266 required => '1',
267 },
268 };
269 __PACKAGE__->method_documentation->{ 'delete_rate_limiter' } = {
270 summary => 'Delete a rate limiter',
271 params => $params,
272 returns => 'InlineResponse200',
273 };
274 }
275 # @return InlineResponse200
276 #
277 sub delete_rate_limiter {
278 my ($self, %args) = @_;
279  
280 # verify the required parameter 'rate_limiter_id' is set
281 unless (exists $args{'rate_limiter_id'}) {
282 croak("Missing the required parameter 'rate_limiter_id' when calling delete_rate_limiter");
283 }
284  
285 # parse inputs
286 my $_resource_path = '/rate-limiters/{rate_limiter_id}';
287  
288 my $_method = 'DELETE';
289 my $query_params = {};
290 my $header_params = {};
291 my $form_params = {};
292  
293 # 'Accept' and 'Content-Type' header
294 my $_header_accept = $self->{api_client}->select_header_accept('application/json');
295 if ($_header_accept) {
296 $header_params->{'Accept'} = $_header_accept;
297 }
298 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
299  
300 # path params
301 if ( exists $args{'rate_limiter_id'}) {
302 my $_base_variable = "{" . "rate_limiter_id" . "}";
303 my $_base_value = $self->{api_client}->to_path_value($args{'rate_limiter_id'});
304 $_resource_path =~ s/$_base_variable/$_base_value/g;
305 }
306  
307 my $_body_data;
308 # authentication setting, if any
309 my $auth_settings = [qw(token )];
310  
311 # make the API Call
312 my $response = $self->{api_client}->call_api($_resource_path, $_method,
313 $query_params, $form_params,
314 $header_params, $_body_data, $auth_settings);
315 if (!$response) {
316 return;
317 }
318 my $_response_object = $self->{api_client}->deserialize('InlineResponse200', $response);
319 return $_response_object;
320 }
321  
322 #
323 # get_rate_limiter
324 #
325 # Get a rate limiter
326 #
327 # @param string $rate_limiter_id Alphanumeric string identifying the rate limiter. (required)
328 {
329 my $params = {
330 'rate_limiter_id' => {
331 data_type => 'string',
332 description => 'Alphanumeric string identifying the rate limiter.',
333 required => '1',
334 },
335 };
336 __PACKAGE__->method_documentation->{ 'get_rate_limiter' } = {
337 summary => 'Get a rate limiter',
338 params => $params,
339 returns => 'RateLimiterResponse',
340 };
341 }
342 # @return RateLimiterResponse
343 #
344 sub get_rate_limiter {
345 my ($self, %args) = @_;
346  
347 # verify the required parameter 'rate_limiter_id' is set
348 unless (exists $args{'rate_limiter_id'}) {
349 croak("Missing the required parameter 'rate_limiter_id' when calling get_rate_limiter");
350 }
351  
352 # parse inputs
353 my $_resource_path = '/rate-limiters/{rate_limiter_id}';
354  
355 my $_method = 'GET';
356 my $query_params = {};
357 my $header_params = {};
358 my $form_params = {};
359  
360 # 'Accept' and 'Content-Type' header
361 my $_header_accept = $self->{api_client}->select_header_accept('application/json');
362 if ($_header_accept) {
363 $header_params->{'Accept'} = $_header_accept;
364 }
365 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
366  
367 # path params
368 if ( exists $args{'rate_limiter_id'}) {
369 my $_base_variable = "{" . "rate_limiter_id" . "}";
370 my $_base_value = $self->{api_client}->to_path_value($args{'rate_limiter_id'});
371 $_resource_path =~ s/$_base_variable/$_base_value/g;
372 }
373  
374 my $_body_data;
375 # authentication setting, if any
376 my $auth_settings = [qw(token )];
377  
378 # make the API Call
379 my $response = $self->{api_client}->call_api($_resource_path, $_method,
380 $query_params, $form_params,
381 $header_params, $_body_data, $auth_settings);
382 if (!$response) {
383 return;
384 }
385 my $_response_object = $self->{api_client}->deserialize('RateLimiterResponse', $response);
386 return $_response_object;
387 }
388  
389 #
390 # list_rate_limiters
391 #
392 # List rate limiters
393 #
394 # @param string $service_id Alphanumeric string identifying the service. (required)
395 # @param int $version_id Integer identifying a service version. (required)
396 {
397 my $params = {
398 'service_id' => {
399 data_type => 'string',
400 description => 'Alphanumeric string identifying the service.',
401 required => '1',
402 },
403 'version_id' => {
404 data_type => 'int',
405 description => 'Integer identifying a service version.',
406 required => '1',
407 },
408 };
409 __PACKAGE__->method_documentation->{ 'list_rate_limiters' } = {
410 summary => 'List rate limiters',
411 params => $params,
412 returns => 'ARRAY[RateLimiterResponse]',
413 };
414 }
415 # @return ARRAY[RateLimiterResponse]
416 #
417 sub list_rate_limiters {
418 my ($self, %args) = @_;
419  
420 # verify the required parameter 'service_id' is set
421 unless (exists $args{'service_id'}) {
422 croak("Missing the required parameter 'service_id' when calling list_rate_limiters");
423 }
424  
425 # verify the required parameter 'version_id' is set
426 unless (exists $args{'version_id'}) {
427 croak("Missing the required parameter 'version_id' when calling list_rate_limiters");
428 }
429  
430 # parse inputs
431 my $_resource_path = '/service/{service_id}/version/{version_id}/rate-limiters';
432  
433 my $_method = 'GET';
434 my $query_params = {};
435 my $header_params = {};
436 my $form_params = {};
437  
438 # 'Accept' and 'Content-Type' header
439 my $_header_accept = $self->{api_client}->select_header_accept('application/json');
440 if ($_header_accept) {
441 $header_params->{'Accept'} = $_header_accept;
442 }
443 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
444  
445 # path params
446 if ( exists $args{'service_id'}) {
447 my $_base_variable = "{" . "service_id" . "}";
448 my $_base_value = $self->{api_client}->to_path_value($args{'service_id'});
449 $_resource_path =~ s/$_base_variable/$_base_value/g;
450 }
451  
452 # path params
453 if ( exists $args{'version_id'}) {
454 my $_base_variable = "{" . "version_id" . "}";
455 my $_base_value = $self->{api_client}->to_path_value($args{'version_id'});
456 $_resource_path =~ s/$_base_variable/$_base_value/g;
457 }
458  
459 my $_body_data;
460 # authentication setting, if any
461 my $auth_settings = [qw(token )];
462  
463 # make the API Call
464 my $response = $self->{api_client}->call_api($_resource_path, $_method,
465 $query_params, $form_params,
466 $header_params, $_body_data, $auth_settings);
467 if (!$response) {
468 return;
469 }
470 my $_response_object = $self->{api_client}->deserialize('ARRAY[RateLimiterResponse]', $response);
471 return $_response_object;
472 }
473  
474 #
475 # update_rate_limiter
476 #
477 # Update a rate limiter
478 #
479 # @param string $rate_limiter_id Alphanumeric string identifying the rate limiter. (required)
480 # @param string $name A human readable name for the rate limiting rule. (optional)
481 # @param string $uri_dictionary_name The name of a Dictionary containing URIs as keys. If not defined or `null`, all origin URIs will be rate limited. (optional)
482 # @param ARRAY[string] $http_methods Array of HTTP methods to apply rate limiting to. (optional)
483 # @param int $rps_limit Upper limit of requests per second allowed by the rate limiter. (optional)
484 # @param int $window_size Number of seconds during which the RPS limit must be exceeded in order to trigger a violation. (optional)
485 # @param ARRAY[string] $client_key Array of VCL variables used to generate a counter key to identify a client. Example variables include `req.http.Fastly-Client-IP`, `req.http.User-Agent`, or a custom header like `req.http.API-Key`. (optional)
486 # @param int $penalty_box_duration Length of time in minutes that the rate limiter is in effect after the initial violation is detected. (optional)
487 # @param string $action The action to take when a rate limiter violation is detected. (optional)
488 # @param string $response_object_name Name of existing response object. Required if `action` is `response_object`. Note that the rate limiter response is only updated to reflect the response object content when saving the rate limiter configuration. (optional)
489 # @param string $logger_type Name of the type of logging endpoint to be used when action is `log_only`. The logging endpoint type is used to determine the appropriate log format to use when emitting log entries. (optional)
490 # @param int $feature_revision Revision number of the rate limiting feature implementation. Defaults to the most recent revision. (optional)
491 {
492 my $params = {
493 'rate_limiter_id' => {
494 data_type => 'string',
495 description => 'Alphanumeric string identifying the rate limiter.',
496 required => '1',
497 },
498 'name' => {
499 data_type => 'string',
500 description => 'A human readable name for the rate limiting rule.',
501 required => '0',
502 },
503 'uri_dictionary_name' => {
504 data_type => 'string',
505 description => 'The name of a Dictionary containing URIs as keys. If not defined or `null`, all origin URIs will be rate limited.',
506 required => '0',
507 },
508 'http_methods' => {
509 data_type => 'ARRAY[string]',
510 description => 'Array of HTTP methods to apply rate limiting to.',
511 required => '0',
512 },
513 'rps_limit' => {
514 data_type => 'int',
515 description => 'Upper limit of requests per second allowed by the rate limiter.',
516 required => '0',
517 },
518 'window_size' => {
519 data_type => 'int',
520 description => 'Number of seconds during which the RPS limit must be exceeded in order to trigger a violation.',
521 required => '0',
522 },
523 'client_key' => {
524 data_type => 'ARRAY[string]',
525 description => 'Array of VCL variables used to generate a counter key to identify a client. Example variables include `req.http.Fastly-Client-IP`, `req.http.User-Agent`, or a custom header like `req.http.API-Key`.',
526 required => '0',
527 },
528 'penalty_box_duration' => {
529 data_type => 'int',
530 description => 'Length of time in minutes that the rate limiter is in effect after the initial violation is detected.',
531 required => '0',
532 },
533 'action' => {
534 data_type => 'string',
535 description => 'The action to take when a rate limiter violation is detected.',
536 required => '0',
537 },
538 'response_object_name' => {
539 data_type => 'string',
540 description => 'Name of existing response object. Required if `action` is `response_object`. Note that the rate limiter response is only updated to reflect the response object content when saving the rate limiter configuration.',
541 required => '0',
542 },
543 'logger_type' => {
544 data_type => 'string',
545 description => 'Name of the type of logging endpoint to be used when action is `log_only`. The logging endpoint type is used to determine the appropriate log format to use when emitting log entries.',
546 required => '0',
547 },
548 'feature_revision' => {
549 data_type => 'int',
550 description => 'Revision number of the rate limiting feature implementation. Defaults to the most recent revision.',
551 required => '0',
552 },
553 };
554 __PACKAGE__->method_documentation->{ 'update_rate_limiter' } = {
555 summary => 'Update a rate limiter',
556 params => $params,
557 returns => 'RateLimiterResponse',
558 };
559 }
560 # @return RateLimiterResponse
561 #
562 sub update_rate_limiter {
563 my ($self, %args) = @_;
564  
565 # verify the required parameter 'rate_limiter_id' is set
566 unless (exists $args{'rate_limiter_id'}) {
567 croak("Missing the required parameter 'rate_limiter_id' when calling update_rate_limiter");
568 }
569  
570 # parse inputs
571 my $_resource_path = '/rate-limiters/{rate_limiter_id}';
572  
573 my $_method = 'PUT';
574 my $query_params = {};
575 my $header_params = {};
576 my $form_params = {};
577  
578 # 'Accept' and 'Content-Type' header
579 my $_header_accept = $self->{api_client}->select_header_accept('application/json');
580 if ($_header_accept) {
581 $header_params->{'Accept'} = $_header_accept;
582 }
583 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/x-www-form-urlencoded');
584  
585 # path params
586 if ( exists $args{'rate_limiter_id'}) {
587 my $_base_variable = "{" . "rate_limiter_id" . "}";
588 my $_base_value = $self->{api_client}->to_path_value($args{'rate_limiter_id'});
589 $_resource_path =~ s/$_base_variable/$_base_value/g;
590 }
591  
592 # form params
593 if ( exists $args{'name'} ) {
594 $form_params->{'name'} = $self->{api_client}->to_form_value($args{'name'});
595 }
596  
597 # form params
598 if ( exists $args{'uri_dictionary_name'} ) {
599 $form_params->{'uri_dictionary_name'} = $self->{api_client}->to_form_value($args{'uri_dictionary_name'});
600 }
601  
602 # form params
603 if ( exists $args{'http_methods'} ) {
604 $form_params->{'http_methods'} = $self->{api_client}->to_form_value($args{'http_methods'});
605 }
606  
607 # form params
608 if ( exists $args{'rps_limit'} ) {
609 $form_params->{'rps_limit'} = $self->{api_client}->to_form_value($args{'rps_limit'});
610 }
611  
612 # form params
613 if ( exists $args{'window_size'} ) {
614 $form_params->{'window_size'} = $self->{api_client}->to_form_value($args{'window_size'});
615 }
616  
617 # form params
618 if ( exists $args{'client_key'} ) {
619 $form_params->{'client_key'} = $self->{api_client}->to_form_value($args{'client_key'});
620 }
621  
622 # form params
623 if ( exists $args{'penalty_box_duration'} ) {
624 $form_params->{'penalty_box_duration'} = $self->{api_client}->to_form_value($args{'penalty_box_duration'});
625 }
626  
627 # form params
628 if ( exists $args{'action'} ) {
629 $form_params->{'action'} = $self->{api_client}->to_form_value($args{'action'});
630 }
631  
632 # form params
633 if ( exists $args{'response_object_name'} ) {
634 $form_params->{'response_object_name'} = $self->{api_client}->to_form_value($args{'response_object_name'});
635 }
636  
637 # form params
638 if ( exists $args{'logger_type'} ) {
639 $form_params->{'logger_type'} = $self->{api_client}->to_form_value($args{'logger_type'});
640 }
641  
642 # form params
643 if ( exists $args{'feature_revision'} ) {
644 $form_params->{'feature_revision'} = $self->{api_client}->to_form_value($args{'feature_revision'});
645 }
646  
647 my $_body_data;
648 # authentication setting, if any
649 my $auth_settings = [qw(token )];
650  
651 # make the API Call
652 my $response = $self->{api_client}->call_api($_resource_path, $_method,
653 $query_params, $form_params,
654 $header_params, $_body_data, $auth_settings);
655 if (!$response) {
656 return;
657 }
658 my $_response_object = $self->{api_client}->deserialize('RateLimiterResponse', $response);
659 return $_response_object;
660 }
661  
662 1;