Object/Save.pm untested

filter: Statementstmt 0.0% 0 / 74 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 16 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 94 CC 2 SCAR 9.0
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.5
1 =begin comment
2  
3 Copyright (c) 2019 Aspose Pty Ltd
4  
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11  
12 The above copyright notice and this permission notice shall be included in all
13 copies or substantial portions of the Software.
14  
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 SOFTWARE.
22  
23 =end comment
24  
25 =cut
26  
27 package AsposeSlidesCloud::Object::Save;
28  
29 require 5.6.0;
30 use strict;
31 use warnings;
32 use utf8;
33 use JSON qw(decode_json);
34 use Data::Dumper;
35 use Module::Runtime qw(use_module);
36 use Log::Any qw($log);
37 use Date::Parse;
38 use DateTime;
39  
40 use AsposeSlidesCloud::Object::ExportOptions;
41 use AsposeSlidesCloud::Object::OutputFile;
42 use AsposeSlidesCloud::Object::Task;
43  
44 use base ("Class::Accessor", "Class::Data::Inheritable");
45  
46  
47 #
48 #Save slide task.
49 #
50 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
51 # REF: https://github.com/swagger-api/swagger-codegen
52 #
53  
54 #
55 # NOTE: This class is auto generated by the swagger code generator program.
56 # Do not edit the class manually.
57 # Ref: https://github.com/swagger-api/swagger-codegen
58 #
59 __PACKAGE__->mk_classdata('attribute_map' => {});
60 __PACKAGE__->mk_classdata('swagger_types' => {});
61 __PACKAGE__->mk_classdata('method_documentation' => {});
62 __PACKAGE__->mk_classdata('class_documentation' => {});
63  
64 # new object
65 sub new {
66 my ($class, %args) = @_;
67  
68 my $self = bless {}, $class;
69
70 foreach my $attribute (keys %{$class->attribute_map}) {
71 my $args_key = $class->attribute_map->{$attribute};
72 $self->$attribute( $args{ $args_key } );
73 }
74 $self->{ type } = 'Save';
75 return $self;
76 }
77  
78 # used by JSON for serialization
79 sub TO_JSON {
80 my $self = shift;
81 my $_data = {};
82 foreach my $_key (keys %{$self->attribute_map}) {
83 if (defined $self->{$_key}) {
84 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
85 }
86 }
87 return $_data;
88 }
89  
90  
91 __PACKAGE__->class_documentation({description => 'Save slide task.',
92 class => 'Save',
93 required => [], # TODO
94 } );
95  
96 __PACKAGE__->method_documentation({
97 'type' => {
98 datatype => 'string',
99 base_name => 'Type',
100 description => 'Task type.',
101 format => '',
102 read_only => '',
103 },
104 'format' => {
105 datatype => 'string',
106 base_name => 'Format',
107 description => 'Format.',
108 format => '',
109 read_only => '',
110 },
111 'output' => {
112 datatype => 'OutputFile',
113 base_name => 'Output',
114 description => 'Output file.',
115 format => '',
116 read_only => '',
117 },
118 'options' => {
119 datatype => 'ExportOptions',
120 base_name => 'Options',
121 description => 'Save options.',
122 format => '',
123 read_only => '',
124 },
125 });
126  
127 __PACKAGE__->swagger_types( {
128 'type' => 'string',
129 'format' => 'string',
130 'output' => 'OutputFile',
131 'options' => 'ExportOptions'
132 } );
133  
134 __PACKAGE__->attribute_map( {
135 'type' => 'Type',
136 'format' => 'Format',
137 'output' => 'Output',
138 'options' => 'Options'
139 } );
140  
141 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
142  
143  
144 1;