Fastly/LoggingHoneycombApi.pm untested

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