Object/Slide.pm untested

filter: Statementstmt 0.0% 0 / 73 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 / 93 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::Slide;
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::ResourceBase;
41 use AsposeSlidesCloud::Object::ResourceUri;
42 use AsposeSlidesCloud::Object::SlideShowTransition;
43  
44 use base ("Class::Accessor", "Class::Data::Inheritable");
45  
46  
47 #
48 #Presentation slide.
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 return $self;
75 }
76  
77 # used by JSON for serialization
78 sub TO_JSON {
79 my $self = shift;
80 my $_data = {};
81 foreach my $_key (keys %{$self->attribute_map}) {
82 if (defined $self->{$_key}) {
83 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
84 }
85 }
86 return $_data;
87 }
88  
89  
90 __PACKAGE__->class_documentation({description => 'Presentation slide.',
91 class => 'Slide',
92 required => [], # TODO
93 } );
94  
95 __PACKAGE__->method_documentation({
96 'self_uri' => {
97 datatype => 'ResourceUri',
98 base_name => 'SelfUri',
99 description => 'Gets or sets the link to this resource.',
100 format => '',
101 read_only => '',
102 },
103 'alternate_links' => {
104 datatype => 'ARRAY[ResourceUri]',
105 base_name => 'AlternateLinks',
106 description => 'List of alternate links.',
107 format => '',
108 read_only => '',
109 },
110 'width' => {
111 datatype => 'double',
112 base_name => 'Width',
113 description => 'Gets or sets the width.',
114 format => '',
115 read_only => '',
116 },
117 'height' => {
118 datatype => 'double',
119 base_name => 'Height',
120 description => 'Gets or sets the height.',
121 format => '',
122 read_only => '',
123 },
124 'show_master_shapes' => {
125 datatype => 'boolean',
126 base_name => 'ShowMasterShapes',
127 description => 'Specifies if shapes of the master slide should be shown on the slide. True by default.',
128 format => '',
129 read_only => '',
130 },
131 'slide_show_transition' => {
132 datatype => 'SlideShowTransition',
133 base_name => 'SlideShowTransition',
134 description => 'Specifies if shapes of the master slide should be shown on the slide. True by default.',
135 format => '',
136 read_only => '',
137 },
138 'layout_slide' => {
139 datatype => 'ResourceUri',
140 base_name => 'LayoutSlide',
141 description => 'Gets or sets the link to the layout slide.',
142 format => '',
143 read_only => '',
144 },
145 'shapes' => {
146 datatype => 'ResourceUri',
147 base_name => 'Shapes',
148 description => 'Gets or sets the link to list of top-level shapes.',
149 format => '',
150 read_only => '',
151 },
152 'theme' => {
153 datatype => 'ResourceUri',
154 base_name => 'Theme',
155 description => 'Gets or sets the link to theme.',
156 format => '',
157 read_only => '',
158 },
159 'placeholders' => {
160 datatype => 'ResourceUri',
161 base_name => 'Placeholders',
162 description => 'Gets or sets the link to placeholders.',
163 format => '',
164 read_only => '',
165 },
166 'images' => {
167 datatype => 'ResourceUri',
168 base_name => 'Images',
169 description => 'Gets or sets the link to images.',
170 format => '',
171 read_only => '',
172 },
173 'comments' => {
174 datatype => 'ResourceUri',
175 base_name => 'Comments',
176 description => 'Gets or sets the link to comments.',
177 format => '',
178 read_only => '',
179 },
180 'background' => {
181 datatype => 'ResourceUri',
182 base_name => 'Background',
183 description => 'Get or sets the link to slide's background',
184 format => '',
185 read_only => '',
186 },
187 'notes_slide' => {
188 datatype => 'ResourceUri',
189 base_name => 'NotesSlide',
190 description => 'Get or sets the link to notes slide.',
191 format => '',
192 read_only => '',
193 },
194 });
195  
196 __PACKAGE__->swagger_types( {
197 'self_uri' => 'ResourceUri',
198 'alternate_links' => 'ARRAY[ResourceUri]',
199 'width' => 'double',
200 'height' => 'double',
201 'show_master_shapes' => 'boolean',
202 'slide_show_transition' => 'SlideShowTransition',
203 'layout_slide' => 'ResourceUri',
204 'shapes' => 'ResourceUri',
205 'theme' => 'ResourceUri',
206 'placeholders' => 'ResourceUri',
207 'images' => 'ResourceUri',
208 'comments' => 'ResourceUri',
209 'background' => 'ResourceUri',
210 'notes_slide' => 'ResourceUri'
211 } );
212  
213 __PACKAGE__->attribute_map( {
214 'self_uri' => 'SelfUri',
215 'alternate_links' => 'AlternateLinks',
216 'width' => 'Width',
217 'height' => 'Height',
218 'show_master_shapes' => 'ShowMasterShapes',
219 'slide_show_transition' => 'SlideShowTransition',
220 'layout_slide' => 'LayoutSlide',
221 'shapes' => 'Shapes',
222 'theme' => 'Theme',
223 'placeholders' => 'Placeholders',
224 'images' => 'Images',
225 'comments' => 'Comments',
226 'background' => 'Background',
227 'notes_slide' => 'NotesSlide'
228 } );
229  
230 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
231  
232  
233 1;