Fastly/LoggingScalyrApi.pm untested

filter: Statementstmt 0.0% 0 / 258 Branchbran 0.0% 0 / 110 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 / 398 CC 56 SCAR 51.9
CC
56
Cov
0%
update_log_scalyr
342.0
create_log_scalyr
272.0
delete_log_scalyr
90.0
CRAP 179.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::LoggingScalyrApi;
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_log_scalyr
51 #
52 # Create a Scalyr log endpoint
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 The name for the real-time logging configuration. (optional)
57 # @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional)
58 # @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional)
59 # @param string $format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (optional, default to '%h %l %u %t "%r" %>s %b')
60 # @param string $log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (optional, default to 'none')
61 # @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2)
62 # @param string $region The region that log data will be sent to. (optional, default to 'US')
63 # @param string $token The token to use for authentication. (optional)
64 # @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex')
65 {
66 my $params = {
67 'service_id' => {
68 data_type => 'string',
69 description => 'Alphanumeric string identifying the service.',
70 required => '1',
71 },
72 'version_id' => {
73 data_type => 'int',
74 description => 'Integer identifying a service version.',
75 required => '1',
76 },
77 'name' => {
78 data_type => 'string',
79 description => 'The name for the real-time logging configuration.',
80 required => '0',
81 },
82 'placement' => {
83 data_type => 'string',
84 description => 'Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. ',
85 required => '0',
86 },
87 'response_condition' => {
88 data_type => 'string',
89 description => 'The name of an existing condition in the configured endpoint, or leave blank to always execute.',
90 required => '0',
91 },
92 'format' => {
93 data_type => 'string',
94 description => 'A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).',
95 required => '0',
96 },
97 'log_processing_region' => {
98 data_type => 'string',
99 description => 'The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global.',
100 required => '0',
101 },
102 'format_version' => {
103 data_type => 'int',
104 description => 'The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. ',
105 required => '0',
106 },
107 'region' => {
108 data_type => 'string',
109 description => 'The region that log data will be sent to.',
110 required => '0',
111 },
112 'token' => {
113 data_type => 'string',
114 description => 'The token to use for authentication.',
115 required => '0',
116 },
117 'project_id' => {
118 data_type => 'string',
119 description => 'The name of the logfile within Scalyr.',
120 required => '0',
121 },
122 };
123 __PACKAGE__->method_documentation->{ 'create_log_scalyr' } = {
124 summary => 'Create a Scalyr log endpoint',
125 params => $params,
126 returns => 'LoggingScalyrResponse',
127 };
128 }
129 # @return LoggingScalyrResponse
130 #
131 sub create_log_scalyr {
132 my ($self, %args) = @_;
133  
134 # verify the required parameter 'service_id' is set
135 unless (exists $args{'service_id'}) {
136 croak("Missing the required parameter 'service_id' when calling create_log_scalyr");
137 }
138  
139 # verify the required parameter 'version_id' is set
140 unless (exists $args{'version_id'}) {
141 croak("Missing the required parameter 'version_id' when calling create_log_scalyr");
142 }
143  
144 # parse inputs
145 my $_resource_path = '/service/{service_id}/version/{version_id}/logging/scalyr';
146  
147 my $_method = 'POST';
148 my $query_params = {};
149 my $header_params = {};
150 my $form_params = {};
151  
152 # 'Accept' and 'Content-Type' header
153 my $_header_accept = $self->{api_client}->select_header_accept('application/json');
154 if ($_header_accept) {
155 $header_params->{'Accept'} = $_header_accept;
156 }
157 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/x-www-form-urlencoded');
158  
159 # path params
160 if ( exists $args{'service_id'}) {
161 my $_base_variable = "{" . "service_id" . "}";
162 my $_base_value = $self->{api_client}->to_path_value($args{'service_id'});
163 $_resource_path =~ s/$_base_variable/$_base_value/g;
164 }
165  
166 # path params
167 if ( exists $args{'version_id'}) {
168 my $_base_variable = "{" . "version_id" . "}";
169 my $_base_value = $self->{api_client}->to_path_value($args{'version_id'});
170 $_resource_path =~ s/$_base_variable/$_base_value/g;
171 }
172  
173 # form params
174 if ( exists $args{'name'} ) {
175 $form_params->{'name'} = $self->{api_client}->to_form_value($args{'name'});
176 }
177  
178 # form params
179 if ( exists $args{'placement'} ) {
180 $form_params->{'placement'} = $self->{api_client}->to_form_value($args{'placement'});
181 }
182  
183 # form params
184 if ( exists $args{'response_condition'} ) {
185 $form_params->{'response_condition'} = $self->{api_client}->to_form_value($args{'response_condition'});
186 }
187  
188 # form params
189 if ( exists $args{'format'} ) {
190 $form_params->{'format'} = $self->{api_client}->to_form_value($args{'format'});
191 }
192  
193 # form params
194 if ( exists $args{'log_processing_region'} ) {
195 $form_params->{'log_processing_region'} = $self->{api_client}->to_form_value($args{'log_processing_region'});
196 }
197  
198 # form params
199 if ( exists $args{'format_version'} ) {
200 $form_params->{'format_version'} = $self->{api_client}->to_form_value($args{'format_version'});
201 }
202  
203 # form params
204 if ( exists $args{'region'} ) {
205 $form_params->{'region'} = $self->{api_client}->to_form_value($args{'region'});
206 }
207  
208 # form params
209 if ( exists $args{'token'} ) {
210 $form_params->{'token'} = $self->{api_client}->to_form_value($args{'token'});
211 }
212  
213 # form params
214 if ( exists $args{'project_id'} ) {
215 $form_params->{'project_id'} = $self->{api_client}->to_form_value($args{'project_id'});
216 }
217  
218 my $_body_data;
219 # authentication setting, if any
220 my $auth_settings = [qw(token )];
221  
222 # make the API Call
223 my $response = $self->{api_client}->call_api($_resource_path, $_method,
224 $query_params, $form_params,
225 $header_params, $_body_data, $auth_settings);
226 if (!$response) {
227 return;
228 }
229 my $_response_object = $self->{api_client}->deserialize('LoggingScalyrResponse', $response);
230 return $_response_object;
231 }
232  
233 #
234 # delete_log_scalyr
235 #
236 # Delete the Scalyr log endpoint
237 #
238 # @param string $service_id Alphanumeric string identifying the service. (required)
239 # @param int $version_id Integer identifying a service version. (required)
240 # @param string $logging_scalyr_name The name for the real-time logging configuration. (required)
241 {
242 my $params = {
243 'service_id' => {
244 data_type => 'string',
245 description => 'Alphanumeric string identifying the service.',
246 required => '1',
247 },
248 'version_id' => {
249 data_type => 'int',
250 description => 'Integer identifying a service version.',
251 required => '1',
252 },
253 'logging_scalyr_name' => {
254 data_type => 'string',
255 description => 'The name for the real-time logging configuration.',
256 required => '1',
257 },
258 };
259 __PACKAGE__->method_documentation->{ 'delete_log_scalyr' } = {
260 summary => 'Delete the Scalyr log endpoint',
261 params => $params,
262 returns => 'InlineResponse200',
263 };
264 }
265 # @return InlineResponse200
266 #
267 sub delete_log_scalyr {
268 my ($self, %args) = @_;
269  
270 # verify the required parameter 'service_id' is set
271 unless (exists $args{'service_id'}) {
272 croak("Missing the required parameter 'service_id' when calling delete_log_scalyr");
273 }
274  
275 # verify the required parameter 'version_id' is set
276 unless (exists $args{'version_id'}) {
277 croak("Missing the required parameter 'version_id' when calling delete_log_scalyr");
278 }
279  
280 # verify the required parameter 'logging_scalyr_name' is set
281 unless (exists $args{'logging_scalyr_name'}) {
282 croak("Missing the required parameter 'logging_scalyr_name' when calling delete_log_scalyr");
283 }
284  
285 # parse inputs
286 my $_resource_path = '/service/{service_id}/version/{version_id}/logging/scalyr/{logging_scalyr_name}';
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{'service_id'}) {
302 my $_base_variable = "{" . "service_id" . "}";
303 my $_base_value = $self->{api_client}->to_path_value($args{'service_id'});
304 $_resource_path =~ s/$_base_variable/$_base_value/g;
305 }
306  
307 # path params
308 if ( exists $args{'version_id'}) {
309 my $_base_variable = "{" . "version_id" . "}";
310 my $_base_value = $self->{api_client}->to_path_value($args{'version_id'});
311 $_resource_path =~ s/$_base_variable/$_base_value/g;
312 }
313  
314 # path params
315 if ( exists $args{'logging_scalyr_name'}) {
316 my $_base_variable = "{" . "logging_scalyr_name" . "}";
317 my $_base_value = $self->{api_client}->to_path_value($args{'logging_scalyr_name'});
318 $_resource_path =~ s/$_base_variable/$_base_value/g;
319 }
320  
321 my $_body_data;
322 # authentication setting, if any
323 my $auth_settings = [qw(token )];
324  
325 # make the API Call
326 my $response = $self->{api_client}->call_api($_resource_path, $_method,
327 $query_params, $form_params,
328 $header_params, $_body_data, $auth_settings);
329 if (!$response) {
330 return;
331 }
332 my $_response_object = $self->{api_client}->deserialize('InlineResponse200', $response);
333 return $_response_object;
334 }
335  
336 #
337 # get_log_scalyr
338 #
339 # Get a Scalyr log endpoint
340 #
341 # @param string $service_id Alphanumeric string identifying the service. (required)
342 # @param int $version_id Integer identifying a service version. (required)
343 # @param string $logging_scalyr_name The name for the real-time logging configuration. (required)
344 {
345 my $params = {
346 'service_id' => {
347 data_type => 'string',
348 description => 'Alphanumeric string identifying the service.',
349 required => '1',
350 },
351 'version_id' => {
352 data_type => 'int',
353 description => 'Integer identifying a service version.',
354 required => '1',
355 },
356 'logging_scalyr_name' => {
357 data_type => 'string',
358 description => 'The name for the real-time logging configuration.',
359 required => '1',
360 },
361 };
362 __PACKAGE__->method_documentation->{ 'get_log_scalyr' } = {
363 summary => 'Get a Scalyr log endpoint',
364 params => $params,
365 returns => 'LoggingScalyrResponse',
366 };
367 }
368 # @return LoggingScalyrResponse
369 #
370 sub get_log_scalyr {
371 my ($self, %args) = @_;
372  
373 # verify the required parameter 'service_id' is set
374 unless (exists $args{'service_id'}) {
375 croak("Missing the required parameter 'service_id' when calling get_log_scalyr");
376 }
377  
378 # verify the required parameter 'version_id' is set
379 unless (exists $args{'version_id'}) {
380 croak("Missing the required parameter 'version_id' when calling get_log_scalyr");
381 }
382  
383 # verify the required parameter 'logging_scalyr_name' is set
384 unless (exists $args{'logging_scalyr_name'}) {
385 croak("Missing the required parameter 'logging_scalyr_name' when calling get_log_scalyr");
386 }
387  
388 # parse inputs
389 my $_resource_path = '/service/{service_id}/version/{version_id}/logging/scalyr/{logging_scalyr_name}';
390  
391 my $_method = 'GET';
392 my $query_params = {};
393 my $header_params = {};
394 my $form_params = {};
395  
396 # 'Accept' and 'Content-Type' header
397 my $_header_accept = $self->{api_client}->select_header_accept('application/json');
398 if ($_header_accept) {
399 $header_params->{'Accept'} = $_header_accept;
400 }
401 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
402  
403 # path params
404 if ( exists $args{'service_id'}) {
405 my $_base_variable = "{" . "service_id" . "}";
406 my $_base_value = $self->{api_client}->to_path_value($args{'service_id'});
407 $_resource_path =~ s/$_base_variable/$_base_value/g;
408 }
409  
410 # path params
411 if ( exists $args{'version_id'}) {
412 my $_base_variable = "{" . "version_id" . "}";
413 my $_base_value = $self->{api_client}->to_path_value($args{'version_id'});
414 $_resource_path =~ s/$_base_variable/$_base_value/g;
415 }
416  
417 # path params
418 if ( exists $args{'logging_scalyr_name'}) {
419 my $_base_variable = "{" . "logging_scalyr_name" . "}";
420 my $_base_value = $self->{api_client}->to_path_value($args{'logging_scalyr_name'});
421 $_resource_path =~ s/$_base_variable/$_base_value/g;
422 }
423  
424 my $_body_data;
425 # authentication setting, if any
426 my $auth_settings = [qw(token )];
427  
428 # make the API Call
429 my $response = $self->{api_client}->call_api($_resource_path, $_method,
430 $query_params, $form_params,
431 $header_params, $_body_data, $auth_settings);
432 if (!$response) {
433 return;
434 }
435 my $_response_object = $self->{api_client}->deserialize('LoggingScalyrResponse', $response);
436 return $_response_object;
437 }
438  
439 #
440 # list_log_scalyr
441 #
442 # List Scalyr log endpoints
443 #
444 # @param string $service_id Alphanumeric string identifying the service. (required)
445 # @param int $version_id Integer identifying a service version. (required)
446 {
447 my $params = {
448 'service_id' => {
449 data_type => 'string',
450 description => 'Alphanumeric string identifying the service.',
451 required => '1',
452 },
453 'version_id' => {
454 data_type => 'int',
455 description => 'Integer identifying a service version.',
456 required => '1',
457 },
458 };
459 __PACKAGE__->method_documentation->{ 'list_log_scalyr' } = {
460 summary => 'List Scalyr log endpoints',
461 params => $params,
462 returns => 'ARRAY[LoggingScalyrResponse]',
463 };
464 }
465 # @return ARRAY[LoggingScalyrResponse]
466 #
467 sub list_log_scalyr {
468 my ($self, %args) = @_;
469  
470 # verify the required parameter 'service_id' is set
471 unless (exists $args{'service_id'}) {
472 croak("Missing the required parameter 'service_id' when calling list_log_scalyr");
473 }
474  
475 # verify the required parameter 'version_id' is set
476 unless (exists $args{'version_id'}) {
477 croak("Missing the required parameter 'version_id' when calling list_log_scalyr");
478 }
479  
480 # parse inputs
481 my $_resource_path = '/service/{service_id}/version/{version_id}/logging/scalyr';
482  
483 my $_method = 'GET';
484 my $query_params = {};
485 my $header_params = {};
486 my $form_params = {};
487  
488 # 'Accept' and 'Content-Type' header
489 my $_header_accept = $self->{api_client}->select_header_accept('application/json');
490 if ($_header_accept) {
491 $header_params->{'Accept'} = $_header_accept;
492 }
493 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
494  
495 # path params
496 if ( exists $args{'service_id'}) {
497 my $_base_variable = "{" . "service_id" . "}";
498 my $_base_value = $self->{api_client}->to_path_value($args{'service_id'});
499 $_resource_path =~ s/$_base_variable/$_base_value/g;
500 }
501  
502 # path params
503 if ( exists $args{'version_id'}) {
504 my $_base_variable = "{" . "version_id" . "}";
505 my $_base_value = $self->{api_client}->to_path_value($args{'version_id'});
506 $_resource_path =~ s/$_base_variable/$_base_value/g;
507 }
508  
509 my $_body_data;
510 # authentication setting, if any
511 my $auth_settings = [qw(token )];
512  
513 # make the API Call
514 my $response = $self->{api_client}->call_api($_resource_path, $_method,
515 $query_params, $form_params,
516 $header_params, $_body_data, $auth_settings);
517 if (!$response) {
518 return;
519 }
520 my $_response_object = $self->{api_client}->deserialize('ARRAY[LoggingScalyrResponse]', $response);
521 return $_response_object;
522 }
523  
524 #
525 # update_log_scalyr
526 #
527 # Update the Scalyr log endpoint
528 #
529 # @param string $service_id Alphanumeric string identifying the service. (required)
530 # @param int $version_id Integer identifying a service version. (required)
531 # @param string $logging_scalyr_name The name for the real-time logging configuration. (required)
532 # @param string $name The name for the real-time logging configuration. (optional)
533 # @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional)
534 # @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional)
535 # @param string $format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (optional, default to '%h %l %u %t "%r" %>s %b')
536 # @param string $log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (optional, default to 'none')
537 # @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2)
538 # @param string $region The region that log data will be sent to. (optional, default to 'US')
539 # @param string $token The token to use for authentication. (optional)
540 # @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex')
541 {
542 my $params = {
543 'service_id' => {
544 data_type => 'string',
545 description => 'Alphanumeric string identifying the service.',
546 required => '1',
547 },
548 'version_id' => {
549 data_type => 'int',
550 description => 'Integer identifying a service version.',
551 required => '1',
552 },
553 'logging_scalyr_name' => {
554 data_type => 'string',
555 description => 'The name for the real-time logging configuration.',
556 required => '1',
557 },
558 'name' => {
559 data_type => 'string',
560 description => 'The name for the real-time logging configuration.',
561 required => '0',
562 },
563 'placement' => {
564 data_type => 'string',
565 description => 'Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. ',
566 required => '0',
567 },
568 'response_condition' => {
569 data_type => 'string',
570 description => 'The name of an existing condition in the configured endpoint, or leave blank to always execute.',
571 required => '0',
572 },
573 'format' => {
574 data_type => 'string',
575 description => 'A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).',
576 required => '0',
577 },
578 'log_processing_region' => {
579 data_type => 'string',
580 description => 'The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global.',
581 required => '0',
582 },
583 'format_version' => {
584 data_type => 'int',
585 description => 'The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. ',
586 required => '0',
587 },
588 'region' => {
589 data_type => 'string',
590 description => 'The region that log data will be sent to.',
591 required => '0',
592 },
593 'token' => {
594 data_type => 'string',
595 description => 'The token to use for authentication.',
596 required => '0',
597 },
598 'project_id' => {
599 data_type => 'string',
600 description => 'The name of the logfile within Scalyr.',
601 required => '0',
602 },
603 };
604 __PACKAGE__->method_documentation->{ 'update_log_scalyr' } = {
605 summary => 'Update the Scalyr log endpoint',
606 params => $params,
607 returns => 'LoggingScalyrResponse',
608 };
609 }
610 # @return LoggingScalyrResponse
611 #
612 sub update_log_scalyr {
613 my ($self, %args) = @_;
614  
615 # verify the required parameter 'service_id' is set
616 unless (exists $args{'service_id'}) {
617 croak("Missing the required parameter 'service_id' when calling update_log_scalyr");
618 }
619  
620 # verify the required parameter 'version_id' is set
621 unless (exists $args{'version_id'}) {
622 croak("Missing the required parameter 'version_id' when calling update_log_scalyr");
623 }
624  
625 # verify the required parameter 'logging_scalyr_name' is set
626 unless (exists $args{'logging_scalyr_name'}) {
627 croak("Missing the required parameter 'logging_scalyr_name' when calling update_log_scalyr");
628 }
629  
630 # parse inputs
631 my $_resource_path = '/service/{service_id}/version/{version_id}/logging/scalyr/{logging_scalyr_name}';
632  
633 my $_method = 'PUT';
634 my $query_params = {};
635 my $header_params = {};
636 my $form_params = {};
637  
638 # 'Accept' and 'Content-Type' header
639 my $_header_accept = $self->{api_client}->select_header_accept('application/json');
640 if ($_header_accept) {
641 $header_params->{'Accept'} = $_header_accept;
642 }
643 $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/x-www-form-urlencoded');
644  
645 # path params
646 if ( exists $args{'service_id'}) {
647 my $_base_variable = "{" . "service_id" . "}";
648 my $_base_value = $self->{api_client}->to_path_value($args{'service_id'});
649 $_resource_path =~ s/$_base_variable/$_base_value/g;
650 }
651  
652 # path params
653 if ( exists $args{'version_id'}) {
654 my $_base_variable = "{" . "version_id" . "}";
655 my $_base_value = $self->{api_client}->to_path_value($args{'version_id'});
656 $_resource_path =~ s/$_base_variable/$_base_value/g;
657 }
658  
659 # path params
660 if ( exists $args{'logging_scalyr_name'}) {
661 my $_base_variable = "{" . "logging_scalyr_name" . "}";
662 my $_base_value = $self->{api_client}->to_path_value($args{'logging_scalyr_name'});
663 $_resource_path =~ s/$_base_variable/$_base_value/g;
664 }
665  
666 # form params
667 if ( exists $args{'name'} ) {
668 $form_params->{'name'} = $self->{api_client}->to_form_value($args{'name'});
669 }
670  
671 # form params
672 if ( exists $args{'placement'} ) {
673 $form_params->{'placement'} = $self->{api_client}->to_form_value($args{'placement'});
674 }
675  
676 # form params
677 if ( exists $args{'response_condition'} ) {
678 $form_params->{'response_condition'} = $self->{api_client}->to_form_value($args{'response_condition'});
679 }
680  
681 # form params
682 if ( exists $args{'format'} ) {
683 $form_params->{'format'} = $self->{api_client}->to_form_value($args{'format'});
684 }
685  
686 # form params
687 if ( exists $args{'log_processing_region'} ) {
688 $form_params->{'log_processing_region'} = $self->{api_client}->to_form_value($args{'log_processing_region'});
689 }
690  
691 # form params
692 if ( exists $args{'format_version'} ) {
693 $form_params->{'format_version'} = $self->{api_client}->to_form_value($args{'format_version'});
694 }
695  
696 # form params
697 if ( exists $args{'region'} ) {
698 $form_params->{'region'} = $self->{api_client}->to_form_value($args{'region'});
699 }
700  
701 # form params
702 if ( exists $args{'token'} ) {
703 $form_params->{'token'} = $self->{api_client}->to_form_value($args{'token'});
704 }
705  
706 # form params
707 if ( exists $args{'project_id'} ) {
708 $form_params->{'project_id'} = $self->{api_client}->to_form_value($args{'project_id'});
709 }
710  
711 my $_body_data;
712 # authentication setting, if any
713 my $auth_settings = [qw(token )];
714  
715 # make the API Call
716 my $response = $self->{api_client}->call_api($_resource_path, $_method,
717 $query_params, $form_params,
718 $header_params, $_body_data, $auth_settings);
719 if (!$response) {
720 return;
721 }
722 my $_response_object = $self->{api_client}->deserialize('LoggingScalyrResponse', $response);
723 return $_response_object;
724 }
725  
726 1;