Fastly/TlsSubscriptionsApi.pm untested

filter: Statementstmt 0.0% 0 / 256 Branchbran 0.0% 0 / 84 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 0.0% 0 / 17 Podpod 0.0% 0 / 8 totaltotal 0.0% 0 / 374 CC 43 SCAR 40.7
CC
43
Cov
0%
list_tls_subs
132.0
create_globalsign_email_challenge
72.0
delete_globalsign_email_challenge
72.0
CRAP 58.3
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::TlsSubscriptionsApi;
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_globalsign_email_challenge
51 #
52 # Creates a GlobalSign email challenge.
53 #
54 # @param string $tls_subscription_id Alphanumeric string identifying a TLS subscription. (required)
55 # @param string $tls_authorization_id Alphanumeric string identifying a TLS subscription. (required)
56 # @param HASH[string,object] $request_body (optional)
57 {
58 my $params = {
59 'tls_subscription_id' => {
60 data_type => 'string',
61 description => 'Alphanumeric string identifying a TLS subscription.',
62 required => '1',
63 },
64 'tls_authorization_id' => {
65 data_type => 'string',
66 description => 'Alphanumeric string identifying a TLS subscription.',
67 required => '1',
68 },
69 'request_body' => {
70 data_type => 'HASH[string,object]',
71 description => '',
72 required => '0',
73 },
74 };
75 __PACKAGE__->method_documentation->{ 'create_globalsign_email_challenge' } = {
76 summary => 'Creates a GlobalSign email challenge.',
77 params => $params,
78 returns => 'object',
79 };
80 }
81 # @return object
82 #
83 sub create_globalsign_email_challenge {
84 my ($self, %args) = @_;
85  
86 # verify the required parameter 'tls_subscription_id' is set
87 unless (exists $args{'tls_subscription_id'}) {
88 croak("Missing the required parameter 'tls_subscription_id' when calling create_globalsign_email_challenge");
89 }
90  
91 # verify the required parameter 'tls_authorization_id' is set
92 unless (exists $args{'tls_authorization_id'}) {
93 croak("Missing the required parameter 'tls_authorization_id' when calling create_globalsign_email_challenge");
94 }
95  
96 # parse inputs
97 my $_resource_path = '/tls/subscriptions/{tls_subscription_id}/authorizations/{tls_authorization_id}/globalsign_email_challenges';
98  
99 my $_method = 'POST';
100 my $query_params = {};
101 my $header_params = {};
102 my $form_params = {};
103  
104 # 'Accept' and 'Content-Type' header
105 my $_header_accept = $self->{api_client}->select_header_accept('application/json');
106 if ($_header_accept) {
107 $header_params->{'Accept'} = $_header_accept;
108 }
109 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/vnd.api+json');
110  
111 # path params
112 if ( exists $args{'tls_subscription_id'}) {
113 my $_base_variable = "{" . "tls_subscription_id" . "}";
114 my $_base_value = $self->{api_client}->to_path_value($args{'tls_subscription_id'});
115 $_resource_path =~ s/$_base_variable/$_base_value/g;
116 }
117  
118 # path params
119 if ( exists $args{'tls_authorization_id'}) {
120 my $_base_variable = "{" . "tls_authorization_id" . "}";
121 my $_base_value = $self->{api_client}->to_path_value($args{'tls_authorization_id'});
122 $_resource_path =~ s/$_base_variable/$_base_value/g;
123 }
124  
125 my $_body_data;
126 # body params
127 if ( exists $args{'request_body'}) {
128 $_body_data = $args{'request_body'};
129 }
130  
131 # authentication setting, if any
132 my $auth_settings = [qw(token )];
133  
134 # make the API Call
135 my $response = $self->{api_client}->call_api($_resource_path, $_method,
136 $query_params, $form_params,
137 $header_params, $_body_data, $auth_settings);
138 if (!$response) {
139 return;
140 }
141 my $_response_object = $self->{api_client}->deserialize('object', $response);
142 return $_response_object;
143 }
144  
145 #
146 # create_tls_sub
147 #
148 # Create a TLS subscription
149 #
150 # @param TlsSubscription $tls_subscription (optional)
151 {
152 my $params = {
153 'tls_subscription' => {
154 data_type => 'TlsSubscription',
155 description => '',
156 required => '0',
157 },
158 };
159 __PACKAGE__->method_documentation->{ 'create_tls_sub' } = {
160 summary => 'Create a TLS subscription',
161 params => $params,
162 returns => 'TlsSubscriptionResponse',
163 };
164 }
165 # @return TlsSubscriptionResponse
166 #
167 sub create_tls_sub {
168 my ($self, %args) = @_;
169  
170 # parse inputs
171 my $_resource_path = '/tls/subscriptions';
172  
173 my $_method = 'POST';
174 my $query_params = {};
175 my $header_params = {};
176 my $form_params = {};
177  
178 # 'Accept' and 'Content-Type' header
179 my $_header_accept = $self->{api_client}->select_header_accept('application/vnd.api+json');
180 if ($_header_accept) {
181 $header_params->{'Accept'} = $_header_accept;
182 }
183 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/vnd.api+json');
184  
185 my $_body_data;
186 # body params
187 if ( exists $args{'tls_subscription'}) {
188 $_body_data = $args{'tls_subscription'};
189 }
190  
191 # authentication setting, if any
192 my $auth_settings = [qw(token )];
193  
194 # make the API Call
195 my $response = $self->{api_client}->call_api($_resource_path, $_method,
196 $query_params, $form_params,
197 $header_params, $_body_data, $auth_settings);
198 if (!$response) {
199 return;
200 }
201 my $_response_object = $self->{api_client}->deserialize('TlsSubscriptionResponse', $response);
202 return $_response_object;
203 }
204  
205 #
206 # delete_globalsign_email_challenge
207 #
208 # Delete a GlobalSign email challenge
209 #
210 # @param string $tls_subscription_id Alphanumeric string identifying a TLS subscription. (required)
211 # @param string $tls_authorization_id Alphanumeric string identifying a TLS subscription. (required)
212 # @param string $globalsign_email_challenge_id Alphanumeric string identifying a GlobalSign email challenge. (required)
213 {
214 my $params = {
215 'tls_subscription_id' => {
216 data_type => 'string',
217 description => 'Alphanumeric string identifying a TLS subscription.',
218 required => '1',
219 },
220 'tls_authorization_id' => {
221 data_type => 'string',
222 description => 'Alphanumeric string identifying a TLS subscription.',
223 required => '1',
224 },
225 'globalsign_email_challenge_id' => {
226 data_type => 'string',
227 description => 'Alphanumeric string identifying a GlobalSign email challenge.',
228 required => '1',
229 },
230 };
231 __PACKAGE__->method_documentation->{ 'delete_globalsign_email_challenge' } = {
232 summary => 'Delete a GlobalSign email challenge',
233 params => $params,
234 returns => undef,
235 };
236 }
237 # @return void
238 #
239 sub delete_globalsign_email_challenge {
240 my ($self, %args) = @_;
241  
242 # verify the required parameter 'tls_subscription_id' is set
243 unless (exists $args{'tls_subscription_id'}) {
244 croak("Missing the required parameter 'tls_subscription_id' when calling delete_globalsign_email_challenge");
245 }
246  
247 # verify the required parameter 'tls_authorization_id' is set
248 unless (exists $args{'tls_authorization_id'}) {
249 croak("Missing the required parameter 'tls_authorization_id' when calling delete_globalsign_email_challenge");
250 }
251  
252 # verify the required parameter 'globalsign_email_challenge_id' is set
253 unless (exists $args{'globalsign_email_challenge_id'}) {
254 croak("Missing the required parameter 'globalsign_email_challenge_id' when calling delete_globalsign_email_challenge");
255 }
256  
257 # parse inputs
258 my $_resource_path = '/tls/subscriptions/{tls_subscription_id}/authorizations/{tls_authorization_id}/globalsign_email_challenges/{globalsign_email_challenge_id}';
259  
260 my $_method = 'DELETE';
261 my $query_params = {};
262 my $header_params = {};
263 my $form_params = {};
264  
265 # 'Accept' and 'Content-Type' header
266 my $_header_accept = $self->{api_client}->select_header_accept();
267 if ($_header_accept) {
268 $header_params->{'Accept'} = $_header_accept;
269 }
270 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
271  
272 # path params
273 if ( exists $args{'tls_subscription_id'}) {
274 my $_base_variable = "{" . "tls_subscription_id" . "}";
275 my $_base_value = $self->{api_client}->to_path_value($args{'tls_subscription_id'});
276 $_resource_path =~ s/$_base_variable/$_base_value/g;
277 }
278  
279 # path params
280 if ( exists $args{'tls_authorization_id'}) {
281 my $_base_variable = "{" . "tls_authorization_id" . "}";
282 my $_base_value = $self->{api_client}->to_path_value($args{'tls_authorization_id'});
283 $_resource_path =~ s/$_base_variable/$_base_value/g;
284 }
285  
286 # path params
287 if ( exists $args{'globalsign_email_challenge_id'}) {
288 my $_base_variable = "{" . "globalsign_email_challenge_id" . "}";
289 my $_base_value = $self->{api_client}->to_path_value($args{'globalsign_email_challenge_id'});
290 $_resource_path =~ s/$_base_variable/$_base_value/g;
291 }
292  
293 my $_body_data;
294 # authentication setting, if any
295 my $auth_settings = [qw(token )];
296  
297 # make the API Call
298 $self->{api_client}->call_api($_resource_path, $_method,
299 $query_params, $form_params,
300 $header_params, $_body_data, $auth_settings);
301 return;
302 }
303  
304 #
305 # delete_tls_sub
306 #
307 # Delete a TLS subscription
308 #
309 # @param string $tls_subscription_id Alphanumeric string identifying a TLS subscription. (required)
310 {
311 my $params = {
312 'tls_subscription_id' => {
313 data_type => 'string',
314 description => 'Alphanumeric string identifying a TLS subscription.',
315 required => '1',
316 },
317 };
318 __PACKAGE__->method_documentation->{ 'delete_tls_sub' } = {
319 summary => 'Delete a TLS subscription',
320 params => $params,
321 returns => undef,
322 };
323 }
324 # @return void
325 #
326 sub delete_tls_sub {
327 my ($self, %args) = @_;
328  
329 # verify the required parameter 'tls_subscription_id' is set
330 unless (exists $args{'tls_subscription_id'}) {
331 croak("Missing the required parameter 'tls_subscription_id' when calling delete_tls_sub");
332 }
333  
334 # parse inputs
335 my $_resource_path = '/tls/subscriptions/{tls_subscription_id}';
336  
337 my $_method = 'DELETE';
338 my $query_params = {};
339 my $header_params = {};
340 my $form_params = {};
341  
342 # 'Accept' and 'Content-Type' header
343 my $_header_accept = $self->{api_client}->select_header_accept();
344 if ($_header_accept) {
345 $header_params->{'Accept'} = $_header_accept;
346 }
347 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
348  
349 # path params
350 if ( exists $args{'tls_subscription_id'}) {
351 my $_base_variable = "{" . "tls_subscription_id" . "}";
352 my $_base_value = $self->{api_client}->to_path_value($args{'tls_subscription_id'});
353 $_resource_path =~ s/$_base_variable/$_base_value/g;
354 }
355  
356 my $_body_data;
357 # authentication setting, if any
358 my $auth_settings = [qw(token )];
359  
360 # make the API Call
361 $self->{api_client}->call_api($_resource_path, $_method,
362 $query_params, $form_params,
363 $header_params, $_body_data, $auth_settings);
364 return;
365 }
366  
367 #
368 # get_tls_sub
369 #
370 # Get a TLS subscription
371 #
372 # @param string $tls_subscription_id Alphanumeric string identifying a TLS subscription. (required)
373 # @param string $include Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations`, `tls_authorizations.globalsign_email_challenge`, `tls_authorizations.self_managed_http_challenge`, and `tls_certificates`. (optional)
374 {
375 my $params = {
376 'tls_subscription_id' => {
377 data_type => 'string',
378 description => 'Alphanumeric string identifying a TLS subscription.',
379 required => '1',
380 },
381 'include' => {
382 data_type => 'string',
383 description => 'Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations`, `tls_authorizations.globalsign_email_challenge`, `tls_authorizations.self_managed_http_challenge`, and `tls_certificates`. ',
384 required => '0',
385 },
386 };
387 __PACKAGE__->method_documentation->{ 'get_tls_sub' } = {
388 summary => 'Get a TLS subscription',
389 params => $params,
390 returns => 'TlsSubscriptionResponse',
391 };
392 }
393 # @return TlsSubscriptionResponse
394 #
395 sub get_tls_sub {
396 my ($self, %args) = @_;
397  
398 # verify the required parameter 'tls_subscription_id' is set
399 unless (exists $args{'tls_subscription_id'}) {
400 croak("Missing the required parameter 'tls_subscription_id' when calling get_tls_sub");
401 }
402  
403 # parse inputs
404 my $_resource_path = '/tls/subscriptions/{tls_subscription_id}';
405  
406 my $_method = 'GET';
407 my $query_params = {};
408 my $header_params = {};
409 my $form_params = {};
410  
411 # 'Accept' and 'Content-Type' header
412 my $_header_accept = $self->{api_client}->select_header_accept('application/vnd.api+json');
413 if ($_header_accept) {
414 $header_params->{'Accept'} = $_header_accept;
415 }
416 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
417  
418 # query params
419 if ( exists $args{'include'}) {
420 $query_params->{'include'} = $self->{api_client}->to_query_value($args{'include'});
421 }
422  
423 # path params
424 if ( exists $args{'tls_subscription_id'}) {
425 my $_base_variable = "{" . "tls_subscription_id" . "}";
426 my $_base_value = $self->{api_client}->to_path_value($args{'tls_subscription_id'});
427 $_resource_path =~ s/$_base_variable/$_base_value/g;
428 }
429  
430 my $_body_data;
431 # authentication setting, if any
432 my $auth_settings = [qw(token )];
433  
434 # make the API Call
435 my $response = $self->{api_client}->call_api($_resource_path, $_method,
436 $query_params, $form_params,
437 $header_params, $_body_data, $auth_settings);
438 if (!$response) {
439 return;
440 }
441 my $_response_object = $self->{api_client}->deserialize('TlsSubscriptionResponse', $response);
442 return $_response_object;
443 }
444  
445 #
446 # list_tls_subs
447 #
448 # List TLS subscriptions
449 #
450 # @param string $filter[state] Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, `renewing`, and `failed`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). (optional)
451 # @param string $filter[tls_domains/id] Limit the returned subscriptions to those that include the specific domain. (optional)
452 # @param boolean $filter[has_active_order] Limit the returned subscriptions to those that have currently active orders. Permitted values: `true`. (optional)
453 # @param string $filter[certificate_authority] Limit the returned subscriptions to a specific certification authority. Values may include `certainly`, `lets-encrypt`, or `globalsign`. (optional)
454 # @param string $sort The order in which to list the results. (optional, default to '-created_at')
455 # @param string $include Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations`, `tls_authorizations.globalsign_email_challenge`, `tls_authorizations.self_managed_http_challenge`, and `tls_certificates`. (optional)
456 # @param int $page[number] Current page. (optional)
457 # @param int $page[size] Number of records per page. (optional, default to 20)
458 {
459 my $params = {
460 'filter[state]' => {
461 data_type => 'string',
462 description => 'Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, `renewing`, and `failed`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). ',
463 required => '0',
464 },
465 'filter[tls_domains/id]' => {
466 data_type => 'string',
467 description => 'Limit the returned subscriptions to those that include the specific domain.',
468 required => '0',
469 },
470 'filter[has_active_order]' => {
471 data_type => 'boolean',
472 description => 'Limit the returned subscriptions to those that have currently active orders. Permitted values: `true`. ',
473 required => '0',
474 },
475 'filter[certificate_authority]' => {
476 data_type => 'string',
477 description => 'Limit the returned subscriptions to a specific certification authority. Values may include `certainly`, `lets-encrypt`, or `globalsign`. ',
478 required => '0',
479 },
480 'sort' => {
481 data_type => 'string',
482 description => 'The order in which to list the results.',
483 required => '0',
484 },
485 'include' => {
486 data_type => 'string',
487 description => 'Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations`, `tls_authorizations.globalsign_email_challenge`, `tls_authorizations.self_managed_http_challenge`, and `tls_certificates`. ',
488 required => '0',
489 },
490 'page[number]' => {
491 data_type => 'int',
492 description => 'Current page.',
493 required => '0',
494 },
495 'page[size]' => {
496 data_type => 'int',
497 description => 'Number of records per page.',
498 required => '0',
499 },
500 };
501 __PACKAGE__->method_documentation->{ 'list_tls_subs' } = {
502 summary => 'List TLS subscriptions',
503 params => $params,
504 returns => 'TlsSubscriptionsResponse',
505 };
506 }
507 # @return TlsSubscriptionsResponse
508 #
509 sub list_tls_subs {
510 my ($self, %args) = @_;
511  
512 # parse inputs
513 my $_resource_path = '/tls/subscriptions';
514  
515 my $_method = 'GET';
516 my $query_params = {};
517 my $header_params = {};
518 my $form_params = {};
519  
520 # 'Accept' and 'Content-Type' header
521 my $_header_accept = $self->{api_client}->select_header_accept('application/vnd.api+json');
522 if ($_header_accept) {
523 $header_params->{'Accept'} = $_header_accept;
524 }
525 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
526  
527 # query params
528 if ( exists $args{'filter[state]'}) {
529 $query_params->{'filter[state]'} = $self->{api_client}->to_query_value($args{'filter[state]'});
530 }
531  
532 # query params
533 if ( exists $args{'filter[tls_domains/id]'}) {
534 $query_params->{'filter[tls_domains.id]'} = $self->{api_client}->to_query_value($args{'filter[tls_domains/id]'});
535 }
536  
537 # query params
538 if ( exists $args{'filter[has_active_order]'}) {
539 $query_params->{'filter[has_active_order]'} = $self->{api_client}->to_query_value($args{'filter[has_active_order]'});
540 }
541  
542 # query params
543 if ( exists $args{'filter[certificate_authority]'}) {
544 $query_params->{'filter[certificate_authority]'} = $self->{api_client}->to_query_value($args{'filter[certificate_authority]'});
545 }
546  
547 # query params
548 if ( exists $args{'sort'}) {
549 $query_params->{'sort'} = $self->{api_client}->to_query_value($args{'sort'});
550 }
551  
552 # query params
553 if ( exists $args{'include'}) {
554 $query_params->{'include'} = $self->{api_client}->to_query_value($args{'include'});
555 }
556  
557 # query params
558 if ( exists $args{'page[number]'}) {
559 $query_params->{'page[number]'} = $self->{api_client}->to_query_value($args{'page[number]'});
560 }
561  
562 # query params
563 if ( exists $args{'page[size]'}) {
564 $query_params->{'page[size]'} = $self->{api_client}->to_query_value($args{'page[size]'});
565 }
566  
567 my $_body_data;
568 # authentication setting, if any
569 my $auth_settings = [qw(token )];
570  
571 # make the API Call
572 my $response = $self->{api_client}->call_api($_resource_path, $_method,
573 $query_params, $form_params,
574 $header_params, $_body_data, $auth_settings);
575 if (!$response) {
576 return;
577 }
578 my $_response_object = $self->{api_client}->deserialize('TlsSubscriptionsResponse', $response);
579 return $_response_object;
580 }
581  
582 #
583 # patch_tls_sub
584 #
585 # Update a TLS subscription
586 #
587 # @param string $tls_subscription_id Alphanumeric string identifying a TLS subscription. (required)
588 # @param boolean $force A flag that allows you to edit and delete a subscription with active domains. Valid to use on PATCH and DELETE actions. As a warning, removing an active domain from a subscription or forcing the deletion of a subscription may result in breaking TLS termination to that domain. (optional)
589 # @param TlsSubscription $tls_subscription (optional)
590 {
591 my $params = {
592 'tls_subscription_id' => {
593 data_type => 'string',
594 description => 'Alphanumeric string identifying a TLS subscription.',
595 required => '1',
596 },
597 'force' => {
598 data_type => 'boolean',
599 description => 'A flag that allows you to edit and delete a subscription with active domains. Valid to use on PATCH and DELETE actions. As a warning, removing an active domain from a subscription or forcing the deletion of a subscription may result in breaking TLS termination to that domain. ',
600 required => '0',
601 },
602 'tls_subscription' => {
603 data_type => 'TlsSubscription',
604 description => '',
605 required => '0',
606 },
607 };
608 __PACKAGE__->method_documentation->{ 'patch_tls_sub' } = {
609 summary => 'Update a TLS subscription',
610 params => $params,
611 returns => 'TlsSubscriptionResponse',
612 };
613 }
614 # @return TlsSubscriptionResponse
615 #
616 sub patch_tls_sub {
617 my ($self, %args) = @_;
618  
619 # verify the required parameter 'tls_subscription_id' is set
620 unless (exists $args{'tls_subscription_id'}) {
621 croak("Missing the required parameter 'tls_subscription_id' when calling patch_tls_sub");
622 }
623  
624 # parse inputs
625 my $_resource_path = '/tls/subscriptions/{tls_subscription_id}';
626  
627 my $_method = 'PATCH';
628 my $query_params = {};
629 my $header_params = {};
630 my $form_params = {};
631  
632 # 'Accept' and 'Content-Type' header
633 my $_header_accept = $self->{api_client}->select_header_accept('application/vnd.api+json');
634 if ($_header_accept) {
635 $header_params->{'Accept'} = $_header_accept;
636 }
637 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/vnd.api+json');
638  
639 # query params
640 if ( exists $args{'force'}) {
641 $query_params->{'force'} = $self->{api_client}->to_query_value($args{'force'});
642 }
643  
644 # path params
645 if ( exists $args{'tls_subscription_id'}) {
646 my $_base_variable = "{" . "tls_subscription_id" . "}";
647 my $_base_value = $self->{api_client}->to_path_value($args{'tls_subscription_id'});
648 $_resource_path =~ s/$_base_variable/$_base_value/g;
649 }
650  
651 my $_body_data;
652 # body params
653 if ( exists $args{'tls_subscription'}) {
654 $_body_data = $args{'tls_subscription'};
655 }
656  
657 # authentication setting, if any
658 my $auth_settings = [qw(token )];
659  
660 # make the API Call
661 my $response = $self->{api_client}->call_api($_resource_path, $_method,
662 $query_params, $form_params,
663 $header_params, $_body_data, $auth_settings);
664 if (!$response) {
665 return;
666 }
667 my $_response_object = $self->{api_client}->deserialize('TlsSubscriptionResponse', $response);
668 return $_response_object;
669 }
670  
671 1;